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

Android: Demux MP4 into video and audio?

I need to demux an MP4 file into video and audio to do some editing on the audio. I don't want to use FFMPEG, I've already attempted to use it once and it went horribly. How would I go about demuxing? From google searches, it seems like there isn't…
1
vote
1 answer

mp4parser won't rotate video

I have a job that is rotating and trimming video files. I do trimming the video but couldn't rotate it. I use following code snippet to rotate but the result video is the same with the source video .Also there isn't any error messeage. videoPath…
Metin Ilhan
  • 231
  • 7
  • 16
1
vote
0 answers

how to replace audio track of video android

This is my code for replacing audio. After I do so however is only getting audio. I also have an issue where some players will not play the video after the edit.Is There Any Other Way to do this?Like MediaMuxer Thanks In advance Movie m =…
1
vote
0 answers

RuntimeException: "Number of sync samples doesn't match the number of stills" while making video from images using mp4parser

I want to create a video from multiple images using mp4parser. And I found answer from this link : https://github.com/sannies/mp4parser/issues/182 I have tried it using below code. DataSource videoFile = new FileDataSourceImpl(new…
Hims
  • 233
  • 2
  • 13
1
vote
1 answer

What governs playback speed when encoding with Android's MediaCodec + mp4parser?

I'm trying to record, encode and finally create a short movie on Android (using API 16) with a combination of MediaCodec and Mp4Parser (to encapsulate into .mp4). Everything is working just fine, except for the duration of the .mp4: its always 3…
FuzzyAmi
  • 7,543
  • 6
  • 45
  • 79
1
vote
0 answers

How to play audio for the length for the video using mp4parser after muxing in android

I done audio and video merging using mp4parser library. I have problem for playing video. Merged video is playing successfully but when audio length is greater than video length then remaining time audio is play when video is stop. For example, i…
jack
  • 338
  • 1
  • 3
  • 29
1
vote
1 answer

Android N + mp4Parser error

So far I've been able to compile my app with Android N + Java 8 without any problem. But now I add the library mp4Parser and it throws this error: Warning:Exception while processing task java.lang.RuntimeException: …
Jose Gonzalez
  • 1,491
  • 3
  • 25
  • 51
1
vote
1 answer

Reading bytes from a mp4 file based on a particular start time and end time.

Is it possible to read bytes from a .mp4 file that represent a specific timespan in the video ? For example can I read the bytes that represent just the last 5 minutes of the video ? The assumption is that the video is VBR encoded. If yes is…
1
vote
1 answer

MP4Parser creates corrupt mp4

I'm using mp4parser to add two videos together in an android app, but the output is a file I can't play with my phone or my computer (Windows Media Player and VLC). This is the function i use public void MergeVideos(String[] pathsToVideos, String…
Freijlord
  • 96
  • 7
1
vote
1 answer

How to add watermark on video using mp4parser in android?

I had successfully convert recorded video into "out.h264" format and also audio into ".AAC" format using mp4parser. Now I want to implement "watermark image" on my recorded video. Is this possible with mp4parser to add watermark on video? I have…
Kanaksinh
  • 21
  • 1
  • 6
1
vote
0 answers

No audio in MP4 file - Android

I am using the MP4ParserMergeAudioVideo to add a new audio to an MP4 file. The library had said to use .wav file, if i keep a .wav file in the directory and give the name of the audiofile as example.m4a, I get a file not found exception. So I…
Kalai Arasi
  • 249
  • 1
  • 6
  • 16
1
vote
0 answers

MP4Parser Can we have Android MediaPlayer directly act as a sink?

Lets say my I have my Mp4Parser Container java object and then instead of writing to a file and then supplying the URL of this file to the Android Media Player to play this video. Container outMux = new DefaultMp4Builder().build(countVideo); …
ROCKY
  • 1,763
  • 1
  • 21
  • 25
1
vote
1 answer

How do I know the structure about avc3 of mp4 box?

I've got some tools of analyzing mp4 stream such as Mp4 Explorer, MP4 Reader and mp4viewer(by python). None of them can show what structure avc3 has But I can see avc1. So I've been looking avc3 from ISO-ISE 14496-12, QuickTime format(from apple's…
jay
  • 87
  • 1
  • 8
1
vote
0 answers

MP4 parser takes a long time to merge video files

I need to pause audios while recording. So I'm using mP4 parser to merge the audios of .3GPP format. If the audios are less than 1 second, it gets merged. But if the audio size exceeds more than 1 second, it doesn't get merged. Here is my…
1
vote
1 answer

Android MP4Parser cannot play video

I'm attempting to append a simple, 3 second outro video to an existing video using MP4Parser, but for some reason I cannot play the video after the merge happens. I'm getting the infamous "Sorry, this video cannot be played" error when trying to…
Jade Byfield
  • 4,668
  • 5
  • 30
  • 41