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. |
![]() |
#1 | Link |
Registered User
Join Date: Apr 2004
Posts: 126
|
Sox Pal->Ntsc conversion?
I was looking to convert a PAL sound to NTSC, and it was suggested I use Sox, and I found this snippet:
sox in.wav output.wav speed 0.95904 And that sounds right, except the output file grows in duration, which is not what I want. So I'm guessing I should use the -pitch argument instead - however I have no idea what value is the correction one - anybody know what it should be? |
![]() |
![]() |
![]() |
#2 | Link |
Registered User
Join Date: Oct 2001
Location: Germany
Posts: 7,631
|
It's unclear what you want, if you have a video stream and you do a 'slow down' from 25fps to 24fps the duration changes, so should the duration of your audio if it is ment to stay synch.
Since you do not seem to want to change the audio length it is unclear what you want sox to do with your audio stream,... |
![]() |
![]() |
![]() |
#3 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
According to his post in the eac3to thread he really just wants to change the pitch. PAL speedup results in a pitch change of 70.67 cents, but I'm not 100% sure if you can just use -70.67 for the pitch parameter to reverse the effect - maybe someone else can explain.
Though I support Selur's suggestion to slowdown both video and audio to get the original playback speed and pitch. This can be done losslessly for video. |
![]() |
![]() |
![]() |
#4 | Link | ||
Registered User
Join Date: Apr 2004
Posts: 126
|
Quote:
Quote:
I didn't want to touch the video because I thought that would mean re-encoding, plus it would take 5000% longer than just processing the audio. But you are saying one can do this losslessly for video? Didn't know that. As for using -70.67 I'll try that as soon as I have finished my pizza ![]() Last edited by Foofaraw; 16th September 2012 at 19:58. |
||
![]() |
![]() |
![]() |
#5 | Link |
Registered User
Join Date: Apr 2004
Posts: 126
|
Well, it seems to accept -70.67 but it doesn't sound quite slow enough.
And sneaker_ger based on your suggestion of video, I tried putting video and audio in an mkv, and change the video playback speed - it did appear to be in sync - though the subtitles were now out of step. If I have to OCR them and resync it becomes a bigger job :-/ Oh well. |
![]() |
![]() |
![]() |
#6 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
OCR is not necessary. You can change the subtitle speed in mkvmerge GUI as well, by selecting the subtitle track and entering the following in the "Stretch by" field:
25 -> 23.976: 25025/24000 25 -> 24.000: 25/24 23.976 -> 25: 24000/25025 24.000 -> 25: 24/25 I hope I got the numbers correct. Otherwise you could also re-time the subtitles with programs like BDSup2Sub. Last edited by sneaker_ger; 24th September 2012 at 12:04. |
![]() |
![]() |
![]() |
#7 | Link | |
Registered User
Join Date: Apr 2004
Posts: 126
|
Quote:
(and doesn't play) Hm.. |
|
![]() |
![]() |
![]() |
#9 | Link | |
Registered User
Join Date: Apr 2004
Posts: 126
|
Quote:
Anyway, in mkvmerge I click on a S_VOBSUB track (I only keep one), chose the "Format Specific options" and enter something like "24000/1001" in the "Stretch by" field - and that produces an mkv with a wildly different playback length. |
|
![]() |
![]() |
![]() |
#13 | Link | |
Registered User
Join Date: Apr 2004
Posts: 126
|
Quote:
Using "25001/24000" as you suggested (sorry Sneaker_ger I'm getting confused over these numbers) on the subtitle track, means it starts out well enough in sync, but it drift over time, showing up too late. |
|
![]() |
![]() |
![]() |
#15 | Link | |
Registered User
Join Date: Apr 2004
Posts: 126
|
Quote:
I tried actually calculating it. 25001/24000=1.041708333333333 Whereas 25/23.976=1.042709376042709 So not the same. I tried using 1.042709376042709 instead and that worked ![]() This is black magic ![]() |
|
![]() |
![]() |
![]() |
Tags |
convert, ntsc, pal, sox |
Thread Tools | Search this Thread |
Display Modes | |
|
|