avconv how to copy all stream and merge metadata (fix creation date)?
Solution 1:
After reading the documentation and lots of searches i finally got the answer I wanted, the final command is:
avconv -i IN.mp4 -i METADATA.txt -map_metadata 1 -codec copy -map 0 OUT.mp4
This means:
- use the inputs:
IN.mp4
andMETADATA.txt
- map the metadata from input 1 (
METADATA.txt
) - copy all codecs (no transcoding)
- map all streams from input 0 (
IN.mp4
) - write to
OUT.mp4