How to parse mp4 video file?

833 views
Skip to first unread message

Rohit M

unread,
Jan 3, 2015, 3:31:02 AM1/3/15
to mp4parser-...@googlegroups.com
I am trying to parse the mp4 video file to know the frame type of each frame in the video and I want to store them in separate folder .
How can this be done...??

Sebastian Annies

unread,
Jan 3, 2015, 4:21:26 PM1/3/15
to mp4parser-...@googlegroups.com

Hi,

I assume you are talking about H264 video in an MP4 container? 
Then you might want to have a look at the isoviewer project and especially at the https://github.com/sannies/isoviewer/blob/master/src/main/java/com/github/sannies/isoviewer/NalWrapper.java class.

Best Regards,
Sebastian


Am 03.01.2015 09:31 schrieb "Rohit M" <powe...@gmail.com>:
I am trying to parse the mp4 video file to know the frame type of each frame in the video and I want to store them in separate folder .
How can this be done...??

--
You received this message because you are subscribed to the Google Groups "mp4parser-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mp4parser-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

balajik...@gmail.com

unread,
Feb 19, 2015, 12:32:58 PM2/19/15
to mp4parser-...@googlegroups.com
Hi Sebastian,

Is there any way to parse Mpeg4 video. I'm trying to generate a thumbnail image from Mp4 video using jcodec which supports only h264 not mpeg4 codec.

Please let me know if there is way to parse or decode the mpeg4 codec video.

Thanks,
Balaji


On Saturday, 3 January 2015 16:21:26 UTC-5, Sebastian Annies wrote:

Hi,

I assume you are talking about H264 video in an MP4 container? 
Then you might want to have a look at the isoviewer project and especially at the https://github.com/sannies/isoviewer/blob/master/src/main/java/com/github/sannies/isoviewer/NalWrapper.java class.

Best Regards,
Sebastian


Am 03.01.2015 09:31 schrieb "Rohit M" <powe...@gmail.com>:
I am trying to parse the mp4 video file to know the frame type of each frame in the video and I want to store them in separate folder .
How can this be done...??

--
You received this message because you are subscribed to the Google Groups "mp4parser-discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mp4parser-discussion+unsub...@googlegroups.com.

Michael Slinn

unread,
Jun 7, 2019, 5:03:01 PM6/7/19
to mp4parser-discussion
I have the same question. I could not find the referenced sample code (NalWrapper.java) in the github repo. I am under the impression (please correct me if I am wrong) that the code I want should be something like (this is Scala):

val isoFile = new IsoFile(file) // blows up
val box
= isoFile.getMovieBox
val mhb
= box.getMovieHeaderBox

This is the error message I get: "A cast to int has gone wrong. Please contact the mp4parser discussion group (2303741503)"

Do I need to call FileDataSourceImpl? If so, it is unclear to me how to structure the call.

Thanks,
Mike
Reply all
Reply to author
Forward
0 new messages