Recently, due to the need to convert some videos from the FLV format to the AVI format, I wrote the following script to automate the conversion:
#! /Bin/bashffcmd = '/cygdrive/C/work-DIR/FFMPEG/ffmpeg.exe' # path to ffmpe tools # Check output directory existif! Test-d $2; then mkdir $ 2FI # Convert FLV to avifor F in
My goal is to call FFMPEG conversion. the AVS file is. there is no problem with FLV files and parameters. I can run the command line to successfully convert the video format. now I write it as a function in
Program In the call, there is a problem :(
Public int convertvideotoflv (){Int re= 999;
PROCESS p = new process (); // create an external call threadP.
First step, open the "format factory" software, select the video format you want to convert.
Step two, add the file, modify the conversion requirements (generally no special requirements default on the line).
After the third step, select the file, it is recommended to press the keyboard "F2" key to chan
not be too small. Otherwise, the cache is too small and the video playing process will be very slow.
If the network environment is good, the effect is good within ms, and the real-time performance is good.
II:PCTerminal (LinuxPlatform)VLCPlayRTSPVideo latency
Here, my testing platform is Ubuntu, And the VLC on Linux can be run in the command line mode, while the command line can contain parameters, you on
In this article "VLC Android compilation and recording video functions", I found the Android version using VLC, but the video recording function is incorrect.
Its video recording method cannot be well controlled for the start and end recording of the
In the Windows system if the development of universal player, generally is the basic DirectShow to develop, development is also very simple, but a lot of shortcomings, whether a file format can play depends entirely on whether you installed the correct parser and decoder, even if there is a universal solution installation package will also have a lot of problems, But since a lot of open source software, such as the famous FFMPEG,
output driver. you can choose from various video output drivers, the default one being XV.
The last version is 0.6.3 for Linux. Debian Lenny comes with smplayer 0.6.1, while Ubuntu hard heron with 0.6.0. to install it, use:
On Debian, type as root:
Apt-Get install smplayer
On Ubuntu, use:
Sudo apt-Get install smplayer
To compile the last release of smplayer In Debian (this shocould work on Ubuntu too), download the source tarball from here, uncompres
First of all have to admit that VLC is a very good video playback plug-in, supporting the format N. But on the web, especially with little resources on Google's Internet, I'm 1100 degrees in the crowd, looking at various documents. Finally found, little hey:1), download VLC application
=NewFileInfo (currentassembly.location). DirectoryName; if(CurrentDirectory = =NULL) return; if(Assemblyname.getassemblyname (currentassembly.location). ProcessorArchitecture = =processorarchitecture.x86) E.vlclibdirectory=NewDirectoryInfo (Path.Combine (CurrentDirectory,@".. \.. \.. \lib\x86\")); Elsee.vlclibdirectory=NewDirectoryInfo (Path.Combine (CurrentDirectory,@".. \.. \.. \lib\x64\")); }View CodeThere is no doubt that the second method is much better, the first
Java video format conversion implementation method, java video format conversion
This example shares the code for converting Java video formats for your reference. The specific content is as follows:
The core is to use ffmpeg for video
Support rich format, can quickly complete AVI (RMVB) conversion Mpeg1, AVI (RMVB) to MPEG2, AVI (RMVB) Turn DVD, AVI (RMVB) to VCD, AVI (RMVB) to SVCD, AVI to RMVB. Also support the above all video format into DivX format or AVI format, support AVI,MPEG1,VCD,ASF,WMV,RM, Quic
1.FFMPEG cropping video
Command: Ffmpeg-ss start-t duration-i input-vcodec copy-acodec copy OUTPUT
The descriptions of each of these parameters are as follows:
Start: Starting time. As 00:01:20, indicates that the cropping section starts at 1 minutes and 20 seconds.
DURATION: Video length. As 00:02:30, a video that is 2 minutes and 30 seconds long to intercep
Supports a wide range of formats to quickly convert mpeg1, AVI (rmvb) to MPEG2, AVI (rmvb) to DVD, AVI (rmvb) to VCD, and AVI (rmvb) convert SVCD, Avi to rmvb. all the preceding video formats can also be converted to DivX or AVI. Avi, mpeg1, VCD, ASF, WMV, RM, and QuickTime mov can be converted to rmvb. supports conversion from multiple
FLAC is a lossless compression format. That is to say, after the audio is compressed in FLAC encoding, no information is lost and the content of the FLAC file is the same as that of the file before compression. Due to the lossless compression nature of FLAC, it also occupies a large storage space. Especially for those who like music, there will be a lot of FLAC music on their mobile phones, which will occupy the phone memory. At this time, it is very
How to play *.265format the video or decode the video streamFor example, how do I play video in 265 format after getting a video or video stream in. 265 format ? This blog post summariz
Sometimes we look at some of the video, such as TV, electricity and MV, often encounter a favorite music or classic dialogue, very much want to save, but, because a video file is relatively large, very unfavorable to our preservation, and on the Internet can not find these separate audio, then how to save the audio in the video file? In fact, we do not have to st
-ac 2 hyb-wish.mp3ffmpeg-i hyb-wish.wav-acodec LIBF Aac-ab 192k-ac 2 hyb-wish.aacffmpeg-i hyb-wish.wav-acodec libamr_nb-ab 12.2k-ar 8000-ac 1 hyb-wish-nb.amrffmpeg-i Hyb-wish.wav-acodec libamr_wb-ab 23.85k-ar 16000-ac 1 hyb-wish-wb.amrSee FFmpeg manual can know the meaning of these parameters, very simple:-i--input file; -acodec--Specifies the audio codec, with the Ffmpeg-formats command to see all the file formats and Codec;-ab supported by the currently compiled FFmpeg-bitrate, with a k behind
Original URL: http://jingyan.baidu.com/ae/3aed632e65708470108091ca.htmlFLAC is all called lossless Audio compression coding, FLAC format is also called lossless formatWill not destroy the original audio content, so as to restore the sound quality of the music discSound quality is better than other lossy compression formats (e.g. MP3)But the FLAC format of the music file is large, not easy to store small mob
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.