Comments (10)
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.
[deleted comment]
from mp4v2.
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.
[deleted comment]
from mp4v2.
[deleted comment]
from mp4v2.
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.
[deleted comment]
from mp4v2.
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.
[deleted comment]
from mp4v2.
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)
- MP4Info not showing information related to MJPEG Video
- Can't compile with clang
- mp4info fails to show info of the simple video taken by Android phone HOT 1
- Error when trying to compile the project mp4v2 - 2.0.0 HOT 1
- Writing tags corrupts DASH-encoded files
- Integer overflow/wraparound in \src\mp4track.cpp
- Better FileProvider API HOT 3
- Modifying tags with mp4tags -m "test" corrupts some specific MP4 files
- add compilation, gapless, and genretype tag support to mp4tags
- https://code.google.com/p/mp4v2/issues/list?can=1&q=http%3A%2F%2Flimelinx.com%2Fdswj4
- Enhancement: Fill Genre from GenreType
- "Progressive Rock" mistyped as "Progresive Rock" in src/itmf/type.cpp HOT 1
- Ability to free memory allocated by MP4GetTrackH264SeqPictHeaders function HOT 2
- Support for Track Reference Atoms HOT 1
- Import/Export mp4 tags from/to text file
- make dist fail because make doc fails HOT 2
- use of impl / private code in example utils; enumGenreType HOT 1
- Charset problem at filenames
- Generate mp4 file.Can't play by media player.
- Google Code will shut down
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mp4v2.