gkreidl
Posts: 5571
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Real Time Transcoding of DVB TV Streams

Sat Apr 07, 2018 10:16 pm

jccj78 wrote:
Sat Apr 07, 2018 9:47 pm
I am getting error when I generate channels.dat :

pi@raspberrypi:~ $ rtranscode -i=playlist.m3u -o=channels.dat
analyzing: http://192.168.1.215:9981/stream/channelid/2062929554
analyzing: http://192.168.1.215:9981/stream/channelid/582454247
Traceback (most recent call last):
File "/home/pi/transcoder4-dev/sources/rtranscode.py", line 1580, in <module>
File "/home/pi/transcoder4-dev/sources/rtranscode.py", line 1406, in create_channelsdb
NameError: global name 'amode' is not defined

My playlist.m3u is from tvheadend:

http://192.168.1.215:9981/stream/channelid/2062929554
http://192.168.1.215:9981/stream/channelid/582454247
http://192.168.1.215:9981/stream/channelid/2096827154
http://192.168.1.215:9981/stream/channelid/2079525138
http://192.168.1.215:9981/stream/channelid/93499316

What is the problem? Thank!
You have discovered a bug. I've just fixed it, tested it and uploaded a new package (same name). Just download and install it again.

I'll put a note into the OP.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

gkreidl
Posts: 5571
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Updated package rtranscode 4.0

Sat Apr 07, 2018 10:20 pm

April, 8th, 2018: I've uploaded a new package (same name) containing a bug fix. If you have installed rtranscode V 4 before, just download and install it again.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

jccj78
Posts: 14
Joined: Sun Dec 17, 2017 3:05 pm

Re: Real Time Transcoding of DVB TV Streams

Sat Apr 07, 2018 10:37 pm

pi@raspberrypi:~/rtranscode4 $ rtranscode -i=playlist.m3u -o=channels.dat
analyzing: http://192.168.1.215:9981/stream/channelid/2062929554
analyzing: http://192.168.1.215:9981/stream/channelid/582454247
analyzing: http://192.168.1.215:9981/stream/channelid/2096827154
analyzing: http://192.168.1.215:9981/stream/channelid/2079525138
analyzing: http://192.168.1.215:9981/stream/channelid/93499316
added 5 entries to /home/pi/rtranscode4/channels.dat

Now work!!! :)

Thank again!!!

jccj78
Posts: 14
Joined: Sun Dec 17, 2017 3:05 pm

Re: Real Time Transcoding of DVB TV Streams

Sun Apr 08, 2018 11:27 am

Hello, I am trying to install kweb (VII Create a kweb GUI) but I get error:

pi@raspberrypi:~ $ cd rtranscode4/
pi@raspberrypi:~/rtranscode4 $ cd kweb
pi@raspberrypi:~/rtranscode4/kweb $ ./create_kpages.py
Traceback (most recent call last):
File "./create_kpages.py", line 483, in <module>
os.chmod(full_path('start_rt_gui'), 511)
OSError: [Errno 2] No such file or directory: '/home/pi/rtranscode4/kweb/start_rt_gui'

In /home/pi/rtranscode4/kweb/ I have only this 3 files: RT-GUI, channels.html, create_kpages.py

What error am I doing?

Rtranscode seems to work very well in command line. Two questions about:

. What is the minimun possible bitrate transcoding? (I would like about 320kbps) What options to set it?
. Is it possible to abort transcoding automatically in raspberry pi when is closed vlc playing xyz.mkv from phone for example? Or should it be
closed manually in raspberry?

Thank you very much!

gkreidl
Posts: 5571
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Real Time Transcoding of DVB TV Streams

Sun Apr 08, 2018 11:58 am

jccj78 wrote:
Sun Apr 08, 2018 11:27 am
Hello, I am trying to install kweb (VII Create a kweb GUI) but I get error:

