LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-22-2020, 06:55 PM   #1
elemkay
LQ Newbie
 
Registered: Feb 2020
Posts: 7

Rep: Reputation: Disabled
Speedup/slowdown of video (including audio), ideally during playback


I currently use Cyberlink PowerDVD combined with a tool called ReClock that allows high quality slowing down of DVDs. This means I can finally watch PAL DVDs of US shows at the correct speed, rather than 4% faster that they normally play at. Does anyone know of a Linux program that allows fine adjustment of playback speed (as well as pitch of audio), or at least where you can do this to a saved file? Having to keep Windows around just for this would be frustrating, but if I can't find a Linux option I may have to! Thanks in advance
 
Old 02-24-2020, 12:43 PM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Sorry for my ignorance, but please could you explain how the different DVD formats, played through a software player and ending up on a monitor refreshing at a different refresh rate, somehow end up playing for different amounts of time?
 
Old 02-24-2020, 01:26 PM   #3
elemkay
LQ Newbie
 
Registered: Feb 2020
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
Sorry for my ignorance, but please could you explain how the different DVD formats, played through a software player and ending up on a monitor refreshing at a different refresh rate, somehow end up playing for different amounts of time?
Sure, I may be getting slight details wrong here, but the essence of it is that shows filmed over in the states are filmed at 24fps. For 50hz compatibility that is then sped up to 25fps, allowing for smooth compatibility in PAL (50hz) regions. So DVDs are manufactured at about 104% speed in PAL regions, often accompanied with higher pitched audio. To work around that, ReClock slows down DVDs playing in PowerDVD as they are playing to their proper speed. If you are interested in further details you can search PAL Speedup in google.
 
Old 02-24-2020, 01:36 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I ask you again to actually explain the issue you are trying to resolve.
https://en.m.wikipedia.org/wiki/576i#PAL_speed-up
 
Old 02-24-2020, 02:32 PM   #5
elemkay
LQ Newbie
 
Registered: Feb 2020
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by 273 View Post
I ask you again to actually explain the issue you are trying to resolve.
https://en.m.wikipedia.org/wiki/576i#PAL_speed-up
Trying to find a piece of Linux software that allows you to slowdown videos, ideally DVDs, to their intended broadcast speed. Either during playback (a media player like VLC) or something that can timestretch saved video files.
 
Old 02-24-2020, 02:45 PM   #6
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,152
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
To just slow it down 4%
Code:
mplayer dvd://1 -speed 96/100
Keep pitch, change tempo example: (150%)
Code:
mplayer MyFile.mp4 -af scaletempo -speed 1.5
Keep tempo, change pitch. Use [ ] keys to change pitch
Code:
mplayer file.mp3 -af scaletempo=scale=1.0:speed=pitch
 
Old 02-24-2020, 03:06 PM   #7
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,152
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
24, 25 or 30 fps videos will play at the correct speed unless the time base has been messed up while dumping them.

Are you talking about a video DVD or a file that was dumped from a DVD? Both should play at the correct speed.

If you take a 30fps video and reencode it to a 24fps video, then some of the frames have to be thrown away. If you leave them in the video with a 24 fps time base then the video will play too fast. But you have to do that on purpose. You can reencode a 24fps video to 30fps, but you'll have to interleave some frames so that there are 30fps where there were 24fps.

Tell more about what you have.

If you want to dump a DVD to file so that you can play it from file, then look and see what title you want, and dump it
Code:
mplayer dvd://3 -dumpstream -dumpfile OutFile.vob
You'll need libdvdcss installed. Won't matter what fps video it is.
 
Old 02-24-2020, 03:47 PM   #8
elemkay
LQ Newbie
 
Registered: Feb 2020
Posts: 7

Original Poster
Rep: Reputation: Disabled
As I tried to explain, this is how DVDs in Europe and other PAL (50hz) countries are actually manufactured. TV shows in the US have traditionally been filmed at 24fps. Long before DVDs were frequently being played on PCs which can display any kind of framerate video, they were needing to work with 50hz PAL TVs. In this situation, displaying one frame every two refreshes (precisely 25fps) vs something like 0.96 (24fps) is going to be desirable. So they simply made PAL region DVDs display the 25th frame to sync with the 50hz refresh rate of PAL TVs, hence playing the video at effective 104% speed. If you check, you will find European releases of major TV shows and films with shorter runtimes despite being identical. I am successfully using software to rectify this on Windows. Thanks for the advice - are those all commands relating to encoding i.e. ripping the DVD, then processing the file is the only way - or it can also alter live disc playback speed using the command?
 
Old 02-24-2020, 04:20 PM   #9
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,152
Blog Entries: 6

Rep: Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835Reputation: 1835
You still aren't giving any info.

Are you playing these DVD's with a media player on a computer? Are you dumping the DVD's to file to play them? Are you making copies of the DVD's and trying to play them on a Video DVD player with a fixed frame rate? Are you trying to remaster those DVD's to another framerate? Are you tring to telecline those 25fps videos to 24fps?

Quote:
I am successfully using software to rectify this on Windows.
Rectify it how?

What are you wanting to do with those DVD's? Play them? Dump them? Dump them to file, change the frame rate and then make a new DVD?

Yes I know what NTSC and PAL was/is.
 
