[vdr] (Solved)vdr-iptv-plugin DVB subtitles problems

2010-09-10 Thread Fake Name
This was my problem:
http://www.linuxtv.org/pipermail/vdr/2010-September/023546.html
Long story short, I could not display DVB subtitles.

The solution was: 
Apply a patch from IPTV plugin for VDR 
(iptv-0.4.2/patches/vdr-1.7.15-disable_ca_updates.patch) to VDR.

I'm using yaVDR 0.2 (It's Ubuntu 10.04 minimal + VDR PPA)

First I created a working directory called src
mkdir src
cd src/

Then i got the source code for VDR and IPTV plugin:
apt-get source vdr
apt-get source vdr-iptv-plugin

Then I took care for all of the dependencies:
sudo apt-get install build-essential vdr-dev
sudo apt-get build-dep vdr

Before I aplied the patch vdr-1.7.15-disable_ca_updates.patch I had to 
manualy 
apply a patch for ttxtsubs, that came with VDR source code. Because 
vdr-1.7.15/debian/patches/opt-27_ttxtsubs.dpatch tries to mess with the same 
code block in pat.c as the patch from IPTV, building will fail, if you apply 
the 
IPTV patch first.

So I opened  vdr-1.7.15/debian/patches/00list with a text editor and 
commented 
the line with opt-27_ttxtsubs.dpatch
vi vdr-1.7.15/debian/patches/00list

Look for a line:
# Patch needed for the ttxtsubs plugin.
opt-27_ttxtsubs

and change it to:
# Patch needed for the ttxtsubs plugin.
#opt-27_ttxtsubs

I then had to ran:
python vdr-1.7.15/debian/patchcheck.py -u

Now that I made sure that /opt-27_ttxtsubs.dpatch won't run at build time, I 
had 
to apply it manualy. First you have to be in the ~/src/vdr-1.7.15/ directory. I 
then applied the ttxtsubs patch:
patch -p1  debian/patches/opt-27_ttxtsubs.dpatch

Because opt-27_ttxtsubs patch changed the pat.c file, you have to insert one 
line from vdr-1.7.15-disable_ca_updates.patch in to pat.c with a text editor. 
Find the lines in pat.c:

   Channel-SetTeletextSubtitlePages(TeletextSubtitlePages, NumTPages);
   Channel-SetCaIds(CaDescriptors-CaIds());
 
Then insert one line from the vdr-1.7.15-disable_ca_updates.patch :

   Channel-SetTeletextSubtitlePages(TeletextSubtitlePages, NumTPages);
   if (!cSource::IsType(Channel-Source(), 'I'))
   Channel-SetCaIds(CaDescriptors-CaIds());
   
Then I ran:
dpkg-buildpackage

After some time on my Atom CPU, i got a nice vdr_1.7.15-2yavdr1_i386.deb 
package 
which I then installed with:
sudo dpkg -i vdr_1.7.15-2yavdr1_i386.deb

Now my DVB subtitles are showing in their glorious color :)

Because I'm fairly lazy, I'm sending this to the mailing list, where I will be 
able to find it later. This is the firts time I ever used a mailing list, so 
I'm 
probably breaking some etiquete, but maybee someone else could find my 
solution usefull.
And by my solution I ofcourse mean Rolf Ahrebenger's solution. Thank you 
again 
for all your help!

tvich 


  ___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


[vdr] vdr-iptv-plugin DVB subtitles problems

2010-09-08 Thread Fake Name
Hi I cant' display DVB subtitles on VDR.

I'm using:
VDR 1.7.15
xine 0.9.3
source: iptv-plugin 0.4.2 (http://www.saunalahti.fi/rahrenbe/vdr/iptv/)
(yaVDR 0.2)
on Asrock ION 330 HT
DVB Subutitles are enabled under System/Setup/DVB and Language chosen is 
Slovenski (Slovenian-SLV).

The  iptv plugin detects the subtitles pid in question  
(System/Plugins/iptv/Info but no matter what I do, the channel in  question 
returns No subtitles available
The plugin passes mpeg2/4 stream directly to VDR and it does it superbly (HDTV 
great, EPG great, Channel switching fast, Stable, Teletext...)

My IPTV (T-2, Slovenia) provider uses udp multicast and I can watch all the 
programs in VLC, with subtitles, ttx... This is the m3u playlist for VLC:
http://www.rula.net/t2/t2tv.m3u
This is the line in VLC playlist for HBO:
#EXTINF:0,8 - HBO
udp://@239.1.1.151:5000

This is Codec Information from VLC:
Stream 0
Type: Video
Codec: MPEG-1/2 Video (mpgv)
Resolution: 640x576
Frame rate: 50
---
Stream 1
Type:  Audio
Original ID: 802
Codec: MPEG Audio layer 1/2/3 (mpga)
Language: slovenščina
Channels: Stereo
Sample rate: 48000 Hz
Bitrate: 192 kb/s
---
Stream 2
Type: Audio
Original ID: 1204
Codec: A52 Audio (aka AC3) (a52 )
---
Stream 3
Type: Subtitle
Original ID: 7302
Codec: DVB Subtitles (dvbs)
Language: slovenščina
Description: DVB subtitles


Those  are lines from channels.conf, I started experimenting with HBO and  
tried 
a lot of variations(realy alot :). I still think I'm messing  something up wit 
the syntax.
HBO;IPTV:110:S=0|P=0|F=UDP|U=239.1.1.151|A=5000:I:0:810=2:8...@4:7302:0:222:0:0:0

HBO2;IPTV:120:S=1|P=1|F=UDP|U=239.1.1.151|A=5000:I:0:810=2:8...@4:0;102=Slo:0:222:0:0:0

HBO3;IPTV:130:S=1|P=0|F=UDP|U=239.1.1.151|A=5000:I:0:810=2:8...@4:7302:0:222:0:0:0

HBO4;IPTV:140:S=0|P=1|F=UDP|U=239.1.1.151|A=5000:I:0:810=2:8...@4:7302:0:222:0:0:0

HBO5;IPTV:150:S=0|P=0|F=UDP|U=239.1.1.151|A=5000:I:0:810=2:8...@4:0:0:222:0:0:0
HBO6;IPTV:160:S=0|P=0|F=UDP|U=239.1.1.151|A=5000:I:0:810:802:0:0:1:0:0:0
HBO7;IPTV:170:S=1|P=1|F=UDP|U=239.1.1.151|A=5000:I:0:810:802:0:0:1:0:0:0

If I record the video with VDR and run dvbsnoop |grep 7302  (subtitles id) I 
get 
no results (dvbsnoop can't analyze live iptv  streams). I also dumped the 
stream 
with mplayer and tried playing back  the video, but there were no subtitles 
(record subtitles is checked in  options). But because this is the first time I 
ran dvbsnoop and even  after reading dvbsnoops man pages, I'm not sure if I did 
everything  right. I'm also not very good with mplayer, so i ran with -alang, 
maybe  I'm doing something wrong? 


Another problem is, that if I mess  with DVB update channels (update pid, pid 
and names, names only,  transponder...) I sometimes lock the HBO channel (no 
a/v 
and OSD Channel Locked). Also when checking dvbsnoop I noticed some lines with 
CA (i think it stands for Conditional Access)  in them. But recently I can't 
reproduce that behaviour no matter what I  do. But I'm paying for HBO and I can 
watch it in VLC and (most of the  times) in VDR.
Running  iptv-plugin with EXT and using VLC in VDR does not work (A/V OK, but 
 
again no subtitles). Also it seems a bit crashy, so I would rather get  it 
working this way.

So far I read the man pages for VDR, VDR wiki in english, some pages in german 
and IPTV plugin readme. I searched the net, vdr-portal.de and this mailig list 
for subtitles, untertitel, dvb subtitles problems,  etc, but I could not find 
the answer. I posted this question on  vdr-portal: 
http://www.vdr-portal.de/board/thread.php?threadid=99300 and spent some time in 
the vdr irc channel (thank you again nox), but  no matter what I do, I can't 
get 
those pesky DVB subtitles to display.
I  tried hts tvheadend, mythtv and even media portal but they are all  flawed 
in 
one way, or the other. But because VDR is in a league of its  own, I'm 
bothering 
all of you. VDR has no problems with 1080i/p  channels, fast channel switching 
and even I can't crash it. Also yaVDR  0.2 is realy practical.

Because this is the first time I came  into contact with DVB, IPTV, SID's, 
PID's, etc, I'm probably doing  something wrong and any help is deply 
appreciated.
Some more info:
my setup.conf
http://pastebin.com/7jMjB0pb
one of my channels.conf:
http://pastebin.com/yX4NwBvs

Thanks for reading all of my problems, and I hope someone can help.

Tvich


  ___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] vdr-iptv-plugin DVB subtitles problems

2010-09-08 Thread Fake Name
Stream 3

 Type: Subtitle
 Original ID: 7302
 Codec: DVB Subtitles (dvbs)
 Language: sloven??ina
 Description: DVB subtitles

HBO;IPTV:110:S=0|P=0|F=UDP|U=239.1.1.151|A=5000:I:0:810=2:8...@4:7302:0:222:0:0:0
0

Somehow your VDR thinks that the pid 7302 is teletext and not DVB subtitle. 
DVBsubs pids aren't stored into channels.conf, but always detected dynamically.
I manualy entered the teletext pid, because I started experimenting.
VDR's channels.conf entry would be:
HBO;IPTV:10:S=0|Š=1|F=UDP|U=239.1.1.151|A=5000:I:0:810:8...@4:0:0:1:0:0:0

What suprises me, is that your plugin detects the subtitle pid Info/PIDs 
correctly (thank you for your work btw).

 If I record the video with VDR and run dvbsnoop |grep 7302 (subtitles id) I 
 get 
no results (dvbsnoop can't analyze live iptv streams). I also dumped the 
stream 
with mplayer and tried playing
 back the video, but there were no subtitles (record subtitles is checked in 
options). But because this is the first time I ran dvbsnoop and even after 
reading dvbsnoops man pages, I'm not sure
 if I did everything right. I'm also not very good with mplayer, so i ran 
 with 
-alang, maybe I'm doing something wrong?

Last time I checked the mplayer it didn't support DVBsubs, but I had to hack 
the 
support by myself (google: mplayer-dvbsubs-svn-20091207.patch.gz). You should 
really should provide us a small piece of original multicast stream recorded 
with emcast/vlc/...

Here is the VDR recording:
http://93.103.40.144/01.ts
Here is the VLC recording:
http://93.103.40.144/vlc.ts

I think mplayer got their act together regarding subtitle support, but I'm not 
sure. I think -alang slv should work for DVBs.

Tvich


  ___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr