O
O
OKNOZA2016-02-27 15:27:43
fmpeg
OKNOZA, 2016-02-27 15:27:43

How to embed time in FFmpeg?

I record the channel in M3U8 HLS in this way.

ffmpeg -i rtp://@IP:5050  -vcodec copy -acodec aac -strict experimental -ar 44100 -ac 2 -f segment -segment_list c:/hls/live.m3u8 -segment_list_type m3u8 -segment_time 3600 -segment_list_size 3600  -segment_wrap 70  -segment_format mpegts c:/hls/live%03d.ts

We record everything and create a playlist, but cuts are created like this.
live01.ts
live02.ts
и тдю

And how can I do to embed the time there? Realtime, for example, like this.
live-2016-02-27-15-26-33.ts
It can be seen from the line that it is YEAR-MONTH-DAY-HOUR-MINUTE-SECOND
Here in this live%03d.ts line you need to embed TIME, how can this be done?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question