-1
I am using ffmpeg for shq codec(SHQ2 and SHQ7).
Creating AVCodec with SHQ is fine:
codec = avcodec_find_decoder(AV_CODEC_ID_SPEEDHQ)
But this fails:
parser = av_parser_init(AV_CODEC_ID_SPEEDHQ);
So, I selected another solution(I configured the codec parser manually, then I get codec context by avcodec_parameters_to_context
) not using parser.
Then I feed packet from 1080x1920 video stream as SHQ2 and SHQ7. 1920x1080 stream decoding is fine(if 1080x1920 image, it is fail).
It is fail from avcodec_send_packet function of FFmpeg when I decode packet.
For FFmpeg codec context, I am using AV_PIX_FMT_YUV422p
(SHQ2), AV_PIX_FMT_YUVA422p
(SHQ7) as format.
Now I can't parse packet, so finally I cant get AVFrame (beacuse of avcodec_send_packet
fail).
Which parameter I need to update?
If you could give me a code snip for decoding SHQ 1080x1920 video packets with FFMpeg, I'd be happy.
What is the error code? – szatmary – 2020-02-13T16:09:10.267