
Recherche avancée
Autres articles (16)
-
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (4310)
-
How can I decrypt this m3u8 and key file to mp4, Maybe its use javascript to decryptdata
23 décembre 2020, par lionkinglkTHIS is the video website :
the video website link


From this video link, I download the m3u8, key.key and ts video files, and use FFMPEG to transform these files to mp4.
but Error :


ffmpeg -allowed_extensions ALL -i a.m3u8 -c copy 01.mp4
ffmpeg version N-94813-g85386c36e3-ffmpeg-for-N_m3u8DL-CLI Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 8.2.0 (GCC)
 libavutil 56. 35.100 / 56. 35.100
 libavcodec 58. 56.101 / 58. 56.101
 libavformat 58. 32.104 / 58. 32.104
 libavfilter 7. 58.102 / 7. 58.102
 libavresample 4. 0. 0 / 4. 0. 0
 libswresample 3. 6.100 / 3. 6.100
[hls @ 007e3000] Skip ('#EXT-X-VERSION:3')
[hls @ 007e3000] Skip ('#EXT-X-ALLOW-CACHE:YES')
[hls @ 007e3000] Opening 'a.key' for reading
[hls @ 007e3000] Opening 'crypto:43924590506ad94e644d0bfac89e14b9_2_0.ts' for reading
[hls @ 007e3000] Opening 'crypto:43924590506ad94e644d0bfac89e14b9_2_1.ts' for reading
[hls @ 007e3000] Error when loading first segment '43924590506ad94e644d0bfac89e14b9_2_0.ts'
a.m3u8: Invalid data found when processing input



The key file is


