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

Re: Real Time Transcoding of DVB TV Streams

Wed Oct 10, 2018 8:37 pm

Testing this out with a RPi3B+ with Stretch and a multicast udp MPEG2TS stream coming from an HDHomerun TECH3-US commercial tuner.

So far omxplayer can see the stream and play it, but rtranscode spits out an error that no stream can be found.

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 ;)
[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
[email protected]:~ $

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

Re: Real Time Transcoding of DVB TV Streams

Thu Oct 11, 2018 10:11 am

mvinson wrote:
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!
How large is your GPU memory size (in /boot/config.txt)?
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: 5
Joined: Wed Oct 10, 2018 6:12 pm

Re: Real Time Transcoding of DVB TV Streams

Thu Oct 11, 2018 3:44 pm

gpu_mem=192 in my current /boot/config.txt

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

Re: Real Time Transcoding of DVB TV Streams

Fri Oct 12, 2018 6:28 am

mvinson wrote:
Thu Oct 11, 2018 3:44 pm
gpu_mem=192 in my current /boot/config.txt
OK.
The error message means that the gstreamer tool chain throws an error. To get more information use
export GST_DEBUG=1
and then run your rstranscode command line.
Post the result 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

User avatar
Cr4z33
Posts: 20
Joined: Fri Oct 12, 2018 3:30 pm

Re: Real Time Transcoding of DVB TV Streams

Fri Oct 12, 2018 3:43 pm

I don't know if this is an off topic question, but does anybody know if this can be used with MagicMirror? :?

I am planning to build a smart mirror for the bathroom and I would love to add also a TV window in it streaming from my Linux based decoder (Vu+ Duo 2).

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

Re: Real Time Transcoding of DVB TV Streams

Fri Oct 12, 2018 5:25 pm

Cr4z33 wrote:
Fri Oct 12, 2018 3:43 pm
I don't know if this is an off topic question, but does anybody know if this can be used with MagicMirror? :?

I am planning to build a smart mirror for the bathroom and I would love to add also a TV window in it streaming from my Linux based decoder (Vu+ Duo 2).
You won't need it. If the smart mirror is connected to your network, you can display the TV stream. Transcoding won't be required,
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

User avatar
Cr4z33
Posts: 20
Joined: Fri Oct 12, 2018 3:30 pm

Re: Real Time Transcoding of DVB TV Streams

Fri Oct 12, 2018 5:27 pm

gkreidl wrote:
Fri Oct 12, 2018 5:25 pm
Cr4z33 wrote:
Fri Oct 12, 2018 3:43 pm
I don't know if this is an off topic question, but does anybody know if this can be used with MagicMirror? :?

I am planning to build a smart mirror for the bathroom and I would love to add also a TV window in it streaming from my Linux based decoder (Vu+ Duo 2).
You won't need it. If the smart mirror is connected to your network, you can display the TV stream. Transcoding won't be required,
Alright thanks and sorry for the off topic.

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

Re: Real Time Transcoding of DVB TV Streams

Wed Oct 17, 2018 9:33 pm

Here is the output of the command with GST_DEBUG enabled:

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
0:00:00.012090781  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "udpsrc"
0:00:00.012243021  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "tsdemux"
0:00:00.012285365  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no source [[email protected](nil)]
0:00:00.015281250  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "ac3parse"
0:00:00.015365469  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no sink [[email protected]]
0:00:00.015414375  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "matroskamux"
0:00:00.015452292  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no source [[email protected](nil)]
0:00:00.015624375  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "mpegvideoparse"
0:00:00.015662344  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no sink [[email protected]]
0:00:00.037512031  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no source [[email protected]]
0:00:00.038166823  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "h264parse"
0:00:00.038470000  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no sink [[email protected]]
0:00:00.038687240  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no source [[email protected]]
0:00:00.039114584  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:1141:priv_gst_parse_launch: No src-element named "demux" - omitting link
0:00:00.039202552  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:1141:priv_gst_parse_launch: No src-element named "demux" - omitting link
0:00:00.039532761  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:1155:priv_gst_parse_launch: No sink-element named "(null)" - omitting link
no element with name "stream" found

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

Re: Real Time Transcoding of DVB TV Streams

Wed Oct 17, 2018 10:16 pm

mvinson wrote:
Wed Oct 17, 2018 9:33 pm
Here is the output of the command with GST_DEBUG enabled:

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
0:00:00.012090781  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "udpsrc"
0:00:00.012243021  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "tsdemux"
0:00:00.012285365  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no source [[email protected](nil)]
0:00:00.015281250  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "ac3parse"
0:00:00.015365469  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no sink [[email protected]]
0:00:00.015414375  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "matroskamux"
0:00:00.015452292  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no source [[email protected](nil)]
0:00:00.015624375  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "mpegvideoparse"
0:00:00.015662344  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no sink [[email protected]]
0:00:00.037512031  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no source [[email protected]]
0:00:00.038166823  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:716:priv_gst_parse_yyparse: no element "h264parse"
0:00:00.038470000  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no sink [[email protected]]
0:00:00.038687240  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:801:priv_gst_parse_yyparse: link has no source [[email protected]]
0:00:00.039114584  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:1141:priv_gst_parse_launch: No src-element named "demux" - omitting link
0:00:00.039202552  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:1141:priv_gst_parse_launch: No src-element named "demux" - omitting link
0:00:00.039532761  8557   0x919d40 ERROR           GST_PIPELINE grammar.y:1155:priv_gst_parse_launch: No sink-element named "(null)" - omitting link
no element with name "stream" found
Some important gstreamer parts are missing (not installed). Page 11 of the manual contains a list if all required gstreamer packages.
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: 5
Joined: Wed Oct 10, 2018 6:12 pm

Re: Real Time Transcoding of DVB TV Streams

Thu Oct 18, 2018 11:02 pm

Installed the missing pieces from page 11 of the manual. Getting closer I think but still getting some weird errors.

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
Listening on http://127.0.0.1:9080/xyz.mkv
Starting pipeline
0:00:00.605452812   746 0x6fd024c0 ERROR            omxvideodec gstomxvideodec.c:980:gst_omx_video_dec_reconfigure_output_port:<omxmpeg2videodec-omxmpeg2videodec0> Failed to negotiate RGBA for EGLImage
New connection 172.27.1.16:41424
Starting to stream to 172.27.1.16:41424
New connection 172.27.1.16:41425
Starting to stream to 172.27.1.16:41425
Removing connection 172.27.1.16:41424
Removing connection 172.27.1.16:41425
0:00:04.140079634   746 0x6fe4ee00 ERROR            omxvideoenc gstomxvideoenc.c:675:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> NOT passing buffer as it is a fragment - nFlags 0420, now size 65536
New connection 172.27.1.16:41427
Starting to stream to 172.27.1.16:41427
Removing connection 172.27.1.16:41427
0:00:07.505510935   746 0x6fe4ee00 ERROR            omxvideoenc gstomxvideoenc.c:675:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> NOT passing buffer as it is a fragment - nFlags 0420, now size 65536
New connection 172.27.1.16:41428
Starting to stream to 172.27.1.16:41428
Removing connection 172.27.1.16:41428
New connection 172.27.1.16:41429
Starting to stream to 172.27.1.16:41429
Removing connection 172.27.1.16:41429
New connection 172.27.1.16:41434
Starting to stream to 172.27.1.16:41434
Removing connection 172.27.1.16:41434
New connection 172.27.1.16:41435
Starting to stream to 172.27.1.16:41435
0:00:18.211666868   746 0x6fe4ee00 ERROR            omxvideoenc gstomxvideoenc.c:675:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> NOT passing buffer as it is a fragment - nFlags 0400, now size 65536
0:00:18.250203378   746 0x6fe4ee00 ERROR            omxvideoenc gstomxvideoenc.c:675:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> NOT passing buffer as it is a fragment - nFlags 0400, now size 65536
0:00:18.293377597   746 0x6fe4ee00 ERROR            omxvideoenc gstomxvideoenc.c:675:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> NOT passing buffer as it is a fragment - nFlags 0400, now size 65536
Removing connection 172.27.1.16:41435
0:00:18.774606764   746 0x6fe4ee00 ERROR            omxvideoenc gstomxvideoenc.c:675:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> NOT passing buffer as it is a fragment - nFlags 0420, now size 65536
0:00:18.786809524   746 0x6fe4ee00 ERROR            omxvideoenc gstomxvideoenc.c:675:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> NOT passing buffer as it is a fragment - nFlags 0520, now size 131072

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

Re: Real Time Transcoding of DVB TV Streams

Thu Oct 25, 2018 2:34 pm

mvinson wrote:
Thu Oct 18, 2018 11:02 pm
Installed the missing pieces from page 11 of the manual. Getting closer I think but still getting some weird errors.

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
Listening on http://127.0.0.1:9080/xyz.mkv
Starting pipeline
0:00:00.605452812   746 0x6fd024c0 ERROR            omxvideodec gstomxvideodec.c:980:gst_omx_video_dec_reconfigure_output_port:<omxmpeg2videodec-omxmpeg2videodec0> Failed to negotiate RGBA for EGLImage
New connection 172.27.1.16:41424
Starting to stream to 172.27.1.16:41424
New connection 172.27.1.16:41425
Starting to stream to 172.27.1.16:41425
Removing connection 172.27.1.16:41424
Removing connection 172.27.1.16:41425
0:00:04.140079634   746 0x6fe4ee00 ERROR            omxvideoenc gstomxvideoenc.c:675:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> NOT passing buffer as it is a fragment - nFlags 0420, now size 65536
New connection 172.27.1.16:41427
Starting to stream to 172.27.1.16:41427
Removing connection 172.27.1.16:41427
0:00:07.505510935   746 0x6fe4ee00 ERROR            omxvideoenc gstomxvideoenc.c:675:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> NOT passing buffer as it is a fragment - nFlags 0420, now size 65536
New connection 172.27.1.16:41428
Starting to stream to 172.27.1.16:41428
Removing connection 172.27.1.16:41428
New connection 172.27.1.16:41429
Starting to stream to 172.27.1.16:41429
Removing connection 172.27.1.16:41429
New connection 172.27.1.16:41434
Starting to stream to 172.27.1.16:41434
Removing connection 172.27.1.16:41434
New connection 172.27.1.16:41435
Starting to stream to 172.27.1.16:41435
0:00:18.211666868   746 0x6fe4ee00 ERROR            omxvideoenc gstomxvideoenc.c:675:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> NOT passing buffer as it is a fragment - nFlags 0400, now size 65536
0:00:18.250203378   746 0x6fe4ee00 ERROR            omxvideoenc gstomxvideoenc.c:675:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> NOT passing buffer as it is a fragment - nFlags 0400, now size 65536
0:00:18.293377597   746 0x6fe4ee00 ERROR            omxvideoenc gstomxvideoenc.c:675:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> NOT passing buffer as it is a fragment - nFlags 0400, now size 65536
Removing connection 172.27.1.16:41435
0:00:18.774606764   746 0x6fe4ee00 ERROR            omxvideoenc gstomxvideoenc.c:675:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> NOT passing buffer as it is a fragment - nFlags 0420, now size 65536
0:00:18.786809524   746 0x6fe4ee00 ERROR            omxvideoenc gstomxvideoenc.c:675:gst_omx_video_enc_handle_output_frame:<omxh264enc-omxh264enc0> NOT passing buffer as it is a fragment - nFlags 0520, now size 131072
Sorry, I must have missed this one.
Only the first error message is important. I'm not sure about it. Did you enable the experimental OpenGL server? (I never use it).

The later error messages are not really errors, as the fragmented buffers are handled by the 6by9 patches.
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: 5841
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Real Time Transcoding of DVB TV Streams

Thu Oct 25, 2018 2:36 pm

I've updated the rtranscode 4.0 package to contain my latest mumudvb release (no other changes).
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: 43
Joined: Wed Sep 07, 2016 11:38 pm

Re: Real Time Transcoding of DVB TV Streams

Sun Nov 18, 2018 9:44 pm

Hello Gkreidl,

is it possible to set the Output to interlaced and no deinterlaced?

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

Re: Real Time Transcoding of DVB TV Streams

Mon Nov 19, 2018 1:00 am

gigo1988 wrote:
Sun Nov 18, 2018 9:44 pm
Hello Gkreidl,

is it possible to set the Output to interlaced and no deinterlaced?
No, the ouput is always progressive. For SD streams you can use doubled deinterlacing, which turns transforms a 576i50 into 576p50, using both half pictures of the interlaced original in turn. It's not possible for interlaced HD streams.
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: 43
Joined: Wed Sep 07, 2016 11:38 pm

Re: Real Time Transcoding of DVB TV Streams

Wed Dec 12, 2018 9:45 pm

Is there anything new? Because I ve seen a Raspian update which is hw based in Raspian included

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

Re: Real Time Transcoding of DVB TV Streams

Wed Dec 12, 2018 10:52 pm

gigo1988 wrote:
Wed Dec 12, 2018 9:45 pm
Is there anything new? Because I ve seen a Raspian update which is hw based in Raspian included
I have no idea what you mean?
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: 43
Joined: Wed Sep 07, 2016 11:38 pm

Re: Real Time Transcoding of DVB TV Streams

Sat Dec 15, 2018 1:03 am

sorry for my english. There is a new version of Raspian with VLC with HW Acceleration. Maybe there is something what we can use for your version.
https://www.elektronikpraxis.vogel.de/r ... -a-784840/

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

Re: Real Time Transcoding of DVB TV Streams

Sat Dec 15, 2018 6:29 am

gigo1988 wrote:
Sat Dec 15, 2018 1:03 am
sorry for my english. There is a new version of Raspian with VLC with HW Acceleration. Maybe there is something what we can use for your version.
https://www.elektronikpraxis.vogel.de/r ... -a-784840/
Of course I know about the new VLC version (I've started a thread about it). I do not think that VLC uses the GPU for encoding,

Years ago, when I started to use transcoding, I used VLC on a Desktop PC. It required the full processor resources of a dual core 3.5 GHz processor. Now I get better results from a RPi using a maximum of 12.5 W instead of 300,
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

supernewbie
Posts: 1
Joined: Sun Dec 30, 2018 7:51 am

Re: Real Time Transcoding of DVB TV Streams

Sun Dec 30, 2018 8:20 am

Hi, Everyone

EBML header parsing failed

Hmmm. What error? Please guide me for noob. How to solve it. Thank you so much.

Client status

Code: Select all

[email protected]:~ $ omxplayer -i http://127.0.0.1:9080/xyz.mkv [matroska,webm @ 0x8465d0] EBML header parsing failed
have a nice day ;
[email protected]:~ $ omxplayer -i http://127.0.0.1:9080/xyz.mkv [matroska,webm @ 0x8465d0] EBML header parsing failed
have a nice day ;) 
Server status

Code: Select all

[email protected]:~# rtranscode -t=http://192.168.1.43:9981/stream/channelid/303752470?ticket=003B8F567C9FFAEC6B75FDEC60DC96241E40D298
HD1=http://192.168.1.43:9981/stream/channelid/303752470?ticket=003B8F567C9FFAEC6B75FDEC60DC96241E40D298 hd2 aac:0x3f4,aac:0x3f5
Starting to transcode
Size: 910x512  VBR: 1.23M  ABR: original AAC
Deinterlace: off Scaler: OMX
Listening on http://127.0.0.1:9080/xyz.mkv
Starting pipeline
New connection 127.0.0.1:40392
Starting to stream to 127.0.0.1:40392
Removing connection 127.0.0.1:40392
New connection 127.0.0.1:40394
Starting to stream to 127.0.0.1:40394

scurab
Posts: 1
Joined: Sun Dec 30, 2018 11:18 am

Re: Real Time Transcoding of DVB TV Streams

Sun Dec 30, 2018 11:22 am

Hi,

thanks for amazing work. I do have a question though.
I have raspberry pi 3b+.
Is it normal to have http-launch process around 70% of CPU usage all the time when I start rtranscode ?

Stream source is from tvheadend

Using it as following (but doesn't matter much what params I pass, it's moreless same all the time)

Code: Select all

rtranscode -a=2 -v=9 -s=6 -t=http://192.168.168.20:9981/stream/channelid/979496264?profile=pass

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

Re: Real Time Transcoding of DVB TV Streams

Sun Dec 30, 2018 1:24 pm

supernewbie wrote:
Sun Dec 30, 2018 8:20 am
Hi, Everyone

EBML header parsing failed

Hmmm. What error? Please guide me for noob. How to solve it. Thank you so much.

Client status

Code: Select all

[email protected]:~ $ omxplayer -i http://127.0.0.1:9080/xyz.mkv [matroska,webm @ 0x8465d0] EBML header parsing failed
have a nice day ;
[email protected]:~ $ omxplayer -i http://127.0.0.1:9080/xyz.mkv [matroska,webm @ 0x8465d0] EBML header parsing failed
have a nice day ;) 
Server status

