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

[Enhancement] Output to webm instead of mkv #583

Open
grizzlymannn opened this issue Dec 14, 2024 · 2 comments
Open

[Enhancement] Output to webm instead of mkv #583

grizzlymannn opened this issue Dec 14, 2024 · 2 comments

Comments

@grizzlymannn
Copy link

I use Plex to stream the videos that tubesync grabs. I noticed that the Plex web client transcodes VP9/OPUS files when they're in a mkv container. If I remux them with ffmpeg to webm they'll direct play. As an example, a file that's originally 0.9Mbps ends up streaming at 9.9Mbps.

Would it be possible to add an option to output files in webm if the video has the supported codecs, then fallback to mkv otherwise?

Command I use to remux.
ffmpeg -i input.mkv -c copy output.webm

@meeb
Copy link
Owner

meeb commented Dec 16, 2024

Thanks for the issue. The mkv container was originally chosen because no other available container supports all the combinations of supported audio and video stream codecs. While it would be technically possible to support webm this would only be supported for VP9 video codec downloads. So far I've avoided having to pre-compute the container format based on a sources selected codecs. The mkv that tubesync writes is perfectly valid, it's extremely annoying that Plex doesn't support it without transcoding.

I'll revisit this at some point most likely.

@grizzlymannn
Copy link
Author

Thanks for the explanation. Given all that, I'd considered this a low priority quality of life optimization. It still works fine as an mkv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants