3

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

Original

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

Result

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

2
  • Which metadata do you wish to preserve?
    – Gyan
    Commented Aug 18, 2016 at 6:42
  • @Mulvya i want to keep Major Brand and minor brand, is that possible? and could you tell me what the meaning of handler_name :IsoMedia File Produce by Google. Thanks
    – MiraClee
    Commented Aug 19, 2016 at 7:04

1 Answer 1

1

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)

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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