sammoth / foo_mpv

mpv video player UI element for foobar2000
GNU General Public License v3.0
57 stars 2 forks source link

Playback on videos that has no audio tracks. #15

Open ddesaparecido opened 10 months ago

ddesaparecido commented 10 months ago

Hi! I've been learning how to setup foobar2000 to be a very great sfx/vfx library where I can organize everything and quickly use it for video producing.

Discovered foo_mpv some weeks ago and I've been scratching my head to discover how to playback videos that has no audio tracks, error pop-up always shows up. Managed to disable it on Advanced tab but video playback doesn't go until the end.

I acknowledge that mpv is only responsible for decoding video, and what decodes audio is foobar itself, but I haven't had any success finding something that bypass that audio decoding when playing video files that has no audio tracks on it.

Is there any way to play video files that has no audio tracks?

sammoth commented 10 months ago

Hi! Unfortunately I'm not sure there's an easy way around this. It's not just that it's foobar that decodes the audio, but it's also responsible for dealing with the timing of the playback itself - foo_mpv just piggybacks off the playback of the audio track to play the video at the same time. Without being an 'input' component and taking over control of the audio playback completely, foo_mpv can't really control foobar's idea of playback timing, like deciding how long a track is and when it's finished.

So this is just a limitation of how this component is designed - it only works with videos where the audio track is the same length as the video. I think the only way around it would be to mux the video together with a silent audio track.

ddesaparecido commented 10 months ago

I see, I'll end up remuxing because it will be worth. Thank you for the response! <3