Hi all,
     I am develop a video program and have to send YUV data from windows
server to linux server via socket. Because of the big size of the YUV data,
i think i have to encode the data to h264 video stream before transfering
them , then in linux server, i should decode the h264 video stream back into
YUV data(What i need is YUV frame data and the attributes of YUV frame such
as nStamp time). I decide to using ffmpeg to do such thing for me because
ffmpeg is a complete, cross-platform solution to record, convert and stream
audio and video. After successfully compile the source code(I am using
ffmpeg-0.5.1.tar.gz and x264-snapshot-20100413-2245.tar.bz2, the compile
command:./configure --enable-gpl --enable-shared --enable-libx264
--enable-pthreads & make & make install ), i can convert my sample 264 file
to YUV video stream using ffmpeg by the following command: ./ffmepg -i
test.264 test.yuv. And i also can play the test.yuv using Elecard YUV
Viewer. But unfortunately i cannot convert these YUV data to h264 video
stream into h264 file using command:  ./ffmpeg -i test.yuv test.h264 The
error is "could not find codec parameters" , if I using the command: ./ffmpeg
-s 352*288 -i test.yuv test.h264 , the error is : "Error while opening codec
for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate,
width or height" Can somebody tell me how to solve this problem? Thanks in
advances!

xutm
2010.4.20
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to