Author |
Message |
steve_s

Joined: 26 May 2008 Posts: 1576 Location: Austin, TX, USA
|
Posted: Sun 21 Oct 2012, 10:48 Post subject:
Convert AVI to OGV, theora and ogg, via cmnd line [SOLVED] Subject description: ffmpeg2theora |
|
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, 19:21; edited 2 times in total
|
Back to top
|
|
 |
chrome307

Joined: 15 Jan 2009 Posts: 713
|
Posted: Sun 21 Oct 2012, 13:30 Post subject:
|
|
The DevX file can be found here:
http://distro.ibiblio.org/puppylinux/puppy-5.2.8/lupu_devx_528-4.sfs
From the 'Install' file here are the instructions to build the application:
Code: |
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.
|
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1576 Location: Austin, TX, USA
|
Posted: Sun 21 Oct 2012, 13:38 Post subject:
|
|
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?
|
Back to top
|
|
 |
chrome307

Joined: 15 Jan 2009 Posts: 713
|
Posted: Sun 21 Oct 2012, 14:18 Post subject:
|
|
Oops
Is this the one?
http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux/puppy-5.2/lupu_devx_520.sfs
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1576 Location: Austin, TX, USA
|
Posted: Sun 21 Oct 2012, 15:33 Post subject:
|
|
Nice..thank u!
|
Back to top
|
|
 |
p310don
Joined: 19 May 2009 Posts: 1159 Location: Brisbane, Australia
|
Posted: Sun 21 Oct 2012, 17:53 Post subject:
|
|
You could easily convert your converted avi files to ogv by using this:
Code: | 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.
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1576 Location: Austin, TX, USA
|
Posted: Sun 21 Oct 2012, 18:32 Post subject:
|
|
p310don wrote: | You could easily convert your converted avi files to ogv by using this:
Code: | 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.
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1576 Location: Austin, TX, USA
|
Posted: Sun 21 Oct 2012, 19:02 Post subject:
|
|
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, 09:23; edited 1 time in total
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1576 Location: Austin, TX, USA
|
Posted: Mon 22 Oct 2012, 09:01 Post subject:
|
|
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: | chmod u+x ffmpeg2theora-0.29.linux32.bin |
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.
|
Back to top
|
|
 |
steve_s

Joined: 26 May 2008 Posts: 1576 Location: Austin, TX, USA
|
Posted: Tue 23 Oct 2012, 19:19 Post subject:
|
|
Looks good to me! Call this solved.
|
Back to top
|
|
 |
|