VideoHelp Forum
+ Reply to Thread
Results 1 to 22 of 22
Thread
  1. I have a PAL DVD that I ripped to VOB and then encoded and resized to NTSC resolution with AVISynth.

    I was easily able to slow the video playback speed to 23.976FPS with assumefps and srestore filters using AVISynth.

    I don't however know how to slow the audio down to 23.976FPS playback to put in sync with it. Is there an easier way of doing this without reconverting to lossless format several times or ruining the original audio quality by much? Ill try just about any method, but if MeGui can do it that would be nice.

    In the end I would just like the DVD audio to playback at 23.976FPS. I can and do notice the 25FPS voice speed up and it changes pitch of voices I'm used to and I would like to hear it at the pitch I'm used to or I would just leave it at 25FPS. Keeping it AC3 format is preferred but it's not a big deal if it cant be kept that format.

    Suggestions?
    Quote Quote  
  2. I extract the audio and run it through BeSweet which has a 25000 to 23976 preset. I get a PCM WAV file out of it. I send my audio tracks to Audacity for work before then reencoding to AC3. eac3to can do it as well. eac3to can go PAL AC3 to NTSC AC3 all at once.
    Is there an easier way of doing this without reconverting to lossless format several times or ruining the original audio quality by much?
    The audio will be extracted and reencoded one way or another, either by you manually or by any program you use.
    Quote Quote  
  3. So would the 2 step process wield better results, or can I just get what I want easily from eac3to?

    eac3to sounds easier, but usually the easier one step methods don't seem to end up as good in the end when it comes to video editing.
    Quote Quote  
  4. I don't use eac3to for this as I almost always work on the audio, at least a little bit, in Audacity. The reencoded quality is dependent on the quality of the AC3 encoder used. I doubt you'd be able to tell the difference whether doing it in a single step or using two steps. If I were you I'd use eac3to for the job. If you can get it working for you it won't take long before you can compare before and after.
    Quote Quote  
  5. MeGUI has options for speeding up and slowing down the audio in it's audio encoder configuration. In older versions (and maybe the current stable version) it's under the section for changing the sample rate. Newer versions of MeGUI have a drop down box labelled "Time Modification" in the audio encoder configuration. If you switch to the development update server in MeGUI's options, updating should get you the latest version of MeGUI (and possibly the latest bugs).

    Click image for larger version

Name:	MeGUI audio encoder.gif
Views:	3238
Size:	22.0 KB
ID:	24405

    HD Streams Extractor/eac3to (under the Tools menu)
    http://en.wikibooks.org/wiki/Eac3to/How_to_Use#Command_Line_Syntax

    Click image for larger version

