[digikam] [Bug 374799] Feature request - ability to convert video files

wildcowboy bugzilla_noreply at kde.org
Mon Feb 6 18:11:21 GMT 2017


https://bugs.kde.org/show_bug.cgi?id=374799

--- Comment #5 from wildcowboy <aegoreev at gmail.com> ---
Also, if you want to copy metadata from one video file to another you can use
this command:

ffmpeg -i in.mp4 -i out.mp4 -map 1 -map_metadata 0 -c copy fixed.mp4

in.mp4 – the original file before conversion
out.mp4 – the file after Handbrake conversion
fixed.mp4 – the file with "corrected" metadata

Take two input files (in.mp4 and out.mp4), which are assigned the IDs 0 and 1,
respectively.
* Map only the video/audio/subtitle streams from file 1 to the output (-map 1),
so we take the bitstreams that are already converted
* Map only the metadata from file 0 to the output (-map_metadata 0)
* Use the copy codec (-c copy) to copy all the bitstreams instead of
re-encoding the video.

After that, you could obviously rename fixed.mp4 to out.mp4.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Digikam-devel mailing list