Re: [FFmpeg-devel] There may be a bug for .mp4 reader.

2019-04-02 Thread Yufei He
On 04/01/2019 05:57 PM, Hendrik Leppkes wrote: > On Mon, Apr 1, 2019 at 7:21 PM Yufei He wrote: >> Hi >> >> There may be a bug for .mp4 reader. >> >> On decoding some ntsc mp4 files with my h.264 codec, from actvx I received, >> >> avctx->framera

Re: [FFmpeg-devel] There may be a bug for .mp4 reader.

2019-04-01 Thread Yufei He
On 04/01/2019 01:42 PM, Devin Heitmueller wrote: > Hello Yufei, > >> On Apr 1, 2019, at 1:21 PM, Yufei He wrote: >> >> Hi >> >> There may be a bug for .mp4 reader. >> >> On decoding some ntsc mp4 files with my h.264 codec, from actvx I receive

[FFmpeg-devel] There may be a bug for .mp4 reader.

2019-04-01 Thread Yufei He
Hi There may be a bug for .mp4 reader. On decoding some ntsc mp4 files with my h.264 codec, from actvx I received, avctx->framerate.den is 100 avctx->framerate.num is 2997 avctx->pkt_timebase.num is 1 avctx->pkt_timebase.den is 2997 Duration of every packet I received from

[FFmpeg-devel] patch for supporting m264 on h.264 decoding and encoding.

2019-03-29 Thread Yufei He
Hi This is the fixed version of this patch that follows the way other companies do on supporting FFmpeg. 1>Put library mvm264 to the nonfree list in configure 2>Remove calling to dlopen Please review. Thanks. Yufei From 1a636c0aa2288731374a4a6139c385baad2a8e98 Mon Sep 17 00:00:00 2001

Re: [FFmpeg-devel] patch for a new H.264 codec with Matrox m264 card.

2019-03-28 Thread Yufei He
On 03/28/2019 04:18 PM, Dennis Mungai wrote: > On Thu, 28 Mar 2019 at 22:40, Nicolas George wrote: > >> No need to Cc me, I am subscribed to the list. >> >> Yufei He (12019-03-28): >>> In windows, we need provide the interface library mvM264.lib to our >

Re: [FFmpeg-devel] patch for a new H.264 codec with Matrox m264 card.

2019-03-28 Thread Yufei He
On 03/28/2019 10:00 AM, Jean-Baptiste Kempf wrote: > > On Thu, 28 Mar 2019, at 13:41, Yufei He wrote: >> In windows, we need provide the interface library mvM264.lib to our >> customers so that they can build. But driver installation of the card >> does not have the in

Re: [FFmpeg-devel] patch for a new H.264 codec with Matrox m264 card.

2019-03-28 Thread Yufei He
On 03/27/2019 11:35 AM, Nicolas George wrote: Yufei He (12019-03-27): Here is the fixed patch for a new H.264 codec with Matrox M264 card. It calls the default library from the card's driver installation. Please review. You are still using programmatic dynamic linking instead of normal

[FFmpeg-devel] patch for a new H.264 codec with Matrox m264 card.

2019-03-27 Thread Yufei He
Hi Here is the fixed patch for a new H.264 codec with Matrox M264 card. It calls the default library from the card's driver installation. Please review. Thanks. Yufei. From da521d4e1315199a5fb781adf8a56efdc64c2b42 Mon Sep 17 00:00:00 2001 From: yhe Date: Wed, 27 Mar 2019 11:05:41 -0400

Re: [FFmpeg-devel] scaling option

2019-03-27 Thread Yufei He
On 03/26/2019 02:36 PM, Dennis Mungai wrote: On Tue, Mar 26, 2019, 21:20 Yufei He mailto:y...@matrox.com>> wrote: On 03/26/2019 11:31 AM, Dennis Mungai wrote: > On Tue, 26 Mar 2019 at 18:21, Yufei He > mailto:y...@matrox.com>> wrote: > >> On 03/26/2019 08:53

Re: [FFmpeg-devel] scaling option

2019-03-26 Thread Yufei He
On 03/26/2019 11:31 AM, Dennis Mungai wrote: > On Tue, 26 Mar 2019 at 18:21, Yufei He wrote: > >> On 03/26/2019 08:53 AM, Timo Rothenpieler wrote: >> On 26/03/2019 13:47, Yufei He wrote: >> Hi >> >> Is there option for scaling on transcoding ? >> >

Re: [FFmpeg-devel] scaling option

