[FFmpeg-trac] #4260(avfilter:new): hqdn3d usage in segment input creation creates invalid last segment

FFmpeg trac at avcodec.org
Wed Jan 14 13:07:56 CET 2015


#4260: hqdn3d usage in segment input creation creates invalid last segment
------------------------------------+------------------------------------
             Reporter:  blacktrash  |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avfilter
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by blacktrash):

 The sample is here: http://media.blacktrash.org/x/hqdn3d-test.mov

 I'll try to create a smaller input sample, but that might prove to be
 difficult as a minimal change in duration will hide the problem, see
 below.

 Meanwhile I've compacted the triggering command line to (no audio needed
 if `-segment_time_delta` is used, see below):
 {{{
 $ ffmpeg -y -i hqdn3d-test.mov -an -filter:v hqdn3d,scale=480:270 \
 -f mpegts -c:v libx264 \
 -profile:v baseline -x264opts level=3.1:ref=1 \
 -force_key_frames 'expr:gte(t,n_forced*5)' - \
 | ffmpeg -i - -c copy -map 0 -f segment -segment_time 5 \
 -segment_time_delta `awk 'BEGIN { print 1 / (2 * 30000/1001) }'` \
 -segment_list test.m3u8 %d.ts
 }}}

 Or, with hardcoded `awk` calculation result:
 {{{
 $ ffmpeg -y -i hqdn3d-test.mov -an -filter:v hqdn3d,scale=480:270 \
 -f mpegts -c:v libx264 \
 -profile:v baseline -x264opts level=3.1:ref=1 \
 -force_key_frames 'expr:gte(t,n_forced*5)' - \
 | ffmpeg -i - -c copy -map 0 -f segment -segment_time 5 \
 -segment_time_delta 0.0166833 \
 -segment_list test.m3u8 %d.ts
 }}}

 Recap of triggering conditions:
 - hqdn3d filter in mpegts creation
 - constrained baseline profile in mpegts creation
 - precise recommended segment_time_delta (half framerate) or an aac audio
 track (for the latter, see https://trac.ffmpeg.org/ticket/3859 probably)

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4260#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list