Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linuxtv-softmpeg] AW: libsoftmpeg bug




> -----Ursprüngliche Nachricht-----
> Von: linuxtv-softmpeg-bounce@linuxtv.org
> [mailto:linuxtv-softmpeg-bounce@linuxtv.org]Im Auftrag von 
> Bryce Nichols
> Gesendet: Sonntag, 6. Juni 2004 03:09
> An: linuxtv-softmpeg@linuxtv.org
> Betreff: [linuxtv-softmpeg] libsoftmpeg bug
> 

Hello Bryce,

> 
> 
> I found a problem in libsoftmpeg concerning handling of PES 
> data. In the
> softmpeg.c file, the header_length value is only read if the 
> PTS or DTS
> flags are set.  Before I changed this, I had a lot of issues with the
> video.
> 
> Here's my CVS diff:
> 
> Index: softmpeg.c
> ===================================================================
> RCS file: /cvs/linuxtv/libsoftmpeg/src/softmpeg.c,v
> retrieving revision 1.34
> diff -r1.34 softmpeg.c
> 402a403,404
> >               header_length += buf[8];
> >
> 409,410d410
> <                       header_length += buf[8];
> <
> 

Cool, will test this.

> 
> I am working on many changes to libsoftmpeg.  After I've done 
> more testing
> and cleaned up my code a bit, I will post a patch.  
> Significant changes
> include new AV sync code that relies less on the video 
> refresh rate for
> synchronization, auto adaptation to the frame rate of the 
> video material
> (so it just works automatically for either PAL or NTSC 
> formats but with
> the option to force a particular rate or specify various methods of
> determining the frame rate), and spelling and formatting 
> corrections.  I
> also plan to make it easy to play back either TS or PS 
> material.  I have
> now achieved smooth video with nice AV sync when playing the mpeg2 PS
> coming out of a PVR350 card.

Would like to test it.

> 
> I would really like to hear more comments from users having 
> issues with AV
> sync or skips in audio or video so I can explore what other issues may
> need to be addressed.  Also, if there are any particular issues that
> anyone needs help with, let me know, as I may have fixes I could share
> even though I'm not ready to release a full patch yet.

I got my HTPC running last weekend, using VDR and softmpeg for DVB-T.
Most AV skips were related to a weak signal.
Sometimes I got a hard kernel crash, which could be related to the DVB modules or DirectFB (or its misuse), don't know exactly
Most the time its working fine (thanks Colin, btw.)


Currently my setup got 2 issues:
- An AV lag. Video is roundabout half a second behind Audio. One can see it on the news channels.
- On some TV channels the Video is not decoded. One can only "hear" TV instead of watching.. ;) I dont know the difference of these channels to the other ones which are displayed correctly. If you got any hint which printf() I should activate or have a look at, I'll gladly give a log or other information.


[snip]
> I've been using:
> 
> depth=16
> pixelformat=RGB16
> window-surface-policy=systemonly
> desktop-buffer-mode=frontonly
> 
> with good results as far as drawing speed goes.

Will test these, too.

> 
[snip]
> 
> Cheers
> 
> --Bryce
> 
> 

cu
Jörg




Home | Main Index | Thread Index