[vdr] Watching old recordings with DVB subtitles with 1.6.0
Klaus Schmidinger
Klaus.Schmidinger at cadsoft.de
Sun Apr 13 11:43:56 CEST 2008
On 04/13/08 09:27, Ville Skyttä wrote:
> On Saturday 12 April 2008, Rolf Ahrenberg wrote:
>> On Sat, 12 Apr 2008, Ville Skyttä wrote:
>>> After figuring out how to access the subtitles menu (my remote.conf was
>>> from 1.4.x series so there was no button binding for it), yes, I do see
>>> an entry named "57" there. Selecting it gives me the Finnish subtitles I
>>> was looking for. Thanks for the tip.
>> You could also map "57" to "fin" in info.vdr of all those old recordings
>> and afterwards VDR automatically selects subtitles according to
>> preferred languages.
>
> I tried to do that, but did not succeed so far.
>
> The old recordings I tried this with had no "X" lines in info.vdr, but they do
> have this selectable "57" entry in the subtitles menu. New recordings from
> the same channel (MTV3 Scifi) have both "X 3 03 fin " and "X 3 03 sve "
> there, and Finnish subtitles do show up automatically when replaying these.
>
> So I tried "X 3 03 fin ", "X 3 57 fin ", and "X 57 03 fin " in the old
> recordings' info.vdr but that did not seem have any effect. Tried also
> touching .update and restarting VDR in between, as well as replacing 57 with
> 39 and 87 (just in case there would have been a dec<->hex conversion
> somewhere). "SubtitleLanguages = fin 57" hack in setup.conf didn't help
> either. Did I miss something?
The old subtitle patch/plugin used 0x28 as the starting offset for
subtitle tracks, while the current implementation uses 0x20. I guess this
was because the old remux.c had the line
ts2pes[numTracks++] = new cTS2PES(*SPids++, resultBuffer, IPACKS, 0x00, 0x28 + n++);
commented as "future..." and the subtitle patch just enabled this one.
When I implemented subtitle handling in the core VDR code, I realized that
this should actually be 0x20 instead.
You can work around this by adding the lines
X 3 03
X 3 03
X 3 03
X 3 03
X 3 03
X 3 03
X 3 03
X 3 03
X 3 03 fin suomi
to your info.vdr files. This fills up the first 8 slots and puts "suomi" into
the 9th slot.
Don't forget to "touch /video/.update" after this change.
Of course we could also modify cDevice::PlayPesPacket() to subtract 8 from
SubStreamIndex in case the "// Compatibility mode for old subtitles plugin"
check was positive, but you would still have to add
X 3 03 fin suomi
to your info.vdr files in order to get automatic subtitle track selection.
So I guess the above workaround should do just fine.
Klaus
More information about the vdr
mailing list