[libav-tools] Invalid pixel format string '-1' on overlay

Timm Murray tmurray at wumpus-cave.net
Sun May 24 04:49:03 CEST 2015

I'm trying to combine two videos.  One is an avi with h264, and the other
is a mov with transparent pngs for a graphical overlay.

I'm combining them with:

avconv -i ${INPUT_VID} -i ${OVERLAY_VID} -filter_complex 'overlay' -b:v
8000000 ${OUTPUT_VID}

This results in:

avconv version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2000-2014 the
Libav developers
  built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
[avi @ 0x1f897a0] scale/rate is 1/0 which is invalid. (This file has been
generated by broken software.)
[avi @ 0x1f897a0] max_analyze_duration reached
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, avi, from 'public/record_1430663840.avi':
  Duration: 00:00:00.00, start: 0.000000, bitrate: -2147483 kb/s
    Stream #0.0: Video: h264, 1920x1080, 30 tbn
    Stream #0.1: Audio: mp3, 44100 Hz, mono, s16p, 120 kb/s
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf54.20.4
  Duration: 00:00:50.43, start: 0.000000, bitrate: 2791 kb/s
    Stream #1.0(eng): Video: png, bgra, 1920x1080, 2789 kb/s, 30 fps, 30
tbr, 30 tbn
[buffer @ 0x1f8d4c0] Invalid pixel format string '-1'
Error configuring filters.

I had it mostly working on ffmpeg with "overlay=format=rgb", but it looks
like avconv doesn't take an format parameter for overlay (at least, not
according to the docs).

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-tools/attachments/20150523/2d80b1ff/attachment.html>

More information about the libav-tools mailing list