Or output to a file instead of console for testing script..
Posts by Mario77
-
-
Latest version of DVBViewer Client from LibreELELC repository
Why do you need that if you r using tvheadend server?
I think you need to have a look how to setup tvheadend server and scan for channels then you use htsp client to view your channels..
-
If you r using ffmpeg just use "h264" transcoding or "h264_omx" in command..I don't think there is any libx264 in default ffmpeg addon..and even if you do your own ffmpeg libx264 needs lots of cpu and rpi would crash..at least my rpi2...I tried it before and it uses 3 to 4 times more cpu in rpi..maybe the 4 might work not sure..
On this thread there is a version of ffmpeg and if I m not mistaken it got libx264 if you wanna try here
-
Well ... assuming those are DVB-C signals, I will suggest you to try a different connection.
do you have a way to connect to 1 of the first cable wall plugs ?
Or even directly in the cable that enters your home ?
(just to make sure you are not getting a big signal drop in your home cabling, and assure that that is not the reason for your breaks)
This is DVB t signal from antenna in the Uk..problem is server is 3000km away so can't play much with cables..I do all trough ssh and vnc.
I don't really get any breaks while streaming or on recordings both sd and hd work fine..not that I really need transcoding..was more of some experimenting..as I spend more time faffing around then watching TV errors are only with ffmpeg..
-
I am running LibreELEC 9.95.2 on RPi4.
Have setup autostart.sh to load some scripts upon boot.
It would take about 30 to 45 seconds to complete.
Thought it might be good to display the status on TV.
Wondering if it is possible to output text on LibreELEC boot screen.
Do you mean you r stuck on boot for 45 seconds for your script to run?
Is it necessary for your script to run before kodi UI?
Wondering if it is possible to output text on LibreELEC boot screen.
I doubt it...but don't think so..but you ll never know..maybe someone comes up with a solution..notifications only show when kodi starts..
-
Have you've been successful meanwhile ?
When you say 43%, can you report the SNR ? (in tvheadend's interface, status/stream).
For your reference, in average I have:
cable - SNR 36.3 dBm ; Signal strength 51.0 dBm.
sat - SNR 15. dBm ; -30.5 dBm.Using a TBS 5520 SE combo receiver.
SNR 28 db
strenght -78 dBm
-
I was testing this on Rpi3..
-
I delete the paired and trusted device listed as "AR", the console comes up for a few seconds and then it goes back to the Kodi main screen, I then go to Bluetooth delete it a second time along with the new addition "Am", it again shows the console for a few seconds and the goes back to the Kodi main screen, I then go to Bluetooth again and click on the device (that is still there) and called "Am" and click connect and the remote then works perfectly... Until I restart...
I will again log into the LibreELEC Pi4 machine via SSH and again run pastekodi and drop that URL as well in a little while.
ADDENDUM.The new result after connecting the remote (which now works) is:
-
-
Further testing and it looks like issue is with my streams and even recordings...ffmpeg is showing many errors while transcoding both live tv and recordings..strange thing is these corrupt segments are not teally visible when watching live tv and not even on recordings...my reception is a bit on the low side tough..about 43%..
-
It does work now but same issue..thanks for your help.
-
Sorry man ... my bad , forgot to include that lib in the zip file.
this link is updated. Just tested in a fresh LibreELEC 9.26 running in RPi3:
thanks i ll try tonight as im at work now..i ll let you know if it works
-
About your error:
is strange, I use libreelec 9.2.6 and my ffmpeg works ok.
libdrm.so.2 is in /usr/lib/libdrm.so.2
Have you tried executing ffmpeg from a ssh shell ?
About clients:
I do my tests with vlc in PC to connect to tvheadend in my Rpi trough a m3u list got from http://tvheadend_ip_address:9981/playlist/channels
This transcoding, takes some seconds to start, after starting 5 to 10s after it stops for 2 seconds (buffering), but then it plays all the time without issues, providing I have a good network connection. of course.
There is also a nice free tvheadend client for iOS devices that works great, and it is easy to select a codec profile from it.
No idea what s going on then..
I have no /usr/lib/libdrm.so.2 on rpi3 le9.2.6
I don t have it even on my rpi2 I use as frontened also with 9.2.6
-
This is very strange.
I use the exact same approach with a RPi3 and a RPi4, but I have none of those issues.
As I've posted in another thread, this is my ffmpeg command line,
Code/storage/.kodi/addons/service.ffmpeg/bin/ffmpeg -loglevel quiet -i pipe:0 -vf scale=640:360 -vcodec h264_omx -vb 512k -bufsize 2048k -g 100 -af "aresample=async=1:first_pts=0" -acodec aac -ab 128k -f mpegts pipe:1
The major diferences are that I'm not forcing the frame rate nor the pixel format and I use a different ffmpeg version.
I use a ffmpeg version compiled directly in my RPi3 from the official ffmpeg sources.
If you want to test with it, just download from this link:
https://mega.nz/file/EfAjFK5D#…xByastOPZgeJslI
Install the add-on directly from libreelec's kodi interface.
ffmpeg path is:
Note: Also take a look into gpu_mem in /flash/config.txt (i'm using 256 in my RPi3, and 512 imnRPi4)
Note: It is a personal add-on that I've not yet released, which includes ffmpeg to help nginx to serve as a transcode server
(if you are interested in knowing more, just read the txt file inside the add-on, or take a look at http://RPi_ip_address:9996/cgi-bin/movies.cgi?/storage after install - user/pass)
Another thing: What client are you using to test the stream ?
Thanks I will try that soon..
I used vlc and kodi on windows with iptv simple client and libreelec iptv simple client
getting error
Code/storage/.kodi/addons/service.ffmpeg/bin/ffmpeg: error while loading shared libraries: libdrm.so.2: cannot open shared object file: No such file or directory
I m still on Libreelec 9 not 10
-
you could enable the debuglog (see addon settings) for transcoding themed options
maybe something interesting pops up
here you go ..this stream lasted 3min34sec
-
Hi
I'm using 'mpegts spawn profile' in tvheadend and adding that command in spawn settings command line..you can add that in a script and add path to script in spawn settings command line..
I assume that is using ffmpeg from ffmpeg-tools addon as it doesn't work without the addon installed..so same as adding full path..
To play channels I made a playlist
Codehttp://xxx:[email protected]:xxxx/stream/channelid/1234567?profile=transcoding
transcoding frofile enabled for user in TvHeadend settings..
Been watching mem and cpu trough Htop while transcoding and cpu doesn't exceed 75%
This is free -m during a working transcode
CodeLibreELEC:~ # free -m total used free shared buff/cache available Mem: 747 104 31 12 612 576 Swap: 0 0 0 12 612
Transcoding is defo working..as an mpeg2 stream with mp2 audio is transcoded to h264/aac..problem is it doesn t last long...all I get from tvheadend is unsubscibing from channel and a sigkill from ffmpeg.
Not sure where to find ffmpegx?
-
I don t think it s a memory issue
Code3869 root 20 0 188108 19440 11028 R 72.8 2.5 0:48.82 ffmpeg 260 root 20 0 267604 83280 5792 S 6.0 10.9 35:05.70 tvheadend
Memory usage is low...cpu usage is high at ffmpeg but not bad..
I tried all 4 available ffmpeg versions for rpi 3 from repo..so either it s another issue or they all have same issue..they all have omx support..
Tonight I tried libx264 from another built...to test and same issue..and altough it was not built for rpi it s still watchable...cpu full blast tough..still stops after a while
-
I've tried nextpvr in my RPi4 with libreelec.
As i have docker installed is wuite easy, just need to add privileges and devi /dev/dvb/adapter0, and adjust directories.
But ...... NEXTPVR fails the transcoding in RPI devices.AND ... does not support encrypted channels.
Tvheadend, even with not much updates in the past years is still the best pvr backend.
TRANSCODING WITH TVHEADEND AND FFMPEG
About some issues, some people asked some threads above, regarding transcoding with tvheadend.
I use tvheadend nighlty build (4.3 beta) which support spawning.
I'm using ffmpeg compiled with omx installed in libreelec.
for reference I share my ffmpeg transcoding for tvheanded.
I call it "transcode-omx". It uses about 60% of RPi4 total performance:
Code{path_ffmpeg}/ffmpeg -loglevel quiet -i pipe:0 -vf scale=640:360 -vcodec h264_omx -vb 512k -bufsize 2048k -g 100 -af "aresample=async=1:first_pts=0" -acodec aac -ab 128k -f mpegts pipe:1
Just add-it "configuration/ stream" in tvheaded webui.
some additional tweaks I use for it in the attached picture.
This configuration summary:
- codec omx from Raspberry Pi hardware
- output video 640x360,
- ar 16:9
- video bitrate 512 kbps
- audio bitrate 128 kbps
- audio resync (to handle some drop frames that could happen during reception of channels).
This profile is great for watching tv channels in a rmeote smartphone connected to tvheadend running in libreelec.
This profile can also be applied to record programmes with lower bitrates
Gonna try your command...you have some code I never tryed before..
what is this for?
Still stopping on my setup..max it plays is 10 minutes...are you using FFMPEG addon from Libreelec repo?