Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Add warning to documentation that merging DASH video requires newer avconv #1809
Comments
|
@maxb, can you please let me know what you tried? The 0.8 version of libav should be good enough for muxing audio and video. See my post here: http://cynic.cc/blog/posts/2013-10-23-assorted_news/ The relevant excerpt is also what I included in Debian's packaging of youtube-dl: https://github.com/rbrito/pkg-youtube-dl/blob/master/debian/NEWS |
|
... or ffmpeg, which most of the world still uses. In ffmpeg 2.1/2.0/1.2.1/1.2: |
|
@rbrito I'm on Ubuntu 13.10. If I do: any ideas? More info:
any ideas? |
|
@rbrito Sorry I've taken so long to respond here, I had a fairly crazy week at work. MDCore's description is in agreement with what I saw. Here are the exact commands I ran:
(I've chosen lower quality format codes in the above example to be kinder on the time and bandwidth of people just wanting to verify the bug.) The out.mp4 produced by libav-tools 0.8.9-0ubuntu0.13.10.1 is far too small to contain any video data, and avprobe reports that it contains only an audio stream. Switching to 9.10-1ubuntu1 with no other changes instead produces a successful combined file. |
|
@maxb I've searched high and low but I can't find out how to switch to 9.10-1ubuntu1 in Saucy. Do I need to compile from source? |
|
@MDCore I did it the "advanced APT shenanigans" or possibly just "evil" way - I reconfigured APT to include Trusty Tahr sources, and applied the relevant black magic in /etc/apt/preferences to ensure I only got what I wanted from Trusty. For the record, the process goes like this:
Bear in mind that if you go through with the above, it's firmly into the area of unsupported black magic, and it is CRITICAL you undo the changes to /etc/apt/sources.list and /etc/apt/preferences before attempting to upgrade fully to Trusty in the future, or bad stuff will happen to the upgrade. |
|
Thanks for documenting the process @maxb, even though I don't think I'm going to risk it! Hopefully someone will make a PPA. |
|
@MDCore Well, since you asked :-) - deb http://ppa.launchpad.net/maxb/trusty-libav-for-saucy/ubuntu saucy main It's the exact same packages you'd end up with from the previous method (i.e. the ones currently in the Trusty repository), but making use of Launchpad's ability to copy selected packages into a new PPA to avoid the complexity of needing to configure filters on the client side to affect what packages you get. |
|
@maxb Wow! I added the ppa, updated libav and ran the same test as before. It worked perfectly! How can I thank you? |
|
@maxb You saved my day! Thx for the repo and fix! |
|
'stiching' m4a/mp4 dash videos works fine. stitching webm video and audio together fails with a "ERROR: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument". Not much love for webm. |
|
I had the same problem of no video output when muxing 1080p DASH video and audio got from youtube using avconv on Ubuntu 12.04. This worked for me: MP4Box -add video_only.mp4 -add audio_only.m4a -new combined.mp4 |
|
youtube-dl will now warn automatically if it finds an overly old ffmpeg or avconv version. Thanks for the report! |
|
It's good that this is fixed. But I'd like to say again that if you have this problem with a recent avconv build, you should really give ffmpeg a try. Sometimes things work in ffmpeg that don't in avconv. |
Hi,
I just downloaded my first DASH Video+Audio, and had some difficulty figuring out how to stitch them together. avconv seemed to not be able to properly read the DASH video in copy mode.
Eventually, I tried upgrading my installation of libav from 0.8.9 (available in the current Ubuntu release) to 9.10 (I got it from the Ubuntu development version), and this fixed the issue.
It would be nice if youtube-dl's documentation contained a warning that avconv 0.8.x has problems handling DASH video, and suggested upgrading to avconv 9.x.
The specific video I was downloading was http://www.youtube.com/watch?v=hpNp8WdQOoo format 137, though I also tested a number of the lower quality DASH video formats with the same results.