Code: Select all

[email protected]:~# rtranscode -t=http://192.168.1.43:9981/stream/channelid/303752470?ticket=003B8F567C9FFAEC6B75FDEC60DC96241E40D298
HD1=http://192.168.1.43:9981/stream/channelid/303752470?ticket=003B8F567C9FFAEC6B75FDEC60DC96241E40D298 hd2 aac:0x3f4,aac:0x3f5
Starting to transcode
Size: 910x512  VBR: 1.23M  ABR: original AAC
Deinterlace: off Scaler: OMX
Listening on http://127.0.0.1:9080/xyz.mkv
Starting pipeline
New connection 127.0.0.1:40392
Starting to stream to 127.0.0.1:40392
Removing connection 127.0.0.1:40392
New connection 127.0.0.1:40394
Starting to stream to 127.0.0.1:40394
No idea. I can play all transcoded streams with omxplayer.
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: 5841
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Real Time Transcoding of DVB TV Streams

Sun Dec 30, 2018 1:26 pm

scurab wrote:
Sun Dec 30, 2018 11:22 am
Hi,

thanks for amazing work. I do have a question though.
I have raspberry pi 3b+.
Is it normal to have http-launch process around 70% of CPU usage all the time when I start rtranscode ?

Stream source is from tvheadend

