format-location signals of splitmuxsink
Stephenwei
lofy.stephen at gmail.com
Tue Mar 17 10:45:51 UTC 2020
Update!
I try a python code to implement this function and work success.
splitmuxsink.set_property("location", external_video + "/%03d.mkv")
splitmuxsink.set_property("muxer", mkv_muxer)
splitmuxsink.set_property("max-files", 60)
splitmuxsink.set_property("max-size-time", 1000000000)
def cb_splitmuxsink_format_location(splitmux, fragment_id,
external_video_path):
start_time = datetime.datetime.fromtimestamp(time.time())
s_sec = int(start_time.strftime("%S"))
name = external_video_path + "%03d" %s_sec + ".mkv"
return str(name)
Have any suggestions?
-----
GStreamer is a convenient multimedia platform, I like it.
Develop the NVR system on ARM/x86(c/python)
Use python to generate NVR is crazy, of course works fine.
--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
More information about the gstreamer-devel
mailing list