LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 07-01-2013, 06:54 PM   #1
Knightron
Senior Member
 
Registered: Jan 2011
Location: Planet Earth
Distribution: Slackware.
Posts: 1,344
Blog Entries: 7

Rep: Reputation: 159Reputation: 159
avi file, audio out of sync


Hello. I've recently purchased a new tv, and it supports usb playback, so i'm in the process of ripping my dvds through k3b to avi files for playback through usb. All has been going well, except last night, one of my disc rips had the audio out of sync. I have seen this before in some pirated dvds. This is extreamly annyoing to me, and i refuse to watch a movie in that state. I was wondering if it's possible to place the audio back in sync with kdenlive, or even rip it again with different settings to get the audio right?

Thankyou.
 
Old 07-02-2013, 04:46 AM   #2
parnmatt
Member
 
Registered: Apr 2013
Location: Lancaster
Distribution: Mac OS X
Posts: 38

Rep: Reputation: 7
If you're just going to be using VLC, going into the preferences, and Showing All preferences/advance mode etc., under the audio there is an Audio Desynchronisation Compensation, I believe it's in milliseconds.

I've use it a lot when the audio was about half a second out, and other times when it was a full 10seconds out.

It is a lot of trial and error; and sometimes audio is out of sync at different rates throughout the video, due to how it was encoded.

This method is only for a constant shift in audio, and is a temporary 'fix'.

Just remember to set it back to 0 when you want to watch something again later
 
Old 07-03-2013, 02:05 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
A more permanent fix would be to do the same thing with a multimedia editing program. I've always had good experience with avidemux. Just keep the video and audio codecs on "copy", set the output format to be the same as input, and set the audio shift feature as needed. Again, though, it does involve some trial and error to get the sync right.

There may also be other problems that need more work, such as audio drift, where it starts out ok but gets increasingly out of sync. In those cases you should generally demux the audio from the video, edit the audio separately in something like audacity or sox so that it perfectly matches the length of the video, then recombine them.

I've also had videos that were assemblies of shorter videos, and some of the sections were ok while others were out of sync. The only option then is to completely disassemble the chunks and fix them separately.

Finally, I'm not sure about ripping, but there may be some settings for audio sync buried in there somewhere that you can try. Framerate differences between the input and output can also be a factor, I believe.
 
1 members found this post helpful.
Old 07-03-2013, 07:59 PM   #4
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 333

Rep: Reputation: 46
I have this problem also. This post spurred me on to do something about it. I like David The H's proposal for a permanent fix. Last night I was trawling around for solutions. I came across this using ffmpeg:

http://alien.slackbook.org/blog/fixi...c-with-ffmpeg/

The only problem with this is accurately defining the time at which audio lags. Now I need to dig out a video which isn't synched so I can test it out.
 
1 members found this post helpful.
Old 07-03-2013, 08:18 PM   #5
Knightron
Senior Member
 
Registered: Jan 2011
Location: Planet Earth
Distribution: Slackware.
Posts: 1,344
Blog Entries: 7

Original Poster
Rep: Reputation: 159Reputation: 159
Thanks for the tips guys. Unfortunately parnmatt your solution is not what i'm after. I would like a permanent fix. I also am not using vlc on my tv.
David the H, what you have described sounds exactly what i'm after, and is quite detailed thank you.
timl, thank you as well, i checked out that link and any info from Eric is usually extremely helpful, thank you for showing me that.
I am a little short for time at the moment, but with all that info, i'm pretty sure i'll be able to fix the file. Thank you guys for the help.
 
Old 07-14-2013, 07:31 PM   #6
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 333

Rep: Reputation: 46
Hi Knightron, any joy with this?

Cheers
 
Old 07-14-2013, 07:51 PM   #7
k3lt01
Senior Member
 
Registered: Feb 2011
Location: Australia
Distribution: Debian Wheezy, Jessie, Sid/Experimental, playing with LFS.
Posts: 2,899

Rep: Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623Reputation: 623
I've had the same issue a few times Knightron but all I ever do is stop the payback get out of the drive totally go back in and start again. I've seen it happen on DVDs through DVD players as well. In my case it is not the ripping that is at fault it is a momentary glitch in the device playing the ripped file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Removing dual audio from an avi file. ranban282 Linux - Software 2 10-14-2009 08:48 PM
dvd -> avi and audio sync FunkyRes Linux - Software 2 02-15-2008 09:46 AM
transcode vob to avi - audio sync problem Steve Riley Linux - General 5 07-05-2006 09:28 AM
AVI File - Audio not Synced Snump Linux - Software 1 03-23-2006 10:35 AM
AVI Audio to MP3 File Obi Perrin Linux - Software 2 03-10-2003 11:27 AM


All times are GMT -5. The time now is 01:35 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration