Compare commits
No commits in common. "b682eb0f9c18ee1eb5fb23218c1869c6cbecb225" and "20604fdc7d20628e12c633ad340fd88ba8ca1591" have entirely different histories.
b682eb0f9c
...
20604fdc7d
|
@ -1,4 +1,3 @@
|
|||
videos
|
||||
output
|
||||
node/node_modules
|
||||
*.pth
|
|
@ -1,26 +0,0 @@
|
|||
#!/bin/python3
|
||||
|
||||
import sys
|
||||
import ffmpeg
|
||||
|
||||
if len(sys.argv) < 3 :
|
||||
print("Please provide input and output arguments")
|
||||
exit()
|
||||
|
||||
INPUT = sys.argv[1]
|
||||
OUTPUT = sys.argv[2]
|
||||
|
||||
# API documentation
|
||||
# https://kkroening.github.io/ffmpeg-python/
|
||||
|
||||
# create a stream from your input video
|
||||
# equivalent of: ffmpeg -i "${INPUT}"
|
||||
stream = ffmpeg.input(INPUT)
|
||||
|
||||
# shift all hue values by 180 degrees
|
||||
# equivalent of: -vf "hue=h=180"
|
||||
stream = ffmpeg.hue(stream, h=180)
|
||||
|
||||
stream = ffmpeg.output(stream, OUTPUT)
|
||||
|
||||
ffmpeg.run(stream)
|
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
python3 -m pip install ffmpeg-python
|
Loading…
Reference in New Issue