View Full Version : How to identify a video file without mplayer?
shevegen
2nd July 2006, 18:06
I want to write a small .c file that can identify video files.
Length, and more info.
Any pointers?
I dont mind to use ffmpeg or something already existing (if its documented)
alec_robertson
4th July 2006, 17:04
Maybe look at the source code for "tcprobe" in the transcode package or "ffplay -stats" in ffmpeg.
shevegen
6th July 2006, 02:50
Good idea, I'll give tcprobe/transcode a shot!
nickrout
3rd August 2006, 03:06
ffmpeg can give useful information too.
ffmpeg -i thisfile.avi
spits out a whole lot of info and then craps out because there is no output file specified.
shevegen
5th August 2006, 17:55
Yeah I know there are various tools to identify something, but back then I needed just a simple .c file. You know, something like GSpot for Linux would be cool with a modular shape, so you could easily include it in other applications without the need to use the full of ffmpeg/transcode/mplayer.... :)
But since I was a complete C newbie, I spent more time with other things again (finishing up on C is still on my todo list, and I wont give up on C)
nickrout
5th August 2006, 23:00
all i can suggest is looking at the code in those other open source projects...
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.