Closed ghost closed 5 years ago
Sorry the doc is out of date, i did some modifications recently to support non tvheadend backends so config is diferent, check this file https://github.com/segator/proxylive/blob/master/src/main/resources/application.yml. I will update docs soon
Let me know if i can help
@segator The error regarding host is now solved, but getting a new error:
Caused by: java.lang.Exception: Error loading Picons
at com.github.segator.proxylive.service.ChannelTVHeadendService.buildChannels(ChannelTVHeadendService.java:106) ~[classes!/:1.0-SNAPSHOT] at com.github.segator.proxylive.service.ChannelTVHeadendService.getDataFromTvheadend(ChannelTVHeadendService.java:184) ~[classes!/:1.0-SNAPSHOT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_191] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_191] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_191] at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_191]
I don't use Picons in my tvheaded configuration. It this the cause?
Here is my application.yml file:
spring.jackson.serialization.INDENT_OUTPUT: true
source:
tvheadendURL: http://my_username:my_pass@192.168.0.1:9981
epg:
#url: http://user:pass@localhost/xmltv.xml or file://path/xmltv.xml exec://usr/bin/tv_grab_whatever
url: http://my_username:my_pass@192.168.0.1:9981/xmltv/channels
refresh: 600
channels:
#url: http://mywebserver/my.json || file://my.json
#type: json
url: http://my_username:my_pass@192.168.0.1:9981/playlist
type: tvheadend
refresh: 300
reconnectTimeout: 10
streamTimeout: 30
internalConnection: true
ffmpeg:
path: ffmpeg
profiles:
-
alias: "aac"
parameters: "-sn -ac 2 -c:a aac -b:a 320k -c:v copy"
-
alias: "240p"
parameters: "-sn -c:a:0 aac -ac 2 -b:a 64k -c:v libx264 -tune zerolatency -g 10 -vprofile high -level 4.0 -crf 18 -movflags +faststart -bufsize 15000k -maxrate 300k -preset veryslow -vf scale=-1:244,yadif=0"
-
alias: "360p"
parameters: "-sn -c:a:0 aac -ac 2 -b:a 96k -c:v libx264 -tune zerolatency -g 10 -vprofile high -level 4.0 -crf 18 -movflags +faststart -bufsize 15000k -maxrate 700k -preset veryslow -vf scale=-1:360,yadif=0"
-
alias: "480p"
parameters: "-sn -c:a:0 aac -ac 2 -b:a 196k -c:v libx264 -tune zerolatency -g 10 -vprofile high -level 4.0 -crf 18 -movflags +faststart -bufsize 15000k -maxrate 1500k -preset slow -vf scale=-1:484,yadif=0"
-
alias: "720p"
parameters: "-sn -c:a:0 aac -ac 2 -b:a 320k -c:v libx264 -tune zerolatency -g 10 -vprofile high -level 4.0 -crf 18 -movflags +faststart -bufsize 15000k -maxrate 3000k -preset fast -vf scale=-1:720,yadif=0"
-
alias: "1080p"
parameters: "-sn -c:a:0 aac -ac 2 -b:a 320k -c:v libx264 -tune zerolatency -g 300 -vprofile high -level 4.0 -movflags +faststart -bufsize 15000k -maxrate 5000k -preset faster -vf yadif=0"
mpegTS:
parameters: "-threads 0 -f mpegts -mpegts_m2ts_mode 1 -mpegts_copyts 1 -mpegts_flags +resend_headers "
hls:
tempPath: "/tmp"
parameters: "-flags -global_header -avoid_negative_ts disabled -map_metadata -1 -start_at_zero -copyts -flags -global_header -vsync cfr -y -nostats -f hls -hls_time 2 -hls_list_size 10 -hls_flags delete_segments -hls_flags +append_list -hls_flags +discont_start -hls_flags +delete_segments"
timeout: 30
buffers:
chunkSize: 131072
broadcastBufferSize: 52428800
weird I tried to load channels with no picon and worked. Could you send me pictures of your General Tvheadend Configuration "Channel icon/Picon settings"
and Channels user picon. The fix probably will be so easy but first I need to reproduce it.
Screenshots:
I just commit a modification that will show more errors when crash, could you recompile and try the new version, it will crash but at least I will get more details because im not able to reproduce the error with the same configuration that you have.
Error Log:
Updating Channel Info Updating Channel:0c1c188089a52b009e0e2abf2a2db8ab 2019-02-13 19:57:39.747 WARN 7 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'streamController': Unsatisfied dependency expressed through field 'channelService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'createChannelService': Invocation of init method failed; nested exception is java.lang.Exception: Error loading Picons error:1 Unknown Code 2019-02-13 19:57:39.751 INFO 7 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2019-02-13 19:57:39.814 INFO 7 --- [ main] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled. 2019-02-13 19:57:39.831 ERROR 7 --- [ main] o.s.boot.SpringApplication : Application startup failed
I just did a modification, now should works, let me know if works for you.
Its working now. Thanks a lot ;)
When I try to run the docker with this command:
docker run -it -v /Users/<MY_USERNAME>/Downloads/docker_shared/application.yml:/app/application.yml segator/proxylive
where
/Users/<MY_USERNAME>/Downloads/docker_shared/application.yml
looks like this:The 192.168.0.1:9981 is where I have tvheadend running. I go this error:
Any help?
Thanks