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
16
votes
2 answers

Using mp4parser , how can I handle videos that are taken from Uri and ContentResolver?

Background We want to let the user choose a video from any app, and then trim a video to be of max of 5 seconds. The problem For getting a Uri to be selected, we got it working fine (solution available here) . As for the trimming itself, we…
android developer
  • 114,585
  • 152
  • 739
  • 1,270
14
votes
2 answers

Reverse video in android

I have recorded a video from camera in my app and saved in device storage.Now I want to reverse the video such that it plays from backwards.i.e. if video is of 10 seconds then the last frame at 10th second will become first frame and it starts…
Android Developer
  • 9,157
  • 18
  • 82
  • 139
14
votes
5 answers

Concatenate mp4 files in Android using halfninja ffmpeg

I've manage to compile halfninja ffmpeg scripts for Android NDK using NDK version r5c. (Unfortunately any attempt to compile with earlier NDK generated some error), also I'm not very knowledgeable on the whole NDK process, so it's a bit hit-n-miss…
Budius
  • 39,391
  • 16
  • 102
  • 144
13
votes
1 answer

mp4parse timelapse frame rate

I'm trying to ingest a mp4 file and make it a timelapse. It works with the code attached below. However, the output file has frame rate of 16*originalFrameRate. Since I don't intend to play it as a slow motion video I'd prefer to drop those…
Kirill Kulakov
  • 10,035
  • 9
  • 50
  • 67
12
votes
2 answers

I want to attach Pre-Rolls to videos taken on android devices

I'm using mp4parser and the videos need to be of the same kind. I was thinking of using android's media codec to decode & encode the preroll video to fit the same encoding output of the cameras (front & back) any suggestion on how this can be done…
Gorilla
  • 553
  • 1
  • 6
  • 11
11
votes
3 answers

mp4parser version conflict (compressed video has no sound)

I am using these two libraries in my project: https://github.com/HemendraGangwar/VideoTrimmingLikeWhatsapp https://github.com/fishwjy/VideoCompressor Both libraries are imported locally to my project (i.e. copied them and added them to the…
hiddeneyes02
  • 2,562
  • 1
  • 31
  • 58
9
votes
1 answer

Android : Merging/concatenating two audio files hangs up the application

I'm appending two audio file using mp4parser. Appending is done but it is very slow don't know what is the issue. On this line debugger stuck for big audio files for example approx 30 minutes audio file. Container out = new…
Bhumit
  • 338
  • 3
  • 12
9
votes
4 answers

mp4parser runs on device from Android Studio but crashes when manually installing the APK

I'm using mp4parser to merge videos. The app runs perfect when running from A.S. but if I install the app manually (transfer and run the APK) or if I run it from TestFairy, the app crashes. This started happening when I updated my Target Sdk to…
BrettStuart
  • 315
  • 4
  • 19
7
votes
1 answer

Rotate video with Mp4parser

I need to rotate a video to adjust some of my needs. I'll explain the details on the following list. I'm creating a Vine like app. I have to record video segments and then merge all the parts into just one file. I'm doing this without issue on…
Programmer Hugo
  • 135
  • 2
  • 7
6
votes
0 answers

Video Processing in background with work manager using ffmpeg

The problem comes when during the video processing user closes the application himself from the task manager then its processing stops. I am working on video file processing in android using FFMpeg, which is working perfectly but when I do close the…
6
votes
0 answers

java.io.IOException: Cannot merge AudioSampleEntry in Merging Videos using Mp4Parser

I've been working on merging two video. I'm taking the videos from the phone storage and passing them in the form of string. Then this videos are getting merged. I've seen that if I'm merging the videos that is taken from the camera then it is…
Alok
  • 8,452
  • 13
  • 55
  • 93
6
votes
2 answers

Merging mp4 clips with mp4parser makes the audio behind the video

I am developing an application that merges mp4 clips using the mp4parser library (isoparser-1.0-RC-27.jar and aspectjrt-1.8.0.jar). When two clips are merged, they become a single clip but as more clips are added to it, the output mp4 has it's audio…
Lucas Crawford
  • 3,078
  • 2
  • 14
  • 25
6
votes
1 answer

combining mpeg4 videos with mp4Parser - android yields still video

I am using the mp4Parser isoviewer-1.0-RC-35.jar to combine clips recorded with the android MediaRecorder. The clips seem to get combined correctly by listening to the audio tracks, but the video stays on one frame and the time code stays at zero…
erik
  • 4,946
  • 13
  • 70
  • 120
5
votes
1 answer

Java mp4parser to create a single .m4s fragment— invalid moov box

This use case is a service that manually encodes a series of uncompressed .wav media segments into .m4s fragments for broadcast via MPEG-DASH, using ffmpeg to compress the .wav to .aac and sannies/mp4parser to assemble the aac audio into an .m4s…
Charney Kaye
  • 3,667
  • 6
  • 41
  • 54
5
votes
0 answers

Cannot merge VisualSampleEntry error while appending videos in MP4parser

I am creating four videos with ffmpeg and then i am appending them with MP4parser. Details of four videos that i am creating with ffmpeg. 1,2 video : created using one image [-loop, 1, -i, Count_1627453922.jpg, -s, 720x1280, -vf,…
1
2 3
11 12