VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Hi all,

    In building a wrapper to FFMPEG, we are trying to figure out what libraries will allow us to read the resolution of a video file. Ideally it will work on Windows and Linux. Is there a way to run FFMPEG command-line and get back the resolution of a video? Does anyone know of libraries that would be useful for this purpose?

    Note: we've already seen http://directshownet.sourceforge.net

    Thanks,
    jsdf
    Quote Quote  
  2. Member
    Join Date
    Aug 2006
    Location
    Switzerland
    Search Comp PM
    On the command-line, you can use mplayer, a software that uses ffmpeg librairies. The output is sometimes very verbose, but the informations were correct the time I was using it (with MPEG2-PS, MPEG2-TS).

    Code:
    $ mplayer -identify <path/to/your/file> -nosound -frames 1
    Another software I found useful: http://mediainfo.sourceforge.net/fr

    Hope this helps
    Quote Quote  
  3. Member
    Join Date
    Mar 2008
    Location
    Belgium
    Search Comp PM
    mediainfo looks nice!
    I have a problem quite similar but bigger: I'm building a database which automatically detects and stores codec information about a sequence.
    For that I would need a tool/library which gives me that information (for example in an xml file) but I also must get a complete list of every possible piece of information which the library/tool can extract, in order to populate my database.
    Does someone has some pointers to what I can use for this?
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!