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

Yufei He yhe at matrox.com
Fri Apr 5 18:03:02 EEST 2019

On 04/05/2019 09:44 AM, Carl Eugen Hoyos wrote:

2019-04-04 20:06 GMT+02:00, Yufei He <yhe at matrox.com><mailto:yhe at matrox.com>:


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 at matrox.com]

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.



ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org<mailto:ffmpeg-user at ffmpeg.org>

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org<mailto:ffmpeg-user-request at ffmpeg.org> with subject "unsubscribe".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fgpbjgocfbghiihh.png
Type: image/png
Size: 536354 bytes
Desc: fgpbjgocfbghiihh.png
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20190405/eb761b63/attachment.png>

More information about the ffmpeg-user mailing list