Chen-tao / webm

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

Incomplete files of certain sizes play while others do not #494

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am working on a project that is using the vpx library to play webm content.  
I was testing the library's ability to deal with truncated files.  I got some 
strange results.  I started with a 1.8M file.  Truncating it to 38394 bytes 
'works', as in the file plays normally until it runs out of data.  Truncating 
it to 38395 bytes causes nestegg_init to fail (so I end up getting no video at 
all) while truncating it to 39396 bytes also 'works'.  Here is what I'm seeing 
with debugging messages turned on:

Opening file: /tmp/test1.webm
0x7ff9b4114520 debug:    ctx 0x7ff9b4114520
0x7ff9b4114520 debug:    single master element 1a45dfa3 (ID_EBML)
0x7ff9b4114520 debug:     -> using data 0x7ff9b4114550 (48)
0x7ff9b4114520 debug:    element 4286 (ID_EBML_VERSION) -> 0x7ff9b4114550 (0)
0x7ff9b4114520 debug:    element 42f7 (ID_EBML_READ_VERSION) -> 0x7ff9b4114568 
(24)
0x7ff9b4114520 debug:    element 42f2 (ID_EBML_MAX_ID_LENGTH) -> 0x7ff9b4114580 
(48)
0x7ff9b4114520 debug:    element 42f3 (ID_EBML_MAX_SIZE_LENGTH) -> 
0x7ff9b4114598 (72)
0x7ff9b4114520 debug:    element 4282 (ID_DOCTYPE) -> 0x7ff9b41145b0 (96)
0x7ff9b4114520 debug:    element 4287 (ID_DOCTYPE_VERSION) -> 0x7ff9b41145c8 
(120)
0x7ff9b4114520 debug:    element 4285 (ID_DOCTYPE_READ_VERSION) -> 
0x7ff9b41145e0 (144)
0x7ff9b4114520 debug:    parent element 18538067
nestegg_init status was: -1

I started looking at the code, but that is way over my head.  Is there anything 
that can be done to more gracefully handle these files?

I'm on 64-bit debian linux, tried with tags 1.0.0 and 1.1.0.  I'm hesitant to 
include a test file because it is encrypted, and I don't know if I can disclose 
the encryption key...

thanks

Original issue reported on code.google.com by bkrah...@krahmer.com on 24 Oct 2012 at 4:26

GoogleCodeExporter commented 9 years ago
Isn't this an issue with nestegg? 

Original comment by albe...@google.com on 17 Jan 2013 at 11:27

GoogleCodeExporter commented 9 years ago
Umm, yeah, I guess.  I didn't realize that nestegg wasn't a part of webm

Original comment by bkrah...@krahmer.com on 18 Jan 2013 at 4:38

GoogleCodeExporter commented 9 years ago

Original comment by albe...@google.com on 28 Mar 2013 at 10:18