ffmpeg time format in filter_complex

1

I wanted to trim video. I mean I wanted to select few sections from one video and then concat they or mix they together!

I did it.
But in "filter_complex" I can not type start point time format like:
hh:mm:ss.0
If I will type "trim=start=02:22:00.0" it fails....
Instead if I will type "trim=start=8520" then it will work!

    ffmpeg.exe -i video1.mp4 -filter_complex "[0:v]trim=duration=145[a]; [0:v]trim=start=8520:end=8553,setpts=PTS-STARTPTS[b]; [a][b]concat[c1]" -map [c1] output.mp4  

So I should only type seconds!
Tell me why?
So help me to type time format in "filter_complex" like... start=02:22:00.0 end=02:22:33.0

IremadzeArchil19910311

Posted 2016-04-04T16:12:44.930

Reputation: 827

Answers

1

Update: This functionality was broken since July 2013. Fixed in June 2016.


Enclose it in single quotes and escape the colons,

trim=start='02\:22\:00':end='02\:22\:33'

Gyan

Posted 2016-04-04T16:12:44.930

Reputation: 21 016

this method did not work – IremadzeArchil19910311 – 2016-04-04T16:47:58.887

What was the message or result? – Gyan – 2016-04-04T17:00:58.957

This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review

– Heptite – 2016-04-05T03:06:05.080

@Heptite what does not provide an answer - the comment or my post? – Gyan – 2016-04-05T05:45:25.727

it showed me a 3 line messages... – IremadzeArchil19910311 – 2016-04-05T14:48:44.527

Press [q] to stop, [?] for help – IremadzeArchil19910311 – 2016-04-05T14:48:51.590

frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=00:00:00.00 bitrate=N/A speed= 0x – IremadzeArchil19910311 – 2016-04-05T14:49:05.717

video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown – IremadzeArchil19910311 – 2016-04-05T14:49:19.403

this does not work, on windows at least. e.g "afade=t=out:st='01:44:25':d=25" gives error Value 44.000000 for parameter 'type' out of range [0 - 1] – Mikhail V – 2017-05-29T12:39:46.463

@MikhailV the colons have to be escaped.

– Gyan – 2017-05-29T13:20:31.370

@Mulvya thanks! now I see. So probably this answers the question too? – Mikhail V – 2017-05-29T13:57:21.520

@MikhailV yes, answer updated. – Gyan – 2017-05-29T15:23:23.587