StreamingCommunity/Test/Util/ffmpegVersion.py
Dark1291 c622cbbdf0
Add USSR (#247)
* Add betterer formattation and ffmpeg installation testing

* Update readme

* Better formattation

* Update readme with tg

* Change tg folder

* Add RRC

* Rename ...
2025-02-05 13:20:20 +01:00

29 lines
666 B
Python

# 05.02.25
# Fix import
import sys
import os
src_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..'))
sys.path.append(src_path)
from StreamingCommunity.Util.ffmpeg_installer import FFMPEGDownloader
def test_ffmpeg_downloader():
# Create an instance of the downloader
downloader = FFMPEGDownloader()
# Check if the download method works and fetches the executables
ffmpeg, ffprobe, ffplay = downloader.download()
# Output the destination paths
print(f"FFmpeg path: {ffmpeg}")
print(f"FFprobe path: {ffprobe}")
print(f"FFplay path: {ffplay}")
if __name__ == "__main__":
test_ffmpeg_downloader()