Convert AVI to OGV, theora and ogg, via cmnd line [SOLVED]

Audio editors, music players, video players, burning software, etc.
Post Reply
Message
Author
User avatar
steve_s
Posts: 1595
Joined: Mon 26 May 2008, 13:29
Location: Austin, TX, USA
Contact:

Convert AVI to OGV, theora and ogg, via cmnd line [SOLVED]

#1 Post by steve_s »

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.
Last edited by steve_s on Tue 23 Oct 2012, 23:21, edited 2 times in total.

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#2 Post by chrome307 »

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:

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.


User avatar
steve_s
Posts: 1595
Joined: Mon 26 May 2008, 13:29
Location: Austin, TX, USA
Contact:

#3 Post by steve_s »

That's very appreciated, chrome.

But that devx is for 528, not 520. I seem to be able to find every 52 but the first one. Would 528 work?

User avatar
chrome307
Posts: 708
Joined: Thu 15 Jan 2009, 11:00

#4 Post by chrome307 »


User avatar
steve_s
Posts: 1595
Joined: Mon 26 May 2008, 13:29
Location: Austin, TX, USA
Contact:

#5 Post by steve_s »

Nice..thank u!

p310don
Posts: 1492
Joined: Tue 19 May 2009, 23:11
Location: Brisbane, Australia

#6 Post by p310don »

You could easily convert your converted avi files to ogv by using this:

Code: Select all

ffmpeg -i filename.avi filename.ogv
You may even be able to edit your mencoder script you mentioned above to have ogv where it has avi, and that may work.

User avatar
steve_s
Posts: 1595
Joined: Mon 26 May 2008, 13:29
Location: Austin, TX, USA
Contact:

#7 Post by steve_s »

p310don wrote:You could easily convert your converted avi files to ogv by using this:

Code: Select all

ffmpeg -i filename.avi filename.ogv
You may even be able to edit your mencoder script you mentioned above to have ogv where it has avi, and that may work.
Nice. Funny u mention that, p310; good catch.

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.

User avatar
steve_s
Posts: 1595
Joined: Mon 26 May 2008, 13:29
Location: Austin, TX, USA
Contact:

#8 Post by steve_s »

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...
Last edited by steve_s on Mon 22 Oct 2012, 13:23, edited 1 time in total.

User avatar
steve_s
Posts: 1595
Joined: Mon 26 May 2008, 13:29
Location: Austin, TX, USA
Contact:

#9 Post by steve_s »

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

Code: Select all

chmod u+x ffmpeg2theora-0.29.linux32.bin
and it seems to be running fine. Should have tried that before. :roll:

Will post back with results of the transcode if it is any good or not.

User avatar
steve_s
Posts: 1595
Joined: Mon 26 May 2008, 13:29
Location: Austin, TX, USA
Contact:

#10 Post by steve_s »

Looks good to me! Call this solved.

Post Reply