[FFmpeg-trac] #3192(undetermined:new): Dropped Frames With Overlay Filter

FFmpeg trac at avcodec.org
Sun Jan 12 20:27:19 CET 2014


#3192: Dropped Frames With Overlay Filter
-------------------------------------+-------------------------------------
             Reporter:  ian_m        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:  x11grab      |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by jnvsor):

 Switching the input order is a workaround

 {{{
 ffmpeg \
 -f x11grab -framerate 30 -s hd1080 -i :0.0 \
 -f v4l2 -framerate 30 -i /dev/video0 \
 -filter_complex '[0][1]overlay=x=300:y=300[cap]' \
 -map '[cap]' \
 -c:v libx264 -pix_fmt yuv444p -preset ultrafast -qp 0 \
 -threads 2 -y out.avi
 # frame=  225 fps= 18 q=-1.0 Lsize=   36782kB time=00:00:12.56
 bitrate=23977.3kbits/s dup=0 drop=74
 }}}
 Switch the input order and switch it on the overlay filter again:
 {{{
 ffmpeg \
 -f v4l2 -framerate 30 -i /dev/video0 \
 -f x11grab -framerate 30 -s hd1080 -i :0.0 \
 -filter_complex '[1][0]overlay=x=300:y=300[cap]' \
 -map '[cap]' \
 -c:v libx264 -pix_fmt yuv444p -preset ultrafast -qp 0 \
 -threads 2 -y out.avi
 # frame=  208 fps= 30 q=-1.0 Lsize=   25993kB time=00:00:06.93
 bitrate=30711.3kbits/s
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/3192#comment:10>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list