mp4

h264格式的flv和mkv无损转换成mp4的方法

ぃ、小莉子 提交于 2019-12-06 22:57:48
现在很多flv和mkv视频都是采用的h264封装,移动设备往往并不支持这些格式的文件,但却对h264封装的mp4支持良好。因此,为了视频能在电脑和移动设备间共享,我通常会将其转换成h264封装的mp4文件。 由于视频转码非常耗时间和cpu,如果flv和mkv本来就是采用的h264封装,完全不需要转码,只需要把h264视频和音频文件分离出来,重新混流一次即可,十几秒内即可完成,非常快速,并且由于没有转码操作,也避免了转码过程的画面损失。 下面我就介绍几种将h264格式的flv和mkv无损转换为mp4的方法。 一、通过ffmpeg转换mkv文件 ffmpge( 点击下载 )可以非常快速的实现h264视频的分离和混流,并且是命令行的操作,也没有什么参数需要设置,非常适合批量转换: ffmpeg.exe -i input.mkv -y -vcodec copy -acodec copy output.mp4 要实现批量转换,可以直接用这个批处理文件: for %%i in ( *.mkv ) do ffmpeg.exe -i "%%i" -vcodec copy -acodec copy " %%~ni.mp4 " 二、通过FlvExtract + mp4box转换mkv文件 这个方法本身也支持转换flv文件,但是ffmpeg貌似对flv的支持不够好,很容易转换失败。对于flv文件

Unable to Save Video to Camera Roll (Objective C)

微笑、不失礼 提交于 2019-12-06 19:40:28
So I've been trying to accomplish this for quite some time now, but unfortunately none of the solutions posted on stack, or the ones I tried to write myself seem to work. I am building an application that allows users to take pictures and videos, and other users to save these down. I am using AWS services to save the content. Although the returned URL using NSLog, shows me the video when copy/pasting it to a browser, it refuses to save to the camera roll. Saving pictures however works fine. So far I tried the following: -(void) imagePickerController:(UIImagePickerController *)picker

How to Merge Multiple MP4 Videos files in single file

本秂侑毒 提交于 2019-12-06 16:31:43
I need to merge the multiple MP4 videos file to a single file using java. Can any one tell me how to merge videos. Your help would be appreciated. Since you do not mention format it is hard to give advice, but for mp4 this seems to be a good alternative. Even includes example of merging files. Code taken from link: MovieCreator mc = new MovieCreator(); Movie video = mc.build(Channels.newChannel(AppendExample.class.getResourceAsStream("/count-video.mp4"))); Movie audio = mc.build(Channels.newChannel(AppendExample.class.getResourceAsStream("/count-english-audio.mp4"))); List videoTracks = video

VLC stream to MP4 WEBM and Flash

时光毁灭记忆、已成空白 提交于 2019-12-06 14:29:31
I am trying to stream video from a IP Cam to my my Wordpress site. I would like my stream to be available via common devices Windows, Mac, Android and IOS. Currently I am using VLC to stream,but I can only get a flash stream to work but I would like to do FLV, MP4 and webm. What player should I use to display the MP4 and webm video on the site? Also I don't think the calls to VLC are correct cause I can't open the MP4 and webm stream in VLC on another computer, but I can open the flv stream. VLC Script: cd "C:\Program Files (x86)\VideoLAN\VLC" vlc -vvv -I dummy http://IP/cgi/mjpg/mjpg.cgi

如何把mov格式转换为mp4格式

北城余情 提交于 2019-12-06 13:53:14
可能很多使用过Mac系统的朋友都应该或多或少是了解MOV视频格式的。MOV视频格式是Mac自带录屏软件Quick Time的默认输出视频格式。所以在Mac上的兼容性肯定是很好的。但是到了Windows上就不一样了。早期Windows用户使用MOV视频文件时甚至出现了打不开的尴尬境地。所以针对这一问题只有一个方法可以解决,那就是把mov格式转换为mp4格式。那应该怎么把mov格式转换为mp4格式呢?请看下方的教程吧。 1、首先就是安装专门转换MOV视频格式的视频格式转换器了。可以在迅捷视频官网中下载安装程序,然后在线安装软件。不过在安装之前需要选择安装软件的位置,不然会默认安装到C盘中。 2、软件安装完成后就需要把MOV格式的视频文件导入到软件里面了。点击软件中的添加文件按钮把需要转换的MOV视频格式导入到软件当中。当然也能选择添加文件夹或者拖拽文件导入软件内。 3、然后就是设置输出文件的保存路径了。点击软件中的更改路径按钮之后在路径选择框中选择桌面为保存MP4视频的地址。当然还可以复制地址到路径框中也有效。然后点击打开文件夹进行确认。 4、然后就是设置输出文件的格式了。点击软件的输出格式中的视频格式,然后选择MP4格式。之后就需要选择MP4视频的分辨率大小。点击选择默认视频分辨率大小就行。并不需要进行任何的修改。 5、最后就可以把mov格式转换为mp4格式了

Stream MP4 Video From Seek Position in ASP.NET

北城余情 提交于 2019-12-06 13:16:50
问题 I am facing problem while streaming mp4 video from seek position. Its streaming properly from start. First problem is while mp4 video is streaming via jw player flash player. When user click on time bar to start streaming mp4 video from any other part of video, jw player will send start param along with time information e.g http://[url]/stream/mp4.ashx?file=Madagascar3-trailer-48861c.mp4&start=53.71 So jwplayer send time interval to seek mp4 streaming from. I am using the following code to

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

Android - Playing Mp4

风流意气都作罢 提交于 2019-12-06 12:20:40
问题 I am trying to play video files from http urls in my app. Why is that my app plays only certain mp4 files (I tried 512k mp4 and it worked), and doesn't play some others? Here's the snippet of my code: mVideoView.setVideoPath(myVideoURL); mVideoView.setMediaController(new MediaController(this)); mVideoView.seekTo(currentPosition); mVideoView.requestFocus(); Thanks Chris 回答1: Make sure your mp4's aren't DRM'd, and that they're not wider than 320 pixels (videoView will not scale them for you).

Export HTML5 blob video to MP4

笑着哭i 提交于 2019-12-06 12:06:30
I am trying to use Chrome's screen sharing feature to make a screen recorder and save the video in MP4 format. However, I have no idea how I do this. The demo is at https://figgycity50.kd.io/screencap.html (include https!) and the code is: <video autoplay></video> <button>start</button> <script> navigator.getUserMedia = navigator.webkitGetUserMedia || navigator.getUserMedia; var stream = null; button = document.querySelector("button"); function start(e) { // Seems to only work over SSL. navigator.getUserMedia({ video: { mandatory: { chromeMediaSource: 'screen', maxWidth: 1280, maxHeight: 720 }

How to read information from .3gp and .mp4 using ffmpeg-php?

故事扮演 提交于 2019-12-06 09:52:45
I have a bit of a problem with ffmpeg-php. I'm trying to get some information from video files and it works pretty fine with file formats like .avi, .mpg or .flv but when I try to use .3gp or .mp4 in: $movie = new ffmpeg_movie('path/to/file/test.3gp'); I get error like this : ffmpeg_movie::__construct() []: ISO: File Type Major Brand: 3gp5 or ffmpeg_movie::__construct() []: ISO: File Type Major Brand: mp42 I installed ffmpeg-php on WAMP using instructions found here: How to install FFMpeg in WampServer 2.0 (Windows XP) I need those information to send them to ffmpeg using exec(). Anyone could