2019-03-26 Thread Yufei He
On 03/26/2019 08:53 AM, Timo Rothenpieler wrote: On 26/03/2019 13:47, Yufei He wrote: Hi Is there option for scaling on transcoding ? e.g. transcoding from a quadhd file to 640 * 480. Thanks. Yufei. Yes there is, but this is ffmpeg-devel, so not the place to ask user questions. Yes, I see

[FFmpeg-devel] scaling option

2019-03-26 Thread Yufei He
Hi Is there option for scaling on transcoding ? e.g. transcoding from a quadhd file to 640 * 480. Thanks. Yufei. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link

Re: [FFmpeg-devel] [PATCH] News: Removal of libndi

2019-03-25 Thread Yufei He
Yes, it's part of the installation for the driver of the card. People who have the card will install it. Thanks. Yufei On 03/25/2019 01:04 PM, Jean-Baptiste Kempf wrote: > On Mon, 25 Mar 2019, at 14:02, Yufei He wrote: >> Matrox card is very similar to cards from other companies

Re: [FFmpeg-devel] AVPixelFormat for YUYV 10 bit.

2019-03-25 Thread Yufei He
It's a standard format. I suggest that it should be in AVPixelFormat.  the codec can do the conversion. Yufei. On 03/25/2019 09:55 AM, Kieran Kunhya wrote: > On Mon, 25 Mar 2019 at 13:53 Yufei He wrote: > >> Hi >> >> I think there may be one format

[FFmpeg-devel] AVPixelFormat for YUYV 10 bit.

2019-03-25 Thread Yufei He
Hi I think there may be one format missing in AVPixelFormat. AV_PIX_FMT_YUYV210 [cid:part1.002B7405.3138ACFB@matrox.com] The start of each line in the V210 video buffer format must be aligned to a multiple of 48 pixels (128 bytes). This means that if a line is not a multiple of 48, each

Re: [FFmpeg-devel] [PATCH] News: Removal of libndi

2019-03-25 Thread Yufei He
Hi Matrox card is very similar to cards from other companies in terms of accesses. I suggest that we should differentiate hardware codec and software codec. Hardware codecs are very strong help to FFmpeg for high resolution video encoding and decoding like 4k. though gradually software codec

Re: [FFmpeg-devel] mxf file support

2019-03-22 Thread Yufei He
. On 03/22/2019 11:11 AM, Tomas Härdin wrote: > fre 2019-03-22 klockan 12:47 + skrev Yufei He: >> Hi Tomas >> >>  From my tests, I find FFmpeg can demux XAVC mxf files from Sony and >> find the video stream is actually h.264 data. This is very good to us. >&

Re: [FFmpeg-devel] mxf file support

2019-03-22 Thread Yufei He
not supported yet in FFmpeg. Probably we can support it if it's not there yet. Yufei. On 03/21/2019 06:09 PM, Tomas Härdin wrote: > tor 2019-03-21 klockan 18:48 + skrev Yufei He: >> Hi >> >> It seems FFmpeg supports reading all kinds of mxf files from Sony and >> Panason

[FFmpeg-devel] mxf file support

2019-03-21 Thread Yufei He
Hi It seems FFmpeg supports reading all kinds of mxf files from Sony and Panasonics. it's very good to find that FFmpeg can support Sony XAVC QuadHD files and find the essence data is actually H.264. Our customers have a lot of high data rate mxf files from Sony and Panasonics. They need

[FFmpeg-devel] aac variable encoding

2019-03-21 Thread Yufei He
Hi On transcoding from 1080p .ts files to .mp4 files with my m264 codec, audio of the output .mp4 files stutters. We found audio of the stuttering files is vbr. I did not set aac encoding bitrate. somehow it becomes vbr when I use my m264 codec on transcoding 1080p files. It works well for

Re: [FFmpeg-devel] patch for a new H.264 codec with Matrox m264 card.

2019-03-15 Thread Yufei He
Hi Jean-Baptiste Sorry for the complexity and confusion to so many people involved on this new patch. We have been working on this for 4 months because some of our big customers on internet business have been asking Matrox to make our M264 card to support FFmpeg on h.264 transcoding, esp on

[FFmpeg-devel] patch for a new H.264 codec with Matrox m264 card.

2019-03-14 Thread Yufei He
Hi Here is the patch for a new H.264 codec with Matrox m264 card. Please review. Thanks. Yufei. From b1f7779028378f3e0d5360766a8591d0cf5a0a71 Mon Sep 17 00:00:00 2001 From: yhe Date: Thu, 14 Mar 2019 10:10:46 -0400 Subject: [PATCH] H.264 encoder and decoder support with Matrox M264. ---

