ua-i2cat / liveMediaStreamerWebGUI

A web GUI and REST interface for the liveMediaStreamer
6 stars 7 forks source link

Unable to start WebGUI #7

Open agrosjea opened 8 years ago

agrosjea commented 8 years ago

Hi !

Linux version : Mint 17.3 Cinnamon 64-bits Kernel : 3.19.0-32-generic

I wanted to test liveMediaStreamer and its WebGUI and after clicking the start button, I get the following error :

Error: "Error processing internal event. Invalid action..."

Here is the rackup console output :

[2016-04-22 11:45:49] INFO  WEBrick 1.3.1
[2016-04-22 11:45:49] INFO  ruby 1.9.3 (2013-11-22) [x86_64-linux]
[2016-04-22 11:45:49] INFO  WEBrick::HTTPServer#start: pid=19134 port=9292
127.0.0.1 - - [22/Apr/2016:11:45:54 -0400] "GET / HTTP/1.1" 302 - 0.0331
127.0.0.1 - - [22/Apr/2016:11:45:54 -0400] "GET /app HTTP/1.1" 302 - 0.0010
127.0.0.1 - - [22/Apr/2016:11:45:54 -0400] "GET /app/avmixer HTTP/1.1" 302 - 0.0008
WARN: tilt autoloading 'tilt/liquid' in a non thread-safe way; explicit require 'tilt/liquid' suggested.
127.0.0.1 - - [22/Apr/2016:11:45:54 -0400] "GET /app/avmixer/video/grid2x2 HTTP/1.1" 200 2235 0.0029
127.0.0.1 - - [22/Apr/2016:11:45:54 -0400] "GET /bs/dist/css/bootstrap.css HTTP/1.1" 200 119892 0.0158
127.0.0.1 - - [22/Apr/2016:11:45:54 -0400] "GET /theme.css HTTP/1.1" 200 1016 0.0005
127.0.0.1 - - [22/Apr/2016:11:45:54 -0400] "GET /bs/dist/css/bootstrap-theme.min.css HTTP/1.1" 200 14996 0.0059
127.0.0.1 - - [22/Apr/2016:11:45:54 -0400] "GET /image/6.png HTTP/1.1" 200 12257 0.0055
127.0.0.1 - - [22/Apr/2016:11:45:54 -0400] "GET /bs/dist/js/bootstrap.min.js HTTP/1.1" 200 27726 0.0013
127.0.0.1 - - [22/Apr/2016:11:45:54 -0400] "GET /bs/assets/js/holder.js HTTP/1.1" 200 12522 0.0012
127.0.0.1 - - [22/Apr/2016:11:45:54 -0400] "GET /bs/assets/js/jquery.js HTTP/1.1" 200 93106 0.0089
checking for livemediastreamer... yes

{:events=>[{:action=>"createFilter", :params=>{:id=>18256, :type=>"receiver", :role=>"network", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>25634, :type=>"transmitter", :role=>"network", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>11988, :type=>"videoMixer", :role=>"master", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>57949, :type=>"videoMixer", :role=>"master", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>41424, :type=>"videoEncoder", :role=>"master", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>17459, :type=>"videoEncoder", :role=>"master", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>41072, :type=>"videoResampler", :role=>"master", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>30873, :type=>"videoResampler", :role=>"master", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>30955, :type=>"audioMixer", :role=>"master", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>21329, :type=>"audioEncoder", :role=>"master", :sharedFrames=>true}}]}

{"error":null,"error":null,"error":null,"error":null,"error":null,"error":null,"error":null,"error":null,"error":null,"error":null}

{:events=>[{:action=>"getState", :params=>{}}]}

{"filters":[{"id":11988,"type":"videoMixer","role":"regular","width":1920,"height":1080,"maxChannels":16,"channels":[]},{"id":17459,"type":"videoEncoder","role":"regular","bitrate":"2000","fps":"25","gop":"25","lookahead":"25","threads":"4","annexb":"1","preset":"ultrafast"},{"id":18256,"type":"receiver","role":"server","sessions":[]},{"id":21329,"type":"audioEncoder","role":"regular","codec":"","sampleRate":0,"channels":0},{"id":25634,"type":"transmitter","role":"server","sessions":[]},{"id":30873,"type":"videoResampler","role":"regular"},{"id":30955,"type":"audioMixer","role":"regular","channels":2,"sampleRate":48000,"sampleFormat":"fltp","maxChannels":16,"masterGain":0.6,"gains":[]},{"id":41072,"type":"videoResampler","role":"regular"},{"id":41424,"type":"videoEncoder","role":"regular","bitrate":"2000","fps":"25","gop":"25","lookahead":"25","threads":"4","annexb":"1","preset":"ultrafast"},{"id":57949,"type":"videoMixer","role":"regular","width":1920,"height":1080,"maxChannels":16,"channels":[]}],"paths":[]}

