The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.
"Erroneous packet size" DVD burning question.
Okay, I'm using this DVDStyler program, which apparently is made for Linux but is supposed to work fine with WinXP.
I have a file that is an MPEG but my searches tell me it is truncated. Because of this DVDStyler goes into some infinite loop and won't burn the DVD or create an ISO image.
I was wondering, is there a way to "un-truncate" an MPEG?
I really want to see if the menu making program works but this is getting in the way of my testing.
A forum seemed to provide the basics of the question but I do not understand the answer:
The mpeg file was most likely truncated (that's not unusual). The
problem is not in dvdstyler itself but in mpgtx which dvdstyler uses to
demultiplex. mpgtx gets confused if the mpeg file is truncated and tries
to copy past the end of the file getting itself in a nasty infinite loop.
The fix is easy:
int length = ((Mpeg->Byte(offset+4)<<8) | Mpeg->Byte(offset+5));
from = Mpeg->SkipPacketHeader(offset);
to = offset + length + 6;
+ if ( to > FileSize ) to = FileSize; // File nust have been truncated
if (to <= from) {
fprintf(stderr, "Erroneous packet size, skipping\n");
offset++;
Get the source for mpgtx from PCLinuxOS, apply this patch and it should
work fine.
You can instead probably bypass the problem by appending a bunch of zeros
to the end of the mpeg file:
Right. Since your typical Windows system does not have the same tools as your typical Linux system, we'll have to improvise:
1.) Perhaps backup your movie file, just in case this doesn't work
2.) Start up the command prompt (Start -> Run -> cmd)
3.) Navigate to whatever directory you've stored your movie file in
e.g. if you've got your movie in E:\Temporary Files\Movies, then type:
E:
cd "\Temporary Files\Movies"
4.) Type in:
debug
5.) At this point, the cursor should be sitting behind a hyphen. Type in:
If at any point you end up making a mistake typing in these commands, press CTRL+C to get back to the hyphen, and then type "q" and push enter to get back to the command prompt. To start over, type in "debug" again.
Once this step is over, you should have a file called "ZEROS" that's 4096 bytes in size.
6.) Now we need to add this file to the end of your mpeg:
type ZEROS >> "My movie.mpg"
Make sure you type in >> instead of a single > because they lead to different results.
7.) Once the command prompt returns, type:
start .
exit
and you should now have an explorer window with your newly modified mpeg, and the command prompt closed.
Posts
Right. Since your typical Windows system does not have the same tools as your typical Linux system, we'll have to improvise:
1.) Perhaps backup your movie file, just in case this doesn't work
2.) Start up the command prompt (Start -> Run -> cmd)
3.) Navigate to whatever directory you've stored your movie file in
e.g. if you've got your movie in E:\Temporary Files\Movies, then type:
4.) Type in:
5.) At this point, the cursor should be sitting behind a hyphen. Type in:
Your command prompt should show something like:
-f 100 1200 0
-rbx
BX 0000
:0
-rcx
CX 0000
:1000
-n zeros
-w
Writing 01000 bytes
-q
If at any point you end up making a mistake typing in these commands, press CTRL+C to get back to the hyphen, and then type "q" and push enter to get back to the command prompt. To start over, type in "debug" again.
Once this step is over, you should have a file called "ZEROS" that's 4096 bytes in size.
6.) Now we need to add this file to the end of your mpeg:
Make sure you type in >> instead of a single > because they lead to different results.
7.) Once the command prompt returns, type:
and you should now have an explorer window with your newly modified mpeg, and the command prompt closed.
I made a TD for iphone and windows phone!