Old 02-24-2020, 06:05 PM   #10
elemkay
LQ Newbie
 
Registered: Feb 2020
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by teckk View Post
You still aren't giving any info.

Are you playing these DVD's with a media player on a computer? Are you dumping the DVD's to file to play them? Are you making copies of the DVD's and trying to play them on a Video DVD player with a fixed frame rate? Are you trying to remaster those DVD's to another framerate? Are you tring to telecline those 25fps videos to 24fps?


Rectify it how?

What are you wanting to do with those DVD's? Play them? Dump them? Dump them to file, change the frame rate and then make a new DVD?

Yes I know what NTSC and PAL was/is.
Rectify it as in play it back at the original 24fps broadcast speed, effectively at 96% speed of default playback, instead of the default 25fps it is programmed to play at.

I explained about the PAL speedup as it wasn't clear you understood, because of what you said about 24, 25, or 30 fps DVDs being played back at the correct speed unless they have been messed with - it seemed as though you didn't understand that the DVD itself had been deliberately sped up by 4% when it was manufactured for PAL region markets, and that I was trying to slow it down to the original broadcast speed.

If I don't have to rip them to slow them down, that's great. Ripping them and then processing them is a last resort. This is all about playing some DVDs at a slower [correct] tempo and the easiest way to do it on Linux. I'm assuming the commands you posted refer to processing a file rather than adjusting live playback?

Edits for clarity

Last edited by elemkay; 02-24-2020 at 06:29 PM.
 
Old 02-25-2020, 12:28 PM   #11
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by elemkay View Post
Trying to find a piece of Linux software that allows you to slowdown videos, ideally DVDs, to their intended broadcast speed. Either during playback (a media player like VLC) or something that can timestretch saved video files.
My apologies, I did, indeed, misenterpret your post and the link to be the same thing.
What a strange thing to have to worry about nowadays. Glad I'm subscribed to this thread, anyhow.
 
Old 02-25-2020, 12:42 PM   #12
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,628

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557
Quote:
Originally Posted by elemkay View Post
... during playback (a media player like VLC)
So what's wrong with VLC then?

It provides this functionality via the GUI and also has a --rate command line argument that appears to provide the same.

I've occasionally wondered why the first option was 0.96/1.04 and I guess this is why...
(Not sure it explains why it has 1.18x/1.23x/1.28x instead of 1.2x and 1.25x though, since the latter is the ratio of 30:25 and 30:24 ?)

 
Old 02-25-2020, 01:35 PM   #13
elemkay
LQ Newbie
 
Registered: Feb 2020
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
So what's wrong with VLC then?

It provides this functionality via the GUI and also has a --rate command line argument that appears to provide the same.

I've occasionally wondered why the first option was 0.96/1.04 and I guess this is why...
(Not sure it explains why it has 1.18x/1.23x/1.28x instead of 1.2x and 1.25x though, since the latter is the ratio of 30:25 and 30:24 ?)

Can you provide a screenshot of the GUI? Because I've searched all over VLC to no avail. Definitely not seen any reference to 0.96/1.04 speed.
 
Old 02-25-2020, 05:21 PM   #14
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,628

Rep: Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557Reputation: 2557
Quote:
Originally Posted by elemkay View Post
Can you provide a screenshot of the GUI? Because I've searched all over VLC to no avail. Definitely not seen any reference to 0.96/1.04 speed.
Tools > Customize Interface > Toolbar Elements, scroll to bottom > drag "Speed selector" where you want it.

Then load a video, click the 1.00x and mouse wheel up/down over the bar that appears.

Attached Thumbnails
Click image for larger version

Name:	vlc-speed-selector.png
Views:	29
Size:	93.0 KB
ID:	32636   Click image for larger version

Name:	vlc-096-speed.png
Views:	23
Size:	196.3 KB
ID:	32637  
 
Old 02-25-2020, 06:41 PM   #15
elemkay
LQ Newbie
 
Registered: Feb 2020
Posts: 7

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by boughtonp View Post
Tools > Customize Interface > Toolbar Elements, scroll to bottom > drag "Speed selector" where you want it.

Then load a video, click the 1.00x and mouse wheel up/down over the bar that appears.

I have no idea why such functionality is so well-hidden in the interface - I mean if I hunted through every option knowing what I was looking for I would eventually find it, but anyway, thanks for showing me that. Unfortunately the audio resampling just isn't quite there - I can just about take the 4% raised pitch which is still present, but it is just a bit too... warbly. Digital artefacts coming up a bit too often. I think I've found my answer - yes it can be done, but not as high quality as I've got with ReClock, which is specifically designed to resample the source material to play at different speeds. Guess I'm going to have to hold onto a Windows install for now!
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Python (ideally 3) - library to extract info such as bitrate from audio files sycamorex Programming 2 12-04-2013 01:01 PM
Lightweight GUI/Library for X11 (ideally a C++ interface) cpetzol2 Programming 5 05-02-2008 06:34 PM
video playback problems during fast video sequences atti Linux - Hardware 2 04-17-2006 03:50 AM
XMMS playback does funky speedup thing hcgernhardt Linux - Software 6 06-19-2004 08:04 AM
How to install Linux (ideally SuSE 9) on a SATA HD? dmazzoni Linux - Hardware 2 03-12-2004 10:00 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration