spyer
Posts: 6
Joined: Tue Apr 05, 2016 2:17 pm

Re: Real Time Transcoding of DVB TV Streams

Mon Apr 11, 2016 9:33 pm

Real Time Transcoding of DVB TV Streams (SD or HD) with max. 8 mbit upload.

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

Re: Real Time Transcoding of DVB TV Streams

Mon Apr 11, 2016 9:42 pm

spyer wrote:Real Time Transcoding of DVB TV Streams (SD or HD) with max. 8 mbit upload.
I normally use bit rates between 640 KBit and 1.5 MBit.
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

spyer
Posts: 6
Joined: Tue Apr 05, 2016 2:17 pm

Re: Real Time Transcoding of DVB TV Streams

Thu Apr 14, 2016 1:58 pm

Hello,

its work with yours configuration without freezer? What ist your source?
Same device like rp2?
I'll attempt it with other source better than dbox2 to transcode with RP2..

Spyer

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

Re: Real Time Transcoding of DVB TV Streams

Thu Apr 14, 2016 2:12 pm

spyer wrote:Hello,

its work with yours configuration without freezer? What ist your source?
Same device like rp2?
I'll attempt it with other source better than dbox2 to transcode with RP2..

Spyer
I use mumudvb and my own frontend, which includes the transcoding option. I run it without any freezes for hours. The transcoder runs on the same computer (RPi2, now RPi3), but has also been tested when running on another RPi.
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

antoniogc
Posts: 2
Joined: Thu Jul 07, 2016 5:14 pm

Re: Real Time Transcoding of DVB TV Streams

Thu Jul 07, 2016 5:19 pm

Good afternoon.
I'm trying to transcode a carcass of mumdvb but I close the connection.
The streamer is 176.16.21.254:4028/bysid/503
Please can you say me exactly the command you need to run transcoding to 1280x720 1.5 MBit / s and 128 Kbit / s Audio

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

Re: Real Time Transcoding of DVB TV Streams

Fri Jul 08, 2016 6:40 am

antoniogc wrote:Good afternoon.
I'm trying to transcode a carcass of mumdvb but I close the connection.
The streamer is 176.16.21.254:4028/bysid/503
Please can you say me exactly the command you need to run transcoding to 1280x720 1.5 MBit / s and 128 Kbit / s Audio
I cannot give you the exact command because I do not know the details of your stream.
You can set video bit rate, video size and and audio bit rate in /usr/local/share/transcode/config.py or create your own config file and start transcode.py with the -c=... option.

If http-launch disconnects or stops one of the arguments must be wrong (often the audio pid). And the mumudvb stream must be running, of course (I'm using mumudvb 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

papazche
Posts: 7
Joined: Thu Aug 18, 2016 9:47 pm

Re: Real Time Transcoding of DVB TV Streams

Thu Aug 18, 2016 9:56 pm

Hi

Really happy to see that project. Congrats !!!

Input 1080i ( hd2 ) output SD working fine
Input 1080i ( hd2) output 1280x720 getting error: Error GStreamer error: negotiation problem.

Any idea how to be fixed?
also please plst any updates ( improvements, if you have )

Great job !!!

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

Re: Real Time Transcoding of DVB TV Streams

Thu Aug 18, 2016 11:16 pm

papazche wrote:Hi

Really happy to see that project. Congrats !!!

Input 1080i ( hd2 ) output SD working fine
Input 1080i ( hd2) output 1280x720 getting error: Error GStreamer error: negotiation problem.

Any idea how to be fixed?
also please plst any updates ( improvements, if you have )

Great job !!!
How large is your GPU memory?
BTW, I'm overclocking the GPU on all my systems (500 MHz).
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

papazche
Posts: 7
Joined: Thu Aug 18, 2016 9:47 pm

Re: Real Time Transcoding of DVB TV Streams

Fri Aug 19, 2016 12:09 pm

I have managed to get it working
But when I start 2nd 1080i channels I get error:

Code: Select all

Starting pipeline
EOS
Removing connection 192.168.0.103:65362
PI conf:

Code: Select all

arm_freq=1000
cpu_freq=900
gpu_mem_512=256
core_freq=450
h264_freq=0
isp_freq=0
avoid_pwm_pll=1
sdram_freq=483
over_voltage=0
avoid_safe_mode=1
force_turbo=1
decode_MPG2=xxxxxx
decode_WVC1=xxxxxx
gkreidl wrote:
papazche wrote:Hi

Really happy to see that project. Congrats !!!

Input 1080i ( hd2 ) output SD working fine
Input 1080i ( hd2) output 1280x720 getting error: Error GStreamer error: negotiation problem.

Any idea how to be fixed?
also please plst any updates ( improvements, if you have )

Great job !!!
How large is your GPU memory?
BTW, I'm overclocking the GPU on all my systems (500 MHz).

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

Re: Real Time Transcoding of DVB TV Streams

Fri Aug 19, 2016 1:27 pm

papazche wrote:I have managed to get it working
But when I start 2nd 1080i channels I get error:

Code: Select all

Starting pipeline
EOS
Removing connection 192.168.0.103:65362
PI conf:

Code: Select all

arm_freq=1000
cpu_freq=900
gpu_mem_512=256
core_freq=450
h264_freq=0
isp_freq=0
avoid_pwm_pll=1
sdram_freq=483
over_voltage=0
avoid_safe_mode=1
force_turbo=1
decode_MPG2=xxxxxx
decode_WVC1=xxxxxx
EOS means that the original stream has stopped or cannot be accessed any more.

Which kind of RPi are you using?
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

papazche
Posts: 7
Joined: Thu Aug 18, 2016 9:47 pm

Re: Real Time Transcoding of DVB TV Streams

Fri Aug 19, 2016 6:25 pm

Pi 2 B 1 GB RAM
gkreidl wrote:
papazche wrote:I have managed to get it working
But when I start 2nd 1080i channels I get error:

Code: Select all

Starting pipeline
EOS
Removing connection 192.168.0.103:65362
PI conf:

Code: Select all

arm_freq=1000
cpu_freq=900
gpu_mem_512=256
core_freq=450
h264_freq=0
isp_freq=0
avoid_pwm_pll=1
sdram_freq=483
over_voltage=0
avoid_safe_mode=1
force_turbo=1
decode_MPG2=xxxxxx
decode_WVC1=xxxxxx
EOS means that the original stream has stopped or cannot be accessed any more.

Which kind of RPi are you using?

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

Re: Real Time Transcoding of DVB TV Streams

Fri Aug 19, 2016 7:28 pm

papazche wrote:Pi 2 B 1 GB RAM
[
Then you must use
gpu_mem=256
(lower values >= 128 may also work).
your setting is for 512 MB RAM machines.

But the EOS message has nothing to do with it.
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

papazche
Posts: 7
Joined: Thu Aug 18, 2016 9:47 pm

Re: Real Time Transcoding of DVB TV Streams

Fri Aug 19, 2016 8:46 pm

Same thing..
The second channel starts and after 5 secs get kicked out with that error
Both channels working fine simultaneously on VLC

Using command:

Code: Select all

sudo transcode.py -c=/usr/local/share/transcode/config.py http://xxx.xxx.xxx.xxx:xxx hd2 mpeg xxx vo
Any idea?

gkreidl wrote:
papazche wrote:Pi 2 B 1 GB RAM
[
Then you must use
gpu_mem=256
(lower values >= 128 may also work).
your setting is for 512 MB RAM machines.

But the EOS message has nothing to do with it.

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

Re: Real Time Transcoding of DVB TV Streams

Sat Aug 20, 2016 7:27 am

papazche wrote:Same thing..
The second channel starts and after 5 secs get kicked out with that error
Both channels working fine simultaneously on VLC

Using command:

Code: Select all

sudo transcode.py -c=/usr/local/share/transcode/config.py http://xxx.xxx.xxx.xxx:xxx hd2 mpeg xxx vo
Any idea?
No, not without any more details.
I've answered to your PM.
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: 31
Joined: Wed Sep 07, 2016 11:38 pm

Re: Real Time Transcoding of DVB TV Streams

Thu Sep 08, 2016 1:12 pm

Ich habe das Problem, dass sobald ich transcode.py mache und den sender auswähle und im netzwerk den Stream öffnen möchte die Fehlermeldung bekomme error internal iwas. Kann mir da jmd weiter helfen? PS ich bin ein newbie und habe mit dieser Noobs SD 1.9 debian installiert bzw. den ersten punkt. Auch bin ich als Root gelogt um die config usw zu ändern.

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

Re: Real Time Transcoding of DVB TV Streams

Thu Sep 08, 2016 2:19 pm

gigo1988 wrote:Ich habe das Problem, dass sobald ich transcode.py mache und den sender auswähle und im netzwerk den Stream öffnen möchte die Fehlermeldung bekomme error internal iwas. Kann mir da jmd weiter helfen? PS ich bin ein newbie und habe mit dieser Noobs SD 1.9 debian installiert bzw. den ersten punkt. Auch bin ich als Root gelogt um die config usw zu ändern.
Wir sollten hier beim Englischen bleigen. Du könntest aber das Thema als neues Topic im deutschen Forum öffnen und ich werde gerne versuchen, dir da zu helfen.
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: 31
Joined: Wed Sep 07, 2016 11:38 pm

Re: Real Time Transcoding of DVB TV Streams

Fri Sep 09, 2016 9:25 am

Thanks for your reply.

I ve done every step like your description but at the end i get a error (error internal data stream). Bevor i try to stream the Transoded Stream i see on my terminal listening. I.ve try it with a external stream and with one in my local network but the same issue.

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

Re: Real Time Transcoding of DVB TV Streams

Fri Sep 09, 2016 9:32 am

gigo1988 wrote:Thanks for your reply.

I ve done every step like your description but at the end i get a error (error internal data stream). Bevor i try to stream the Transoded Stream i see on my terminal listening. I.ve try it with a external stream and with one in my local network but the same issue.
What kind of source stream are you using (program, stream format etc.)?
You need a HTTP MPEG TS stream as source.
Other kinds of streams might be possible but would require different gstreamer tool chains.
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: 31
Joined: Wed Sep 07, 2016 11:38 pm

Re: Real Time Transcoding of DVB TV Streams

Fri Sep 09, 2016 10:01 am

As source i have 2 different streams over HTTP. The first ist from a enigma2 box http://192.168.1.11:8001/cx:0:0: and so on and the second ist http://streamcloud.de:7080/benutzer/passwort/1.ts. I Think that booth of it is a http mpeg ts stream is.

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

Re: Real Time Transcoding of DVB TV Streams

Fri Sep 09, 2016 10:11 am

gigo1988 wrote:As source i have 2 different streams over HTTP. The first ist from a enigma2 box http://192.168.1.11:8001/cx:0:0: and so on and the second ist http://streamcloud.de:7080/benutzer/passwort/1.ts. I Think that booth of it is a http mpeg ts stream is.
Can you play the streams with VLC (on another computer)? Can you play them with omxplayer (on the RPi)?
VLC could provide you with all the information you need, like kind of audio stream and the audio pid, video codec and resolution.
If the streams are using MPEG 2 codecs, you need the MPEG2 codec license on the RPi.
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: 31
Joined: Wed Sep 07, 2016 11:38 pm

Re: Real Time Transcoding of DVB TV Streams

Fri Sep 09, 2016 10:14 am

im able to start with VLC and as codec VLC show me MPEG 4 h264 of the secon one. The first one i can´t check jet. if i am at home i can test it.

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

Re: Real Time Transcoding of DVB TV Streams

Fri Sep 09, 2016 10:41 am

gigo1988 wrote:im able to start with VLC and as codec VLC show me MPEG 4 h264 of the secon one. The first one i can´t check jet. if i am at home i can test it.
OK, when you are at home try both streams with omxplayer. Run also
omxplayer -i URL
and post the information you get.
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: 31
Joined: Wed Sep 07, 2016 11:38 pm

Re: Real Time Transcoding of DVB TV Streams

Fri Sep 09, 2016 11:09 am

i´ve test it yesterday afternoon in the browser to play the first local stream from enigma2. this was possible but i dont know the codec

s1738berger
Posts: 1
Joined: Sun Sep 11, 2016 12:34 pm
Location: Switzerland

Re: Real Time Transcoding of DVB TV Streams

Sun Sep 11, 2016 12:54 pm

Hi, just found this interesting post. I was looking for some time for such a solution. Currently I have a HDHomeRun EXPAND DVB-C tuner that is connected to a Tvhedaend server running on a RaspberryPi 2 (jessie lite)
As clients I am using some other RaspberryPi running Kodi with the Tvheadend HTSP Client. That works pretty good.
To have serve bitrates on the network I installed the transcoding software from 'steinerdatenbank.de' on the same Raspi where is Tvhedend server installed. The installation could be completed without any problems.
In Tvheadend I created a user that uses the streaming profile 'pass' to get the raw streaming data.
In channels.dat I included the line 'Arte HD=http://test:test@192.168.178.11:9981/st ... 2a40b6fbc1 sd1 mpeg 2014' (test is the user for streaming, in VLC this stream is showing the tv program)
When I run 'transcode.py' I can choose this channel and it seems to start with the message 'Listening on http://127.0.0.1:9081/xyz.mkv' .... and now? I have no idea how to move on from this point :-(
Do I have to call transcode.py from a client to receive the transcoded stream? In tvheadend I don't see an established stream, nor any connection on the HDHomeRun tuner. I also tried to use a direct connection to HDHomeRun in channels.dat . Same result.
Any hints where is my fault in thinking? Thank you very much for any help. Regards
Stefan

apuokas
Posts: 35
Joined: Thu Jul 09, 2015 12:48 am

Re: Real Time Transcoding of DVB TV Streams

Sun Sep 11, 2016 4:06 pm

Hi,
i could stream video from raspberry cam using http-lounch: http-launch 8080 / video/mkv verbose rpicamsrc annotation-text-colour=0x000000 annotation-mode=0x020c preview=false bitrate=2000000 ! video/x-h264,width=1280,height=720,framerate=25/1,profile=high ! h264parse ! matroskamux name=stream streamable=true ! stream.
Is there possible to stream audio from usb audio microphone? Coud be good audio-video server on raspberry.
Regards

EDIT: with this ohne i could hear my micropfone audio, but not video: http-launch 8080 / video/mkv verbose rpicamsrc preview=false bitrate=2000000 ! video/x-h264,width=1280,height=720,framerate=25/1,profile=high ! h264parse ! alsasrc device=hw:2 ! matroskamux name=stream streamable=true ! stream
I using VLC to play the stream.

EDIT-2: with this i can see video and hear audio from my usb audio card microphone: http-launch 8080 / video/mkv verbose rpicamsrc preview=false bitrate=2000000 ! video/x-h264,width=1280,height=720,framerate=25/1,profile=high ! h264parse ! matroskamux name=stream streamable=true ! stream. alsasrc device=hw:2 ! audioconvert ! lamemp3enc target=1 bitrate=64 cbr=true ! stream.
Its on raspberry 3. Now i can use it as babymonitor for example.

EDIT-3 with http-launch i streamed raspberry cam and usb microfone to website (chrome browser and vlc player on win10 and android). Apache server running on same raspberry3. Command: http-launch 8080 /xyz.mp4 video/mp4 verbose rpicamsrc preview=false bitrate=500000 ! video/x-h264,width=854,height=480,framerate=25/1,profile=baseline ! h264parse ! matroskamux name=stream streamable=true ! alsasrc device=hw:2,0 ! audioconvert ! lamemp3enc target=bitrate bitrate=64 ! stream.
Made file: /var/www/html/video.html

Code: Select all

<!DOCTYPE html>
<html lang="de">
<head>
  <title>title</title>
</head>
<body>
<video src="http://raspberry:8080/xyz.mp4" controls>
<div>Schade – hier käme ein Video, wenn Ihr Browser HTML5 Unterstützung hätte</div>
</video>
</body>
</html>
So i can use vlc player to play stream from URL http://raspberry:8080/xyz.mp4 or opening in browser like chrome (supporting html 5 and streamed video/audio format) URL http://raspberry/video.html Works good!!!
Last edited by apuokas on Mon Sep 12, 2016 10:31 pm, edited 2 times in total.

Return to “Graphics, sound and multimedia”

Who is online

Users browsing this forum: No registered users and 7 guests