python - Supervisord twidler add ffmpeg job -
i need add program supervisor via supervisor twidler.
parameters (from debug) :
groupname = 'aeroponic' pname = 'bino@garasi01' progcfg = {'stderr_logfile_maxbytes': '1mb', 'stdout_events_enabled': 'false', 'stdout_capture_maxbytes': '1mb', 'stopwaitsecs': '10', 'killasgroup': 'false', 'stderr_logfile': '/home/bino/documents/ipcam/spv/bino@garasi01.err', 'stdout_logfile_backups': '10', 'stdout_logfile_maxbytes': '1mb', 'stopasgroup': 'false', 'command': 'ffmpeg rtsp://10.100.100.1:2000/stream/q1 -acodec copy -vcodec copy -strict -2 -strftime 1 -use_localtime 1 -g 30 -hls_time 2 -hls_list_size 3250 -hls_segment_filename ./%y-%m-%d_%h-%m-%s.ts -f hls ./index.m3u8', 'autostart': 'false', 'stderr_logfile_backups': '10', 'stdout_logfile': '/home/bino/documents/ipcam/spv/bino@garasi01.out'}
twidler function call
proxyobj.twiddler.addprogramtogroup(groupname,pname,progcfg)
but report error :
> xmlrpclib.fault: <fault 2: "incorrect_parameters: format string > '/home/bino/documents/ipcam/spv/ffmpeg > rtsp://10.100.100.1:2000/strem/q1 -acodec copy -vcodec copy -strict -2 > -strftime 1 -use_localtime 1 -g 30 -hls_time 2 -hls_list_size 3250 -hls_segment_filename ./%y-%m-%d_%h-%m-%s.ts -f hls ./index.m3u8' 'program:bino@garasi01.command' badly formatted: unsupported format > character 'y' (0x59) @ index 203 in section 'program:bino@garasi01' > (file: '/etc/supervisor/supervisord.conf')">
i thing problem ffmpeg command has '%y-%m-%d_%h-%m-%s' in it's parameter. thats requirement ffmpeg use timestamp name streams files
note : when replace '%y-%m-%d_%h-%m-%s' i.e : 'myfilename' adding process run ... thats not want.
kindly please tell me how fix this.
sincerely
-bino-
Comments
Post a Comment