
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (41)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
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) (...)
Sur d’autres sites (4969)
-
Video becomes choppy when the order in the hstack filter is changed
25 octobre 2018, par MayankI have a FFmpeg command wherein I am merging 2 videos side by side using hstack filter. When I place first video on the right hand side and second video on the left hand side, the final merged video is perfect in quality and plays smoothly.
However, when I swap the order in hstack filter, the final video is very choppy.
Can someone please let me know the issue in this command ? Many thanks in advance.
Also, the file size of the non working file is almost double than that of working file. Can you explain why ?
Here is the working command :
ffmpeg -i 1_a.opus -i 2_a.opus -itsoffset 0.024 -i 1_v.mp4 -itsoffset 0.113 -i 2_v.mp4 -filter_complex "[1:a]adelay=15646|15646[a1]; [0:a][a1]amix; [3:v]trim=0:15.646,geq=0:128:128[silence]; [3:v]fifo[3v]; [silence][3v]concat[3_v_silence]; [3_v_silence][2:v]hstack" -preset ultrafast -y n_m_bars_try2.mp4
output :
ffmpeg version 4.0.2-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, ogg, from '1_a.opus':
Duration: 00:01:03.82, start: -0.020000, bitrate: 37 kb/s
Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp
Input #1, ogg, from '2_a.opus':
Duration: 00:00:52.40, start: -0.020000, bitrate: 44 kb/s
Stream #1:0: Audio: opus, 48000 Hz, stereo, fltp
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '1_v.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.12.100
Duration: 00:01:03.85, start: 0.000000, bitrate: 2644 kb/s
Stream #2:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 2633 kb/s, 333 fps, 333 tbr, 10656 tbn, 666 tbc (default)
Metadata:
handler_name : VideoHandler
Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '2_v.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.12.100
Duration: 00:00:52.32, start: 0.000000, bitrate: 861 kb/s
Stream #3:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 860 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream mapping:
Stream #0:0 (opus) -> amix:input0
Stream #1:0 (opus) -> adelay
Stream #2:0 (h264) -> hstack:input1
Stream #3:0 (h264) -> trim
Stream #3:0 (h264) -> fifo
amix -> Stream #0:0 (aac)
hstack -> Stream #0:1 (libx264)
Press [q] to stop, [?] for help
[libx264 @ 0x528d600] using SAR=1/1
[libx264 @ 0x528d600] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
[libx264 @ 0x528d600] profile Constrained Baseline, level 3.1
[libx264 @ 0x528d600] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
Output #0, mp4, to 'navid_mayank_bars_try2.mp4':
Metadata:
encoder : Lavf58.12.100
Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
encoder : Lavc58.18.100 aac
Stream #0:1: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x480 [SAR 1:1 DAR 8:3], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
Metadata:
encoder : Lavc58.18.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame= 1704 fps= 42 q=-1.0 Lsize= 14440kB time=00:01:08.12 bitrate=1736.5kbits/s dup=3 drop=21229 speed=1.69x
video:13448kB audio:953kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.269503%
[aac @ 0x52b8680] Qavg: 22255.799
[libx264 @ 0x528d600] frame I:7 Avg QP:16.29 size: 46284
[libx264 @ 0x528d600] frame P:1697 Avg QP:18.36 size: 7924
[libx264 @ 0x528d600] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 0x528d600] mb P I16..4: 1.8% 0.0% 0.0% P16..4: 31.0% 0.0% 0.0% 0.0% 0.0% skip:67.2%
[libx264 @ 0x528d600] coded y,uvDC,uvAC intra: 29.9% 59.3% 17.5% inter: 13.4% 24.6% 0.8%
[libx264 @ 0x528d600] i16 v,h,dc,p: 36% 29% 18% 17%
[libx264 @ 0x528d600] i8c dc,h,v,p: 42% 25% 21% 11%
[libx264 @ 0x528d600] kb/s:1616.23Non working command :
ffmpeg -i 1_a.opus -i 2_a.opus -itsoffset 0.024 -i 1_v.mp4 -itsoffset 0.113 -i 2_v.mp4 -filter_complex "[1:a]adelay=15646|15646[a1]; [0:a][a1]amix; [3:v]trim=0:15.646,geq=0:128:128[silence]; [3:v]fifo[3v]; [silence][3v]concat[3_v_silence]; [2:v][3_v_silence]hstack" -preset ultrafast -y m_n_bars_try2.mp4
output :
ffmpeg version 4.0.2-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc-6 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, ogg, from '1_a.opus':
Duration: 00:01:03.82, start: -0.020000, bitrate: 37 kb/s
Stream #0:0: Audio: opus, 48000 Hz, stereo, fltp
Input #1, ogg, from '2_a.opus':
Duration: 00:00:52.40, start: -0.020000, bitrate: 44 kb/s
Stream #1:0: Audio: opus, 48000 Hz, stereo, fltp
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '1_v.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.12.100
Duration: 00:01:03.85, start: 0.000000, bitrate: 2644 kb/s
Stream #2:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 2633 kb/s, 333 fps, 333 tbr, 10656 tbn, 666 tbc (default)
Metadata:
handler_name : VideoHandler
Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '2_v.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.12.100
Duration: 00:00:52.32, start: 0.000000, bitrate: 861 kb/s
Stream #3:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 860 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
Stream mapping:
Stream #0:0 (opus) -> amix:input0
Stream #1:0 (opus) -> adelay
Stream #2:0 (h264) -> hstack:input0
Stream #3:0 (h264) -> trim
Stream #3:0 (h264) -> fifo
amix -> Stream #0:0 (aac)
hstack -> Stream #0:1 (libx264)
Press [q] to stop, [?] for help
[libx264 @ 0x6d21600] using SAR=1/1
[libx264 @ 0x6d21600] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
[libx264 @ 0x6d21600] profile Constrained Baseline, level 5.1
[libx264 @ 0x6d21600] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
Output #0, mp4, to 'mayank_navid_bars_try2.mp4':
Metadata:
encoder : Lavf58.12.100
Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
encoder : Lavc58.18.100 aac
Stream #0:1: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1280x480 [SAR 1:1 DAR 8:3], q=-1--1, 333 fps, 10656 tbn, 333 tbc (default)
Metadata:
encoder : Lavc58.18.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Past duration 0.999992 too large
Last message repeated 12 times
More than 1000 frames duplicated 33280kB time=00:01:08.03 bitrate=4007.4kbits/s dup=982 drop=1590 speed=0.536x
frame=22679 fps=177 q=-1.0 Lsize= 33892kB time=00:01:08.10 bitrate=4076.9kbits/s dup=1339 drop=1590 speed=0.531x
video:32804kB audio:953kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.401324%
[aac @ 0x6d4c680] Qavg: 22255.799
[libx264 @ 0x6d21600] frame I:91 Avg QP:15.31 size: 51639
[libx264 @ 0x6d21600] frame P:22588 Avg QP:18.24 size: 1279
[libx264 @ 0x6d21600] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 0x6d21600] mb P I16..4: 0.2% 0.0% 0.0% P16..4: 13.0% 0.0% 0.0% 0.0% 0.0% skip:86.8%
[libx264 @ 0x6d21600] coded y,uvDC,uvAC intra: 44.9% 54.0% 29.9% inter: 2.0% 10.9% 0.1%
[libx264 @ 0x6d21600] i16 v,h,dc,p: 45% 24% 13% 18%
[libx264 @ 0x6d21600] i8c dc,h,v,p: 51% 20% 18% 11%
[libx264 @ 0x6d21600] kb/s:3945.79 -
FFMPEG intermittent failures reading live RTMP stream
22 janvier 2019, par stevendesuThe Command
I’m attempting to read a live RTMP stream and save the result to a file with the following command :
ffmpeg -re -rtmp_live live -y -i "rtmp://<server>/<app>/<stream>" -c copy -f flv /tmp/dump.flv
</stream></app></server>I run this command then after 10-15 seconds I kill the process and check
/tmp/dump.flv
. I’m trying to do this for stream diagnostic purposes (determine the encoding, bitrate, resolution, pixel format, and key frame interval of the live stream)This command works about 25-50% of the time. When it works FFMPEG takes about 5 seconds to connect to the stream, then it begins dumping data to disk. After I kill the process, I can find a couple of megabytes of video data in
/tmp/dump.flv
which can be probed usingffprobe
.When the command fails, it goes into one of two failure states :
Failure State 1
stderr is flooded with a series of messages about "missing picture in access unit with size X", and the output file
/tmp/dump.flv
is created but contains 0 bytesffmpeg version 3.4.4-1~16.04.york0 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
configuration: --prefix=/usr --extra-version='1~16.04.york0' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --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-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
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
[NULL @ 0x55b72d568920] pps_id 381 out of range
[AVBSFContext @ 0x55b72d5692c0] Invalid NAL unit 0, skipping.
Last message repeated 1 times
[h264 @ 0x55b72d568920] Invalid NAL unit 0, skipping.
Last message repeated 1 times
[h264 @ 0x55b72d568920] no frame!
[h264 @ 0x55b72d568920] missing picture in access unit with size 2200
[AVBSFContext @ 0x55b72d5692c0] Invalid NAL unit 0, skipping.
Last message repeated 2 times
[h264 @ 0x55b72d568920] Invalid NAL unit 0, skipping.
Last message repeated 2 times
[h264 @ 0x55b72d568920] no frame!
[h264 @ 0x55b72d568920] missing picture in access unit with size 3171
[AVBSFContext @ 0x55b72d5692c0] Invalid NAL unit 0, skipping.
[h264 @ 0x55b72d568920] Invalid NAL unit 0, skipping.
[h264 @ 0x55b72d568920] no frame!
[NULL @ 0x55b72d568920] missing picture in access unit with size 80572
[h264 @ 0x55b72d568920] missing picture in access unit with size 1560
[h264 @ 0x55b72d568920] missing picture in access unit with size 2608
[h264 @ 0x55b72d568920] non-existing PPS 0 referenced
[h264 @ 0x55b72d568920] missing picture in access unit with size 2734
[h264 @ 0x55b72d568920] missing picture in access unit with size 2885
[h264 @ 0x55b72d568920] missing picture in access unit with size 77739
[h264 @ 0x55b72d568920] non-existing PPS 254 referenced
[h264 @ 0x55b72d568920] missing picture in access unit with size 3360
[h264 @ 0x55b72d568920] missing picture in access unit with size 2804
[h264 @ 0x55b72d568920] missing picture in access unit with size 3051
[h264 @ 0x55b72d568920] missing picture in access unit with size 3067
[h264 @ 0x55b72d568920] missing picture in access unit with size 77693
[h264 @ 0x55b72d568920] non-existing PPS 0 referenced
[h264 @ 0x55b72d568920] missing picture in access unit with size 2421
[h264 @ 0x55b72d568920] missing picture in access unit with size 2779
[h264 @ 0x55b72d568920] missing picture in access unit with size 2442
[h264 @ 0x55b72d568920] missing picture in access unit with size 2678
[h264 @ 0x55b72d568920] missing picture in access unit with size 76877
[h264 @ 0x55b72d568920] sps_id 15 out of range
[h264 @ 0x55b72d568920] missing picture in access unit with size 1342
[h264 @ 0x55b72d568920] missing picture in access unit with size 2412
[h264 @ 0x55b72d568920] missing picture in access unit with size 2238
[h264 @ 0x55b72d568920] missing picture in access unit with size 3550
[h264 @ 0x55b72d568920] missing picture in access unit with size 3075
...
(after hitting Ctrl+C:)
Input #0, flv, from 'rtmp://<server>/<app>/<stream>':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.83.100
Duration: 00:00:00.00, start: 5285.919000, bitrate: N/A
Stream #0:0: Video: h264 (Constrained Baseline), yuv420p, 1920x1080, 2543 kb/s, 24 fps, 24 tbr, 1k tbn, 48 tbc
Output #0, flv, to '/tmp/dump.flv':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.83.100
Stream #0:0: Video: h264 (Constrained Baseline) ([7][0][0][0] / 0x0007), yuv420p, 1920x1080, q=2-31, 2543 kb/s, 24 fps, 24 tbr, 1k tbn, 1k tbc
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 0 fps=0.0 q=-1.0 Lsize= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Exiting normally, received signal 2.
</stream></app></server>Failure State 2
The message "No start code is found." is displayed and FFMPEG immediately terminates after less than a half-second. When this happens the file
/tmp/dump.flv
is not created.ffmpeg version 3.4.4-1~16.04.york0 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
configuration: --prefix=/usr --extra-version='1~16.04.york0' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --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-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
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
[NULL @ 0x56274b0be920] missing picture in access unit with size 3710
[AVBSFContext @ 0x56274b0bf2c0] No start code is found.
rtmp://<server>/<app>/<stream>: could not find codec parameters
Input #0, flv, from 'rtmp://<server>/<app>/<stream>':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.83.100
Duration: 00:00:00.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264, none, 2543 kb/s, 24 fps, 1k tbn
Output #0, flv, to '/tmp/dump.flv':
Output file #0 does not contain any stream
</stream></app></server></stream></app></server>What I’ve tried
- Adding or removing
-re
to try and limit the input frame rate to the source frame rate - Adding or removing
-rtmp_live live
- Adding or removing
-timeout 5
(or any other timeout value) - Using RTMP URL parameters (e.g.
-i "rtmp://<server>/<app>/<stream> live=1 timeout=5"</stream></app></server>
)
Does anyone know why this command’s success is so intermittent or how I can get more consistent results ?
Alternate Acceptable Solution
The only reason I’m using
ffmpeg
to dump the stream to a temporary file at all is because I plan to perform multiple tests on the file (at least two at the moment — one to get the encoding, and another to get the key frame interval). By downloading the stream I reduce bandwidth usage and reduce runtime. However it’s perfectly acceptable to foregoffmpeg
and just useffprobe
directly on the RTMP URL if this would help.Note that I did try this and I get the same two failure states with
ffprobe
- Adding or removing
-
First overlay text not lasting
14 octobre 2018, par Pier Giorgio MisleyI have this snippet of code, adding two overlayed texts with same effects/durations in two different part of my video.
-i "input.mp4" -filter_complex "color=black:100x100,format=yuva444p[c];[c][0]scale2ref[ct][mv0]; [ct]setsar=1,split=2[t1][t2]; [t1]drawtext=fontfile=Arial.ttf:text='Pippo':fontcolor=white:fontsize=32:box=1: boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2 - 20,fade=t=in:st=6:d=2:alpha=1,fade=t=out:st=19:d=2:alpha=1[txta1];[t2]drawtext=fontfile=Arial.ttf:text='Topolino':fontcolor=white:fontsize=32:box=1: boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2 + 20,fade=t=in:st=6:d=2:alpha=1,fade=t=out:st=19:d=2:alpha=1[txta2];[mv0][txta1]overlay=0:0:shortest=1[mv1];[mv1][txta2]overlay=0:0:shortest=1" "output.mp4"
Somewhy, the second text, "
Topolino
" lasts perfectly from the fade-in to the fade-out.The first text ("
Pippo
") is appearing and disappearing immediatly.They have the same effect, so what am I doing wrong ?
Thanks
Edit : added output
Error : ffmpeg version N-90893-gcae6f806a6 Copyright (c) 2000-2018 the
FFmpeg developersError : built with gcc 7.3.0 (GCC)
Error : configuration : —enable-gpl —enable-version3 —enable-sdl2
—enable-bzlib —enable-fontconfig —enable-gnutls —enable-iconv —enable-libass —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-avisynthError : libavutil 56. 17.100 / 56. 17.100
Error : libavcodec 58. 19.100 / 58. 19.100
Error : libavformat 58. 13.100 / 58. 13.100
Error : libavdevice 58. 4.100 / 58. 4.100
Error : libavfilter 7. 21.100 / 7. 21.100
Error : libswscale 5. 2.100 / 5. 2.100
Error : libswresample 3. 2.100 / 3. 2.100
Error : libpostproc 55. 2.100 / 55. 2.100
Error : Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’D :\AREA\video.mp4’ :
Error : Metadata :
Error : major_brand : isom
Error : minor_version : 512
Error : compatible_brands : isomiso2avc1mp41
Error : encoder : Lavf58.13.100
Error : Duration : 00:02:12.50, start : 0.000000, bitrate : 3149 kb/s
Error : Stream #0:0(und) : Video : h264 (High) (avc1 / 0x31637661),
yuv420p(tv, bt709), 1024x600 [SAR 1:1 DAR 128:75], 3014 kb/s, 24 fps,
24 tbr, 19200 tbn, 50 tbc (default)Error : Metadata :
Error : handler_name : VideoHandler
Error : timecode : 00:00:00:00
Error : Stream #0:1(und) : Audio : aac (LC) (mp4a / 0x6134706D),
44100 Hz, stereo, fltp, 129 kb/s (default)Error : Metadata :
Error : handler_name : SoundHandler
Error : Stream #0:2(eng) : Data : none (tmcd / 0x64636D74)
Error : Metadata :
Error : handler_name : TimeCodeHandler
Error : timecode : 00:00:00:00
Error : Fontconfig error : Cannot load default config file
Error : [Parsed_drawtext_5 @ 000002a7c251ea00] Using
"C :/WINDOWS/fonts/mingliub.ttc"Error : Fontconfig error : Cannot load default config file
Error : [Parsed_drawtext_8 @ 000002a7c2c52a00] Using
"C :/WINDOWS/fonts/mingliub.ttc"Error : Stream mapping :
Error : Stream #0:0 (h264) -> scale2ref:ref (graph 0)
Error : overlay (graph 0) -> Stream #0:0 (libx264)
Error : Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Error : Press [q] to stop, [?] for help
Error : Fontconfig error : Cannot load default config file
Error : [Parsed_drawtext_5 @ 000002a7c3e6aec0] Using
"C :/WINDOWS/fonts/mingliub.ttc"Error : Fontconfig error : Cannot load default config file
Error : [Parsed_drawtext_8 @ 000002a7c3e6ac80] Using
"C :/WINDOWS/fonts/mingliub.ttc"Error : [libx264 @ 000002a7c2a9d800] using SAR=1/1
Error : [libx264 @ 000002a7c2a9d800] using cpu capabilities : MMX2
SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2Error : [libx264 @ 000002a7c2a9d800] profile High, level 3.1
Error : [libx264 @ 000002a7c2a9d800] 264 - core 155 r2901 7d0ff22 -
H.264/MPEG-4 AVC codec - Copyleft 2003-2018 -
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=12
lookahead_threads=2 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.00Error : Output #0, mp4, to ’D :\AREA\output_text.mp4’ :
Error : Metadata :
Error : major_brand : isom
Error : minor_version : 512
Error : compatible_brands : isomiso2avc1mp41
Error : encoder : Lavf58.13.100
Error : Stream #0:0 : Video : h264 (libx264) (avc1 / 0x31637661),
yuv420p, 1024x600 [SAR 1:1 DAR 128:75], q=-1—1, 24 fps, 12288 tbn, 24
tbc (default)Error : Metadata :
Error : encoder : Lavc58.19.100 libx264
Error : Side data :
Error : cpb : bitrate max/min/avg : 0/0/0 buffer size : 0 vbv_delay :
-1Error : Stream #0:1(und) : Audio : aac (LC) (mp4a / 0x6134706D),
44100 Hz, stereo, fltp, 128 kb/s (default)Error : Metadata :
Error : handler_name : SoundHandler
Error : encoder : Lavc58.19.100 aac
Error : frame= 61 fps=0.0 q=28.0 size= 0kB time=00:00:02.83
bitrate= 0.1kbits/s speed=5.65xError : frame= 137 fps=136 q=28.0 size= 0kB time=00:00:05.99
bitrate= 0.1kbits/s speed=5.94x[...]
Error : frame= 3180 fps= 88 q=-1.0 Lsize= 16533kB time=00:02:12.51
bitrate=1022.0kbits/s speed=3.65xError : video:14352kB audio:2080kB subtitle:0kB other streams:0kB
global headers:0kB muxing overhead : 0.611671%Error : [libx264 @ 000002a7c2a9d800] frame I:14 Avg QP:17.18 size :
42960Error : [libx264 @ 000002a7c2a9d800] frame P:1170 Avg QP:20.09 size :
9916Error : [libx264 @ 000002a7c2a9d800] frame B:1996 Avg QP:21.54 size :
1249Error : [libx264 @ 000002a7c2a9d800] consecutive B-frames : 3.3% 38.3%
2.5% 56.0%Error : [libx264 @ 000002a7c2a9d800] mb I I16..4 : 27.0% 61.1% 11.8%
Error : [libx264 @ 000002a7c2a9d800] mb P I16..4 : 4.3% 5.8% 0.3%
P16..4 : 34.6% 9.8% 7.3% 0.0% 0.0% skip:38.0%Error : [libx264 @ 000002a7c2a9d800] mb B I16..4 : 0.3% 0.5% 0.0%
B16..8 : 19.5% 0.9% 0.1% direct : 2.0% skip:76.6% L0:39.8% L1:55.2%
BI : 5.0%Error : [libx264 @ 000002a7c2a9d800] 8x8 transform intra:57.0%
inter:84.0%Error : [libx264 @ 000002a7c2a9d800] coded y,uvDC,uvAC intra : 33.3%
65.4% 24.9% inter : 10.4% 17.5% 2.4%Error : [libx264 @ 000002a7c2a9d800] i16 v,h,dc,p : 59% 17% 12% 13%
Error : [libx264 @ 000002a7c2a9d800] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu : 35%
15% 33% 2% 3% 3% 3% 3% 2%Error : [libx264 @ 000002a7c2a9d800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu : 36%
18% 13% 4% 6% 7% 6% 6% 4%Error : [libx264 @ 000002a7c2a9d800] i8c dc,h,v,p : 52% 17% 24% 7%
Error : [libx264 @ 000002a7c2a9d800] Weighted P-Frames : Y:29.0%
UV:17.2%Error : [libx264 @ 000002a7c2a9d800] ref P L0 : 65.1% 15.7% 14.5% 4.3%
0.5%Error : [libx264 @ 000002a7c2a9d800] ref B L0 : 89.7% 8.2% 2.1%
Error : [libx264 @ 000002a7c2a9d800] ref B L1 : 98.1% 1.9%
Error : [libx264 @ 000002a7c2a9d800] kb/s:887.30
Error : [aac @ 000002a7c24a6e00] Qavg : 179.786
Error :