[FFmpeg-trac] #4138(undetermined:new): Lavfilter output cyclically the same frame when using trim filter with pipe
FFmpeg
trac at avcodec.org
Wed Nov 26 03:09:28 CET 2014
#4138: Lavfilter output cyclically the same frame when using trim filter with pipe
-------------------------------------+-------------------------------------
Reporter: olderz | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: trim | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by olderz):
Replying to [comment:5 cehoyos]:
> I suspect this is just a question about what the trim filter (that I had
never tested so far) is supposed to do with the timestamp of the first
output frame. I wonder if setpts will solve your issue.
Right! With the setpts filter:
{{{ffmpeg -i input.mkv -map 0:v -c:v rawvideo -f yuv4mpegpipe vf
trim=start_frame=500,setpts=PTS-STARTPTS - | ffmpeg -i - -c:v libx264 -crf
17 output.mkv}}}
and also with the filter_complex {{{-filter_complex
[0:v]trim=start_frame=500[v0];[v0]setpts=PTS-STARTPTS[v1] -map [v1] -c:v
rawvideo ...}}}
it works fine. I tried a lot of commands, but I did not think to setpts,
sorry.
I opened this ticket because I thought it was a bug; I did not wrote here
with the intention to get assistance.
Thank you so much for your help.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4138#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list