Page 1 of 1

Getting sizes without displaying

Posted: 25 May 2008 09:00
by Clafoutis
Hi!

When I open a file with verbose=2, I can read from the result the data I need, for example :
[00000347] main video output debug: window size: 768x576

For a resizing utility I am building, I would like to detect video size of a file without displaying anything, so I can set parameters for the transcoded display following.
Is there a way to ask VLC to open and decode a file, return me the dimensions, but without anything displaying on screen ? I tried --no-video but no size is detected, --no-sout-video seems not better...

Any idea of a trick for this ?

Thank you!