
Recherche avancée
Autres articles (74)
-
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
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 (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (6750)
-
How to recover corrupted MTS/AVCHD file ?
5 février 2018, par DmitrySeveral MTS files were copied from flashcard to PC. All files larger then 500 were damaged and can not be open using VLC or ffmpeg. For example 00011.MTS :
$ ffmpeg -i 00011.MTS
ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
00011.MTS: Invalid data found when processing inputSmaller files works fine and can be opened using VLC or ffmpeg :
$ ffmpeg -i 00012.MTS
ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers
built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, mpegts, from '00012.MTS':
Duration: 00:00:30.16, start: 1.040000, bitrate: 23790 kb/s
Program 1
Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s
Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080
At least one output file must be specifiedThe size of the corrupted file looks ok (617594880). However if I compare corrupted 00011.MTS with good 00012.MTS using binary diff I see that the header differs too much :
vbindiff 00011.MTS 00012.MTSThere are not so much difference between good 00012.MTS and another good file 00013.MTS :
vbindiff 00013.MTS 00012.MTSQuestions :
How to check which data is inside corrupted 00011.MTS and can audio or video data be recovered ?
Are there any tools around that can recover video or audio steams (or parts of them) ?
-
m3u8 split into audio and video frames stream simultaneously
25 janvier 2018, par Turan MammadovI am trying to capture live m3u8 stream in python and split it into two streams : rawaudio and rawvideo. Then to analyze them separately.
It is possible to get both streams separately by using ffmpeg
for audio
import subprocess
videolink = 'http://20.7.7.1:8080/live/xyz.m3u8'
command = ['ffmpeg','-v','0', '-i', videolink, '-acodec', 'pcm_s16le', '-ac', '2', '-ar', '48000', '-f', 's16le', '-']
proc = subprocess.Popen(command, stdout=subprocess.PIPE, bufsize=10**8)
while True:
raw_audio = proc.stdout.read(192000) #reads 1s audiofor video
import subprocess
videolink = 'http://20.7.7.1:8080/live/xyz.m3u8'
command = ['ffmpeg','-v','0', '-i', videolink,'-f', 'image2pipe',
'-pix_fmt', 'bgr24','-vcodec', 'rawvideo', '-']
proc = subprocess.Popen(command, stdout=subprocess.PIPE, bufsize=10**8)
while True:
raw_video = proc.stdout.read(432*240*3) #reads 1 frameIn this case if I compare obtained results from these streams I can get time differences.
My question is : Is it possible to capture both streams simultaneously using one command ? -
Sync two audio files
3 février 2021, par kostya572I have 2 audio files :



- 

- correct.wav (duration 3:07)
- incorrect.wav (duration 3:10)










They are almost the same, but was generated with different sound fonts.



The problem : The second file is late for a few seconds.



How can I sync second file with the first one ? Maybe there some bash software that could detect first loud sounds appearance in the first sound and compare correct.wav with incorrect.wav, shorten the end of the incorrect.wav file.



I know I can do it manually, but I need automated soulution for a lot of files.



Here is approximate solutions I found :



1) for detecting sound syncing to use this Python script - https://github.com/jeorgen/align-videos-by-sound but it's not perfect, not detecting 100%.



2) use sox for cutting/trimming/comparing/detecting sound durations (code extraction) :



length1ok=$(sox correct.wav -n stat 2>&1 | sed -n 's#^Length (seconds):[^0-9]*\([0-9.]*\)$#\1#p')
length2ok=$(sox incorrect.wav -n stat 2>&1 | sed -n 's#^Length (seconds):[^0-9]*\([0-9.]*\)$#\1#p')
if [[ $length1ok == $length2ok ]]; then
 echo "Everything OK: $length1ok = $length2ok"
else
 echo "Fatal error: Not the same final files"
fi

diff=$(echo "$length2 - $length1" | bc -l)
echo "difference = $diff"
echo "webm $length1 not greater than fluid2 $length2"
sox correct.wav incorrect.wav pad 0 $diff




Comment to UltrasoundJelly's answer :
Here what result I get for your code :






Here what result I need :