[Bug 724856] New: mpegpsdemux for python unnormal

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Feb 20 21:14:08 PST 2014


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

           Summary: mpegpsdemux for python unnormal
    Classification: Platform
           Product: GStreamer
           Version: 1.1.1
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: 765621965 at qq.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Hi all:
    Recently I use gstreamer to develop a program.I wanna exchanging H.264 ps
stream to es stream.When I use below pipeline ,it works well:

gst-launch-0.10 filesrc location=test.264 ! typefind !  mpegpsdemux  ! 
filesink location=es.264  

But ,When I change this way to use a python program,the es.264(filesink) is 0.

My program is :

import gi
gi.require_version('Gst', '1.0')

from gi.repository import GObject, Gst
import os,sys,threading
#from ctypes import *

GObject.threads_init()
Gst.init(None)

pipeline = Gst.Pipeline()
filesrc = Gst.ElementFactory.make('filesrc','filesrc')
filesrc.set_property('location', 'E:\\test.264')
pipeline.add(filesrc)


typefind = Gst.ElementFactory.make('typefind','typefind')
pipeline.add(typefind)


mpegpsdemux = Gst.ElementFactory.make('mpegpsdemux','mpegpsdemux')
pipeline.add(mpegpsdemux)


filesink = Gst.ElementFactory.make('filesink','filesink')
filesink.set_property('location', 'E:\\es.264')
pipeline.add(filesink)

filesrc.link(typefind)
typefind.link(mpegpsdemux)
mpegpsdemux.link(filesink)
#typefind.link(filesink)

pipeline.set_state(Gst.State.PLAYING)
print "start..."

GObject.MainLoop().run()



what is the problem????

-- 
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