mp4

Convert WebM as MP4 on the fly

余生长醉 提交于 2019-12-05 04:33:31
问题 I am trying to convert a remote WebM file on the fly to MP4. This should happen without writing anything to disk. Furthermore it would be great to be able to stream out results as soon as possible. This is my flask function without the actual conversion, so you get a idea of the streaming. @app.route("/stream/mp4") def as_mp4(): url = "http://video.webmfiles.org/big-buck-bunny_trailer.webm" r = requests.get(url, stream=True) def stream(): # convert it here for chunk in r.iter_content(chunk

怎么将下载的qsv格式转换成mp4格式

徘徊边缘 提交于 2019-12-05 04:25:44
现在很多人都会使用爱奇艺视频客户端看视频的。因为爱奇艺视频里面有很多的优秀的视频资源。不仅可以在线看视频而且可以使用客户端播放。但是如果是坐火车那种情况就不能在线观看了。所以只能把视频下载到本地然后传到手机看了。但是爱奇艺下载的视频是qsv格式的文件,不能在手机上播放(手机爱奇艺也不行),其他的软件更不行了。那么,下面就教大家将下载的qsv格式转换成mp4格式吧。 1、首先在爱奇艺客户端中下载几部视频文件。因为我是演示给大家看,所以需要先下载视频的。进入视频下载页面之后选择视频的剧集、清晰度和保存位置,然后点击下载即可。 2、之后就需要下载安装一款qsv视频格式转换器了。直接在迅捷视频官网中把 迅捷视频转换器 下载到桌面上。然后点击软件中的立即安装即可,等待联网安装完毕就可以在桌面上看到快捷方式了。 3、然后就是打开迅捷视频转换器,可以看到软件主界面中有很多的功能区域。因为是需要把下载的qsv格式转换成mp4格式,所以就只能选择视频转换功能了。然后点击进入其中就行了。 4、然后就是把下载的qsv格式视频添加到软件当中。点击软件顶部的添加文件或者点击添加文件夹把qsv视频导入到软件里面。或者可以选择文件然后拖到软件里面也能添加的。 5、然后就是设置转换之后的文件格式了。在下面的输出格式中设置输出文件格式为mp4视频格式。mp4视频的分辨率为默认设置的原视频分辨率

Android - Different ways of playing video

故事扮演 提交于 2019-12-05 04:21:14
问题 I just came across the limitation of VideoView of not being able to play mp4 video files that are wider than 320 pixels. I was wondering how can we overcome these limitations. I am trying to make my app as forgiving as possible, so other than using VideoViews is there another way to play these mp4 videos? Chris 回答1: I am not aware of a 320px wide limit on VideoView , though I haven't tried it. You can use MediaPlayer and a SurfaceView to play back videos. In fact, that's pretty much all

Google Chrome does not want to play mp4 using mediaelement.js

可紊 提交于 2019-12-05 04:09:00
I'm using the latest mediaelement.js on my website to play html5 video. There is something strange in Google Chrome. He plays one video, but doesn't want to play the other video in mp4 format and doesn't fallback to webm. Both videos were converted with ffmpeg with this params: ffmpeg -i input.mov -acodec libfaac -ab 96k -vcodec libx264 -vpre slower -vpre main -level 21 -refs 2 -b 345k -bt 345k -threads 0 -s 640x360 output.mp4 Besides, the first video plays normally without using mediaelement.js library in mp4 format and the second one turns into webm format. Sample pages from http://random

HTML5 video formats - compatibility

让人想犯罪 __ 提交于 2019-12-05 04:08:32
So, I'm building a website on which users can upload an watch videos. I'm using the standard HTML5 video player ( <video...> <src>... ) Currently, I use multiple sources: MP4, OGG and WEBM, for cross-browser compatibility Due to the fact that maintaining three formats is both CPU intensive (converting) as well as eating away precious disk space, I started searching the need to find out whether it's really needed to support this three formats According to the chart I found on Wikipedia ( http://en.wikipedia.org/wiki/HTML5_video ), OGG and MP4 should be sufficient, as all browsers seem to be

Unable to store pcm audio in .mp4 container file

女生的网名这么多〃 提交于 2019-12-05 01:36:16
Is it possible to store a pcm audio file into .mp4 file? I used ffmpeg command "ffmpeg -i tempA.wav -acodec copy temp.mp4" but unable to store it in mp4 container file. Input #0, wav, from 'tempA.wav': Duration: 00:01:36.51, bitrate: 128 kb/s Stream #0.0: Audio: pcm_s16le, 8000 Hz, 1 channels, s16, 128 kb/s [mp4 @ 0x7d70e0] Tag [1][0][0][0]/0x00000001 incompatible with output codec id '65536' Output #0, mp4, to 'temp.mp4': Stream #0.0: Audio: pcm_s16le, 8000 Hz, 1 channels, 128 kb/s Stream mapping: Stream #0.0 -> #0.0 Could not write header for output file #0 (incorrect codec parameters ?)

Convert mp4 to webm with transparency?

空扰寡人 提交于 2019-12-05 00:47:08
问题 I know how to convert mp4 to webm with ffmpeg: ffmpeg -y -i me939371029.mp4 -r 30 out3.webm But I'd like to use webm transparency. That guide uses Blender, but Blender's a desktop tool that's not easily automated and only outputs PNGs that must be converted to video. I'd like a command line app that accepts video in, a color, and a video out. E.g.: some-app -i video.mp4 -transparent ff0000 -o video.webm I'd be surprised if something like this wasn't already in ffmpeg, but I can't seem to find

Safari will not play mp4 over HTTPS

你说的曾经没有我的故事 提交于 2019-12-05 00:24:01
问题 I have a file, sample.html, which contains only the following code: <html> <body> <video width="600" autoplay loop poster="placeholder.jpg"> <source src="sample.mp4" /> </video> </body> </html> The mp4 file referenced is the one downloaded from Apple: http://support.apple.com/kb/HT1425 When I use Safari to access my page via http://myserver.com/sample.html the video plays without problem. When I use Safari to access my page via https://myserver.com/sample.html only the placeholder image is

Stream MP4 Video From Seek Position in ASP.NET

戏子无情 提交于 2019-12-04 21:44:59
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 convert approx time interval to bytes as seek will start via bytes. double total_duration = Convert

How to write metadata to mp4 file using mp4parser?

允我心安 提交于 2019-12-04 21:42:09
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? 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 FragmentedMp4Builder on your own and override the protected ParsableBox createUdta(Movie movie) { return null; }