~ubuntu-branches/ubuntu/raring/rygel/raring

« back to all changes in this revision

Viewing changes to src/rygel/rygel-wmv-transcoder.vala

  • Committer: Package Import Robot
  • Author(s): Andreas Henriksson
  • Date: 2012-09-26 22:34:15 UTC
  • mfrom: (11.1.19 experimental)
  • Revision ID: package-import@ubuntu.com-20120926223415-9day2s783n9td4e8
Tags: 0.16.0-1
ImportedĀ UpstreamĀ versionĀ 0.16.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2009 Jens Georg <mail@jensge.org>.
3
 
 *
4
 
 * Author: Jens Georg <mail@jensge.org>
5
 
 *
6
 
 * This file is part of Rygel.
7
 
 *
8
 
 * Rygel is free software; you can redistribute it and/or modify
9
 
 * it under the terms of the GNU Lesser General Public License as published by
10
 
 * the Free Software Foundation; either version 2 of the License, or
11
 
 * (at your option) any later version.
12
 
 *
13
 
 * Rygel is distributed in the hope that it will be useful,
14
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
 
 * GNU Lesser General Public License for more details.
17
 
 *
18
 
 * You should have received a copy of the GNU Lesser General Public License
19
 
 * along with this program; if not, write to the Free Software Foundation,
20
 
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
 
 */
22
 
using Gst;
23
 
using GUPnP;
24
 
 
25
 
internal class Rygel.WMVTranscoder : Rygel.VideoTranscoder {
26
 
    private const int VIDEO_BITRATE = 1200;
27
 
    private const int AUDIO_BITRATE = 64;
28
 
 
29
 
    public WMVTranscoder () {
30
 
        base ("video/x-ms-wmv",
31
 
              "WMVHIGH_FULL",
32
 
              AUDIO_BITRATE,
33
 
              VIDEO_BITRATE,
34
 
              "video/x-ms-asf,parsed=true",
35
 
              "audio/x-wma,channels=2,wmaversion=1",
36
 
              "video/x-wmv,wmvversion=1",
37
 
              "wmv");
38
 
    }
39
 
}