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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-01-2009, 10:02 PM
|
#1
|
Member
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586
Rep:
|
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
|
|
|
04-01-2009, 10:15 PM
|
#2
|
Senior Member
Registered: Jan 2006
Posts: 4,363
Rep:
|
Avidemux is pretty good and easy to use.
|
|
|
04-01-2009, 10:37 PM
|
#3
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083
|
Quote:
Originally Posted by JosephS
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.
|
|
|
04-04-2009, 01:24 PM
|
#4
|
Member
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586
Original Poster
Rep:
|
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.
|
|
|
04-04-2009, 01:36 PM
|
#5
|
Member
Registered: May 2008
Location: UK
Distribution: Slackware
Posts: 73
Rep:
|
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.
|
|
|
04-04-2009, 01:38 PM
|
#6
|
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
|
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.
|
|
|
04-04-2009, 08:27 PM
|
#7
|
Member
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586
Original Poster
Rep:
|
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.
|
|
|
04-05-2009, 05:52 AM
|
#8
|
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
|
Yeah, you can, i believe avidemux has such an option.
|
|
|
04-05-2009, 08:31 AM
|
#9
|
Member
Registered: May 2008
Location: UK
Distribution: Slackware
Posts: 73
Rep:
|
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!)
|
|
|
04-05-2009, 07:12 PM
|
#10
|
Member
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586
Original Poster
Rep:
|
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.
|
|
|
04-06-2009, 05:22 AM
|
#11
|
Member
Registered: May 2008
Location: UK
Distribution: Slackware
Posts: 73
Rep:
|
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.
|
|
|
04-06-2009, 09:37 AM
|
#12
|
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
|
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.
|
|
|
All times are GMT -5. The time now is 05:00 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|