Timo Jyrinki
2004-Jul-22 12:13 UTC
[Theora] A script to convert existing video files to Ogg
(Theora/Vorbis) available. Message-ID: <410011E4.2040904@hut.fi> Hello, I noticed that it's quite difficult currently to create Ogg format files (Ogg Theora for video and Ogg Vorbis for audio). There's only the encoder_example-program, which is included in the libtheora source packages, but seemingly not in any libtheora/libtheora-devel packages that are around the web for e.g. many Linux distributions. If anyone happens to be interested in an easier way to utilize Ogg Theora, I've made the encoder_example binary available as an RPM package (compiled under SUSE 9.1), together with an easy-to-use script with which to convert videos to Ogg format. The RPM requires libogg, libtheora and libvorbis installed, and the script (2ogg.sh) needs MPlayer (http://www.mplayerhq.hu/) and encoder_example. I put the 2ogg.sh under GPL just in case someone wants to do something with it. They're available at my home page at: http://www.iki.fi/~tjyrinki/proj_info.html#convtheora I haven't programmed much with the shell scripts, but I tried to do some proper parsing of the paramaters so that it's both easy and safe to use. There's nothing earth-shattering in the script, but I find it a nice thing to have together with a ready-to-go encoder binary. Best Regards, Timo Jyrinki
Nilesh Bansal
2004-Jul-22 17:25 UTC
[Theora] A script to convert existing video files to Ogg
(Theora/Vorbis) available. In-Reply-To: <410011E4.2040904@hut.fi> References: <410011E4.2040904@hut.fi> Message-ID: <Pine.LNX.4.60.0407221717450.7174@albani.cs.ubc.ca> regarding 2ogg.sh some suggestions. mkfifo -m 660 stream.yuv does not work on FAT filesystem. Please make a check that, filesystem on which, you run the script is not FAT/NTFS. Default video and audio quality should be there (if user does not provide any arguments). For me, video=3 and audio=2 works great. I am using SuSE 9.1, with many rpms installed using apt4rpm. RPMs in repository, include encoder_example. Regards, Nilesh Bansal http://www.cse.iitb.ac.in/nilesh/ On Thu, 22 Jul 2004, Timo Jyrinki wrote:> Hello, > > I noticed that it's quite difficult currently to create Ogg format files (Ogg > Theora for video and Ogg Vorbis for audio). There's only the > encoder_example-program, which is included in the libtheora source packages, > but seemingly not in any libtheora/libtheora-devel packages that are around > the web for e.g. many Linux distributions. > > If anyone happens to be interested in an easier way to utilize Ogg Theora, > I've made the encoder_example binary available as an RPM package (compiled > under SUSE 9.1), together with an easy-to-use script with which to convert > videos to Ogg format. The RPM requires libogg, libtheora and libvorbis > installed, and the script (2ogg.sh) needs MPlayer (http://www.mplayerhq.hu/) > and encoder_example. I put the 2ogg.sh under GPL just in case someone wants > to do something with it. > > They're available at my home page at: > http://www.iki.fi/~tjyrinki/proj_info.html#convtheora > > I haven't programmed much with the shell scripts, but I tried to do some > proper parsing of the paramaters so that it's both easy and safe to use. > There's nothing earth-shattering in the script, but I find it a nice thing to > have together with a ready-to-go encoder binary. > > Best Regards, > Timo Jyrinki > _______________________________________________ > Theora mailing list > Theora@xiph.org > http://lists.xiph.org/mailman/listinfo/theora >
Timo Jyrinki
2004-Jul-23 01:18 UTC
[Theora] A script to convert existing video files to Ogg
(Theora/Vorbis) available. In-Reply-To: <Pine.LNX.4.60.0407221717450.7174@albani.cs.ubc.ca> References: <410011E4.2040904@hut.fi> <Pine.LNX.4.60.0407221717450.7174@albani.cs.ubc.ca> Message-ID: <1090570734.4100c9ee49413@webmail2.hut.fi> On Thu, 22 Jul 2004 17:25:00 -0700 (PDT) Nilesh Bansal <bansal@cs.ubc.ca> wrote:> regarding 2ogg.sh some suggestions. > mkfifo -m 660 stream.yuv does not work on FAT filesystem. Please > make a check that, filesystem on which, you run the script is not FAT/NTFS. > Default video and audio quality should be there (if user does not > provide any arguments). For me, video=3 and audio=2 works great.Thanks for the suggestions. I made the changes (amongst a few others) and made version 0.01a available. It seems, though, that not every version of df (which I used) has the --exclude-type option available, so if you have a more trustworthy way of detecting FAT/NTFS, feel free to tell. At least on one Solaris machine the detection doesn't work and running the script fails (then again, I don't know if mplayer works on Solaris either?). I didn't actually even test the detection itself, as I don't have any FAT or NTFS partitions. I just tried it with vfat (or ntfs) replaced with reiserfs and it worked, so I assume it's okay. BR, Timo Jyrinki