LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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

Reply
 
Search this Thread
Old 03-21-2010, 09:20 AM   #1
Gegenzeit
LQ Newbie
 
Registered: Mar 2010
Posts: 8

Rep: Reputation: 0
How to mass convert media files to .ogg


Hi,

I search a tool to convert my media files to ogg-files. I've managed to to do so with VLC - but only file by file. Is there a way to just convert whole folders to ogg. Even if the files contained are in a lot of different formats?

Thanks

Jörg
 
Old 03-21-2010, 09:34 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 248Reputation: 248Reputation: 248
Ogg is only the container, ogg vorbis is for audio files and ogg theora is for video files. The compression codec is vorbis or theora.
Here's a way to convert mp3s to ogg vorbis :
http://www.ghacks.net/2009/08/31/con...rbis-in-linux/
 
Old 03-21-2010, 11:30 AM   #3
Gegenzeit
LQ Newbie
 
Registered: Mar 2010
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks! That's a great tool! Easy to get and easy to use. Perfect!

Only downturn: It just grabs the audi part of my videos (which only makes for a small percentage of my collection ... so I'm already done with my largest 'problem')

Do you (or anyone else) know something similar, but with the option to keep the video information? - I guess it would be the the same than this, but with ogg theora.

Jörg
 
Old 03-21-2010, 12:10 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Look into ffmpeg or mencoder. You can run them in a loop.

Encoding programs will take what you give them, recognizing the video and audio streams in the input. The work is in determining the settings for the video file you want to produce, which will depend mainly on what device you will use, and the quality you want. Once you get the command nailed down, you can create a one-liner and put it in your $HOME/bin/ directory.

For example, I have a mencoder script I named vid2sansap2 that I use to convert videos to play on my sansa p2 player. I simply need to run "vid2sansap2 <filename>" to convert a file. I tweaked the settings to my liking once, and after that I don't need to remember all those options.

Also look at the mediainfo program. It is great at analysing the video and audio streams of various media files. I use it to display the tag info, which I input (in a similar script) into lame to not only convert files to mp3, but also copy the tags in the process.

Last edited by jschiwal; 03-21-2010 at 12:13 PM.
 
Old 03-22-2010, 01:09 AM   #5
Raveolution
Member
 
Registered: Mar 2004
Distribution: Fedora & CentOS
Posts: 210
Blog Entries: 2

Rep: Reputation: 25
Quote:
Originally Posted by Gegenzeit View Post
Thanks! That's a great tool! Easy to get and easy to use. Perfect!

Only downturn: It just grabs the audi part of my videos (which only makes for a small percentage of my collection ... so I'm already done with my largest 'problem')

Do you (or anyone else) know something similar, but with the option to keep the video information? - I guess it would be the the same than this, but with ogg theora.

Jörg
Might you be looking for the ffmpeg2theora utility?
http://en.wikipedia.org/wiki/Ffmpeg2theora
http://www.v2v.cc/~j/ffmpeg2theora/
 
Old 05-23-2010, 08:19 PM   #6
tonya00henson
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
Hi you can do it online through here: http://www.oggconvert.com/ no need to download anything
 
Old 05-23-2010, 11:28 PM   #7
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 1,524

Rep: Reputation: 235Reputation: 235Reputation: 235
Unless you're on dialup and don't have the time.


ffmpeg -i in.type .... -acodec vorbis .... -vcodec libtheora ....... -y out.ogv

Where ...'s are any additional parameters you want. Note: ffmpeg defaults -b 200k (okay for SD, hideous for HD), and -r 25 (not to great in NTSC land).

ffmpeg -codecs
ffmpeg -formats

mencoder -list-options

Any reason that you need ogg? Some PDA type device with limited abilities? Upload to blip.tv or something? Many native linux players handle whatever formats, no need to do any conversion. Unless your machine isn't fast enough to play or scale it in realtime. With every conversion you loose quality. And ogg isn't that great for filesize when it comes to video. Relative to libx264 and other options.
 
Old 05-24-2010, 04:52 AM   #8
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
This tonya00henson looks suspect. This is all he ever posts, this site, and while resurrecting old threads. The site looks innocent enough I suppose and is posted in context as a solution, which it is, but it just seems odd to me that this is all he would even post, and he's using Window$. I wonder if I should report it.
 
  


Reply

Tags
convert, media, ogg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible for media files such as ogg mp3 avi files to be infected with a virus? christianunix Linux - Newbie 1 03-21-2009 05:15 AM
how can i convert my ogg vids into ipod playable media deathalele Linux - General 1 01-11-2009 05:29 PM
Need to convert MP3s to OGG Vorbis files crash_override_me Linux - Software 3 09-24-2005 12:13 PM
How do I convert .mp3 files to the .ogg format? ben_build#2.1.0 Linux - Software 9 12-21-2004 04:14 AM
Convert ogg to mp3 files? m0rl0ck Linux - Software 5 12-11-2003 01:04 AM


All times are GMT -5. The time now is 06:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration