[FFmpeg-devel] [PATCH 2/2] libavfilter: Removes stored DNN models. Adds support for native backend model file format in tf backend.

Gyan Doshi gyandoshi at gmail.com
Mon Aug 20 21:52:57 EEST 2018


On 20-08-2018 11:52 PM, Sergey Lavrushkin wrote:

> 
> But there are some issues. First, to use this filter for formats with
> chroma channels I do:
> ffmpeg -i in.bmp -filter_complex 'extractplanes=y+u+v[y][u][v]' -map '[y]'
> y.bmp -map '[u]' u.bmp -map '[v]' v.bmp
> ffmpeg -i y.bmp -vf sr=dnn_backend=tensorflow:model=espcn.model y2.bmp
> ffmpeg -i u.bmp -vf scale=iw*2:-1 u2.bmp
> ffmpeg -i v.bmp -vf scale=iw*2:-1 v2.bmp
> ffmpeg -i y2.bmp -i u2.bmp -i v2.bmp -filter_complex
> 'mergeplanes=0x001020:yuv444p' out.bmp
> Can these commands be merged into one command? 

Something like,

     ffmpeg -i in.bmp -filter_complex
            'format=yuvj444p,extractplanes=y+u+v[y][u][v];
             [y]sr=dnn_backend=tensorflow:model=espcn.model[y-sr];
             [u]scale=iw*2:-1[u2x];[v]scale=iw*2:-1[v2x];
             [y-sr][u2x][v2x]mergeplanes=0x001020:yuvj444p'
             out.bmp


Regards,
Gyan


More information about the ffmpeg-devel mailing list