00000000h: 46 F5 50 A3 7A 46 85 B5 8C 17 5B 0E 4B 8D F5 49 ; F鮌F叺?[.K嶕I
00000010h: F1 02 79 41 58 C7 A3 D3 17 90 0D D6 27 67 D6 D0 ; ?yAX牵???g中



and the IV value in the m3u8 file is


IV=0x786d9270e353d8758b621c1f775491f2



Too long bytes to FFMPEG.



In my limited experience with html and javascript, I found the Chrome blob a random named javascript file when the website page freshed.


Chrome - Network log :


XHR:43924590506ad94e644d0bfac89e14b9_2.m3u8?pid=1608691204584X1511260&device=desktop
XHR:43924590506ad94e644d0bfac89e14b9_2.key?token=1df110e5-ff1d-42de-bd39-b63304bb3062-53648385
XHR:43924590506ad94e644d0bfac89e14b9_2_0.ts?pid=1608691204584X1511260&device=desktop
Other:blob:https://www.sciconf.cn/93ebcbe3-0211-4ec0-94df-421024e8b505




Some codes in the javascript file (
blob:https://www.sciconf.cn/93ebcbe3-0211-4ec0-94df-421024e8b505
)like :

o = function() {
 function t(t, e, i, n) {
 this.decryptdata = i,
 this.discardEPB = n,
 this.decrypter = new v.a(t,e,{
 removePKCS7Padding: !1
 })
 }
 var e = t.prototype;
 return e.decryptBuffer = function(t, e) {
 this.decrypter.decrypt(t, this.decryptdata.key.buffer, this.decryptdata.iv.buffer, e)
 }



I think the website use this js file to decrypt the key file and the IV value, but I can't add breakpoint to the random named js file.



I am studying this for a long time, but no use.


Please help or try to give some ideas how to achieve the decrypted key and IV ?


Thanks in advance.


-
Converting gifs to mp4 using python
16 février 2021, par deeformcurrently im trying to convert some gifs which i have downloaded into mp4 files so i can upload them to a specific website. However, im getting some errors when trying to do this !


for submission in subreddit.top(time_filter="day"):
 url_file = r'/home/pi/Desktop/Instagram/urls.txt'
 # Get the link of the submission
 url = submission.url
 if url.endswith('gif'):
 bad_chars = ['"', '*', '?', ':', '<', '>', '|', '\\', '/', '.']
 for i in bad_chars:
 submission.title = submission.title.replace(i, '')
 count += 1
 print(url + ' ' + submission.title)
 urllib.request.urlretrieve(url, r'C:\Users\myalt\OneDrive\Desktop\TikTok twitch poster\Clips\\' + str(
 submission.title) + '.gif')
 print(str(f'downloaded {count}'))
 for file in os.listdir(r'C:\Users\myalt\OneDrive\Desktop\TikTok twitch poster\Clips\\'):
 clip = mp.VideoFileClip(rf"C:\Users\myalt\OneDrive\Desktop\TikTok twitch poster\Clips\{file}")
 clip.write_videofile(f"{submission.title}.mp4")



Error : OSError : MoviePy error : failed to read the duration of file C :\Users\myalt\OneDrive\Desktop\TikTok twitch poster\Clips\My friend claims that he can print a gun using his 3D printer, but I’m not impressed I’ve had a Canon printer for years.gif.
Here are the file infos returned by ffmpeg :


ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20200122
configuration : —enable-gpl —enable-version3 —enable-sdl2 —enable-fontconfig —enable-gnutls —enable-iconv —enable-libass —enable-libdav1d —enable-libbluray —enable-libfreetype —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-libshine —enable-libsnappy —enable-libsoxr —enable-libtheora —enable-libtwolame —enable-libvpx —enable-libwavpack —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxml2 —enable-libzimg —enable-lzma —enable-zlib —enable-gmp —enable-libvidstab —enable-libvorbis —enable-libvo-amrwbenc —enable-libmysofa —enable-libspeex —enable-libxvid —enable-libaom —enable-libmfx —enable-amf —enable-ffnvcodec —enable-cuvid —enable-d3d11va —enable-nvenc —enable-nvdec —enable-dxva2 —enable-avisynth —enable-libopenmpt
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
C :\Users\myalt\OneDrive\Desktop\TikTok twitch poster\Clips\My friend claims that he can print a gun using his 3D printer, but I’m not impressed I’ve had a Canon printer for years.gif : Invalid data found when processing input


-
Converting .aif to mp3 using pydub
22 mars 2019, par Nick WetaskiI want to convert a bunch of music files located on my desktop (however trying to convert just one of them is the first step) from .aif to .mp3 however I am receiving an error code 1 from ffmpeg.
I have ffmpeg and pydub installed
Code :
from os import path
from pydub import AudioSegment
from pydub.utils import which
AudioSegment.converter = which("ffmpeg")
aif_audio = AudioSegment.from_file("C:/Users/Nick/Desktop/scratch/landonmusic1.aif", format="aif")
aif_audio.export("C:/Users/Nick/Desktop/scratch/landonmusic1.mp3", format="mp3")I am receiving the following feedback from Python Terminal :
S C:\Users\Nick\OneDrive\ProgrammingProjects> & C:/Users/Nick/AppData/Local/Programs/Python/Python37-32/python.exe c:/Users/Nick/OneDrive/ProgrammingProjects/Classes/MusicFileConverter.py
Traceback (most recent call last):
File "c:/Users/Nick/OneDrive/ProgrammingProjects/Classes/MusicFileConverter.py", line 10, in <module>
aif_audio = AudioSegment.from_file("C:/Users/Nick/Desktop/scratch/landonmusic1.aif", format="aif")
File "C:\Users\Nick\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pydub\audio_segment.py", line 704, in from_file
p.returncode, p_err))
pydub.exceptions.CouldntDecodeError: Decoding failed. ffmpeg returned error code: 1
</module>Output from ffmpeg/avlib :
b"ffmpeg version N-93431-g6dc1da416e Copyright (c) 2000-2019 the FFmpeg developers\r\n built with gcc 8.2.1 (GCC) 20190212\r\n configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt\r\n libavutil 56. 26.100 / 56. 26.100\r\n libavcodec 58. 47.105 / 58. 47.105\r\n libavformat 58. 26.101 / 58. 26.101\r\n libavdevice 58. 7.100 / 58. 7.100\r\n libavfilter 7. 48.100 / 7. 48.100\r\n libswscale 5. 4.100 / 5. 4.100\r\n libswresample 3. 4.100 / 3. 4.100\r\n libpostproc 55. 4.100 / 55. 4.100\r\nUnknown input format: 'aif'\r\n"