[mythtv] New MPEG2 commercial-cut code ready for testing
    Cory Papenfuss 
    papenfuss at juneau.me.vt.edu
       
    Wed Nov 16 11:20:25 EST 2005
    
    
  
On Wed, 16 Nov 2005, Geoffrey Hausheer wrote:
> On 11/16/05, Cory Papenfuss wrote:
>>         The "blockiness" is still present, though.  Not really blockiness
>> as it is frame in != frame out.  The .yuv files look like the original.
>> The I-frame inserted looks like it's encoded differently... like without
>> interlacing, and coarser quantization.  I tried changing the  c->qmax = 1
>> but had not discernable difference.
> I can see it too, I'm just not sure what to do about it.  Either I am
> not setting up the encoder corrctly, or it can't process your streams
> correctly, but in either case, I'm not sure how I can make it any
> better.  I'd recomend playing with ffmpeg.  If you can find settings
> that make the image look good there, I can incorporate them into the
> encoder.
>
> .Geoff
>
 	I have looked visually carefully at the .yuv, .yuv.enc, and output 
mpeg with ffplay and I believe that the decode and encode are the same. 
Once it's frame-frozen at the same generated I-frame in the output stream, 
it looks different, however.  Especially regarding the interlacing.  Is it 
possible that top/bottom fields got swapped once it got muxed in the 
stream?
Another strange one.  Doing basically nothing with a stream except 
cleaning.  It hangs towards the end at the same place (unbuffered 
output at debug 4)
$mpeg2fix -d  4 -i cory_grad_luke_conf_alton.nuv  -o test2.mpg
<the big snip>
VID: B #:12 nb: 2 pts: 609414887 dts: 609414887 pos: 8acd000
Id:0:  1:52:51.276 V:62669 3871 A:674123 8799
PTS discrepency: 609421373 != 609422669 on B-Type (14)
PTS discrepency: 609424621 != 609425672 on B-Type (15)
PTS discrepency: 609427864 != 609428675 on P-Type (16)
VID: P #:16 nb: 2 pts: 609427864 dts: 609419666 pos: 86a32b8
Id:0:  1:52:51.420 V:39117 3827 A:674123 8799
VID: B #:14 nb: 2 pts: 609421373 dts: 609421373 pos: 89213d8
Id:0:  1:52:51.348 V:11797 3783 A:674123 8799
 	When I ran it through gdb --args , 'run', it finished!
$ du -sk cory_grad_luke_conf_alton.nuv
4621744 cory_grad_luke_conf_alton.nuv
$ du -sk test2.mpg
3945220 test2.mpg
That's as far as it gets.
-Cory
-- 
*************************************************************************
* Cory Papenfuss                                                        *
* Electrical Engineering candidate Ph.D. graduate student               *
* Virginia Polytechnic Institute and State University                   *
*************************************************************************
    
    
More information about the mythtv-dev
mailing list