I put the h264 packets into flv file with the flv file format in video_file_format_spec_v10.pdf. I used CodecID=7(AVC) and filled video data with h264 encoded packet. But it doesn't work. The codec lib is x264 with CABAC enctropy.
The test.flv file in attachment is what I created using x264. Below is the media infomation about test.flv.
Could someone help me? Thanks very much.
First of all you can't use h264 in an flv, Flash Video files encoded with the H264 codec must have the ending (mov, mp4 or F4V)
Those need to be preparated as Adobe recommends, best choice is to use the Adobe Media Encoder or an Adobe editing tool that outputs a proper h264 file.
But some open source software can insert h264 video data into flv file, like ffmpeg.
And there is a flv mux in the newest version x264(videolan.com) lib.