Page 2 of 14

Re: Real Time Transcoding of DVB TV Streams

Posted: Mon Apr 11, 2016 9:33 pm
by spyer
Real Time Transcoding of DVB TV Streams (SD or HD) with max. 8 mbit upload.

Re: Real Time Transcoding of DVB TV Streams

Posted: Mon Apr 11, 2016 9:42 pm
by gkreidl
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.

Re: Real Time Transcoding of DVB TV Streams

Posted: Thu Apr 14, 2016 1:58 pm
by spyer
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

Re: Real Time Transcoding of DVB TV Streams

Posted: Thu Apr 14, 2016 2:12 pm
by gkreidl
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.

Re: Real Time Transcoding of DVB TV Streams

Posted: Thu Jul 07, 2016 5:19 pm
by antoniogc
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

Re: Real Time Transcoding of DVB TV Streams

Posted: Fri Jul 08, 2016 6:40 am
by gkreidl
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).

Re: Real Time Transcoding of DVB TV Streams

Posted: Thu Aug 18, 2016 9:56 pm
by papazche
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 !!!

Re: Real Time Transcoding of DVB TV Streams

Posted: Thu Aug 18, 2016 11:16 pm
by gkreidl
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).

Re: Real Time Transcoding of DVB TV Streams

Posted: Fri Aug 19, 2016 12:09 pm
by papazche
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).

Re: Real Time Transcoding of DVB TV Streams

Posted: Fri Aug 19, 2016 1:27 pm
by gkreidl
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?

Re: Real Time Transcoding of DVB TV Streams

Posted: Fri Aug 19, 2016 6:25 pm
by papazche
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?

Re: Real Time Transcoding of DVB TV Streams

Posted: Fri Aug 19, 2016 7:28 pm
by gkreidl
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.

Re: Real Time Transcoding of DVB TV Streams

Posted: Fri Aug 19, 2016 8:46 pm
by papazche
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.

Re: Real Time Transcoding of DVB TV Streams

Posted: Sat Aug 20, 2016 7:27 am
by gkreidl
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.

Re: Real Time Transcoding of DVB TV Streams

Posted: Thu Sep 08, 2016 1:12 pm
by gigo1988
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.

Re: Real Time Transcoding of DVB TV Streams

Posted: Thu Sep 08, 2016 2:19 pm
by gkreidl
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.

Re: Real Time Transcoding of DVB TV Streams

Posted: Fri Sep 09, 2016 9:25 am
by gigo1988
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.

Re: Real Time Transcoding of DVB TV Streams

Posted: Fri Sep 09, 2016 9:32 am
by gkreidl
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.

Re: Real Time Transcoding of DVB TV Streams

Posted: Fri Sep 09, 2016 10:01 am
by gigo1988
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.

Re: Real Time Transcoding of DVB TV Streams

Posted: Fri Sep 09, 2016 10:11 am
by gkreidl
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.

Re: Real Time Transcoding of DVB TV Streams

Posted: Fri Sep 09, 2016 10:14 am
by gigo1988
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.

Re: Real Time Transcoding of DVB TV Streams

Posted: Fri Sep 09, 2016 10:41 am
by gkreidl
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.

Re: Real Time Transcoding of DVB TV Streams

Posted: Fri Sep 09, 2016 11:09 am
by gigo1988
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

Re: Real Time Transcoding of DVB TV Streams

Posted: Sun Sep 11, 2016 12:54 pm
by s1738berger
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:[email protected]: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

Re: Real Time Transcoding of DVB TV Streams

Posted: Sun Sep 11, 2016 4:06 pm
by apuokas
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!!!