Using it as following (but doesn't matter much what params I pass, it's moreless same all the time)

Code: Select all

rtranscode -a=2 -v=9 -s=6 -t=http://192.168.168.20:9981/stream/channelid/979496264?profile=pass
Yes, that's normal (software scaling). But it's 70% of 400% (counting all 4 cores).
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

gobam
Posts: 1
Joined: Thu Jan 24, 2019 10:53 pm

Re: Real Time Transcoding of DVB TV Streams

Thu Jan 24, 2019 11:47 pm

Hi, I am trying to configure a rtranscode server in a RPi3 with raspbian Jessie, which is running Mumudvb without issues. I installed all required gstreamer plugins according to the manual, but when running the application I get the following error:

Code: Select all

[email protected]:/home/pi# rtranscode -t=http://192.168.15.127:4242/bysid/43
CANAL 1=http://192.168.15.127:4242/bysid/43 hd2 mpeg:0x7f0,mpeg:0x7f1
Starting to transcode
Size: 910x512  VBR: 1.23M  ABR: original MPEG
Deinterlace: off Scaler: OMX
Listening on http://127.0.0.1:9080/xyz.mkv
Starting pipeline
Error GStreamer error: negotiation problem.

The URL http://192.168.15.127:4242/bysid/43 is working fine in other machine using VLC. The following are the gstreamer packages installed:

Code: Select all

gstreamer0.10-alsa/oldstable,now 0.10.36-2 armhf [installed,automatic]
gstreamer0.10-plugins-base/oldstable,now 0.10.36-2 armhf [installed,automatic]
gstreamer1.0-alsa/oldstable,now 1.4.4-2+deb8u1 armhf [installed]
gstreamer1.0-libav/oldstable,now 1.4.4-2 armhf [installed]
gstreamer1.0-omx/oldstable,now 1.0.0.1-0+rpi18rpi1g armhf [installed]
gstreamer1.0-plugins-bad/oldstable,now 1.4.4-2.1+deb8u2 armhf [installed]
gstreamer1.0-plugins-base/oldstable,now 1.4.4-2+deb8u1 armhf [installed]
gstreamer1.0-plugins-base-apps/oldstable,now 1.4.4-2+deb8u1 armhf [installed]
gstreamer1.0-plugins-good/oldstable,now 1.4.4-2+deb8u3 armhf [installed]
gstreamer1.0-plugins-ugly/oldstable,now 1.4.4-2+deb8u1 armhf [installed]
gstreamer1.0-tools/oldstable,now 1.4.4-2+deb8u1 armhf [installed]
gstreamer1.0-x/oldstable,now 1.4.4-2+deb8u1 armhf [installed]
libgstreamer-plugins-bad1.0-0/oldstable,now 1.4.4-2.1+deb8u2 armhf [installed,automatic]
libgstreamer-plugins-base0.10-0/oldstable,now 0.10.36-2 armhf [installed,automatic]
libgstreamer-plugins-base1.0-0/oldstable,now 1.4.4-2+deb8u1 armhf [installed,automatic]
libgstreamer0.10-0/oldstable,now 0.10.36-1.5 armhf [installed,automatic]
libgstreamer1.0-0/oldstable,now 1.4.4-2+deb8u1 armhf [installed,automatic]
libreoffice-avmedia-backend-gstreamer/oldstable,now 1:4.3.3-2+rpi4 armhf [installed]

