免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 833 | 回复: 0
打印 上一主题 下一主题

ffmpeg [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-14 14:47 |只看该作者 |倒序浏览

FFmpeg is a complete solution to record, convert and stream audio
and video. It includes libavcodec, the leading audio/video codec
library. FFmpeg is developed under Linux, but it can compiled under
most operating systems, including Windows. In ubuntu This package
contains the ffplay multimedia player, the ffserver streaming server
and the ffmpeg audio and video encoder. They support most existing file
formats (AVI, MPEG, OGG, Matroska, ASF, …) and encoding formats (MPEG,
DivX, MPEG4, AC3, DV, …).
ffmpeg Features

  • ffmpeg 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.

  • ffserver is an HTTP (RTSP is being developped) multimedia streaming
    server for live broadcasts. Time shifting of live broadcast is also
    supported.

  • ffplay is a simple media player based on SDL and on the FFmpeg libraries.

  • libavcodec 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.

  • libavformat is a library containing parsers and generators for all common audio/video formats.

Install ffmpeg Ubuntu
sudo apt-get install ffmpeg
convert .flv to .mpg using ffmpeg
First you need to download your .flv file to a folder and you need
to Open a terminal window and go in to the .flv file folder and type
the following command
ffmpeg -i jokes.flv -ab 56 -ar 22050 -b 500  -s 320×240 jokes.mpg
jokes.flv is the file you want to convert, so the name must be the
same as the source file.You can name jokes.mpg whatever you want as
long as it has the .mpg extension.
-b bitrate: set the video bitrate in kbit/s (default = 200 kb/s)
-ab bitrate: set the audio bitrate in kbit/s (default = 64)
-ar sample rate: set the audio samplerate in Hz (default = 44100 Hz)
-s size: set frame size. The format is WxH (default 160×128 )
               
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/56374/showart_1719695.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP