mp4

Windows Media Foundation using IMFTransform to decode mp4 movie frames to 2D textures

我的梦境 提交于 2019-12-04 09:47:45
I'm trying to decode an mp4 video using Windows Media Foundation classes and converting frames in to 2D textures that can be used by a DirectX shader for rendering. I've been able to read the source stream using MFCreateSourceReaderfromURL and been able to read the media type of the stream which has its major type MFMEdiaType_Video and minor type as MFVideoFormat_H264 as expected. I'm now needing to convert this format in to an RGB format that could be used to initialise a D3D11_TEXTURE2D resource and resource view which can then be passed to a HLSL pixel shader for sampling. I've tired using

怎么用视频转换器把qsv格式转换成mp4

♀尐吖头ヾ 提交于 2019-12-04 08:38:23
随着生活水平不断提高消费水平也在不断的增长,与此同时娱乐已经成为了人们生活中重要的一环,在看一些视频时是否会发现例如qsv、qlv和kux等格式是不能用别的播放器打开的,其实这几个格式分别是爱奇艺、腾讯和优酷独家的视频格式,要用别的播放器打开则要转换成mp4格式。那怎么转换qsv格式的视频呢? 想要将爱奇艺的qsv格式转成mp4格式可以使用迅捷视频转换器的视频转换功能进行转换,但是在这之前,要先在爱奇艺下载好独家的qsv格式。 然后打开视频转换器选择功能页的视频转换功能,在选择时我们会发现有很多功能,此时可以先选择相应的视频转换功能,也可以随后到达转换界面选择。 选择好相应的功能后将之前下载好的qsv文件添加到转换器中,添加时可以点击左上角的添加文件按钮,如果文件过多可以点击添加文件夹按钮,同时也可以用拖拽的方式添加。 添加好文件后把输出格式中的视频格式设置为需要转换的mp4格式,然后把输出路径调整为自己想要保存的路径。之后点击转换或全部转换按钮进行格式转换。 稍等片刻视频转换器就会把爱奇艺原有的qsv格式转换成我们需要的mp4格式。当视频转换好后就可以到指定的路径找到并打开转换后的mp4文件了。 以上就是把爱奇艺的qsv格式转换成mp4的方法了,希望可以帮助到你,如果要转换上述提到的qlv和kux格式也可以用相同的方法进行转换。 视频转换器www.xunjieshipin.com

ffmpeg settings for converting to mp4 and ogg for HTML5 video [closed]

若如初见. 提交于 2019-12-04 07:25:28
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . Despite all the hype, in reality the HTML5 video tag has a bit of a problem. In order to use it and for it to be cross browser compatible, you have to include more than one format of the video. To target all supported browsers these formats are mp4 and ogg. I was searching around for optimum settings for each

How to play a video in jQuery image slider?

浪子不回头ぞ 提交于 2019-12-04 06:10:27
问题 I have a jQuery slider that I wrote in jQuery in WordPress site. I want to enable it to play video if the src extension is "mp4". Any ideas? Here is an example of the HTML generated: (please note the first img src is a link to a video) I would like to enable the visitor click play button to start the video. <div id="img-container" style="width: 2828.1px; padding-right: 886px;"> <div class="picture_holder"> <div class="picture"> <img src="/wp-content/uploads/2015/12/VideoClip.mp4" height="1080

How do you do true streaming with the video tag (i.e. not progressive download)? (html5)

徘徊边缘 提交于 2019-12-04 04:58:50
I have I have cheap Apache PHP hosting. I have mp4 and or Ogg video file. I want to dynamically stream this video to users. And let that users see it through html 5 video player. How do you do true streaming (beeng able to scroll to any part of wideo with out previous download of full video) with the video tag (i.e. not progressive download) and Apache PHP? There appears to be a slight mix-up between "true" streaming and "pseudo" streaming here. I believe true streaming is when video is streamed from a specialist media server over a streaming protocol such as rtsp, rtmp or mms whereby the

How to set the output of a file as mp4 using intent to a camera with a action of ACTION_VIDEO_CAPTURE?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 04:17:03
问题 when I am using my native app camera to take video, the output file have 3gp extension. I need to intent to camera with ACTION_VIDEO_CAPTURE intent action which will produce a file that has a mp4 file extension. how can I do it? 回答1: You can go ahead and try dis code: intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE); fileUri = getOutputMediaFile(MEDIA_TYPE_VIDEO); // create a file to save the video in specific folder (this works for video only) intent.putExtra(MediaStore

Does PHP have an integrated function to read metadata from an mp4 file?

坚强是说给别人听的谎言 提交于 2019-12-03 23:05:16
I want to know if PHP has a function to read metadata from an mp4 video-audio file. I've found some external classes that do that, but first of use them I would want to know if are necessary or PHP already have some method for do that. Classes that I've found are php-mp4info and getID3() , which of them is better? Brian Best tool I have used is: https://code.google.com/p/php-reader/ have a look...also supports other forms of media. Edit: PHP-Reader seems to be no longer maintained (project has not been updated since 2012...). You should use getID3() now. I've used http://getid3.sourceforge.net

HTML5 Video(视频)

别说谁变了你拦得住时间么 提交于 2019-12-03 21:25:15
很多站点都会使用到视频. HTML5 提供了展示视频的标准。 检测您的浏览器是否支持 HTML5 视频: 检测 Web站点上的视频 直到现在,仍然不存在一项旨在网页上显示视频的标准。 今天,大多数视频是通过插件(比如 Flash)来显示的。然而,并非所有浏览器都拥有同样的插件。 HTML5 规定了一种通过 video 元素来包含视频的标准方法。 浏览器支持 Internet Explorer 9+, Firefox, Opera, Chrome, 和 Safari 支持 <video> 元素. 注意: Internet Explorer 8 或者更早的IE版本不支持 <video> 元素。 HTML5 (视频)- 如何工作 如需在 HTML5 中显示视频,您所有需要的是: 实例 < video width = " 320 " height = " 240 " controls > < source src = " movie.mp4 " type = " video/mp4 " > < source src = " movie.ogg " type = " video/ogg " > 您的浏览器不支持Video标签。 </ video > 尝试一下 » <video> 元素提供了 播放、暂停和音量控件来控制视频。 同时 <video> 元素也提供了 width 和 height

Converting .mkv to h.264 FFmpeg

会有一股神秘感。 提交于 2019-12-03 20:59:12
I would like to convert my .mkv files to .mp4 using FFmpeg. I have tried the following code: ffmpeg -i input.mkv -c:v libx264 -c:a libvo_aacenc output.mp4 But I get the error: Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height. Is there any way to get around this? I have tried setting the bitrate of the audio but the problem seems to persist. Ely I suggest you first check whether your .mkv file already has H.264/AAC streams in the first place. Because if it does, all you have to do is copy the streams and change the container

Android - Different ways of playing video

与世无争的帅哥 提交于 2019-12-03 20:47:05
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 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 VideoView is. Last I looked at the VideoView source code, it was only ~200 lines. Here is a sample project that