/srv/irclogs.ubuntu.com/2012/03/21/#ubuntu-tv.txt

tsdgeosSaviq: do we have a bug for the content descriptor stuff like we had for the extended descriptor one?11:13
Saviqtsdgeos, not yet11:13
Saviqtsdgeos, doing11:13
tsdgeosgoodie11:13
Saviqalready fixed? ;)11:13
tsdgeosyep11:15
tsdgeosdata seems correct11:16
tsdgeostom & Jerry is reported as 5,511:16
tsdgeoswhich is cartoons/puppets11:16
Saviqpuppets: D11:19
Saviqcool11:19
SaviqI wonder, though, if we should interpret it in gstreamer11:19
Saviqand push a text value down the line11:19
Saviqseems that's what is happening elsewhere in tsparse11:20
tsdgeosbrrr11:22
tsdgeosseems a bad idea to me11:22
tsdgeosdon't see gstreamer supporting localization11:23
Saviqnah, without localization11:23
Saviqhttps://bugzilla.gnome.org/show_bug.cgi?id=672538 btw11:23
tsdgeosright11:23
tsdgeosbut then the upper layer has quick a problem to support localization11:23
tsdgeossince has to magically guess all possible values coming from gstreamer11:24
tsdgeosto support their localization11:24
Saviqwell there's no guessing if you can look at the code11:24
Saviqtbh gstreamer should probably even provide translations to those strings11:24
tsdgeoslooking at the code is a poor way of documentation :D11:25
Saviqin a domain somewhere11:25
tsdgeosand the moment new strings or strings are changed11:25
Saviqtsdgeos, well, spec, then11:25
tsdgeosyou are left in the cold11:25
Saviqyou'd have to look at the spec anyway to implement translation from "5,5" into "cartoons/puppets"11:25
tsdgeossure11:26
tsdgeosthe thing is11:26
tsdgeosi don't see us giving strings is "better"11:26
tsdgeosi just see it creating more work for the library user11:26
tsdgeosunless of course he doesn't care about localization11:26
tsdgeosbut those people don't exist ;-)11:27
Saviqmore work? why? otherwise he'd just have to implement it himself11:27
Saviqthe whole mapping _and_ localization part11:27
Saviqlet's ask #gstreamer then :11:28
SaviqIMO the best way would be to send strings down _and_ supply translations in a domain somewhere11:28
tsdgeosmore work because instead of simply switching integers you have to "switch" strings11:29
tsdgeosthat is not that easy in C :D11:29
Saviqand then "switch" strings, too11:29
tsdgeosSaviq: sure, that'd be the best11:29
tsdgeosSaviq: en then switch strings? no, then you just return myi18nfunction("cartoons/puppets)11:29
Saviqyes, so if you get "cartoons/puppets" from gstreamer, you'd just do the same ;)11:31
Saviqlet's see what #gstreamer has to say11:31
tsdgeosno, you wouldn't do the same11:31
tsdgeossince you'd do myi18nfunction(whatever_variable_we_return_from_gst)11:32
tsdgeosbut since the text of whatever_variable_we_return_from_gst is not in your app11:32
tsdgeosit wouldn't get extracted11:32
tsdgeosand translators wouldn't have any chance to translate it11:32
tsdgeoswhich means he would have to "fake" the strings somewhere just to appear in the translation catalog11:33
tsdgeosdone that a few times11:33
tsdgeosis a bit cumbersome from the app programer pov11:33
Saviqyeah I know what you mean11:34
Saviqbut otoh each and every app will have to implement the whole thing itself11:35
Saviqand there are, after all, things like _NOOP for exactly that reason11:35
Saviqso that you can put a list in a file somewhere (that you'd have to do anyway to implement the mapping yourself)11:36
Saviqonly not "in a file somewhere", just straight in code11:36
tsdgeossure11:36
Saviqtsdgeos, attach the patch to https://bugzilla.gnome.org/show_bug.cgi?id=67253811:39
Saviqtsdgeos, and let's move the discussion there11:39
tsdgeosyep11:39
tsdgeosmakes sense11:39
tsdgeosattached11:43
SaviqI wonder where the "user defined" can be derived from ;)11:44
Saviqlike for example crid for bbc looks like so11:44
Saviq            DVB-DescriptorTag: 118 (0x76)  [= content_identifier_descriptor]11:44
Saviq            descriptor_length: 9 (0x09)11:44
Saviq            crid_type: 49 (0x31)  [= user defined]11:44
Saviq            crid_location: 0 (0x00)  [= Carried explicitly within descriptor]11:44
Saviq            crid_len: 7 (0x07)11:44
Saviq            crid_bytes:11:44
Saviq                 0000:  2f 41 42 4c 49 47 42                               /ABLIGB11:44
Saviq            DVB-DescriptorTag: 118 (0x76)  [= content_identifier_descriptor]11:44
Saviq            descriptor_length: 9 (0x09)11:45
Saviq            crid_type: 50 (0x32)  [= user defined]11:45
Saviq            crid_location: 0 (0x00)  [= Carried explicitly within descriptor]11:45
Saviq            crid_len: 7 (0x07)11:45
Saviq            crid_bytes:11:45
Saviq                 0000:  2f 4c 30 36 32 35 4f                               /L0625O11:45
Saviqso the "ABLIGB" and "L06250" are the actual CRIDs11:45
Saviqthat, I believe, are sent as related content ids in RCT11:45
Saviqbut one is type 45, the other type 50 - both user defined11:45
Saviq*4911:45
tsdgeosSaviq: give bbc a phone call? :D11:47
Saviqtsdgeos, you know what the funniest thing is?11:48
Saviqin the case of BBC it might actually work and they'd tell you ;)11:48
Saviqtsdgeos, http://www.dtg.org.uk/industry/dbook.html12:15
Saviq"The D-Book is only available to members of the Digital TV Group." grr12:16
tsdgeos:-/12:17
Saviq£5k for a membership12:18
Saviqtsdgeos, but anyway: crid_type 50 is programme, 51 is series12:19
Saviqtsdgeos, to follow up on content descriptor... we can always send both :)12:29
Saviqor maybe we should, even12:29
tsdgeosthat's the other possibilty yes12:29
Saviqso that apps can react to stuff like 012:29
Saviqand not care about what the text says12:29
tsdgeosSaviq: seems the stream you gave me has no content_identifier_descriptor12:40
Saviqtsdgeos, yes, that does not12:41
Saviqtsdgeos, we'll have to get some from UK12:41
Saviqmaybe someone around has a DVB-T device in the UK?12:41
Saviqping all ;12:41
Saviq;)12:42
tsdgeoshmmm15:14
tsdgeosimplementing thsi without a stream with it is not trivial :-/15:14
tsdgeosSaviq: about the crid thing, it can be either internal (location 0) or external (location 1)16:33
tsdgeosand if it's external16:33
Saviqtsdgeos, yes I learned that, too16:33
Saviqwe need to parse CIT, too16:33
tsdgeosright16:33
tsdgeosthe question is16:33
tsdgeosif we want to "cook" that info at the gstreamer level16:33
tsdgeosprobably not?16:33
tsdgeoswith "cook" i mean16:34
Saviqyes I get it16:34
tsdgeosok :D16:34
Saviqhow do you map data from the descriptor to the CIT?16:34
Saviqthat's something I failed to grasp from the spec16:35
tsdgeosthe descriptor gives you an index16:35
tsdgeoscrid_ref16:35
tsdgeosand then the CIT table16:36
tsdgeoshas a list of crid_refs16:36
tsdgeosnot sure we can "cook" the data though16:36
tsdgeossince maybe we get the content identifier descriptor before the CIT table?16:37
Saviqsure, that's possible16:37
tsdgeosthe upper layer should want to be able of deciding what to do in that case16:38
tsdgeosi.e. discarding the info16:38
tsdgeoswaiting for the cit table to appear16:38
tsdgeosbusy loop16:38
tsdgeoscrash16:38
Saviqtsdgeos, yeah, we need to deliver CIT separately16:38
tsdgeos:D16:38

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!