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

Re: Real Time Transcoding of DVB TV Streams

Fri Jun 29, 2018 7:48 am

juanute wrote:
Fri Jun 29, 2018 7:18 am
Hi, thanks for your answer!

Those are enigma2 streams, from OpenSPA operating system. I don't know how to get raw stream from these :oops: I think these links are the only ones I can get...
OK, Enigma2 streams have been tested by two of my beta testers.
The first thing you should try is:
omxplayer -i URL
where URL is one of your stream links.
Post the output here.
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

em.rexhepi
Posts: 5
Joined: Wed Jun 06, 2018 12:16 pm

Re: Real Time Transcoding of DVB TV Streams

Mon Jul 02, 2018 11:12 am

Trying to transcode a UDP stream this is what I get:

PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
NAME="Raspbian GNU/Linux"
VERSION_ID="8"
VERSION="8 (jessie)"
ID=raspbian
ID_LIKE=debian

[email protected]_3B:~ $ rtranscode -s=5 -a=2 -u=aac -v=6 -t=udp://@:5004/ -path=/test
Unknown=udp://@:5004/ hd1 aac:0xc8
Starting to transcode
Size: 910x512 VBR: 288K ABR: 64K AAC
Deinterlace: off Scaler: OMX
Failed to set pipeline to ready


also it does not recognize rtsp as input:
[email protected]_3B:~ $ rtranscode -s=5 -a=2 -u=aac -v=6 -t=rtsp://192.168.0.184:8090/test -path=/test
no valid URL or path

[email protected]_3B:~ $ omxplayer -i rtsp://192.168.0.184:8090/test
Input #0, rtsp, from 'rtsp://192.168.0.184:8090/test':
Metadata:
title : Unnamed
comment : N/A
Duration: N/A, start: 50.918133, bitrate: N/A
Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp
Stream #0:1: Video: h264 (High), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 60 fps, 25 tbr, 90k tbn, 120 tbc
have a nice day ;)


Both streams have the same codec I'm testing from vlc on my computer.

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

Re: Real Time Transcoding of DVB TV Streams

Mon Jul 02, 2018 11:34 am

em.rexhepi wrote:
Mon Jul 02, 2018 11:12 am
Trying to transcode a UDP stream this is what I get:

[email protected]_3B:~ $ rtranscode -s=5 -a=2 -u=aac -v=6 -t=udp://@:5004/ -path=/test
Unknown=udp://@:5004/ hd1 aac:0xc8
Starting to transcode
Size: 910x512 VBR: 288K ABR: 64K AAC
Deinterlace: off Scaler: OMX
Failed to set pipeline to ready


also it does not recognize rtsp as input:
[email protected]_3B:~ $ rtranscode -s=5 -a=2 -u=aac -v=6 -t=rtsp://192.168.0.184:8090/test -path=/test
no valid URL or path

[email protected]_3B:~ $ omxplayer -i rtsp://192.168.0.184:8090/test
Input #0, rtsp, from 'rtsp://192.168.0.184:8090/test':
Metadata:
title : Unnamed
comment : N/A
Duration: N/A, start: 50.918133, bitrate: N/A
Stream #0:0: Audio: aac (LC), 48000 Hz, stereo, fltp
Stream #0:1: Video: h264 (High), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 60 fps, 25 tbr, 90k tbn, 120 tbc
have a nice day ;)


