Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--hls-use-mpegts makes postprocessors fail #9286

Open
fstirlitz opened this issue Apr 23, 2016 · 4 comments
Open

--hls-use-mpegts makes postprocessors fail #9286

fstirlitz opened this issue Apr 23, 2016 · 4 comments

Comments

@fstirlitz
Copy link
Contributor

@fstirlitz fstirlitz commented Apr 23, 2016

Using the --hls-use-mpegts option makes the metadata postprocessor fail:

[ffmpeg] Adding metadata to 'blah.mp4'
[debug] ffmpeg command line: ffmpeg -y -i file:blah.mp4 -c copy -metadata purl=[REDACTED] -metadata date=[REDACTED] -metadata title=[REDACTED] file:blah.temp.mp4
ERROR: Conversion failed!
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 1765, in post_process
    files_to_delete, info = pp.run(info)
  File "/usr/lib/python3.5/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 425, in run
    self.run_ffmpeg(filename, temp_filename, options)
  File "/usr/lib/python3.5/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 172, in run_ffmpeg
    self.run_ffmpeg_multiple_files([path], out_path, opts)
  File "/usr/lib/python3.5/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 168, in run_ffmpeg_multiple_files
    raise FFmpegPostProcessorError(msg)
youtube_dl.postprocessor.ffmpeg.FFmpegPostProcessorError: Conversion failed!

When I run the ffmpeg command manually, I get:

[mp4 @ 0x56077bd1bac0] Malformed AAC bitstream detected: use the audio bitstream filter 'aac_adtstoasc' to fix it ('-bsf:a aac_adtstoasc' option with ffmpeg)
av_interleaved_write_frame(): Operation not permitted

Adding the -bsf:a aac_adtstoasc option as suggested fixes the problem.

By the way, there is another way to make partial downloads playable: just pass -movflags empty_moov to FFmpeg in the downloader.

(youtube-dl version: 2016.03.26; not that I think it should matter).

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Apr 24, 2016

Which URL are you trying? Post the full verbose log.

@fstirlitz
Copy link
Contributor Author

@fstirlitz fstirlitz commented Apr 24, 2016

It doesn't really matter. Any m3u8 URL should do; at least each one I tried sufficed. But if you like being flooded with irrelevant nonsense, fine:

$ youtube-dl --verbose http://content.uplynk.com/ext/6790c94a453741799d3f3fb3bc9023a4/2497996.m3u8  --hls-use-mpegts -o 'blah.%(ext)s' -f 127
[debug] System config: []
[debug] User config: ['--continue', '--add-metadata', '--merge-output-format', 'mkv']
[debug] Command-line args: ['--xattrs', '--verbose', 'http://content.uplynk.com/ext/6790c94a453741799d3f3fb3bc9023a4/2497996.m3u8', '--hls-use-mpegts', '-o', 'blah.%(ext)s', '-f', '127']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.03.26
[debug] Python version 3.5.1 - Linux-4.5.1-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.0.1, ffprobe 3.0.1, rtmpdump 2.4
[debug] Proxy map: {}
[generic] 2497996: Requesting header
[generic] 2497996: Downloading m3u8 information
[debug] Invoking downloader on 'http://content-aeui1.uplynk.com/1f5227bdd96a47e8b95a3033b2707d2a/b.m3u8'
[download] Destination: blah.mp4
[debug] ffmpeg command line: ffmpeg -y -headers 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/44.0 (Chrome)
Accept-Encoding: gzip, deflate
' -i http://content-aeui1.uplynk.com/1f5227bdd96a47e8b95a3033b2707d2a/b.m3u8 -c copy -f mpegts file:blah.mp4.part
ffmpeg version 3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libdcadec --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-shared --enable-version3 --enable-x11grab
  libavutil      55. 17.103 / 55. 17.103
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[aac @ 0x5557abb710e0] element type mismatch 1 != 0
[aac @ 0x5557abcb6700] element type mismatch 1 != 0
Input #0, hls,applehttp, from 'http://content-aeui1.uplynk.com/1f5227bdd96a47e8b95a3033b2707d2a/b.m3u8':
  Duration: 00:01:36.15, start: 0.000000, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 30 kb/s
    Stream #0:1: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 192x108, 15 fps, 14.99 tbr, 90k tbn, 30 tbc
    Stream #0:2: Data: timed_id3 (ID3  / 0x20334449)
Output #0, mpegts, to 'file:blah.mp4.part':
  Metadata:
    encoder         : Lavf57.25.100
    Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 192x108, q=2-31, 15 fps, 14.99 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, 30 kb/s
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 1442 fps=239 q=-1.0 Lsize=    1306kB time=00:01:36.17 bitrate= 111.3kbits/s speed=15.9x    
video:673kB audio:358kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 26.726326%
[ffmpeg] Downloaded 1337808 bytes
[download] 100% of 1.28MiB
[ffmpeg] Adding metadata to 'blah.mp4'
[debug] ffmpeg command line: ffmpeg -y -i file:blah.mp4 -c copy -metadata title=2497996 -metadata purl=http://content.uplynk.com/ext/6790c94a453741799d3f3fb3bc9023a4/2497996.m3u8 file:blah.temp.mp4
ERROR: Conversion failed!
Traceback (most recent call last):
  File "/usr/lib/python3.5/site-packages/youtube_dl/YoutubeDL.py", line 1765, in post_process
    files_to_delete, info = pp.run(info)
  File "/usr/lib/python3.5/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 425, in run
    self.run_ffmpeg(filename, temp_filename, options)
  File "/usr/lib/python3.5/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 172, in run_ffmpeg
    self.run_ffmpeg_multiple_files([path], out_path, opts)
  File "/usr/lib/python3.5/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 168, in run_ffmpeg_multiple_files
    raise FFmpegPostProcessorError(msg)
