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

[BBC iPlayer] Problem with merging DASH-streams #10947

Closed
hurda opened this issue Oct 17, 2016 · 1 comment
Closed

[BBC iPlayer] Problem with merging DASH-streams #10947

hurda opened this issue Oct 17, 2016 · 1 comment

Comments

@hurda
Copy link
Contributor

@hurda hurda commented Oct 17, 2016

  • I've verified and I assure that I'm running youtube-dl 2016.10.16

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

youtube-dl -w -v http://www.bbc.co.uk/iplayer/episode/p04b183c/adam-curtis-hypernormalisation
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['-w', '-v', 'http://www.bbc.co.uk/iplayer/episode/p04b183c/adam-curtis-hypernormalisation']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2016.10.16
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-73361-g03b2b40, ffprobe N-73361-g03b2b40, rtmpdum
p 2.4
[bbc.co.uk] p04b183c: Downloading video page
[bbc.co.uk] p04b188g: Downloading media selection XML
[bbc.co.uk] p04b188g: Downloading captions
[bbc.co.uk] p04b188g: Downloading m3u8 information
[bbc.co.uk] p04b188g: Downloading MPD manifest
[bbc.co.uk] p04b188g: Downloading m3u8 information
[bbc.co.uk] p04b188g: Downloading MPD manifest
[bbc.co.uk] p04b188g: Downloading m3u8 information
[debug] Invoking downloader on 'http://vod-dash-uk-live.bbcfmt.vo.llnwd.net/usp/
auth/vod/piff_abr_full_hd/99e9d3-p04b188g/vf_p04b188g_2cf87c44-8d16-4f13-b872-d8
dee8e1bbc6.ism.hlsv2.ism/dash/'
[download] Adam Curtis, HyperNormalisation-p04b188g.fstream-uk-iptv_streaming_co
ncrete_combined_hd_mf_limelight_uk_dash-video=5070000.mp4 has already been downl
oaded
[download] 100% of 5.51GiB
[debug] Invoking downloader on 'http://vod-dash-uk-live.bbcfmt.vo.llnwd.net/usp/
auth/vod/piff_abr_full_hd/99e9d3-p04b188g/vf_p04b188g_2cf87c44-8d16-4f13-b872-d8
dee8e1bbc6.ism.hlsv2.ism/dash/'
[download] Adam Curtis, HyperNormalisation-p04b188g.fstream-uk-iptv_streaming_co
ncrete_combined_hd_mf_limelight_uk_dash-audio=128000.m4a has already been downlo
aded
[download] 100% of 151.45MiB
[ffmpeg] Merging formats into "Adam Curtis, HyperNormalisation-p04b188g.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:Adam Curtis, HyperNormalisation-
p04b188g.fstream-uk-iptv_streaming_concrete_combined_hd_mf_limelight_uk_dash-vid
eo=5070000.mp4' -i 'file:Adam Curtis, HyperNormalisation-p04b188g.fstream-uk-ipt
v_streaming_concrete_combined_hd_mf_limelight_uk_dash-audio=128000.m4a' -c copy
-map 0:v:0 -map 1:a:0 'file:Adam Curtis, HyperNormalisation-p04b188g.temp.mp4'
ERROR: Could not write header for output file #0 (incorrect codec parameters ?):
 Invalid argument
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpna76borx\bu
ild\youtube_dl\YoutubeDL.py", line 1837, in post_process
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpna76borx\bu
ild\youtube_dl\postprocessor\ffmpeg.py", line 444, in run
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpna76borx\bu
ild\youtube_dl\postprocessor\ffmpeg.py", line 192, in run_ffmpeg_multiple_files
youtube_dl.postprocessor.ffmpeg.FFmpegPostProcessorError: Could not write header
 for output file #0 (incorrect codec parameters ?): Invalid argument

http://www.bbc.co.uk/iplayer/episode/p04b183c/adam-curtis-hypernormalisation

Downloading this ends at the muxing-stage.

I tried using the same commandline as youtube-dl with an older version of ffmpeg, resulting in the same error.

ffmpeg -y -i "Adam Curtis, HyperNormalisation-p04b188g.fstream-uk-iptv_streaming_concrete_combined_hd_mf_limelight_uk_dash-video=5070000.mp4" -i "Adam Curtis,HyperNormalisation-p04b188g.fstream-uk-iptv_streaming_concrete_combined_hd_mf_limelight_uk_dash-audio=128000.m4a" -c copy -map 0:v:0 -map 1:a:0 "Adam Curtis, HyperNormalisation-p04b188g.temp.mp4"
ffmpeg version N-73361-g03b2b40 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
 --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
  libavutil      54. 27.100 / 54. 27.100
  libavcodec     56. 46.100 / 56. 46.100
  libavformat    56. 40.100 / 56. 40.100
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 19.100 /  5. 19.100
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.100 /  1.  2.100
  libpostproc    53.  3.100 / 53.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 048399e0] Could not find codec parameters for stream 0 (Video: none (avc3 / 0x33637661), none, 1280x720, 4734 kb/s): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Adam Curtis, HyperNormalisation-p04b188g.fstream-uk-iptv_streaming_concrete_combined_hd_mf_limelight_uk_dash-video=5070000.mp4: could not find codec parameters
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Adam Curtis, HyperNormalisation-p04b188g.fstream-uk-iptv_streaming_concrete_combined_hd_mf_limelight_uk_dash-video=5070000.mp4':
  Metadata:
    major_brand     : iso6
    minor_version   : 0
    compatible_brands: iso6dash
  Duration: 02:46:31.00, start: 0.020000, bitrate: 4739 kb/s
    Stream #0:0(und): Video: none (avc3 / 0x33637661), none, 1280x720, 4734 kb/s, 50 fps, 50 tbr, 50k tbn, 50k tbc (default)
    Metadata:
      handler_name    : USP Video Handler
      encoder         : AVC Coding
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from 'Adam Curtis, HyperNormalisation-p04b188g.fstream-uk-iptv_streaming_concrete_combined_hd_mf_limelight_uk_dash-audio=128000.m4a':
  Metadata:
    major_brand     : iso6
    minor_version   : 0
    compatible_brands: iso6dash
  Duration: 02:46:31.00, start: 0.000000, bitrate: 127 kb/s
    Stream #1:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
      handler_name    : USP Sound Handler
[mp4 @ 06577920] Codec for stream 0 does not use global headers but container format requires global headers
[mp4 @ 06577920] Codec for stream 1 does not use global headers but container format requires global headers
[mp4 @ 06577920] Could not find tag for codec none in stream #0, codec not currently supported in container
Output #0, mp4, to 'Adam Curtis, HyperNormalisation-p04b188g.temp.mp4':
  Metadata:
    major_brand     : iso6
    minor_version   : 0
    compatible_brands: iso6dash
    encoder         : Lavf56.40.100
    Stream #0:0(und): Video: none (avc3 / 0x33637661), none, 1280x720, q=2-31, 4734 kb/s, 50 fps, 50 tbr, 50k tbn, 50k tbc (default)
    Metadata:
      handler_name    : USP Video Handler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 48000 Hz, stereo, 125 kb/s (default)
    Metadata:
      handler_name    : USP Sound Handler
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument

Using a more recent version of ffmpeg (e.g. 3.1.4), the same command works fine.

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Oct 18, 2016

Using a more recent version of ffmpeg (e.g. 3.1.4), the same command works fine.

You've got it. If you need to use a different ffmpeg than the default one, --ffmpeg-location is helpful.

@yan12125 yan12125 closed this Oct 18, 2016
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
2 participants
You can’t perform that action at this time.