[FFmpeg-user] background process getting terminated
nicolas.george at normalesup.org
Sat Jul 21 11:47:12 CEST 2012
Le quartidi 4 thermidor, an CCXX, focus television a écrit :
> I am using (nohup ffmpeg -i "rtmp://localhost:1935/base2
nohup is a stupid hack that does not really work. You should use setsid to
really detach the process from the controlling tty.
> Playpath=mam1.stream live=1" -vcodec copy -b:v 700k -c:a copy -f
> flv rtmp://localhost/mal1/mam1 ;)&
You need to prevent ffmpeg from reading on its standard input. For that,
either add "< /dev/null" or use the new -nostdin option.
> But after some time it is getting terminated. Not sure if it is due
> to the bug nohup file or because i close the terminal session.
> I tried screen and background but still the process terminates after
> some hours.
> Not sure what is wrong.
> I dont want the log file and want to run it in background so that it
> doesnt get terminated when i close ssh.
Maybe you do not want the log file, but if it does not work, you need it. If
The advice above do not fix that problem, be sure to read the errors in the
log. You can consider discarding the log once you are sure everything works
fine (but even so, I do not advise to).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 198 bytes
Desc: Digital signature
More information about the ffmpeg-user