LinuxQuestions.org
Review your favorite Linux distribution.
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 04-01-2009, 10:02 PM   #1
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Rep: Reputation: 38
want to convert AVI to /DivX; Slackware 12.2


I want to convert AVI files to DivX. Can someone recommend a good program
to use on Slackware 12.2.

Thanks
 
Old 04-01-2009, 10:15 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Avidemux is pretty good and easy to use.
 
Old 04-01-2009, 10:37 PM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by JosephS View Post
I want to convert AVI files to DivX. Can someone recommend a good program
to use on Slackware 12.2.

Thanks
Mmm, AVI is a container format. DivX is a codec.

This means that an AVI file can be already encoded in DivX. In any case, you don't convert from AVI to DivX, you convert from mpeg to DivX, from Xvid to DivX or whatever. The AVI will also contain an audio stream probably, and that will be encoded in something else as well (mp3, ac3. vorbis or whatever).

To identify the kind of streams that a given AVI file has you can use the command "file", for example, this is from a random video that I have on my home dir:

Code:
$ file foo.avi 
foo.avi: RIFF (little-endian) data, AVI, 640 x 352, 25.00 fps, video: XviD, audio: Dolby AC3 (6 channels, 48000 Hz)
This concrete avi file has a XviD video stream and an ac3 audio stream.

Last edited by i92guboj; 04-01-2009 at 10:38 PM.
 
Old 04-04-2009, 01:24 PM   #4
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
Thanks for the replies.

Code:
bash-3.1$ file downloads/24_Season_7/avi/24.S07E16.HDTV.XviD-LOL\ \[MFD\].avi
downloads/24_Season_7/avi/24.S07E16.HDTV.XviD-LOL [MFD].avi: 
RIFF (little-endian) data, AVI, 624 x 352, 23.98 fps, video: XviD, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)
I downloaded Avidemux and the required dependencies. Can you give me some advice on converting this file to a DivX file. I want to play it on my DVD player. I don't have experience with this.

Thanks.
 
Old 04-04-2009, 01:36 PM   #5
pg99
Member
 
Registered: May 2008
Location: UK
Distribution: Slackware
Posts: 73

Rep: Reputation: 18
Have you tried playing the file without re-encoding it? If your DVD player can play DivX it can probably play this xvid file too. DivX and Xvid are pretty much the same thing.
 
Old 04-04-2009, 01:38 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
That should play just fine on your DVD player as long as it supports DivX (it has a label on the drive). So just burn it to a CD or DVD and put it into the drive and it will work.
 
Old 04-04-2009, 08:27 PM   #7
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
I checked into the player it doesn't support DivX or xvid according to this page:
http://www.videohelp.com/dvdplayers/toshiba-sd4700/990
Sorry for the mistake. I thought it could play Divx.

It supports:
Video formats:
VCD, SVCD, JPG,
Audio formats:
MP3 max 320kbit/s
It plays audio CDs as well as DVD-audio.

I wasn't sure how to open up the avi file.
Can I convert this file to VCD or SVCD to play on the DVD player?
I don't have a DVD Burner on my computer.

Thanks.
 
Old 04-05-2009, 05:52 AM   #8
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Yeah, you can, i believe avidemux has such an option.
 
Old 04-05-2009, 08:31 AM   #9
pg99
Member
 
Registered: May 2008
Location: UK
Distribution: Slackware
Posts: 73

Rep: Reputation: 18
Here is the command for VCD from the avidemux wiki (using the command-line program)

avidemux2 --load /path/to/24.episode.avi --audio-process \
--audio-normalize --audio-resample 44100 --audio-codec MP2 \
--audio-bitrate 224 --output-format PS --video-process \
--vcd-res --video-codec VCD --save output.mpg --quit

Then you will have the file encoded to a vcd format.

To get it onto CD you will need the program vcdimager. The simplest command is

vcdimager output.mpg

That will give you a bin/cue file pair that any CD burner program can burn onto CD.

Then insert in DVD player and enjoy (it's a good episode!)
 
Old 04-05-2009, 07:12 PM   #10
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
I made a mpg file using the gui of avidemux and used vcdimager to make the bin and cue files. I burnt them to a cdrw as well as a cdr. It wouldn't work.

I then tried the commandline:
I got a popup with Avidemux and I built a time map and updated the index, set the aspect ratio 1:1 and 4:3, set vcd audio to 44.1khz mp2
It then gave me a crash backtrace. I entered ok the first time and then cancel. Either way it then stopped after that. I didn't get a file completed.

Any other suggestions?

Thanks.
 
Old 04-06-2009, 05:22 AM   #11
pg99
Member
 
Registered: May 2008
Location: UK
Distribution: Slackware
Posts: 73

Rep: Reputation: 18
Sorry, I'm not really familiar with avidemux. Did you ensure the mpg which you created from the GUI was VCD spec (http://www.videohelp.com/vcd)? Other than that, burning the bin/cue as files rather than images is the only thing I can think that could go wrong.
 
Old 04-06-2009, 09:37 AM   #12
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
The try instead to use ffmpeg:

Code:
ffmpeg -i movie.avi -target ntsc-vcd filename.mpg
# or in europe:
ffmpeg -i movie.avi -target pal-vcd filename.mpg

Last edited by H_TeXMeX_H; 04-06-2009 at 09:39 AM.
 
  


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
Gui that convert AVI to AVI DivX, with telling final avi target final size ? frenchn00b Linux - General 5 03-02-2008 05:37 AM
How to convert AVI to DIVX? depam Linux - Software 2 02-14-2008 07:25 AM
How to convert AVI/DivX/Mpeg to DVD and VCD? depam Linux - Software 9 10-17-2006 10:43 PM
Program to convert DVDs to Avi (DivX / Xvid) sunpascal Linux - Software 2 03-08-2006 08:19 AM
convert AVI to xvid or divx linuxmandrake Linux - Software 2 09-28-2005 12:09 PM

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

All times are GMT -5. The time now is 05:00 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
Open Source Consulting | Domain Registration