[Bug 705531] New: h264parse does not always properly reset when put to STATE_NULL

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Mon Aug 5 12:36:20 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=705531
  GStreamer | gst-plugins-bad | 1.1.3

           Summary: h264parse does not always properly reset when put to
                    STATE_NULL
    Classification: Platform
           Product: GStreamer
           Version: 1.1.3
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: p.rennert at cs.ucl.ac.uk
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Hi,

I have a dynamic pipeline where I have two bins doing double buffering (see
below) [1]. It works if I use fresh bins with all elements factory made. Once I
swap them back and try to recycle a bin it does not work anymore. I tried to
set the bins into STATE_NULL but it does not really reinitializes them.

I first thought it might be the mp4mux, but I made now some better debugging
and everything works if I replace the h264parse with a new one between the
swaps.

Strangely, the pipeline does not crash, it seems as the h264parse is throwing
the buffers away. (There seems to be no memory leak either).

Unfortunately (for debugging purposes) everything works perfectly if I do not
use the uvch264src but if I read a mp4 file from disk [2].

I am working on git HEAD (I just pulled again and tested against it)

[1] gst-launch-1.0 -e uvch264src device=/dev/video1 name=src auto-start=true
src.vfsrc ! queue name=prevQueue !
video/x-raw,width=320,height=240,framerate=30/1 ! autovideosink
name=previewsink src.vidsrc ! queue name=vidQueue !
video/x-h264,width=1920,height=1080,framerate=30/1,profile=constrained-baseline
! tee name=t ! queue ! h264parse ! avdec_h264 ! autovideosink t. ! queue
name=srcQueue ! myBin

Template of bins I swap around:
myBin: queue name=fileQueue1 ! h264parse name=ph264_1 ! mp4mux name=mux_1 !
filesink name=filesink1 location="test.mp4" 


[2] filebased version:
gst-launch-1.0 -e filesrc location="/run/media/peter/home/tmp/webcam/Video
66.mp4" ! qtdemux ! queue ! tee name=t ! queue ! h264parse ! avdec_h264 !
autovideosink t. ! queue ! h264parse ! mp4mux ! filesink
location=/run/media/peter/home/tmp/webcam/test.mp4

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list