LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-10-2016, 04:22 PM   #1
crbum
LQ Newbie
 
Registered: Sep 2015
Posts: 13

Rep: Reputation: Disabled
how to setup gst-launch command in rygel


I'm trying to setup rygel to stream live tv using a Hauppauge USB Live 2. I can't get the setup for the mux. I would like to use mp4(m4v) as it seems to need less buffering on the client.
This is my command line for both video and audio (it works)
gst-launch-1.0 v4l2src device=/dev/video0 ! queue ! videoscale ! video/x-raw,width=720,height=480 ! videoconvert ! autovideosink alsasrc device=hw:1,0 ! audio/x-raw,channels=2,rate=48000,depth=16 ! audioconvert ! autoaudiosink

I cannot find and do not know how to modify this command to encode the video and audio to sink into a mp4mux for streaming over the rygel dlna server.

I found this youtube video which works with the right hardware.
www.youtube.com/watch?v=Vndt_9Sq0Io
This method would use a lot of cpu and add a latency not necessary if using the v4l2src.

Below is the format for the video capture card.
ski@mediactr:~$ v4l2-ctl --list-formats
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : 16bpp YUY2, 4:2:2, packed

I do have a v4l-ctl command to set the card parameters so that output in above command line and ffmpeg works.

The reason for wanting this is to stream the output from my Dish network 2nd tuner to other parts of the house. Houses here are built of cement so running cables is !!!!!! The 2nd tuner remote is UHF and reaches from most of the house so no ir channel changers or special channel software is needed.
 
Old 01-19-2016, 11:27 AM   #2
crbum
LQ Newbie
 
Registered: Sep 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
I got a working system by making the changes to the example from https://www.youtube.com/channel/UCzl...3w-oofdFC4C9fQ. I changed the source sinks to the following command line.
ximagesrc-launch=asfmux streamable=true name=muxer v4l2src device=/dev/video0 ! queue ! videoscale ! video/x-raw,width=720,height=480 ! videoconvert ! avenc_wmv1 bitrate=4000000 compliance=strict ! muxer. alsasrc device=hw:1,0 ! audio/x-raw,channels=2,rate=48000,depth=16 ! audioconvert ! avenc_wmav1 bitrate=128000 compliance=strict ! muxer.

I am using XBMC as the client which has a short latency. Acceptable. I do have a problem when the client is shut down and restarted. Alsasrc device hw:1,0 is not found unless I restart the server. Working on solving that problem.
 
Old 02-18-2016, 02:48 PM   #3
crbum
LQ Newbie
 
Registered: Sep 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
Update

I got a reasonably working system.
I disabled all Rygel plugins except gst launch and used the above command line. V4l-ctl needs run with the parameters for the Hauppauge device before starting Rygel.
I setup a Raspberry pi 2 with Raspbian Wheezy lite, xfce desktop and all gstreamer1 codecs. Then installed Kodi and setup as a dlna client. (OpenELEC and Xbian did not want to run smoothly)
Sound still cuts out intermittently so am still looking for a mux that may work better.
I tried gupnp and gmrender-resurrect but couldn't resize the window.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] rygel-gst-launch command line crbum Linux - Software 2 01-10-2016 09:57 AM
gstreamer: play-pause of audio file hangs with gst-play command on Raspberry pi 2 Roronoa Zoro Linux - Newbie 2 10-14-2015 11:33 AM
gst-launch, monochrome black-and-white output houdelou Linux - Software 0 05-12-2010 11:02 AM
gst-launch elements usage shariefbe Linux - Embedded & Single-board computer 0 01-11-2010 07:59 AM
gst-launch shariefbe Linux - Software 10 01-04-2010 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration