Giter Club home page Giter Club logo

Comments (10)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Possibly some issue with your input file? Here is a source code that works for 
me to retrieve track-id on an 
existing mp4 file:

#include <stdio.h>
#include <mp4v2/mp4v2.h>

int main( int argc, char** argv )
{
    if( argc != 2 ) {
        printf( "usage: %s file.mp4\n", argv[0] );
        return 1;
    }

    /* open file for modification */
    MP4FileHandle file = MP4Modify( argv[1], MP4_DETAILS_ERROR, 0 );
    if( file == MP4_INVALID_FILE_HANDLE ) {
        printf( "MP4Modify failed\n" );
        return 1;
    }

    /* fetch track id of first track */
    MP4TrackId tid = MP4FindTrackId( file, 0, NULL, 0 );
    if( tid == MP4_INVALID_TRACK_ID )
        printf( "tid=%u (FAILED)\n", tid );
    else
        printf( "tid=%u (SUCCESS)\n", tid );

    MP4Close( file );
    return 0;
}

Original comment by [email protected] on 20 Jun 2009 at 4:01

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
[deleted comment]

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Is your file already hinted? If not, why are you trying to get the hint track 
reference id? 
You are passing the track id of your audio track to a function that want the 
track id of 
an hint track.

If you don't need any hinting you can just pass MP4_INVALID_TRACK_ID as the 
hint 
track Id in MP4CopyTrack()

Original comment by damiog on 20 Jun 2009 at 9:01

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
[deleted comment]

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
[deleted comment]

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
Well if you don't know what hinted means you can just ignore it. And all your 
duration/time convention stuff is just weird. The edit list times must be in 
the movie 
timescale unit, not in the track one.
And wouldn't be easier to just copy the samples you need to the new file 
instead of 
using an edit list?

Original comment by damiog on 20 Jun 2009 at 10:28

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
[deleted comment]

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
I'm going to close this issue because it's not an issue. Sorry but this is not 
the place to seek tutorial styled help. 
It's for bugs, RFEs and such. (This is not meant to sound disparaging).

Original comment by [email protected] on 20 Jun 2009 at 11:35

  • Changed state: Invalid

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
[deleted comment]

from mp4v2.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 21, 2024
MP4CopyTrack() with applyEdits semantics to create a clip from a larger source 
works for me. Again no issue 
here. I know of no place that offers free tutorial help; in my opinion your 
best bet is to find open-source 
programs that use mp4v2 and see how they use edits to create a clip; I'm not 
aware of any that do. Sorry.

Original comment by [email protected] on 21 Jun 2009 at 2:15

from mp4v2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.