VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Member
    Join Date
    Jan 2010
    Location
    United States
    Search Comp PM
    I'm looking for a tool that runs on XP that will let me change the frame-rate setting in an AVI file from a batch file script. I know about AVIfrate.exe - but one can only load a file as a command line option and despite spending a lot of time trying to create a "wrapper" for it in AutoHotkey, it still doesn't work reliably. I really want to come up with a solution where the script can run without me having to watch it and intervene if the AVIfrate part hangs up.

    A command-line only tool is fine, a GUI tool is also acceptable as long as it can take all the necessary parameters from the command line.

    The goal here is actually to make the video play at a different speed, not re-process it to play at the same speed just using a different frame rate. (You'd think this would be an option somewhere in FFMPEG - but if it's in there, I haven't found it yet.) I know how to reprocess my audio to match the new frame rate, so that's not a problem. I just need a way to tweak the AVI's metadata.

    Any assistance on this would be greatly appreciated!
    Quote Quote  
  2. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Dunno if it'll work but try

    ffmpeg -i input.avi -r 29.97 -vcodec copy -acodec copy output.avi
    "Quality is cool, but don't forget... Content is King!"
    Quote Quote  
  3. Member
    Join Date
    Jan 2010
    Location
    United States
    Search Comp PM
    Originally Posted by Soopafresh
    Dunno if it'll work but try

    ffmpeg -i input.avi -r 29.97 -vcodec copy -acodec copy output.avi
    Clever idea ... but it doesn't seem to work. I tried it on two different versions* of FFMPEG I happened to have around, and neither changed the FPS metadata in the output file.

    * SVN-r16043-Sherpya and SVN-r18639 in case anyone's wondering.
    Quote Quote  
  4. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Bummer. Try this thread. I found a commandline app a few years ago that might work.

    https://forum.videohelp.com/topic322253.html

    Edit - Newer version of Avimaster http://www.thozie.de/AVIMaster.zip
    "Quality is cool, but don't forget... Content is King!"
    Quote Quote  
  5. Member
    Join Date
    Jan 2010
    Location
    United States
    Search Comp PM
    Originally Posted by Soopafresh
    Bummer. Try this thread. I found a commandline app a few years ago that might work.

    https://forum.videohelp.com/topic322253.html

    Edit - Newer version of Avimaster http://www.thozie.de/AVIMaster.zip
    I found a tool I already have and use can do it... *grin* The command-line version of AVIdemux can set the frame rate of a video stream it's copying. Essentially the same idea you suggested with FFMPEG, just a different tool - so thanks for the idea to look at the problem that way! Instead of demuxing the video stream with FFMPEG and then trying to change the frame rate - this does it all in one step:

    Code:
    avidemux2_cli.exe --load InFile.avi --video-codec COPY --output-format AVI --no-audio --fps [WhatEver] --save OutFile.avi --quit
    YAY!
    Quote Quote  



Similar Threads

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