View Full Version : Script to change the framerate of a mpeg ?
bttf
24th August 2008, 10:55
I have an mpeg movie of 120 seconds.
I'd like to reencode it reducing its lenght (about 60 seconds).
In other word, I'd like to run it more speedly so i can capture it and encod again in mpeg (for example, with HC).
Some script ?
Thanks
Guest
24th August 2008, 17:46
Your problem is not clear.
You don't have to play it and capture it again to re-encode it using HC.
You can just use a simple Avisynth script to serve it to HC.
What exactly are you wanting to do and why?
Umamio
24th August 2008, 18:12
As neuron2 indicated above, it is not very clear what exactly you want to do, but this is my understanding
1. Create d2v index file and demux audio using dmpgdec (as part of megui (under tools -> d2v) or using the standalone from (http://neuron2.net/dgmpgdec/dgmpgdec.html)
2. Create avs, make sure to load dgmpegdec Plugin
LoadPlugin(/...dll)
Or have it in your avisynth's autoload folder
3. Script
v = DGDecode_mpeg2source(path to your d2v file.d2v)
a = WAV/AC3/MPA Source(path to your demuxed audio)
Audiodub(v,a)
AssumeFPS((v.FramerateNumerator)*2, v.FramerateDenominator, true)
ResampleAudio(a.Audiorate)
SelectEven
The audio will sound like a record being played at double speed, if the audio pitch is important to you, consider using TimeStretch: http://avisynth.org/TimeStretch on the audio component.
If you don't need for your mpeg framerate to be DVD compliant (assuming it was to begin with) then you can leave out SelectEven.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.