VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. Member
    Join Date
    Jan 2010
    Location
    United States
    Search Comp PM
    I'm trying to get the video bitrate from the commandline (for use in a script). My strategy currently is an avisynth script:

    DirectShowSource("file")
    filename = "c:\output.txt"
    WriteFileStart(filename, "FrameCount/FrameRate")

    This seems to work to get the video duration in seconds. My problem is running the avs script opens my media player. I don't want to play the video, just get the duration and exit. How would I do this in avisynth?
    Quote Quote  
  2. I think avisynth does not convey any information about bitrate

    You could use mediainfo, I think you might be able to use it in a command line. This only reads header information and may or may not be accurate.

    If it's video only (or subtract the audio), you could use a math formula since filesize=bitrate x running time , and you can fugure out running time and filesize
    Quote Quote  
  3. Member
    Join Date
    Jan 2010
    Location
    United States
    Search Comp PM
    Originally Posted by poisondeathray
    I think avisynth does not convey any information about bitrate

    You could use mediainfo, I think you might be able to use it in a command line. This only reads header information and may or may not be accurate.

    If it's video only (or subtract the audio), you could use a math formula since filesize=bitrate x running time , and you can fugure out running time and filesize
    Yeah that's what I'm doing (the math formula). I've found avsutil does what I want.
    Quote Quote  



Similar Threads

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