Both streams have the same codec I'm testing from vlc on my computer.
rtsp is not supported, only http and udp.
Can you post the out put of
omxplayer -i udp://@:5004/
(your udp 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

juanute
Posts: 4
Joined: Tue Jun 19, 2018 4:20 pm

Re: Real Time Transcoding of DVB TV Streams

Mon Jul 02, 2018 6:28 pm

gkreidl wrote:
Fri Jun 29, 2018 7:48 am
juanute wrote:
Fri Jun 29, 2018 7:18 am
Hi, thanks for your answer!

Those are enigma2 streams, from OpenSPA operating system. I don't know how to get raw stream from these :oops: I think these links are the only ones I can get...
OK, Enigma2 streams have been tested by two of my beta testers.
The first thing you should try is:
omxplayer -i URL
where URL is one of your stream links.
Post the output here.
Hi, this is the omxplayer output from one random channel of my playlist:
omxplayer -i http://192.168.0.6:8001/1:0:1:C0:11:22D4:EEEE0000:0:0:0:
[mpeg2video @ 0x1c3cee0] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1c3cee0] Invalid frame dimensions 0x0.
[mpegts @ 0x1c1f4f0] Could not find codec parameters for stream 5 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'http://192.168.0.6:8001/1:0:1:C0:11:22D4:EEEE0000:0:0:0:':
Duration: N/A, start: 46746.008222, bitrate: N/A
Program 155
Program 156
Program 157
Program 158
Program 170
Program 171
Program 192
Stream #0:0[0x44d]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x44e](spa,spa): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:2[0x44f](spa): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
Stream #0:3[0x450](qaa): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 96 kb/s
Stream #0:4[0x451](spa): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, mono, s16p, 64 kb/s (visual impaired)
Stream #0:5[0x452]: Unknown: none ([5][0][0][0] / 0x0005)
Program 193
have a nice day ;)
And this is another random channel:
omxplayer -i http://192.168.0.6:8001/1:0:1:7797:424:1:C00000:0:0:0:
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpegts @ 0x16174e0] Could not find codec parameters for stream 5 (Unknown: none ([192][0][0][0] / 0x00C0)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 6 (Unknown: none ([192][0][0][0] / 0x00C0)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 7 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 8 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 9 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 10 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 11 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 12 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 13 (Unknown: none ([192][0][0][0] / 0x00C0)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 14 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 15 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'http://192.168.0.6:8001/1:0:1:7797:424:1:C00000:0:0:0:':
Duration: N/A, start: 27760.800022, bitrate: 15448 kb/s
Program 30601
Program 30602
Program 30603
Program 30604
Program 30605
Program 30606
Program 30607
Program 30608
Program 30609
Program 30611
Program 30612
Program 30613
Program 30614
Program 30615
Stream #0:0[0xa9]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x74](spa): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 128 kb/s (clean effects)
Stream #0:2[0x75](dos): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 128 kb/s (clean effects)
Stream #0:3[0x76](tre): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 96 kb/s (clean effects)
Stream #0:4[0x77](und): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 96 kb/s (clean effects)
Stream #0:5[0xd0]: Unknown: none ([192][0][0][0] / 0x00C0)
Stream #0:6[0xde]: Unknown: none ([192][0][0][0] / 0x00C0)
Stream #0:7[0xd5]: Unknown: none ([193][0][0][0] / 0x00C1)
Stream #0:8[0xfd]: Unknown: none ([193][0][0][0] / 0x00C1)
Stream #0:9[0x133]: Unknown: none ([193][0][0][0] / 0x00C1)
Stream #0:10[0x164]: Unknown: none ([193][0][0][0] / 0x00C1)
Stream #0:11[0x188]: Unknown: none ([193][0][0][0] / 0x00C1)
Stream #0:12[0x2ff]: Unknown: none ([193][0][0][0] / 0x00C1)
Stream #0:13[0x135]: Unknown: none ([192][0][0][0] / 0x00C0)
Stream #0:14[0x276]: Unknown: none ([193][0][0][0] / 0x00C1)
Stream #0:15[0x378]: Unknown: none ([193][0][0][0] / 0x00C1)
have a nice day ;)

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

Re: Real Time Transcoding of DVB TV Streams

Tue Jul 03, 2018 4:46 am

juanute wrote:
Mon Jul 02, 2018 6:28 pm
Hi, this is the omxplayer output from one random channel of my playlist:
omxplayer -i http://192.168.0.6:8001/1:0:1:C0:11:22D4:EEEE0000:0:0:0:
[mpeg2video @ 0x1c3cee0] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1c3cee0] Invalid frame dimensions 0x0.
[mpegts @ 0x1c1f4f0] Could not find codec parameters for stream 5 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'http://192.168.0.6:8001/1:0:1:C0:11:22D4:EEEE0000:0:0:0:':
Duration: N/A, start: 46746.008222, bitrate: N/A
Program 155
Program 156
Program 157
Program 158
Program 170
Program 171
Program 192
Stream #0:0[0x44d]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x44e](spa,spa): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
Stream #0:2[0x44f](spa): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 128 kb/s
Stream #0:3[0x450](qaa): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 96 kb/s
Stream #0:4[0x451](spa): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, mono, s16p, 64 kb/s (visual impaired)
Stream #0:5[0x452]: Unknown: none ([5][0][0][0] / 0x0005)
Program 193
have a nice day ;)
And this is another random channel:
omxplayer -i http://192.168.0.6:8001/1:0:1:7797:424:1:C00000:0:0:0:
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpeg2video @ 0x1636550] Invalid frame dimensions 0x0.
[mpegts @ 0x16174e0] Could not find codec parameters for stream 5 (Unknown: none ([192][0][0][0] / 0x00C0)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 6 (Unknown: none ([192][0][0][0] / 0x00C0)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 7 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 8 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 9 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 10 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 11 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 12 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 13 (Unknown: none ([192][0][0][0] / 0x00C0)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 14 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 0x16174e0] Could not find codec parameters for stream 15 (Unknown: none ([193][0][0][0] / 0x00C1)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'http://192.168.0.6:8001/1:0:1:7797:424:1:C00000:0:0:0:':
Duration: N/A, start: 27760.800022, bitrate: 15448 kb/s
Program 30601
Program 30602
Program 30603
Program 30604
Program 30605
Program 30606
Program 30607
Program 30608
Program 30609
Program 30611
Program 30612
Program 30613
Program 30614
Program 30615
Stream #0:0[0xa9]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x74](spa): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 128 kb/s (clean effects)
Stream #0:2[0x75](dos): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 128 kb/s (clean effects)
Stream #0:3[0x76](tre): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 96 kb/s (clean effects)
Stream #0:4[0x77](und): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 96 kb/s (clean effects)
Stream #0:5[0xd0]: Unknown: none ([192][0][0][0] / 0x00C0)
Stream #0:6[0xde]: Unknown: none ([192][0][0][0] / 0x00C0)
Stream #0:7[0xd5]: Unknown: none ([193][0][0][0] / 0x00C1)
Stream #0:8[0xfd]: Unknown: none ([193][0][0][0] / 0x00C1)
Stream #0:9[0x133]: Unknown: none ([193][0][0][0] / 0x00C1)
Stream #0:10[0x164]: Unknown: none ([193][0][0][0] / 0x00C1)
Stream #0:11[0x188]: Unknown: none ([193][0][0][0] / 0x00C1)
Stream #0:12[0x2ff]: Unknown: none ([193][0][0][0] / 0x00C1)
Stream #0:13[0x135]: Unknown: none ([192][0][0][0] / 0x00C0)
Stream #0:14[0x276]: Unknown: none ([193][0][0][0] / 0x00C1)
Stream #0:15[0x378]: Unknown: none ([193][0][0][0] / 0x00C1)
have a nice day ;)
OK, now try the same stream uris with
rtranscode -g=streamuri
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

juanute
Posts: 4
Joined: Tue Jun 19, 2018 4:20 pm

Re: Real Time Transcoding of DVB TV Streams

Mon Jul 09, 2018 3:54 pm

gkreidl wrote:
Tue Jul 03, 2018 4:46 am

OK, now try the same stream uris with
rtranscode -g=streamuri
This is the ourput

rtranscode -g=http://192.168.0.6:8001/1:0:1:C0:11:22D4:EEEE0000:0:0:0:
Unknown=http://192.168.0.6:8001/1:0:1:C0:11:22D4:EEEE0000:0:0:0: sd1 mpeg:0x44f,mpeg:0x450,mpeg:0x451

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

Re: Real Time Transcoding of DVB TV Streams

Mon Jul 09, 2018 5:25 pm

juanute wrote:
Mon Jul 09, 2018 3:54 pm
gkreidl wrote:
Tue Jul 03, 2018 4:46 am

OK, now try the same stream uris with
rtranscode -g=streamuri
This is the ourput

rtranscode -g=http://192.168.0.6:8001/1:0:1:C0:11:22D4:EEEE0000:0:0:0:
Unknown=http://192.168.0.6:8001/1:0:1:C0:11:22D4:EEEE0000:0:0:0: sd1 mpeg:0x44f,mpeg:0x450,mpeg:0x451
You should be able to start transcoding using:

Code: Select all

rtranscode -t=http://192.168.0.6:8001/1:0:1:C0:11:22D4:EEEE0000:0:0:0:
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

gigo1988
Posts: 39
Joined: Wed Sep 07, 2016 11:38 pm

Re: Real Time Transcoding of DVB TV Streams

Thu Jul 19, 2018 11:45 pm

Hello gkreidl,

i´ve a question to you. Since the latest transcoder update i try so many time to make a clean installation and so on but on stretch and jessie i have many issues. By testing the original Stream i cant see any issues but after transcdoing with stretch or jessie i only had issues. The overclock settings i ve done and test your own omx patch but every try only with issues. Maybe because i get errors by apt-get update i cant find anything about it and after the installation i get artefact ever few seconds with the colors with deinterlacing on stretch or by jessie without deinterlacing every few seconds freezer. Maybe could you give us an complete image which i can write on my sd? Without Channels.dat

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

Re: Real Time Transcoding of DVB TV Streams

Fri Jul 20, 2018 3:27 am

gigo1988 wrote:
Thu Jul 19, 2018 11:45 pm
Hello gkreidl,

i´ve a question to you. Since the latest transcoder update i try so many time to make a clean installation and so on but on stretch and jessie i have many issues. By testing the original Stream i cant see any issues but after transcdoing with stretch or jessie i only had issues. The overclock settings i ve done and test your own omx patch but every try only with issues. Maybe because i get errors by apt-get update i cant find anything about it and after the installation i get artefact ever few seconds with the colors with deinterlacing on stretch or by jessie without deinterlacing every few seconds freezer. Maybe could you give us an complete image which i can write on my sd? Without Channels.dat
If you get errors with apt-get update/upgrade, you have serious system problems (network, SD card, power supply ...) which you have to solve first.

I'm sorry but I cannot provide complete images.
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

gigo1988
Posts: 39
Joined: Wed Sep 07, 2016 11:38 pm

Re: Real Time Transcoding of DVB TV Streams

Fri Jul 20, 2018 9:09 am

okay i´ve solve the problem with apt-get it seems there is a problem with ipv6. I´ve Dual Stack and ve deactivated ipv6 then it works. Now after every update, upgrade install omx and so on. It works better. But on some channels in 1080i i ve problems again that it works for 20 seconds but then artefacts. The total running time will not be longer then 2 Hours with artefact. Other 1080i Channels works now without artefacts and more then 6 Hours without problems. My Configuration 1080i25fps to 720p25fps with deinterlace(1) and medium bitrate.

The Same i ve test on Jessie with deinterlace and there wasnt artefacts but ever 15 or sometimes more seconds short freezer.

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

Re: Real Time Transcoding of DVB TV Streams

Fri Jul 20, 2018 12:11 pm

gigo1988 wrote:
Fri Jul 20, 2018 9:09 am
okay i´ve solve the problem with apt-get it seems there is a problem with ipv6. I´ve Dual Stack and ve deactivated ipv6 then it works. Now after every update, upgrade install omx and so on. It works better. But on some channels in 1080i i ve problems again that it works for 20 seconds but then artefacts. The total running time will not be longer then 2 Hours with artefact. Other 1080i Channels works now without artefacts and more then 6 Hours without problems. My Configuration 1080i25fps to 720p25fps with deinterlace(1) and medium bitrate.

The Same i ve test on Jessie with deinterlace and there wasnt artefacts but ever 15 or sometimes more seconds short freezer.
Deinterlacing + scaling is heavy work for the CPU, especially on Stretch where HW scaling cannot be used. But the deinterlacing and scaling software (gstreamer) seems to be more efficient on Stretch.

For 1080i input I use 910x512 resolution; on Jessie you do not have to use deinterlacing at all for this resolution.
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

gigo1988
Posts: 39
Joined: Wed Sep 07, 2016 11:38 pm

Re: Real Time Transcoding of DVB TV Streams

Fri Jul 20, 2018 7:08 pm

Yes on Jessie i use the same resolution for 1080i but why is it a problem only by some channels? It is the same resolution and bitrate. For example by Sat1HD there isnt any problem but by the rtl with problems

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

Re: Real Time Transcoding of DVB TV Streams

Fri Jul 20, 2018 7:48 pm

gigo1988 wrote:
Fri Jul 20, 2018 7:08 pm
Yes on Jessie i use the same resolution for 1080i but why is it a problem only by some channels? It is the same resolution and bitrate. For example by Sat1HD there isnt any problem but by the rtl with problems
PMs are not possible anymore. Cont5act me by email. You'll find it in the mumudvb package.
run dpkg --info package-name
(inside the installation folder).
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

Seal
Posts: 1
Joined: Sun Jul 29, 2018 7:24 pm

Re: Real Time Transcoding of DVB TV Streams

Sun Jul 29, 2018 7:29 pm

@gkreidl: it is possible to use your rtranscode with pipe output? I would like to integrate it as part of transcoding with VDR for example.

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

Re: Real Time Transcoding of DVB TV Streams

Mon Jul 30, 2018 4:49 am

Seal wrote:
Sun Jul 29, 2018 7:29 pm
@gkreidl: it is possible to use your rtranscode with pipe output? I would like to integrate it as part of transcoding with VDR for example.
No, it's based on http-launch, a small web server.
But it should be possible to run it on top of VDR.
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

capnbill
Posts: 4
Joined: Fri Aug 31, 2018 4:42 pm

Re: Real Time Transcoding of DVB TV Streams

Fri Aug 31, 2018 5:01 pm

Hi gkreidl -- Thanks for all your work on this! Before I stumbled on your work I set up a TVHeadEnd server and VPN server on a Pi 3B+ (with USB tuner and digital antenna) at my brother's house and was then just accessing my remote side by connecting to the the TVHeadEnd server browser interface, tuning to an available channel then feeding the resulting stream to VLC Player on my Windows machine. The ISPs on both sides are plenty fast. Gigabit on the server end and 100Mbps on my end. Occasionally I was able to get a perfect 720p 60fps stream across the internet, but generally I'm seeing artifacts and scrambling. So... I need H264 transcoding which it appears rtranscode and the other pieces in your manual will do for me. One problem though -- I have a Pi 3B+ and have done a bunch of searching for direction and experimentation but can't for the life of me figure out how to load Jessie on the 3B+ so I can use the GPU for transcoding. Is there a set of step-by-step "Installing Jessie on a Pi 3B+" set of instructions somewhere?

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

Re: Real Time Transcoding of DVB TV Streams

Sat Sep 01, 2018 12:36 pm

capnbill wrote:
Fri Aug 31, 2018 5:01 pm
Hi gkreidl -- Thanks for all your work on this! Before I stumbled on your work I set up a TVHeadEnd server and VPN server on a Pi 3B+ (with USB tuner and digital antenna) at my brother's house and was then just accessing my remote side by connecting to the the TVHeadEnd server browser interface, tuning to an available channel then feeding the resulting stream to VLC Player on my Windows machine. The ISPs on both sides are plenty fast. Gigabit on the server end and 100Mbps on my end. Occasionally I was able to get a perfect 720p 60fps stream across the internet, but generally I'm seeing artifacts and scrambling. So... I need H264 transcoding which it appears rtranscode and the other pieces in your manual will do for me. One problem though -- I have a Pi 3B+ and have done a bunch of searching for direction and experimentation but can't for the life of me figure out how to load Jessie on the 3B+ so I can use the GPU for transcoding. Is there a set of step-by-step "Installing Jessie on a Pi 3B+" set of instructions somewhere?
The Pi 3B+ requires a newer kernel and firmware which is not available for Jessie without using some tricks.

It might be worth trying Stretch first. Of course rtranscode also uses the GPU for transcoding on Stretch. The main difference is, that video scaling has to be done by software (and also deinterlacing). So it needs more CPU power. The Pi 3B+ offers more CPU power (1400 MHz instead of 1200) if you can keep it cool enough (below 60 C or 70 C with a special config option).
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

capnbill
Posts: 4
Joined: Fri Aug 31, 2018 4:42 pm

Re: Real Time Transcoding of DVB TV Streams

Wed Sep 05, 2018 5:18 pm

Thanks! My RPi3B+ has a case with heatsinks and a fan so I'm able to overclock it to 1.45 Mhz at least. I'll give the whole thing another shot and see how it goes. A few questions:
- If I understand correctly from the rtranscode 4 manual, I need mumudvb to do unicast of transcoded HD 1080 streams, true? (I don't want to do multicast since there will just be a single client, but I will want that client to be able to stream any of the channels one at a time)
- Also, Unicast basically sets up a port for each channel, and only starts streaming when there's a client on the other end asking for it, right? (I don't want to clog up my brother's LAN with traffic when I'm not using it)
- If I just want to keep the picture size to whatever the original size is then is the scaling necessary? Or does it have to happen just by virtue of changing the format from MPEG2 to H264?

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

Re: Real Time Transcoding of DVB TV Streams

Wed Sep 05, 2018 6:53 pm

capnbill wrote:
Wed Sep 05, 2018 5:18 pm
Thanks! My RPi3B+ has a case with heatsinks and a fan so I'm able to overclock it to 1.45 Mhz at least. I'll give the whole thing another shot and see how it goes. A few questions:
- If I understand correctly from the rtranscode 4 manual, I need mumudvb to do unicast of transcoded HD 1080 streams, true? (I don't want to do multicast since there will just be a single client, but I will want that client to be able to stream any of the channels one at a time)
No, rtranscode uses http-launch as unicast http server for the transcoded streams.

mumudvb can be used as a possible backend, which gets the original DVB stream from the interface and serves it as unicast HTTP or/and as multicast UDP stream. The output of mumudvb can be used as input for the transcoder. But you can also use other backenss.
- Also, Unicast basically sets up a port for each channel, and only starts streaming when there's a client on the other end asking for it, right? (I don't want to clog up my brother's LAN with traffic when I'm not using it)
Yes. http-launch, which serves the transcoded stream, only sends something, when one or more clients are connected,
- If I just want to keep the picture size to whatever the original size is then is the scaling necessary? Or does it have to happen just by virtue of changing the format from MPEG2 to H264?
Scaling is required in some cases because of the limits of the RPi GPU. It is not possible to transcode a 1080i50 H264 stream to a 1080p25 stream; in this case scaling is required (and also deinterlacing, at least on Stretch).
SD streams (typically 576i50), both MPEG2 and H264 can be transcoded to the same size, but usually deinterlacing is required.
720p50 streams can also be transcoded to the same size. Deinterlacing is not required.

It also depends on your bandwidth settings. If you need a really low bitrate, you have to scale the video down to a smaller size to get a decent image quality. When I started this project, my internet upload rate was 1 MBit and I always had to resize the streams. Meanwhile I've got 30MBit upload bandwidth and can afford higher bitrates and larger image sizes.
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

capnbill
Posts: 4
Joined: Fri Aug 31, 2018 4:42 pm

Re: Real Time Transcoding of DVB TV Streams

Sat Sep 08, 2018 1:30 pm

Thanks! So, upon further testing in which my brother increased the elevation of the antenna on his end, I am able to revert to TVHeadEnd to stream/view a raw MPEG2 1080x720 stream (including audio) over the internet with no issues, so what I thought was a processing issue must have been a signal strength/noise issue. I'm getting a content bitrate of around 15000 kbps on the VLC player.


Mumudvb configuration has been a real pain for me. The mumudvb service messages shows stuff being found on the chosen mux frequency (3 stream ids) for unicast streaming but going to the web interface localhost:4242 doesn't list any channels. Trying to figure that out. I am using a copy of the DVB-T template and am trying to tweak it for US ATSC with no luck so far.

BTW - Had to tweak the configuration script because my w_scan output didn't match what the script was expecting no matter what option I used. Has the format CHANNEL NAME: FREQUENCY: MODULATION: (some number): (some number): SID I tried -x, -X, and nothing and it's pretty much the same output.

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

Re: Real Time Transcoding of DVB TV Streams

Sat Sep 08, 2018 4:30 pm

capnbill wrote:
Sat Sep 08, 2018 1:30 pm
Thanks! So, upon further testing in which my brother increased the elevation of the antenna on his end, I am able to revert to TVHeadEnd to stream/view a raw MPEG2 1080x720 stream (including audio) over the internet with no issues, so what I thought was a processing issue must have been a signal strength/noise issue. I'm getting a content bitrate of around 15000 kbps on the VLC player.


Mumudvb configuration has been a real pain for me. The mumudvb service messages shows stuff being found on the chosen mux frequency (3 stream ids) for unicast streaming but going to the web interface localhost:4242 doesn't list any channels. Trying to figure that out. I am using a copy of the DVB-T template and am trying to tweak it for US ATSC with no luck so far.

BTW - Had to tweak the configuration script because my w_scan output didn't match what the script was expecting no matter what option I used. Has the format CHANNEL NAME: FREQUENCY: MODULATION: (some number): (some number): SID I tried -x, -X, and nothing and it's pretty much the same output.
Unfortunately I have no chance to test ATSC myself.
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

capnbill
Posts: 4
Joined: Fri Aug 31, 2018 4:42 pm

Re: Real Time Transcoding of DVB TV Streams

Tue Sep 11, 2018 12:55 pm

No problems -- Brice of Mumudvb has been very responsive in working through this. He has a version for me to test. Hope to get to it this weekend.

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

Re: Real Time Transcoding of DVB TV Streams

Tue Sep 11, 2018 2:13 pm

capnbill wrote:
Tue Sep 11, 2018 12:55 pm
No problems -- Brice of Mumudvb has been very responsive in working through this. He has a version for me to test. Hope to get to it this weekend.
Yes, Brice is a very nice and helpful guy. Which reminds me that I should compile and build a new RPi package and send it to him. The latest is from January. The new version will contain the ATSC 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

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

Re: Real Time Transcoding of DVB TV Streams

Tue Sep 11, 2018 3:31 pm

gkreidl wrote:
Tue Sep 11, 2018 2:13 pm
capnbill wrote:
Tue Sep 11, 2018 12:55 pm
No problems -- Brice of Mumudvb has been very responsive in working through this. He has a version for me to test. Hope to get to it this weekend.
Yes, Brice is a very nice and helpful guy. Which reminds me that I should compile and build a new RPi package and send it to him. The latest is from January. The new version will contain the ATSC fixes.
A new mumudvb version for the RPi is now available. It will take a few days until it will appear on the mumudvb download site, but can be downloaded from here.
I've also updated the rtranscode4 package to contain the latest mumudvb package.
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

mvinson
Posts: 4
Joined: Wed Oct 10, 2018 6:12 pm

Re: Real Time Transcoding of DVB TV Streams

Wed Oct 10, 2018 6:19 pm

Hi,

I am testing this out on a RPi3b+ with Raspbian Stretch and a multicast udp stream coming directly out of an HDHomerun tuner. So far omxplayer sees and plays the streams but rtranscode is not having any luck.

output from omxplayer

Code: Select all

[email protected]:~ $ omxplayer -i udp://@239.255.1.18:59004
[mpeg2video @ 0xcd13e0] Invalid frame dimensions 0x0.
[mpeg2video @ 0xcd13e0] Invalid frame dimensions 0x0.
[mpeg2video @ 0xcd13e0] Invalid frame dimensions 0x0.
[mpeg2video @ 0xcd13e0] Invalid frame dimensions 0x0.
[mpeg2video @ 0xcd13e0] Invalid frame dimensions 0x0.
Input #0, mpegts, from 'udp://@239.255.1.18:59004':
  Duration: N/A, start: 65745.995333, bitrate: N/A
  Program 3
    Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, bottom first), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions, 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
    Stream #0:1[0x34](eng): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, 5.1(side), fltp, 384 kb/s
    Stream #0:2[0x35](spa): Audio: ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 192 kb/s (visual impaired)
have a nice day ;)
output from rtranscode with same uri

Code: Select all

[email protected]:~ $ rtranscode -h=8  -v=19 -t=udp://239.255.1.18:59004
Unknown=udp://239.255.1.18:59004 hd3 ac3:0x34,ac3:0x35
Starting to transcode
Size: 1280x720  VBR: 3M  ABR: original AC3
Deinterlace: off Scaler: Soft,NN
no element with name "stream" found
The stream is mpeg2 and I have the license activated for mpeg2.

Thanks for your help!

Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: Piensa3D and 14 guests