mp4

nginx搭建基于http协议的视频点播服务器

纵饮孤独 提交于 2019-12-31 00:59:42
1,于由自己的服务器上已经安装好nginx(具体安装方法见我的另一篇文章,Linux中安装nginx),所以不再安装。 2,下载nginx_mod_h264_streaming-2.2.7.tar.gz(自己在网上搜吧)。 3,安装pcre,先看有没有安装。 [root@localhost vsftpd]# rpm -qa pcre pcre-7.8-7.el6.i686 已经安装(上篇加rtmp模块的时候已经安装了) 4,解压nginx_mod_h264_streaming-2.2.7.tar.gz,添加flv,mp4模块。解压到和nginx源码同级的目录。然后./configure --add-module=../nginx_mod_h264_streaming-2.2.7 --with-http_flv_module --with-http_mp4_module 因为flv 和http是nginx自带的所以不用下载这个模块。 5,make 可能遇到问题1 /root/nginx_mod_h264_streaming-2.2.7/src/ngx_http_streaming_module.c: In function ‘ngx_streaming_handler’: /root/nginx_mod_h264_streaming-2.2.7/src/ngx_http

Media Foundation IMFSinkWriter::Finalize() method fails under Windows 7 when muxing H.264 frames into MP4

不问归期 提交于 2019-12-30 11:10:47
问题 I'm writing a tool in C# that muxes H.264 frames into MP4 files, and I'm using Media Foundation's media sink with sink writer to do this. Things work pretty well under Win8, but under Windows 7 the same code throws an exception, HResult: 0xC00D36E6 (MF_E_ATTRIBUTENOTFOUND), when invoking sink writer's Finalize method. As a result, the generated MP4 file is not properly closed, and is (of course) not playable. The mftrace log shows that the failure under Windows 7 occurs somewhere after (or

How can I turn a series of images into a video using JCodec?

狂风中的少年 提交于 2019-12-30 07:28:30
问题 I'm trying to use JCodec to turn a series of images into a video inside of a Java SE desktop application. The few methods I've tried all resulted in a video that Windows Media Player could not play. It is unclear to me if this is a codec issue (doubtful) or if I'm not creating the video properly. When I try to play the video in Windows Media Player I get: Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to

Why is PHP interfering with my HTML5 MP4 video?

大憨熊 提交于 2019-12-30 05:15:13
问题 I'm writing a web app that serves H.264 encoded MP4 video. In Chrome and Safari, it does this via an HTML5 video tag. In order to control access to these videos, their contents are served via PHP using a really simply mechanism: header('Content-type: video/mp4'); readfile($filename); exit; No matter what I do, the videos will not stream. Additionally: If I change the source code to serve the files directly, using the same video tag but linking to an Apache-served copy of the video with no PHP

ffmpeg安装

余生长醉 提交于 2019-12-30 03:04:45
使用 yum 安装nux-dextop 源。 下载:wget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm rpm -ivh nux-dextop-release-0-5.el7.nux.noarch.rpm 或 rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm yum search ffmpeg #就可以看到 安装包了。 yum -y install ffmpeg #安装完成后检查ffmpeg 版本 ffmpeg -version 使用ffmpeg压缩 ffmpeg –i test_1.mp4 –vcodec h264 –s 1280*720 -acodec copy –f mp4 test_1_1.mp4 #输入压缩的尺寸,使用h264进行压缩。 其他高级命令有人总结了: http://www.cnblogs.com/chen1987lei/archive/2010/12/03/1895242.html http://www.cnblogs.com/wainiwann/p/4128154.html

Apache shows the contents of MP4 file rather than a download prompt

不羁的心 提交于 2019-12-29 09:21:52
问题 I am running Apache on Linux, and when I go to a url that is a .mp4 file rather than let me download the file it shows the contents of the file (as mangled text) eg the out put is ��� ftypisom���isomiso2avc1mp41��*moov���lmvhd����̴�d̴�d��������������������������������������������������@��������������������������������Htrak���\tkhd���̴�d̴�d��������������������������������������������������������@������������$edts���elst��������������������mdia��� mdhd����̴�d̴�d���� ��������-hdlr��������vide���

How do you change the MIME on Amazon S3?

北城以北 提交于 2019-12-29 07:44:17
问题 I am trying to change a mp4 video file's MIME that is stored on Amazon S3. I tried searching under the properties listing when you right click and then the meta-data drop down. But there is no option for that there. How do you I do that? 回答1: The issue does seem be to change the MIME in S3. To be more specific, you need to log into Amazon S3 Console Right on the file you need to change (or select them) click on properties click on metadata HIGHLIGHT the text in "value" category (because

Can you set an arbitrary byte offset in the mp4 header for the first frame?

允我心安 提交于 2019-12-25 06:43:43
问题 TLDR: Can you set an arbitrary byte offset in the mp4 header for the first frame? I have an idea for a utility program to work with mp4 files that have been recorded on a goPro, to assist in later time aligning of concurrently recorded files. at the core of the idea is to take a large file (multiple gigabytes), and stream through it frame by frame from the start, until a frame with an embedded QR code is found, which would have been shot by pointing the camera at a smartphone or tablet, which

Can you set an arbitrary byte offset in the mp4 header for the first frame?

无人久伴 提交于 2019-12-25 06:43:00
问题 TLDR: Can you set an arbitrary byte offset in the mp4 header for the first frame? I have an idea for a utility program to work with mp4 files that have been recorded on a goPro, to assist in later time aligning of concurrently recorded files. at the core of the idea is to take a large file (multiple gigabytes), and stream through it frame by frame from the start, until a frame with an embedded QR code is found, which would have been shot by pointing the camera at a smartphone or tablet, which

How to play videos on Apache server

这一生的挚爱 提交于 2019-12-25 02:07:05
问题 I have installed Apache server on a Ubuntu machine, created directory in Apache /var/www/html/myvideos/ and copied the videos to this location, how do you play it back on the browser? I have opened the URL in browser http://my_server_ip/myvideos/testvideo.mp4 The video doesn't get played in the browser. Do I need to make any configuration in Apache server to make the video play in the browser ? Please guys, help me on this. Thanks 回答1: You should embed a link to the video in your index.html