Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foobar2000 fails to read the mkv video (Read 2812 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

foobar2000 fails to read the mkv video

Hi, I'm currently using foobar2000 v2.0 beta12 and I found it fails to play mkv videos I downloaded using yt-dlp from youtube. The common part of these mkv videos is that they're Google/On2's VP9 Video (VP90) + Opus Audio (Opus), reported by VLC. But when I extract the audio track to .mka file using LosslessCut and MKVToolNix, it plays fine.
Here's sample. What's the problem here?


Re: foobar2000 fails to read the mkv video

Reply #2
I was able to play the audio part of your sample using ffmpeg wrapper + ffmpeg and adding "MKV/*.MKV" to the ffmpeg conffig in foobar.
https://www.foobar2000.org/components/view/foo_input_ffmpeg
https://github.com/GyanD/codexffmpeg/releases

I don't know how to play video in foobar, but there's this: https://fy.3dyd.com/
Thanks for recommendation, it works now with this component, but what about the built-in support for webm/mkv?...

Re: foobar2000 fails to read the mkv video

Reply #3
Foobar is an audio player, and those containers are mainly used for video, so it's not likely they will be added.



Re: foobar2000 fails to read the mkv video

Reply #6
Quote
fb2k plays .mkv files just fine in my daily use.

Mkv is a container format, kinda depends what's in it to play fine on foobar2000.

Re: foobar2000 fails to read the mkv video

Reply #7
@qazmko1029 : Upgrade your yt-dlp? It uses IDMmkvlib ... mine does not.
I tracked down the video and yt-dlp'ed it - what I got, plays just fine with foobar2000.

Comparing your mkv and mine, the offending file has a total duration, but lacks a <DURATION> tag for each stream.
ffmpeg -i yourfile.MKV -codec copy fixedfile.mkv
fixes the container. (And is lossless.)

Edit: You can also use the official mkclean tool. https://sourceforge.net/projects/matroska/files/mkclean/
The file seems valid though.

Re: foobar2000 fails to read the mkv video

Reply #8
@qazmko1029 : Upgrade your yt-dlp? It uses IDMmkvlib ... mine does not.
I tracked down the video and yt-dlp'ed it - what I got, plays just fine with foobar2000.

Comparing your mkv and mine, the offending file has a total duration, but lacks a <DURATION> tag for each stream.
ffmpeg -i yourfile.MKV -codec copy fixedfile.mkv
fixes the container. (And is lossless.)

Edit: You can also use the official mkclean tool. https://sourceforge.net/projects/matroska/files/mkclean/
The file seems valid though.

This really solved my confusion, thanks a lot!