How to cutting a video and keep all format and metadata I want to cut long videos into several smaller parts without changing any format and metadata from the original video.



I used these commands


  ffmpeg -i input -ss 00:00:05 -t 100 -c:a copy -c:v copy output
  
  ffmpeg -i input -ss 00:00:05 -t 100 -metadata "major_brand=mp42, minor_version=0" -c:v copy -c:a copy output
  
  ffmpeg -i input -ss 00:00:05 -t 100 -map_metadata 0 -c:v copy -c:a  copy output
  
  ffmpeg -i input -ss 00:00:05 -t 100 -map_metadata 0 -b:v 460k -c:a  copy output




but still get different results from the original video.

Is there another command that I can use for cutting the video with metadata results identical to the original one ?

Thanks
FFmpeg only allows you to alter/override the major brand, not the minor.

Command is 

ffmpeg -i input -ss 00:00:05 -t 100 -brand mp42 -c:v copy -c:a copy output


MP4box will allow you to override both.

mp4box -brand mp42:0 file.mp4


If you want to change the handler name as well, use

mp4box -brand mp42:0 -name 2="IsoMedia File Produce by Google" file.mp4


(2 is the track index i.e. the 2nd track)