ffmpeg -ss 00:00:30.0 -i input.wmv -c copy -t 00:00:10.0 output.wmv
ffmpeg -ss 30 -i input.wmv -c copy -t 10 output.wmv
# from 5:20 to 15:20 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -t 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -to 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 re-encoding
$ ffmpeg -ss 00:05:20 -accurate_seek -i input.mp4 -to 00:10:00 -c:v libx264 -c:a aac output.mp4
# last 10:00 of video copy
$ ffmpeg -sseof -00:10:00 -i input.mp4 -c copy output.mp4
# from 5:20 to 15:20 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -t 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -to 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 re-encoding
$ ffmpeg -ss 00:05:20 -accurate_seek -i input.mp4 -to 00:10:00 -c:v libx264 -c:a aac output.mp4
# last 10:00 of video copy
$ ffmpeg -sseof -00:10:00 -i input.mp4 -c copy output.mp4
# from 5:20 to 15:20 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -t 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -to 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 re-encoding
$ ffmpeg -ss 00:05:20 -accurate_seek -i input.mp4 -to 00:10:00 -c:v libx264 -c:a aac output.mp4
# last 10:00 of video copy
$ ffmpeg -sseof -00:10:00 -i input.mp4 -c copy output.mp4
ffmpeg -ss 00:00:30.0 -i input.wmv -c copy -t 00:00:10.0 output.wmv
ffmpeg -ss 30 -i input.wmv -c copy -t 10 output.wmv
# from 5:20 to 15:20 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -t 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -to 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 re-encoding
$ ffmpeg -ss 00:05:20 -accurate_seek -i input.mp4 -to 00:10:00 -c:v libx264 -c:a aac output.mp4
# last 10:00 of video copy
$ ffmpeg -sseof -00:10:00 -i input.mp4 -c copy output.mp4
# from 5:20 to 15:20 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -t 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -to 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 re-encoding
$ ffmpeg -ss 00:05:20 -accurate_seek -i input.mp4 -to 00:10:00 -c:v libx264 -c:a aac output.mp4
# last 10:00 of video copy
$ ffmpeg -sseof -00:10:00 -i input.mp4 -c copy output.mp4
# from 5:20 to 15:20 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -t 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -to 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 re-encoding
$ ffmpeg -ss 00:05:20 -accurate_seek -i input.mp4 -to 00:10:00 -c:v libx264 -c:a aac output.mp4
# last 10:00 of video copy
$ ffmpeg -sseof -00:10:00 -i input.mp4 -c copy output.mp4
# from 5:20 to 15:20 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -t 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -to 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 re-encoding
$ ffmpeg -ss 00:05:20 -accurate_seek -i input.mp4 -to 00:10:00 -c:v libx264 -c:a aac output.mp4
# last 10:00 of video copy
$ ffmpeg -sseof -00:10:00 -i input.mp4 -c copy output.mp4
import ffmpeg
!ffmpeg -y -i '/content/drive/MyDrive/GeekloneTech/mc/Object_Detection_Tracking/custom_video/2018-03-07.17-25-06.17-30-06.school.G339.mp4' -ss 00:00:00 -to 00:10:00 -codec copy -c:a aac '/content/drive/MyDrive/GeekloneTech/mc/Object_Detection_Tracking/custom_video/2018-03-07.17-25-06.17-30-06.school.G339_trimmed.mp4'
# from 5:20 to 15:20 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -t 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -to 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 re-encoding
$ ffmpeg -ss 00:05:20 -accurate_seek -i input.mp4 -to 00:10:00 -c:v libx264 -c:a aac output.mp4
# last 10:00 of video copy
$ ffmpeg -sseof -00:10:00 -i input.mp4 -c copy output.mp4
# from 5:20 to 15:20 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -t 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -to 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 re-encoding
$ ffmpeg -ss 00:05:20 -accurate_seek -i input.mp4 -to 00:10:00 -c:v libx264 -c:a aac output.mp4
# last 10:00 of video copy
$ ffmpeg -sseof -00:10:00 -i input.mp4 -c copy output.mp4
# from 5:20 to 15:20 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -t 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 copy (may fail when output format is diffrent)
$ ffmpeg -ss 00:05:20 -i input.mp4 -to 00:10:00 -c:v copy -c:a copy output.mp4
# from 5:20 to 10:00 re-encoding
$ ffmpeg -ss 00:05:20 -accurate_seek -i input.mp4 -to 00:10:00 -c:v libx264 -c:a aac output.mp4
# last 10:00 of video copy
$ ffmpeg -sseof -00:10:00 -i input.mp4 -c copy output.mp4