[FFmpeg-user] hls playlist got wiped out when ffmpeg runs as systemd child process

Greg Oliver oliver.greg at gmail.com
Fri Jul 8 19:16:16 EEST 2022


On Fri, Jul 8, 2022 at 5:25 AM jb <jonbae77 at gmail.com> wrote:

> Hello everybody,
>
> I have a control program which running as a systemd service. This
> program spawns ffmpeg and that is writing to a HLS playlist. I use this
> flags:
>
>     -hls_flags append_list+delete_segments+omit_endlist+program_date_time
>
> The interesting thing is, when I stop the systemd process my HLS
> playlist got wiped out and when I start the service again ffmpeg will
> not continue the playlist, instead it writes a new one.
>
> When I run my control program directly from shell, I don't have this
> behavior. I can stop the program and start it again and the HLS playlist
> will continue.
>
> Does anybody notice this different behaviors? And has an idea why this
> is happen and what I can do here?
>

systemd is not stateful - unless you create stateful files with your
exec{pre,post,start} stanzas, it will get overwritten every time.



> I use the current ffmpeg version from master.
>
>
> Regards
>
> Jonathan
>


More information about the ffmpeg-user mailing list