pi@raspberrypi:~ $ cd rtranscode4/
pi@raspberrypi:~/rtranscode4 $ cd kweb
pi@raspberrypi:~/rtranscode4/kweb $ ./create_kpages.py
Traceback (most recent call last):
File "./create_kpages.py", line 483, in <module>
os.chmod(full_path('start_rt_gui'), 511)
OSError: [Errno 2] No such file or directory: '/home/pi/rtranscode4/kweb/start_rt_gui'

In /home/pi/rtranscode4/kweb/ I have only this 3 files: RT-GUI, channels.html, create_kpages.py

What error am I doing?

Rtranscode seems to work very well in command line. Two questions about:

. What is the minimun possible bitrate transcoding? (I would like about 320kbps) What options to set it?
. Is it possible to abort transcoding automatically in raspberry pi when is closed vlc playing xyz.mkv from phone for example? Or should it be
closed manually in raspberry?

Thank you very much!
Another bug (which I have just fixed), but you can easily correct it: Run (inside the kweb directory)
chmod +x RT-GUI

No, the transcoded stream is not stopped, if a client disconnects. That wouldn't make sense as there may be a number of clients listening.
But if you use the web interface you can start and stop transcoding from any browser.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

jccj78
Posts: 14
Joined: Sun Dec 17, 2017 3:05 pm

Re: Real Time Transcoding of DVB TV Streams

Sun Apr 08, 2018 12:04 pm

pi@raspberrypi:~/rtranscode4/kweb $ ls
channels.html create_kpages.py RT-GUI
pi@raspberrypi:~/rtranscode4/kweb $ chmod +x RT-GUI
pi@raspberrypi:~/rtranscode4/kweb $ ./create_kpages.py
Traceback (most recent call last):
File "./create_kpages.py", line 483, in <module>
os.chmod(full_path('start_rt_gui'), 511)
OSError: [Errno 2] No such file or directory: '/home/pi/rtranscode4/kweb/start_rt_gui'

What wrong?

Thanks for your quick answers!

gkreidl
Posts: 5571
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Real Time Transcoding of DVB TV Streams

Sun Apr 08, 2018 12:15 pm

jccj78 wrote:
Sun Apr 08, 2018 12:04 pm
pi@raspberrypi:~/rtranscode4/kweb $ ls
channels.html create_kpages.py RT-GUI
pi@raspberrypi:~/rtranscode4/kweb $ chmod +x RT-GUI
pi@raspberrypi:~/rtranscode4/kweb $ ./create_kpages.py
Traceback (most recent call last):
File "./create_kpages.py", line 483, in <module>
os.chmod(full_path('start_rt_gui'), 511)
OSError: [Errno 2] No such file or directory: '/home/pi/rtranscode4/kweb/start_rt_gui'

What wrong?

Thanks for your quick answers!
The name of the start file has been changed to "RT-GUI", but I forgot to change it in one line of code (meanwhile fixed). But you only need to make the file RT-GUI executable from the command line as explained above.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

jccj78
Posts: 14
Joined: Sun Dec 17, 2017 3:05 pm

Re: Real Time Transcoding of DVB TV Streams

Sun Apr 08, 2018 12:31 pm

Ok, That's Rights!

Can I run and manage RT-GUI in my android phone over vpn to my home without login in Raspberrypi? (manage kweb in android).

Thank gkreidl!

jccj78
Posts: 14
Joined: Sun Dec 17, 2017 3:05 pm

Re: Real Time Transcoding of DVB TV Streams

Sun Apr 08, 2018 12:53 pm

HD Channels works fine. But I have a one SD Channel that does not work.
VLC in remote computer say this:

