|
使用ffmpeg拉取虎牙直播视频时报错“[tls @ 0xaaaaec5b74b0] Error in the push function.”,小白看不懂,请大神么帮忙看看!命令如下:pwd = r'ffmpeg -user_agent "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36" -i {} -c copy {}'.format('"%s"' % flvUrl, os.path.join(file_path,filename))
报错日志如下:
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 7 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)
configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-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
[hls,applehttp @ 0xaaaaec259a40] Opening 'https://tx.hls.huya.com/src/1724691-1724691-7407491440705536-3572838-10057-A-0-1-imgplus-1615337309.ts?EXTINF=3.0&wsSecret=3f3ec860bd64c3f4dd335a4a903dd452&wsTime=604968dc&u=0&seqid=16153373083705986&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=tars_mobile&txyp=o%3Awx91%3B&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&t=103' for reading
[NULL @ 0xaaaaec5bac80] SPS unavailable in decode_picture_timing
[h264 @ 0xaaaaec5c51f0] SPS unavailable in decode_picture_timing
Input #0, hls,applehttp, from 'https://tx.hls.huya.com/src/1724691-1724691-7407491440705536-3572838-10057-A-0-1-imgplus.m3u8?wsSecret=3f3ec860bd64c3f4dd335a4a903dd452&wsTime=604968dc&u=0&seqid=16153373083705986&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=tars_mobile&txyp=o%3Awx91%3B&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&t=103':
Duration: N/A, start: 25.026000, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt470bg/bt709/bt709), 1920x1080 [SAR 1:1 DAR 16:9], 60 tbr, 90k tbn, 120 tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (HE-AACv2) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 0
Output #0, mp4, to '/usb/2021_03_10_08_48_29.mp4':
Metadata:
encoder : Lavf57.83.100
Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt470bg/bt709/bt709), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 60 tbr, 90k tbn, 90k tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (HE-AACv2) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 0
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[hls,applehttp @ 0xaaaaec259a40] Opening 'https://tx.hls.huya.com/src/1724691-1724691-7407491440705536-3572838-10057-A-0-1-imgplus-1615337310.ts?EXTINF=3.0&wsSecret=3f3ec860bd64c3f4dd335a4a903dd452&wsTime=604968dc&u=0&seqid=16153373083705986&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=tars_mobile&txyp=o%3Awx91%3B&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&t=103' for reading
frame= 238 fps=0.0 q=-1.0 size= 512kB time=00:00:03.95 bitrate=1060.3kbits/s speed=7.91x
[hls,applehttp @ 0xaaaaec259a40] Opening 'https://tx.hls.huya.com/src/1724691-1724691-7407491440705536-3572838-10057-A-0-1-imgplus-1615337311.ts?EXTINF=3.0&wsSecret=3f3ec860bd64c3f4dd335a4a903dd452&wsTime=604968dc&u=0&seqid=16153373083705986&fm=RFdxOEJjSjNoNkRKdDZUWV8kMF8kMV8kMl8kMw%3D%3D&ctype=tars_mobile&txyp=o%3Awx91%3B&fs=bgct&&sphdcdn=al_7-tx_3-js_3-ws_7-bd_2-hw_2&sphdDC=huya&sphd=264_*-265_*&t=103' for reading
[tls @ 0xaaaaec5b74b0] Error in the push function.
[hls,applehttp @ 0xaaaaec259a40] Failed to reload playlist 0
frame= 540 fps=213 q=-1.0 size= 1024kB time=00:00:08.97 bitrate= 935.0kbits/s speed=3.53x
[hls,applehttp @ 0xaaaaec259a40] Failed to reload playlist 0
frame= 540 fps= 30 q=-1.0 Lsize= 1173kB time=00:00:08.97 bitrate=1071.4kbits/s speed=0.491x
video:1134kB audio:26kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.124515%
|
|