
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (104)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (6996)
-
Capture video from webcam using ffmpeg - finish streaming without any data to written it
7 septembre 2017, par RobertI have webcam in my computer and ffmpeg 3.3.0
I run this command :ffmpeg -y -f vfwcap -r 25 -i 0 out1.mp4
I have no errors but the output file is empty.
c:\..\bin>ffmpeg -y -f vfwcap -r 25 -i 0 out1.mp4
ffmpeg version N-87130-g2b9fd15 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.1.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --e
nable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --
enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-li
bfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug -
-enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enabl
e-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-li
bsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolam
e --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-zlib
libavutil 55. 74.100 / 55. 74.100
libavcodec 57.104.100 / 57.104.100
libavformat 57. 79.100 / 57. 79.100
libavdevice 57. 8.100 / 57. 8.100
libavfilter 6.101.100 / 6.101.100
libswscale 4. 7.103 / 4. 7.103
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
Input #0, vfwcap, from '0':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 25 fps,
1k tbr, 1k tbn, 1k tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
Finishing stream 0:0 without any data written to it.
[libx264 @ 00000000004f5160] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX FMA3 BMI2 AVX2
[libx264 @ 00000000004f5160] profile High 4:2:2, level 3.0, 4:2:2 8-bit
[libx264 @ 00000000004f5160] 264 - core 152 r2851 ba24899 - H.264/MPEG-4 AVC cod
ec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 r
ef=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_pski
p=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 deci
mate=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=2
5 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.6
0 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'out1.mp4':
Metadata:
encoder : Lavf57.79.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv422p, 640x480, q=
-1--1, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc57.104.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame= 0 fps=0.0 q=0.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 ove
rhead: unknown
Exiting normally, received signal 2.
c:\..\bin>My operating system is Windows 7.
-
Set timeout on ffmpeg process
30 octobre 2013, par Thomas VervikSometims ffmpeg never completes, and thereby preventing conversions of other videos in the queue. Is it possible to set some sort of timeout in ffmpeg such that it terminates if it isnt finished within some given time, example 5 min
My command looks like this today :
ffmpeg -i /home/tomcat/bsafevideo/1efef9daa7f5000ed83d67f6fbd0e7d9/aad5adc307c4dd7e457509423a7f3734/69451c31cd592e86138423f6849d8141 -y -r 24 -ar 22050 -f mov -vf [in]transpose=1[rt0],[rt0]scale=iw*480/ih:480[sc0],[sc0]pad=640:480:140[pd0],movie=/srv/bsafe/tomcat7/webapps/ROOT/resources/images/logo_watermark.png [wm],[pd0][wm] overlay=W-w-140:0[out] /home/tomcat/bsafevideo/1efef9daa7f5000ed83d67f6fbd0e7d9/aad5adc307c4dd7e457509423a7f3734/69451c31cd592e86138423f6849d8141.mov -ar 22050 -b 1500k -vcodec libtheora -acodec libvorbis -f ogg -vf [in]transpose=1[rt0],[rt0]scale=iw*480/ih:480[sc0],[sc0]pad=640:480:140[pd0],movie=/srv/bsafe/tomcat7/webapps/ROOT/resources/images/logo_watermark.png [wm],[pd0][wm] overlay=W-w-140:0[out] /home/tomcat/bsafevideo/1efef9daa7f5000ed83d67f6fbd0e7d9/aad5adc307c4dd7e457509423a7f3734/69451c31cd592e86138423f6849d8141.ogg -ar 22050 -vcodec libx264 -profile baseline -vf [in]transpose=1[rt0],[rt0]scale=iw*480/ih:480[sc0],[sc0]pad=640:480:140[pd0],movie=/srv/bsafe/tomcat7/webapps/ROOT/resources/images/logo_watermark.png [wm],[pd0][wm] overlay=W-w-140:0[out] /home/tomcat/bsafevideo/1efef9daa7f5000ed83d67f6fbd0e7d9/aad5adc307c4dd7e457509423a7f3734/69451c31cd592e86138423f6849d8141_mp4.mp4
UPDATE. Thanks LordNeckBerd, you pointed me in right direction !
So I see now its kind of not ffmpeg really hanging, the issue is that my java code which reads the inputstream from the linux process will block since ffmpeg never returns a end of line, which I see now when Im running the command. This is the blocking line, it waits for more input from me.
Press [q] to stop, [?] for help
So its two issues here now. First is why this particular conversion is failing, and second, how to make sure ffmpeg is not making this (for my Java process) blocking command asking for more input.
C:\Program Files (x86)\Console2>ffmpeg -i C:/projectsGit/bsafe-server/classes/test/bs- base/video/ac7601e2bc3bc1545cd30ad3160f5232 -y -r 24 -ar 22050 -f mov C:/projectsGit/bsafe-server/classes/test/bs-base/video/ac7601e2bc3bc1545cd30ad3160f5232.mov -ar 22050 -b:v 1500k -vcodec libtheora -acodec libvorbis -f ogg C:/projectsGit/bsafe-server/classes/test/bs-base/video/ac7601e2bc3bc1545cd30ad3160f5232.ogg -ar 22050 -vcodec libx264 -profile:v baseline C:/projectsGit/bsafe-server/classes/test/bs-base/video/ac7601e2bc3bc1545cd30ad3160f5232_mp4.mp4
ffmpeg version N-54762-g38b701a Copyright (c) 2000-2013 the FFmpeg developers
built on Jul 15 2013 18:47:20 with gcc 4.7.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth -- enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable- libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable- libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable- libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable- libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame - -enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable- libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 39.100 / 52. 39.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 12.102 / 55. 12.102
libavdevice 55. 3.100 / 55. 3.100
libavfilter 3. 81.101 / 3. 81.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:/projectsGit/bsafe-server/classes/test/bs- base/video/ac7601e2bc3bc1545cd30ad3160f5232':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
creation_time : 2013-01-15 05:46:02
Duration: 00:00:10.03, start: 0.000000, bitrate: 394 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 640x480, 264 kb/s, SAR 65536:65536 DAR 4:3, 10.95 fps, 90k tbr, 90k tbn, 180k tbc
Metadata:
creation_time : 2013-01-15 05:46:02
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 127 kb/s
Metadata:
creation_time : 2013-01-15 05:46:02
handler_name : SoundHandle
[ogg @ 00000000027d7860] Frame rate very high for a muxer not efficiently supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2
[mp4 @ 00000000027dacc0] Frame rate very high for a muxer not efficiently supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2
[libx264 @ 0000000003e6b9c0] using SAR=1/1
[libx264 @ 0000000003e6b9c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0000000003e6b9c0] profile High, level 3.0
[libx264 @ 0000000003e6b9c0] 264 - core 133 r2334 a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - 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.00
[libx264 @ 00000000027db4a0] using SAR=1/1
[libx264 @ 00000000027db4a0] MB rate (108000000) > level limit (2073600)
[libx264 @ 00000000027db4a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 00000000027db4a0] profile Constrained Baseline, level 5.2
[libx264 @ 00000000027db4a0] 264 - core 133 r2334 a3ac64b - H.264/MPEG-4 AVC codec - Copyleft 2003-2013 - http://www.videolan.org/x264.html - options: cabac=0 ref=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 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=0 weightp=0 keyint=250 keyint_min=25 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, mov, to 'C:/projectsGit/bsafe-server/classes/test/bs- base/video/ac7601e2bc3bc1545cd30ad3160f5232.mov':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
encoder : Lavf55.12.102
Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 12288 tbn, 24 tbc
Metadata:
creation_time : 2013-01-15 05:46:02
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (libvo_aacenc) (mp4a / 0x6134706D), 22050 Hz, mono, s16, 128 kb/s
Metadata:
creation_time : 2013-01-15 05:46:02
handler_name : SoundHandle
Output #1, ogg, to 'C:/projectsGit/bsafe-server/classes/test/bs-base/video/ac7601e2bc3bc1545cd30ad3160f5232.ogg':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
encoder : Lavf55.12.102
Stream #1:0(eng): Video: theora (libtheora), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 1500 kb/s, 90k tbn, 90k tbc
Metadata:
creation_time : 2013-01-15 05:46:02
handler_name : VideoHandle
Stream #1:1(eng): Audio: vorbis (libvorbis), 22050 Hz, mono, fltp
Metadata:
creation_time : 2013-01-15 05:46:02
handler_name : SoundHandle
Output #2, mp4, to 'C:/projectsGit/bsafe-server/classes/test/bs-base/video/ac7601e2bc3bc1545cd30ad3160f5232_mp4.mp4':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
encoder : Lavf55.12.102
Stream #2:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=-1--1, 90k tbn, 90k tbc
Metadata:
creation_time : 2013-01-15 05:46:02
handler_name : VideoHandle
Stream #2:1(eng): Audio: aac (libvo_aacenc) ([64][0][0][0] / 0x0040), 22050 Hz, mono, s16, 128 kb/s
Metadata:
creation_time : 2013-01-15 05:46:02
handler_name : SoundHandle
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:1 -> #0:1 (aac -> libvo_aacenc)
Stream #0:0 -> #1:0 (h264 -> libtheora)
Stream #0:1 -> #1:1 (aac -> libvorbis)
Stream #0:0 -> #2:0 (h264 -> libx264)
Stream #0:1 -> #2:1 (aac -> libvo_aacenc)
Press [q] to stop, [?] for help -
FFMPEG frames lost
4 juin 2018, par ST94I use ffmpeg to stream video from the source to destination. The workflow is as follows,
At the source using ffmpeg, I stream live feed from a webcam using tcp and also save a copy of the live video as mp4 file locally and the command I use is$ ffmpeg -hide_banner -f v4l2 -i /dev/video0 -filter:v "fps=30" -c:v libx264 -f mpegts tcp://hostname:port -c:v libx264 /path/to/.mp4file
`Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 272402.639303, bitrate: 147456 kb/s
Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Stream #0:0 -> #1:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
No pixel format specified, yuv422p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x55e421ec9560] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x55e421ec9560] profile High 4:2:2, level 3.0, 4:2:2 8-bit
Output #0, mpegts, to 'tcp://172.16.0.169:50000':
Metadata:
encoder : Lavf57.71.100
Stream #0:0: Video: h264 (libx264), yuv422p, 640x480, q=-1--1, 30 fps, 90k tbn, 30 tbc
Metadata:
encoder : Lavc57.89.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
No pixel format specified, yuv422p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x55e421ed5ea0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x55e421ed5ea0] profile High 4:2:2, level 3.0, 4:2:2 8-bit
[libx264 @ 0x55e421ed5ea0] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=25 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 #1, mp4, to '/path/to/tcp.mp4':
Metadata:
encoder : Lavf57.71.100
Stream #1:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv422p, 640x480, q=-1--1, 30 fps, 15360 tbn, 30 tbc
Metadata:
encoder : Lavc57.89.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[sana@localhost ~]$ frame= 978 fps= 30 q=-1.0 Lq=-1.0 size= 5062kB time=00:00:32.53 bitrate=1274.6kbits/s dup=514 drop=0 speed=0.991x
video:9174kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x55e421ec9560] frame I:463 Avg QP:19.03 size: 9994
[libx264 @ 0x55e421ec9560] frame P:476 Avg QP:22.85 size: 137
[libx264 @ 0x55e421ec9560] frame B:39 Avg QP:23.33 size: 19
[libx264 @ 0x55e421ec9560] consecutive B-frames: 94.7% 0.0% 0.0% 5.3%
[libx264 @ 0x55e421ec9560] mb I I16..4: 60.4% 39.0% 0.5%
[libx264 @ 0x55e421ec9560] mb P I16..4: 0.2% 0.0% 0.0% P16..4: 4.2% 0.3% 0.5% 0.0% 0.0% skip:94.8%
[libx264 @ 0x55e421ec9560] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.0% skip:100.0% L0:15.4% L1:84.6% BI: 0.0%
[libx264 @ 0x55e421ec9560] 8x8 transform intra:38.9% inter:100.0%
[libx264 @ 0x55e421ec9560] coded y,uvDC,uvAC intra: 34.9% 97.2% 83.8% inter: 0.0% 1.5% 0.0%
[libx264 @ 0x55e421ec9560] i16 v,h,dc,p: 0% 31% 0% 69%
[libx264 @ 0x55e421ec9560] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 3% 50% 16% 4% 2% 1% 6% 1% 17%
[libx264 @ 0x55e421ec9560] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 52% 14% 4% 7% 3% 5% 1% 3%
[libx264 @ 0x55e421ec9560] i8c dc,h,v,p: 55% 12% 25% 8%
[libx264 @ 0x55e421ec9560] Weighted P-Frames: Y:0.2% UV:0.0%
[libx264 @ 0x55e421ec9560] ref P L0: 96.7% 0.5% 2.7% 0.1%
[libx264 @ 0x55e421ec9560] kb/s:1151.61
[libx264 @ 0x55e421ed5ea0] frame I:463 Avg QP:19.02 size: 10007
[libx264 @ 0x55e421ed5ea0] frame P:477 Avg QP:22.84 size: 140
[libx264 @ 0x55e421ed5ea0] frame B:39 Avg QP:23.33 size: 19
[libx264 @ 0x55e421ed5ea0] consecutive B-frames: 94.7% 0.0% 0.0% 5.3%
[libx264 @ 0x55e421ed5ea0] mb I I16..4: 60.4% 39.0% 0.5%
[libx264 @ 0x55e421ed5ea0] mb P I16..4: 0.3% 0.0% 0.0% P16..4: 4.2% 0.3% 0.5% 0.0% 0.0% skip:94.8%
[libx264 @ 0x55e421ed5ea0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.0% skip:100.0% L0:15.4% L1:84.6% BI: 0.0%
[libx264 @ 0x55e421ed5ea0] 8x8 transform intra:38.9% inter:100.0%
[libx264 @ 0x55e421ed5ea0] coded y,uvDC,uvAC intra: 35.0% 97.2% 84.0% inter: 0.0% 1.6% 0.0%
[libx264 @ 0x55e421ed5ea0] i16 v,h,dc,p: 0% 31% 0% 69%
[libx264 @ 0x55e421ed5ea0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 3% 50% 16% 4% 2% 1% 6% 1% 17%
[libx264 @ 0x55e421ed5ea0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 52% 14% 4% 7% 3% 5% 1% 3%
[libx264 @ 0x55e421ed5ea0] i8c dc,h,v,p: 55% 12% 25% 8%
[libx264 @ 0x55e421ed5ea0] Weighted P-Frames: Y:0.2% UV:0.0%
[libx264 @ 0x55e421ed5ea0] ref P L0: 96.8% 0.5% 2.7% 0.1%
[libx264 @ 0x55e421ed5ea0] kb/s:1152.39`At the receiver, I take the tcp url as the input and output it to an mp4 file.
$ffmpeg -hide_banner -i tcp://hostname:port?listen out.mp4 /path/to/.mp4
The output is
`Input #0, mpegts, from 'tcp://172.16.0.169:50000?listen':
Duration: N/A, start: 1.466667, bitrate: N/A
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0[0x100]: Video: h264 (High 4:2:2) ([27][0][0][0] / 0x001B), yuv422p(progressive), 640x480, 30 fps, 30 tbr, 90k tbn, 60 tbc
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
No pixel format specified, yuv422p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x55c1d6bff0a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x55c1d6bff0a0] profile High 4:2:2, level 3.0, 4:2:2 8-bit
[libx264 @ 0x55c1d6bff0a0] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=25 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 '/home/sana/Desktop/receiver_new_mp4/tcp2.mp4':
Metadata:
encoder : Lavf57.71.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv422p, 640x480, q=-1--1, 30 fps, 15360 tbn, 30 tbc
Metadata:
encoder : Lavc57.89.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame= 160 fps=0.0 q=26.0 size= 158kB time=00:00:03.36 bitrate= 384.5kbits/frame= 175 fps=168 q=26.0 size= 200kB time=00:00:03.86 bitrate= 424.8kbits/frame= 190 fps=119 q=26.0 size= 242kB time=00:00:04.36 bitrate= 453.3kbits/frame= 206 fps= 97 q=29.0 size= 292kB time=00:00:04.90 bitrate= 487.8kbits/frame= 222 fps= 84 q=29.0 size= 336kB time=00:00:05.43 bitrate= 506.5kbits/frame= 238 fps= 75 q=29.0 size= 378kB time=00:00:05.96 bitrate= 519.2kbits/frame= 254 fps= 68 q=29.0 size= 422kB time=00:00:06.50 bitrate= 531.6kbits/frame= 270 fps= 64 q=26.0 size= 457kB time=00:00:07.03 bitrate= 532.0kbits/frame= 286 fps= 60 q=29.0 size= 511kB time=00:00:07.56 bitrate= 552.8kbits/frame= 302 fps= 57 q=26.0 size= 562kB time=00:00:08.10 bitrate= 568.3kbits/frame= 318 fps= 54 q=26.0 size= 609kB time=00:00:08.63 bitrate= 577.9kbits/frame= 334 fps= 52 q=26.0 size= 674kB time=00:00:09.16 bitrate= 602.7kbits/frame= 350 fps= 51 q=29.0 size= 719kB time=00:00:09.70 bitrate= 606.8kbits/frame= 366 fps= 49 q=26.0 size= 770kB time=00:00:10.23 bitrate= 616.1kbits/frame= 382 fps= 48 q=29.0 size= 828kB time=00:00:10.76 bitrate= 630.3kbits/frame= 398 fps= 47 q=26.0 size= 872kB time=00:00:11.30 bitrate= 632.0kbits/frame= 414 fps= 46 q=26.0 size= 933kB time=00:00:11.83 bitrate= 645.9kbits/frame= 430 fps= 45 q=29.0 size= 987kB time=00:00:12.36 bitrate= 653.9kbits/frame= 446 fps= 44 q=26.0 size= 1033kB time=00:00:12.90 bitrate= 656.2kbits/frame= 462 fps= 43 q=29.0 size= 1098kB time=00:00:13.43 bitrate= 669.7kbits/frame= 478 fps= 43 q=29.0 size= 1132kB time=00:00:13.96 bitrate= 664.2kbits/frame= 548 fps= 47 q=-1.0 Lsize= 1536kB time=00:00:18.16 bitrate= 692.8kbits/s speed=1.56x
video:1531kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.377405%
[libx264 @ 0x55c1d6bff0a0] frame I:115 Avg QP:18.12 size: 8204
[libx264 @ 0x55c1d6bff0a0] frame P:203 Avg QP:21.62 size: 1893
[libx264 @ 0x55c1d6bff0a0] frame B:230 Avg QP:21.99 size: 1039
[libx264 @ 0x55c1d6bff0a0] consecutive B-frames: 41.1% 6.6% 7.1% 45.3%
[libx264 @ 0x55c1d6bff0a0] mb I I16..4: 67.6% 32.3% 0.1%
[libx264 @ 0x55c1d6bff0a0] mb P I16..4: 15.3% 3.1% 0.0% P16..4: 28.6% 2.8% 2.0% 0.0% 0.0% skip:48.3%
[libx264 @ 0x55c1d6bff0a0] mb B I16..4: 0.8% 0.3% 0.0% B16..8: 26.2% 0.4% 0.0% direct:13.5% skip:58.7% L0:65.0% L1:34.5% BI: 0.5%
[libx264 @ 0x55c1d6bff0a0] 8x8 transform intra:28.4% inter:100.0%
[libx264 @ 0x55c1d6bff0a0] coded y,uvDC,uvAC intra: 15.0% 89.4% 53.1% inter: 2.6% 28.7% 0.2%
[libx264 @ 0x55c1d6bff0a0] i16 v,h,dc,p: 2% 49% 1% 47%
[libx264 @ 0x55c1d6bff0a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 6% 57% 19% 2% 1% 1% 4% 1% 9%
[libx264 @ 0x55c1d6bff0a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 59% 18% 1% 2% 1% 2% 0% 1%
[libx264 @ 0x55c1d6bff0a0] i8c dc,h,v,p: 52% 17% 27% 4%
[libx264 @ 0x55c1d6bff0a0] Weighted P-Frames: Y:17.7% UV:6.9%
[libx264 @ 0x55c1d6bff0a0] ref P L0: 68.7% 0.7% 18.3% 10.6% 1.7%
[libx264 @ 0x55c1d6bff0a0] ref B L0: 86.1% 10.6% 3.3%
[libx264 @ 0x55c1d6bff0a0] ref B L1: 96.6% 3.4%
[libx264 @ 0x55c1d6bff0a0] kb/s:686.10`From the ffmpeg processes running on both ends, if you notice the number of B frames at the receiver is more than the B frames at the sender. In other cases that I tried, the number of I as well as P frames are higher at the receiver than that at the sender.
Can anyone please tell me why is it so ? I am not able to figure out why.