main debug: using stream_filter module "record"
main debug: creating demux: access='http' demux='any' location='192.168.1.215:9080/xyz.mkv' file='\\192.168.1.215:9080\xyz.mkv'
main debug: looking for demux module matching "mkv": 55 candidates
es debug: cannot peek
es debug: cannot peek
es debug: cannot peek
es debug: cannot peek
es debug: cannot peek
mod debug: MOD validation failed (ext=mkv)
ps debug: cannot peek
mjpeg warning: no more data
mjpeg error: cannot peek
mpgv debug: cannot peek
avcodec warning: cannot peek
vobsub debug: could not read vobsub IDX file
ps debug: cannot peek
main debug: no demux modules matched
main debug: removing module "record"
main debug: removing module "prefetch"
main debug: removing module "access"
main debug: dead input
main debug: changing item without a request (current 0/1)
main debug: nothing to play
qt debug: IM: Deleting the input

Where is the rtranscode log path for more detail?

jccj78
Posts: 14
Joined: Sun Dec 17, 2017 3:05 pm

Re: Real Time Transcoding of DVB TV Streams

Sun Apr 08, 2018 5:35 pm

Works very well sd channels and hd channels!!! Great job. I am in Stretch.

Now we just need to publish the kweb service in order to execute it and control it from another remote device. So you do not have to logon into raspberry pi to control the transcodes.

P.S: Sorry, I did not see that part of the manual. It is really very good documented in the manual to use a web server with rtranscode. Impressive documentation Thank you very much.

gkreidl
Posts: 5571
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Real Time Transcoding of DVB TV Streams

Mon Apr 09, 2018 5:52 am

jccj78 wrote:
Sun Apr 08, 2018 5:35 pm
Works very well sd channels and hd channels!!! Great job. I am in Stretch.

Now we just need to publish the kweb service in order to execute it and control it from another remote device. So you do not have to logon into raspberry pi to control the transcodes.

P.S: Sorry, I did not see that part of the manual. It is really very good documented in the manual to use a web server with rtranscode. Impressive documentation Thank you very much.
I'm glad that everything is working for you now.
And thanks for the bug reports. In the future I plan to add incremental updates for bug fixes.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

jccj78
Posts: 14
Joined: Sun Dec 17, 2017 3:05 pm

Re: Real Time Transcoding of DVB TV Streams

Mon Apr 09, 2018 4:07 pm

Rtranscode works really well. Would it be possible to stop transcoding automatically when closing kodi or vlc in remote device for example? It is possible that you forget to stop the transcode. In that case, it could fill all the available space in root system?

gkreidl
Posts: 5571
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Real Time Transcoding of DVB TV Streams

Mon Apr 09, 2018 8:01 pm

jccj78 wrote:
Mon Apr 09, 2018 4:07 pm
Rtranscode works really well. Would it be possible to stop transcoding automatically when closing kodi or vlc in remote device for example? It is possible that you forget to stop the transcode. In that case, it could fill all the available space in root system?
No to both.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

leikoilja
Posts: 2
Joined: Wed May 10, 2017 3:49 pm

Re: Real Time Transcoding of DVB TV Streams

Sat Apr 21, 2018 1:00 pm

Hey, gkreidl.

Thank you for that awesome app! Exactly what I was looking for! I need to stream videos on my local web server and without transcoding it did not work. Now it works, thanks to you!

One question.
If i have 6 channels how can i transcode them in parallel as separate processes? Cause i want multiple user to be able to connect to web server and be able to stream any of 6 channels.

Am looking forward hearing from you.
Thanks!

gkreidl
Posts: 5571
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Real Time Transcoding of DVB TV Streams

Sun Apr 22, 2018 3:59 am

leikoilja wrote:
Sat Apr 21, 2018 1:00 pm
Hey, gkreidl.

Thank you for that awesome app! Exactly what I was looking for! I need to stream videos on my local web server and without transcoding it did not work. Now it works, thanks to you!

One question.
If i have 6 channels how can i transcode them in parallel as separate processes? Cause i want multiple user to be able to connect to web server and be able to stream any of 6 channels.

Am looking forward hearing from you.
Thanks!
It may be possible to transcode 2 SD channels on one RPi running two instances of rtranscode, using different configs with different port settings. But no chance for HD channels. The GPU simply cannot do it.

I'm streaming two channels myself sometimes, but I use a second RPi for the second stream.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: No registered users and 1 guest