[FFmpeg-user] Copying time stamp metadata

DopeLabs dopelabs at dubstep.fm
Wed Jul 25 14:32:51 EEST 2018


-c copy in command a), but not b)?

does this work?

c) fmpeg -i input.mkv -c copy -copyts -movflags +faststart output.mkv 

> On Jul 24, 2018, at 8:06 42PM, Abhinav Kashyap <akashya at gmail.com> wrote:
> 
> Replying back to myself.
> 
> I am still not sure if copy is the correct approach or map ? Any
> suggestions ?
> 
> On Mon, Jul 23, 2018 at 10:56 AM, Abhinav Kashyap <akashya at gmail.com> wrote:
> 
>> Hello,
>> 
>> I am trying to find out how can I copy timestamp related metadata from a
>> file to another ?
>> 
>> My input file has UNIX timestamp (start time)  which is what i need to
>> copy. Here is what I am doing or have tried:
>> 
>> 1) Read a video file frame by frame in OpenCV
>> 2) Modify frames (image processing such as Gaussian blurring or sharpening)
>> 3) Write back frames in a video using openCV. Written file has a start
>> time of 0.00 ms.
>> 4) Copy metadata from original file to modified file using below command :
>>   a) ffmpeg -i input.mkv -c copy -movflags +faststart output.mkv - This
>> copies bunch of metadata but not the start time which is what I am after.
>>   b) fmpeg -i input.mkv -copyts -movflags +faststart output.mkv - This
>> copies the video content as with all metadata including the start time.
>> 
>> 
>> Any ideas how can I copy just the start time from originial file to
>> modified file ?
>> 
>> Thanks,
>> Abhi
>> 
>> 
>> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list