Hi, I sent the message below a couple of months ago but I got no reply. Now that there's more activity perhaps someone could kindly provide me some guidance. Theora is great and the developers are doing a wonderful job, so I'd like to implement the codec in a way which does it justice... Original post: I wrote a plugin to enable LiVES (a video editor) to encode theora/vorbis/ogg files. I'm looking for some advice towards improving quality. If someone would like to help me test this please note that you'll need MPlayer, ImageMagick, sox, the encoder_example from libtheora (somewhere in the PATH), and Python 2.3.0 (this is fairly all standard stuff). Consider the following clip: http://lives.reimeika.ca/cvs/swath.ogg As you can see there are a lot of obvious artifacts. I generate this movie using a series on PNG images and the following command sequence: mkfifo -m 0600 stream.yuv mplayer mf://*.png -mf type=png:fps=29.97002997 -vf dsize=16:9,hqdn3d -vo yuv4mpeg -ao null -nosound & encoder_example -s 8 -S 7 -f 30000 -F 1001 -v 10 -a 10 -o swath.ogg stream.yuv Any suggestions on how to improve this? In order to test I'm making available the LiVES video file (which is essentially a .tgz of the PNG images): http://lives.reimeika.ca/cvs/swath.lv1 To encode this you can download the LiVES theora encoder plugin: http://lives.reimeika.ca/cvs/theora_encoder.py and copy it into an empty directory (make sure it's executable). Move swath.lv1 into that same directory and run: ./theora_encoder.py -v -o swath.ogg -a 3 -t hi -L swath.lv1 This will create "swath.ogg". In order to see what the uncomporessed movie looks like you can run (in that directory): animate -delay 3.336 *.png Any suggestions on how to improve the quality? I'm running MPlayer1.0pre7 and libtheora-1.0alpha5. Thanks for any input! -- marco@reimeika.ca Gunnm: Broken Angel http://amv.reimeika.ca http://reimeika.ca/ http://photo.reimeika.ca
On Mon, 22 Aug 2005 23:46:26 -0400 marco <marco@math.toronto.edu> wrote:> Hi, > > I sent the message below a couple of months ago but I got > no reply. Now that there's more activity perhaps someone > could kindly provide me some guidance. Theora is great > and the developers are doing a wonderful job, so I'd like to > implement the codec in a way which does it justice... > > Original post: > > I wrote a plugin to enable LiVES (a video editor) to encode > theora/vorbis/ogg files. I'm looking for some advice towards > improving quality. If someone would like to help me > test this please note that you'll need MPlayer, ImageMagick, > sox, the encoder_example from libtheora (somewhere in the PATH), > and Python 2.3.0 (this is fairly all standard stuff). > > Consider the following clip: > > http://lives.reimeika.ca/cvs/swath.ogg > > As you can see there are a lot of obvious artifacts. I generate > this movie using a series on PNG images and the following command > sequence: > > mkfifo -m 0600 stream.yuv > mplayer mf://*.png -mf type=png:fps=29.97002997 -vf dsize=16:9,hqdn3d > -vo yuv4mpeg -ao null -nosound & encoder_example -s 8 -S 7 -f 30000 > -F 1001 -v 10 -a 10 -o swath.ogg stream.yuv > > Any suggestions on how to improve this? In order to test I'm > making available the LiVES video file (which is essentially a .tgz of > the PNG images): > > http://lives.reimeika.ca/cvs/swath.lv1Hi, I use the following lines to encode your png : mkfifo -m 0600 stream.yuv mplayer mf://*.png -mf type=png:fps=25 -quiet -vf pp=va:128:8/ha:128:8/dr,smartblur=5:-0.2:30 -vo yuv4mpeg -ao null -nosound & /home/seb/libtheora-1.0alpha5/examples/encoder_example -v 10 -a -1 -o swath.2.ogg stream.yuv the -0.2 in smartblur is useful to 'hide' the block in the output video, you can decrease the value and see the difference. The result is available here : http://home.tele2.fr/crossover/swath.2.ogg Regars -- Zikzak