an issue on decoding a mxf xavc long gop file.

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

an issue on decoding a mxf xavc long gop file.

Yufei He
Hi

I'm trying to trancode a 1080i xavc long gop mxf file with my codec, the
file's frame rate is 29.97.

In my decoder, avctx->framerate.den is 1001, avctx->framerate.num is 15000.

This is wrong.

Regards

Yufei.





_______________________________________________
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: an issue on decoding a mxf xavc long gop file.

Carl Eugen Hoyos-2


> Am 04.04.2019 um 20:06 schrieb Yufei He <[hidden email]>:
>
> I'm trying to trancode a 1080i xavc long gop mxf file with my codec, the
> file's frame rate is 29.97.
>
> In my decoder, avctx->framerate.den is 1001, avctx->framerate.num is 15000.
>
> This is wrong.

Please provide a sample input file.

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: an issue on decoding a mxf xavc long gop file.

Yufei He
On 04/04/2019 02:47 PM, Carl Eugen Hoyos wrote:

>
>> Am 04.04.2019 um 20:06 schrieb Yufei He <[hidden email]>:
>>
>> I'm trying to trancode a 1080i xavc long gop mxf file with my codec, the
>> file's frame rate is 29.97.
>>
>> In my decoder, avctx->framerate.den is 1001, avctx->framerate.num is 15000.
>>
>> This is wrong.
> Please provide a sample input file.
>
> Carl Eugen
Hi Carl
I sent a file of 1.3M yesterday, but still waiting for approval of the
list moderator.

Normally, how does a user send a sample file to [hidden email] ?

Regards.

Yufei.

> _______________________________________________
> 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".
_______________________________________________
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: an issue on decoding a mxf xavc long gop file.

andrei ka
and why not to put it on google drive :-P

On Fri, Apr 5, 2019 at 2:19 PM Yufei He <[hidden email]> wrote:

> On 04/04/2019 02:47 PM, Carl Eugen Hoyos wrote:
> >
> >> Am 04.04.2019 um 20:06 schrieb Yufei He <[hidden email]>:
> >>
> >> I'm trying to trancode a 1080i xavc long gop mxf file with my codec, the
> >> file's frame rate is 29.97.
> >>
> >> In my decoder, avctx->framerate.den is 1001, avctx->framerate.num is
> 15000.
> >>
> >> This is wrong.
> > Please provide a sample input file.
> >
> > Carl Eugen
> Hi Carl
> I sent a file of 1.3M yesterday, but still waiting for approval of the
> list moderator.
>
> Normally, how does a user send a sample file to [hidden email] ?
>
> Regards.
>
> Yufei.
>
> > _______________________________________________
> > 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".
> _______________________________________________
> 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".
_______________________________________________
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: an issue on decoding a mxf xavc long gop file.

Carl Eugen Hoyos-2
In reply to this post by Yufei He
2019-04-05 14:19 GMT+02:00, Yufei He <[hidden email]>:

> Normally, how does a user send a sample file to
> [hidden email] ?

Ideally, you use a random file hoster of your choice.

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: an issue on decoding a mxf xavc long gop file.

Yufei He
On 04/05/2019 09:21 AM, Carl Eugen Hoyos wrote:
> 2019-04-05 14:19 GMT+02:00, Yufei He <[hidden email]>:
>
>> Normally, how does a user send a sample file to
>> [hidden email] ?
> Ideally, you use a random file hoster of your choice.
>
> Carl Eugen
https://drive.google.com/open?id=1Rugz-tKCNDViN-zxJ9pQyKqSi_Eos7QD

Please try this link.

Yufei.
> _______________________________________________
> 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".
_______________________________________________
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: an issue on decoding a mxf xavc long gop file.

Carl Eugen Hoyos-2
In reply to this post by Yufei He
2019-04-04 20:06 GMT+02:00, Yufei He <[hidden email]>:
> Hi
>
> I'm trying to trancode a 1080i xavc long gop mxf file with my
> codec, the file's frame rate is 29.97.
>
> In my decoder, avctx->framerate.den is 1001, avctx->framerate.num
> is 15000.
>
> This is wrong.

I tested the following:
$ ffmpeg -i m2641080i30m25.xavc.mxf -qscale 2 -vcodec mpeg4 out.mov

The output file plays both audio and video for 3:53 secondes (+/- 0:01).
This seems correct to me, no?

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: an issue on decoding a mxf xavc long gop file.

Carl Eugen Hoyos-2
In reply to this post by Yufei He
2019-04-04 20:06 GMT+02:00, Yufei He <[hidden email]>:

> I'm trying to trancode a 1080i xavc long gop mxf file with
> my codec, the file's frame rate is 29.97.
>
> In my decoder, avctx->framerate.den is 1001, avctx->framerate.num
> is 15000.
>
> This is wrong.

