After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 358147 - add DVB playback
add DVB playback
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: GStreamer backend
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Maintainer alias for GStreamer component of Totem
Maintainer alias for GStreamer component of Totem
Depends on:
Blocks:
 
 
Reported: 2006-09-28 15:59 UTC by Zaheer Abbas Merali
Modified: 2008-02-11 12:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
rough patch to add dvb playback support, scanner not in patch (5.70 KB, patch)
2008-02-08 21:24 UTC, Zaheer Abbas Merali
none Details | Review
improved patch, returns correctly from bvw..._can_play (6.28 KB, patch)
2008-02-08 21:36 UTC, Zaheer Abbas Merali
committed Details | Review
scanner with basic UI (21.12 KB, text/plain)
2008-02-09 22:48 UTC, Zaheer Abbas Merali
  Details

Description Zaheer Abbas Merali 2006-09-28 15:59:24 UTC
It would be nice if totem could be used to watch DVB channels if one has a DVB card installed.
Comment 1 Bastien Nocera 2006-09-28 18:02:24 UTC
Here are some steps for adding DVB support to Totem, most of them pretty straight forward:
- add code in totem-menu.c to detect DVB cards, and show a menu item per card, eg. "Watch TV using 'Supercard 5000'". This should be using HAL and be updated on-the-fly (ie. when the menu's opened at least).
- add a MEDIA_TYPE_DVB type to the backend (not in the playlist parser)
- modify bacon_video_widget_get_mrls() to return a GList*, which would contain a list of "mrls" (media urls) and custom names (so we can name the TV channels), this will be used by the backend (GStreamer/xine-lib) to return a list of fake URLs that'll tune into a specific channel, for a specific card
- make totem-menu.c add those URLs with the custom names to the playlist
- set the playlist playing!

The first item should be pretty much the only thing that will require some efforts, the rest is very straight forward.

Other ideas:
- First time assistant to tune the channels when the card is used for the first time
- remember the last used TV station
- make "totem tv://" (or something similar) work out of the box (see bug 331568 for the DVD one)
- new sidebar item to see the TV schedules (using the over-the-air TV programs) (see bug 349070)
- make "pause" work as expected (time shifting)
Comment 2 Bastien Nocera 2007-01-24 13:18:02 UTC
*** Bug 400177 has been marked as a duplicate of this bug. ***
Comment 3 kieran 2007-08-21 11:29:03 UTC
this mostly works in totem-xine using a channels.conf generated from 'scan', but it would be nice to be able to use the gstreamer dvb source for a similar result.
Comment 4 Björn Martensen 2008-01-30 17:55:57 UTC
since "full dvb support" is on the gnome 2.22 roadmap for totem, i'd like to know if this is still valid?
i haven't seen anything related to dvb support in the 2.21.x news files and since i'm about to buy a dvb usb stick soon i'm interested in using totem to watch tv.

i'm talking of course about the gstreamer backend.
Comment 5 Zaheer Abbas Merali 2008-02-08 21:24:36 UTC
Created attachment 104741 [details] [review]
rough patch to add dvb playback support, scanner not in patch
Comment 6 Zaheer Abbas Merali 2008-02-08 21:36:18 UTC
Created attachment 104742 [details] [review]
improved patch, returns correctly from bvw..._can_play
Comment 7 Zaheer Abbas Merali 2008-02-09 22:48:29 UTC
Created attachment 104803 [details]
scanner with basic UI

Here is a scanner with UI. UI is very rough, scanner needs a couple of additions to do DVB-S correctly but works fine with DVB-T and probably also should do scanning in a different thread to the UI thread.
Comment 8 Bastien Nocera 2008-02-10 13:28:36 UTC
Main UI part done. Untested for now.

2008-02-10  Bastien Nocera  <hadess@hadess.net>

        Patch from Zaheer Abbas Merali <zaheermerali@gmail.com>

        * src/backend/bacon-video-widget-gst-0.10.c:
        (bacon_video_widget_get_channels_file),
        (bacon_video_widget_can_play),
        (bacon_video_widget_dvb_get_adapter_type),
        (bacon_video_widget_get_mrls):
        Add support for listing DVB channels from the channels.conf
        file, with DVB type-specific filtering

        * src/totem-menu.c: (on_play_dvb_activate),
        (update_drives_menu_items), (update_dvb_menu_items),
        (on_movie_menu_select): Add DVB cards to the Movie menu
Comment 9 Bastien Nocera 2008-02-11 01:49:04 UTC
I'm not sure I'll be able to add the UI as it is in Totem, before the freeze. So I'll just provide a nice message instead, and try to get someone to fix the scanner's UI. Probably best to do that in a different bug though.
Comment 10 Bastien Nocera 2008-02-11 12:58:18 UTC
I moved the scanner UI bits to bug 515759.

There's a tracker bug for DVB at bug 515764.