Echo duration of video in seconds without decimals If I use ffprobe to output the duration of a video file with:

ffprobe -i input.mkv -show_entries format=duration -v quiet -of csv="p=0"


I will get something like

3658.342000


How can I get the output in second only without the decimals? I do not mind if ffmpeg or Mediainfo has a better function for this. I just need to get the output in seconds.

I am using CMD in Win10.
Ended up using a batch file to export the timings to a text file and then turncate the value as a set variable.

ffprobe -i {filepath$} -show_entries format=duration -v quiet -of csv="p=0" &gt;&gt; duration.txt
setlocal enabledelayedexpansion
for /f "tokens=1,2,3,8 delims=\ " %%a in (duration.txt) do (
  for /f "tokens=1 delims=." %%i in ("%%a") do set _stime=%%i
)