Open carlwain74 opened 3 years ago
I'm noticing that when I stream video the output is somewhat accelerated compared to the original.
Are there settings that can control this or is this just an artifact of ffmpeg conversion?
Output from execution:
BeetleJuice:Sample Video cwainwright$ docker run --rm -p 9998:9998/udp -v "$PWD":/mnt eyevinntechnology/toolbox-loopts IN.mp4 udp://host.docker.internal:9998?pkt_size=1316 --withtc --framerate 30 ffmpeg version N-93394-g14eea7c Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --pkg-config-flags=--static --enable-gpl --enable-libfdk-aac --enable-libx264 --enable-libaom --enable-libdav1d --enable-libvpx --enable-libsrt --enable-libx265 --enable-libfreetype --enable-version3 --enable-nonfree libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 47.103 / 58. 47.103 libavformat 58. 26.101 / 58. 26.101 libavdevice 58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 ffmpeg version N-93394-g14eea7c Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --pkg-config-flags=--static --enable-gpl --enable-libfdk-aac --enable-libx264 --enable-libaom --enable-libdav1d --enable-libvpx --enable-libsrt --enable-libx265 --enable-libfreetype --enable-version3 --enable-nonfree libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 47.103 / 58. 47.103 libavformat 58. 26.101 / 58. 26.101 libavdevice 58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/IN.mp4': Metadata: major_brand : mp42 minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 2019-09-27T21:54:50.000000Z title : Media Presentation encoder : HandBrake 1.2.2 2019022300 Duration: 00:10:00.00, start: 0.000000, bitrate: 23548 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 23547 kb/s, 15 fps, 15 tbr, 90k tbn, 180k tbc (default) Metadata: creation_time : 2019-09-27T21:54:50.000000Z handler_name : VideoHandler Output #0, h264, to 'pipe:': Metadata: major_brand : mp42 minor_version : 512 compatible_brands: isomiso2avc1mp41 title : Media Presentation encoder : Lavf58.26.101 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 23547 kb/s, 15 fps, 15 tbr, 90k tbn, 90k tbc (default) Metadata: creation_time : 2019-09-27T21:54:50.000000Z handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [h264 @ 0x5614976989c0] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, h264, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 90k tbr, 1200k tbn, 180k tbc Input #1, lavfi, from 'anullsrc=r=48000:cl=stereo': Duration: N/A, start: 0.000000, bitrate: 768 kb/s Stream #1:0: Audio: pcm_u8, 48000 Hz, stereo, u8, 768 kb/s Stream mapping: Stream #0:0 (h264) -> drawtext (graph 0) scale (graph 0) -> Stream #0:0 (libx264) Stream #1:0 -> #0:1 (pcm_u8 (native) -> aac (native)) [libx264 @ 0x5614976c0fc0] using SAR=1/1 [libx264 @ 0x5614976c0fc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0x5614976c0fc0] profile High, level 3.1 Output #0, mpegts, to 'udp://host.docker.internal:9998?pkt_size=1316': Metadata: encoder : Lavf58.26.101 Stream #0:0: Video: h264 (libx264), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 30 fps, 90k tbn, 30 tbc Metadata: encoder : Lavc58.47.103 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 128 kb/s Metadata: encoder : Lavc58.47.103 aac [h264 @ 0x5614976989c0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 512)
So I tried on a Windows machine and playback was smooth. The original issue was reported when I was streaming on my MacBook Pro.
I'm noticing that when I stream video the output is somewhat accelerated compared to the original.
Are there settings that can control this or is this just an artifact of ffmpeg conversion?
Output from execution:
BeetleJuice:Sample Video cwainwright$ docker run --rm -p 9998:9998/udp -v "$PWD":/mnt eyevinntechnology/toolbox-loopts IN.mp4 udp://host.docker.internal:9998?pkt_size=1316 --withtc --framerate 30 ffmpeg version N-93394-g14eea7c Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --pkg-config-flags=--static --enable-gpl --enable-libfdk-aac --enable-libx264 --enable-libaom --enable-libdav1d --enable-libvpx --enable-libsrt --enable-libx265 --enable-libfreetype --enable-version3 --enable-nonfree libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 47.103 / 58. 47.103 libavformat 58. 26.101 / 58. 26.101 libavdevice 58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 ffmpeg version N-93394-g14eea7c Copyright (c) 2000-2019 the FFmpeg developers built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04) configuration: --pkg-config-flags=--static --enable-gpl --enable-libfdk-aac --enable-libx264 --enable-libaom --enable-libdav1d --enable-libvpx --enable-libsrt --enable-libx265 --enable-libfreetype --enable-version3 --enable-nonfree libavutil 56. 26.100 / 56. 26.100 libavcodec 58. 47.103 / 58. 47.103 libavformat 58. 26.101 / 58. 26.101 libavdevice 58. 6.101 / 58. 6.101 libavfilter 7. 48.100 / 7. 48.100 libswscale 5. 4.100 / 5. 4.100 libswresample 3. 4.100 / 3. 4.100 libpostproc 55. 4.100 / 55. 4.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt/IN.mp4': Metadata: major_brand : mp42 minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 2019-09-27T21:54:50.000000Z title : Media Presentation encoder : HandBrake 1.2.2 2019022300 Duration: 00:10:00.00, start: 0.000000, bitrate: 23548 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 23547 kb/s, 15 fps, 15 tbr, 90k tbn, 180k tbc (default) Metadata: creation_time : 2019-09-27T21:54:50.000000Z handler_name : VideoHandler Output #0, h264, to 'pipe:': Metadata: major_brand : mp42 minor_version : 512 compatible_brands: isomiso2avc1mp41 title : Media Presentation encoder : Lavf58.26.101 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 23547 kb/s, 15 fps, 15 tbr, 90k tbn, 90k tbc (default) Metadata: creation_time : 2019-09-27T21:54:50.000000Z handler_name : VideoHandler Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [h264 @ 0x5614976989c0] Stream #0: not enough frames to estimate rate; consider increasing probesize Input #0, h264, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 90k tbr, 1200k tbn, 180k tbc Input #1, lavfi, from 'anullsrc=r=48000:cl=stereo': Duration: N/A, start: 0.000000, bitrate: 768 kb/s Stream #1:0: Audio: pcm_u8, 48000 Hz, stereo, u8, 768 kb/s Stream mapping: Stream #0:0 (h264) -> drawtext (graph 0) scale (graph 0) -> Stream #0:0 (libx264) Stream #1:0 -> #0:1 (pcm_u8 (native) -> aac (native)) [libx264 @ 0x5614976c0fc0] using SAR=1/1 [libx264 @ 0x5614976c0fc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 0x5614976c0fc0] profile High, level 3.1 Output #0, mpegts, to 'udp://host.docker.internal:9998?pkt_size=1316': Metadata: encoder : Lavf58.26.101 Stream #0:0: Video: h264 (libx264), yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 30 fps, 90k tbn, 30 tbc Metadata: encoder : Lavc58.47.103 libx264 Side data: cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1 Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp, 128 kb/s Metadata: encoder : Lavc58.47.103 aac [h264 @ 0x5614976989c0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 512)