Hui Zhou wrote:
On Mon, Sep 19, 2005 at 02:04:01PM -0400, Jesse Guardiani wrote:
Hui Zhou wrote:

[...]

I am running 0.3.6w, and all the mpegs it produces are "bad" as you described. Actually the only "badness" I believe is just in the program pack header the length of stuffing bytes is mis-marked which resulted in extra-stuffing bytes in many packs. Apparently projectX doesn't expect such and goes through some panic procedures which wastes a lot of processing time.

I believe just repair the pack headers should make projectx happy. I never tried it though.

How would I go about doing that? It would make my life soooooo much easier/faster,
as I have a ton of pre 0.3.8 mpegs I'd like to burn...

I had a closer look at the problem. It seems that it is not simply header error, but simply there are two extra stuffing bytes every here and there. Since in some cases, the total stuffing bytes exceeds the maximum of 7 bytes, so I can't just fix it by correcting the header. The only way I see is just dump the stream to another file, skipping the extra bytes along the way. Attached is a c program does that. Compile it with "make packfix", and drop it in your path. To use it, chdir to the directory of video and run "packfix video_file_name", it will dump a fixed stream "fixed.mpg" in the same directory. A simple test on my side seems it will make projectx happy. Unfortunately, it does not check error messages, so make sure you have enough disk space.

Hope that helps.

Hey, I can't thank you enough for this! I think packfix took 10-15 minutes to process a 4gb movie using my dual 600mhz P3 machine. The actual MythBurn process then took just over 30 minutes!

You just saved my 200G tv archive! Thanks!

Tonight I plan to write a simple shell script to convert an entire directory automatically. I can use "Dumping" and "The stream seems ok to me" and the exit code (looks like 0 is success and 1 is failure) as my reference for what the packfix has done to the current file.

Thanks again!


--
Jesse Guardiani
Programmer/Sys Admin
[EMAIL PROTECTED]



-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
ivtv-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ivtv-devel

Reply via email to