{:events=>[{:action=>"configure", :params=>{:width=>0, :height=>0, :pixelFormat=>2}, :filterId=>41072}, {:action=>"configure", :params=>{:width=>0, :height=>0, :pixelFormat=>2}, :filterId=>30873}, {:action=>"configure", :params=>{:channels=>2, :sampleRate=>48000, :codec=>"aac"}, :filterId=>21329}]}

{"error":null,"error":null,"error":null}

{:events=>[{:action=>"addWorker", :params=>{:id=>23911, :type=>"livemedia"}}]}

{"error":"Error processing internal event. Invalid action..."}

127.0.0.1 - - [22/Apr/2016:11:45:59 -0400] "POST /app/start HTTP/1.1" 500 2027 1.0588
127.0.0.1 - - [22/Apr/2016:11:45:59 -0400] "GET /bs/assets/ico/favicon.png HTTP/1.1" 200 889 0.0009
davidcassany commented 8 years ago

Hi arnaud,

I am sorry the documentation might be a bit confusing some times. Anyhow, the first thing to do, which is not documented and it doesn't happen by default, is to use the master branch of the livemediastreamer and master branch of the livemediastreamerwebgui. If both are not in the master branch it will not work. I think this is your problem.

Livemediastreamer master branch is outdated a bit, we have not merged it to master because we have not updated and maintained the webgui repository.

Please don't hesitate to contact us for any further doubt.

David

agrosjea commented 8 years ago

Hello David !

Thanks for your answer, I'll try this way and keep you informed

Have a really nice week ! Regards.

2016-04-25 5:30 GMT-04:00 davidcassany notifications@github.com:

Hi arnaud,

I am sorry the documentation might be a bit confusing some times. Anyhow, the first thing to do, which is not documented and it doesn't happen by default, is to use the master branch of the livemediastreamer and master branch of the livemediastreamerwebgui. If both are not in the master branch it will not work. I think this is your problem.

Livemediastreamer master branch is outdated a bit, we have not merged it to master because we have not updated and maintained the webgui repository.

Please don't hesitate to contact us for any further doubt.

David

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/ua-i2cat/liveMediaStreamerWebGUI/issues/7#issuecomment-214230462


Arnaud Grosjean

agrosjea commented 8 years ago

Hello David !

I tried again with master branches and got the following message after clicking start :

Error: "Error connecting path. Better pray Jesus..."

[2016-05-03 10:00:03] INFO  WEBrick 1.3.1
[2016-05-03 10:00:03] INFO  ruby 1.9.3 (2013-11-22) [x86_64-linux]
[2016-05-03 10:00:03] INFO  WEBrick::HTTPServer#start: pid=15511 port=9292
127.0.0.1 - - [03/May/2016:10:00:06 -0400] "GET / HTTP/1.1" 302 - 0.0268
127.0.0.1 - - [03/May/2016:10:00:06 -0400] "GET /app HTTP/1.1" 302 - 0.0007
127.0.0.1 - - [03/May/2016:10:00:06 -0400] "GET /app/avmixer HTTP/1.1" 302 - 0.0006
WARN: tilt autoloading 'tilt/liquid' in a non thread-safe way; explicit require 'tilt/liquid' suggested.
127.0.0.1 - - [03/May/2016:10:00:06 -0400] "GET /app/avmixer/video/grid2x2 HTTP/1.1" 200 2235 0.0019
127.0.0.1 - - [03/May/2016:10:00:06 -0400] "GET / HTTP/1.1" 302 - 0.0013
127.0.0.1 - - [03/May/2016:10:00:06 -0400] "GET /app HTTP/1.1" 302 - 0.0010
127.0.0.1 - - [03/May/2016:10:00:06 -0400] "GET /app/avmixer HTTP/1.1" 302 - 0.0007
127.0.0.1 - - [03/May/2016:10:00:06 -0400] "GET /app/avmixer/video/grid2x2 HTTP/1.1" 200 2235 0.0010
checking for livemediastreamer... yes

{:events=>[{:action=>"createFilter", :params=>{:id=>28165, :type=>"receiver", :role=>"network", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>9272, :type=>"transmitter", :role=>"network", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>9366, :type=>"videoMixer", :role=>"master", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>13174, :type=>"videoMixer", :role=>"master", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>26631, :type=>"videoEncoder", :role=>"master", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>43354, :type=>"videoEncoder", :role=>"master", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>7868, :type=>"videoResampler", :role=>"master", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>25718, :type=>"videoResampler", :role=>"master", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>20858, :type=>"audioMixer", :role=>"master", :sharedFrames=>true}}, {:action=>"createFilter", :params=>{:id=>22105, :type=>"audioEncoder", :role=>"master", :sharedFrames=>true}}]}

