These two days to do the video things found Nginx no MP4 video streaming module, today I added a bit, because before is compiled good, so I directly added!
Download
Copy Code code as follows:
#下载解压
wget wget http://h264.code-shop.com/download/nginx_mod_h264_streaming-2.2.7.tar.gz
Tar zxf nginx_mod*.tar.gz
Configuration add
Copy Code code as follows:
#查看编译参数
/usr/local/nginx/sbin/nginx-v
#进入nginx (ten
For an example of a MP4 length of 10 seconds, the structure may be as follows:
Type:ftyp, size:24Type:mdat, size:8884701Type:mdat, size:136125Type:moov, size:4656 1 Ftyp
A Ftyp describes the type of file, indicating which format it conforms to. It's usually MP4 format. There are many types of media that conform to this document, and the type of box entry is different, so brand and compatible_brands are requ
FFmpeg is a powerful video and audio codec tool in Ubuntu. X264 can encode high-quality H.264 videos. iPad must be H.264 or MPEG-4 encoded for normal playback. Since the copyright aspect has not been determined, although many websites in China are using h. 264 encoding, but may be subject to copyright issues in the future. Therefore, Ubuntu official source does not provide h by default. 264 encoding, which requires us to manually compile and install FFmpeg h. 264 support to encode
Calculate the playback duration of an MP4 file. You can obtain the timescale and duration values in the mvhd box:
Playback duration = duration/timescale
The Unit is seconds ).
The following describes the structure of mvhd.Movie header atoms-mvhd
Movie header atom defines the features of the entire movie, such as time scale and duration. Its atom type is 'mvhd '.
The mvhd structure is as follows:
The fields are described as follows:
The following is
1. To use mpmovieplayerviewcontroller, you must first add mediaplayer. framework.2. Add the following code:
// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.- (void)viewDidLoad { [super viewDidLoad]; NSString *url = [[NSBundle mainBundle] pathForResource:@"TaylorSwift-LoveStory" ofType:@"mp4"]; MPMoviePlayerViewController *playerViewController = [[MPMoviePlayerViewController alloc] initWithConte
1. Create a single viewproject, import it to the mediaplayerdatabase, and import a video file test1.mp4.
2. ViewController. h
#import
#import
@interface ViewController : UIViewController { MPMoviePlayerViewController *_playerVC;}@end
2. ViewController. m
#import "ViewController.h"@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; NSString *path = [[NSBundle mainBundle] pathForResource:@"test1" ofType:@
Solution node-webkit does not support html5 mp4 video playback method, node-webkithtml5
Cause: mp4 seems to have a patented audio/video format. Node-webkit is not supported ...... It seems to be ..
Solution:
Install chrome in the local directory (for example, c: \ Google \ Chrome \ Application \ 37.0.2062.103) and find the ffmpegsumo. dll file.
Copy (ffmpegsumo. dll) and replace ffmpegsumo. dll in the n
Recently in the Research institute has video format to turn MP4Because HTML5 only supports MOV MP4and other formats: Looking at a lot of data found that turning into FLV is simple.But it's hard to turn mp4 ...After my disdain for the effort. Finally the conversion succeeded.The command is as follows:Ffmpeg-i d:\5367002155592.wmv-c:v libx264-strict-2 D:\test.mp4PS: I was converted in Windows Command window.You want to use FFmpeg first remember to insta
: This article mainly introduces nginx development (2) how to configure online playback of mp4 files. For more information about PHP tutorials, see. 1: The nginx folder Traversal function is enabled in the first step.
Vi/usr/local/nginx/conf/nginx. conf # Edit the configuration file and add the following content under http:
Autoindex on; # enable nginx directory browsing
Autoindex_exact_size off; # the file size is displayed starting from KB.
Au
This article introduces the content of PHP output MP4 video stream function, has a certain reference value, now share to everyone, the need for friends can refer to
function Getmp4file ($file) { $size = filesize ($file); Header ("Content-type:video/mp4"); Header ("Accept-ranges:bytes"); if (Isset ($_server[' Http_range ')) { header ("http/1.1 206 Partial Content"); List ($n
Thin P is used as MP4 by LP to watch American dramas.I also wanted to write a WiFi hotspot detection software on thin p, and develop and implement the function of cracking wireless routers. Now I have to put it on hold.
Fortunately, LP conscience discovered that it had approved the ndsl purchase license.Although ndsl screens are not as good as PSP, the touch function is quite interesting, and it is not afraid to be used as
Sometimes, in the work of some customers need to use video, we all know that video is very cost-consuming, so if the project requires customers to buy a video server alone is very out of the box. Then upload the video to Youku, Iqiyi and other video sites to host that is a good solution.Today, we are mainly talking about the MP4 format URL address that you can use to dynamically get your own uploaded video using Iqiyi open platform. We talk less and s
If we put a MP4 file directly on the server and then open it in Google Chrome, the browser will watch it online by default.
But often files are not so naked to save, if it is to use PHP to output MP4 files, a long time, the browser will be directly as a file download, and will not try to play online.
At first I thought it was necessary to support the disconnection download, and then change it, and then it i
mencoderargs. Many parameters have been found on the Internet, which can be converted to MP4. android can play, but ios iphone and ipad cannot play. Later I found an English document, the specific link is missing. We can say that mp4 in ios has specifications for audio and video. However, if you forget the specifications, you can search for them online and cannot find them, I can refer to this article, but
Cause: MP4 seems to be a patented AV format. Node-webkit does not support it ... It seems that.Workaround:Install the Chrome browser locally, install the directory (example: c:\Google\Chrome\Application\37.0.2062.103) and locate the Ffmpegsumo.dll file.Copy (Ffmpegsumo.dll) and replace the Ffmpegsumo.dll under the Node-webkit directory.Note : As the chromium version is numerous, the chromium version of the downloaded Chrome browser is consistent with
The tutorial mainly introduces the pen tool, layer style, gradient tool, path use, with Photoshop for us to describe a MP4 drawing complete process, the whole process is not complicated, just need patience and attention to detail, if you are interested, may wish to try, might draw the more beautiful MP4. I hope you like it!
Final effect Diagram
Figure 0
1, open adobe Photoshop CS3 software, e
This article mainly introduces PHP using Memcoder to convert video into MP4 format, involving PHP operation video file skills, with a certain reference value, the need for friends can refer to the
This example describes how PHP uses Memcoder to turn video into a MP4 format. Share to everyone for your reference. The implementation methods are as follows:
The code is as follows:ConvertTo ("Some-input-video
Easy-to-use digital video camera has become a lot of students travel in the summer vacation with one of the equipment, compared to the SLR, digital video camera can not only save the next wonderful moment, but also at any time to record interesting video clips, sound line and Mau vivid and practical. Currently on the market popular digital video camera to Sony, Panasonic, JVC, Canon and other brands, the use will find that these cameras can shoot up to 1080P definition of video, clear and smooth
I just added a player to the page. The buttons didn't work. I don't know where the problem occurred. It was very depressing. So I collected the information and shared it with you, I hope this code can be used in my test.html to help you. You can use an absolute path such as c: \ test.html to access the video. However, you cannot play the video by accessing http: // localhost/test.html, I just added a player to the page, and the buttons didn't work. I don't know where the problem was. But I guess
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.