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 08-28-2003, 02:44 PM   #1
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Rep: Reputation: 51
transcode


ive got a load of avi's the video data is MJPG and the audio data is PCM, i want to deinterlace the video, and compress it to divx(xvid) i want the audio data compressed as mp3, can someone either point me to some nice and simple documentation or give me a command.

cheers
 
Old 08-28-2003, 03:46 PM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
Try installing avidemux (http://fixounet.free.fr/avidemux/). It is a graphical way to edit avi files. I've only used it for splitting big avi files, but you should be able to save as a new avi file with different audio and video codec. I'm not sure if it will do deinterlacing.

Another option would be mencoder. I've only used it for converting vob files to avi, but you should be able to transcode the avi file. Here is the command I use for vob files:

mencoder movie.vob -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=1000:vhq:vpass=1 -vop
scale=640:480,lavcdeint -oac mp3lame -lameopts
abr:br=128 -o movie.avi

followed by:

mencoder movie.vob -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=1000:vhq:vpass=2 -vop
scale=640:480,lavcdeint -oac mp3lame -lameopts
abr:br=128 -o movie.avi

That generates a avi file with a video bit rate of 1000, vhq="very high quality", -vop options are to scale the video to 640x480 (full screen) and lavcdeint deinterlaces the source video. The lavc codec is as good as xvid, but you can use xvid if you want. The audio is encoded to mp3 using lame with an average bit rate of 128. You may be able to modify that to use an avi file as the input with a different avi file as the output. Look at the mplayer documentation in "man mencoder".
 
Old 08-28-2003, 04:11 PM   #3
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Original Poster
Rep: Reputation: 51
ive got mencoder working fine now, thanks
 
Old 08-30-2003, 04:28 PM   #4
kev82
Senior Member
 
Registered: Apr 2003
Location: Lancaster, England
Distribution: Debian Etch, OS X 10.4
Posts: 1,263

Original Poster
Rep: Reputation: 51
<edit> ive installed the unstable avidemux and it works great

ive tried avidemux to edit my avi's to cut out a little bit, it works for the xvid encoded avi's but doesnt work for the MJPEG ones, i dont really want to have to encode stuff then cut it out as my machine isnt very fast. this is the outpuit of avidemux if it means anything to anyone.

Last edited by kev82; 08-30-2003 at 06:43 PM.
 
Old 08-30-2003, 10:59 PM   #5
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
If mencoder is working for doing your transcoding, you can encode only a portion of the file by adding the following:


mencoder movie.vob -ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=1000:vhq:vpass=1 -vop
scale=640:480,lavcdeint -oac mp3lame -lameopts
abr:br=128 -o movie.avi -ss 01:05:00 -endpos 00:05:00

Followed by the same command with vpass=2.

The "-ss" option tells mencoder to start 1 hour and 5 minutes into the input file. The "-endpos" option tells it to encode 5 minutes of video. Using the above command, it would encode from 1:05 to 1:10. The "endpos" is accurate (it will encode exactly the amount of time given). However, I've found the "-ss" option doesn't match the actual video timing. I usually guess "-ss" and encode a few seconds to see where I actually am in the video, then adjust "-ss" by trial and error until it is starting to encode from the desired point in the video.

There is a great guide that helped me get started with this located here: http://www.bunkus.org/dvdripping4lin...gle/index.html
 
  


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
Transcode CrEsPo Linux - Software 6 05-11-2005 05:46 PM
how to use transcode... Scrag Linux - Software 1 02-26-2005 11:39 PM
Need help with transcode mascool Linux - General 3 10-16-2003 05:42 PM
Need help with transcode mascool LinuxQuestions.org Member Success Stories 1 10-16-2003 03:26 PM
Need help with transcode mascool Linux - Newbie 0 10-16-2003 02:27 PM

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

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