Вы находитесь на странице: 1из 3

Raspberry Pi View topic - Multicast GPU decoding

Quick Start

http://www.raspberrypi.org/forums/viewtopic.php?f=63&t=25543

Downloads

Buy Codecs

Forum

FAQs

About

FAQ Register Login

8 posts
by dbrb2 Thu Dec 13, 2012 10:32 am
Hi,

Posts: 36

I have been trying to decode multicast video using my pi.

Joined: Sun Nov 25, 2012


6:15 pm

VLC can do this, but doesn't currently use the GPU


OMX player uses the GPU, but doesn't seem to support multicast video
I imagine eventually tVLC will support GPU decoding...? In the meantime is this a problem
that anyone else has encountered and/or solved?
Cheers,
Ben
by RomanNV Thu Dec 13, 2012 12:02 pm
Try this:

Posts: 19

Code: Select all

Joined: Sat Aug 25, 2012

omxplayer udp://multicast address or IP:port

11:39 am

for example:
Code: Select all
omxplayer udp://238.1.1.15:1234
by dbrb2 Thu Dec 13, 2012 3:35 pm
Hi,

Posts: 36

No joy - but I think I know why:

Joined: Sun Nov 25, 2012


6:15 pm

When using VLC, I join my multicast group by providing an SDP file of the form:
v=0
m=video <multicast_port> RTP/AVP 96
c=IN IP4 <multicast_ip>
a=rtpmap:96 RTP/AVP
a=source-filter: incl IN IP4 <multicast_ip> <unicast_ip>
My first suspicion was that the problem I was having with the suggested solution was the
source-specific-multicast on the last line of the SDP.
However, whilst trying to launch vlc with the above sdp works, trying to launch either VLC or
omxplayer with:
vlc/omxplayer udp/rtp://<unicast_ip>@<multicast_ip>:<multicast_port> does not
So there is some other key bit of info in the sdp file I am not passing into the players via the
command line. I'll keep trying
by dbrb2 Thu Dec 13, 2012 4:58 pm
Ok....calling at the command line does, according to tshark, bring me video when using vlc

Posts: 36

(just testing omx) - but no video. So there is something missing between that call and the full

1 of 3

7/25/2014 12:40 PM

Raspberry Pi View topic - Multicast GPU decoding

Quick Start

http://www.raspberrypi.org/forums/viewtopic.php?f=63&t=25543

Downloads

Buy Codecs

Forum

FAQs

About

by dbrb2 Thu Dec 13, 2012 5:32 pm


...omxplayer with the following:

Posts: 36

omxplayer udp://<unicast_ip>@<multicast_ip>:<multicast_port>

Joined: Sun Nov 25, 2012


6:15 pm

from the pi quits immediately with "have a nice day"


vlc udp://<unicast_ip>@<multicast_ip>:<multicast_port>
From either the pi or my local machine brings the multicast traffic to the machine, but does
not play it.
In the formate case, pwerhaps omx does not support SSM?
In the latter, something missing from the command line call that is provided when using the
full sdp...
by dbrb2 Fri Dec 14, 2012 11:03 am
Ok....I'm making some progress. It seems there is some problem with IGMP requests issued

Posts: 36

from the raspberry pi not reaching remote switches...but if the local switch has the multicast
stream we are OK.

Joined: Sun Nov 25, 2012


6:15 pm

I wonder what the ttl is on IGMP requests....


Also, the omxplayer latency is ~10 seconds. This might be inevitable given the hardware does anyone have any experience of expected behaviour of the cache, and how/if it can be
tweaked?
by dom Fri Dec 14, 2012 11:43 am
Raspberry Pi Engineer &
dbrb2 wrote:Ok....I'm making some progress. It
seems there is some problem with IGMP

Forum Moderator

requests issued from the raspberry pi not


reaching remote switches...but if the local switch
has the multicast stream we are OK.
I wonder what the ttl is on IGMP requests....

Posts: 3992
Joined: Wed Aug 17, 2011
7:41 pm

Also, the omxplayer latency is ~10 seconds.


This might be inevitable given the hardware -

Location: Cambridge

does anyone have any experience of expected


behaviour of the cache, and how/if it can be
tweaked?

These determine how much data is cached on GPU (video buffers are 80K each).
#define AUDIO_BUFFER_SECONDS 2
#define VIDEO_BUFFERS 60
These determine how much data is cached on the ARM:
#define MAX_DATA_SIZE_VIDEO 8 * 1024 * 1024
#define MAX_DATA_SIZE_AUDIO 2 * 1024 * 1024
#define MAX_DATA_SIZE 10 * 1024 * 1024
by dbrb2 Fri Dec 14, 2012 12:13 pm

2 of 3

Ah - so I have to recompile at present. Doable

Posts: 36

I don't actually need audio at all....I guess it will just be a matter of seeing how low I can take

Joined: Sun Nov 25, 2012

the buffers before things stop working

6:15 pm

7/25/2014 12:40 PM

Raspberry Pi View topic - Multicast GPU decoding

Quick Start

http://www.raspberrypi.org/forums/viewtopic.php?f=63&t=25543

Downloads

Buy Codecs

Jump to:

Forum

FAQs

About

General discussion

Who is online
Users browsing this forum: nectarine, Sleep Mode zZ and 19 guests

Board index
The team
Delete all board cookies
All times are UTC

3 of 3

7/25/2014 12:40 PM