mp4

Can I have a video with transparent background using HTML5 video tag?

我的未来我决定 提交于 2019-12-17 08:30:24
问题 We filmed a spokesperson on a green screen and have the video files ready in multiple formats. With Flash we could use the wmode transparent within the param and embed tags, but is there something similar to this with the video and source tags in HTML5? Is it even possible to properly save .m4v or .ogv videos so that we can play these files with transparent backgrounds on our browsers? Thanks 回答1: Yes, this sort of thing is possible without Flash: http://hacks.mozilla.org/2009/06/tristan

Reading mp4 files with PHP

﹥>﹥吖頭↗ 提交于 2019-12-17 06:13:40
问题 I'm trying to read mp4 file with PHP and what I'm doing now is this: <?php header("Content-Length: filesize"); readfile('file.mp4'); ?> but this way I can't skip or even go back until the video is not loaded 100%. Of course when I read directly from the file (video.mp4) everything goes well. Thanks. 回答1: You need to implement the skipping functionality yourself in PHP. This is a code snippet that will do that. <?php $path = 'file.mp4'; $size=filesize($path); $fm=@fopen($path,'rb'); if(!$fm) {

Post processing in ffmpeg to move 'moov atom' in MP4 files (qt-faststart)

淺唱寂寞╮ 提交于 2019-12-17 03:38:10
问题 Is it possible to run ffmpeg from the command line which will either place the 'moov atom' metadata in the beginning of the MP4 file or run the qt-faststart as a post processing operation in ffmpeg so the generated file is stream-able through the internet? I can of course run it as a separate command, but would prefer it to be something as an option within ffmpeg, or as part of a post conversion, command line option when converting the video files via ffmpeg Edit 1 http://ffmpeg.org/ffmpeg

Another: Force Chrome to fully buffer mp4 video

不羁岁月 提交于 2019-12-17 01:07:27
问题 I've seen a few threads about this, but with no answers, so I thought I'd add another to the grave yard of polluted youtube related pages. I've got a 100MB mp4 video that needs to be fully downloaded by the browser, However theres no event that fires when its been fully downloaded, and Chrome seems to stop buffering any more of the video until the current video time has almost reached the end of the buffer, then it requests more. How can I get the browsers to fully download the video and

WebView shouldOverrideUrlLoading Wont Play Video

末鹿安然 提交于 2019-12-14 04:23:17
问题 My app displays a webpage using a WebView. I want the user to be able to click on a link to a video, and the video be played in landscape mode. Where I am now, the video doesn't even play?? @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.mnwv_main); myWebView = (WebView) findViewById(R.id.webview); myWebView.getSettings().setJavaScriptEnabled(true); myWebView.getSettings().setPluginsEnabled(true); myWebView

Specify content-type for documents uploaded in Magnolia

五迷三道 提交于 2019-12-13 19:19:53
问题 We have uploaded an mp4 video file into our Magnolia DMS, which fails to play on Safari (Mac/iPad). Investigation shows that the Content-Type returned by Magnolia is "application/octet-stream" for the request. When serving the file through Tomcat directly, the correct Content-Type "video/mp4" is returned and video playback works. How can we configure the content-type to be returned in Magnolia? We know the content-type is a function of the request (e.g. if we add ".jpg" to the URL the type

html5 video not playing within Safari on Windows

故事扮演 提交于 2019-12-13 19:09:09
问题 I'm trying to play a HTML5 video in safari on my local server but currently it isn't working properly. Here's the issue: I have the code: <video width="580" height="340" controls> <source src="media/video/test.mp4" type="video/mp4"> <source src="media/video/test.m4v" type="video/mp4"> <source src="media/video/test.ogv" type="video/ogv"> <source src="media/video/test.ogg" type="video/ogg"> Your browser does not support the video tag. </video> It simply says 'Your browser does not support the

Azure Media Services encoded mp4 file size is 10x the original

此生再无相见时 提交于 2019-12-13 18:49:31
问题 I uploaded a 15MB mp4 file and chose the "Playback via HTML5" option for encoding. It created a new mp4 file that is now 158MB! This is 10x larger in size, why does this happen? In fact, every encoding preset that I choose makes the file size much larger than the original 15MB for the source mp4 file. I need to deliver the video to PC clients that have low bandwidth, so having the file size increase to this magnitude is counter productive. Any advice or insight is really appreciated. 回答1:

FFmpeg 的基本使用

谁说我不能喝 提交于 2019-12-13 15:39:32
1、下载:FFmpeg https://www.ffmpeg.org/download.html#build-windows 将 G:\JavaSoft\ffmpeg\bin 目录配置在path环境变量中。 检测是否安装成功:ffmpeg -version 简单的测试: 将一个.avi文件转成mp4、mp3、gif等。 比如我们将lucene.avi文件转成mp4,运行如下命令: ffmpeg -i lucene.avi lucene.mp4 转成mp3:ffmpeg -i lucene.avi lucene.mp3 转成gif:ffmpeg -i lucene.avi lucene.gif 官方文档(英文):http://ffmpeg.org/ffmpeg.html 2、生成m3u8/ts文件 使用ffmpeg生成 m3u8的步骤如下: 第一步:先将avi视频转成mp4 ffmpeg.exe ‐i lucene.avi ‐c:v libx264 ‐s 1280x720 ‐pix_fmt yuv420p ‐b:a 63k ‐b:v 753k ‐r 18 .\lucene.mp4 各参数的大概意思: -c:v 视频编码为x264 ,x264编码是H264的一种开源编码格式。 -s 设置分辨率 -pix_fmt yuv420p:设置像素采样方式,主流的采样方式有三种,YUV4:4:4

using ffmpeg to add overlay with opacity

别来无恙 提交于 2019-12-13 13:32:33
问题 I have a problem with ffmpeg,I try to add a png files over a video i found how to add just I want this png file have some opacity I tryed this line ffmpeg -n -i video.mp4 -i logo.png -filter_complex "setsar=sar=1;blend=all_mode='overlay':all_opacity=0.7" -movflags +faststart tmb/video.mp4 with this line ffmpeg return this error Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_blend_1 and there the complet log ffmpeg version 2.7.5-0ubuntu0.15.10.1 Copyright (c) 2000