LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-25-2005, 03:31 PM   #1
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Rep: Reputation: 30
mplex sync problems


Hello all. I am currently trying to merge two files (video.m2v and audio.ac3) into one mpg file in dvd format. Whenever I enter this command :

mplex -f 8 -o newvideo%d.mpg video.m2v audio.ac3

The resulting mpg file (newvideo1.mpg) has the audio and video about 10 or 15 seconds off. How do I figure out the exact amount and then correct this?
 
Old 08-20-2005, 09:31 AM   #2
Winno
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Fedora Core 3 / Mandrake 10.1 / Gentoo 2005.0
Posts: 100

Rep: Reputation: 15
By looking at the mplex man page, there's a sync offset option -O (capital o). You can specify the offset by placing something like -O 10s for a 10 second offset. I think that the offset means delaying the video by a certain amount with regards to the video. I've never had to use it in mplex, so I'm not sure about that. However, I had bad sync issues with Avidemux (with MPEG-TS files) and correcting them is done pretty much by trial and error. You have to match up lip movement with spoken words or sounds with actions as close as possible. Indeed, its a tedious and sometimes frustrating process, especially when the sync changes for EVERY file you work with.

A much better solution would be to look at the program(s) that generated the separate A/V streams and check if it has an option for better sync, or perhaps look for a better program (in my case).
 
Old 08-20-2005, 06:34 PM   #3
linux-rulz
Member
 
Registered: Dec 2004
Distribution: Windows XP Home, Ubuntu Hoary
Posts: 584

Original Poster
Rep: Reputation: 30
Which better program did you find? I use transcode personally. I still have problems.
 
Old 08-20-2005, 10:16 PM   #4
Winno
Member
 
Registered: Sep 2003
Location: Australia
Distribution: Fedora Core 3 / Mandrake 10.1 / Gentoo 2005.0
Posts: 100

Rep: Reputation: 15
I used Project X, but I only use that to demultiplex an MPEG-TS file (from digital TV) into separate audio and video files. ProjectX irons out the packet stream errors and resynchronises the audio.

I then use mplex to recombine them. The resulting file plays in perfect sync.

In essence, I solved the problem further upstream. Your situation might be different.

You could also try using mencoder and ffmpeg. They weren't very successful for me, but I could've done something wrong.

Last edited by Winno; 08-20-2005 at 10:22 PM.
 
  


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
mplex problems linux-rulz Linux - Software 14 09-16-2005 12:42 PM
[SOLVED] Treo600 Sync Problems y2jv7 Linux - Laptop and Netbook 0 07-25-2005 06:42 PM
Need help with 'mplex' d1l2w3 Linux - Software 1 05-15-2005 06:17 PM
j or k pilot sync problems Rangerjim Linux - Software 2 08-09-2004 01:52 PM
gpilotd *ONLY* sync problems Please Help! gabriele_101 Linux - Hardware 0 08-29-2003 11:02 AM

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

All times are GMT -5. The time now is 07:29 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