recording from youtube.com with youtube-dl, ffmpeg fails to merge
i am working on a separate, totally different, project involving youtube-dl and ffmpeg. i get only separate video (mp4) and audio (webm) files and an empty that i suspect is the intended merge.
i am trying to download my brother's wedding video at https://www.youtube.com/watch?v=yakmwIqa8cs i get the follow error messages: Code:
and, no, i am not in it. so don't bother trying to guess who i am. |
Full command line, full output please.
|
1. update youtube-dl to the latest version (sudo youtube-dl -U), also make sure that ffmpeg and python are updated
2. run youtube-dl with -k to keep downloaded files and then run ffmpeg manually as specified at '[debug] ffmpeg command line:' to diagnose the issue further I was able to download and merge your video into mkv using ffmpeg post-processing without issues, so the problem is with your setup, not with youtube-dl. |
it must be something in my local script that runs youtube-dl then. i always wrap major things with a script so that things like arguments and option are consistent and deliberate. that i don't forget something the next i run the command. running my script looks like this:
Code:
ytdl https://www.youtube.com/watch?v=yakmwIqa8cs |
i stumbled onto the problem. it's in mplayer. the merged video did have audio. if the previous video it played was muted when it quit, that mute setting, wherever it was set (maybe in pulseaudio?), was still in effect on the next video it played, even though mplayer's own state for mute was disabled. pressing "m" twice (enabled then disabled) fixes it. but ffplay works correctly. my guess is that mplayer needs to either silence itself if it set mute on pulseaudio or initialize things more appropriately.
i am not going to follow up on mplayer, though i should be sure i have the latest version i may learn to use ffplay. |
i think i am getting different projects mixed up in my head. i need to focus on one for a while. the wedding project was having a different issue that i am now unable to reproduce even though i has happened a few times before. maybe i need to rewrite these scripts. youtube-dl seems to be working OK, now.
|
Quote:
|
Quote:
|
so, i should upgrade youtube-dl whenever something fails, and try again.
|
Quote:
Unlike others, I find it can vary anywhere from 3 weeks to 3 months between upgrades - my guess is it depends on the videos involved. |
Quote:
At least for youtube itself, updates come in about weekly, sometimes more often, if there is a need. (There was a lull during the RIAA desaster, though.) Other sites can take much longer. I hope you're not relying on your distro's packaged youtube-dl. No, you must use the version straight from their site, or from github, and be able to pull in updates yourself. youtube-dl even has a "-U" option for that. |
Quote:
|
Quote:
|
i suppose youtube-dl updates could be from just one site in the huge list needing a scraper update. so each update might fix what just a fraction of users need to be fixed. to the extent that updates are expensive, just update when needed. how do you know when that is? :-)
|
Quote:
The ability to download videos breaks every now and then (*), because effing googlevideo changed the site layout again, with that specific purpose. The problem is that it rarely breaks completely, only for certain videos, certain countries, only for playlists etc.etc. youtube-dl is keeping abreast by updating its code all the time. This is not comparable to updates in other software development in general. You can update often, pre-emptively so to speak, or only after you hit a snag - the outcome is the same in the end. (*) I can't say exactly because I do update pre-emptively, but even so it happens every couple'o months or so, that I cannot download, update youtube-dl, then can download. |
All times are GMT -5. The time now is 02:44 PM. |