Results 1 to 2 of 2

Thread: Gstreamer video receive in Qt

  1. #1
    Join Date
    Feb 2014
    Posts
    1
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11

    Default Gstreamer video receive in Qt

    Hi
    i'm using Gstreamer for stream my webcam C920 from an arm board to my Pc.
    i use H264 compression witch is sported with c920.
    streaming code is :

    ./capture -c 10000 -o | gst-launch-0.10 -v -e filesrc location=/dev/fd/0 ! h264parse ! rtph264pay ! udpsink host=192.168.1.20 port=1234

    and for receive in PC:

    gst-launch udpsrc port=1234 ! “application/x-rtp, payload=127” ! rtph264depay ! ffdec_h264 ! xvimagesink sync=false

    could some one help me to get video in Qt.
    I want to use video in my program.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Gstreamer video receive in Qt

    Let us just assume that "my program" is at the receiving end and that you really want to use the gstreamer pipelines you have constructed.

    Start the receiving stream using QProcess and change the endpoint to a filesink writing to /dev/fd/0 (or a named pipe). Then you should be able to read the video stream from the standard output channel of the QProcess instance (or the named pipe). What you do with it then is entirely up to you.

Similar Threads

  1. Project MESSAGE Disabling video due to lack of Glib/Gio/Gstreamer
    By allamsetty in forum Qt for Embedded and Mobile
    Replies: 3
    Last Post: 25th March 2012, 21:12
  2. Play video file with Phonon and GStreamer show black screen
    By SimbadSubZero in forum Qt Programming
    Replies: 2
    Last Post: 6th May 2010, 11:47
  3. Performance problems playing video with Phonon and GStreamer on QT Embedded.
    By MarcosRodriguez in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 3rd December 2009, 13:57
  4. Video freezes during mpeg video playback using Phonon
    By davejames in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2009, 08:45

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
  •  
Qt is a trademark of The Qt Company.