Hi Vlad,
Thank you for ur reply. Now i have compiled
apiexample.c/output_example.c and also finished my program
test_encode_decode.c to encode and decode YUV video stream via mpeg4
encoder/decoder,
and it works fine.Instead of parsing the local file by calling
av_open_input_file and so on, my program can deal with the realtime video
stream (get from DVR) by directly calling avcodec_encode_video and
avcodec_decode_video methods. But now , i encounter a problem: when i use my
program(the prev program: test_encode_decode.c) to decode H264 video stream
using h264 decoder, it will be OK on windows using MFC, but NOT in linux.
The two platform has the same codes. After debugging for a long while, i
still donnot know why. Can somebody guide me how to deal with this?
Best Regards,
xutm
2010/4/22 Vlad <[email protected]>
> Hi,
> Try to use something like this (in general case you need to select preset
> for
> h264 encoding).
>
> ffmpeg.exe -f rawvideo -s 352x288 -i inputfile.yuv -vcodec libx264 -f
> mpegts -an
> -s cif -r 25 -coder 1 -flags +loop -cmp +chroma -partitions
> -parti8x8-parti4x4-partp8x8-partb8x8 -me_method dia -subq 2 -me_range 16 -g
> 250
> -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6
> -qmin
> 10 -qmax 51 -qdiff 4 -bf 3 -refs 1 -directpred 1 -trellis 0 -flags2
> +bpyramid-mixed_refs+wpred-dct8x8+fastpskip -wpredp 2 -rc_lookahead 30
> outfile.ts
>
>
> _______________________________________________
> libav-user mailing list
> [email protected]
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user