Hello guys
I've been doing quite a lot of work recently to improve the performance
of dvdauthor when handling MPEG-2 streams generated by hardware TV
encoder boards, in particular the widespread and popular cards based on
the Connexant CX2341x chipset (Hauppage, Adaptec etc).
As a result I would like to submit the following patch against the
release version of dvdauthor 0.6.14:
http://ivtvdriver.org/index.php/File:dvdauthor-0.6.14-ivtv-patch.txtThe patch affects only the 'dvdvob.c' module, and concerns the
FindVobus() function.
It does two things:
(1) Correct a hard-coded assumption that the PES media headers
immediately follow the pack header.
This is needed because the CX2341x streams (and others?) optionally
insert a System header before the PES header. The revised code simply
checks for a system header code (buf[17]=0xbb) and if present offsets
the relevant PES header reads by 24 bytes.
(2) Handle video GOPs that are not preceded by a VOBU.
This is needed because such GOPs often crop up in encoded streams. The
revised code adds some relatively straightforward extra logic to
FindVobus() which detects this situation and corrects it by creating a
VOBU using information copied from previous packets. The 'normal'
behavior of FindVobus() is not changed at all.
I'm really happy to hear your comments, queries or suggestions.
I have tested the patch quite thoroughly and believe it is fully
back-compatible and 'safe'. I feel it enhances both the robustness and
applicability of dvdauthor for the whole community.
Please can you advise the proper approach to get these changes included
in the next release of this extremely useful and valuable application?
Many thanks
MARTIN
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php_______________________________________________
Dvdauthor-developer mailing list
Dvdauthor-developer@...
https://lists.sourceforge.net/lists/listinfo/dvdauthor-developer