Ogg Video Tools is a free opensource toolbox packed with 10 different utilities for manipulating Ogg video files. The ogg video files consists of patent-free Video streams Theora and Auio Streans Vorbis.
The utilities are included in Ogg Video Tools
oggResize – Reconstructs an Ogg/Theora video by defining a new video frame size, a new datarate and/or a new framerate.
oggThumb – Creates a series of thumbnails from one Ogg/Theora video file.
oggSlideshow – Creates a video slideshow in Ogg/Theora format by a number of pictures
oggSplit – Seperates the media stream from one Ogg file(demultiplexing)
oggJoin – Rejoins seperated Ogg media streams (multiplexing)
oggDump – Created mainly for developers to receive packaging information
oggCut – Cuts parts from an ogg file defined by a start and an end time position
oggCat – Concatenates ogg video files to form one new ogg file that can be interpreted by all players, that can play ogg/theora/vorbis files (vlc, mplayer, cortado etc.)
oggLength – Returns the length of an ogg file
oggScroll – Shows up every video frame in a seperate X-Window
Install ogg Video Tools in openSUSE
To install ogg Video Tools in openSUSE, click this 1-click installer from Packman supported on openSUSE 11.1/11.0/10.3
This should download the YMP file and automatically launch the YaST package manager to add the required Repositories, download and install ogg Video Tools and the dependencies. Click next on the ogg Video Tools installation screen and Next again on the installation proposal window. This should start adding the required repositories, download and install ogg Video Tools and its required dependencies. Click Finish when the installation completes successfully.
All the above mentioned ogg tools should now be installed under /usr/bin/.
Running the commands with a -h arguement will provide with various command options. Following are some usage examples for the ogg tools:
oggResize usage examples
Create new Ogg video with a different frame size without altering the original file
oggResize -s 320×240 myOrigFile.ogg myNewFile.ogg
Create new Ogg video with a different Datarate
oggResize -d 512000 myOrigFile.ogg myNewFile.ogg
Create new Ogg video with a different Datarate
oggResize -f 16 myOrigFile myNewFile.ogg
oggThumb usage examples
oggThumb creates JPEG files by default in the directort from which it is run.
To output files in PNG format use “-o”
oggThumb -o png myfile.ogg
Output thumbnail pictures with a set size (-s):
oggThumb -s 320×240 myfile.ogg
Creating a series of thumbnails at specified times (-t in seconds)
oggThumb -t 2,3,10 myfile.ogg
Creating a series of thumbnails at specified Frame positions (-f)
oggThumb -f 100,250,450 myfile.ogg
Thumbnails from more than one ogg file
oggThumb -s 320×240 -t 1,5 myfile.ogg myfile2.ogg myfile3.ogg
oggSlideshow – usage example
Creates theora video from a number of JPEG/PNG files with default Ken-Burns effect.
Create an Ogg slideshow with the size of 320×240 pixel, a datarate of 256 kBit per second and a 16 frames per second
oggSlideshow -s 320×240 -d 256000 -f16 -o mySlideshow.ogg picture1.jpg picture2.jpg picture3.jpg
Set effects type with -t option for one of the following:
Ken-Burns-Effect (option: -t kb)
The Ken-Burns-Effect slides through the picture and zooms in or out.
Crossfade-Effect (option: -t cf)
To have a smooth changeover between two pictures, these pictures are crossfaded.
Plain Slideshow (option: -t p)
All pictures are concatenated without any changeover. This function is very datarate efficient.
To specify the presentation duration in seconds for every picture (-l)
oggSlideshow -s 320×240 -l 12 -o mySlideshow.ogg mydir/*.jpg
oggSplit – usage examples
Demultiplexing an Ogg video file is quite easy, you would use something like this:
oggSplit myfile.ogg
Splits the file into
theora_6f1634f6.ogg
vorbis_41bf6b07.ogg
The number after theora_ and vorbis_ is the stream ID. This number is internally used by the Ogg container. The stream ID is necessary in ogg and is set at stream creation time and should be expected to be a “random” number. These files are fully usable and can be played or viewed from a player.
oggJoin – Usage example
Multiplexing an Ogg file is as easy as demultiplexing. Refering to the example above you can write
oggJoin myNEWfile.ogg theora_6f1634f6.ogg vorbis_41bf6b07.ogg
This command will create the file “myNEWfile.ogg” which consists of the theora_* stream and the vorbis_* stream.
oggCut – usage example
oggCut extracts parts of an ogg file.
To create a new ogg file from a current file with start position (-s in milli seconds) and end positions (-e milliseconds)
oggCut -i inputFile.ogg -o outputFile.ogg -s 2000 -e 60000
oggCat usage example
To join one or more ogg files
oggCat newFile.ogg firstFile.ogg secondFile.ogg
For more information, click here for project home