I opened ticket #7829 for the wrong average framerate
calculation.

If this has any real-world effects, please tell us.

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: an issue on decoding a mxf xavc long gop file.

Yufei He
In reply to this post by Carl Eugen Hoyos-2
On 04/05/2019 09:44 AM, Carl Eugen Hoyos wrote:

2019-04-04 20:06 GMT+02:00, Yufei He <[hidden email]><mailto:[hidden email]>:


Hi

I'm trying to trancode a 1080i xavc long gop mxf file with my
codec, the file's frame rate is 29.97.

In my decoder, avctx->framerate.den is 1001, avctx->framerate.num
is 15000.

This is wrong.



I tested the following:
$ ffmpeg -i m2641080i30m25.xavc.mxf -qscale 2 -vcodec mpeg4 out.mov

The output file plays both audio and video for 3:53 secondes (+/- 0:01).
This seems correct to me, no?

Carl Eugen

Hi Carl

Yes, it works without using my codec.

But it has error on debugging with my codec.

[cid:[hidden email]]

I use avctx->framerate in my codec.

From the picture above, you can see framerate->num is 15000, framerate->den is 1001. framerate->num should be 30000.

Thanks.

Yufei.


_______________________________________________
ffmpeg-user mailing list
[hidden email]<mailto:[hidden email]>
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email]<mailto:[hidden email]> with subject "unsubscribe".

_______________________________________________
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".

