[Libav-user] How can i extract Y plane from any frame in video
Amir Rouhi-Rmit
amir.rouhi at rmit.edu.au
Tue Jul 5 03:42:51 CEST 2011
ffmpeg -codecs does not work on ffmpeg in windows.
BTW whats the difference between yuv420 and yuvj420P among different vcodec?
On Sat, Jul 2, 2011 at 11:45 PM, Alex Cohn <alexcohn at netvision.net.il>wrote:
> On Wednesday, June 29, 2011, Amir Rouhi-Rmit <amir.rouhi at rmit.edu.au>
> wrote:
> > For generating raw images from every second of an input video,when i use
> the below command:
> >
> > ffmpeg -i c:\test\animals.wmv -r 1 -f image2 -vcodec rawvideo -pix_fmt
> yuvj420p c:\test\Img-%03d.yuv
> >
> > for every second of the video the ffmpeg generate two types of files:
> > Img---.yuU and Img---.yuv
> > And when i open the yuv file(with Irfanview), the 1/4th of the top part
> of the image has been chopped and filled with smooth green colour. The rest
> colour theme of the whole picture is also in green scale. (I use Irfanview
> /open raw and enter height and width and 24 BPP and yuv 420.
>
> The green yuv files are most probably jpeg files in disguise. Make
> sure these are not leftovers from another attempt to run ffmpeg.
>
> > but without -vcodec rawvideo ffmpeg generate only Img---.yuv files. But
> this file can not be opened as raw files and actually are jpg with yuv
> extension.( As you told it is because the default of image2 which is jpg)
>
> > BTW how can i see the different switches of -vcodec? (ffmpeg -vcodec list
> does not show any list)
>
> ffmpeg -codecs
>
> Alex
> >
> > --
> > Amir H. Rouhi
> > PhD Student/ CSIT RMIT University
> > Room: 14-09-04
> > rouhi_amirhossein at student.rmit.edu.au
> > amir.rouhi at rmit.edu.au
> >
> >
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
--
Amir H. Rouhi
PhD Student/ CSIT RMIT University
Room: 14-09-04
rouhi_amirhossein at student.rmit.edu.au
amir.rouhi at rmit.edu.au
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110705/34835cc1/attachment.html>
More information about the Libav-user
mailing list