Hi,
thanks for these infos ; so now, it brings another question : how is it 
possible to know the locations of the keyframes ?
Thanks for your advices.
Regards,
HA
________________________________
From: ffmpeg-user <ffmpeg-user-boun...@ffmpeg.org> on behalf of Ferdi Scholten 
<fe...@sttc-nlp.nl>
Sent: Thursday, February 29, 2024 15:50
To: ffmpeg-user@ffmpeg.org <ffmpeg-user@ffmpeg.org>
Subject: Re: [FFmpeg-user] ISSUE ABOUT EXTRACTING

Hello all,
> using release 6.1 of ffmpeg, I have an issue about extracting a part from a 
> mkv video, into another mkv video.
>
> If it can help, there are a few infos about the source video (the video from 
> which I extract) ; infos provided by the VLC MEDIA PLAYER software :
>
>       [cid:e9bf5d83-4a7e-410b-b522-08d2d7c75fc1]
>
> I use the command to extract from "position" (if we can say so) 1320 seconds 
> to "position" 3183 seconds :
>
>       ffmpeg.exe -i "C:\temp\source video.mkv" -ss 1320 -to 3183 -codec copy 
> "D:\temp\new video.mkv"
>
> and in the new video, at the beginning, there are a few seconds missing 
> (about 2-3 seconds) : a few seconds I see in the source video, but not in the 
> new video.
>
> Does anybody have an idea about a way to solve it ?
>
> Please let me know if you require another technical infos, to help ; thanks 
> in advance.
>
> Regards,
> HA
>
When using codec:copy you can only cut on keyframes so your video will
be cut on the nearest keyframe to the time you specified. Keyframes can
be seconds to minutes apart depending on the type of video and codec used.

So to use exact timing you either need to transcode both source and
detination, or use raw video material for both.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to