2018-08-20 15:52 GMT-03:00 Gyan Doshi <gyando...@gmail.com>:
> 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
>
I personally think the average user, just wanting to upscale and
image, shouldn't have to type that much.
For the common use case the filter always depends on extractplanes/mergeplanes.

>
> Regards,
> Gyan
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to