📄 ffmpeg.html
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head> <title></title> <link rel="stylesheet" media="screen" type="text/css" href="./style.css" /> <link rel="stylesheet" media="screen" type="text/css" href="./design.css" /> <link rel="stylesheet" media="print" type="text/css" href="./print.css" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><div class="toc"><div class="tocheader toctoggle" id="toc__header">Table of Contents</div><div id="toc__inside"><ul class="toc"><li class="clear"><ul class="toc"><li class="level2"><div class="li"><span class="li"><a href="#ffmpeg_overview" class="toc">FFmpeg Overview</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#building_ffmpeg_on_blackfin" class="toc">Building FFmpeg on Blackfin</a></span></div></li><li class="level2"><div class="li"><span class="li"><a href="#running_ffmpeg_on_blackfin" class="toc">Running FFmpeg on Blackfin</a></span></div></li></ul></li></ul></div></div><h2><a name="ffmpeg_overview" id="ffmpeg_overview">FFmpeg Overview</a></h2><div class="level2"><p> FFmpeg is a collection of free software licensed under GNU Lesser General Public License or GNU General Public License (depending on which sub-libraries are included) the provides “a complete solution to record, convert and stream audio and video. It includes <code>libavcodec,</code> the leading audio/video codec library. FFmpeg is developed under Linux, but it can compiled under most operating systems, including Windows.” (source: <a href="http://www.ffmpeg.org" class="urlextern" title="http://www.ffmpeg.org" rel="nofollow">main site</a>)</p><p>The project is made of several components: </p><ul><li class="level1"><div class="li"> <a href="http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html" class="urlextern" title="http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html" rel="nofollow">''ffmpeg''</a> is a command line tool to convert one video file format to another. It also supports grabbing and encoding in real time from a TV card.</div></li><li class="level2"><div class="li"> <a href="http://ffmpeg.mplayerhq.hu/ffserver-doc.html" class="urlextern" title="http://ffmpeg.mplayerhq.hu/ffserver-doc.html" rel="nofollow">''ffserver''</a> is an <acronym title="Hyper Text Transfer Protocol">HTTP</acronym> (RTSP is being developed) multimedia streaming server for live broadcasts. Time shifting of live broadcast is also supported.</div></li><li class="level2"><div class="li"> <a href="http://ffmpeg.mplayerhq.hu/ffplay-doc.html" class="urlextern" title="http://ffmpeg.mplayerhq.hu/ffplay-doc.html" rel="nofollow">''ffplay''</a> is a simple media player based on SDL and on the FFmpeg libraries.</div></li><li class="level2"><div class="li"> <code>libavcodec</code> is a library containing all the FFmpeg audio/video encoders and decoders. Most codecs were developped from scratch to ensure best performances and high code reusability.</div></li><li class="level2"><div class="li"> <code>libavformat</code> is a library containing parsers and generators for all common audio/video formats.</div></li></ul></div><!-- SECTION [1-1371] --><h2><a name="building_ffmpeg_on_blackfin" id="building_ffmpeg_on_blackfin">Building FFmpeg on Blackfin</a></h2><div class="level2"><p> To build the FFmpeg make sure your uClibc and toolchain supports <a href="http://docs.blackfin.uclinux.org/doku.php?id=faq&s=lfs#how_do_i_enable_large_file_support_in_uclibc_toolchain" class="urlextern" title="http://docs.blackfin.uclinux.org/doku.php?id=faq&s=lfs#how_do_i_enable_large_file_support_in_uclibc_toolchain" rel="nofollow">Large File Support</a>. Once you have enabled LFS support and <a href="http://docs.blackfin.uclinux.org/doku.php?id=toolchain_build_script" class="urlextern" title="http://docs.blackfin.uclinux.org/doku.php?id=toolchain_build_script" rel="nofollow">rebuilt your toolchain</a> (if necessary), you can download FFMpeg following these <a href="http://ffmpeg.mplayerhq.hu/download.html" class="urlextern" title="http://ffmpeg.mplayerhq.hu/download.html" rel="nofollow">instructions</a> and build by issuing these commands:</p><pre class="code">svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpegcd ffmpeg./configure --cc='bfin-uclinux-gcc -mfdpic'\ --cpu=unknown \ --prefix=where/you/want/ffmpeg \ --enable-static --disable-shared \ --enable-gpl --enable-pp \ --disable-strip \ --disable-v4l2 \ --enable-memalign-hack makemake install</pre><p> <code>configure</code><code>cpu=unknown</code> </p></div><!-- SECTION [1372-2491] --><h2><a name="running_ffmpeg_on_blackfin" id="running_ffmpeg_on_blackfin">Running FFmpeg on Blackfin</a></h2><div class="level2"><p> To test the <code>ffmpeg</code> binary you can use <code>make image</code> or NFS-mount a directory including the executable. This <code>mount</code> approach might also prove useful if you want to test <code>ffmpeg</code> to transcode a movie from one format to another. For example to transcode a <acronym title="Motion Picture Experts Group">MPEG</acronym> movie you could issue the command on the Blackfin:</p><pre class="code">ffmpeg -i input_movie.mpg \ -r [FRAMERATE, e.g. "25"] \ -b [BITRATE e.g., "256"] \ -s [FRAME_SIZE, e.g., "352x288", "640x80" or "cif", "vga"] \ output_movie.mp4</pre><p> <a href="frame_capture_device.html" class="wikilink1" title="frame_capture_device.html">frame capture device</a> </p></div><!-- SECTION [2492-] --></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -