Questions tagged [mp4parser]

Provides a Java API for parsing MP4 files.

Provides a Java API for parsing MP4 files.

The isoparser API can read and write the MP4 file structure. It is a low level tool dealing with the so called boxes but it is as well as dealing with structures like tracks and movies.

The Iso Viewer helps to visualize the MP4 box structure. It is available as a Java Webstart application and as well as download.

The project home is https://github.com/sannies/mp4parser

Typical tasks for the MP4 Parser are:

  • Muxing audio/video into an MP4 file
  • Append recordings that use same encode settings
  • Adding/Changing metadata
  • Shorten recordings by omitting frames
172 questions
5
votes
0 answers

Creating movie from files by adding track using com.googlecode.mp4parser with with memory limitations?

I have a audio recording in multiple files. I am creating one continues audio file using com.googlecode.mp4parser:isoparser:1.0.2 library. Below is my code : String mediaKey = isAudio ? "soun" : "vide"; List listMovies = new…
Prashant
  • 4,474
  • 8
  • 34
  • 82
5
votes
1 answer

Set metadata to mp4

I encode video with help of MediaCodec and MediaMuxer. As result I have mp4 video file. How can I set metadata (creating time) to this mp4 file? MediaMetadataRetriever can only read metadata, but not change. I don't want to use ffmpeg. I tried…
danik
  • 796
  • 9
  • 17
5
votes
4 answers

How to merge audio and video file in android

Thanks for the great mp4parser lib, i have few queries related to audio video muxing. We used the below code in android and tried, but we are not getting the expected output, We have kept a working mp4 file in the specific directory and trying but…
Naruto
  • 9,476
  • 37
  • 118
  • 201
5
votes
1 answer

how to merge the mp4 videos using mp4parser which are taken from both front and back camera alternatively

i am developing an app to merge the n number of videos using mp4parser.The videos which are to be merged are taken in both front camera and back camera. if i merge these videos into single , it is merging all videos fine, but the alternative…
Grace Venkat
  • 189
  • 1
  • 10
5
votes
1 answer

Rotate video with mp4parser according to the camera used

Basically I would like to rotate video, depending on which camera was used to take it. Front camera is mirrored with 90 degrees, whereas back camera is displayed properly. Currently it will set Matrix according to the first clip. If the first clip…
Torsten Ojaperv
  • 1,014
  • 17
  • 24
5
votes
2 answers

Clipping mp4s with mp4parser. Can't get past timeCorrected with SyncSample

I am writing an Android app and I have a bunch of 5-15 second .mp4 files that I want to clip. I have been trying to use Sebastian Annies' mp4parser to do so, following the example code given here: ShortenExample. Here is the code I am using…
jshaughnessy
  • 63
  • 1
  • 6
5
votes
2 answers

Issue in Cutting Multiple clips from a Movie with mp4parser Library

I am using mp4parser Library for cutting multiple clips from a recored video. It is working fine If I cut one part from the video. But when I try to cutt multiple clips from video only 1st clip is proper cut. Other are of just 0 or 1…
Ahmed Nawaz
  • 1,634
  • 3
  • 21
  • 51
5
votes
1 answer

Combine Mp4s using mp4parser on Android

I was just wondering if anybody knows how to take an mp4 audio file and overlay it onto an mp4 video file using mp4parser on Android. I have been able to append one video with another, now I just need to overlay a raw mp4 that I have over the…
Matt Kula
  • 268
  • 2
  • 8
4
votes
1 answer

Is there any way to trim video except using FFMPEG and MP4Parser?

I have used FFMPEG for video trimming but it's taking too much time for video processing. String[] complexCommand = {"-ss", "" + startMs / 1000, "-y", "-i", yourRealPath, "-t", "" + (endMs - startMs) / 1000,"-vcodec", "mpeg4", "-b:v", "2097152",…
Akash Patel
  • 3,091
  • 3
  • 15
  • 23
4
votes
2 answers

Using different versions of same library - More than one file was found with OS independent path 'builddef.lst'

The problem i am trying to trim and compress a video using two libraries: Silicompressor and k4l-video-trimmer. the problem is both libraries use mp4parser but different versions of it. k4l-video-trimmer is using version 1.1.20 as a dependency in…
M.Nik
  • 81
  • 1
  • 8
4
votes
0 answers

Combine / merge / mix multiple audio files with MP4Parser on Android

I have two MP4 audio files and one MP4 video file. I need to combine them to reproduce the video and the two sounds at same time (Parallel, Not concatenate), in order to get an only MP4 file. For example, I have an MP4 audio file with voice, another…
JuGon_
  • 41
  • 3
4
votes
0 answers

How to merge multiple audio files at specific time to a video file in android?

What I want to do is merging multiple audio files to video file at specific time in my android project. For example, having two audio files: a1 with 5 seconds length, a2 with 5 seconds length and video V1 with 20 seconds length. So I want to merge…
UmbalaAZ
  • 165
  • 1
  • 1
  • 11
4
votes
0 answers

crash app on MP4 video clip merging

I am using MP4Parser to to combine two MP4 video clips but I got exception java.lang.RuntimeException: No box object found for ftyp at com.coremedia.iso.PropertyBoxParserImpl$FourCcToBox.invoke(PropertyBoxParserImpl.java:187) …
kokabwaqas
  • 87
  • 7
4
votes
0 answers

Rotate and append videos with mp4parser

I would like to append several video files from the camera through mp4parser. Unfortunately, in the same fragment, despite the fact that I try to change the OrientationHint of the media recorder when changing camera, only the first one seems to…
4
votes
0 answers

mp4parse on Android error - MovieCreator.build() : "java.lang.RuntimeException: No box object found for ftyp"

i'm using mp4parser lib. Error at MovieCreator.build(new FileInputStream(f1).getChannel()) with exception : RuntimeException: No box object found for ftyp . Plz help me!
Tony
  • 41
  • 5
1
2
3
11 12