-
-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
nice to support async ?
the ffmpeg parameter can be run using another python ffmpeg module
e.g. module
typed-ffmpeg
ffmpeg-python
e.g. code
import ffmpeg
url = 'http://takemotopiano.aa1.netvolante.jp:8190/nphMotionJpeg?Resolution=320x240&Quality=Standard&Framerate=30'
output = 'rtsp_%Y_%m_%d_%H_%M_%S.mp4'
scale = 'scale = 320 : -1'
segment_time = '00:01:00'
stream = ffmpeg.input(url).output(filename = output,
vcodec = 'libx264', #acodec = 'copy',
reset_timestamps = 1,
strftime = 1,
f = 'segment',
segment_time = segment_time,
segment_atclocktime = 1,
vf = scale,
r = 25, ).overwrite_output().run_async()
to stop async
stream.terminate()
best regards
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels