(I am not sure if I am properly subscribed to this list yet.  I have not
received a confirmation email).

On the 20th I reported that I was having problems limiting the bit rate
using gentoo's 1.9.0_rc4 ebuild.  Bernhard pointed out that I should be
using 1.9.0.  Since gentoo doesn't have an ebuild for that I fabricated
one which looks like it downloaded
http://distfiles.gentoo.org/distfiles/mjpegtools-1.9.0.tar.gz and
installed.  I recompiled gstreamer-plugins-bad.

It did not solve the problem.  The bit rate of the generated video was
still unreasonably high.

With help from the gstreamer IRC channel I was able to write a YUV file
so I could test with the mpeg2enc command stand-alone.

gst-launch-0.10 -v filesrc location=/var/tmp/The\ Drinky\ Crow\ Show\ -\ 
Tunnel\ Girls.mpeg ! decodebin name=db ! queue ! videoscale ! video/x-raw-yuv, 
width=352, height=480, pixel-aspect-ratio=1920/1056 ! y4menc ! filesink 
location=/homes4/thoth/drinky-crow/x.yuv  db.! fakesink silent=true

mpeg2enc -a 2 -b 3180 -g 15 -G 15 -s -R 2  /homes4/thoth/drinky-crow/x.yuv -o 
/homes4/thoth/drinky-crow/x.m2v

Here are the file sizes:

-rw-r--r-- 1 thoth thoth 1657828416 Mar 27 12:13 x.m2v
-rw-r--r-- 1 thoth thoth 6812375076 Mar 27 11:41 x.yuv

Both files play in mplayer, but the .m2v doesn't have the correct aspect
ratio (-a 2 isn't being honored, and the
sequence_header.aspect_ratio_information contains a 12 instead).

Since I started with a 15-minute recording, I calculate the x.m2v file
as averaging out to almost 15 Mbit/s.  This seems inconsistent with the
-b 3180 argument to mpeg2enc.

I can provide the 6G .yuv file to any brave soul willing to attempt to
reproduce my problem.  I'm just not sure where I could host it.

As for what I used to produce graphs of bit rate, I have an in-house
tool I wrote.  Unfortunately it only works on single-stream PES streams
at the moment, so I would have to make some changes to have it graph a
.m2v file that has not been through my PES wrapper gstreamer plugin.

------------------------------------------------------------------------------
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to