Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Encode video with alpha channel

  1. #11
    Join Date
    Sep 2006
    Beans
    3,710

    Re: Encode video with alpha channel

    Quote Originally Posted by xxlray View Post
    Code:
    [image2 @ 0x1cb68c0] Could not find codec parameters for stream 0 (Video: png): unspecified size
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    *.png: could not find codec parameters
    I could not duplicate this behavior. Do you have an extra png file in there that is not part of the sequence but is being picked up by the glob pattern?

    Code:
    $ ffmpeg -f image2 -pattern_type glob -i '*.png' -c:v qtrle out.mov
    ffmpeg version N-55663-g78d2a78 Copyright (c) 2000-2013 the FFmpeg developers
      built on Aug 20 2013 09:56:02 with gcc 4.8.1 (GCC) 20130725 (prerelease)
      configuration: --prefix=/usr --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-nonfree --enable-x11grab
      libavutil      52. 42.100 / 52. 42.100
      libavcodec     55. 28.100 / 55. 28.100
      libavformat    55. 14.100 / 55. 14.100
      libavdevice    55.  3.100 / 55.  3.100
      libavfilter     3. 82.100 /  3. 82.100
      libswscale      2.  5.100 /  2.  5.100
      libswresample   0. 17.103 /  0. 17.103
      libpostproc    52.  3.100 / 52.  3.100
    Input #0, image2, from '*.png':
      Duration: 00:00:02.80, start: 0.000000, bitrate: N/A
        Stream #0:0: Video: png, gray8a, 720x480 [SAR 2835:2835 DAR 3:2], 25 fps, 25 tbr, 25 tbn, 25 tbc
    Output #0, mov, to 'out.mov':
      Metadata:
        encoder         : Lavf55.14.100
        Stream #0:0: Video: qtrle (rle  / 0x20656C72), argb, 720x480 [SAR 1:1 DAR 3:2], q=2-31, 200 kb/s, 12800 tbn, 25 tbc
    Stream mapping:
      Stream #0:0 -> #0:0 (png -> qtrle)
    Press [q] to stop, [?] for help
    Input stream #0:0 frame changed from size:720x480 fmt:gray8a to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:gray8a
    Input stream #0:0 frame changed from size:720x480 fmt:gray8a to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:pal8
    Input stream #0:0 frame changed from size:720x480 fmt:pal8 to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:pal8
    Input stream #0:0 frame changed from size:720x480 fmt:pal8 to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:pal8
    Input stream #0:0 frame changed from size:720x480 fmt:pal8 to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:pal8
    Input stream #0:0 frame changed from size:720x480 fmt:pal8 to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:pal8
    Input stream #0:0 frame changed from size:720x480 fmt:pal8 to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:gray8a
    Input stream #0:0 frame changed from size:720x480 fmt:gray8a to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:gray8a
    Input stream #0:0 frame changed from size:720x480 fmt:gray8a to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:gray8a
    Input stream #0:0 frame changed from size:720x480 fmt:gray8a to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:gray8a
    Input stream #0:0 frame changed from size:720x480 fmt:gray8a to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:gray8a
    Input stream #0:0 frame changed from size:720x480 fmt:gray8a to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:gray8a
    Input stream #0:0 frame changed from size:720x480 fmt:gray8a to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:gray8a
    Input stream #0:0 frame changed from size:720x480 fmt:gray8a to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:gray8a
    Input stream #0:0 frame changed from size:720x480 fmt:gray8a to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:pal8
    Input stream #0:0 frame changed from size:720x480 fmt:pal8 to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:pal8  
    Input stream #0:0 frame changed from size:720x480 fmt:pal8 to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:gray8a
    Input stream #0:0 frame changed from size:720x480 fmt:gray8a to size:720x480 fmt:pal8
    Input stream #0:0 frame changed from size:720x480 fmt:pal8 to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:gray8a
    Input stream #0:0 frame changed from size:720x480 fmt:gray8a to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:gray8a
    Input stream #0:0 frame changed from size:720x480 fmt:gray8a to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:pal8
    Input stream #0:0 frame changed from size:720x480 fmt:pal8 to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:gray8a
    Input stream #0:0 frame changed from size:720x480 fmt:gray8a to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:pal8
    Input stream #0:0 frame changed from size:720x480 fmt:pal8 to size:720x480 fmt:rgba
    Input stream #0:0 frame changed from size:720x480 fmt:rgba to size:720x480 fmt:gray8a
    frame=   70 fps=0.0 q=0.0 Lsize=    7877kB time=00:00:02.80 bitrate=23044.9kbits/s    
    video:7876kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.014260%
    Notice that your input frames have varied pixel formats: rgba, pal8, and gray8a.

    The qtrle output works ok for me (in After Effects), but it does not appear to be completely transparent. Of course I forgot to check a single PNG image to determine if it is the source that is the cause or the encoding.

  2. #12
    Join Date
    Jun 2010
    Beans
    57

    Re: Encode video with alpha channel

    Now that I set also the filling frames to RGB the video looks still crappy in VLC but seems to work well in openshot. I still have the issue that ffmpeg 2.0.1 does not take the file pattern but the old version worked with the command "ffmpeg -f image2 -pattern_type glob -i '*.png' -vcodec qtrle chromakeyed.mov". Thanks for your effort.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •