[MPlayer-dvb] Better picture for mplayer-dvb

Nico Sabbi nsabbi at tiscali.it
Sun Dec 5 19:22:30 CET 2004


Nico Sabbi wrote:

> Juri Haberland wrote:
>
>> Sebastian Kemper wrote:
>>  
>>
>>> Nico Sabbi schrieb:
>>>
>>>   
>>>
>>>> 2 MB/s means 16 Mbit/s; this may be really too high for the card 
>>>> (the previous figure of 5 Mb/s should not,
>>>> because the card is supposed to play DVD content, which may get as 
>>>> high as 9.8 Mb/s)
>>>> but I'm just guessing: I don't have a FF card.
>>>>     
>>>
>>> Great input, Nico. Allthough you might have confused MB/s and 
>>> Mbit/s?   
>>
>>
>> No, he didn't.
>>
>>  
>>
>>> If I understand correctly, wouldn't it be worth to try if things 
>>> work better with a patched version of lavc that has a bitrate 
>>> boundary at 9.8MBit/s? What do you think? Who could we ask for such 
>>> a patch? :) Can you do it yourself? :) I can't program anything 
>>> except printf/scanf things yet :)
>>>   
>>
>>
>> Actually, lavc=9000 should do the trick, but it still gives me a max.
>> bitrate of 2.2 MBytes/s.
>> Only if I use 5000 I get 1.2 MByte/s, which is 9.6 Mbit/s.
>>
>> So something is wrong with the lavc parameter, because mplayer's
>> man-page says:
>>
>>  
>>
>>> quality:
>>>  1 - 31 fixed qscale
>>>  32 -   fixed bitrate in kBits
>>>   
>>
>>
>> So 9000 should give me 9Mbit/s, but I get up to 17.2Mbit/s...
>>
>> Cheers,
>> Juri
>>  
>>
>
> try this patch: it sets vrc_min, vrc_max and vbv when you specify a 
> bitrate (e.g. 9000).
> It's only a quick first attempt, but if you are lucky it may even work.
>
>------------------------------------------------------------------------
>
>Index: vf_lavc.c
>===================================================================
>RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_lavc.c,v
>retrieving revision 1.15
>diff -c -u -c -u -r1.15 vf_lavc.c
>--- vf_lavc.c	9 Nov 2003 23:32:42 -0000	1.15
>+++ vf_lavc.c	5 Dec 2004 18:13:08 -0000
>@@ -190,6 +190,7 @@
>     } else {
> 	// fixed bitrate (in kbits)
> 	lavc_venc_context.bit_rate = 1000*p_quality;
>+	lavc_venc_context.rc_max_rate = lavc_venc_context.rc_min_rate = lavc_venc_context.rc_buffer_size = lavc_venc_context.bit_rate;
>     }
> #if LIBAVCODEC_BUILD >= 4662
>     lavc_venc_context.frame_rate_base = 1000*1001;
>  
>
>------------------------------------------------------------------------
>
>  
>

wrong patch. The following is the right one:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: vf_lavc.diff
Type: text/x-patch
Size: 624 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dvb/attachments/20041205/2e66612c/attachment.bin>


More information about the MPlayer-dvb mailing list