Hi there,

I need this answered urgently, 
so I do apologize if I have used an inapporiate tone. 

I'm using a linux os (openSUSE 10.2) and the following:
  libavutil version: 49.6.0
  libavcodec version: 51.49.0
  libavformat version: 52.2.0

I want to encode yuv into intraframe H264, but I have no idea how to go about 
doing it: setting the parameters, using the correct codec, etc.

I can convert the yuv to other formats such as mjpeg 
( ffmpeg -s 352x288 -i input.yuv -vcodec mjpeg output.avi ).

But I can't seem to make ffmpeg use the H264 codec. I saw the following
under 'ffmpeg -formats':
    file formats:
    DE h264            raw H264 video format
    codecs
    D V DT h264

I tried   'ffmpeg -s 352x288 -i input.yuv output.h264'
and   'ffmpeg -s 352x288 -i input.yuv -vcodec h264 output.h264'
but both do not work.

>From googling online, some sites mentioned that x264 was needed. If it is 
>needed,
how do I install it into my existing ffmpeg?

On a related note, it would be greatly appreciated if someone can provide C++ 
code 
on how to do the following:
-- read in a yuv file frame by frame
-- encode each frame into infraframe H264
-- write encoded frames into an output file.

Regards,
Lim Guorong

P.S. the file I'm using for testing is 
http://daci.digitalsystems.cs.tut.fi/videos/raw_yuv/walk_cif.zip
_________________________________________________________________
Edit your photos like a pro with Photo Gallery.
http://www.get.live.com/wl/all
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to