youtube_dl.postprocessor.ffmpeg.FFmpegPostProcessorError: Conversion failed!
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 10, 2017

Can this be an old ffmpeg bug? Can't reproduce now

$ python -m youtube_dl --ignore-config --verbose https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8 --hls-use-mpegts -o 'blah.%(ext)s' -f worstvideo --add-metadata
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--ignore-config', '--verbose', 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8', '--hls-use-mpegts', '-o', 'blah.%(ext)s', '-f', 'worstvideo', '--add-metadata']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.11.06
[debug] Git HEAD: 61fb07e15
[debug] Python version 3.6.3 - Linux-4.13.12-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg 3.4, ffprobe 3.4
[debug] Proxy map: {}
[generic] f08e80da-bf1d-4e3d-8899-f0f6155f6efa: Requesting header
[generic] f08e80da-bf1d-4e3d-8899-f0f6155f6efa: Downloading m3u8 information
[debug] Invoking downloader on 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_180_250000.m3u8'
[download] Destination: blah.mp4
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers 'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-us,en;q=0.5
' -i https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_180_250000.m3u8 -c copy -f mpegts file:blah.mp4.part
ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-shared --enable-version3
  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
Invalid return value 0 for stream protocol
    Last message repeated 1 times                                                                                             
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_0.ts', offset 0, playlist 0                                                                                      
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_0.ts' for reading
[h264 @ 0x563a14050fe0] Reinit context to 320x192, pix_fmt: yuv420p
Invalid return value 0 for stream protocol                                                                                    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_1.ts', offset 0, playlist 0                                                                                      
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_1.ts' for reading
Input #0, hls,applehttp, from 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_180_250000.m3u8':
  Duration: 00:03:30.00, start: 0.080000, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Video: h264 (Main), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(left), 320x180 (320x192) [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Metadata:
      variant_bitrate : 0
[mpegts @ 0x563a141f1e00] muxrate VBR, pcr every 9000 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'file:blah.mp4.part':                                                                                   
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: h264 (Main), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(left), 320x180 (0x0) [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
    Metadata:
      variant_bitrate : 0
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x563a141f1e00] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly                                                                               
Invalid return value 0 for stream protocol                                                                                    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_2.ts', offset 0, playlist 0                                                                                      
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_2.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_3.ts', offset 0, playlist 0                                                                                      
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_3.ts' for reading
Invalid return value 0 for stream protocol time=00:00:11.88 bitrate= 176.5kbits/s speed=21.3x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_4.ts', offset 0, playlist 0                                                                                      
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_4.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_5.ts', offset 0, playlist 0                                                                                      
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_5.ts' for reading
Invalid return value 0 for stream protocol time=00:00:19.88 bitrate= 316.5kbits/s speed=18.2x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_6.ts', offset 0, playlist 0                                                                                      
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_6.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_7.ts', offset 0, playlist 0                                                                                      
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_7.ts' for reading
Invalid return value 0 for stream protocol time=00:00:27.88 bitrate= 300.9kbits/s speed=14.7x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_8.ts', offset 0, playlist 0                                                                                      
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_8.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_9.ts', offset 0, playlist 0                                                                                      
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_9.ts' for reading
Invalid return value 0 for stream protocol time=00:00:36.20 bitrate= 289.7kbits/s speed=  15x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_10.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_10.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_11.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_11.ts' for reading
Invalid return value 0 for stream protocol time=00:00:43.88 bitrate= 286.8kbits/s speed=14.8x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_12.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_12.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_13.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_13.ts' for reading
Invalid return value 0 for stream protocol time=00:00:51.88 bitrate= 283.0kbits/s speed=14.3x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_14.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_14.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_15.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_15.ts' for reading
Invalid return value 0 for stream protocol time=00:00:59.88 bitrate= 280.2kbits/s speed=14.3x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_16.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_16.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_17.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_17.ts' for reading
Invalid return value 0 for stream protocol time=00:01:07.88 bitrate= 278.1kbits/s speed=14.4x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_18.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_18.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_19.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_19.ts' for reading
Invalid return value 0 for stream protocol time=00:01:17.08 bitrate= 272.1kbits/s speed=14.8x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_20.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_20.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_21.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_21.ts' for reading
Invalid return value 0 for stream protocol time=00:01:23.88 bitrate= 275.0kbits/s speed=14.4x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_22.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_22.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_23.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_23.ts' for reading
Invalid return value 0 for stream protocol time=00:01:31.88 bitrate= 273.9kbits/s speed=14.3x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_24.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_24.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_25.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_25.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_26.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_26.ts' for reading
Invalid return value 0 for stream protocol time=00:01:43.88 bitrate= 282.6kbits/s speed=14.6x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_27.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_27.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_28.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_28.ts' for reading
Invalid return value 0 for stream protocol time=00:01:51.88 bitrate= 281.2kbits/s speed=14.6x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_29.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_29.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_30.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_30.ts' for reading
Invalid return value 0 for stream protocol time=00:02:02.84 bitrate= 290.2kbits/s speed=15.1x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_31.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_31.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_32.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_32.ts' for reading
Invalid return value 0 for stream protocol time=00:02:07.88 bitrate= 295.2kbits/s speed=14.8x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_33.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_33.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_34.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_34.ts' for reading
Invalid return value 0 for stream protocol time=00:02:15.88 bitrate= 293.2kbits/s speed=14.8x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_35.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_35.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_36.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_36.ts' for reading
Invalid return value 0 for stream protocol time=00:02:23.88 bitrate= 306.1kbits/s speed=14.7x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_37.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_37.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_38.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_38.ts' for reading
Invalid return value 0 for stream protocol time=00:02:31.88 bitrate= 303.8kbits/s speed=14.8x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_39.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_39.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_40.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_40.ts' for reading
Invalid return value 0 for stream protocol time=00:02:39.88 bitrate= 301.7kbits/s speed=14.8x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_41.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_41.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_42.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_42.ts' for reading
Invalid return value 0 for stream protocol time=00:02:48.60 bitrate= 311.0kbits/s speed=14.9x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_43.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_43.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_44.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_44.ts' for reading
Invalid return value 0 for stream protocol time=00:02:55.88 bitrate= 310.0kbits/s speed=14.9x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_45.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_45.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_46.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_46.ts' for reading
Invalid return value 0 for stream protocol time=00:03:03.88 bitrate= 307.9kbits/s speed=14.8x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_47.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_47.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_48.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_48.ts' for reading
Invalid return value 0 for stream protocol time=00:03:11.88 bitrate= 306.0kbits/s speed=14.8x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_49.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_49.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_50.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_50.ts' for reading
Invalid return value 0 for stream protocol
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_51.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_51.ts' for reading
Invalid return value 0 for stream protocol time=00:03:23.88 bitrate= 298.3kbits/s speed=15.1x    
[hls,applehttp @ 0x563a13e5bc00] HLS request for url 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_52.ts', offset 0, playlist 0                                                                                     
[hls,applehttp @ 0x563a13e5bc00] Opening 'https://bitdash-a.akamaihd.net/content/MI201109210084_1/video/180_250000/hls/segment_52.ts' for reading
Invalid return value 0 for stream protocol
No more output streams to write to, finishing.                                                                                
frame= 5257 fps=379 q=-1.0 Lsize=    7822kB time=00:03:30.16 bitrate= 304.9kbits/s speed=15.2x                                
video:6679kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 17.107172%
Input file #0 (https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_180_250000.m3u8):                                                                                                                   
  Input stream #0:0 (video): 5257 packets read (6839506 bytes);                                                               
  Total: 5257 packets (6839506 bytes) demuxed                                                                                 
Output file #0 (file:blah.mp4.part):                                                                                          
  Output stream #0:0 (video): 5257 packets muxed (6839506 bytes);                                                             
  Total: 5257 packets (6839506 bytes) muxed                                                                                   
[ffmpeg] Downloaded 8009552 bytes                                                                                             
[download] 100% of 7.64MiB
[ffmpeg] Adding metadata to 'blah.mp4'
[debug] ffmpeg command line: ffmpeg -y -i file:blah.mp4 -c copy -metadata title=f08e80da-bf1d-4e3d-8899-f0f6155f6efa -metadata date=20171031 -metadata purl=https://bitdash-a.akamaihd.net/content/MI201109210084_1/m3u8s/f08e80da-bf1d-4e3d-8899-f0f6155f6efa.m3u8 file:blah.temp.mp4

And I can play this file

$ mpv blah.mp4 
Playing: blah.mp4
 (+) Video --vid=1 (*) (h264 320x180 25.000fps)
File tags:
 Title: f08e80da-bf1d-4e3d-8899-f0f6155f6efa
VO: [opengl] 320x180 yuv420p
V: 00:00:04 / 00:03:30 (1%)


Exiting... (Quit)
@yan12125 yan12125 added cant-reproduce and removed bug labels Nov 10, 2017
@Natim
Copy link

@Natim Natim commented Apr 8, 2018

I had this same issue today with

ffmpeg version 2.8.11-0ubuntu0.16.04.1 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609

[debug] ffmpeg command line: ffmpeg -y -i 'file:stream.fdash-video=2500036.mp4' -i 'file:stream.fhls-136.mp4' -c copy -map '0:v:0' -map '1:a:0' 'file:stream.temp.mp4'

You can try: youtube-dl https://www.tf1.fr/tf1/the-voice/videos/the-voice-replay-7-avril-2018-duels-11-saison-07.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.