mp4parser

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

你离开我真会死。 提交于 2019-12-12 07:25:42
问题 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 couldn't find any good library that has permissive license, except for one called "k4l-video-trimmer" . The library "FFmpeg", for example, is considered not permission as it uses GPLv3, which requires the app that uses it to also be open sourced. Besides,

Cant append to video in Android

自古美人都是妖i 提交于 2019-12-11 13:59:06
问题 I am using an mp4 parser for appending video. My problem is that I'm not able to append videos. I am getting such errors as BufferUnderFlow Exception. Can anyone tell me where I might have made a mistake? This is my code: public class MainActivity extends Activity { Button b1; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); b1 = (Button)findViewById(R.id.button1); b1.setOnClickListener(new

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

不想你离开。 提交于 2019-12-10 13:57:06
问题 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<Movie> listMovies = new ArrayList<>(); for (String filename : sourceFiles) { listMovies.add(MovieCreator.build(filename)); } List<Track> listTracks = new LinkedList<>(); for (Movie movie : listMovies) { for (Track track : movie.getTracks()) { if (track.getHandler().equals(mediaKey)) {

Android MP4Parser cannot play video

与世无争的帅哥 提交于 2019-12-08 19:35:31
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 play the video from my gallery. Anyone have similar experience doing this? I'm testing on an HTC One running 4.4 KitKat Here's my method to merge to .mp4 clips into a single one, taken from the AppendExample from MP4Parser itself. private void createFinalOutputVideo() { CameraHelper helper = new CameraHelper(this); File outFile = helper

Android MP4Parser cannot play video

孤人 提交于 2019-12-08 05:23:38
问题 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 play the video from my gallery. Anyone have similar experience doing this? I'm testing on an HTC One running 4.4 KitKat Here's my method to merge to .mp4 clips into a single one, taken from the AppendExample from MP4Parser itself. private void

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

心已入冬 提交于 2019-12-07 10:41:11
问题 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 videos which are taken via front camera are merged as inverted. what can i do. please any one help me. this is my code to merge videos: try { String f1,f2,f3; f1 = Environment.getExternalStorageDirectory() + "/DCIM/testvideo1.mp4";// video took via back

Rotate video with Mp4parser

谁说我不能喝 提交于 2019-12-07 01:13:41
问题 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 an Android app using mp4 parser library with last version 1.0-RC-26 using the example provided on their website: here The append video example works fine if all the videos have the same orientation but I discovered some issues recording video from the

How to write metadata to mp4 file using mp4parser?

旧城冷巷雨未停 提交于 2019-12-06 12:44:39
问题 I'm using mp4parser to mux h264 and aac file which are re-encoded from orginal video file,how can I write the metadata of the original video to the new mp4 file? Or is there a common method to write metadata to mp4 file? 回答1: metadata and MP4 is a really problem. There is no generally supported specification. But this is only one part of the problem. Prob (1): When to write metadata Prob (2): What to write Prob (1) is relatively easy to solve: Just extend the DefaultMp4Builder or the

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

耗尽温柔 提交于 2019-12-05 13:14:25
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 videos which are taken via front camera are merged as inverted. what can i do. please any one help me. this is my code to merge videos: try { String f1,f2,f3; f1 = Environment.getExternalStorageDirectory() + "/DCIM/testvideo1.mp4";// video took via back camera f2 = Environment.getExternalStorageDirectory() + "/DCIM/testvideo2.mp4";// video took via front

Rotate video with Mp4parser

不问归期 提交于 2019-12-05 05:41:40
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 an Android app using mp4 parser library with last version 1.0-RC-26 using the example provided on their website: here The append video example works fine if all the videos have the same orientation but I discovered some issues recording video from the front camera so the quick solution was to set the video orientation recording on 270. The bad part on