I have MP4 file. It's duration is 18 minutes 22 seconds. I want to cut part form 7:35 to 14:01 and to save this part as another MP4 file without reencoding. How to do it using FFmpeg?


May you try

ffmpeg -y -i input.mp4 -ss 00:07:35 -to 00:14:01 -c copy output.mp4
  • Thank you, xer-rex. I want to analyze: video: codec, bit rate, frame rate mode, frame rate, color space, chroma subsampling, bit depth; audio: codec, bit rate mode, bit rate, bits per sample, sampling rate - before cutting and after. What software on Windows to use to analyze? MediaInfo? ExifTool? Else? – Konskoo Sep 23 '20 at 11:19
  • 1
    Let's see if this help:: ffprobe -v quiet -print_format json -show_format -show_streams output.mp4 – xer-rex Sep 23 '20 at 13:35
  • Thank you, xer-rex. I made this command. I received many information. Row hierarchy and braces. Good. I made this with both files: file before cutting and file after. How to represent this data conveniently? Maybe in some table form? Left column - file before cutting, right column - file after cutting. How to do this? – Konskoo Oct 5 '20 at 0:18
  • 1
    Do you mean the csv, ffmpeg.org/ffprobe.html#compact_002c-csv? – xer-rex Oct 6 '20 at 0:06
  • 1
    I find JSON is better cuz i use it on my nodejs/python programs – xer-rex Oct 7 '20 at 10:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.