Merge pull request #1156 from linuhap/master

translated
This commit is contained in:
Xingyu.Wang 2014-06-10 22:36:29 +08:00
commit 155c86f6e7
3 changed files with 74 additions and 74 deletions

View File

@ -1,3 +1,4 @@
linuhap翻译中
The Best Linux Distribution for New Users The Best Linux Distribution for New Users
================================================================================ ================================================================================
This is a debate that most certainly brings out the beast in many a Linux user. The argument doesn't generally boil down to which distribution is truly best suited for new users, but which distribution is favored by those in the debate. If we set our personal preferences aside, a clearer picture can arise. But even that clarity can quickly get obscured by the needs and desires of the new users. Given that, I decided to take a different approach to finding the “best distro for new users." My criteria for best distribution must not only be easy to use, but also must appeal to a more modern design aesthetic brought about by the ever-growing thrust of the mobile interface metaphor. This is a debate that most certainly brings out the beast in many a Linux user. The argument doesn't generally boil down to which distribution is truly best suited for new users, but which distribution is favored by those in the debate. If we set our personal preferences aside, a clearer picture can arise. But even that clarity can quickly get obscured by the needs and desires of the new users. Given that, I decided to take a different approach to finding the “best distro for new users." My criteria for best distribution must not only be easy to use, but also must appeal to a more modern design aesthetic brought about by the ever-growing thrust of the mobile interface metaphor.
@ -155,4 +156,4 @@ via: http://www.linux.com/news/software/applications/775873-the-best-linux-distr
[1]:http://www.ubuntu.com/ [1]:http://www.ubuntu.com/
[2]:http://www.linuxmint.com/ [2]:http://www.linuxmint.com/
[3]:http://www.linuxdeepin.com/index.en.html [3]:http://www.linuxdeepin.com/index.en.html

View File

@ -1,73 +0,0 @@
linuhap翻译中
How To Extract Images From Videos Using ffmpeg
================================================================================
Hi unixmen readers,
Have you ever wanted to extract images from a video file? It is possible to do such thing in Linux and for this tutorial I will use ffmpeg to get images from a video.
### What is ffmpeg? ###
ffmpeg is a very useful command line program which can be used to transcode media files. It is part of the FFmpeg leading multimedia framework that has many functionalities such as the ability to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created.
There are many various tools included in the framework each of which has a specific role. For example the ffserver is used to stream multimedia for live broadcasts, ffprobe is used to analyze multimedia stream, ffplay can be used as a simple media player and **ffmpeg** has the ability to convert multimedia files between formats.
If you are interested the followings are the developer libraries included in the FFmpeg framework:
- libavutil is a library containing functions for simplifying programming, including random number generators, data structures, mathematics routines, core multimedia utilities, and much more.
- libavcodec is a library containing decoders and encoders for audio/video codecs.
- libavformat is a library containing demuxers and muxers for multimedia container formats.
- libavdevice is a library containing input and output devices for grabbing from and rendering to many common multimedia input/output software frameworks, including Video4Linux, Video4Linux2, VfW, and ALSA.
- libavfilter is a library containing media filters.
- libswscale is a library performing highly optimized image scaling and color space/pixel format conversion operations.
- libswresample is a library performing highly optimized audio resampling, rematrixing and sample format conversion operations.
**Note**: ffmpeg and FFmpeg are not the same. FFmpeg is the framework and the ffmpeg one of the utilities included on it.
### Let the action begin ###
In order to follow this tutorial you need to install the ffmpeg command line utility in your linux machine. Ubuntu users can easily install the ffmpeg utility by typing and running the following command in their terminal.
sudo apt-get install ffmpeg
Fedora users can install ffmpeg directly from the repos.
yum install ffmpeg
Or you can compile it from source. Before compiling and installing it from source you need to download it from the official website with the help of the following command.
wget http://www.ffmpeg.org/releases/ffmpeg-2.2.3.tar.bz2
Extract the archive with the following command.
tar -xvjf ffmpeg-2.2.3.tar.bz2
Once the archive is extracted run the following command.
./configure
make
Once the compile is finished run the following command to install ffmpeg.
su -c 'make install'
Not that everything is set up, all you have to is type a few commands in your terminal and you will be able to extract images from any type of video file.
Before going any further make sure you are in the same directory with the video file from which you want to extract images from. Use the cd command to navigate to the right directory. Since the video I am using for the purpose of this tutorial is in my Desktop i use the following command to navigate to my desktop.
cd /home/oltjano/Desktop
Then I use the following command to extract images from my video file.
ffmpeg -i "Тимати - Рентген ( Альбом '13')-C9Plztvv8ac.mp4" -r 1 -q:v 2 -f image2 image-3%d.jpeg
The **-i** option serves to get the input which in my case is the video file named **Тимати Рентген ( Альбом 13)-C9Plztvv8ac.mp4**, the -r option sets the number of frames to be extracted as images every second. I like to extract one frame every second.
Then a very important option that should be mentioned and I like to use is the -q:v which is used to set the image quality of the images being extracted. I always get high quality images when extracting them from a video by using the value of 2.
--------------------------------------------------------------------------------
via: http://www.unixmen.com/extract-images-videos-using-ffmpeg/
译者:[译者ID](https://github.com/译者ID) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出

View File

@ -0,0 +1,72 @@
如何使用ffmpeg从视频中提取图片有些专业词汇不太懂可能翻译错了各位校译幸苦了
================================================================================
unixmen的读者们
你曾想过从一个视频文件中提取图片吗在Linux中做这件事是有可能的教程中我将使用ffmpeg来从视频中获取图片。
### 什么是ffmpegWhat is ffmpeg? ###
ffmpeg是一个非常有用的命令行程序它可以用来转码媒体文件。它是FFmpeg领先的多媒体框架的一部分其有很多功能比如解码、编码、转码、混流、分离、转化为流、过滤以及播放几乎所有的的由人和机器创建的媒体文件。
框架中包含有很多不同的工具其中每一个都有特定的功能。例如ffserver能够将多媒体文件转化为用于实时广播的流ffprobe用于分析多媒体流ffplay可以当作一个简易的媒体播放器**ffmpeg**能够转换多媒体文件格式。
如果你感兴趣以下是包括在FFmpeg框架中的开发者库
- libavutil是一个包含简化编程功能的库其中包括随机数生成器数据结构数学代码核心多媒体工具等更多东西。
- libavcodec是一个包含音频/视频解码器和编码器的库。
- libavformat是一个包含了多媒体格式的解析器和产生器的库。
- libavdevice是一个包含输入输出设备的库用于捕捉和渲染很多公共多媒体输入/输出软件框架包括Video4LinuxVideo4Linux2VfW和ALSA。
- libavfilter是一个包含媒体过滤器的库。
- libswscale是一个用于执行高度优化的图像缩放和颜色空间/像素格式转换操作的库。
- libswresample是一个用于执行高度优化的音频重采样重新矩阵和样本格式转换操作的库。
**注意**ffmpeg和FFmpeg并不一样。FFmpeg是一个框架而ffmpeg是一个FFmpeg中的一个功能。
### 开始行动 ###
如果你想跟着教程做你需要在你的linux机中安装ffmpeg命令行功能。Ubuntu用户可以在终端运行以下命令轻松安装ffmpeg功能。
sudo apt-get install ffmpeg
Fedora用户可以从源中直接安装ffmpeg。
yum install ffmpeg
或者你可以编译源代码。在你使用源代码编译并安装它之前,你需要从官网上下载源代码,使用以下命令。
wget http://www.ffmpeg.org/releases/ffmpeg-2.2.3.tar.bz2
用下面命令解压文档。
tar -xvjf ffmpeg-2.2.3.tar.bz2
文档解压完成后进入解压后的目录运行以下命令。
./configure
make
编译完成后运行下面的命令安装ffmpeg。
su -c 'make install'
全部的事情并没有完成,而你将要做的所有事就是在终端键入一些命令而且将能够从任何视频文件中抓取图片。
在做之后的步骤前确保你在想要提取图片的视频文件的目录下。使用cd命令切换到正确的目录。教程中我使用的视频在我的桌面上我用以下命令将目录切换到我的桌面。
cd /home/oltjano/Desktop
之后我使用以下命令从视频中提取图片。
ffmpeg -i "Тимати - Рентген ( Альбом '13')-C9Plztvv8ac.mp4" -r 1 -q:v 2 -f image2 image-3%d.jpeg
**-i**选项用来获取输入文件,在这里是视频文件名**Тимати Рентген ( Альбом 13)-C9Plztvv8ac.mp4**-r选项设置每秒提取图片的帧数。我想要每秒提取一帧。
之后有一个重要的选项是-q:v应该留意这个选项并且我很喜欢用它它用来设置提取到的图片质量。我总是设置值为2来从视频中获取高质量图片。
--------------------------------------------------------------------------------
via: http://www.unixmen.com/extract-images-videos-using-ffmpeg/
译者:[linuhap](https://github.com/linuhap) 校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出