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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 2nd November 2018, 13:48   #1  |  Link
Adam Cole
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
Adam Cole is offline   Reply With Quote
Old 2nd November 2018, 14:09   #2  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,574
Quote:
Originally Posted by Adam Cole View Post
I have an MKV file ripped with MakeMKV straight from an NTSC DVD and I want to speed it up by 4%
You can try to feed to MKVToolnix and set the wanted "speed" there.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 2nd November 2018, 14:22   #3  |  Link
Adam Cole
Registered User
 
Join Date: Aug 2018
Posts: 13
Quote:
Originally Posted by tormento View Post
You can try to feed to MKVToolnix and set the wanted "speed" there.
Where is the speed parameter?
Attached Images
 
Adam Cole is offline   Reply With Quote
Old 2nd November 2018, 15:15   #4  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Quote:
Originally Posted by Adam Cole View Post
DGPulldown (didn't work)
That's because DGPulldown is neither designed nor intended to speed up video.
videoh is offline   Reply With Quote
Old 2nd November 2018, 15:30   #5  |  Link
huhn
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)
you should look up a better version with pitch correction.

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.
huhn is offline   Reply With Quote
Old 3rd November 2018, 09:23   #6  |  Link
manono
Moderator
 
Join Date: Oct 2001
Location: Hawaii
Posts: 7,406
Quote:
Originally Posted by Adam Cole View Post
DGPulldown (didn't work...
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.
manono is offline   Reply With Quote
Old 3rd November 2018, 10:33   #7  |  Link
SeeMoreDigital
Life's clearer in 4K UHD
 
SeeMoreDigital's Avatar
 
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: -
  • Remove the 3:2 pull-down flag (various applications such as TSmuxer GUI can do this).
  • Run the elementary MPEG-2 (.m2v) stream through an (very old) application called ReStream v0.9.0 and set the new/required frame-rate



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.
SeeMoreDigital is offline   Reply With Quote
Old 4th November 2018, 14:35   #8  |  Link
Adam Cole
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?
Adam Cole is offline   Reply With Quote
Reply

Tags
pal speedup

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:04.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.