mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-05 02:55:25 +00:00

* Add betterer formattation and ffmpeg installation testing * Update readme * Better formattation * Update readme with tg * Change tg folder * Add RRC * Rename ...
29 lines
666 B
Python
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() |