WEB.conf - playback

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
OlliL
Posts: 31
Joined: Mon Feb 04, 2013 5:35 am

WEB.conf - playback

Post by OlliL »

Hi,

is anyone able to playback Web streams? Regular files (movies and audio) works perfectly fine. Now I wanted to try out Webstreams but somehow, UMS gets my path seperator wrong here...

Code: Select all

DEBUG 2013-08-26 11:16:36.254 [mkfifo-15] Starting mkfifo -m 777 /tmp/universalmediaserver/ffmpegwebvideo_16_1377508596232
DEBUG 2013-08-26 11:16:36.302 [mkfifo-15] Unix process ID (mkfifo): 39703
DEBUG 2013-08-26 11:16:36.556 [ffmpeg-16] Starting \\usr\\local\\bin\\ffmpeg -y -loglevel warning -threads 2 -i http://feedproxy.google.com/~r/OnionNewsNetwork/~5/pQRN4YFgiHs/podcast_redirect.mp4 -threads 2 -c:a ac3 -c:v mpeg2video -f vob -q:v 3 -q:a 3 /tmp/universalmediaserver/ffmpegwebvideo_16_1377508596232
ERROR 2013-08-26 11:16:36.598 [ffmpeg-16] Error initializing process:
java.io.IOException: Cannot run program "\\usr\\local\\bin\\ffmpeg": error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041) ~[na:1.7.0_25]
        at net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:181) ~[ums.jar:3.0.0-a1]
Caused by: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.forkAndExec(Native Method) ~[na:1.7.0_25]
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) ~[na:1.7.0_25]
        at java.lang.ProcessImpl.start(ProcessImpl.java:130) ~[na:1.7.0_25]
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022) ~[na:1.7.0_25]
        ... 1 common frames omitted
DEBUG 2013-08-26 11:16:36.601 [ffmpeg-16] Stopping Unix process 39703: mkfifo-15
infidel
Developer
Posts: 571
Joined: Thu Jul 12, 2012 5:37 am

Re: WEB.conf - playback

Post by infidel »

OlliL wrote:somehow, UMS gets my path seperator wrong here...
Hi OlliL, can you please attach full logs?
OlliL
Posts: 31
Joined: Mon Feb 04, 2013 5:35 am

Re: WEB.conf - playback

Post by OlliL »

Why do you think a complete logfile would help here? A quick look into the sourcecode would show that the code is kinda wrong:

encoders/FFmpegWebVideo.java:

Code: Select all

                cmdList.add(executable().replace("/", "\\\\"));
All my nice slashes are replaced here with backslashes. This might work on Windows but not on at least FreeBSD + OpenJDK - I guess Linux the same.

http://docs.oracle.com/javase/7/docs/ap ... /File.html -> pathSeparator should be used instead of a hardcoded one.
infidel
Developer
Posts: 571
Joined: Thu Jul 12, 2012 5:37 am

Re: WEB.conf - playback

Post by infidel »

OlliL wrote:A quick look into the sourcecode would show that the code is kinda wrong
Good catch, even if your "quick look" took 3+ weeks :). That line crept in last spring it seems, do you want to submit a patch?

It hasn't come up before probably because other linux users (e.g myself) don't set a full path to ffmpeg, which would be the obvious workaround for you until it's fixed. To use your system ffmpeg remove/rename the UMS ffmpeg binary.
Post Reply