Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Wed 22 Oct 2014, 00:58
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Convert AVI to OGV, theora and ogg, via cmnd line [SOLVED]
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: Sun 21 Oct 2012, 10:48    Post_subject:  Convert AVI to OGV, theora and ogg, via cmnd line [SOLVED]
Sub_title: 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.

Edited_times_total
Back to top
View user's profile Send_private_message Visit_website 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: 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
View user's profile Send_private_message 
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: 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
View user's profile Send_private_message Visit_website 
chrome307


Joined: 15 Jan 2009
Posts: 713

PostPosted: Sun 21 Oct 2012, 14:18    Post_subject:  

Oops Embarassed

Is this the one?

http://ftp.nluug.nl/ftp/pub/os/Linux/distr/puppylinux/puppy-5.2/lupu_devx_520.sfs
Back to top
View user's profile Send_private_message 
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: Sun 21 Oct 2012, 15:33    Post_subject:  

Nice..thank u!
Back to top
View user's profile Send_private_message Visit_website 
p310don

Joined: 19 May 2009
Posts: 718
Location: Brisbane, Australia

PostPosted: 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
View user's profile Send_private_message 
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: 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
View user's profile Send_private_message Visit_website 
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: 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...

Edited_time_total
Back to top
View user's profile Send_private_message Visit_website 
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: 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. Rolling Eyes

Will post back with results of the transcode if it is any good or not.
Back to top
View user's profile Send_private_message Visit_website 
steve_s


Joined: 26 May 2008
Posts: 1545
Location: Austin, TX, USA

PostPosted: Tue 23 Oct 2012, 19:19    Post_subject:  

Looks good to me! Call this solved.
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Multimedia
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0768s ][ Queries: 12 (0.0088s) ][ GZIP on ]