Search code examples
formatgstreamerhttp-live-streaming

Gstreamer - Unix time in a name


I use gstreamer for making video files from my USB camera. The name of the every file must contain the current unix time. It's possible to paste the time in a name by ffmpeg:

 ffmpeg -i /dev/video1 -c copy file%s.ts

As a result: file1543843169.ts

Is it possible to make the same name in Gstreamer? If I try to add %s I get file<null>.ts

Thanks is advance!


Solution

  • Pretty brief description.. But are you looking something like that (for Linux for example):

    [..] ! filesink location=file$(date +%s).ts