When I run the application with the -sm parameter, I get the following http-launch command:

Code: Select all

http-launch 9080 /xyz.mkv video/x-matroska default souphttpsrc location="http://192.168.15.127:4242/bysid/41" is-live=true keep-alive=true do-timestamp=true retries=10 typefind=true blocksize=16384 ! tsdemux parse-private-sections=false program-number=-1 name=demux demux.audio_07dc ! queue ! mpegaudioparse ! matroskamux name=stream streamable=true demux. ! queue ! h264parse ! video/x-h264,alignment=au ! omxh264dec ! video/x-raw,width=910,height=512 ! omxh264enc target-bitrate=1294222 control-rate=variable ! h264parse ! queue ! stream.

In that command I tried removing the "." after "streamable=true demux", and it didn't complaint about gstreamer negotiation issues, but the client is not receiving the stream connecting to the output URL (http://IP:9080/xyz.mkv). In Mumudvb I get the following error:

Code: Select all

Info:  Unicast :  We add the client 192.168.15.127:39127 to the channel "CANAL 1"
Info:  Unicast :  We add the client 192.168.15.127:39639 to the channel "CANAL 1"
Info:  Unicast :  Consecutive errors when writing to client 192.168.15.127:39639 during too much time, we disconnect
The last message appears about 10 secs after the http-launch command is executed.

