Skip to content

Instantly share code, notes, and snippets.

@me-suzy
Created January 21, 2026 05:15
Show Gist options
  • Select an option

  • Save me-suzy/0b4204578bc8f1114af4e51c6f04ca31 to your computer and use it in GitHub Desktop.

Select an option

Save me-suzy/0b4204578bc8f1114af4e51c6f04ca31 to your computer and use it in GitHub Desktop.
vezi ce probema are video.py
import subprocess
import json
filepath = r"g:\De pus pe FTP 2\masina de spalat\VID_20260120_143332.mp4"
cmd = ['ffprobe', '-v', 'quiet', '-print_format', 'json', '-show_streams', '-select_streams', 'v:0', filepath]
result = subprocess.run(cmd, capture_output=True, text=True)
print(result.stdout)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment