Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
2nd November 2018, 13:48 | #1 | Link |
Registered User
Join Date: Aug 2018
Posts: 13
|
Please help me speed up an mkv MPEG2 video by 4%
I have an MKV file ripped with MakeMKV straight from an NTSC DVD and I want to speed it up by 4% (doing a PAL Speedup). The lenght is 22:51. By doing a speed up, the lenght should decrease but it doesn't for me and I tried several approaches using AVISynth (there is always an error with this one), DGPulldown (didn't work), I even converted the file with Handbrake but the lenght still remained the same. I don't know what else I can do.
Below is the media info of the mkv file. It says the frame rate mode is variable. Not sure if that's important. Please help me. Code:
Video ID : 1 ID in the original source medi : 224 (0xE0) Format : MPEG Video Format version : Version 2 Format profile : Main@Main Format settings, BVOP : Yes Format settings, Matrix : Custom Format settings, GOP : M=3, N=12 Codec ID : V_MPEG2 Codec ID/Info : MPEG 1 or 2 Video Duration : 22 min 51 s Bit rate mode : Variable Bit rate : 7 113 kb/s Maximum bit rate : 9 800 kb/s Width : 720 pixels Height : 480 pixels Display aspect ratio : 4:3 Frame rate mode : Variable Frame rate : 23.976 (24000/1001) FPS Standard : Component Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Scan order : 2:3 Pulldown Compression mode : Lossy Bits/(Pixel*Frame) : 0.858 Time code of first frame : 01:02:04:10 Time code source : Group of pictures header GOP, Open/Closed : Open GOP, Open/Closed of first fram : Closed Stream size : 1.14 GiB (94%) Language : English Default : No Forced : No Color primaries : BT.601 NTSC Transfer characteristics : BT.601 Matrix coefficients : BT.601 |
2nd November 2018, 15:30 | #5 | Link |
Registered User
Join Date: Oct 2012
Posts: 7,922
|
https://forum.doom9.org/archive/index.php/t-133338.html
Code:
assumeFPS(25) and since the playback is speeded by about 4% (25/23.976) the audio must be stretched using the following avisynth command: timestretch(tempo=25.0 * 100 / 23.976) the variable part can be problematic. but if the media information are correct this file is softtelecine and just loading it into avisynth should turn it into a perfectly progressive file but i personally never trust stuff like this. |
3rd November 2018, 09:23 | #6 | Link |
Moderator
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
|
It wouldn't, on an MKV. Extract the M2V either from the VOB or from your MKV using MKVToolNix and then run that M2V through DGPulldown with the "Custom" box ticked and set for 25->25.
This assumes your DVD really is all soft telecined (encoded as progressive 23.976fps). You'll have to speed up the audio before muxing them back together into MKV or MPG or whatever. |
3rd November 2018, 10:33 | #7 | Link |
Life's clearer in 4K UHD
Join Date: Jun 2003
Location: Notts, UK
Posts: 12,227
|
With regard to the elementary MPEG-2 video stream, what I have often done is: -
As you can see there are many options to tweak an MPEG-2 streams properties
__________________
| I've been testing hardware media playback devices and software A/V encoders and decoders since 2001 | My Network Layout & A/V Gear |
Last edited by SeeMoreDigital; 4th November 2018 at 14:46. |
4th November 2018, 14:35 | #8 | Link |
Registered User
Join Date: Aug 2018
Posts: 13
|
Ok, so in MKVtoolNix under 'Timestamps and default duration' I set 'Default Duration/FPS' to 25p and that did seem to do the trick. No AviSynth or DGPulldown necessary. Audio I sped up with audacity using the 'Change Tempo' effect. Muxed everything together and voila. Was it really that easy or did I miss something?
Anyways, now that the video is 4% faster, the timestamps of the chapters are wrong. Is there a tool that can correct this automatically? |
Tags |
pal speedup |
Thread Tools | Search this Thread |
Display Modes | |
|
|