Name:	HDSE.gif
Views:	3071
Size:	23.9 KB
ID:	24406

    Another eac3to GUI aimed towards encoding audio.
    EAC3to Conversion Utility
    Quote Quote  
  6. Member
    Join Date
    Mar 2014
    Location
    North America
    Search Comp PM
    Originally Posted by hello_hello View Post
    MeGUI has options for speeding up and slowing down the audio in it's audio encoder configuration. In older versions (and maybe the current stable version) it's under the section for changing the sample rate. Newer versions of MeGUI have a drop down box labelled "Time Modification" in the audio encoder configuration. If you switch to the development update server in MeGUI's options, updating should get you the latest version of MeGUI (and possibly the latest bugs).
    How does doing it through MeGUI compare to the other methods mentioned above?

    Also, can when you do it through MeGUI, do you have to do the video as well or you can work with just the audio?
    Quote Quote  
  7. MeGUI's audio encoder uses the same method as BeHappy and BeSweet for the resampling/slowdown/speedup stuff without pitch correction, as far as I know. They use SSRC.

    MeGUI uses an Avisynth plugin (TimeStretch.dll) for slowdown/speedup with pitch correction (Avisynth+). I think BeHappy does the same. The function is built-into the official versions of Avisynth. I'm not sure if BeSweet does pitch correction. manono would know.
    A warning entry in MeGUI's log file was recently added when the time modification with pitch correction options are used:

    [Warning] When TimeStretch() is used with more than 2 channels, each channel is processed individually in 1 channel mode. This will destroy the phase relationship between the channels.

    Whether that's as bad as it sounds, I don't know. Maybe the same applies no matter how pitch correction is done. I've no idea.

    The HD Streams Extractor and EAC3to Conversion Utility both use eac3to for resampling/re-encoding, and it has a reputation for quality. It doesn't pitch correct.... at least as far as I know.

    That's about the extent of my knowledge. Time stretching is something I rarely do, but if I do, it'd mostly be to go from PAL to NTSC or PAL to film and I probably wouldn't pitch correct it as usually there's no way to know if the PAL version was pitch corrected originally.
    Last edited by hello_hello; 8th Apr 2014 at 09:34.
    Quote Quote  
  8. Originally Posted by hello_hello View Post
    I'm not sure if BeSweet does pitch correction. manono would know.
    It doesn't. And shouldn't, since my PAL sources (and most PAL sources, as far as I know, unless they were created at 25fps) are a semi-tone too high and slowing the audio restores them to the correct pitch.
    Quote Quote  
  9. Originally Posted by runlouierun View Post
    Also, can when you do it through MeGUI, do you have to do the video as well or you can work with just the audio?
    I forgot to answer your question in my last post.....

    Yes. Just load the extracted audio into the audio section, set your desired encoder options and use the Queue button in the audio section to add the audio encoding job to the queue.
    Quote Quote  
  10. Member
    Join Date
    Apr 2014
    Location
    Estonia
    Search Comp PM
    Didn't want to post a new thread on almost the same subject.

    AC3 can have extra info besides audio tracks. Like loudness info. Do MeGUI, BeSweet, eac3to take that into account? I don't want to take my AC3 apart and put back together with some pieces left over.
    Quote Quote  
  11. If you're referring to AC3's dynamic range compression, MeGUI has an option in it's audio encoder configuration to enable it or not. It's disabled by default. I'm not sure about BeSweet or eac3to. I'd think compressing the audio when encoding would generally be a bad idea as it can't be undone without re-encoding it.
    AC3 also has a "feature" called dialogue normalisation. If the level is set, the idea is the player will adjust the volume so the dialogue in all AC3 audio should be the same level. It's an overall "turn up" or "turn down" thing though. The relative volume throughout each AC3 file remains the same (it's not compressed). I think all conversion programs ignore dialogue normalisation, at least by default. eac3to seems to have an option to keep it. (-keepDialnorm) http://en.wikibooks.org/wiki/Eac3to/How_to_Use#Command_Line_Syntax
    I'm not sure whether that means it uses it when re-encoding though. I think -keepDialnorm stops it from removing the dialogue normalisation info from AC3 files when it's extracting.
    Quote Quote  
  12. Member
    Join Date
    Mar 2014
    Location
    North America
    Search Comp PM
    Originally Posted by hello_hello View Post
    Originally Posted by runlouierun View Post
    Also, can when you do it through MeGUI, do you have to do the video as well or you can work with just the audio?
    I forgot to answer your question in my last post.....

    Yes. Just load the extracted audio into the audio section, set your desired encoder options and use the Queue button in the audio section to add the audio encoding job to the queue.
    Thanks for replying.

    I'm a newbie so please bear with me on my next question.

    How do I know which encoder to pick from in the encoder options?
    Quote Quote  
  13. Member
    Join Date
    May 2011
    Location
    United Kingdom
    Search Comp PM
    The speed up with pitch correction option doesn't seem to work in MEGUI.
    I have an audio file that is 1:28:23 long, if I run it through MEGUI using PAL speed up the file comes out at 1:24:46 which is correct and will play perfectly in sync with the video file i'm going to mux it with.
    However, If I use the option with pitch correction the file comes out at 1:24:59 which is clearly not right and is nowhere near in sync with the video file when I mux it.
    Any ideas why this happens?
    Quote Quote  
  14. I don't know why, but I just tested it and you're correct. It's obviously some sort of bug so I'll report it in the MeGUI thread at doom9. There were some changes made to the resampling/timestretch functions recently. It seems like something went wrong. http://forum.doom9.org/showthread.php?p=1672487#post1672487

    Edit: I reported the problem. I assume you were referring to 23.976fps/25fps conversions? The conversion between 24fps and 25fps seems to work okay in either direction, but for 23.976 and 25fps it seems to be broken in both directions when using pitch correction.

    Here's the thread if you want to check it for updated info. The MeGUI developers tend to sort out problems pretty quickly. http://forum.doom9.org/showthread.php?p=1679610#post1679610
    Last edited by hello_hello; 2nd May 2014 at 15:31.
    Quote Quote  
  15. Originally Posted by runlouierun View Post
    Thanks for replying.

    I'm a newbie so please bear with me on my next question.

    How do I know which encoder to pick from in the encoder options?
    There's no rule.

    It comes down to whether you're using a standalone player, the type of audio it supports, the output container, and personal preference.

    AC3 is still very popular as it's an industry standard and everything supports it. Plus it can be sent directly to a compatible receiver in digital form with decoding it first (it's referred to as pass-through). If the original audio is AC3, you'd probably just keep the original rather than re-encode it.... assuming you want AC3.

    MP3 is commonly used in AVIs. Most players which support playing AVIs would support MP3 audio.

    AAC is popular when outputting MP4 or MKV. It's more efficient than MP3 as it's a newer format and it supports multichannel audio, so you could re-encode 5.1ch DTS as 5.1ch AAC etc. MP3 is stereo-only so you'd need to downmix multichannel audio to stereo first.

    Keep in mind AVI, MP4 and MKV etc are all just containers which can hold different types of audio and video. The most common combinations would probably be:

    AVI: Xvid encoded video and MP3 or AC3.

    MP4: x264 encoded video and AAC.

    MKV: x264 encoded video and DTS or AC3 or AAC.
    Quote Quote  
  16. Member
    Join Date
    May 2011
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by hello_hello View Post
    I don't know why, but I just tested it and you're correct. It's obviously some sort of bug so I'll report it in the MeGUI thread at doom9. There were some changes made to the resampling/timestretch functions recently. It seems like something went wrong. http://forum.doom9.org/showthread.php?p=1672487#post1672487

    Edit: I reported the problem. I assume you were referring to 23.976fps/25fps conversions? The conversion between 24fps and 25fps seems to work okay in either direction, but for 23.976 and 25fps it seems to be broken in both directions when using pitch correction.

    Here's the thread if you want to check it for updated info. The MeGUI developers tend to sort out problems pretty quickly. http://forum.doom9.org/showthread.php?p=1679610#post1679610
    Thanks. I hope we get a fix soon, and yes it's only when going from 23.976fps to 25fps. Must be a bug.
    Quote Quote  
  17. Originally Posted by wphill View Post
    Thanks. I hope we get a fix soon, and yes it's only when going from 23.976fps to 25fps. Must be a bug.
    The problem's been acknowledged and a fix suggested. Now it's probably just a matter of waiting for the guy who maintains MeGUI (Zathor) to put in an appearance and update MeGUI. He doesn't seem to have posted in that thread for a couple of weeks, which is pretty unusual. Maybe he's on holiday or something. Hopefully soon.....
    Quote Quote  
  18. Now I understand the problem I can create a script which does the pitch correction correctly. Something like this is working for me:

    LoadPlugin("C:\Program Files\MeGUI\tools\ffms\ffms2.dll") # Change ffms2.dll location as required

    #LoadPlugin("C:\Program Files\MeGUI\tools\avs\plugins\TimeStretch.dll") # Uncomment for AviSynth+ only, change plugins location as required

    FFAudioSource("D:\Audio.ac3") # Change audio type and location as necessary

    # Uncomment the required timestretch option below.

    #TimeStretch(tempo=(96/1.001)) # 25fps to 23.976fps

    #TimeStretch(tempo=(240/2.5)) # 25fps to 24fps

    #TimeStretch(tempo=(500.5/4.8)) # 23.976fps to 25fps

    #TimeStretch(tempo=(250/2.4)) # 24fps to 25fps
    Edit: Originally I thought MeGUI was refusing to open the above script but I worked out what I was doing to make it unhappy. There should be no problem loading it into MeGUI's audio section for encoding.

    I have foobar2000 installed along with the AviSynth decoder plugin, so I can open the above script and re-encode the audio with the required pitch correction easily that way. If you happen to be a foobar2000 user......

    Someone else might be able to suggest a program which does audio pitch correction while speeding up (there's no doubt programs out there), but I'm sure MeGUI will be fixed...... hopefully quickly. Until then the above script should do the job.
    Last edited by hello_hello; 4th May 2014 at 11:16.
    Quote Quote  
  19. Member spiritgumm's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    the easiest method is to use your original Avisynth script:
    Assumefps(23.976,true)
    Resampleaudio (48000)
    Soundout()

    The Soundout function opens a window with different output formats (wav, mp3, ac3), followed by bitrate settings. The pitch will be corrected.
    Quote Quote  
  20. Can doing what I asked in my first post on here be done with Goldwave?
    Quote Quote  
  21. Originally Posted by manono View Post
    I don't use eac3to for this as I almost always work on the audio, at least a little bit, in Audacity. The reencoded quality is dependent on the quality of the AC3 encoder used. I doubt you'd be able to tell the difference whether doing it in a single step or using two steps. If I were you I'd use eac3to for the job. If you can get it working for you it won't take long before you can compare before and after.
    With Audacity, I can raise the volume a bit for lower volume audio tracks like I do with MeGui's normalize, and then re-encode it to AAC?
    Quote Quote  
  22. Originally Posted by killerteengohan View Post
    With Audacity, I can raise the volume a bit for lower volume audio tracks like I do with MeGui's normalize, and then re-encode it to AAC?
    Yes. It has volume and normalize filters. If you have the ffmpeg plugin it can export as M4A/AAC.
    Quote Quote  
Visit our sponsor! Try DVDFab and backup Blu-rays!