I appreciate your help with this problem. Thanks!

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

Re: Real Time Transcoding of DVB TV Streams

Fri Jan 25, 2019 6:14 pm

gobam wrote:
Thu Jan 24, 2019 11:47 pm
Hi, I am trying to configure a rtranscode server in a RPi3 with raspbian Jessie, which is running Mumudvb without issues. I installed all required gstreamer plugins according to the manual, but when running the application I get the following error:

Code: Select all

[email protected]:/home/pi# rtranscode -t=http://192.168.15.127:4242/bysid/43
CANAL 1=http://192.168.15.127:4242/bysid/43 hd2 mpeg:0x7f0,mpeg:0x7f1
Starting to transcode
Size: 910x512  VBR: 1.23M  ABR: original MPEG
Deinterlace: off Scaler: OMX
Listening on http://127.0.0.1:9080/xyz.mkv
Starting pipeline
Error GStreamer error: negotiation problem.

The URL http://192.168.15.127:4242/bysid/43 is working fine in other machine using VLC. The following are the gstreamer packages installed:

Code: Select all

gstreamer0.10-alsa/oldstable,now 0.10.36-2 armhf [installed,automatic]
gstreamer0.10-plugins-base/oldstable,now 0.10.36-2 armhf [installed,automatic]
gstreamer1.0-alsa/oldstable,now 1.4.4-2+deb8u1 armhf [installed]
gstreamer1.0-libav/oldstable,now 1.4.4-2 armhf [installed]
gstreamer1.0-omx/oldstable,now 1.0.0.1-0+rpi18rpi1g armhf [installed]
gstreamer1.0-plugins-bad/oldstable,now 1.4.4-2.1+deb8u2 armhf [installed]
gstreamer1.0-plugins-base/oldstable,now 1.4.4-2+deb8u1 armhf [installed]
gstreamer1.0-plugins-base-apps/oldstable,now 1.4.4-2+deb8u1 armhf [installed]
gstreamer1.0-plugins-good/oldstable,now 1.4.4-2+deb8u3 armhf [installed]
gstreamer1.0-plugins-ugly/oldstable,now 1.4.4-2+deb8u1 armhf [installed]
gstreamer1.0-tools/oldstable,now 1.4.4-2+deb8u1 armhf [installed]
gstreamer1.0-x/oldstable,now 1.4.4-2+deb8u1 armhf [installed]
libgstreamer-plugins-bad1.0-0/oldstable,now 1.4.4-2.1+deb8u2 armhf [installed,automatic]
libgstreamer-plugins-base0.10-0/oldstable,now 0.10.36-2 armhf [installed,automatic]
libgstreamer-plugins-base1.0-0/oldstable,now 1.4.4-2+deb8u1 armhf [installed,automatic]
libgstreamer0.10-0/oldstable,now 0.10.36-1.5 armhf [installed,automatic]
libgstreamer1.0-0/oldstable,now 1.4.4-2+deb8u1 armhf [installed,automatic]
libreoffice-avmedia-backend-gstreamer/oldstable,now 1:4.3.3-2+rpi4 armhf [installed]

