cross-compiling ffmpeg with --enable-libtensorflow ?

Questions that occur when trying to compile FFmpeg.
Post Reply
Posts: 208
Joined: Sun Apr 28, 2013 1:03 pm

cross-compiling ffmpeg with --enable-libtensorflow ?

Post by hydra3333 »

I noticed that ffmpeg has an interesting feature
--enable-libtensorflow enable TensorFlow as a DNN module backend for DNN based filters like sr [no]
( with an associated ffmpeg check "enabled libtensorflow && require libtensorflow tensorflow/c/c_api.h TF_Version -ltensorflow" )
which apparently enables "AI" type filters to be used eg per libavfilter/vf_sr.c
"srcnn", "Super-Resolution Convolutional Neural Network model
"espcn", "Efficient Sub-Pixel Convolutional Neural Network model"
The github source doesn't really provide instructions on how to cross-compile libtensorflow as a Windows library to use in building a static Windows x64 ffmpeg eg along the lines of dependencies built in rdp's cross-compile script or in deadsix27's cross-compile tool ... ile_script or indeed in Zeranoe's builds.

Thoughts and hints on how to cross-compile a static x64 ffmpeg with --enable-libtensorflow (cpu based and maybe even optionally an opencl based tensorflow if at all possible) would be much appreciated.

Zeranoe, I wonder if it would it be possible for you to foresee a time when --enable-libtensorflow may be enabled in your builds ?

Posts: 1
Joined: Wed Oct 31, 2018 11:59 am

Re: cross-compiling ffmpeg with --enable-libtensorflow ?

Post by cepesh »

I would also like to join hydra3333 in this request. Thanks

Posts: 10
Joined: Tue Dec 06, 2011 7:55 pm

Re: cross-compiling ffmpeg with --enable-libtensorflow ?

Post by cjplay »

Agree. Super Resolution scale to 3x or 4x, then downscale to make an SD->HD conversion. It should be sharper, but have no platform to test it.

Post Reply