[FFmpeg-user] ffmpeg streaming to YouTube works better in Windows 10 than in Windows 7

Michael Shaffer mikeshaffer at gmail.com
Tue Aug 6 21:26:26 EEST 2019


Does the Windows 7 computer stream at the full 25fps when stream-copying
from the camera to youtube?

You could try streaming the .mkv file to youtube from a different Windows 7
computer, and see if that works. Maybe will help narrow down if it's
Youtube, your ffmpeg command, or your computer.

Personally, I used to stream to youtube with Windows 10, but switched to
Ubuntu because there's less extra stuff included with the OS, etc. Just
seems simpler. I'm streaming 6 cameras to youtube now from one Ubuntu
computer and it's really stable.


On Mon, Aug 5, 2019 at 1:24 PM lifepdx at gmail.com <lifepdx at gmail.com> wrote:

> Hello. I tried to stream video from an IP camera to YouTube and found a
> strange performance difference between Windows 10 and Windows 7.
> The command line is same in both cases
>
> ffmpeg -i test.mkv -c:v copy -c:a copy -f flv rtmp://
> a.rtmp.youtube.com/live2/my-youtube-api-key
> (Data in MKV is unchanged video stream from camera + encoded aac sound )
> I made test.mkv with following command:
> ffmpeg -loglevel debug -f lavfi -i anullsrc -rtsp_transport tcp -i rtsp://
> login:password at 1.2.3.4/media/video1/video -c:v copy -c:a aac test.mkv
>
> In Windows 7 speed is usually around 0.5x and fps are respectively low ,
> around 12-13 (original video stream has 25 fps) also  I have image
> corruption.
>
> In Windows 10 speed is around 1x / 25fps while streaming live video from
> camera and 3x  when I stream mkv file. No problems with quality.
>
> tried ffmpeg-latest and ffmpeg 3.2 static builds, the same result.
>
> Windows 7 and Windows 10 installed on the same machine: AMD Phenom CPU 9650
> + 4GB Ram
> Link to test.mkv :
> https://www.dropbox.com/s/6o6peadsj7gfn4e/test.mkv?dl=0
>
> I would really appreciate if someone help me to understand what is
> happening ;)
> Thanks in advance!
>
>
> Windows 7:
> =================================================================
> ffmpeg started on 2019-08-05 at 19:39:39
> Report written to "ffmpeg-20190805-193939.log"
> Command line:
> ffmpeg -v 9 -loglevel 99 -report -i test.mkv -c:v copy -c:a copy -f flv
> rtmp://a.rtmp.youtube.com/live2/my-youtube-api-key
> ffmpeg version N-94455-g01994c93db Copyright (c) 2000-2019 the FFmpeg
> developers
>   built with gcc 9.1.1 (GCC) 20190716
>   configuration: --enable-gpl --enable-version3 --enable-sdl2
> --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
> --enable-libdav1d --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-avisynth --enable-libopenmpt
>   libavutil      56. 33.100 / 56. 33.100
>   libavcodec     58. 55.100 / 58. 55.100
>   libavformat    58. 30.100 / 58. 30.100
>   libavdevice    58.  9.100 / 58.  9.100
>   libavfilter     7. 58.100 /  7. 58.100
>   libswscale      5.  6.100 /  5.  6.100
>   libswresample   3.  6.100 /  3.  6.100
>   libpostproc    55.  6.100 / 55.  6.100
> Splitting the commandline.
> Reading option '-v' ... matched as option 'v' (set logging level) with
> argument '9'.
> Reading option '-loglevel' ... matched as option 'loglevel' (set logging
> level) with argument '99'.
> Reading option '-report' ... matched as option 'report' (generate a report)
> with argument '1'.
> Reading option '-i' ... matched as input url with argument 'test.mkv'.
> Reading option '-c:v' ... matched as option 'c' (codec name) with argument
> 'copy'.
> Reading option '-c:a' ... matched as option 'c' (codec name) with argument
> 'copy'.
> Reading option '-f' ... matched as option 'f' (force format) with argument
> 'flv'.
> Reading option 'rtmp://a.rtmp.youtube.com/live2/my-youtube-api-key' ...
> matched as output url.
> Finished splitting the commandline.
> Parsing a group of options: global .
> Applying option v (set logging level) with argument 9.
> Applying option loglevel (set logging level) with argument 99.
> Applying option report (generate a report) with argument 1.
> Successfully parsed a group of options.
> Parsing a group of options: input url test.mkv.
> Successfully parsed a group of options.
> Opening an input file: test.mkv.
> [NULL @ 00000000005813c0] Opening 'test.mkv' for reading
> [file @ 0000000000582c80] Setting default whitelist 'file,crypto'
> [matroska,webm @ 00000000005813c0] Format matroska,webm probed with
> size=2048 and score=100
> st:0 removing common factor 1000000 from timebase
> st:1 removing common factor 1000000 from timebase
> [matroska,webm @ 00000000005813c0] Before avformat_find_stream_info() pos:
> 880 bytes read:32768 seeks:0 nb_streams:2
> [h264 @ 0000000000585400] nal_unit_type: 7(SPS), nal_ref_idc: 3
> [h264 @ 0000000000585400] nal_unit_type: 8(PPS), nal_ref_idc: 3
> [h264 @ 0000000000585400] nal_unit_type: 7(SPS), nal_ref_idc: 3
> [h264 @ 0000000000585400] nal_unit_type: 8(PPS), nal_ref_idc: 3
> [h264 @ 0000000000585400] unknown SEI type 32
> [h264 @ 0000000000585400] nal_unit_type: 6(SEI), nal_ref_idc: 0
> [h264 @ 0000000000585400] nal_unit_type: 7(SPS), nal_ref_idc: 3
> [h264 @ 0000000000585400] nal_unit_type: 8(PPS), nal_ref_idc: 3
> [h264 @ 0000000000585400] nal_unit_type: 5(IDR), nal_ref_idc: 3
> [h264 @ 0000000000585400] unknown SEI type 32
> [h264 @ 0000000000585400] Format yuvj420p chosen by get_format().
> [h264 @ 0000000000585400] Reinit context to 1920x1088, pix_fmt: yuvj420p
> [h264 @ 0000000000585400] nal_unit_type: 1(Coded slice of a non-IDR
> picture), nal_ref_idc: 0
> [h264 @ 0000000000585400] nal_unit_type: 1(Coded slice of a non-IDR
> picture), nal_ref_idc: 3
> [h264 @ 0000000000585400] nal_unit_type: 1(Coded slice of a non-IDR
> picture), nal_ref_idc: 0
> [h264 @ 0000000000585400] nal_unit_type: 1(Coded slice of a non-IDR
> picture), nal_ref_idc: 3
> [h264 @ 0000000000585400] nal_unit_type: 1(Coded slice of a non-IDR
> picture), nal_ref_idc: 0
> [h264 @ 0000000000585400] nal_unit_type: 1(Coded slice of a non-IDR
> picture), nal_ref_idc: 3
> [matroska,webm @ 00000000005813c0] All info found
> [matroska,webm @ 00000000005813c0] After avformat_find_stream_info() pos:
> 485259 bytes read:507883 seeks:0 frames:23
> Input #0, matroska,webm, from 'test.mkv':
>   Metadata:
>     ENCODER         : Lavf58.30.100
>   Duration: 00:00:17.55, start: 0.000000, bitrate: 5753 kb/s
>     Stream #0:0, 8, 1/1000: Video: h264 (High), 1 reference frame,
> yuvj420p(pc, bt709, progressive, left), 1920x1080 (1920x1088), 0/1, 25 fps,
> 25 tbr, 1k tbn, 50 tbc (default)
>     Metadata:
>       DURATION        : 00:00:17.517000000
>     Stream #0:1, 15, 1/1000: Audio: aac (LC), 44100 Hz, stereo, fltp
> (default)
>     Metadata:
>       ENCODER         : Lavc58.55.100 aac
>       DURATION        : 00:00:17.554000000
> Successfully opened the file.
> Parsing a group of options: output url rtmp://
> a.rtmp.youtube.com/live2/my-youtube-api-key.
> Applying option c:v (codec name) with argument copy.
> Applying option c:a (codec name) with argument copy.
> Applying option f (force format) with argument flv.
> Successfully parsed a group of options.
> Opening an output file: rtmp://a.rtmp.youtube.com/live2/my-youtube-api-key
> .
> [rtmp @ 0000000003043040] No default whitelist set
> [tcp @ 00000000005fca80] No default whitelist set
> [tcp @ 00000000005fca80] Original list of addresses:
> [tcp @ 00000000005fca80] Address 173.194.163.106 port 1935
> [tcp @ 00000000005fca80] Interleaved list of addresses:
> [tcp @ 00000000005fca80] Address 173.194.163.106 port 1935
> [tcp @ 00000000005fca80] Starting connection attempt to 173.194.163.106
> port 1935
> [tcp @ 00000000005fca80] Successfully connected to 173.194.163.106 port
> 1935
> [rtmp @ 0000000003043040] Handshaking...
> [rtmp @ 0000000003043040] Type answer 3
> [rtmp @ 0000000003043040] Server version 4.0.0.1
> [rtmp @ 0000000003043040] Proto = rtmp, path = /live2/my-youtube-api-key,
> app = live2, fname = my-youtube-api-key
> [rtmp @ 0000000003043040] Window acknowledgement size = 2500000
> [rtmp @ 0000000003043040] Max sent, unacked = 10000000
> [rtmp @ 0000000003043040] New incoming chunk size = 256
> [rtmp @ 0000000003043040] Releasing stream...
> [rtmp @ 0000000003043040] FCPublish stream...
> [rtmp @ 0000000003043040] Creating stream...
> [rtmp @ 0000000003043040] Sending publish command for 'my-youtube-api-key'
> Successfully opened the file.
> Output #0, flv, to 'rtmp://a.rtmp.youtube.com/live2/my-youtube-api-key':
>   Metadata:
>     encoder         : Lavf58.30.100
>     Stream #0:0, 0, 1/1000: Video: h264 (High), 1 reference frame
> ([7][0][0][0] / 0x0007), yuvj420p(pc, bt709, progressive, left), 1920x1080
> (0x0), 0/1, q=2-31, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
>     Metadata:
>       DURATION        : 00:00:17.517000000
>     Stream #0:1, 0, 1/1000: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100
> Hz, stereo, fltp (default)
>     Metadata:
>       ENCODER         : Lavc58.55.100 aac
>       DURATION        : 00:00:17.554000000
> Stream mapping:
>   Stream #0:0 -> #0:0 (copy)
>   Stream #0:1 -> #0:1 (copy)
> Press [q] to stop, [?] for help
> cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if
> it occurs once at the start per stream)
> cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if
> it occurs once at the start per stream)
> cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if
> it occurs once at the start per stream)
> cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if
> it occurs once at the start per stream)
> cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if
> it occurs once at the start per stream)
> frame=    1 fps=0.9 q=-1.0 size=     432kB time=00:00:00.09
> bitrate=38014.6kbits/s speed=0.0804x
> frame=   29 fps= 17 q=-1.0 size=     626kB time=00:00:01.18
> bitrate=4333.8kbits/s speed= 0.7x
> frame=   36 fps= 16 q=-1.0 size=     835kB time=00:00:01.46
> bitrate=4672.2kbits/s speed=0.654x
> frame=   44 fps= 16 q=-1.0 size=    1047kB time=00:00:01.78
> bitrate=4807.3kbits/s speed=0.639x
> [NULL @ 0000000000585400] unknown SEI type 32
> frame=   51 fps= 12 q=-1.0 size=    1644kB time=00:00:02.09
> bitrate=6445.4kbits/s speed=0.476x
> frame=   62 fps= 13 q=-1.0 size=    1834kB time=00:00:02.53
> bitrate=5937.5kbits/s speed=0.516x
> frame=   76 fps= 14 q=-1.0 size=    2030kB time=00:00:03.08
> bitrate=5386.6kbits/s speed=0.568x
> frame=   83 fps= 14 q=-1.0 size=    2229kB time=00:00:03.36
> bitrate=5423.4kbits/s speed=0.563x
> frame=   91 fps= 14 q=-1.0 size=    2433kB time=00:00:03.69
> bitrate=5398.5kbits/s speed=0.565x
> frame=   99 fps= 14 q=-1.0 size=    2620kB time=00:00:04.01
> bitrate=5343.8kbits/s speed=0.571x
> [NULL @ 0000000000585400] unknown SEI type 32
> frame=  101 fps= 12 q=-1.0 size=    3071kB time=00:00:04.08
> bitrate=6157.7kbits/s speed=0.498x
> frame=  113 fps= 13 q=-1.0 size=    3260kB time=00:00:04.47
> bitrate=5963.7kbits/s speed=0.514x
> frame=  127 fps= 14 q=-1.0 size=    3456kB time=00:00:05.03
> bitrate=5620.1kbits/s speed=0.546x
> frame=  134 fps= 14 q=-1.0 size=    3680kB time=00:00:05.31
> bitrate=5668.4kbits/s speed=0.541x
> frame=  142 fps= 14 q=-1.0 size=    3882kB time=00:00:05.63
> bitrate=5640.6kbits/s speed=0.544x
> frame=  149 fps= 14 q=-1.0 size=    4066kB time=00:00:05.94
> bitrate=5604.3kbits/s speed=0.547x
> [NULL @ 0000000000585400] SEI type 25 size 1920 truncated at 784
> [NULL @ 0000000000585400] pps_id 509 out of range
> [NULL @ 0000000000585400] unknown SEI type 32
> frame=  152 fps= 13 q=-1.0 size=    4518kB time=00:00:06.03
> bitrate=6130.1kbits/s speed= 0.5x
> frame=  163 fps= 13 q=-1.0 size=    4713kB time=00:00:06.50
> bitrate=5939.3kbits/s speed=0.516x
> frame=  176 fps= 13 q=-1.0 size=    4901kB time=00:00:07.03
> bitrate=5707.0kbits/s speed=0.536x
> frame=  185 fps= 14 q=-1.0 size=    5091kB time=00:00:07.35
> bitrate=5668.6kbits/s speed=0.54x
> frame=  192 fps= 14 q=-1.0 size=    5278kB time=00:00:07.63
> bitrate=5661.2kbits/s speed=0.54x
> frame=  199 fps= 14 q=-1.0 size=    5466kB time=00:00:07.94
> bitrate=5639.0kbits/s speed=0.542x
> [NULL @ 0000000000585400] unknown SEI type 32
> frame=  201 fps= 13 q=-1.0 size=    5917kB time=00:00:08.03
> bitrate=6033.0kbits/s speed=0.508x
> frame=  214 fps= 13 q=-1.0 size=    6120kB time=00:00:08.51
> bitrate=5886.0kbits/s speed=0.52x
> frame=  228 fps= 13 q=-1.0 size=    6322kB time=00:00:09.07
> bitrate=5705.3kbits/s speed=0.537x
> frame=  235 fps= 13 q=-1.0 size=    6522kB time=00:00:09.35
> bitrate=5709.0kbits/s speed=0.536x
> frame=  243 fps= 14 q=-1.0 size=    6719kB time=00:00:09.67
> bitrate=5686.6kbits/s speed=0.538x
> frame=  250 fps= 14 q=-1.0 size=    6917kB time=00:00:09.98
> bitrate=5675.8kbits/s speed=0.539x
> [NULL @ 0000000000585400] unknown SEI type 32
> frame=  251 fps= 13 q=-1.0 size=    7348kB time=00:00:10.03
> bitrate=6000.6kbits/s speed=0.51x
> frame=  262 fps= 13 q=-1.0 size=    7540kB time=00:00:10.47
> bitrate=5898.1kbits/s speed=0.519x
> frame=  275 fps= 13 q=-1.0 size=    7730kB time=00:00:10.98
> bitrate=5765.4kbits/s speed=0.531x
> frame=  283 fps= 13 q=-1.0 size=    7941kB time=00:00:11.30
> bitrate=5753.0kbits/s speed=0.532x
> frame=  291 fps= 13 q=-1.0 size=    8136kB time=00:00:11.63
> bitrate=5729.1kbits/s speed=0.534x
> frame=  300 fps= 13 q=-1.0 size=    8335kB time=00:00:11.95
> bitrate=5709.8kbits/s speed=0.536x
> [NULL @ 0000000000585400] unknown SEI type 32
> frame=  301 fps= 13 q=-1.0 size=    8785kB time=00:00:12.02
> bitrate=5983.2kbits/s speed=0.511x
> frame=  312 fps= 13 q=-1.0 size=    8981kB time=00:00:12.44
> bitrate=5911.3kbits/s speed=0.518x
> frame=  326 fps= 13 q=-1.0 size=    9167kB time=00:00:13.02
> bitrate=5765.3kbits/s speed=0.531x
> frame=  333 fps= 13 q=-1.0 size=    9359kB time=00:00:13.30
> bitrate=5762.7kbits/s speed=0.531x
> frame=  341 fps= 13 q=-1.0 size=    9566kB time=00:00:13.63
> bitrate=5749.2kbits/s speed=0.532x
> frame=  349 fps= 13 q=-1.0 size=    9766kB time=00:00:13.95
> bitrate=5733.1kbits/s speed=0.533x
> [NULL @ 0000000000585400] unknown SEI type 32
> frame=  351 fps= 13 q=-1.0 size=   10215kB time=00:00:14.02
> bitrate=5966.6kbits/s speed=0.513x
> frame=  362 fps= 13 q=-1.0 size=   10403kB time=00:00:14.46
> bitrate=5891.2kbits/s speed=0.52x
> frame=  376 fps= 13 q=-1.0 size=   10600kB time=00:00:15.02
> bitrate=5780.0kbits/s speed=0.53x
> frame=  384 fps= 13 q=-1.0 size=   10796kB time=00:00:15.34
> bitrate=5762.2kbits/s speed=0.531x
> frame=  391 fps= 13 q=-1.0 size=   10986kB time=00:00:15.62
> bitrate=5759.0kbits/s speed=0.531x
> frame=  399 fps= 13 q=-1.0 size=   11182kB time=00:00:15.95
> bitrate=5742.6kbits/s speed=0.533x
> [NULL @ 0000000000585400] SEI type 25 size 1920 truncated at 784
> [NULL @ 0000000000585400] pps_id 509 out of range
> [NULL @ 0000000000585400] unknown SEI type 32
> frame=  401 fps= 13 q=-1.0 size=   11632kB time=00:00:16.02
> bitrate=5947.6kbits/s speed=0.515x
> frame=  413 fps= 13 q=-1.0 size=   11828kB time=00:00:16.50
> bitrate=5869.1kbits/s speed=0.522x
> frame=  426 fps= 13 q=-1.0 size=   12018kB time=00:00:17.02
> bitrate=5784.5kbits/s speed=0.53x
> frame=  434 fps= 13 q=-1.0 size=   12215kB time=00:00:17.31
> bitrate=5778.0kbits/s speed=0.53x
> No more output streams to write to, finishing.
> [flv @ 0000000002e29800] Failed to update header with correct duration.
> [flv @ 0000000002e29800] Failed to update header with correct filesize.
> frame=  438 fps= 13 q=-1.0 Lsize=   12342kB time=00:00:17.53
> bitrate=5767.5kbits/s speed=0.532x
> video:12316kB audio:4kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: 0.174785%
> Input file #0 (test.mkv):
>   Input stream #0:0 (video): 438 packets read (12612025 bytes);
>   Input stream #0:1 (audio): 756 packets read (4587 bytes);
>   Total: 1194 packets (12616612 bytes) demuxed
> Output file #0 (rtmp://a.rtmp.youtube.com/live2/my-youtube-api-key):
>   Output stream #0:0 (video): 438 packets muxed (12612025 bytes);
>   Output stream #0:1 (audio): 756 packets muxed (4587 bytes);
>   Total: 1194 packets (12616612 bytes) muxed
> 0 frames successfully decoded, 0 decoding errors
> [AVIOContext @ 0000000002e29e40] Statistics: 0 seeks, 1349 writeouts
> [rtmp @ 0000000003043040] UnPublishing stream...
> [rtmp @ 0000000003043040] Deleting stream...
> [AVIOContext @ 000000000058af00] Statistics: 12625677 bytes read, 0 seeks
> ================================================
>
> In Windows 10:
> ================================================
> ffmpeg started on 2019-08-05 at 19:45:27
> Report written to "ffmpeg-20190805-194527.log"
> Command line:
> ffmpeg -v 9 -loglevel 99 -report -i test.mkv -c:v copy -c:a copy -f flv
> rtmp://a.rtmp.youtube.com/live2/my-youtube-api-key
> ffmpeg version N-94455-g01994c93db Copyright (c) 2000-2019 the FFmpeg
> developers
>   built with gcc 9.1.1 (GCC) 20190716
>   configuration: --enable-gpl --enable-version3 --enable-sdl2
> --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
> --enable-libdav1d --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-avisynth --enable-libopenmpt
>   libavutil      56. 33.100 / 56. 33.100
>   libavcodec     58. 55.100 / 58. 55.100
>   libavformat    58. 30.100 / 58. 30.100
>   libavdevice    58.  9.100 / 58.  9.100
>   libavfilter     7. 58.100 /  7. 58.100
>   libswscale      5.  6.100 /  5.  6.100
>   libswresample   3.  6.100 /  3.  6.100
>   libpostproc    55.  6.100 / 55.  6.100
> Splitting the commandline.
> Reading option '-v' ... matched as option 'v' (set logging level) with
> argument '9'.
> Reading option '-loglevel' ... matched as option 'loglevel' (set logging
> level) with argument '99'.
> Reading option '-report' ... matched as option 'report' (generate a report)
> with argument '1'.
> Reading option '-i' ... matched as input url with argument 'test.mkv'.
> Reading option '-c:v' ... matched as option 'c' (codec name) with argument
> 'copy'.
> Reading option '-c:a' ... matched as option 'c' (codec name) with argument
> 'copy'.
> Reading option '-f' ... matched as option 'f' (force format) with argument
> 'flv'.
> Reading option 'rtmp://a.rtmp.youtube.com/live2/my-youtube-api-key' ...
> matched as output url.
> Finished splitting the commandline.
> Parsing a group of options: global .
> Applying option v (set logging level) with argument 9.
> Applying option loglevel (set logging level) with argument 99.
> Applying option report (generate a report) with argument 1.
> Successfully parsed a group of options.
> Parsing a group of options: input url test.mkv.
> Successfully parsed a group of options.
> Opening an input file: test.mkv.
> [NULL @ 0000014ae308a1c0] Opening 'test.mkv' for reading
> [file @ 0000014ae308b2c0] Setting default whitelist 'file,crypto'
> [matroska,webm @ 0000014ae308a1c0] Format matroska,webm probed with
> size=2048 and score=100
> st:0 removing common factor 1000000 from timebase
> st:1 removing common factor 1000000 from timebase
> [matroska,webm @ 0000014ae308a1c0] Before avformat_find_stream_info() pos:
> 880 bytes read:32768 seeks:0 nb_streams:2
> [h264 @ 0000014ae308b4c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
> [h264 @ 0000014ae308b4c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
> [h264 @ 0000014ae308b4c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
> [h264 @ 0000014ae308b4c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
> [h264 @ 0000014ae308b4c0] unknown SEI type 32
> [h264 @ 0000014ae308b4c0] nal_unit_type: 6(SEI), nal_ref_idc: 0
> [h264 @ 0000014ae308b4c0] nal_unit_type: 7(SPS), nal_ref_idc: 3
> [h264 @ 0000014ae308b4c0] nal_unit_type: 8(PPS), nal_ref_idc: 3
> [h264 @ 0000014ae308b4c0] nal_unit_type: 5(IDR), nal_ref_idc: 3
> [h264 @ 0000014ae308b4c0] unknown SEI type 32
> [h264 @ 0000014ae308b4c0] Format yuvj420p chosen by get_format().
> [h264 @ 0000014ae308b4c0] Reinit context to 1920x1088, pix_fmt: yuvj420p
> [h264 @ 0000014ae308b4c0] nal_unit_type: 1(Coded slice of a non-IDR
> picture), nal_ref_idc: 0
> [h264 @ 0000014ae308b4c0] nal_unit_type: 1(Coded slice of a non-IDR
> picture), nal_ref_idc: 3
> [h264 @ 0000014ae308b4c0] nal_unit_type: 1(Coded slice of a non-IDR
> picture), nal_ref_idc: 0
> [h264 @ 0000014ae308b4c0] nal_unit_type: 1(Coded slice of a non-IDR
> picture), nal_ref_idc: 3
> [h264 @ 0000014ae308b4c0] nal_unit_type: 1(Coded slice of a non-IDR
> picture), nal_ref_idc: 0
> [h264 @ 0000014ae308b4c0] nal_unit_type: 1(Coded slice of a non-IDR
> picture), nal_ref_idc: 3
> [matroska,webm @ 0000014ae308a1c0] All info found
> [matroska,webm @ 0000014ae308a1c0] After avformat_find_stream_info() pos:
> 485259 bytes read:507883 seeks:0 frames:23
> Input #0, matroska,webm, from 'test.mkv':
>   Metadata:
>     ENCODER         : Lavf58.30.100
>   Duration: 00:00:17.55, start: 0.000000, bitrate: 5753 kb/s
>     Stream #0:0, 8, 1/1000: Video: h264 (High), 1 reference frame,
> yuvj420p(pc, bt709, progressive, left), 1920x1080 (1920x1088), 0/1, 25 fps,
> 25 tbr, 1k tbn, 50 tbc (default)
>     Metadata:
>       DURATION        : 00:00:17.517000000
>     Stream #0:1, 15, 1/1000: Audio: aac (LC), 44100 Hz, stereo, fltp
> (default)
>     Metadata:
>       ENCODER         : Lavc58.55.100 aac
>       DURATION        : 00:00:17.554000000
> Successfully opened the file.
> Parsing a group of options: output url rtmp://
> a.rtmp.youtube.com/live2/my-youtube-api-key.
> Applying option c:v (codec name) with argument copy.
> Applying option c:a (codec name) with argument copy.
> Applying option f (force format) with argument flv.
> Successfully parsed a group of options.
> Opening an output file: rtmp://a.rtmp.youtube.com/live2/my-youtube-api-key
> .
> [rtmp @ 0000014ae4477580] No default whitelist set
> [tcp @ 0000014ae426e800] No default whitelist set
> [tcp @ 0000014ae426e800] Original list of addresses:
> [tcp @ 0000014ae426e800] Address 173.194.19.183 port 1935
> [tcp @ 0000014ae426e800] Interleaved list of addresses:
> [tcp @ 0000014ae426e800] Address 173.194.19.183 port 1935
> [tcp @ 0000014ae426e800] Starting connection attempt to 173.194.19.183 port
> 1935
> [tcp @ 0000014ae426e800] Successfully connected to 173.194.19.183 port 1935
> [rtmp @ 0000014ae4477580] Handshaking...
> [rtmp @ 0000014ae4477580] Type answer 3
> [rtmp @ 0000014ae4477580] Server version 4.0.0.1
> [rtmp @ 0000014ae4477580] Proto = rtmp, path = /live2/my-youtube-api-key,
> app = live2, fname = my-youtube-api-key
> [rtmp @ 0000014ae4477580] Window acknowledgement size = 2500000
> [rtmp @ 0000014ae4477580] Max sent, unacked = 10000000
> [rtmp @ 0000014ae4477580] New incoming chunk size = 256
> [rtmp @ 0000014ae4477580] Releasing stream...
> [rtmp @ 0000014ae4477580] FCPublish stream...
> [rtmp @ 0000014ae4477580] Creating stream...
> [rtmp @ 0000014ae4477580] Sending publish command for 'my-youtube-api-key'
> Successfully opened the file.
> Output #0, flv, to 'rtmp://a.rtmp.youtube.com/live2/my-youtube-api-key':
>   Metadata:
>     encoder         : Lavf58.30.100
>     Stream #0:0, 0, 1/1000: Video: h264 (High), 1 reference frame
> ([7][0][0][0] / 0x0007), yuvj420p(pc, bt709, progressive, left), 1920x1080
> (0x0), 0/1, q=2-31, 25 fps, 25 tbr, 1k tbn, 1k tbc (default)
>     Metadata:
>       DURATION        : 00:00:17.517000000
>     Stream #0:1, 0, 1/1000: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100
> Hz, stereo, fltp (default)
>     Metadata:
>       ENCODER         : Lavc58.55.100 aac
>       DURATION        : 00:00:17.554000000
> Stream mapping:
>   Stream #0:0 -> #0:0 (copy)
>   Stream #0:1 -> #0:1 (copy)
> Press [q] to stop, [?] for help
> cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if
> it occurs once at the start per stream)
> cur_dts is invalid st:1 (0) [init:1 i_done:0 finish:0] (this is harmless if
> it occurs once at the start per stream)
> cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if
> it occurs once at the start per stream)
> cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if
> it occurs once at the start per stream)
> cur_dts is invalid st:0 (0) [init:1 i_done:0 finish:0] (this is harmless if
> it occurs once at the start per stream)
> frame=   47 fps=0.0 q=-1.0 size=    1130kB time=00:00:01.90
> bitrate=4863.5kbits/s speed=3.69x
> [NULL @ 0000014ae308b4c0] unknown SEI type 32
> frame=   89 fps= 86 q=-1.0 size=    2381kB time=00:00:03.62
> bitrate=5385.7kbits/s speed=3.51x
> [NULL @ 0000014ae308b4c0] unknown SEI type 32
> frame=  128 fps= 84 q=-1.0 size=    3509kB time=00:00:05.10
> bitrate=5627.1kbits/s speed=3.33x
> [NULL @ 0000014ae308b4c0] SEI type 25 size 1920 truncated at 784
> [NULL @ 0000014ae308b4c0] pps_id 509 out of range
> [NULL @ 0000014ae308b4c0] unknown SEI type 32
> frame=  156 fps= 77 q=-1.0 size=    4600kB time=00:00:06.19
> bitrate=6080.3kbits/s speed=3.05x
> [NULL @ 0000014ae308b4c0] unknown SEI type 32
> frame=  203 fps= 80 q=-1.0 size=    5945kB time=00:00:08.07
> bitrate=6029.1kbits/s speed=3.17x
> [NULL @ 0000014ae308b4c0] unknown SEI type 32
> frame=  251 fps= 80 q=-1.0 size=    7348kB time=00:00:10.03
> bitrate=6000.6kbits/s speed=3.19x
> [NULL @ 0000014ae308b4c0] unknown SEI type 32
> frame=  301 fps= 81 q=-1.0 size=    8785kB time=00:00:12.02
> bitrate=5983.2kbits/s speed=3.22x
> [NULL @ 0000014ae308b4c0] unknown SEI type 32
> frame=  351 fps= 82 q=-1.0 size=   10215kB time=00:00:14.02
> bitrate=5966.6kbits/s speed=3.26x
> [NULL @ 0000014ae308b4c0] SEI type 25 size 1920 truncated at 784
> [NULL @ 0000014ae308b4c0] pps_id 509 out of range
> [NULL @ 0000014ae308b4c0] unknown SEI type 32
> frame=  401 fps= 82 q=-1.0 size=   11632kB time=00:00:16.02
> bitrate=5947.6kbits/s speed=3.27x
> No more output streams to write to, finishing.
> [flv @ 0000014ae3102e40] Failed to update header with correct duration.
> [flv @ 0000014ae3102e40] Failed to update header with correct filesize.
> frame=  438 fps= 84 q=-1.0 Lsize=   12342kB time=00:00:17.53
> bitrate=5767.5kbits/s speed=3.38x
> video:12316kB audio:4kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: 0.174785%
> Input file #0 (test.mkv):
>   Input stream #0:0 (video): 438 packets read (12612025 bytes);
>   Input stream #0:1 (audio): 756 packets read (4587 bytes);
>   Total: 1194 packets (12616612 bytes) demuxed
> Output file #0 (rtmp://a.rtmp.youtube.com/live2/my-youtube-api-key):
>   Output stream #0:0 (video): 438 packets muxed (12612025 bytes);
>   Output stream #0:1 (audio): 756 packets muxed (4587 bytes);
>   Total: 1194 packets (12616612 bytes) muxed
> 0 frames successfully decoded, 0 decoding errors
> [AVIOContext @ 0000014ae3093280] Statistics: 0 seeks, 1349 writeouts
> [rtmp @ 0000014ae4477580] UnPublishing stream...
> [rtmp @ 0000014ae4477580] Deleting stream...
> [AVIOContext @ 0000014ae3093500] Statistics: 12625677 bytes read, 0 seeks
> ==================================================================
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list