{"error":null,"error":null,"error":null,"error":null,"error":null,"error":null,"error":null,"error":null,"error":null,"error":null}

{:events=>[{:action=>"getState", :params=>{}}]}

{"filters":[{"id":7868,"type":"videoResampler","role":"master","workerId":0},{"id":9272,"type":"transmitter","role":"network","workerId":0,"sessions":[]},{"id":9366,"type":"videoMixer","role":"master","workerId":0,"width":1920,"height":1080,"maxChannels":16,"channels":[]},{"id":13174,"type":"videoMixer","role":"master","workerId":48,"width":1920,"height":1080,"maxChannels":16,"channels":[]},{"id":20858,"type":"audioMixer","role":"master","workerId":0,"sampleRate":48000,"channels":2,"sampleFormat":"s16p","masterGain":0.6,"maxChannels":16,"gains":[]},{"id":22105,"type":"audioEncoder","role":"master","workerId":0,"codec":"","sampleRate":0,"channels":0},{"id":25718,"type":"videoResampler","role":"master","workerId":0},{"id":26631,"type":"videoEncoder","role":"master","workerId":0,"bitrate":"2000","fps":"25","gop":"25","lookahead":"25","threads":"4","annexb":"1","preset":"ultrafast"},{"id":28165,"type":"receiver","role":"network","workerId":0,"sessions":[]},{"id":43354,"type":"videoEncoder","role":"master","workerId":0,"bitrate":"2000","fps":"25","gop":"25","lookahead":"25","threads":"4","annexb":"1","preset":"ultrafast"}],"paths":[],"workers":[]}

{:events=>[{:action=>"configure", :params=>{:width=>0, :height=>0, :pixelFormat=>2}, :filterId=>7868}, {:action=>"configure", :params=>{:width=>0, :height=>0, :pixelFormat=>2}, :filterId=>25718}, {:action=>"configure", :params=>{:channels=>2, :sampleRate=>48000, :codec=>"aac"}, :filterId=>22105}]}

{"error":null,"error":null,"error":null}

{:events=>[{:action=>"addWorker", :params=>{:id=>6843, :type=>"livemedia"}}]}

{"error":null}

{:events=>[{:action=>"addFiltersToWorker", :params=>{:worker=>6843, :filters=>[9272]}}]}

{"error":null}

{:events=>[{:action=>"addWorker", :params=>{:id=>31151, :type=>"livemedia"}}]}

{"error":null}

{:events=>[{:action=>"addFiltersToWorker", :params=>{:worker=>31151, :filters=>[28165]}}]}

{"error":null}

{:events=>[{:action=>"addWorker", :params=>{:id=>26521, :type=>"worker"}}]}

{"error":null}

{:events=>[{:action=>"addFiltersToWorker", :params=>{:worker=>26521, :filters=>[9366]}}]}

{"error":null}

{:events=>[{:action=>"addFiltersToWorker", :params=>{:worker=>26521, :filters=>[13174]}}]}

{"error":null}

{:events=>[{:action=>"addWorker", :params=>{:id=>3345, :type=>"worker"}}]}

{"error":null}

{:events=>[{:action=>"addFiltersToWorker", :params=>{:worker=>3345, :filters=>[26631]}}]}

{"error":null}

{:events=>[{:action=>"addFiltersToWorker", :params=>{:worker=>3345, :filters=>[43354]}}]}

{"error":null}

{:events=>[{:action=>"addWorker", :params=>{:id=>24355, :type=>"worker"}}]}

{"error":null}

{:events=>[{:action=>"addFiltersToWorker", :params=>{:worker=>24355, :filters=>[7868]}}]}

{"error":null}

{:events=>[{:action=>"addFiltersToWorker", :params=>{:worker=>24355, :filters=>[25718]}}]}

{"error":null}

{:events=>[{:action=>"addWorker", :params=>{:id=>2873, :type=>"worker"}}]}

{"error":null}

{:events=>[{:action=>"addFiltersToWorker", :params=>{:worker=>2873, :filters=>[20858]}}]}

{"error":null}

{:events=>[{:action=>"addWorker", :params=>{:id=>19892, :type=>"worker"}}]}

{"error":null}

{:events=>[{:action=>"addFiltersToWorker", :params=>{:worker=>19892, :filters=>[22105]}}]}

{"error":null}

{:events=>[{:action=>"createPath", :params=>{:id=>61831, :orgFilterId=>9366, :dstFilterId=>9272, :orgWriterId=>-1, :dstReaderId=>-1, :midFiltersIds=>[7868, 26631]}}]}

{"error":null}

{:events=>[{:action=>"getState", :params=>{}}]}