fgpbjgocfbghiihh.png (716K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: an issue on decoding a mxf xavc long gop file.

Yufei He
In reply to this post by Carl Eugen Hoyos-2
On 04/05/2019 10:22 AM, Carl Eugen Hoyos wrote:

> 2019-04-04 20:06 GMT+02:00, Yufei He <[hidden email]>:
>
>> I'm trying to trancode a 1080i xavc long gop mxf file with
>> my codec, the file's frame rate is 29.97.
>>
>> In my decoder, avctx->framerate.den is 1001, avctx->framerate.num
>> is 15000.
>>
>> This is wrong.
> I opened ticket #7829 for the wrong average framerate
> calculation.
>
> If this has any real-world effects, please tell us.
>
> Carl Eugen
Hi Carl

My encoder got the correct framerate.
In my decoder, I use the frame rate to find difference between decoded
uncompressed frames and input compressed packets which have time stamps.

Regards.

Yufei.
_______________________________________________
> 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".
_______________________________________________
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: an issue on decoding a mxf xavc long gop file.

Carl Eugen Hoyos-2
In reply to this post by Yufei He
2019-04-05 17:03 GMT+02:00, Yufei He <[hidden email]>:

> On 04/05/2019 09:44 AM, Carl Eugen Hoyos wrote:
>
> 2019-04-04 20:06 GMT+02:00, Yufei He
> <[hidden email]><mailto:[hidden email]>:
>
>
> Hi
>
> I'm trying to trancode a 1080i xavc long gop mxf file with my
> codec, the file's frame rate is 29.97.
>
> In my decoder, avctx->framerate.den is 1001, avctx->framerate.num
> is 15000.
>
> This is wrong.
>
>
>
> I tested the following:
> $ ffmpeg -i m2641080i30m25.xavc.mxf -qscale 2 -vcodec mpeg4 out.mov
>
> The output file plays both audio and video for 3:53 secondes (+/- 0:01).
> This seems correct to me, no?
>
> Carl Eugen
>
> Hi Carl
>
> Yes, it works without using my codec.
>
> But it has error on debugging with my codec.
>
> [cid:[hidden email]]

Please fix your quoting and please do not attach
screen-shots, there may be exceptions but a
large debug window probably never is.

> I use avctx->framerate in my codec.

Why?

I am not claiming that there is no bug (I opened a ticket)
but I don't see why you need the value, even more so
if there is not issue with the native decoder.

> From the picture above, you can see framerate->num
> is 15000, framerate->den is 1001. framerate->num
> should be 30000.

If you already know what the issue is, I suggest you
send a patch (made with git format-patch, sent to
ffmpeg-devel) to fix it.

Sorry, 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: an issue on decoding a mxf xavc long gop file.

Yufei He
On 04/07/2019 05:37 PM, Carl Eugen Hoyos wrote:

> 2019-04-05 17:03 GMT+02:00, Yufei He <[hidden email]>:
>> On 04/05/2019 09:44 AM, Carl Eugen Hoyos wrote:
>>
>> 2019-04-04 20:06 GMT+02:00, Yufei He
>> <[hidden email]><mailto:[hidden email]>:
>>
>>
>> Hi
>>
>> I'm trying to trancode a 1080i xavc long gop mxf file with my
>> codec, the file's frame rate is 29.97.
>>
>> In my decoder, avctx->framerate.den is 1001, avctx->framerate.num
>> is 15000.
>>
>> This is wrong.
>>
>>
>>
>> I tested the following:
>> $ ffmpeg -i m2641080i30m25.xavc.mxf -qscale 2 -vcodec mpeg4 out.mov
>>
>> The output file plays both audio and video for 3:53 secondes (+/- 0:01).
>> This seems correct to me, no?
>>
>> Carl Eugen
>>
>> Hi Carl
>>
>> Yes, it works without using my codec.
>>
>> But it has error on debugging with my codec.
>>
>> [cid:[hidden email]]
> Please fix your quoting and please do not attach
> screen-shots, there may be exceptions but a
> large debug window probably never is.
OK.
>> I use avctx->framerate in my codec.
> Why?
>
> I am not claiming that there is no bug (I opened a ticket)
> but I don't see why you need the value, even more so
> if there is not issue with the native decoder.
The chip needs frame rate to be initialized properly.
>
>>  From the picture above, you can see framerate->num
>> is 15000, framerate->den is 1001. framerate->num
>> should be 30000.
> If you already know what the issue is, I suggest you
> send a patch (made with git format-patch, sent to
> ffmpeg-devel) to fix it.
>
> Sorry, Carl Eugen
OK, I'll try to fix it.
Regards.
Yufei.
> _______________________________________________
> 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".
_______________________________________________
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: an issue on decoding a mxf xavc long gop file.

Carl Eugen Hoyos-2
2019-04-08 18:56 GMT+02:00, Yufei He <[hidden email]>:
> On 04/07/2019 05:37 PM, Carl Eugen Hoyos wrote:
>> 2019-04-05 17:03 GMT+02:00, Yufei He <[hidden email]>:

>>> I use avctx->framerate in my codec.
>>
>> Why?
>>
>> I am not claiming that there is no bug (I opened a ticket)
>> but I don't see why you need the value, even more so
>> if there is not issue with the native decoder.
>
> The chip needs frame rate to be initialized properly.

Does that mean that only (strict) cfr is supported by the chip?

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: an issue on decoding a mxf xavc long gop file.

Yufei He
On 04/08/2019 02:03 PM, Carl Eugen Hoyos wrote:

> 2019-04-08 18:56 GMT+02:00, Yufei He <[hidden email]>:
>> On 04/07/2019 05:37 PM, Carl Eugen Hoyos wrote:
>>> 2019-04-05 17:03 GMT+02:00, Yufei He <[hidden email]>:
>>>> I use avctx->framerate in my codec.
>>> Why?
>>>
>>> I am not claiming that there is no bug (I opened a ticket)
>>> but I don't see why you need the value, even more so
>>> if there is not issue with the native decoder.
>> The chip needs frame rate to be initialized properly.
> Does that mean that only (strict) cfr is supported by the chip?
>
> Carl Eugen
Chip just needs frame rate to get initialized, it can go as fast as
possible.

I have a question:

In line 809 of file ffmpeg_opt.c

             // avformat_find_stream_info() doesn't set this for us anymore.
             ist->dec_ctx->framerate = st->avg_frame_rate;

Why is avg_frame_rate assigned to  ist->dec_ctx->framerate ?
Why not st->r_frame_rate;

Thanks.

Yufei.
_______________________________________________
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: an issue on decoding a mxf xavc long gop file.

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

> On 04/08/2019 02:03 PM, Carl Eugen Hoyos wrote:
>> 2019-04-08 18:56 GMT+02:00, Yufei He <[hidden email]>:
>>> On 04/07/2019 05:37 PM, Carl Eugen Hoyos wrote:
>>>> 2019-04-05 17:03 GMT+02:00, Yufei He <[hidden email]>:
>>>>> I use avctx->framerate in my codec.
>>>> Why?
>>>>
>>>> I am not claiming that there is no bug (I opened a ticket)
>>>> but I don't see why you need the value, even more so
>>>> if there is not issue with the native decoder.
>>> The chip needs frame rate to be initialized properly.
>> Does that mean that only (strict) cfr is supported by the chip?
>>

> Chip just needs frame rate to get initialized

So this is only a bug in the chip or the driver
because the initialization data is not used?

> it can go as fast as possible.
>
> I have a question:
>
> In line 809 of file ffmpeg_opt.c
>
>              // avformat_find_stream_info() doesn't set this for us
> anymore.
>              ist->dec_ctx->framerate = st->avg_frame_rate;
>
> Why is avg_frame_rate assigned to  ist->dec_ctx->framerate ?

> Why not st->r_frame_rate;

Doesn't the documentation answer this question?

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".