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?
+ Reply to Thread
Results 1 to 3 of 3
-
-
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 -
Originally Posted by poisondeathray
Similar Threads
-
Video Bitrate
By HartsVideo in forum Video Streaming DownloadingReplies: 39Last Post: 9th Aug 2009, 03:35 -
Video Bitrate
By Nitro89 in forum Video ConversionReplies: 30Last Post: 11th Feb 2009, 08:04 -
Increasing the video bitrate?
By Remyisme in forum Newbie / General discussionsReplies: 7Last Post: 15th Nov 2008, 07:31 -
video bitrate calculation
By nivek_nayr in forum Camcorders (DV/HDV/AVCHD/HD)Replies: 11Last Post: 12th Feb 2008, 21:30 -
Video bitrate after conversion
By vcd_user in forum Video ConversionReplies: 5Last Post: 16th May 2007, 09:21