[libav-bugs] [Bug 858] New: Encoding process finishes before the end of file with setpts and overlay filters

bugzilla at libav.org bugzilla at libav.org
Tue May 12 11:59:49 CEST 2015


https://bugzilla.libav.org/show_bug.cgi?id=858

            Bug ID: 858
           Summary: Encoding process finishes before the end of file with
                    setpts and overlay filters
           Product: Libav
           Version: git HEAD
          Hardware: IA64
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: ---
         Component: utilities
          Assignee: bugzilla at libav.org
          Reporter: volodya at Whengendarmesleeps.org

The exact command line:

avconv -i test.webm -loop 1 -i out.jpeg -an -filter_complex
"[1:v]trim=start=0:end=5[ol];[0:v]setpts=125+PTS[nv];[nv][ol]overlay=eof_action=pass[final]"
-map '[final]' -c:v libtheora -q:v 8 -t 12 outtest.ogv

The goal is to have out.jpeg displayed for 5 seconds and then have the rest of
test.webm playing. test.webm is 7 seconds long, so the video should be 12
seconds, however, encoding process stops after 7 seconds:

avconv version v12_dev0-680-g3a724a7, Copyright (c) 2000-2015 the Libav
developers
  built on Jan 22 2015 18:13:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
Input #0, matroska,webm, from 'test.webm':
  Duration: 00:00:07.01, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: vp8
      yuv420p, 1280x720, PAR 1:1 DAR 16:9
      25.33 fps, 1k tbn (default)
    Stream #0:1: Audio: vorbis
      44100 Hz, stereo, fltp (default)
[image2 @ 0x1cae1c0] max_analyze_duration 5000000 reached
Input #1, image2, from 'out.jpeg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #1:0: Video: mjpeg
      yuvj420p, pc, bt470bg/unknown/unknown
      1280x720 [PAR 1:1 DAR 16:9]
      25 fps, 25 tbn
File 'outtest.ogv' already exists. Overwrite ? [y/N] y
Output #0, ogg, to 'outtest.ogv':
  Metadata:
    encoder         : Lavf56.11.0
    Stream #0:0: Video: libtheora
      yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s
      25 fps, 1k tbn, 1k tbc
    Metadata:
      encoder         : Lavc56.11.0 libtheora
Stream mapping:
  Stream #0:0 (vp8) -> setpts
  Stream #1:0 (mjpeg) -> trim
  overlay -> Stream #0:0 (libtheora)
Press ctrl-c to stop encoding
frame=    0 fps=  0 q=0.0 size=       3kB time=10000000000.00 bitrate=  
0.0kbitframe=    0 fps=  0 q=0.0 size=       3kB time=10000000000.00 bitrate=  
0.0kbit^Cframe=   24 fps=  8 q=0.0 size=     125kB time=125.96 bitrate=  
8.2kbits/s   frame=   24 fps=  8 q=0.0 Lsize=     135kB time=125.96 bitrate=  
8.8kbits/s    
video:130kB audio:0kB other streams:0kB global headers:3kB muxing overhead:
3.408018%
Received signal 2: terminating.
volodya at mastodont:~/tmp$ avconv -i test.webm -loop 1 -i out.jpeg -an
-filter_complex
"[1:v]trim=start=0:end=5[ol];[0:v]setpts=125+PTS[nv];[nv][ol]overlay=eof_action=pass[final]"
-map '[final]' -c:v libtheora -q:v 8 -t 12 outtest.ogv
avconv version v12_dev0-680-g3a724a7, Copyright (c) 2000-2015 the Libav
developers
  built on Jan 22 2015 18:13:02 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
Input #0, matroska,webm, from 'test.webm':
  Duration: 00:00:07.01, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: vp8
      yuv420p, 1280x720, PAR 1:1 DAR 16:9
      25.33 fps, 1k tbn (default)
    Stream #0:1: Audio: vorbis
      44100 Hz, stereo, fltp (default)
[image2 @ 0x29261c0] max_analyze_duration 5000000 reached
Input #1, image2, from 'out.jpeg':
  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
    Stream #1:0: Video: mjpeg
      yuvj420p, pc, bt470bg/unknown/unknown
      1280x720 [PAR 1:1 DAR 16:9]
      25 fps, 25 tbn
File 'outtest.ogv' already exists. Overwrite ? [y/N] y
Output #0, ogg, to 'outtest.ogv':
  Metadata:
    encoder         : Lavf56.11.0
    Stream #0:0: Video: libtheora
      yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s
      25 fps, 1k tbn, 1k tbc
    Metadata:
      encoder         : Lavc56.11.0 libtheora
Stream mapping:
  Stream #0:0 (vp8) -> setpts
  Stream #1:0 (mjpeg) -> trim
  overlay -> Stream #0:0 (libtheora)
Press ctrl-c to stop encoding
frame=  168 fps= 15 q=0.0 Lsize=     349kB time=7.09 bitrate= 403.2kbits/s    
video:340kB audio:0kB other streams:0kB global headers:3kB muxing overhead:
2.702920%


I have uploaded test files to setpts-earlystop directory.

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-bugs/attachments/20150512/c2540b88/attachment.html>


More information about the libav-bugs mailing list