When I run the application with the -sm parameter, I get the following http-launch command:

Code: Select all

http-launch 9080 /xyz.mkv video/x-matroska default souphttpsrc location="http://192.168.15.127:4242/bysid/41" is-live=true keep-alive=true do-timestamp=true retries=10 typefind=true blocksize=16384 ! tsdemux parse-private-sections=false program-number=-1 name=demux demux.audio_07dc ! queue ! mpegaudioparse ! matroskamux name=stream streamable=true demux. ! queue ! h264parse ! video/x-h264,alignment=au ! omxh264dec ! video/x-raw,width=910,height=512 ! omxh264enc target-bitrate=1294222 control-rate=variable ! h264parse ! queue ! stream.

In that command I tried removing the "." after "streamable=true demux", and it didn't complaint about gstreamer negotiation issues, but the client is not receiving the stream connecting to the output URL (http://IP:9080/xyz.mkv). In Mumudvb I get the following error:

Code: Select all

Info:  Unicast :  We add the client 192.168.15.127:39127 to the channel "CANAL 1"
Info:  Unicast :  We add the client 192.168.15.127:39639 to the channel "CANAL 1"
Info:  Unicast :  Consecutive errors when writing to client 192.168.15.127:39639 during too much time, we disconnect
The last message appears about 10 secs after the http-launch command is executed.

I appreciate your help with this problem. Thanks!
Run the command with
GST_DEBUG=*:3 rtranscode ....
and check the output for errors.
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

Jonny_Muc
Posts: 1
Joined: Wed Jan 30, 2019 7:45 am

Re: Real Time Transcoding of DVB TV Streams

Wed Jan 30, 2019 7:59 am

Thank you for that awesome work! The real time transcoding performs really good on a Raspberry 3 with Jessie. Much better that other solutions I tried, even on powerful desktops.

Unfortunately my cheap STB accepts only ts-streams, but not mkv-streams. Is there any way to create ts-streams as output?

Regards
JM

Return to “Graphics, sound and multimedia”