0

I write this command in commandPrompt but that can not get Duration

ffmpeg -i d:\12.flv 2>&1 | grep \"Duration\"

I have this error
'grep ' is not recognized as an internal or external command, operable programe or batch file
What is problem?

Hamid Bahmanabady
  • 665
  • 1
  • 8
  • 20
  • Also see [How to get video duration in seconds?](http://superuser.com/a/945604/110524) for more examples. – llogan Aug 23 '15 at 17:02

1 Answers1

3

best way I have found is:

ffmpeg -i input.ext 2>&1 | find "Duration"

now, that gives you the duration start and bitrate line. hope this helps.

Giacomo1968
  • 25,759
  • 11
  • 71
  • 103
Greg
  • 41
  • 6