danielk117
danielk117
Leerzeichen war ein gutes Stichwort... Folgendes hab ich an der `tvstreamrecord.py` angepasst: ``` attr = [config.cfg_ffmpeg_path,"-i", ('"'+self.url+'"'), '-y', '-t', deltasec] + ffargs + [('"'+fn+'"')] attr = " ".join(attr) ``` und...
So, neue Erkenntnisse und Probleme... Änderungen an der `tvstreamrecord.py` wie in meinem letzten Kommentar. In der Config als `ffmpeg`-Pfad: ``` sh /volume1/@appstore/VideoStation/bin/ffmpegbinder.sh ``` Mein `ffmpegbinder.sh`-Skript sieht so aus: ``` #!/bin/sh...
Sehr gut, fast gleichzeitig geantwortet :D
Ich würde deine `split`-Methode mal testen und `shell=True` weglassen.
Also `split`-Methode ohne `shell=True` und als `ffmpeg`-Pfad `sh /volume1/@appstore/VideoStation/bin/ffmpegbinder.sh` funktioniert: ``` 2019-02-10 10:39:05.105 | Record: Stopflag for 'NZZ Standpunkte - Die Hydra hebt ihr Haupt - der neue Judenhass' received...
Ich vermute auch das mein Skript nicht als Kind-Prozess läuft. Mal gucken warum das so ist...
Also, das Skript wird als Kind ausgeführt... ``` $ sudo pstree -p ├─python(26950)─┬─sh(12510)───ffmpeg(12512) │ ├─{python}(26960) │ ├─{python}(26961) │ ├─{python}(26962) │ ├─{python}(26963) │ ├─{python}(26964) │ ├─{python}(26965) │ ├─{python}(26966) │ ├─{python}(26967) │...
Nach dem Beenden der Aufnahmen über tvstreamrecord ist nur noch der `ffmpeg`-Prozess da. Somit wird das Bash-Skript anscheinend korrekt beendet. ``` root 20015 1 3 13:33 ? 00:00:01 /volume1/@appstore/VideoStation/bin/ffmpeg -i...
So, funktioniert auch ohne `sh`: ``` 2019-02-10 13:59:13.147 | ['/volume1/@appstore/VideoStation/bin/ffmpegbinder.sh', u'-i', 'rtsp://192.168.170.43:554/?avm=1&freq=306&bw=8&msys=dvbc&mtype=64qam&sr=6900&specinv=1&pids=0,16,17,18,20,100,101,102,103,104,106,84,105,1176,2070,2171', u'-y', u'-t', u'15466', u'-loglevel', u'fatal', u'-acodec', u'copy', u'-vcodec', u'copy', u'/volume2/Aufnahme/20190210135913 - Sportschau.ts'] 2019-02-10 13:59:13.146 | FFMPEG (rtsp) record...
> Mein .terminate() sendet SIGTERM nur an parent: > https://unix.stackexchange.com/questions/146756/forward-sigterm-to-child-in-bash > Wenn es ohne .sh nicht funktioniert, könnte das die Lösung sein. Wird probiert ;-)