Become a fan of Slashdot on Facebook

 



Forgot your password?
typodupeerror
×
User Journal

Journal Journal: .xine/config

# cat .xine/config |grep -v ^# | grep -v ^$
.version:2
gui.panel_visible:0
gui.panel_x:236
gui.panel_y:605
gui.viewlog_x:106
gui.viewlog_y:169
audio.device.alsa_front_device:default
audio.output.speaker_arrangement:Pass Through
media.vcd.device:
engine.performance.memcpy_method:sse
User Journal

Journal Journal: /usr/share/ogle/oglerc

begin 644 oglerc.gz
M'XL(``[7Z$(``ZV82V_;.!"`S\FOT.;4'A+%:=,'H%61)DZQV*1U8P>[W8M!
M2V.)B$2J)&7'^^MWJ+=%NM*B#0*8',Y\'#Z&,[;WX3E-G`T(23G[_61R=G[R
MP3_V?KOY<KWX-ILZ/$I@&7"V=N;?YHOIO7/BYE*X,B8"7#WH-AIGH0I/M.WI
MJ;.(J73P7\7@Z#$:Y8(HG,)9TP2<-1<%^<QYD1)6-$7PXO+E2^?T%`D-TC]V
M'"_<A/H36XQLRI:6PIKDB9+^\9%W4[;O@>5WA$4YB<`'YKDV>:M^E8>4V_3W
M!UJ#>;Y25"5@LS'&T&R&>\042:YYSI38^8]SS^W+.FIWL('$GURV2J5$JR1D
M!^(!(MQ!?X(*W7Z](VZ[)66_V2[<K`T-H-',B(I]5-^XN+>>6W2/:T:MZ;G5
MQGM$[X>=%`J*=\<GB22H7W8LL\BL.XM&HH%>&",I^)7?VN&T1;NE3M\M[,D,
MR!/>V$8UB`ECD"S+FZ:Y0:QV&?A7UZ\\MVHWW+[V$.1F,?]YR/UL^NGG*7>S
MZ_M?0(&U:BF-^(%&L1JD'_TB?"L'(@Z9X-`ALVN,$!"6@;O;Z<A%>.[^3?(2
MNB*7%^WEYEN6TN=E4@;F&4;FOJB-@L!G7`=`T,@D>@=\F?(0+SA/5CN<K2.J
M'.C.Z,D=:^T+_U$3(]US]Q8C0)(T2Z"8LNG4HWR]EJ#\<\^M6O52*SC&51W.
MWH:&T`0VE1G.U01E'8U'7@0\A>*M<IH_;TM##&?/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_T']-@F_3@4````
`
end

and relevant audio section:

<audio>
    <device>
      <driver>alsa</driver>
      <path>/dev/dsp</path>
      <alsa>
        <name>default</name>
      </alsa>
    </device>
    <speakers>
      <channel_config>
        <chtype>AC3</chtype>
      </channel_config>
      <channel_config>
        <chtype>DTS</chtype>
      </channel_config>
      <channel_config>
        <chtype>MPEG</chtype>
      </channel_config>
      <channel_config>
        <chtype>LPCM</chtype>
      </channel_config>
      <channel_config>
        <chtype>Left</chtype>
        <chtype>Right</chtype>
      </channel_config>
      <channel_config>
        <chtype>Left</chtype>
        <chtype>Right</chtype>
        <chtype>RearLeft</chtype>
        <chtype>RearRight</chtype>
        <chtype>Center</chtype>
        <chtype>LFE</chtype>
      </channel_config>
    </speakers>
    <liba52>
      <downmix_level>1.5</downmix_level>
      <drc>no</drc>
      <stereo_mode>dolby</stereo_mode>
    </liba52>
    <sync>
      <type>odelay</type>
      <resample>no</resample>
      <offset>0</offset>
    </sync>
  </audio>
User Journal

Journal Journal: Chaintech AV710 and 5.1 sound through the optical port

I have a Chaintech AV710
http://www.chaintech.com.tw/tw/eng/product_spec.asp?MPSNo=16&PISNo=199

It's currently $24.50 at Newegg
http://www.newegg.com/Product/Product.asp?Item=N82E16829120103

It's about the cheapest card I could find at the time that had an optical out, and it's supported by Linux.

It uses the ENVY-24-HTS chipset, which in the Linux kernel is:

Device Drivers
-Sound
--ALSA
---PCI Devices
----ICE/VT1724/1720 (Envy24HT/PT)

The config files I have are listed as other journal entries.

Some big problems I had:
1. Unmuting the darn thing. Hence I have included my asound.state after I mucked with amixer for forever.
2. Xine and Ogle both need config changes to output to the correct ALSA device. See config files for both.
3. (Once they produce sound) xine and ogle (both excellent players) will automatically use the 5.1 track (or you can select it through the DVD menu). With mplayer it's harder..

For mplayer, as far as I can tell:
# midentify VTS_02_1.VOB
ID_VIDEO_ID=0
ID_AUDIO_ID=129
ID_AUDIO_ID=128
ID_AUDIO_ID=130
ID_AUDIO_ID=131
ID_AUDIO_ID=132
ID_AUDIO_ID=133
ID_AUDIO_ID=134
ID_FILENAME="VTS_02_1.VOB"
ID_VIDEO_FORMAT=0x10000002
ID_VIDEO_BITRATE=9800000
[...]

All we care about are the ID_AUDIO_IDs. Notice they start at 129.

Now look at lsdvd -a:
# lsdvd -a .
Disc Title: unknown
Title: 01, Length: 02:19:02 Chapters: 37, Cells: 59, Audio streams: 07, Subpictures: 02
                Audio: 1, Language: en - English, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined
                Audio: 2, Language: en - English, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 6, AP: 0, Content: Undefined
                Audio: 3, Language: fr - Francais, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined
                Audio: 4, Language: en - English, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined
                Audio: 5, Language: en - English, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined
                Audio: 6, Language: en - English, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined
                Audio: 7, Language: en - English, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 2, AP: 0, Content: Undefined

Title: 02, Length: 00:00:00 Chapters: 18, Cells: 01, Audio streams: 01, Subpictures: 01
                Audio: 1, Language: xx - Unknown, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 6, AP: 0, Content: Undefined

Title: 03, Length: 00:00:00 Chapters: 17, Cells: 01, Audio streams: 01, Subpictures: 01
                Audio: 1, Language: xx - Unknown, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 6, AP: 0, Content: Undefined

Title: 04, Length: 00:00:07 Chapters: 02, Cells: 01, Audio streams: 00, Subpictures: 00

Title: 05, Length: 00:00:00 Chapters: 01, Cells: 01, Audio streams: 00, Subpictures: 00

Title: 06, Length: 00:00:17 Chapters: 02, Cells: 01, Audio streams: 01, Subpictures: 00
                Audio: 1, Language: en - English, Format: ac3, Frequency: 48000, Quantization: drc, Channels: 6, AP: 0, Content: Undefined

Longest track: 1

-------

Title 01 is obviously the main movie. Audio track 1 (129) is 2 channel. Audio track 2 (130) is 6 channel (actually 5.1). That's the one we want.
So, to specify the audio stream:

mplayer -aid 130

From `man mplayer`:
-aid (also see -alang)
  Select audio channel (MPEG: 0-31, AVI/OGM: 1-99, ASF/RM: 0-127, VOB(AC3): 128-159, VOB(LPCM): 160-191,
  MPEG-TS 17-8190). MPlayer prints the available IDs when run in verbose (-v) mode. When playing an MPEG-
  TS stream, MPlayer/MEncoder will use the first program (if present) with the chosen audio stream.

-alang (also see -aid)
  Play the audio stream whose language matches the given code. Different container formats employ differ-
  ent language codes. DVDs use ISO 639-1 two letter language codes, Matroska and NUT use ISO 639-2 three
  letter language codes while OGM uses a free-form identifier. MPlayer prints a list of available lan-
  guages when run in verbose (-v) mode.

------

Seriously, don't use mplayer for DVDs. Use ogle or xine, and you get DVD menus to boot. For full-screen, no gui mode:

ogle -u cli ${DVDDIR}

xine dvd:/${DVDDIR} --fullscreen --hide-gui --no-logo

User Journal

Journal Journal: /etc/asound.state.gz

begin 644 asound.state.gz
M'XL(`-:=Z$(``^U846^C.!!^WOX*OW&GT_6P@80\IH&]C=0T4=+=NWODB+-%
M)1`1TW:UVO]^`R'$@($Z<B/MJ5ZUBVW*?/X\\\W8>^8Q>CW^[$SG1-=U]/WJ
M@Q]'+(G#:YQUH+?=THA=>[Y/]WND)=1;H^<D8%3C9MFW'44W\_FM.[Z#X6#C
M^13-IG^[2^A%WI8B;>;M&4W0(O2^_>OYCVCU'##_(?O(DQ>F%+$DI5<??ISL
M$UG[T[M[]\_<XG$X\:*O8%I'OR,#:Z\$]B4.TRTM@5WKB)"R@_,.A])0R]($
MWI-BR;P02W5@-980L2NP++6TW'YTVSG9>.&^2LK@0J148-49T2N0AFH)6:5)
M$J?1NI45<-N#KY2.VW`=^T(L-;$*0LSF0ZSJ2R.UU'V"/]P]Q!&5B#*L7X@K
M`3@!609/EE%%^C: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TKYX)MRSP3V;W+/%/0^XYR'W;&>PRMZHT@-=Q*<.;QWSYC%O'_,`
M,(\`\Q`PCP';?&?$KY)?/JD?;4SIXNKG\]OB%;F`MI3>(_QDQ+PNIBW%A6@!
MYWC8[+LRL.2O#'(#I758%#ROZ5,`'=S*BD,W'F@+YS!0&9#BY[V]0:NYF;`\
M%Z:.ZOX>O:MWA^%,C&;>GB__C$U^5MCT8GUO9[7:%@LK:Y5;O$CBVA:OW_?V
035NVP3^N_@,3G"Q`]R<`````
`
end
User Journal

Journal Journal: lspci and lsmod

# lspci -v
0000:02:01.0 Multimedia audio controller: VIA Technologies Inc. VT1720/24 [Envy24PT/HT] PCI Multi-Channel Audio Controller (rev 01)
                Subsystem: VIA Technologies Inc. AMP Ltd AUDIO2000
                Flags: bus master, medium devsel, latency 64, IRQ 22
                I/O ports at dea0
                I/O ports at df00 [size=128]
                Capabilities: [80] Power Management version 1

# lsmod |grep snd
snd_pcm_oss 49572 0
snd_mixer_oss 18176 1 snd_pcm_oss
snd_seq_oss 33024 0
snd_seq_midi_event 6528 1 snd_seq_oss
snd_seq 51344 4 snd_seq_oss,snd_seq_midi_event
snd_ice1724 52388 2
snd_ice17xx_ak4xxx 3456 1 snd_ice1724
snd_ac97_codec 73952 1 snd_ice1724
snd_pcm 86148 4 snd_pcm_oss,snd_ice1724,snd_ac97_codec
snd_timer 21764 2 snd_seq,snd_pcm
snd_page_alloc 7940 1 snd_pcm
snd_ak4xxx_adda 5888 2 snd_ice1724,snd_ice17xx_ak4xxx
snd_mpu401_uart 6656 1 snd_ice1724
snd_rawmidi 20512 1 snd_mpu401_uart
snd_seq_device 7180 3 snd_seq_oss,snd_seq,snd_rawmidi
snd 48484 15 snd_pcm_oss,snd_mixer_oss,snd_seq_oss,snd_seq,snd_ice1724,snd_ac97_codec,snd_pcm,snd_timer,snd_ak4xxx_adda,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore 7904 1 snd

User Journal

Journal Journal: /etc/asound.conf

pcm.!default {
        type plug
        slave.pcm "cards.pcm.iec958"
}

pcm.!spdif {
        type plug
        slave.pcm "cards.pcm.iec958"
}

pcm.!iec958 {
                type plug
                slave {
                                pcm "hw:0,1"
                                format S32_LE
                }
}

Slashdot Top Deals

"Protozoa are small, and bacteria are small, but viruses are smaller than the both put together."

Working...