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
1
vote
1 answer

Mp4Parser audio video merged output not playing in all devices

In my android application i am downloading Facebook video and audio separately and merging it in an output file. The reason is Facebook videos URLs have no sound and audio URL is separate. I have tried using this mp4Parser for merging audio and…
Nayab
  • 112
  • 14
1
vote
0 answers

Audio-only HLS skipping with individually-made fmp4 segments

Here's my HLS playlist: chunky.m3u8 I'm able to stream that link using VLC. However I hear a tiny audio error like "skipping" in between each of the 10-second segments. Here's my initialization segment: chunky-128k-IS.mp4 And here are the…
Charney Kaye
  • 3,667
  • 6
  • 41
  • 54
1
vote
2 answers

Android - merge videos taken with front and back cameras

I am having an orientation problem when merging videos taken with front and back cameras in portrait, recorded using Android CameraX. This issue is explained here, but I am yet to find a working solution. I have tried multiple solutions, such as…
1
vote
0 answers

Android MP4parser Issue : android java.lang.IndexOutOfBoundsException: No such device

I am trying to merge audio and video using MP4parser in Android studio and cropping audio track based on video. PFB the code. Movie videoMovie = MovieCreator.build(video_url); Track videoTracks = null;// Get the video portion of the video for…
Razz
  • 87
  • 3
  • 21
1
vote
0 answers

How to merge video and audio into one file [Android Q]

I'm trying to mix a video & audio into one video file using Google M4parser, I created the necessary paths as follows : path = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Download"; audioPath = path + "/" + "audio.m4a"; …
1
vote
0 answers

Android A cast to int has gone wrong. Please contact the mp4parser discussion group (3292244048)

Error Log: java.lang.RuntimeException: A cast to int has gone wrong. Please contact the mp4parser discussion group (3292244048) Fatal Exception: java.lang.RuntimeException on MovieCreator.build() I need help Movie movieA = null; try { movieA =…
1
vote
3 answers

mp4parser - how to start using?

I want to merge multiple videos sequentially and get one video with mp4parser but can't start using it... I added in file gradle - implementation 'org.mp4parser:isoparser:1.9.27' and following the example, it is impossible to find Movie() then I…
RusyaMed
  • 151
  • 2
  • 11
1
vote
1 answer

How to obtain FPS using mp4parser?

Framerate can be calculated as FPS = framescale / timescale Timescale is easy to obtain using isoFile.getMovieBox().getMovieHeaderBox().getTimescale() But I cannot figure out where is the framescale stored within the mp4parser isobox structure.…
Michal
  • 2,078
  • 23
  • 36
1
vote
1 answer

can I merge audio (audio location "res - raw - audio.mp3" ) when recording?

I will develop an android application to combine video and audio recordings (audio as the background sound of the recording), I have read some ffmpeg and mp4parser references, can anyone help me?
keen
  • 11
  • 3
1
vote
1 answer

Convert mp4 tracks to images WITHOUT ffmpeg

I'm developing an C# tool to extract mp4 frames to images. ( Without using ffmpeg ) I use a tool named ISO Viewer 2.0.2 and i see all my mp4 video frames (145 frames for 5 seconds, each frames is called as sample) in Tracks tab. ISO Viewer 2.0.2…
Giang Nguyễn
  • 105
  • 1
  • 9
1
vote
3 answers

Trimming audio using mp4Parser. Or is there any alternative?

I am trying to trim an audio using mp4Parser. Is that possible? I tried ffmpeg which is quite time consuming. Our app does require both video and audio processing. Any suggestions on this?
user3892282
1
vote
0 answers

Can i add any independent two mp4 files in java without any corruptness or data loss?

I have tried "copy /b "C:\File.mp4" + "C:\File1.mp4" CombinedFile.mp4" windows command but not worked. I have also tried ffmpeg command but the second file got corrupted. Can any one refer me that how it work internally? On what factors merge…
1
vote
0 answers

Merge video files, in which one of them has no audio track using mp4parser

I want to merge some video files using mp4parser, in which any one of them may not have audio track. Currently, if i merge these files, audio is moving into another segment, which is wrong. This is how, i am merging files LinkedList
Manish Kumar
  • 1,095
  • 9
  • 19
1
vote
0 answers

How to detect streams and types within a media container

I have a Java servlet method that evaluates an uploaded file to determine its type and then that file is passed on to ffmpeg for processing. Tika is used to detect the type of file. Right now it seems that either Tika, or my implementation of it…
Pete Helgren
  • 438
  • 1
  • 7
  • 21
1
vote
1 answer

How to get GoPro HiLight tag in mp4 video in Android or Java

I manually added tags to mp4 video using GoPro - Quik. According to Chriki answer on superuser and GoProInfo.cpp HiLight tags are stored in box type HMMT in milliseconds of mp4 video. Path = `moov\udta\HMMT` But I didn't found any tag milliseconds…
Qamar
  • 4,959
  • 1
  • 30
  • 49