Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-09 Thread Carl Eugen Hoyos
2019-04-10 0:24 GMT+02:00, Yufei He :
> On 04/08/2019 02:03 PM, Carl Eugen Hoyos wrote:
>> 2019-04-08 18:56 GMT+02:00, Yufei He :
>>> On 04/07/2019 05:37 PM, Carl Eugen Hoyos wrote:
 2019-04-05 17:03 GMT+02:00, Yufei He :
> 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-09 Thread Yufei He
On 04/08/2019 02:03 PM, Carl Eugen Hoyos wrote:
> 2019-04-08 18:56 GMT+02:00, Yufei He :
>> On 04/07/2019 05:37 PM, Carl Eugen Hoyos wrote:
>>> 2019-04-05 17:03 GMT+02:00, Yufei He :
 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-08 Thread Carl Eugen Hoyos
2019-04-08 18:56 GMT+02:00, Yufei He :
> On 04/07/2019 05:37 PM, Carl Eugen Hoyos wrote:
>> 2019-04-05 17:03 GMT+02:00, Yufei He :

>>> 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-08 Thread Yufei He
On 04/07/2019 05:37 PM, Carl Eugen Hoyos wrote:
> 2019-04-05 17:03 GMT+02:00, Yufei He :
>> On 04/05/2019 09:44 AM, Carl Eugen Hoyos wrote:
>>
>> 2019-04-04 20:06 GMT+02:00, 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.
>>
>>
>>
>> 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:part1.1295D7D8.8D499E95@matrox.com]
> 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 3.
> 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
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-07 Thread Carl Eugen Hoyos
2019-04-05 17:03 GMT+02:00, Yufei He :
> On 04/05/2019 09:44 AM, Carl Eugen Hoyos wrote:
>
> 2019-04-04 20:06 GMT+02:00, 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.
>
>
>
> 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:part1.1295D7D8.8D499E95@matrox.com]

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

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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-05 Thread Yufei He
On 04/05/2019 10:22 AM, Carl Eugen Hoyos wrote:
> 2019-04-04 20:06 GMT+02:00, Yufei He :
>
>> 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
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-05 Thread Carl Eugen Hoyos
2019-04-04 20:06 GMT+02:00, Yufei He :

> 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-05 Thread Carl Eugen Hoyos
2019-04-04 20:06 GMT+02:00, 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.

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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-05 Thread Yufei He
On 04/05/2019 09:21 AM, Carl Eugen Hoyos wrote:
> 2019-04-05 14:19 GMT+02:00, Yufei He :
>
>> Normally, how does a user send a sample file to
>> ffmpeg-user@ffmpeg.org ?
> 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
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-05 Thread Carl Eugen Hoyos
2019-04-05 14:19 GMT+02:00, Yufei He :

> Normally, how does a user send a sample file to
> ffmpeg-user@ffmpeg.org ?

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

Carl Eugen
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-05 Thread andrei ka
and why not to put it on google drive :-P

On Fri, Apr 5, 2019 at 2:19 PM Yufei He  wrote:

> On 04/04/2019 02:47 PM, Carl Eugen Hoyos wrote:
> >
> >> Am 04.04.2019 um 20:06 schrieb Yufei He :
> >>
> >> 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 ffmpeg-user@ffmpeg.org ?
>
> Regards.
>
> Yufei.
>
> > ___
> > ffmpeg-user mailing list
> > ffmpeg-user@ffmpeg.org
> > https://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >
> > To unsubscribe, visit link above, or email
> > ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-05 Thread Yufei He
On 04/04/2019 02:47 PM, Carl Eugen Hoyos wrote:
>
>> Am 04.04.2019 um 20:06 schrieb Yufei He :
>>
>> 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 ffmpeg-user@ffmpeg.org ?

Regards.

Yufei.

> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-04 Thread Carl Eugen Hoyos


> Am 04.04.2019 um 20:06 schrieb Yufei He :
> 
> 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] an issue on decoding a mxf xavc long gop file.

2019-04-04 Thread 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
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".