Nov 21, 2009

Do I Need To Do Any Extra Setup For Audio / Video Output? - learn more

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Operating Systems > Linux

Do I Need To Do Any Extra Setup For Audio / Video Output? - learn more

abdo
Since we already assumed you have an up and running linux installation, you most likely won't have to do any work in this area. Most modern distributions automatically configure X and audio for you, and there is a host of information on the web for configuring X.

As far as audio goes, there are many different audio architectures available. We recommend choosing a distribution that uses ALSA (the advanced linux sound architecture) by default since it is the most powerful sound system and supports the most hardware. If your distribution doesn't include it, check out Q19 of the AC3 FAQ or this gentoo ALSA guide.

2. What is a good audio/video player for linux?

There are many excellent AV players available for linux, the three most popular are mplayer, videolan's VLC, and xine. Binary packages of these players are included in most distributions.

Since mplayer is one of the most versastile players, includes mencoder, one of the best transcoding softwares, and is one of the easiest players to build from source, we'll mention how to install mplayer here:

1.) Install any applicable libraries/codecs you want to use with mplayer first. For basic operation you'll probably want libavcodec, xvid, and some win32 binary codecs (for formats without open source libraries). Download one of the binary codec packs from the mplayer homepage (for example extralite.tar.gz) and extract it to /usr/local/lib/codecs/. If you're compiling from CVS (recommended) make sure to check out the libavcodec source for copying into the mplayer source directory:
Code:
$ cvs -d:pserver:anonymous@mplayerhq.hu:/cvsroot/ffmpeg co ffmpeg/libavcodecFor more information on the involved software see http://mplayerhq.hu/DOCS/HTML/en/install.html and http://mplayerhq.hu/DOCS/HTML/en/codecs.html#ffmpeg .

2.) Download mplayer source code from http://www.mplayerhq.hu/homepage/design7/dload.html . The recommended version is always the latest CVS (mplayer-current.tar.bz2) Although binary packages from mplayer are available for many systems, it is usually better to compile from source since mplayer will be optimized for your processor, and the installation will detect what codec and AV output libraries are present on your system. Unpack the tarball in your directory of choice:
Code:
$ tar xvjf mplayer-current.tar.bz2Or if you want to use CVS for quicker future updates:
Code:
$ cvs -d:pserver:anonymous@mplayerhq.hu:/cvsroot/mplayer co mainDon't forget to copy the libavcodec directory we checked out earlier into the 'main' directory.

3.) Configure mplayer by running ./configure from the root of the mplayer directory. './configure --help' will show you some configuration options, and you may want to add support for the GUI and for large files:
Code:
$ ./configure --enable-gui --enable-largefilesAfter running this script will tell you which codecs and output libraries have been detected, check through the list to make sure everything you need has been detected. You can then build and install mplayer and mencoder:
Code:
$ make
# make install4.) Be sure to read over the mplayer manpage ( I know it's enormous) to become familiar with its control. You can add options to the mplayer config file (default /usr/local/etc/mplayer/mplayer.conf) rather than specifying them on the commandline. My mplayer.conf looks like this: (specify dvd drive location, alsa audio driver, and try S/PDIF output before others)
Code:
ao=alsa
dvd-device=/dev/hdc
ac=hwac3,In order to run the GUI you'll need to put a skin in '/usr/local/share/mplayer/Skin/default' (download & install a skin from the homepage, unpack, and rename the folder to 'default') and a default sub font in '~/.mplayer/subfont.ttf'.

