[MPlayer-dev-eng] [PATCH] lavcmpeg2: YV12 to MPEG-1/MPEG-2 for DVB/DXR3/IVTV/V4L2 (based on lavc)

Jochen Leopold jochen.leopold at subliminal.at
Sat Jun 27 15:41:35 CEST 2009


This patch adds a new video filter for fast software YV12 to 
MPEG-1/MPEG-2 conversion.
It's based on the old lavc video filter, but with more options.

I use it with my DVB card.
My card has a limited bandwidth and  the old lavc video filter only uses 
I-Frames, which results in a bad quality on low bitrates. So I added a 
gopsize options (I&B frames) to get a better quality on low bitrates.
It needs just a bit more CPU power. I tested it on my AMD 1.2 GHz 
machine and the CPU usage raised from 50% to 60%.

I also added a mpeg1/mpeg2, maxrate and a minrate option.

VIDEO FILTERS
       lavcmpeg2[=quality 
[[#mpeg=2][#gopsize=6][#maxrate=4000][#minrate=500]] [:fps]]
              Fast software YV12 to MPEG-1/MPEG-2 conversion with 
libavcodec for use with DVB/DXR3/IVTV/V4L2.

                 <quality>
                      1-31: fixed qscale
                      32-:  fixed bitrate in kbits

                 <mpeg>
                      1: mpeg1,
                      2: mpeg2 (default)

                 <gopsize>
                     0:   only I-Frames (lower quality)
                     1-x: I & B-Frames (higher quality - higher CPU usage)
                     default: 6

                 <maxrate>
                      maximum bitrate (huge CPU usage (runs faster when 
quality=maxrate))
                      default: 0 = disabled

                 <minrate>
                      minimum bitrate (huge CPU usage)
                      default: 0 = disabled

                 <fps>
                      force output fps (float value) (default: 0, 
autodetect based on height)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-svn-r29404-libmpcodecs-vf_lavcmpeg2.patch
Type: text/x-patch
Size: 10194 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090627/899845ad/attachment.bin>


More information about the MPlayer-dev-eng mailing list