wrong extradata on decoding a mxf xavc long gop file.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

wrong extradata on decoding a mxf xavc long gop file.

Yufei He
Hi

https://drive.google.com/open?id=1Rugz-tKCNDViN-zxJ9pQyKqSi_Eos7QD

On decoding the file this link, avctx->extradata is wrong data, there is no valid sps and pps.

Actually, mxf files does not need extradata. normally  sps and pps are stored in every IDR frame.

My decoder expects right extradata.  Yes, I can add protection to check if it's valid.

I debugged with h264dec.c, it can not find valid sps pps either.

Regards.

Yufei.




<https://drive.google.com/open?id=1Rugz-tKCNDViN-zxJ9pQyKqSi_Eos7QD>


<https://drive.google.com/open?id=1Rugz-tKCNDViN-zxJ9pQyKqSi_Eos7QD>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: wrong extradata on decoding a mxf xavc long gop file.

Carl Eugen Hoyos-2
2019-04-10 20:00 GMT+02:00, Yufei He <[hidden email]>:

> https://drive.google.com/open?id=1Rugz-tKCNDViN-zxJ9pQyKqSi_Eos7QD
>
> On decoding the file this link, avctx->extradata is wrong
> data, there is no valid sps and pps.
>
> Actually, mxf files does not need extradata. normally
> sps and pps are stored in every IDR frame.

This is not true for all mxf files...

> My decoder expects right extradata.  Yes, I can add
> protection to check if it's valid.
>
> I debugged with h264dec.c, it can not find valid sps pps either.

But why should it abort if the extradata is not valid but unneeded?

Feel free to send a patch that detects in the mxf demuxer if
extradata has to be inserted or not.

See also ticket #4820.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: wrong extradata on decoding a mxf xavc long gop file.

Yufei He
On 04/10/2019 03:33 PM, Carl Eugen Hoyos wrote:

> 2019-04-10 20:00 GMT+02:00, Yufei He <[hidden email]>:
>
>> https://drive.google.com/open?id=1Rugz-tKCNDViN-zxJ9pQyKqSi_Eos7QD
>>
>> On decoding the file this link, avctx->extradata is wrong
>> data, there is no valid sps and pps.
>>
>> Actually, mxf files does not need extradata. normally
>> sps and pps are stored in every IDR frame.
> This is not true for all mxf files...
Yes, it's only in the first frame for Panasonics mxf avcintra files.

>
>> My decoder expects right extradata.  Yes, I can add
>> protection to check if it's valid.
>>
>> I debugged with h264dec.c, it can not find valid sps pps either.
> But why should it abort if the extradata is not valid but unneeded?
>
> Feel free to send a patch that detects in the mxf demuxer if
> extradata has to be inserted or not.
>
> See also ticket #4820.
>
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".