{"filters":[{"id":7868,"type":"videoResampler","role":"master","workerId":24355},{"id":9272,"type":"transmitter","role":"network","workerId":6843,"sessions":[]},{"id":9366,"type":"videoMixer","role":"master","workerId":26521,"width":1920,"height":1080,"maxChannels":16,"channels":[]},{"id":13174,"type":"videoMixer","role":"master","workerId":26521,"width":1920,"height":1080,"maxChannels":16,"channels":[]},{"id":20858,"type":"audioMixer","role":"master","workerId":2873,"sampleRate":48000,"channels":2,"sampleFormat":"s16p","masterGain":0.6,"maxChannels":16,"gains":[]},{"id":22105,"type":"audioEncoder","role":"master","workerId":19892,"codec":"aac","sampleRate":48000,"channels":2},{"id":25718,"type":"videoResampler","role":"master","workerId":24355},{"id":26631,"type":"videoEncoder","role":"master","workerId":3345,"bitrate":"2000","fps":"25","gop":"25","lookahead":"25","threads":"4","annexb":"1","preset":"ultrafast"},{"id":28165,"type":"receiver","role":"network","workerId":31151,"sessions":[]},{"id":43354,"type":"videoEncoder","role":"master","workerId":3345,"bitrate":"2000","fps":"25","gop":"25","lookahead":"25","threads":"4","annexb":"1","preset":"ultrafast"}],"paths":[{"id":61831,"originFilter":9366,"destinationFilter":9272,"originWriter":1,"destinationReader":1025202362,"filters":[7868,26631]}],"workers":[{"id":2873,"type":"worker","processors":[]},{"id":3345,"type":"worker","processors":[43354]},{"id":6843,"type":"livemedia","processors":[9272]},{"id":19892,"type":"worker","processors":[]},{"id":24355,"type":"worker","processors":[25718]},{"id":26521,"type":"worker","processors":[13174]},{"id":31151,"type":"livemedia","processors":[28165]}]}

{:events=>[{:action=>"createPath", :params=>{:id=>28678, :orgFilterId=>13174, :dstFilterId=>9272, :orgWriterId=>-1, :dstReaderId=>-1, :midFiltersIds=>[25718, 43354]}}]}

{"error":null}

{:events=>[{:action=>"getState", :params=>{}}]}

{"filters":[{"id":7868,"type":"videoResampler","role":"master","workerId":24355},{"id":9272,"type":"transmitter","role":"network","workerId":6843,"sessions":[]},{"id":9366,"type":"videoMixer","role":"master","workerId":26521,"width":1920,"height":1080,"maxChannels":16,"channels":[]},{"id":13174,"type":"videoMixer","role":"master","workerId":26521,"width":1920,"height":1080,"maxChannels":16,"channels":[]},{"id":20858,"type":"audioMixer","role":"master","workerId":2873,"sampleRate":48000,"channels":2,"sampleFormat":"s16p","masterGain":0.6,"maxChannels":16,"gains":[]},{"id":22105,"type":"audioEncoder","role":"master","workerId":19892,"codec":"aac","sampleRate":48000,"channels":2},{"id":25718,"type":"videoResampler","role":"master","workerId":24355},{"id":26631,"type":"videoEncoder","role":"master","workerId":3345,"bitrate":"2000","fps":"25","gop":"25","lookahead":"25","threads":"4","annexb":"1","preset":"ultrafast"},{"id":28165,"type":"receiver","role":"network","workerId":31151,"sessions":[]},{"id":43354,"type":"videoEncoder","role":"master","workerId":3345,"bitrate":"2000","fps":"25","gop":"25","lookahead":"25","threads":"4","annexb":"1","preset":"ultrafast"}],"paths":[{"id":28678,"originFilter":13174,"destinationFilter":9272,"originWriter":1,"destinationReader":1350490027,"filters":[25718,43354]},{"id":61831,"originFilter":9366,"destinationFilter":9272,"originWriter":1,"destinationReader":1025202362,"filters":[7868,26631]}],"workers":[{"id":2873,"type":"worker","processors":[]},{"id":3345,"type":"worker","processors":[43354]},{"id":6843,"type":"livemedia","processors":[9272]},{"id":19892,"type":"worker","processors":[]},{"id":24355,"type":"worker","processors":[25718]},{"id":26521,"type":"worker","processors":[13174]},{"id":31151,"type":"livemedia","processors":[28165]}]}

{:events=>[{:action=>"createPath", :params=>{:id=>54857, :orgFilterId=>20858, :dstFilterId=>9272, :orgWriterId=>-1, :dstReaderId=>-1, :midFiltersIds=>[22105]}}]}

{"error":"Error connecting path. Better pray Jesus..."}

127.0.0.1 - - [03/May/2016:10:00:10 -0400] "POST /app/start HTTP/1.1" 500 2020 1.4492