-
Notifications
You must be signed in to change notification settings - Fork 10k
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
MPEG-TS instead of MP4 #26410
Comments
FYI, another workaround: |
Maybe I didn't explain my issue all to well back then (was just getting started with youtube-dl).
I can't find a way to force it to proper MP4/MPEG4. Hopefully it's clearer now. |
Hm, I thought that I made it pretty clear now but alright, I'll give you an example: Good: Video with Audio, bestvideo+bestaudio (DASH) ->
|
No, the good cases provide a reference.
All links are "proper" links - the
Well yeah, of course. As per your output above
you will only get the 480x480 video (see case 3: |
Yes, I already did that (see case 5).
You don't seem to understand the issue here: It's not that it's not working in browser, that was just an example. Youtube-dl is creating a bad MP4 (AVC does not belong in a MPEG-TS container). It should either refuse to create a |
Why are you so desperately trying to dismiss this issue as invalid? Read #26410 (comment)
|
They play fine by pure chance. Giving a MPEG-TS container a |
* 'master' of https://github.com/yt-dlp/yt-dlp: [NovaEmbed] Fix extractor (#1814) Fix logic error in report_unplayable_conflict [tiktok:user] Set `webpage_url` correctly Closes #1802 [twitch:vod] Extract live status (#1722) Authored by: DEvmIb Ensure directory exists when checking formats [EmbedSubtitles] Slightly relax duration check and related cleanup Closes #1385 [FixupM3u8] Fixup MPEG-TS in MP4 container Closes #1701, ytdl-org/youtube-dl#26410 [Senate.gov] Add SenateGovIE and fix SenateISVPIE (#1435) [Aljazeera] Fix extractor (#1577) [Twitch:vod] Add chapters (#1515) [Tvplayhome] Fix extractor (#1357) [redgifs] Add extractor (#1631) [xvideos] Fix extractor (#1799) [nebula] Add NebulaCollectionIE and rewrite extractor (#1694) [CPTwentyFour] Add extractor (#1769)
Now that the issue is fixed downstream, I'm kinda debating if I should just delete all my comments here because it's quite embarrassing how I allowed myself to get trolled this hard by 89z (a random with 0 commits to this repo). But I guess it will serve as reference in case the project gets revived and a dev finds this? I'll leave it open just in case. |
To prevent further trolling, I have decided to block 89z now. Sorry for the noise. |
I don't think that was trolling in the slightest ... |
@rautamiekka Please keep your opinions to yourself. This is an issue tracker, not Twitter. |
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 mp4
and--recode-video mp4
but 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 runsffmpeg
for 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/ffmpeg
withecho $* > /tmp/ffmpeg.txt
and as it turns out the systemffmpeg
doesn't even get called.The text was updated successfully, but these errors were encountered: