Page 1 of 1

m4v file plays fine with desktop viewer but not via python api

Posted: 31 Oct 2018 00:58
by Coleslaw
As subject says,..have many .m4v files that play fine with the desktop app, vlc.exe.

However, when I try to load & play them via the python api, they won't play, no message, no error.

I can play .wmv/.mov files via python api just fine though.

What am I doing wrong? Do I need to specify some '--' flag pertaining to 'libx264' ?

>> self.instance = vlc.Instance('--no-xlib', '--no-audio', '--mouse-hide-timeout=3', '--plugin-path=C:/Program Files/VideoLAN/VLC/plugins')

Thank you very much,
Cheers,

Re: m4v file plays fine with desktop viewer but not via python api

Posted: 31 Oct 2018 01:09
by Coleslaw
is it possible I should add "--demux h264" ?
Thanks,

Re: m4v file plays fine with desktop viewer but not via python api

Posted: 31 Oct 2018 19:28
by Coleslaw
Please ignore my question, I found that yes indeed passing '--demux=m4v,mp4,wmv' solves the issue.
Thank you,