MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _resolve_ffmpeg_bin

Function _resolve_ffmpeg_bin

IntelOSINT.py:19773–19791  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19771@app.route('/api/media/process', methods=['POST'])
19772def api_media_process():
19773 def _resolve_ffmpeg_bin():
19774 sys_ffmpeg = shutil.which("ffmpeg")
19775 if sys_ffmpeg:
19776 return sys_ffmpeg
19777 try:
19778 import imageio_ffmpeg
19779 exe = imageio_ffmpeg.get_ffmpeg_exe()
19780 if exe and Path(exe).exists():
19781 return exe
19782 except Exception:
19783 try:
19784 _install_python_package("imageio-ffmpeg")
19785 import imageio_ffmpeg
19786 exe = imageio_ffmpeg.get_ffmpeg_exe()
19787 if exe and Path(exe).exists():
19788 return exe
19789 except Exception:
19790 pass
19791 return None
19792
19793 def _resolve_ffprobe_bin(ffmpeg_bin=None):
19794 sys_ffprobe = shutil.which("ffprobe")

Callers 3

probe_metadataFunction · 0.85
_build_segment_concatFunction · 0.85
api_media_processFunction · 0.85

Calls 1

_install_python_packageFunction · 0.85

Tested by

no test coverage detected