[FFmpeg-devel] [PATCH 0/1] doc: fix binary values of SI prefixes

2022-08-17 Thread Chema Gonzalez
Simple SI/binary fixes. Chema Gonzalez (1): doc: fix binary values of SI prefixes doc/utils.texi | 8 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.37.2 ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org

[FFmpeg-devel] [PATCH 1/1] doc: fix binary values of SI prefixes

2022-08-17 Thread Chema Gonzalez
--- doc/utils.texi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/utils.texi b/doc/utils.texi index 232a0608b3..627b55d154 100644 --- a/doc/utils.texi +++ b/doc/utils.texi @@ -1073,13 +1073,13 @@ indication of the corresponding powers of 10 and of 2. @item T 10^1

[FFmpeg-devel] [PATCH 0/1] add motion_vec (motion vector) debug mode

2022-08-31 Thread Chema Gonzalez
This is useful if you want to see the motion vectors (MV) generated by an encoder. I used ffmpeg debug mode, which is also used by similar functionality, like the QP value dumper. Chema Gonzalez (1): avcodec/mpegutils: add motion_vec debug mode libavcodec/avcodec.h | 1 + libavcodec

[FFmpeg-devel] [PATCH 1/1] avcodec/mpegutils: add motion_vec debug mode

2022-08-31 Thread Chema Gonzalez
Add a new debug mode ("motion_vec") that prints the values of the motion vectors (MV). Note that, in order to give the same weight to MV from bigger blocks, we may print each MV pair more than once. Tested: ``` $ ./ffprobe -v quiet -show_frames -debug motion_vec /tmp/in.264 2>&1 >/dev/null ... [

[FFmpeg-devel] [PATCH 1/1] avcodec/mpegutils: add motion_vec debug mode

2022-08-31 Thread Chema Gonzalez
Add a new debug mode ("motion_vec") that prints the values of the motion vectors (MV). Note that, in order to give the same weight to MV from bigger blocks, we may print each MV pair more than once. Tested: ``` $ ./ffprobe -v quiet -show_frames -debug motion_vec /tmp/in.264 2>&1 >/dev/null ... [

[FFmpeg-devel] [PATCH 1/1] avcodec/mpegutils: add motion_vec debug mode

2022-08-31 Thread Chema Gonzalez
Add a new debug mode ("motion_vec") that prints the values of the motion vectors (MV). Note that, in order to give the same weight to MV from bigger blocks, we may print each MV pair more than once. Tested: ``` $ ./ffprobe -v quiet -show_frames -debug motion_vec /tmp/in.264 2>&1 >/dev/null ... [

[FFmpeg-devel] [PATCH 1/1] avcodec/mpegutils: add motion_vec debug mode

2022-08-31 Thread Chema Gonzalez
Add a new debug mode ("motion_vec") that prints the values of the motion vectors (MV). Note that, in order to give the same weight to MV from bigger blocks, we may print each MV pair more than once. Tested: ``` $ ./ffprobe -v quiet -show_frames -debug motion_vec /tmp/in.264 \ 2>&1 >/dev/null

Re: [FFmpeg-devel] [PATCH 1/1] avcodec/mpegutils: add motion_vec debug mode

2022-09-01 Thread Chema Gonzalez
Hi, All the other debug modes (qp, skip, mb_type) use the same approach. -Chema On Thu, Sep 1, 2022 at 6:30 AM Ronald S. Bultje wrote: > > Hi, > > On Wed, Aug 31, 2022 at 7:10 PM Chema Gonzalez wrote: >> >> Add a new debug mode ("motion_vec") that prints t

Re: [FFmpeg-devel] [PATCH 1/1] avcodec/mpegutils: add motion_vec debug mode

2022-09-01 Thread Chema Gonzalez
Hi Paul, Can you please describe how you can get the MV values? Thanks, -Chema On Thu, Sep 1, 2022 at 10:52 AM Paul B Mahol wrote: > > On Thu, Sep 1, 2022 at 5:06 PM Chema Gonzalez wrote: > > > Hi, > > > > All the other debug modes (qp, skip, mb_type) use the sa

Re: [FFmpeg-devel] [PATCH 1/1] avcodec/mpegutils: add motion_vec debug mode

2022-09-02 Thread Chema Gonzalez
So is there a filter that already dumps this information? Thanks, -Chema On Fri, Sep 2, 2022 at 12:56 AM Paul B Mahol wrote: > > On Thu, Sep 1, 2022 at 8:43 PM Chema Gonzalez wrote: > > > Hi Paul, > > > > Can you please describe how you can get the MV values? &g

Re: [FFmpeg-devel] [PATCH 1/1] avcodec/mpegutils: add motion_vec debug mode

2022-09-02 Thread Chema Gonzalez
Hi again, On Fri, Sep 2, 2022 at 9:10 AM Paul B Mahol wrote: > > On Fri, Sep 2, 2022 at 5:12 PM Chema Gonzalez wrote: > > > So is there a filter that already dumps this information? > > > > Not in text but in visual, note that you can write own code that uses &

Re: [FFmpeg-devel] [PATCH 1/1] avcodec/mpegutils: add motion_vec debug mode

2022-09-02 Thread Chema Gonzalez
Hi again, On Fri, Sep 2, 2022 at 2:05 PM Paul B Mahol wrote: > > > > So is there a filter that already dumps this information? > > > Not in text but in visual, note that you can write own code that uses > > > library to dump MV as text, because MV are exported when certain flag is > > > enabled.

Re: [FFmpeg-devel] [PATCH 1/1] avcodec/mpegutils: add motion_vec debug mode

2022-09-12 Thread Chema Gonzalez
rames in the next email. -Chema On Sat, Sep 3, 2022 at 5:08 AM Ronald S. Bultje wrote: > > Hi Chema, > > On Fri, Sep 2, 2022 at 11:12 AM Chema Gonzalez wrote: >> >> So is there a filter that already dumps this information? > > > Yes, it's called codecview. W

[FFmpeg-devel] [PATCH] doc/examples/extract_mvs: add motion information

2022-09-12 Thread Chema Gonzalez
Note that the motion information includes subpel motion information This was likely forgotten in 56bdf61baa04c4fd8d165f34499115ce0aa97c43. Tested: ``` $ make examples -j ... $ doc/examples/extract_mvs in.264 | head -40 | \ csvcut -C framenum,source,flags |csvlook | blockw | blockh | srcx | s

Re: [FFmpeg-devel] [PATCH] doc/examples/extract_mvs: add motion information

2022-09-22 Thread Chema Gonzalez
ping -Chema On Mon, Sep 12, 2022 at 4:50 PM Chema Gonzalez wrote: > > Note that the motion information includes subpel motion information > > This was likely forgotten in 56bdf61baa04c4fd8d165f34499115ce0aa97c43. > > Tested: > ``` > $ make examples -j > ... > $ d

[FFmpeg-devel] Bug on Bayer conversions

2022-09-25 Thread Chema Gonzalez
Hi, I found an issue while playing with Bayer pixel format conversions. ``` $ echo -ne '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff

[FFmpeg-devel] [PATCH 1/1] libswscale: force a minimum size of the slide for bayer sources

2022-09-26 Thread Chema Gonzalez
Bayer sources are read in groups of 2 lines (e.g. for a BGGR flavor, the first row contains only B and G samples, while the second row contains only G and R samples). They need to be read as a whole. Tested: `` $ echo -ne '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\

Re: [FFmpeg-devel] Bug on Bayer conversions

2022-09-26 Thread Chema Gonzalez
Yeah, it does. Will send a patch. Thanks! -Chema On Mon, Sep 26, 2022 at 12:58 AM Anton Khirnov wrote: > > Quoting Chema Gonzalez (2022-09-25 17:54:16) > > Hi, > > > > I found an issue while playing with Bayer pixel format conversions. > > > > ``` > >

Re: [FFmpeg-devel] [PATCH 1/1] libswscale: force a minimum size of the slide for bayer sources

2022-09-28 Thread Chema Gonzalez
Hi, On Wed, Sep 28, 2022 at 8:09 AM Anton Khirnov wrote: > > if (isBayer(srcFormat)) { > > +c->dst_slice_align = 2; > > IMO it's better to put this next to the line that sets dst_slice_align > for non-bayer cases, makes it clearer what the final value is. Are you suggesting setting `

[FFmpeg-devel] [PATCH] avformat/yuv4mpegdec: increase header limit

2022-10-20 Thread Chema Gonzalez
From: Chema Gonzalez Allows demuxing UHD F10: fps yuvj420p files ffmpeg (at HEAD as of now) is creating this: ``` $ ffmpeg -y -i source.265 /tmp/foo.y4m >& /dev/null ... $ xxd /tmp/raw.y4m |less : 5955 5634 4d50 4547 3220 5731 3932 3020 YUV4MPEG2 W1920 001

Re: [FFmpeg-devel] [Internet][PATCH 00/12] Add MediaCodec encoder and NDK MediaCodec support

2022-11-11 Thread Chema Gonzalez
On Thu, Nov 10, 2022 at 7:36 PM "zhilizhao(赵志立)" wrote: > > Ping for review. > > > On Oct 24, 2022, at 11:16, Zhao Zhili wrote: > > > > From: Zhao Zhili > > > > Firstly, some bugs were fixed (patch 1-4). > > > > Patch 5 and 6 make mediacodec_wrapper support Java MediaCodec and NDK > > MediaCodec

[FFmpeg-devel] [PATCH] avfilter: add "raw" modifier to print pts

2015-09-02 Thread Chema Gonzalez
From: Chema Gonzalez Example: $ ffplay -vf "drawtext=fontfile=/usr/share/fonts/truetype/ubuntu-font-family/UbuntuMono-R.ttf:text='%{pict_type} %{pts\:hms} %{pts\:raw} %{eif\:n\:u}': fontcolor=white@0.8:fontsize=40:x=7:y=680:box=1:boxcolor=black@0.8,showinfo" file.ts

[FFmpeg-devel] [RFC] A file format to store generic raw image/video files

2023-10-17 Thread Chema Gonzalez via ffmpeg-devel
# RFC: A file format to store generic raw image/video files Context: Developers and researchers often want to use raw image/video files, as they avoid the effects of encoding. Dealing with raw image/video files is typically done using raw files. This is an operational pain point, as the metadata a