Getting info from command line
Posted: 26 Jan 2005 20:27
Reading the forums, I found a post asking whether it was possible to get media duration from command line, and the answer was NO.
I thought there was a text-only interface ? Couldn't we grep on it's output ?
The main problem is probably to be able to get information from the media and quit as soon as it's gotten ; it seems (but I may be wrong) the way VLC functions permits only to get information while the stream is being read...
I think I could, with time and a bit of study of the code, write sort of a 'info' interface, that would simply output info on stdout (or stderr), and quit...
The way I see it it is not a extra interface, but really an interface; because we can (apart from sending the info to stdout) already do that by hand with the wxwindow interface, I am sure my project is easily feasible.
Could you tell me what you think about that ?
_FrnchFrgg_
I thought there was a text-only interface ? Couldn't we grep on it's output ?
The main problem is probably to be able to get information from the media and quit as soon as it's gotten ; it seems (but I may be wrong) the way VLC functions permits only to get information while the stream is being read...
I think I could, with time and a bit of study of the code, write sort of a 'info' interface, that would simply output info on stdout (or stderr), and quit...
The way I see it it is not a extra interface, but really an interface; because we can (apart from sending the info to stdout) already do that by hand with the wxwindow interface, I am sure my project is easily feasible.
Could you tell me what you think about that ?
_FrnchFrgg_