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.
Checklist
Verbose log
Description
Most videos from v.redd.it are DASH, which means audio and video get downloaded separately and then get combined into a (working) MP4. Some videos are MPEG-TS though and youtube-dl just downloades them and leaves them alone (even though I specified
-o video.mp4). Those videos play fine but they don't work as HTML5 video.I've tried adding
--merge-output-format mp4and--recode-video mp4but youtube-dl keeps sayingAs a workaround I've added my own exec (
youtube-dl -o tmp.mp4 --exec "ffmpeg -i {} -c copy video.mp4 && rm {}" "https://v.redd.it/16cqbkev2ci51"), which runsffmpegfor less than a second and actually gives me a web-browser playable MP4.Also if it help you guys to debug this: I replaced my
/bin/ffmpegwithecho $* > /tmp/ffmpeg.txtand as it turns out the systemffmpegdoesn't even get called.