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:
Posts by Mario77
-
-
-
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?
-
I know ppl had it working at RPi3 and Tvh, so it may be a problem at the cmd you are using.
Nothing obviouse if you ask me. I would cut down the commandline as much as possible, maybe some command combination creates problems.
I tryed so many commands that I m running out of ideas...problem is that even with the simplest of commands with just copy and no transcoding...stream just stops..
Maybe someone comes up with a working command so I can hopefully know if issue is with command or something else..
-
Took a look and it is interesting
Didn't even know it existes for LibreElec..always tought that it was a windows only thinghy..
-
what RPi are you using ?
just saying there is no HW encoding at LE10 yet
It s a Rpi3 with LE 9.2.6HTS Tvheadend 4.3-1906 ~ LibreELEC Tvh-addon v9.2.0.444
-
So I decided to kill some time playing with transcoding and I'm getting frustrated..
Im not even sure if this is possible..
I m trying to transcode an mpeg2 stream to h264..
So far I only managed to get it working not longer then 10 minutes after that stream just drops...
While it's working cpu is averaging around 50% so no big deal I suppose...
Output is h264/aac as command...no buffers or glitches..
Command i m using right now is this tough I tryed loads and loads of different versions...
Codeffmpeg -threads 4 -c:v mpeg2_mmal -v panic -hide_banner -nostats -i pipe:0 -map 0:0 -map 0:1 -map 0:2? -c:v h264_omx -s 480x270 -b:v 768k -pix_fmt yuv420p -bufsize 3000k -c:a aac -ac 1 -ar 22050 -c:s copy -f mpegts -r 25 pipe:1
Anyone got this working?Or I m asking too much from my little computer
-
nightly build from today did not fix it.
Could you point me in the direction of how to use - rm.edid_firmware and video kernel command line options please? i'm not a linux guru
-
Brilliant, you were right.
I went to 'toggle audio stream' and that solved it.I forgot that was there for individual things.
I was thinking it was for the whole thing.Every day is a school day.
Thanks loads for that.I am looking forward to watching the rest of the recording, but more importantly, I know what to do if I do the same again in the future.
Thank you for this, I hadn't thought of that.
I sort of forget that this is now just data that I can remove and stuff.
I shall remember this for the future.
It would have been a great way to narrow it down.Probably that was some visually impaired audio stream or something to the liking
And that s not only for individual things...if you set it to make default for all media ,everything will use that setting
-
what are you using to be spawned ?
if using ffmpeg with logs activated, you can inspect the journal to understand why it stopped
Hi..just using a tiny script 1 liner with ffmpeg input pipe:0 output pipe:1
Anyway I test it it always stops...sometimes after 10 min and sometimes less...while it's playing it's fine...no buffering or anything..
Log is here maybe you have an idea what's failing..I m suspecting it's a cpu issue...tried everything in ffmpeg command..setting cpu threads,buffer etc..