1, for the installation of LIGHTTPD need to support MP4 pseudo-streaming media format, it is recommended not to the official download lighttpd installation files, to the plugin H264 streaming module official website, download the integrated installation packageHttp://h264.code-shop.com/download/lighttpd-1.4.18_mod_h264_streaming-2.2.9.tar.gz, 2, for the already installed LIGHTTPD needs to be patched to the existing environment, installation process re
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
1, first download a storm video player
2, in the above website to download and install a good storm audio and video, open storm audio and video
3, click on the lower left corner of the Storm audio and video toolbox
4, click on the transcoding, if it is the first time use will appear in the following image
5, click to install
6, click Add File, add the MP4 file you want to convert format
In doing a website, found that video files, such as the Flv,mp4 format can be played locally, but reached the development of the machine, it is not. The player's file address is right, or has not been responding.
After a long experiment, the problem was found to be set with IIS. IIS does not allow video files to be played by default, and the solution is as follows:
Open the IIS Manager on the server, locate the corresponding Web site under the serve
writeshort (width
);//Image width
writeshort (height);//Image Height
out.write (
0x80 | Local color list flag 1
0x00 |
0x00 |
0x07)); Index number of local color list (7+1 of 2)
}
Image (image data)
GIF image data using the LZW compression algorithm, greatly reducing the size of the image data, the specific LZW compression algorithm can be Google, the program implementation section can refer to the source link at the bottom of the article. The following is a write implementat
you set the value is irrelevant, It relies on this stored format.
Well, it gave me an indication that I would see avformat_write_header right away. Unfortunately, only the simple introduction of the function in the document does not explain how the value changes.
There is no way to use the most primitive way, open source insight, view ffmpeg source bar.
Can see Avformat_write_header or relatively simple, only to call a few interfaces, the following question is to find out which interface change
1. Uploading Test FilesLogin NetEase Hive (NetEase hive is part of NetEase Cloud), in the object storage of a new bucket, click Upload will test files uploaded to the bucket, if the file is larger than 100m can use NetEase cloud provided by the gadget or SDK, Openapi upload, specific use can refer to the use of documents.
2. mp4 File Playback
SRC is the address of the file in the bucket, copy it, change the SRC address.
1, using ffmpeg extract MP4 h264 Code stream Write file method online There are many, do not know, please refer to the Raytheon Blog: http://blog.csdn.net/leixiaohua1020/article/details/11800877
2, but the file is a problem, the first can certainly play, but there will be a great chance to appear in the flower screen
A, first talk about the solution
In fact, it is very simple, but also use the Av_bitstream_filter_filter method to handle each avpacket,
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
PHP + FFMPEG Enables automatic Transcoding of videos into H264 standard Mp4 files,
Configure the php. ini file
Copy codeThe Code is as follows:File_uploads = on; // whether to allow file upload over HTTP. ON is enabled by default.Upload_tmp_dir; // upload the file to the place where the temporary file is stored on the server. If it is not specified, the default Temporary Folder will be used.Upload_max_filesize = 1024 m; // wangwen business, that is, t
Article Link: http://justcoding.iteye.com/blog/2110275Ckplayer, which is all called super cool FLV player, it is a software for playing video on the Web page, supported by the format of: HTTP protocol on the FLV,F4V,MP4 format, while supporting RTMP video streaming format playback, this player is characterized in that the user can define the player's style, such as Play/pause button, mute button, full screen button is called external image interface,
Download Depot_tools unzip, add to environment variableGo to cmd (admin) run gclient get Python and git,svn, set python environment variableCreate a new Foldermkdir Chromium CD chromiumSave the automate-git.py to the folder root directoryThen run the command:Set gyp_generators=ninja,msvs-ninjaset gyp_msvs_version=2013 set Gyp_defines=proprietary_codecs=1 Ffmpeg_branding=chromePython automate-git.py--download-dir=chromium--depot-tools-dir=depot_tools path--branch=2623 -- No-debug-build--force-b
Finding a reliable recording screen software is not easy. Some have time limit, some have watermark logo.Now I am more satisfied with a software named ice cream Screen Recorder, he has no watermark and no time limit.The only drawback is that the recording screen while not simultaneously recording the camera, after recording the file format is MVK.You will also need to download a format conversion tool to convert files in MVK format to MP4 files.Here i
'is set but not used [-Werror = unused-but-set-variable]../Nginx_mod_h264_streaming-2.2.7/src/mp4_reader.c: 376: 12: Error: variable 'stream _ id' is set but not used [-Werror = unused-but-set-variable]../Nginx_mod_h264_streaming-2.2.7/src/mp4_reader.c: In the 'stsd _ parse_vide 'function:../Nginx_mod_h264_streaming-2.2.7/src/mp4_reader.c: 529: 22: Error: variable 'level _ indication 'is set but not used [-Werror = unused-but-set-variable]../Nginx_mod_h264_streaming-
have been using Mpmovieplayerviewcontroller for network playback, recently downloaded the file and then local playback, found how to play is black screen. The local URL of Mpmovieplayerviewcontroller was later found to be unavailable [Nsurl Urlstringfrom] This method. Paste the correct code belowNSString *path1=[[nsbundle Mainbundle] Pathforresource:@ "fuck" ofType:@ " MP4"]; *url = [Nsurl fileurlwithpath:path1]; *VCPLAYVC = [[Yymovie
Transferred from: http://cache2.weidaohang.org/h/index.php?q=aHR0cDovL2Jsb2cuY3Nkbi5uZXQvemh1cWluZ183MzkvYXJ0aWNsZS9kZXRhaWxzLzY2MzY4NTc=Has been more confused a problem, all said FFmpeg function is very powerful, but he has not been to study, today finally saw a bit of its strong place!First of all, of course, the Linux compiler and installation success FFmpeg, about the specific installation process, you can refer to my previous blog post!Here is a direct introduction of how to put. H264 Pure
Find a FFmpeg support h264 encoding, PHP call exec take advantage of ffmpeg transcoding time too long, CPU utilization of more than 80%, ask how to solve.
transcoding command also do not know what the meaning of the surface parameters?
$command='..\ffmpeg\bin\ffmpeg.exe -i ' . $file . '.' . $ext . ' -vcodec libx264 -vprofile main -preset slow -b:v 400k -maxrate 400k -bufsize 800k -vf scale=-1:480 -threads 0 -acodec libvo_aacenc -ab 128k ' .$file . '.mp4
') {
unsigned int(8) data[];}
Calculate the free space box size:
Size occupies 32 bits, 4 bytes;
Type occupies 32 bits, 4 bytes;
Each data occupies 8 bits and 1 byte;
3. Media Data box
Aligned (8) Class mediadatabox extends box ('mdat '){
Bit (8) data [];
}
Calculate the size of the media data box:
Size occupies 32 bits, 4 bytes;
Type occupies 32 bits, 4 bytes;
Each data occupies 8 bits and 1 byte;
4. Movie box
Aligned (8) Class moviebox extends box ('moov '){
}
Calculate the mov
The path to the java siege lion (Android)-MP3, MP4, photography, internationalization, style themes, image movement and scaling, android-mp3
I. MP3 player
View the Android API documentation to see the MediaPlayer status transition diagram:
Exercise:
Package com.shellwaygateplayer; import java. io. file; import java. io. IOException; import android. support. v7.app. actionBarActivity; import android. telephony. phoneStateListener; import android. tele
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.