File: ezstream_reencode_theora.xml

package info (click to toggle)
ezstream 0.5.3~dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 1,176 kB
  • ctags: 439
  • sloc: ansic: 5,187; sh: 3,877; xml: 163; makefile: 73
file content (78 lines) | stat: -rw-r--r-- 3,329 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<!--
   EXAMPLE: Ogg Theora playlist stream WITH reencoding and sequential playback

   This example streams a playlist that may contain .avi and MPEG files.
   Ezstream will use the ffmpeg2theora program to both decode and reencode the
   video files to Ogg Theora. The output stream settings are controlled via the
   paramters to ffmpeg2theora.
 -->
<ezstream>
    <url>http://localhost:8000/theora.ogg</url>
    <sourcepassword>hackme</sourcepassword>
    <!--
       Since the reencoding feature is enabled below, <format /> sets the
       output format of the stream.
     -->
    <format>THEORA</format>
    <filename>playlist.m3u</filename>
    <!--
       Playlist shuffling is disabled, when the <shuffle /> element does not
       exist or is commented out:
     -->
    <!-- <shuffle>1</shuffle> -->
    <!--
      The following settings are used to describe your stream to the server.
      It's up to you to make sure that the bitrate/quality/samplerate/channels
      information matches up with your oggenc encoder settings below.
     -->
    <svrinfoname>My Stream</svrinfoname>
    <svrinfourl>http://www.oddsock.org</svrinfourl>
    <svrinfogenre>Documentary</svrinfogenre>
    <svrinfodescription>This is a stream description</svrinfodescription>
    <svrinfobitrate>200</svrinfobitrate>
    <svrinfochannels>2</svrinfochannels>
    <svrinfosamplerate>44100</svrinfosamplerate>
    <!--
       A missing or commented out <svrinfopublic /> element means no
       advertising on YP for this broadcast:
     -->
    <!-- <svrinfopublic>1</svrinfopublic> -->
    <reencode>
        <!-- Enable the reencoding feature: -->
        <enable>1</enable>
        <!--
           Each <encdec /> element specifies a pair of programs to be used for
           decoding and encoding, respectively, and which file extension and
           output stream format they apply to.

           All the configuration of the output stream is usually done by using
           the appropriate command line parameters of the encoders in the
           <encode /> elements.

           New <encdec /> sections can be added for new input/output formats.

           Distorted audio, or audio playing at the wrong speed/pitch may be
           caused by conflicting sample rates in the various <decode /> and
           <encode /> sections, byte order (endianness) issues and mono input
           files. See the documentation on the various de-/encoders for
           the options that need to be used to create a consistent stream of
           raw samples.
         -->
        <encdec>
            <!--
               Support for THEORA. Ogg Theora streams are created differently
               with ffmpeg2theora, which does the complete reencoding on its
               own. Therefore, we only supply a <decode /> element and let
               ezstream pass through the resulting stream unaltered to Icecast.
             -->
            <format>THEORA</format>
            <match>.avi</match>
            <decode>ffmpeg2theora -x 192 -y 128 -a 0 -v 4 --title "@M@" -o - "@T@"</decode>
        </encdec>
        <encdec>
            <format>THEORA</format>
            <match>.mpg</match>
            <decode>ffmpeg2theora -x 192 -y 128 -a 0 -v 4 --title "@M@" -o - "@T@"</decode>
        </encdec>
    </reencode>
</ezstream>