/json.php? Mod = usershare act = geturlinfo ', array ('URL' => $ videourl ));$ Str = json_decode ($ str );Var_dump ($ str );?>
This test shows that the swf file is not the flv file we need. later, we improved the method by referring to a Webmaster. the core code is as follows:
The code is as follows:
Function fetch_youku_flv ($ url ){Preg_match ("# id _(.*?).
The company's project needs to merge one image and one MP3 audio file into MP4 and play the video on HTML5. It was originally thought to be a very simple matter, so a simple FFMPEG command was quickly written for execution.
FFmpeg-I 2.mp3-F image2-I 3.jpg-acodec AAC-strict-2-vcodec libx264-ar 22050-AB 128 K-AC 2-y 4.mp4
At the beginning, the merged
));
$str =json_decode ($STR);
Var_dump ($STR);
?>
This test is only SWF file is not the FLV file we want, and later reference to a webmaster to improve the wording, the core code is as follows:
Copy Code code as follows:
function fetch_youku_flv ($url) {
Preg_match ("#id_ (. *?). html# ", $url, $out);
$id = $out [1];
$content =get_curl_co
Storm AV 2015 do not play MP4 file
Cause analysis
This problem is estimated because this file is more special, so we need to make adjustments.
Solutions
In the Start menu, run the Storm audio integrated settings. Next, in the task on the left side of the open window, select Mpeg-4 decoding Settings, and click the Next button. Then, in the open window,
A lot of video conversion methods have been found, and the final process record is as follows:
Conversion Environment: window2003Conversion Tool: FFMPEGConversion steps:1/download the latest ffmpeg.exe version from the http://ffdshow.faireal.net/mirror/ffmpeg/ ( .7z is also a compression format)2. decompress the package to the local c: \ FFMPEG.
3. Convert the video file command line format:Conversion video:Ffmpeg.exe-I "E: \ input \ 06.asf" E: \
This is to borrow force, just grab the content of the friend NET!!!
But it works pretty well!
Look at the code:
The code is as follows
Copy Code
$videourl = ' http://v.youku.com/v_show/id_XMjA5MjQ0OTQ0.html ';function Get_content ($url, $data) {if (Is_array ($data)) {$data = Http_build_query ($data, ', ' ');}$ch = Curl_init ();curl_setopt ($ch, Curlopt_returntransfer, true);curl_setopt ($ch, Curlopt_post, 1);curl_setopt ($ch, Curlopt_header, 0);curl_setopt ($ch, Cu
A background:
Users need to watch the video through flash or mobile phone, and most cameras are RTSP protocol, so need to do a relay.
Resources:
http://blog.csdn.net/firehood_/article/details/8813587
http://blog.csdn.net/firehood_/article/details/8783589
These two articles detail the Mp4v2 save the file and the 264 files through the rtmp live, the two aspects of interest can be directly read the two articles. This article is only read the two articles
Causal Analysis Study:
WIN2003 Enhanced MIME verification of IIS6, and all unregistered extended file formats show 404 errors. Manually add a MIME mapping relationship to HTTP header->mime in IIS, MIME type: video/x-flv extension:. flv, which can be played through flash7+ client load]
Solutions
Change the extension
Slice generates m3u8 List command:
ffmpeg-i input.mp4-c:v libx264-c:a aac-strict-2-F HLS output.m3u8
The length of the default per piece (that is, a TS file) for this conversion command is the only last 5 piece of information that is saved by default in the 2s,m3u8 list file, that is, the player can only broadcast the last 5 TS video files in the pull stream.
This is definitely not what you want, so luckily
How to play the rmvb mp4 mkv video file in Fedora 22?
This is a problem that occurs after the Fedora system is installed. There is a tutorial on how to solve the problem of playing rmvb video in Fedora 21 on the Internet. In fact, Fedora 22 is also applicable, but Fedora 22 changes Yum to dnf, so you only need to change the command.
Simply install the rpmfusion
Here is a way to change the MD5 code of a file with Python.The idea is to add a piece of junk content to the file, without affecting the use.ImportOS, Globdeffileappend (filename): MyFile= open (filename,'a') Myfile.write ("####%%%%") Myfile.closeif __name__=='__main__': DirName= R'C:\Users\XXXX\Desktop\New Folder'Allfile= Glob.glob (dirname + os.sep +'*.
1 ImportOS2 3Files = Os.listdir ("D:\QTDownloadRadio\QTDownloadRadio-Copy")#list all files in the current directory4 5 forFileNameinchFiles:6Portion = os.path.splitext (filename)#separating file names and suffixes7 Print(portion)8 9 ifPORTION[1] = =". mp4":#modified according to suffix, if no prefix is emptyTennewname = portion[0]+". mp3"#the new suffix to chan
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.