Hello, I'm trying to raw read MPEG2 video using av_read_frame without decoding with avcodec_decode_video because I'm doing analysis and therefore I have to go quickly through each video file.
Things I need are parameters like repeat_pict, top_field_first, interlaced_frame. There is a flag in AVCodecContext parse_only that says avcodec_parse_frame can be used to get the frame data. But there is neither avcodec_parse_frame in the source code respectivly in the runtime module (I'm using precompiled libav DLL's on Windows) nor is CODEC_CAP_PARSE_ONLY set when I check that after opening the codec. In the comments it's said that this flag is only existent for MPEG capabilities. I have real MPEG video files and this flag is not set. Can I rely on setting parse_only in my codec context explicitly and be sure that a call to avcodec_decode_video will deliver the raw frame data without doing the decoding step? Any other way to get the frame's raw data? I've tried to evaluate the AVPacket content after successfully calling av_read_frame. But here I get either the entry point from the first sequence header when I point to the beginning of the packet's data member or I get anywhere in the buffer's data when I look at packet.data[packet.pos] ... there is no valid stream start code at that position. What else can I do? Regards, Konran _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