[FFmpeg-devel] extradata on h.264 encoding for mp4 and mov files.

2019-03-11 Thread Yufei He
Hi It seems ffmpeg can only generate AVCC box if I set extradata in my encoder's init function, it does not take the extradata if I make it in receive_packet function. But I don't have sps and pps when the encoder's init function is called. I only can get it when I get first encoded frame.

Re: [FFmpeg-devel] patch for a new H.264 codec

2019-03-11 Thread Yufei He
Hi Carl Matrox M264 is similar to other hardware codecs. I saw amf_load_library and nvenc_load_library in ffmpeg. Matrox M264 is the same. We got a lot customers using ffmpeg and they want to use Matrox M264 to do transcoding. Thanks a lot. Yufei. static int

[FFmpeg-devel] How to make a mp4 file have AVCC box

2019-03-07 Thread Yufei He
t;extradata) return AVERROR(ENOMEM); memcpy(avctx->extradata, avpkt->side_data->data, avpkt->side_data->size); avctx->extradata_size = avpkt->side_data->size; } av_bsf_free(); } On 03/06/2019 02:10 PM, James Almer wrote: On 3/6/2019 4:04 PM, Yufei He wrote: Hi I wa

[FFmpeg-devel] How to make a mp4 file have AVCC box

2019-03-07 Thread Yufei He
{ avctx->extradata = av_mallocz(avpkt->side_data->size + AV_INPUT_BUFFER_PADDING_SIZE); if (!avctx->extradata) return AVERROR(ENOMEM); memcpy(avctx->extradata, avpkt->side_data->data, avpkt->side_data->size); avctx->extradata_size = avpkt->side_data->size; } av_bsf_free(

[FFmpeg-devel] question for ff_extract_extradata_bsf

2019-03-06 Thread Yufei He
Hi I want to use ff_extract_extradata_bsf to get extradata from a h.264 frame. Here is the code. AVPacket *avpkt; // There is valid data. AVBSFContext *ctx = NULL; ret = av_bsf_alloc(_extract_extradata_bsf, ); ret = ff_extract_extradata_bsf.init(ctx); ret =

[FFmpeg-devel] question for ff_extract_extradata_bsf

2019-03-06 Thread Yufei He
Hi I want to use ff_extract_extradata_bsf to get extradata from a h.264 frame. Here is the code. AVPacket *avpkt; // there is valid data. AVBSFContext *ctx = NULL; ret = av_bsf_alloc(_extract_extradata_bsf, ); ret = ff_extract_extradata_bsf.init(ctx); ret =

Re: [FFmpeg-devel] patch for a new H.264 codec

2019-02-26 Thread Yufei He
e guide says. > > Apart from that: Everything that Nicolas wrote. > > In addition this: > > On Mon, Feb 25, 2019 at 19:49:43 +, Yufei He wrote: >> index c90f119..f70368b 100644 >> --- a/Changelog >> +++ b/Changelog >> @@ -11,6 +11,7 @@ version : >&

Re: [FFmpeg-devel] patch for a new H.264 codec

2019-02-26 Thread Yufei He
Hi Tomas Thanks for the review. My codec is a hardware codec, it depends an dynamic library that goes with the M264 card. The way it works will be: 1>Our customers buy the card and install the drivers of it. 2>They Compile ffmpeg. 3>Call ffmpeg with codec option of m264. That's why I use

[FFmpeg-devel] patch for a new H.264 codec

2019-02-25 Thread Yufei He
Hi Please review this one. Thanks. Yufei. On 02/25/2019 02:58 PM, Nicolas George wrote: Yufei He (12019-02-25): From 7dd17409a22858f3c18d832c301fb904508dea3b Mon Sep 17 00:00:00 2001 From: yhe <mailto:y...@matrox.com> Date: Mon, 25 Feb 2019 14:38:21 -0500 Subject: [PATCH] M264

[FFmpeg-devel] patch for a new H.264 codec

2019-02-25 Thread Yufei He
Hi Here is the patch. Please check. Thanks. Yufei. From 7dd17409a22858f3c18d832c301fb904508dea3b Mon Sep 17 00:00:00 2001 From: yhe Date: Mon, 25 Feb 2019 14:38:21 -0500 Subject: [PATCH] M264 codec support --- .vscode/settings.json| 27 +++ Changelog|

[FFmpeg-devel] patch for a new H.264 codec

2019-02-25 Thread Yufei He
Hi I just finished a new codec for h.264, how to send patches to review ? This is my first piece of code for ffmpeg. When you submit your patch, please use git format-patch or git send-email.