momo0853 / mp4v2

mp4v2 for android
Other
19 stars 20 forks source link

unable to parse mp4 if it contains mp3 audio #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. extract a mp3 audio track from a mp4 file
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

MP4ERROR: GetSampleFile: invalid stsd entry

thats because the library looks for "*.dataReferenceIndex" in
trak.mdia.minf.stbl.stsd which is not present at all.

Original issue reported on code.google.com by s....@gmx.net on 21 Feb 2009 at 8:30

GoogleCodeExporter commented 8 years ago
Is it possible to provide a sample media file that contains mp3 in an mp4 
container?

You could use mediafire or another hosting service to put the file on.

Personally I've never seen mp3 in mp4.

Cheers, Ed.

Original comment by eddygroe...@gmail.com on 15 Mar 2009 at 10:43

GoogleCodeExporter commented 8 years ago
If you are still looking for samples, the l3_* series at
ftp://mpaudconf:adif2mp4@ftp.iis.fhg.de/mpeg4audio-conformance/compressedMp4/ 
is the
mp3on4 conformance suite. 

Original comment by alex.con...@gmail.com on 4 Jul 2009 at 9:33

GoogleCodeExporter commented 8 years ago

Original comment by eddygroe...@gmail.com on 13 Jul 2009 at 11:37

GoogleCodeExporter commented 8 years ago
I'm downloading the l3_* series now. Is there one in particular that I should 
be looking at?

What is your suggestion for the following code from mp4track.cpp:

    MP4Integer16Property* pDrefIndexProperty = NULL;
    if( !pStsdEntryAtom->FindProperty( "*.dataReferenceIndex", (MP4Property**)&pDrefIndexProperty ) ||
        pDrefIndexProperty == NULL )
    {
        throw new MP4Error( "invalid stsd entry", "GetSampleFile" );
    }

?

Original comment by eddygroe...@gmail.com on 13 Jul 2009 at 11:55

GoogleCodeExporter commented 8 years ago
I'm not seeing the issue when running the following command:

./mp4file --dump ~/mp3inmp4/l3_10104.mp4

There is a dataReferenceIndex being found.

Original comment by eddygroe...@gmail.com on 14 Jul 2009 at 12:01

GoogleCodeExporter commented 8 years ago
I see three files with issues, none of which are complaining about the 
dataReferenceIndex.

./mp4file --dump ~/mp3inmp4/l3_* | grep -C1 ReadAtom
 type mdat (mdat)
ReadAtom: invalid atom size, extends outside parent atom - skipping to end of 
"meta" "" 2020440414 vs 
3483
Dumping /Users/egroenen/mp3inmp4/l3_10207.mp4 meta-information...
--
 type mdat (mdat)
ReadAtom: invalid atom size, extends outside parent atom - skipping to end of 
"meta" "" 2020440414 vs 
3483
Dumping /Users/egroenen/mp3inmp4/l3_10501.mp4 meta-information...
--
 type mdat (mdat)
ReadAtom: invalid atom size, extends outside parent atom - skipping to end of 
"" "????" 4295072562 vs 
122998
Dumping /Users/egroenen/mp3inmp4/l3_20244.mp4 meta-information...

Original comment by eddygroe...@gmail.com on 14 Jul 2009 at 12:13

GoogleCodeExporter commented 8 years ago
Unable to reproduce, no further info from OP.  OP, if this is still an issue 
please comment so I can reopen and investigate.  

Thanks.

Original comment by kid...@gmail.com on 23 Jul 2010 at 10:12