LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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: 250Reputation: 250Reputation: 250
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
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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: 213
Blog Entries: 2

Rep: Reputation: 26
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: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
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
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:06 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration