用ffmpeg抽取yuv数据

extract yuv data

./ffmpeg -i   ../streams/video-2013-09-09-03-14.mp4 -pix_fmt yuv420p ../streams/note2.yuv


If you have the wonderful FFmpeg, there are many cool things you can do with it. I'll name just a few that I'm often in need of. Please note that I'm playing around with all the possibilities myself, so the following lines will grow over time...

Get information about a media file:

ffmpeg -i video.avi

Extract (demux) the audio track from a video file:

ffmpeg -i video.mts -acodec copy -vn audio.ac3

Extract (demux) the video track from a video file:

ffmpeg -i video.mts -vcodec copy -an -f h264 ffNT.h264

Merge an audio and a video track (mux):

ffmpeg -i video.h264 -i audio.ac3 -vcodec copy -acodec copy videoaudio.ts

Resize an original Full-HD (16:9) video file from a camcorder down to DVD resolution (and MPEG) for further processing, e.g. burning on DVD (e.g. with DVDStyler), but keep the source aspect ratio of 16:9:

ffmpeg -i video.ts -s 720x405 -aspect "1.7777" -vb 8000k video.mpg


你可能感兴趣的:(MultiMedia)