Now you should be set to play with mplayer and encode with mencoder. You can find lots more information on all these topics in the mplayer documentation ( http://mplayerhq.hu/DOCS/HTML/en/ ) and the mplayer manpage ('man mplayer').

3. What about a good audio player for linux?

Two good winamp-like players for linux are XMMS and beep-media-player (a fork of XMMS with an updated interface). One or both of these is included with many distributions.

Like winamp there are a host of input and output plugins available for XMMS. You can get the source for these at the xmms homepage or from your distribution's repositories (in the case of gentoo, debian, or other distros with vast repositories).

A newer audio player that is gaining much popularity is amaroK. amaroK features a gstreamer interface, an advanced media library, highly configurable interface, cover art downloading plugin, and much more.

Please note that some distros such as Redhat/Fedora do not include an mp3 decoder with XMMS due to legal reasons. In this case you need to install an mp3 plugin, check out rpm.livna.org for RPMs of this and other packages omitted from the Fedora/Red Hat distribution.

4. What options do I have for playing DVDs under linux?

Many distributions include some sort of DVD capable player in their main repository. Please note that as with MP3, some distributions do not include CSS-decrypting capable players due to legal reasons. As above rpms can be found at rpm.livna.org, or you can install your own player.

A full mplayer install as noted above will be dvd-capable (although mplayer does not support menues at this time) and you can play dvds through the GUI or by the command
Code:
mplayer dvd://1 -dvd-device /dev/hdcIn this example the dvd device is /dev/hdc, you'll need to specify the device via CLI or config file unless the device is the mplayer default /dev/dvd.

Videolan's VLC is another good choice for dvd playback, you can find binaries on their homepage or source install instructions here.

Two other common DVD players are xine and ogle.

4B. How can I playback an ISO image of a DVD on my hard drive?

You can easily mount the iso and then play it back as if it is a mounted DVD disc, for example:
Code:
# mkdir /mnt/dvd_image
creates the mountpoint directory

# mount -o loop -t udf /path/to/image.iso /mnt/dvd_image
mounts the ISO image /path/to/image.iso on the /mnt/dvd_image directory

$ mplayer dvd://1 -dvd-device /mnt/dvd_image
Plays the mounted image with mplayer

$ vlc --dvd /mnt/dvd_image
Plays the mounted image with VLC5. How can I playback audio in multichannel or over S/PDIF?

For S/PDIF, you'll first need to set up the appropriate ALSA settings by running alsamixer (assuming your distro uses ALSA, see Q1 above) and unmuting the S/PDIF output. PCM audio will automatically be played over s/pdif, to play passthrough DTS or AC3 you'll need to specify this setting in the player. In mplayer this is done with the '-ac hwac3' or '-ac hwdts' switches, in VLC the settings can be found in the audio section of the preferences.

For analog multichannel you'll again need to set up the appropriate outputs in alsamixer and you can then specify '-channels 6' in mplayer.

6. How can I play video content over my tv-out in linux?

You'll first want to configure X to run your Tv-out as a second xineramascreen (dual head configuration). There are many guides on the internet for this configuration based on different video card manufacturers, see this LQ wiki page for some starter information. After this is set up you can specify the xineramascreen for playback in mplayer via the '-xineramascreen #' switch or in vlc by the '--x11-xineramascreen #' switch.

 

 

 


Comment/Reply (w/o sign-up)

iGuest-Harikrishna.G
on fedora
Do I Need To Do Any Extra Setup For Audio / Video Output?

Give me codes or the steps to play audio clip in fedora 9 & and also some more tips to on linux

-reply by Harikrishna.G

Comment/Reply (w/o sign-up)

ryantommo
i cnt code so could i buy the codes if i need them?

Comment/Reply (w/o sign-up)

wutske
Are you talking about codecs ?
If you are missing codecs you can easily install them buy using the package manager that came with your distribution.
As said by abdo, mplayer is a good A/V program it can play almost anything (even corrupt/incomplete files are played pretty well with this program). It usualy is available in your distribution's repository so it's easy to install.


@abdo: if you have some command line stuff in your topic, it's best to place them in [ code][ /code] tags, makes it a lot easier to read wink.gif

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : extra, setup, audio, video, output, learn

  1. What Applications Can I Use For Cd-audio Ripping (digital Extraction) And Encoding?
    Audio Encoding (0)
  2. What Programs To I Need To Setup To Rip And Encode Video From My Camcorder?
    DV / Digital Camcorder Encoding (1)
    The basic libraries you'll want are libdv (DV-format decoding library),
    libraw1394(IEEE-1394/firewire hardware access library), and libavc1394 (AVC control library, so you
    can play and pause your camera via computer control). Please note that many broken libraw1394
    packages do not properly setup the /dev/raw1394 device. If you encounter problems when running
    dvgrab, kino, or other DV capturing programs regarding the raw1394 interface, try the following
    commands to create the /dev/raw1394 device: Code: # /bin/mknod -m 600 /dev/raw1394 c 171 0 #
    /bin/chown root:root ....
  3. What Programs To I Need To Setup To Rip And Encode Video From My Camcorder?
    more & more (2)
    The basic libraries you'll want are libdv (DV-format decoding library),
    libraw1394(IEEE-1394/firewire hardware access library), and libavc1394 (AVC control library, so you
    can play and pause your camera via computer control). Please note that many broken libraw1394
    packages do not properly setup the /dev/raw1394 device. If you encounter problems when running
    dvgrab, kino, or other DV capturing programs regarding the raw1394 interface, try the following
    commands to create the /dev/raw1394 device: Code: # /bin/mknod -m 600 /dev/raw1394 c 171 0 #
    /bin/chown root:root ....
  4. Automate The Advanced Setup Of Graphics Cards In Ubuntu And Debian
    (1)
    "Envy" is an application for Ubuntu Linux and Debian, written in Python and PyGTK, which will detect
    the model of your graphic card (ATI and Nvidia cards are supported) and install the correct drivers.
    http://www.albertomilone.com/nvidia_scripts1.html _________________________________
    http://dserban01.googlepages.com/linkedin....abap.basis.html ....
  5. Video Support And Performace Under Linux
    (10)
    A couple of years ago, using a very old, very out-of-date computer, I used to always run into all
    sorts of trouble with Linux, especially since I used to use my Linux-box for programming and testing
    purposes. But one of the most annoying mishaps I came across was the fact that playing my movies,
    CDs, or even the occasional video clip was next to impossible, considering my dire lack of memory at
    the time. Even a 2 MB video clip would cause my system to hang, and force me to reboot. But now,
    since I have a decent PC, I'm gradually returning to my beloved Linux-box, ....
  6. Kwifimanager: Need Wan Setup Help In Kde
    (3)
    Im using knoppix on a old (p3 124mb ram win98) pc that i am soon to install ubuntu on for family. I
    need to put this computer onto the (totally xp) network. I have managed to find the network and get
    fully signal but i cant figure how to join the network. The computer doesnt seem to have an ip
    address assigned to it. I know that the d-link hardware is linux compatible so im not sure whats
    wrong, i can seem to find any network setup stuff in knoppix. Any ideas Also an extra quick
    question: What does gnome have in the way of a equal to KWiFimanager becasue i could insta....
  7. Realplayer Cannot Open The Audio Device?
    (10)
    I have realplayer installed in a Redhat 9.0 machine. there is a error message when I open files
    with realplayer. error: cannot open the audio device.Another application may be using it. can
    realplayer work with other applications which use audio device at the same time?? If yes, how to do
    that?? Thank you!!....
  8. Locking Accout After Login Failed In Linux
    setup the policy on redhat es3 (0)
    I am asking this question for my friend. he wants to setup the policy on his linux server (redhat
    es3): when user tried to login the server 5 times but failed, the account will be locked. He tried
    to edit /etc/pam.d/login file to below config %PAM-1.0 auth required /lib/security/pam_securetty.so
    auth required /lib/security/pam_stack.so service=system-auth auth required
    /lib/security/pam_nologin.so auth required /lib/security/pam_tally.so onerr=fail no_magic_root
    account required /lib/security/pam_stack.so service=system-auth account required
    /lib/security/pam_tally.so ....
  9. Setup Lilo To Boot Plan 9
    Dual boot between Linux and Plan 9 (2)
    Does anyone know how to set up LILO to boot another hard disk with Plan 9 installed on it? I'm
    Installing it on the other hard drive, and then hooking it up as a slave and setting up LILO to give
    me an option to boot into Plan 9 on that drive. Anyone have any ideas?....

    1. Looking for extra, setup, audio, video, output, learn

See Also,

*SIMILAR VIDEOS*
Searching Video's for extra, setup, audio, video, output, learn
advertisement



Do I Need To Do Any Extra Setup For Audio / Video Output? - learn more

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com