mp4

Is there a JAVA API for extract MP4 Metadata

人盡茶涼 提交于 2019-11-29 05:18:15
I want to be specific as to what I am asking. I am not asking to modified any MP4 files, just extract metadata such as Width and Height and bitrate and encoding and this is not in the MP3 tags. I have tested Xuggle which works, but I need to have a library that does not use JNI or any native code. I already looked into MP4Parser, and Apache Tika, and they both does not extract metadata, just tag info or alter the file. Is there such java lib? Churk I actually found what I was looking for using Mp4Parser here is a simple lines of code to get what I wanted using Mp4Parser FileChannel fc = new

Using jcodec SequenceEncoder

时光总嘲笑我的痴心妄想 提交于 2019-11-29 03:33:36
问题 I need to create video from images, I have seen jcodec and I think it is what I need: http://jcodec.org/ How do I add jcodec to my project? I have seen there is a version for android. Correct me if I am wrong, but I added jcodec-0.1.5.jar to my project under the libs folder. Then added SequenceEncoder.java and BitmapUtil.java from jcodec-android-0.1.7.zip to my package but when I add: public void encodeImage(Bitmap bi) throws IOException { encodeNativeFrame(BitmapUtil.fromBitmap(bi)); } It

How to add a MOOV atom in a mp4 video file

青春壹個敷衍的年華 提交于 2019-11-29 00:50:25
问题 I am working on live device to server streaming in android. I am able to send data in bytes on server but when i play that file during recording on server VLC say that MOOV atom not found. After a lot of workaround i found that MOOV atom of a mp4 file generates in the end. But i have to play that file on server while recording means live. I go through the source code of SPYDROID and SIPDROID but non of them is working. I tried to add move atom on serverside using FFMPEG but didn't get any

Unable to play MP4 video file from mainBundle

狂风中的少年 提交于 2019-11-28 23:05:21
So I'm trying to play a simple intro animation video file that I've dragged into my project in XCode and therefore should be able to play from my mainBundle, right? With this code: NSURL *urlString = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"introvideo" ofType:@"mp4"]]; MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:urlString]; [player play]; I get this error message: * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSURL initFileURLWithPath:]: nil string parameter' Any help would be great! This

Color Correcting MP4/Webm videos

六月ゝ 毕业季﹏ 提交于 2019-11-28 21:36:28
问题 I have a large video that features some animations too complex/long for other methods of embedding (gif, png sequence, etc.) and we are running into an issue with the colors in the video. Essentially we are including the background of the web page as part of the video in order to prevent the appearance of any edges on the video when it plays. We are trying to get the gradient background on the video to match that on the webpage, but the colors are WAY off. Are there any recommendations on how

How to load videos from assets folder? (to play them with VideoView)

て烟熏妆下的殇ゞ 提交于 2019-11-28 21:17:14
I need to open a mp4 video from the assets folder and play it with VideoView. I tryed with these two options, but none of them works.... mVideoView.setVideoPath("file:///android_asset/videos.mp4"); mVideoView.requestFocus(); mVideoView.start(); and... String uriPath = "file:///android_asset/videos.mp4"; Uri uri = Uri.parse(uriPath); mVideoView.setVideoURI(uri); mVideoView.requestFocus(); mVideoView.start(); These options didn't works, but if I try to open the video from the SDCARD it works perfectly, then, the problem is when I'm trying to load the video from the assets folder. What I'm doing

web企业mian试

℡╲_俬逩灬. 提交于 2019-11-28 20:58:12
├─企业面试题精讲①-node.js及项目工程化 │ 第01集node编写代码及实现遍历文件.mp4 │ 第02集为什么学node,node版本升级及NVM.mp4 │ 第03集模块化差异及图片上传服务器的过程.mp4 │ 第04集token及node框架中的MVC.mp4 │ 第05集工程化的按需加载及Git冲突解决.mp4 │ 第06集设计模式及node中的npm.mp4 │ 第07集Webpack后端黄精的搭建及typescript.mp4 │ ├─企业面试题精讲②-reactJS常见问题讲解 │ 第01集 redux中间件原理及componentWillReceiveProps调用时机.mp4 │ 第02集 react虚拟DOM以及性能优化和webpack转化JSX代码.mp4 │ 第03集 setState调用以及遇到的坑和refs作用.mp4 │ 第04集 ref函数、高阶组件、函数组件、hooks.mp4 │ 第05集 生命周期发送ajax、ssr、redux-saga以及react、jQ、vue存在一个项目中.mp4 │ 第06集 组件是什么?避免ajax数据重新获取;react-router原理;reselect是做什么的?.mp4 │ 第07集 什么情况使用异步组件?XSS攻击;immutable.js和redux的最佳实践.mp4% │ └─企业面试题精讲③

Safari <input type=“file” accept=“video/*”> ignores mp4 files

余生长醉 提交于 2019-11-28 20:49:06
问题 I am using an HTML file input like this: <input type="file" accept="video/*"> to allow my users to upload videos to my site. This works as expected in all modern browsers (only permitting the user to select video files) except Safari. From what I can tell Safari seems to interpret the accept="video/*" attribute as accept="*.mov" ignoring most, if not all, other video formats / extensions (webm, m4v, etc). Any suggestions on how to get the select dialog to allow only common video filetypes

What is the proper way to serve mp4 files through rails to an Ipad?

拈花ヽ惹草 提交于 2019-11-28 19:46:23
We're having trouble serving mp4s that will play on an ipad using a default rails 3 app. The mp4 is served correctly when viewing the route in chrome and other browsers on a desktop. Here is our code: file_path = File.join(Rails.root, 'test.mp4') send_file(file_path, :disposition => "inline", :type => "video/mp4") We hit 0.0.0.0:3000/video/test.mp4 to view the video and are presented with cannot play icon on the ipad. We've tried modifying various headers "Content-Length", "Content-Range", etc but they don't seem to affect the end result. We've also tried using send_data to some extent i.e.

How to compress mp4 video using MediaCodec Android?

こ雲淡風輕ζ 提交于 2019-11-28 19:34:43
In my Android app, I want to compress mp4 video by changing its resolution, bitrate. I don't want to use FFmpeg (because I don't want to use NDK), so I decided to use MediaCodec API. Here are my logical steps: Extract video file with MediaExtractor, then decode data. Create new encoder with my new resolution, bitrate and encode data. Using MediaMuxer to create a new mp4 file. My problem is: I don't know how to setup the connection between output of decoder and input of encoder. I can decode the video to a Surface or encode a new video from a surface. But I don't understand how to connect them.