i think i've located the problem... i do not believe that the mpeg4 files were properly encoded by the demux. i still kept coming back to the point that the elecard decoder was able to work. eventually, through trial and error, i played around with the combinations of the frame_mbs_only_flag, mb_aff and direct_8x8_inference_flag flags. in the file that was initially working, frame_mbs_only_flag was '1' while the other two were zero. by changing the libavcodec code, h264_ps.c, and forcing mb_aff and direct_8x8_inference_flag to be '1' when frame_mbs_only_flag was '0'...in doing this, my files that would not previsouly play began to play! horray...
obivously this is an enciding issue as opposed to decoding so i'm working on the demux presenting the correct information. as an FYI, the frame_mbs_only_flag bit appears to be the sixth bit from the end. my trailing byte in the file that would not work was C1. changing it to D9 caused to flags to be correctly set and resulted in the video beginning to play. hopefully this will help someone in the future as i've been tryiong to figure it out for quite some time... nick -- View this message in context: http://libav-users.943685.n4.nabble.com/ff-h264-decode-seq-parameter-fails-for-Coded-slice-of-an-IDR-picture-invalid-8x8-inference-tp3027611p3032455.html Sent from the libav-users mailing list archive at Nabble.com. _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
