jazzkid / mp4parser

Automatically exported from code.google.com/p/mp4parser
0 stars 0 forks source link

Unable to parse m4v file, and then corrupted when trying to write to it. #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've come across a problem using the ISOParser. I've encoded a DVD to a .m4v 
file. I've done this using handbrake (http://handbrake.fr/) with the "AppleTV 
2" preset. So it has two audio tracks one of them a AC3 copy of the DVD's 
audio. I've also added in chapter information. The ripped DVD file at this 
point is working fine and has full chapter information.

Now I attempt to parse it with the ISOParser so I can update it with iTunes 
metadata. However I get lots of parsing errors from 
SampleDependecType.getSampleCount(), which is unable to find the Sample size 
box.

It prints the message "Couldn't find Track Run Box. Trying to determine sample 
count by looking up Sample Size Boxes".

I'm running the SVN version (revision 145). 

Any help with this would be much appreciated, let me know if their is anything 
I can do to help.

Original issue reported on code.google.com by jp.stanf...@gmail.com on 30 May 2011 at 4:55

GoogleCodeExporter commented 8 years ago
Had another look at this and is seems errors are not causes by parsing the 
ripped .m4v file. It's when I add tags to it using the parser and attempt to 
write it back. It all goes wrong and corrupts the file.

It does work for files witch are converted to m4v from avi using handbrake, but 
not the ones I've converted from DVD. In both cases I used the "AppleTV 2" 
preset.

Their seems to be two problems here, first off is that the file gets corrupted.

The second problem is that the parser logs errors, but does not fail. This 
means I have no way of detecting a problem occured. It would be much better if 
it through an exception instead. That way I would not delete the original file 
thinking it had been updated correctly and replace it with the corrupted one.

I'll do some more digging and try work out exactly when things went wrong.

Original comment by jp.stanf...@gmail.com on 1 Jun 2011 at 8:13

GoogleCodeExporter commented 8 years ago
can you give me a small (or big - whatever) sample of such a file? 
That would help a lot!

Original comment by Sebastian.Annies on 24 Jun 2011 at 2:58

GoogleCodeExporter commented 8 years ago
The example I have is probably too big. It's about 800Meg+, I'll try create 
some smaller ones. I suppect they will still be pretty big though. Whats the 
best way to get them to you?

Original comment by jp.stanf...@gmail.com on 27 Jun 2011 at 2:15

GoogleCodeExporter commented 8 years ago
dropbox or one of the one click hosters?  rapidshare, uploaded or something 
similar.

Original comment by Sebastian.Annies on 27 Jun 2011 at 2:22

GoogleCodeExporter commented 8 years ago
ping

Original comment by Sebastian.Annies on 14 Jul 2011 at 9:54

GoogleCodeExporter commented 8 years ago
closing issue - no response

Original comment by Sebastian.Annies on 27 Jul 2011 at 1:43