
Recherche avancée
Médias (1)
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (72)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)
Sur d’autres sites (6861)
-
FFMPEG "buffer queue overflow, dropping" with trim and atrim filters
11 décembre 2016, par Prasanna MahendiranIn FFMPEG I am actually trimming and concating a 24 FPS video. When I apply a complex filter
ffmpeg -i sample.mp4 -filter_complex \
"[0:v]setpts = PTS-STARTPTS[bv];
[bv]split=6[v0][v1][v2][v3][v4][v5];
[v0]trim=start_frame=1:end_frame=142,loop=1:1:1,setpts=N/FRAME_RATE/TB[0v];
[v1]trim=start_frame=846:end_frame=878,loop=1:1:1,setpts=N/FRAME_RATE/TB[1v];
[v2]trim=start_frame=57:end_frame=114,loop=1:1:1,setpts=N/FRAME_RATE/TB[2v];
[v3]trim=start_frame=865:end_frame=885,loop=1:1:1,setpts=N/FRAME_RATE/TB[3v];
[v4]trim=start_frame=70:end_frame=155,loop=1:1:1,setpts=N/FRAME_RATE/TB[4v];
[v5]trim=start_frame=155:end_frame=909,loop=1:1:1,setpts=N/FRAME_RATE/TB[5v];
[0:a]asplit=6[a0][a1][a2][a3][a4][a5];
[a0]atrim=0.041666666666666664:5.917,asetpts=N/SR/TB[0a];
[a1]atrim=35.256:36.603,asetpts=N/SR/TB[1a];
[a2]atrim=2.379:4.767,asetpts=N/SR/TB[2a];
[a3]atrim=36.024:36.859,asetpts=N/SR/TB[3a];
[a4]atrim=2.93:6.438172,asetpts=N/SR/TB[4a];
[a5]atrim=6.438172:37.895,asetpts=N/SR/TB[5a];
[0v][0a][1v][1a][2v][2a][3v][3a][4v][4a][5v][5a]concat=n=6:v=1:a=1[vv][aa]"\
-map "[vv]" -map "[aa]" output.mp4I am getting "buffer queue overflow, dropping" error. The resultant video and audio is still and not working properly.
ffmpeg version 3.2-1~16.04.york1 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.1 (Ubuntu 5.4.1-3ubuntu1~ubuntu16.04.1york0) 20161019
configuration: --prefix=/usr --extra-version='1~16.04.york1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-libtesseract --disable-stripping --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-opengl --enable-sdl2 --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-openal --enable-frei0r --enable-libopencv --enable-libx264 --enable-chromaprint --enable-shared
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.100 / 57. 64.100
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
track : 0
artist :
album :
date : 0
genre :
lyrics :
title :
encoder : Lavf56.36.100
Duration: 00:00:37.90, start: 0.000000, bitrate: 951 kb/s
Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 820 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 126 kb/s (default)
Metadata:
handler_name : SoundHandler
File 'output.mp4' already exists. Overwrite ? [y/N] y
[libx264 @ 0x55650097a540] using SAR=1/1
[libx264 @ 0x55650097a540] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x55650097a540] profile High, level 3.0
[libx264 @ 0x55650097a540] 264 - core 148 r2643 5c65704 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'output.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
track : 0
artist :
album :
date : 0
genre :
lyrics :
title :
encoder : Lavf57.56.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 24 fps, 12288 tbn, 24 tbc (default)
Metadata:
encoder : Lavc57.64.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
encoder : Lavc57.64.100 aac
Stream mapping:
Stream #0:0 (h264) -> setpts
Stream #0:1 (aac) -> asplit
concat:out:v0 -> Stream #0:0 (libx264)
concat:out:a0 -> Stream #0:1 (aac)
Press [q] to stop, [?] for help
[Parsed_concat_33 @ 0x55650097b420] Buffer queue overflow, dropping. 471.5kbits/s speed=4.94x
Last message repeated 201 times
[Parsed_concat_33 @ 0x55650097b420] Buffer queue overflow, dropping. 522.9kbits/s speed=3.89x
Last message repeated 1266 times
[Parsed_concat_33 @ 0x55650097b420] Buffer queue overflow, dropping. 557.0kbits/s speed=3.28x
Last message repeated 48 times
[output stream 0:1 @ 0x556500947e20] 100 buffers queued in output stream 0:1, something may be wrong.
[Parsed_concat_33 @ 0x55650097b420] Buffer queue overflow, dropping. 718.6kbits/s speed=3.46x
Last message repeated 19 times
[output stream 0:0 @ 0x5565009785c0] 100 buffers queued in output stream 0:0, something may be wrong.
frame= 1091 fps=117 q=-1.0 Lsize= 2795kB time=00:00:45.51 bitrate= 503.1kbits/s dup=475 drop=0 speed=4.88x
video:2455kB audio:316kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.861779%
[libx264 @ 0x55650097a540] frame I:8 Avg QP:19.26 size: 24207
[libx264 @ 0x55650097a540] frame P:409 Avg QP:21.33 size: 4108
[libx264 @ 0x55650097a540] frame B:674 Avg QP:27.46 size: 949
[libx264 @ 0x55650097a540] consecutive B-frames: 10.3% 13.9% 24.5% 51.3%
[libx264 @ 0x55650097a540] mb I I16..4: 9.9% 57.0% 33.1%
[libx264 @ 0x55650097a540] mb P I16..4: 3.6% 7.6% 2.9% P16..4: 33.0% 10.6% 3.0% 0.0% 0.0% skip:39.2%
[libx264 @ 0x55650097a540] mb B I16..4: 0.4% 0.8% 0.4% B16..8: 24.5% 2.6% 0.2% direct: 0.5% skip:70.5% L0:55.5% L1:41.8% BI: 2.7%
[libx264 @ 0x55650097a540] 8x8 transform intra:53.8% inter:66.7%
[libx264 @ 0x55650097a540] coded y,uvDC,uvAC intra: 44.6% 50.0% 14.8% inter: 6.2% 7.7% 0.2%
[libx264 @ 0x55650097a540] i16 v,h,dc,p: 22% 28% 17% 33%
[libx264 @ 0x55650097a540] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 23% 28% 3% 4% 3% 11% 3% 5%
[libx264 @ 0x55650097a540] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 26% 16% 2% 5% 3% 16% 3% 3%
[libx264 @ 0x55650097a540] i8c dc,h,v,p: 60% 22% 13% 6%
[libx264 @ 0x55650097a540] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x55650097a540] ref P L0: 72.6% 8.4% 15.1% 3.9%
[libx264 @ 0x55650097a540] ref B L0: 88.5% 10.7% 0.8%
[libx264 @ 0x55650097a540] ref B L1: 93.3% 6.7%
[libx264 @ 0x55650097a540] kb/s:442.30
[aac @ 0x556500979280] Qavg: 3215.870I tried with other stackoverflow questions but none of them worked. Also I think it is partially because the trim timings are mixed. That is start time can be anywhere between 0-end. When I make it strictly increasing it is working fine.
-
merge (video and sound) with (background music)
27 novembre 2016, par Nir dii have video file vid.mpg that contain video and audio(speaking) and audio file aud.wav that contain background music.
now, i want to merge them together.
here is the command that i use :
ffmpeg -i vid.mpg -i aud.mp3 -c:v copy -filter_complex "[0:a]aformat = fltp:44100:stereo,apad[0a];[1]aformat=fltp:44100:stereo,volume=0.1[1a];[0a][1a]amerge[a]" -map 0:v -map "[a]" -ac 2 -t 0 out.mpg
and this is the error that i get as response :
[Parsed_amerge_4 @ 00000000003a36e0] No channel layout for input 1
[Parsed_amerge_4 @ 00000000003a36e0] Input channel layouts overlap: output layou
t will be determined by the number of distinct input channels
[mpeg @ 000000000289a4e0] VBV buffer size not set, using default size of 130KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer sizein addition i add the full log :
C:\bina\ffmpeg\bin>ffmpeg -i vid.mpg -i
aud.mp3 -c:v copy -filter_complex "[1:a]aform
at = fltp:44100:stereo,apad[0a];[1]aformat=fltp:44100:stereo,volume=0.1[1a];[0a]
[1a]amerge[a]" -map 0:v -map "[a]" -ac 2 -t 0 out.mpg
ffmpeg version N-78949-g6f5048f Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopenc
ore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --ena
ble-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable
-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --ena
ble-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx
264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable
-lzma --enable-decklink --enable-zlib
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 27.101 / 57. 27.101
libavformat 57. 28.100 / 57. 28.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 39.100 / 6. 39.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
Input #0, mpeg, from 'vid.mpg':
Duration: 00:00:33.62, start: 0.529978, bitrate: 22407 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 1920x1080 [SAR 1:
1 DAR 16:9], max. 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
[mp3 @ 00000000003e3c20] Skipping 0 bytes of junk at 253.
Input #1, mp3, from 'aud.mp3':
Metadata:
encoder : Lavf57.28.100
Duration: 00:01:03.03, start: 0.025057, bitrate: 128 kb/s
Stream #1:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
Metadata:
encoder : Lavc57.27
File 'out.mpg' already exists. Overwrite
? [y/N] y
[Parsed_amerge_4 @ 00000000003a36e0] No channel layout for input 1
[Parsed_amerge_4 @ 00000000003a36e0] Input channel layouts overlap: output layou
t will be determined by the number of distinct input channels
[mpeg @ 000000000289a4e0] VBV buffer size not set, using default size of 130KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
Output #0, mpeg, to 'out.mpg':
Metadata:
encoder : Lavf57.28.100
Stream #0:0: Video: mpeg2video, yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-3
1, max. 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0:1: Audio: mp2, 44100 Hz, stereo, s16, 384 kb/s (default)
Metadata:
encoder : Lavc57.27.101 mp2
Stream mapping:
Stream #1:0 (mp3) -> aformat
Stream #1:0 (mp3) -> aformat
Stream #0:0 -> #0:0 (copy)
amerge -> Stream #0:1 (mp2)
Press [q] to stop, [?] for help
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=234676 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=234676 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=236705 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=236705 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=238746 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=238746 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=240787 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=240787 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=242828 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=242828 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=244869 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=244869 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=246910 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=246910 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=248951 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=248951 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=250992 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=250992 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=253033 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=253033 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=255074 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=255074 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=257115 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=257115 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=259156 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=259156 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=261197 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=261197 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=263238 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=263238 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=265279 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=265279 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=267320 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=267320 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=269361 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=269361 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=271402 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=271402 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=273443 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=273443 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=275484 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=275484 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=277525 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=277525 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=279566 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=279566 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=281607 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=281607 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=283648 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=283648 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=285689 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=285689 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=287730 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=287730 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=289771 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=289771 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=291812 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=291812 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=293853 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=293853 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=295894 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=295894 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=297935 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=297935 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=299976 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=299976 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=302017 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=302017 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=304058 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=304058 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=306099 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=306099 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=308140 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=308140 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=310181 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=310181 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=312222 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=312222 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=314263 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=314263 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=316304 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=316304 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=318345 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=318345 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=320386 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=320386 size=322616
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=322427 size=322616
[mpeg @ 000000000289a4e0] packet too large, ignoring buffer limits to mux it
[mpeg @ 000000000289a4e0] buffer underflow st=0 bufi=322427 size=322616
frame= 1 fps=0.0 q=-1.0 Lsize= 318kB time=00:00:00.00 bitrate=N/A speed=
0x
video:315kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing o
verhead: 0.934858%
C:\bina\ffmpeg\bin>ffmpeg -i vid.mpg -i
aud.mp3 -c:v copy -filter_complex "[0:a]aform
at = fltp:44100:stereo,apad[0a];[1]aformat=fltp:44100:stereo,volume=0.1[1a];[0a]
[1a]amerge[a]" -map 0:v -map "[a]" -ac 2 -t 0 out.mpgwhat am i doing wrong ? and how can i solve it ?
please help.
-
Record Webcam as single JPG files [on hold]
2 décembre 2016, par clicI have to record a Windows Directshow Webcam video stream (UHD, 30fps, yuyv422) as single JPG images. Performance is important, so preferably by using NVIDIA GPU acceleration via CUDA or something..
What is the most simple but powerful solution, without having to buy proprietary software ?
I had a look at ffmpeg, by recording as MJPEG and then using something like jpegtran to get the JPGs. I tried :
ffmpeg -f dshow -video_size 1920x1080 -framerate 50 -vcodec mjpeg -i video="XI100DUSB-HDMI Video" out.avi
But it results in an I/O error saying ’Could not set video options’. Maybe because of the yuyv422 pixel format of my Magewell USB dongles..
Or is ffmpeg able to record as single JPGs directly somehow ?
If someone has any other idea/solution besides ffmpeg, please let me know too ! Thanks !
EDIT :
I was now able to save JPGs directly, using
webcamimg%04d.jpg
instead ofout.avi
. But it’s always claiming about full real-time buffer. Raising thertbufsize
parameter doesn’t really help..ffmpeg console output :
ffmpeg version 3.2 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-li
bopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.100 / 57. 64.100
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
[dshow @ 0000000001c628a0] Could not set video options
video=XI100DUSB-HDMI Video: I/O errorOutput of : ffmpeg -list_options true -f dshow -i video="XI100DUSB-HDMI Video"
[dshow @ 00000000004d71e0] DirectShow video device options (from video devices)
[dshow @ 00000000004d71e0] Pin "Capture" (alternative pin name "0")
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1920x1080 fps=15 max s=1920x1080 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1920x1080 fps=15 max s=1920x1080 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=640x360 fps=15 max s=640x360 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=640x360 fps=15 max s=640x360 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=640x480 fps=15 max s=640x480 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=640x480 fps=15 max s=640x480 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=720x480 fps=15 max s=720x480 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=720x480 fps=15 max s=720x480 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=720x576 fps=15 max s=720x576 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=720x576 fps=15 max s=720x576 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=768x576 fps=15 max s=768x576 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=768x576 fps=15 max s=768x576 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=800x600 fps=15 max s=800x600 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=800x600 fps=15 max s=800x600 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=856x480 fps=15 max s=856x480 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=856x480 fps=15 max s=856x480 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=960x540 fps=15 max s=960x540 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=960x540 fps=15 max s=960x540 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1024x576 fps=15 max s=1024x576 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1024x576 fps=15 max s=1024x576 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1024x768 fps=15 max s=1024x768 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1024x768 fps=15 max s=1024x768 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x720 fps=15 max s=1280x720 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x720 fps=15 max s=1280x720 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x800 fps=15 max s=1280x800 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x800 fps=15 max s=1280x800 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x960 fps=15 max s=1280x960 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x960 fps=15 max s=1280x960 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x1024 fps=15 max s=1280x1024 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1280x1024 fps=15 max s=1280x1024 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1368x768 fps=15 max s=1368x768 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1368x768 fps=15 max s=1368x768 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1440x900 fps=15 max s=1440x900 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1440x900 fps=15 max s=1440x900 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1600x1200 fps=15 max s=1600x1200 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1600x1200 fps=15 max s=1600x1200 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1680x1050 fps=15 max s=1680x1050 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1680x1050 fps=15 max s=1680x1050 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1920x1200 fps=15 max s=1920x1200 fps=59.9999
[dshow @ 00000000004d71e0] pixel_format=yuyv422 min s=1920x1200 fps=15 max s=1920x1200 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1920x1080 fps=15 max s=1920x1080 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1920x1080 fps=15 max s=1920x1080 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=640x360 fps=15 max s=640x360 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=640x360 fps=15 max s=640x360 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=640x480 fps=15 max s=640x480 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=640x480 fps=15 max s=640x480 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=720x480 fps=15 max s=720x480 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=720x480 fps=15 max s=720x480 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=720x576 fps=15 max s=720x576 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=720x576 fps=15 max s=720x576 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=768x576 fps=15 max s=768x576 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=768x576 fps=15 max s=768x576 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=800x600 fps=15 max s=800x600 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=800x600 fps=15 max s=800x600 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=856x480 fps=15 max s=856x480 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=856x480 fps=15 max s=856x480 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=960x540 fps=15 max s=960x540 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=960x540 fps=15 max s=960x540 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1024x576 fps=15 max s=1024x576 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1024x576 fps=15 max s=1024x576 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1024x768 fps=15 max s=1024x768 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1024x768 fps=15 max s=1024x768 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x720 fps=15 max s=1280x720 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x720 fps=15 max s=1280x720 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x800 fps=15 max s=1280x800 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x800 fps=15 max s=1280x800 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x960 fps=15 max s=1280x960 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x960 fps=15 max s=1280x960 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x1024 fps=15 max s=1280x1024 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1280x1024 fps=15 max s=1280x1024 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1368x768 fps=15 max s=1368x768 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1368x768 fps=15 max s=1368x768 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1440x900 fps=15 max s=1440x900 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1440x900 fps=15 max s=1440x900 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1600x1200 fps=15 max s=1600x1200 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1600x1200 fps=15 max s=1600x1200 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1680x1050 fps=15 max s=1680x1050 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1680x1050 fps=15 max s=1680x1050 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1920x1200 fps=15 max s=1920x1200 fps=59.9999
[dshow @ 00000000004d71e0] unknown compression type 0xE436EB7D min s=1920x1200 fps=15 max s=1920x1200 fps=59.9999
video=XI100DUSB-HDMI Video: Immediate exit requested