Unable to stream files through symlinks

103 views
Skip to first unread message

Greg Logan

unread,
Mar 8, 2013, 9:41:47 AM3/8/13
to red5in...@googlegroups.com


Hi folks,

I'm trying to stream videos which live behind a symlink on Ubuntu 11.10
amd64 using Red5 1.0.0. This worked previously in 0.8 and 0.9, but does
not work at all (see the error below) with 1.0.0). We start Red5, shut
it down, create the symlink, then bring it back up. Files stream as
expected in earlier versions, but 1.0 complains about not being able to
find the file. Is this no longer the correct way of doing things?

In the example error below, matterhorn is the name of the
webapp/context, and $RED5_HOME/webapps/matterhorn/streams is a symlink
to $MATTERHORN_HOME/work/opencast/streams. Running the unix file
command against the relative URL fragment in the error works as
expected, and the file can be played back using VLC or the like using
the same URL. The setup is the same for both versions of Red5, with
only minor code alterations in the webapp to account for API changes in
Red5 1.0.0.

Thoughts?

G

2013-03-07 16:29:38,973 [pool-8-thread-2] WARN
o.r.server.stream.ProviderService - Exception attempting to lookup file:
Unscheduled-demo_capture_agent-1362684607768/4546c37c-79a2-4e7f-85fb-1635d8f3897e/camera_o
ut.flv
java.io.FileNotFoundException: ServletContext resource
[/streams/Unscheduled-demo_capture_agent-1362684607768/4546c37c-79a2-4e7f-85fb-1635d8f3897e/camera_out.flv]
cannot be resolved to URL because it does not ex
ist
at
org.springframework.web.context.support.ServletContextResource.getURL(ServletContextResource.java:154)
~[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.springframework.web.context.support.ServletContextResource.getFile(ServletContextResource.java:169)
~[spring-web-3.1.1.RELEASE.jar:3.1.1.RELEASE]
at
org.red5.server.stream.ProviderService.getStreamFile(ProviderService.java:199)
[red5.jar:na]
at
org.red5.server.stream.ProviderService.lookupProviderInput(ProviderService.java:57)
[red5.jar:na]
at org.red5.server.stream.PlayEngine.play(PlayEngine.java:346)
[red5.jar:na]
at org.red5.server.stream.PlayEngine.play(PlayEngine.java:307)
[red5.jar:na]
at
org.red5.server.stream.PlaylistSubscriberStream.play(PlaylistSubscriberStream.java:242)
[red5.jar:na]
at
org.red5.server.stream.StreamService.play(StreamService.java:332)
[red5.jar:na]
at
org.red5.server.stream.StreamService.play(StreamService.java:348)
[red5.jar:na]


signature.asc

Mondain

unread,
Mar 8, 2013, 11:18:39 AM3/8/13
to red5in...@googlegroups.com
I believe this is a shortcoming of Spring; I noted a work around that may work for you, in this issue report: https://code.google.com/p/red5/issues/detail?id=263#c11

Greg Logan

unread,
Mar 8, 2013, 4:01:08 PM3/8/13
to red5in...@googlegroups.com
On 13-03-08 10:18 AM, Mondain wrote:
> I believe this is a shortcoming of Spring; I noted a work around that
> may work for you, in this issue
> report: https://code.google.com/p/red5/issues/detail?id=263#c11

Bah, ok. I'm not sure that's going to work in our situation (setting up
Matterhorn is complex enough as is), so we're just going to rework the
docs and remove the need for the symlink then.

Thanks for the help!

G
> --
>
> ---
> You received this message because you are subscribed to the Google
> Groups "red5" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to red5interest...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Reply all
Reply to author
Forward
0 new messages