Re: Fixing mpeg2enc

Steven Boswell II <[email protected]> Tue, 31 Aug 2010 16:45:37 -0700 (PDT)
Newsgroups gmane.comp.video.mjpeg.devel
Message-ID <[email protected]>
--===============0475547978713731374==
Content-Type: multipart/alternative; boundary="0-1365363177-1283298337=:75901"

--0-1365363177-1283298337=:75901
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

--- On Tue, 8/31/10, Andrew Stevens <[email protected]> wrote:
>>>>[3] The most-recent bitrate estimation code seriously undershoots
>>>>the target.
>>>
>>>I'm tempted to write this off (restore mpeg2encs single-pass
>>>rate-control release)
>>
>>I'd be happy with that solution too.=A0 The old bitrate estimation did
>>a fantastic job of maintaining a steady rate, both in terms of size
>>and in terms of perceptible video quality.
>
>Sounds like differently tuned formula for bit-allocation based on
>predicted/actual complexity.=A0 It *should* be possible to use ffmpeg's
>facility for user-defined rate-control Formulae to achieve something
>pretty close.

I prefer your facility.=A0 ffmpeg's doesn't work for me.

>Thinking about it ...=A0 I'm not sure what you mean with 'undershoot'.
>There's currently no mechanism for specifying a target mean rate

As in, I ask for 4000 kbps video, and the final result is closer to 2000 kb=
ps.=A0 I like to pick a bitrate that fills all the space I want the video t=
o occupy on a DVD, so undershooting doesn't help me at all.

>>>>[4] The most-recent mplex code seems to have serious trouble with
>>>>A/V sync.
>
>Thats really *weird* .=A0 mplex-internally its hard to see how audio
>could first drift and then stop drifting.

I don't know either, but it was really pronounced.=A0 Once you're done with=
 a round of bug-fixing, I'll redo that project (which will take a week or s=
o...I didn't save the denoised video from that one, sadly) and see if it's =
still off.=A0 If so, I'll have to figure out how to get the ISO to you.=A0 =
I don't know if KTorrent can act as its own tracker, but if so, maybe I can=
 make a private torrent for you.=A0 Otherwise, snail-mail!

>>There's one more artifact I thought of, one that might be related to
>>the above bugs.=A0 On my computer screen, video looks perfect, but
>>when I view it with a DVD player on a TV, whether a CRT-style TV or
>>an LCD-style TV, it kind of looks like the video has been run
>>through a "plaid" filter.=A0 Even my highest-resolution video looks
>>like it's melting on a very small scale, especially in
>>not-so-brightly-lit areas.=A0 I don't know how else to describe this
>>one.
>
>This sounds like decoder mismatch...=A0 (MPEG-2 isn't bit-accurately
>specified, unlike MPEG-4) you can get subtle block artefacts if the
>encoders idea of the decoded image and the actual decode are slightly
>different.=A0 Is this also a recent issue?=A0 If you can upload an .iso
>someplace I'll take a peek...

I think this has been going on ever since I started doing video with Linux,=
 but I'll check through some of my oldest recordings to see if it looks lik=
e it's happening there.=A0 (Though it'll be hard to evaluate my pre-y4mdeno=
ise recordings for artifacts...they're all artifacted :-)

Steven Boswell

=0A=0A=0A      
--0-1365363177-1283298337=:75901
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<table cellspacing=3D"0" cellpadding=3D"0" border=3D"0" ><tr><td valign=3D"=
top" style=3D"font: inherit;">--- On Tue, 8/31/10, Andrew Stevens &lt;wacks=
[email protected]&gt; wrote:<br>&gt;&gt;&gt;&gt;[3] The most-recent bitrat=
e estimation code seriously undershoots<br>&gt;&gt;&gt;&gt;the target.<br>&=
gt;&gt;&gt;<br>&gt;&gt;&gt;I'm tempted to write this off (restore mpeg2encs=
 single-pass<br>&gt;&gt;&gt;rate-control release)<br>&gt;&gt;<br>&gt;&gt;I'=
d be happy with that solution too.&nbsp; The old bitrate estimation did<br>=
&gt;&gt;a fantastic job of maintaining a steady rate, both in terms of size=
<br>&gt;&gt;and in terms of perceptible video quality.<br>&gt;<br>&gt;Sound=
s like differently tuned formula for bit-allocation based on<br>&gt;predict=
ed/actual complexity.&nbsp; It *should* be possible to use ffmpeg's<br>&gt;=
facility for user-defined rate-control Formulae to achieve something<br>&gt=
;pretty close.<br><br>I prefer your facility.&nbsp; ffmpeg's doesn't work f=
or
 me.<br><br>&gt;Thinking about it ...&nbsp; I'm not sure what you mean with=
 'undershoot'.<br>&gt;There's currently no mechanism for specifying a targe=
t mean rate<br><br>As in, I ask for 4000 kbps video, and the final result i=
s closer to 2000 kbps.&nbsp; I like to pick a bitrate that fills all the sp=
ace I want the video to occupy on a DVD, so undershooting doesn't help me a=
t all.<br><br>&gt;&gt;&gt;&gt;[4] The most-recent mplex code seems to have =
serious trouble with<br>&gt;&gt;&gt;&gt;A/V sync.<br>&gt;<br>&gt;Thats real=
ly *weird* .&nbsp; mplex-internally its hard to see how audio<br>&gt;could =
first drift and then stop drifting.<br><br>I don't know either, but it was =
really pronounced.&nbsp; Once you're done with a round of bug-fixing, I'll =
redo that project (which will take a week or so...I didn't save the denoise=
d video from that one, sadly) and see if it's still off.&nbsp; If so, I'll =
have to figure out how to get the ISO to you.&nbsp; I don't know if
 KTorrent can act as its own tracker, but if so, maybe I can make a private=
 torrent for you.&nbsp; Otherwise, snail-mail!<br><br>&gt;&gt;There's one m=
ore artifact I thought of, one that might be related to<br>&gt;&gt;the abov=
e bugs.&nbsp; On my computer screen, video looks perfect, but<br>&gt;&gt;wh=
en I view it with a DVD player on a TV, whether a CRT-style TV or<br>&gt;&g=
t;an LCD-style TV, it kind of looks like the video has been run<br>&gt;&gt;=
through a "plaid" filter.&nbsp; Even my highest-resolution video looks<br>&=
gt;&gt;like it's melting on a very small scale, especially in<br>&gt;&gt;no=
t-so-brightly-lit areas.&nbsp; I don't know how else to describe this<br>&g=
t;&gt;one.<br>&gt;<br>&gt;This sounds like decoder mismatch...&nbsp; (MPEG-=
2 isn't bit-accurately<br>&gt;specified, unlike MPEG-4) you can get subtle =
block artefacts if the<br>&gt;encoders idea of the decoded image and the ac=
tual decode are slightly<br>&gt;different.&nbsp; Is this also a
 recent issue?&nbsp; If you can upload an .iso<br>&gt;someplace I'll take a=
 peek...<br><br>I think this has been going on ever since I started doing v=
ideo with Linux, but I'll check through some of my oldest recordings to see=
 if it looks like it's happening there.&nbsp; (Though it'll be hard to eval=
uate my pre-y4mdenoise recordings for artifacts...they're all artifacted :-=
)<br><br>Steven Boswell<br><br></td></tr></table><br>=0A=0A      
--0-1365363177-1283298337=:75901--


--===============0475547978713731374==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
--===============0475547978713731374==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Mjpeg-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mjpeg-developer

--===============0475547978713731374==--