Copy Code code as follows:
// +----------------------------------------------------------------------+
// | PHP version 45 |
// +----------------------------------------------------------------------+
// | Copyright (c) 2007 JackieWangjackieit@hotmail.com |
// +----------------------------------------------------------------------+
// | This source file "s function is to get" time Length of flv |
// | Main function getTime param: $name The
How does PHP get the FLV file time, the answer is fopen file to view the FLV file is hex data and converted to number.
Copy Code code as follows:
Functionbigendian2int ($byte _word, $signed =false)
{
$int _value = 0;
$byte _wordlen=strlen ($byte _word);
for ($i =0; $i $int _value+=ord ($byte _word{$i}) *pow (256, ($byte _wordlen-1-$i));
}
if ($signed) {
$sign _mask_bit=0x80if ($int _valu
Why should I parse the FLV format?
In the live project encountered need to statistics Flash video frame interval length, first frame, GOP, and other key data, the inevitable need to parse the FLV file.
noun definition
First frame: Refers to the user to see the first video frame.First frame length: Refers to the user to open the Web page to see the first video frame.I frame: Video keyframe, contains all t
=====================================================
The simplest example series based on Librtmp is a list of articles:
Simplest LIBRTMP-based example: Receive (rtmp saved as FLV)
Simplest LIBRTMP-based example: Publish (FLV is released via RTMP)
Simplest LIBRTMP-based example: release of H. (H. rtmp Post)
=====================================================
This document records a LIBRTMP-based program
This article describes how to use codeigniter to upload a video and convert ffmpeg to flv. For more information, see
This article describes how to use codeigniter to upload a video and convert ffmpeg to flv. For more information, see
The Code is as follows:
$ File = 'video _ file ';$ Config ['upload _ path'] = './video_folder /';$ Config ['allowed _ types'] = 'mov | mpeg | mp3 | avi ';$ Config ['max
With the increasing popularity of the FLV format, more and more places are using this format, which is small and the biggest advantage, but the problem is, if you want to convert other video formats to the FLV format, isn't it a headache.
When you see this articleArticleYes, you must be worried about how to convert the swf format to the FLV format. Don't worry.
Recently, I encountered a problem in the project, that is, mediaelemen in Silverlight can only read videos in WMV format, but I cannot read videos in FLV format, later, I found a lot of information on the Internet and learned a lot about it.
Main Code:
Background:
Private void openbutton_click (Object sender, routedeventargs E) {# region === directly open the stream here and select the file to directly browse the file from the client for playback =
After a long time of hard work today, we finally developed a simple video player, which can be used to communicate with company leaders.
Steps:
1. Drag a "flvplayback" component to the stage in Flash cs4.
Note: flvplayback has basic FLV playback functions. You can simply set the attributes to play the video.
2. Load the XML Data Source
The XML data source format is as follows:
Core of loading XML by using ActionScriptCode:
VaR _ xml
Main. ASC FileC: \ Program Files \ Macromedia \ Flash 8 \ samples and tutorials \ samples \ Components \ flvplayback \ main. ASC
1. In your FCS ApplicationProgramCreate a folder named my_application.2. Copy the main. ASC file to the my_application folder.3. Create a folder named streams in the my_application folder.4. Create a folder named _ definst _ in the streams folder.5. Place your FLV file in the _ definst _ folder.6. To access the
] lighttpd]# cp-p /data/lighttpd/lighttpd-1.4.35/doc/config/conf.d 6. Create Log output folder[Email protected] lighttpd]# mkdir-p/var/log/lighttpd7, change start shutdown restart configurationCP DOC/INITSCRIPTS/RC.LIGHTTPD.REDHAT/ETC/INIT.D/LIGHTTPD8, then change the/etc/init.d/lighttpd, putLighttpd= "/USR/SBIN/LIGHTTPD"SwitchLighttpd= "/USR/LOCAL/LIGHTTPD/SBIN/LIGHTTPD"9, go to Folder/usr/local/lighttpd/etc. Change the value of lighttpd.conf var.log_root to "/VAR/LOG/LIGHTTPD"10, change the
protected] lighttpd]# cp-p /data/lighttpd/lighttpd-1.4.35/doc/config/conf.d 6. Create Log output Directory[Email protected] lighttpd]# mkdir-p/var/log/lighttpd7. Modify Startup Shutdown Restart configurationCP DOC/INITSCRIPTS/RC.LIGHTTPD.REDHAT/ETC/INIT.D/LIGHTTPD8, then modify the/ETC/INIT.D/LIGHTTPD, putLighttpd= "/USR/SBIN/LIGHTTPD"SwitchLighttpd= "/USR/LOCAL/LIGHTTPD/SBIN/LIGHTTPD"9, go to directory/usr/local/lighttpd/etc, modify the value of lighttpd.conf var.log_root to "/VAR/LOG/LIGHTT
This article illustrates how PHP obtains the Youku video true FLV file address. Share to everyone for your reference. The specific analysis is as follows:
There is a webmaster want me to help it do a Youku video site can automatically test the FLV real address, the following I sorted out the afternoon to solve the problem is very good, we can refer to.
This is to borrow force, just grab the content of the
Many people like to download some audio files to MP3 or mobile phones and other mobile devices, but sometimes in the online search of the target file is FLV format, how to do it, this time we need to format conversion, follow me to study together.
1, open the installation of the Super Almighty Audio Converter, as shown (1)
2. Click the "Add" button to select the FLV file you want to add in the Open Ad
PHP obtains the actual flv file address of the youku video,
This example describes how to use PHP to obtain the actual flv file address of a youku video. Share it with you for your reference. The specific analysis is as follows:
A Webmaster asked me to help him develop a real flv address that can automatically test the youku video website. Below I sorted it out a
SOURCE Download: http://download.csdn.net/detail/njxiaogui/7609687Front desk:. aspxBackstage. CS (Get the address of FLV through the background for video playback) protected void Page_Load (object sender, EventArgs e) {this.video_content. InnerHtml = Play ("sp.flv", 472, 385); public static string Play (string url, int width, int height) {string strtmp = URL. ToLower (); if (Strtmp.endswith (".
Nginx integrates mp4 and flv modules
Note:After nginx 1.1.3, mp4 and flv modules are supported by default, and no third-party modules are required.Procedure:1: decompress, compile nginx, compile and add mp4 and flv modules:# Tar-zxvf nginx-1.3.14.tar.gz# Cd nginx-1.3.14#./Configure#. /Configure -- prefix =/usr/local/nginx -- user = nobody -- group = nobody -- wit
Some may encounter a 404 error indicating that the file cannot be opened or cannot be found when you open the flv file on your windows iis server, next I will introduce how to make your server support flv files.
Cause analysis:
WIN2003 enhanced IIS6 MIME verification. all unregistered extended file formats Display Error 404. Manually add the MIME ing relationship to the HTTP header> MIME in IIS. The MIME
This article describes how to obtain the real flv file address of a youku video by using PHP. it can be used to parse the real address of a youku video, for more information about how to use PHP to obtain the true flv file address of a youku video, see the following example. Share it with you for your reference. The specific analysis is as follows:
A webmaster asked me to help him develop a real
Php uploads videos and automatically transcodes them into FLV! Recently, I worked as a school TV website and wanted to develop a function for students to upload their DVSs. I used php to convert them into the flv format and found related materials like youku and tudou, it seems that the ffmpeg software can be implemented, and how to use php to upload videos and automatically transcode them to
Php uploads videos and automatically transcodes them into FLV! Recently, I worked as a school TV website and wanted to develop a function for students to upload their DVSs. I used php to convert them into the flv format and found related materials like youku and tudou, I found that the ffmpeg software seems to be able to implement nbsp;, but it is very simple. I only provided some parameters for php to upl
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.