Convert AVI to OGV, theora and ogg, via cmnd line [SOLVED]
Convert AVI to OGV, theora and ogg, via cmnd line [SOLVED]
I have a great mencoder script to rip dvd's, but it rips as avi's. I would like to convert it via command to ogv.
Is ffmpeg2theora the best way? Anyone have it compiled for lucid 5.2? I would give it a shot compiling but can't find the devx anywhere.
Any tips to get this done would be really apprreciated.
Is ffmpeg2theora the best way? Anyone have it compiled for lucid 5.2? I would give it a shot compiling but can't find the devx anywhere.
Any tips to get this done would be really apprreciated.
Last edited by steve_s on Tue 23 Oct 2012, 23:21, edited 2 times in total.
The DevX file can be found here:
http://distro.ibiblio.org/puppylinux/pu ... _528-4.sfs
From the 'Install' file here are the instructions to build the application:
http://distro.ibiblio.org/puppylinux/pu ... _528-4.sfs
From the 'Install' file here are the instructions to build the application:
Code: Select all
Compiling from tarball or subversion:
-----------------------
you need
- scons (http://www.scons.org/)
- the latest version of libtheora <http://downloads.xiph.org/releases/theora/>
- ffmpeg git <http://ffmpeg.org> by running ./get_ffmpeg.sh
(this script downloads ffmpeg and runs configure and compiles ffmpeg)
- for subtitles support, libkate <http://code.google.com/p/libkate/>,
or by running ./get_libkate.sh (this script downloads libkate, and
builds libkate)
if you did not install ffmpeg but want to staticly link it
(recomended by ffmpeg developers) update PKG_CONFIG_PATH to
point to your ffmpeg source:
export PKG_CONFIG_PATH=/path/to/ffmpeg_src:$PKG_CONFIG_PATH
now you can build ffmpeg2theora:
scons
to make a static binary
scons static=1
Installation
------------
install ffmpeg2theora in /usr/local/bin:
scons install
Unless you specify a different prefix,
you will need root privileges for this, ie.:
sudo scons install
to install to another prefix:
scons install prefix=/usr
vhook suppport
--------------
right now vhooks only work if you install ffmpeg and use
the installed shared libs. otherwise one gets errors like this:
undefined symbol: av_read_frame
this is a known limitation of vhooks in ffmpeg.
subtitles suppport
------------------
Subtitles for multiple languages can be encoded from one or more utf-8
SubRip format files (.srt) if you have libkate installed. Subtitles will
be merged into the output Ogg stream as multiplexed Kate streams.
For example, to encode a video with both German and Italian subtitles:
./ffmpeg2theora -o ouput.ogv --subtitles german.srt --subtitles-language de_DE \
--subtitles italian.srt --subtitles-language it \
input.avi
See subtitles.txt for more information on how to add subtitles to your videos.
You could easily convert your converted avi files to ogv by using this:
You may even be able to edit your mencoder script you mentioned above to have ogv where it has avi, and that may work.
Code: Select all
ffmpeg -i filename.avi filename.ogv
Nice. Funny u mention that, p310; good catch.p310don wrote:You could easily convert your converted avi files to ogv by using this:
You may even be able to edit your mencoder script you mentioned above to have ogv where it has avi, and that may work.Code: Select all
ffmpeg -i filename.avi filename.ogv
I was just about to post that, although I'm gonna save chrome's devx, I may not need it since I'm currently transcoding with:
ffmpeg -i input.avi -sameq output.ogv
And it seems to be working fine, although it is taking forever...open to suggestions about commands that might speed it up.
Oh, and I would change mencoder but I hear mencoder can decode but not encode theora.
Hmmm...ffmpeg by itself looks like crap. The mencoder rip looks awesome, but not pleased with ffmpeg transcode.
But if I reboot into windows and use the windows command line version of ffmpeg2theora it works and looks great.
I would just love to do it in linux and make one big script to rip then straight to ogv. I'll try and compile ffmpeg2theora for lucid 520 since I haven't found one out there yet...
But if I reboot into windows and use the windows command line version of ffmpeg2theora it works and looks great.
I would just love to do it in linux and make one big script to rip then straight to ogv. I'll try and compile ffmpeg2theora for lucid 520 since I haven't found one out there yet...
Last edited by steve_s on Mon 22 Oct 2012, 13:23, edited 1 time in total.
Well, didn't compile it, but did compile theora. Then went to the ffmpeg2theora website and downloaded the bin file from here to /usr/local/bin the chmod'ed it
and it seems to be running fine. Should have tried that before.
Will post back with results of the transcode if it is any good or not.
Code: Select all
chmod u+x ffmpeg2theora-0.29.linux32.bin
Will post back with results of the transcode if it is any good or not.