[FFmpeg-user] Error when downloading video via m3u8 playlist: Application provided duration...
Peter Wetz
wetz.peter at gmail.com
Wed Oct 31 14:39:23 EET 2018
I use the following command to download an m3u8-playlist.
ffmpeg.exe -i "
http://7dcdn.ivideo.sina.com.cn/7d.ivideo.sina.com.cn/app/record/subIndex/live_1713429_0_24864_1480654200_1480680600_web_sina_sd.m3u8?fid=1-1540912585486-1221-d4008b60bef4&sid=1713429_null_1540978916089_3510_9060"
-c copy "outputtest.mp4"
I got the m3u8 file from this website:
http://video.sina.com.cn/l/p/1713429.html
During downloading, I get the following errors very often:
[mp4 @ 0000018137a6fb80] Application provided duration: 4446283915 /
timestamp: 4578421928 is out of range for mov/mp4 format
Furthermore I get two types of warnings:
1) [mp4 @ 0000018137a6fb80] "pts has no value"
2) [mp4 @ 0000018137a6fb80] Non-monotonous DTS in output stream 0:0;
previous: 8584539879, current: 29793240; changing to 8584539880. This may
result in incorrect timestamps in the output file.
The initial output after starting ffmpeg looks like this:
C:\Program Files (x86)\ffmpeg>ffmpeg.exe -i "
http://7dcdn.ivideo.sina.com.cn/7d.ivideo.sina.com.cn/app/record/subIndex/live_1713429_0_24864_1480654200_1480680600_web_sina_sd.m3u8?fid=1-1540912585486-1221-d4008b60bef4&sid=1713429_null_1540978916089_3510_9060"
-c copy "outputtest.mp4"
ffmpeg version N-92308-g32d021cfa6 Copyright (c) 2000-2018 the FFmpeg
developers
built with gcc 8.2.1 (GCC) 20181017
configuration: --enable-gpl --enable-version3 --enable-sdl2
--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-avisynth
libavutil 56. 21.100 / 56. 21.100
libavcodec 58. 34.100 / 58. 34.100
libavformat 58. 19.102 / 58. 19.102
libavdevice 58. 4.106 / 58. 4.106
libavfilter 7. 38.100 / 7. 38.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100
[hls,applehttp @ 00000197a76da700] Opening '
http://7dcdn.ivideo.sina.com.cn/mtv.ivideo.sina.com.cn/live/24864_sd/1480656250.ts?record=1'
for reading
[hls,applehttp @ 00000197a76da700] Opening '
http://7dcdn.ivideo.sina.com.cn/mtv.ivideo.sina.com.cn/live/24864_sd/1480656255.ts?record=1'
for reading
Input #0, hls,applehttp, from '
http://7dcdn.ivideo.sina.com.cn/7d.ivideo.sina.com.cn/app/record/subIndex/live_1713429_0_24864_1480654200_1480680600_web_sina_sd.m3u8?fid=1-1540912585486-1221-d4008b60bef4&sid=1713429_null_1540978916089_3510_9060
':
Duration: N/A, start: 2221.550000, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p,
960x540 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 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
Result: The resulting video file is 45 minutes long, but if you look at the
video via the website (http://video.sina.com.cn/l/p/1713429.html) you can
see that it is ~7 hours long.
Question: How can I download the complete video with ffmpeg?
I think, first, I need to get rid of the timestamp error mentioned above.
Any help is appreciated.
More information about the ffmpeg-user
mailing list