As others have experienced, I am having problems with
recorded video with no sound. I am using a Pinnacle
PCTV Pro with the on-board sound on a ASUS A7V8X-X
(AMD Athlon XP 2500+). lspci output yields :
----------
[EMAIL PROTECTED] root]# lspci
00:00.0 Host bridge: VIA Technologies, Inc. VT8377
[KT400 AGP] Host Bridge
00:01.0 PCI bridge: VIA Technologies, Inc. VT8235 PCI
Bridge
00:0c.0 Multimedia video controller: Brooktree
Corporation Bt878 Video Capture (rev 11)
00:0c.1 Multimedia controller: Brooktree Corporation
Bt878 Audio Capture (rev 11)
00:10.0 USB Controller: VIA Technologies, Inc. USB
(rev 80)
00:10.1 USB Controller: VIA Technologies, Inc. USB
(rev 80)
00:10.2 USB Controller: VIA Technologies, Inc. USB
(rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0
(rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA
Bridge
00:11.1 IDE interface: VIA Technologies, Inc.
VT82C586A/B/VT82C686/A/B/VT8233/A/C/VT8235 PIPC Bus
Master IDE (rev 06)
00:11.5 Multimedia audio controller: VIA Technologies,
Inc. VT8233/A/8235 AC97 Audio Controller (rev 50)
00:12.0 Ethernet controller: VIA Technologies, Inc.
VT6102 [Rhine-II] (rev 74)
01:00.0 VGA compatible controller: nVidia Corporation
NV15GL [Quadro2 Pro] (rev a4)
----------
I have tried both /dev/dsp and /dev/dsp1. If I use
/dev/dsp I get sound on the PC speakers but not on the
recorded video - mencoder crashes with /dev/dsp1. See
output for both commands below. If anyone needs more
information, please ask.
I've pretty much isolated this to mplayer and will
start to research the problem in that context. I
figured one or more of you might have seen/solved this
problem so I figured I'd ask to input.
Thanks in advance and Happy New Year!
Tom
----------
/dev/dsp/
----------
[EMAIL PROTECTED] root]# /usr/bin/mencoder tv:// -tv
driver=v4l:input=0:norm=NTSC:channel=5:chanlist=us-cable:width=640:height=480:outfmt=yv12:device=/dev/video0:adevice=/dev/dsp:audiorate=44100:forceaudio:forcechan=2:buffersize=64
-ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=1200:keyint=30 -oac mp3lame
-lameopts br=128:cbr:mode=3 -ffourcc divx -endpos 289
-o /freevo/recordings/TestRecord.avi MEncoder
1.0pre3-3.3.2 (C) 2000-2003 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton
1833 MHz (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1
SSE: 1 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this
is not optimal!
To get best performance, recompile MPlayer with
--disable-runtime-cpudetection.
Reading /root/.mplayer/codecs.conf: Can't open
'/root/.mplayer/codecs.conf': No such file or
directory
Reading /etc/mplayer/codecs.conf: Can't open
'/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /root/.mplayer/mencoder: No such
file or directory
font: can't open file: /root/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded
successfully! (206 chars)
success: format: 9 data: 0x0 - 0x0
TV detected! ;-)
Selected driver: v4l
name: Video 4 Linux input
author: Alex Beregszaszi
comment: under development
Selected device: BT878(Pinnacle PCTV Studio/Ra)
Capabilites: capture tuner overlay clipping frameram
scales
Device type: 235
Supported sizes: 48x32 => 768x480
Inputs: 4
0: Television: tuner audio tv camera (tuner:1,
norm:ntsc)
1: Composite1: audio camera (tuner:0, norm:ntsc)
2: Composite2: audio camera (tuner:0, norm:ntsc)
3: S-Video: audio camera (tuner:0, norm:ntsc)
Card reports an unknown audio mode !
Trying two channel audio. Use forcechan to override.
audio block size too low, setting to 16384!
Using input 'Television'
Selected channel: 5 (freq: 77.250)
[V] filefmt:9 fourcc:0x32315659 size:640x480
fps:29.97 ftime:=0.0334
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio
decoder
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio:
176400->176400 (1411.2 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred csp:
Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (640x480 fourcc=58564944
[DIVX])
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
Forcing output fourcc to 78766964 [divx]
MP3 audio selected
Building audio filter chain for 44100Hz/2ch/16bit ->
44100Hz/1ch/16bit...
Writing AVI header...
Forcing audio preload to 0, max pts correction to 0
Pos: 30.5s 838f ( 0%) 30fps Trem: 0min 0mb
A-V:0.000 [1560:127]
CBR audio: 16000 bytes/sec, 418 bytes/block
Writing AVI index...
Fixing AVI header...
Video stream: 1560.655 kbit/s (195081 bps) size:
5949462 bytes 30.497 secs 838 frames
Audio stream: 128.000 kbit/s (15999 bps) size:
487758 bytes 30.485 secs
MJP: returning!
----------
/dev/dsp1
----------
[EMAIL PROTECTED] root]# /usr/bin/mencoder tv:// -tv
driver=v4l:input=0:norm=NTSC:channel=5:chanlist=us-cable:width=640:height=480:outfmt=yv12:device=/dev/video0:adevice=/dev/dsp1:audiorate=44100:forceaudio:forcechan=2:buffersize=64
-ovc lavc -lavcopts
vcodec=mpeg4:vbitrate=1200:keyint=30 -oac mp3lame
-lameopts br=128:cbr:mode=3 -ffourcc divx -endpos 289
-o /freevo/recordings/TestRecord2.avi
MEncoder 1.0pre3-3.3.2 (C) 2000-2003 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton
1833 MHz (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1
SSE: 1 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this
is not optimal!
To get best performance, recompile MPlayer with
--disable-runtime-cpudetection.
Reading /root/.mplayer/codecs.conf: Can't open
'/root/.mplayer/codecs.conf': No such file or
directory
Reading /etc/mplayer/codecs.conf: Can't open
'/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /root/.mplayer/mencoder: No such
file or directory
font: can't open file: /root/.mplayer/font/font.desc
Font /usr/share/mplayer/font/font.desc loaded
successfully! (206 chars)
success: format: 9 data: 0x0 - 0x0
TV detected! ;-)
Selected driver: v4l
name: Video 4 Linux input
author: Alex Beregszaszi
comment: under development
Selected device: BT878(Pinnacle PCTV Studio/Ra)
Capabilites: capture tuner overlay clipping frameram
scales
Device type: 235
Supported sizes: 48x32 => 768x480
Inputs: 4
0: Television: tuner audio tv camera (tuner:1,
norm:ntsc)
1: Composite1: audio camera (tuner:0, norm:ntsc)
2: Composite2: audio camera (tuner:0, norm:ntsc)
3: S-Video: audio camera (tuner:0, norm:ntsc)
Card reports an unknown audio mode !
Trying two channel audio. Use forcechan to override.
unable to open '/dev/dsp1': No such device
============ Sorry, this file format is not
recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please
contact the author! ===
Cannot open demuxer.
Exiting...
----------
/etc/freevo/local_conf.py
----------
[EMAIL PROTECTED] root]# cat /etc/freevo/local_conf.py
#if 0
#
-----------------------------------------------------------------------
# local_conf.py - Edit this file for your local system
settings
#
-----------------------------------------------------------------------
# $Id: local_conf.py.example,v 1.20 2003/10/29
20:47:44 dischi Exp $
#
# Notes:
# This file contains the important options from
freevo_config.py that
# you might want to change to suit your system.
Remove the '#' to
# uncomment the setting(s) you want to change. There
are more options
# in freevo_config.py, copy those that must be
changed to this file.
#
# DO NOT CHANGE ANYTHING IN freevo_config.py, ALWAYS
MAKE THE CHANGES
# IN local_conf.py TO MAKE UPDATES EASIER
#
# Then put this file in ~/.freevo/ or /etc/freevo to
make upgrades easier.
# Freevo will look in those folders first for this
file.
#
#
-----------------------------------------------------------------------
# Freevo - A Home Theater PC framework
# Copyright (C) 2003 Krister Lagerstrom, et al.
# Please see the file freevo/Docs/CREDITS for a
complete list of authors.
# Please see the file freevo/COPYING for license info.
#
#
-----------------------------------------------------------------------
#endif
# This version should match the version in
freevo_config.py. It makes
# it easier to update this file. When you get a new
version of Freevo,
# Freevo will tell you any changes made in
freevo_config.py. After you
# merged those changes into this file, set this number
to the new one.
CONFIG_VERSION = 3.91
#
======================================================================
# General freevo settings:
#
======================================================================
AUDIO_DEVICE = '/dev/dsp' # e.g.:
/dev/dsp0, /dev/audio, /dev/alsa/?AUDIO_INPUT_DEVICE
= '/dev/dsp1' # e.g.: /dev/dsp0, /dev/audio,
/dev/alsa/?# MAJOR_AUDIO_CTRL = 'VOL' #
Freevo takes control over one audio ctrl
# # 'VOL', 'PCM'
'OGAIN' etc.
CONTROL_ALL_AUDIO = 0 # Should Freevo
take complete control of audio
MAX_VOLUME = 90 # Set what you
want maximum volume level to be.
DEFAULT_VOLUME = 80 # Set default
volume level.
TV_IN_VOLUME = 80 # Set this to
your preferred level 0-100.
VCR_IN_VOLUME = 90 # If you use
different input from TV
DEV_MIXER = '/dev/mixer' # mixer device
# START_FULLSCREEN_X = 0 # Start in
fullscreen mode if using x11 or xv.
CONFIRM_SHUTDOWN = 0 # ask before
shutdown
#
# Physical ROM drives, multiple ones can be specified
# by adding comma-seperated and quoted entries.
#
# Format [ ('mountdir1', 'devicename1', 'displayed
name1'),
# ('mountdir2', 'devicename2', 'displayed
name2'), ...]
#
# Set to None to autodetect drives in during startup
from /etc/fstab,
# set to [] to disable rom drive support at all
# ROM_DRIVES = None
# hide discs from the wrong menu (e.g. VCDs in audio
menu) and empty discs
HIDE_UNUSABLE_DISCS = 1
# ROM_SPEED = 0 # try to set the
drive speed of the rom
# drive a good
value for playing movies
# with a silent
drive is 8
#
# see src/event.py for a list of all possible events.
You can add more keybindings
# by adding them to the correct hash. E.g. pressing 1
should send 'contrast -100'
# to mplayer, just write the folling line to your
local_conf.py
#
# EVENTS['video']['1'] = Event(VIDEO_SEND_MPLAYER_CMD,
arg='contrast -100')
#
======================================================================
# Plugins:
#
======================================================================
# you can remove all plugins loaded in
freevo_config.py
#
# Examples:
# plugin.remove(plugin_tv) or
# plugin.remove('tv') will remove the tv module from
the main menu
# plugin.remove(rom_plugins['image']) will remove the
rom drives from the
# image main menu,
# plugin.remove('rom_drives.rom_items') will remove
the rom drives from all
# menus
# Use this ivtv_record instead if you have an ivtv
based card (PVR-250/350)
# and want freevo to do everthing for you.
TV_SETTINGS must be set
# correctly. To use you need the following two lines
in local_conf.py:
# plugin.remove('tv.generic_record')
# plugin_record = plugin.activate('tv.ivtv_record')
# For joystick support:
# plugin.activate('joy')
# Idlebar plugin:
plugin.activate('idlebar')
# plugin.activate('idlebar.mail', level=10,
args=('/var/spool/mail/dmeyer', ))
# plugin.activate('idlebar.tv', level=20)
plugin.activate('idlebar.weather', level=30,
args=('KIND', 'F',))
plugin.activate('idlebar.clock', level=50)
plugin.activate('idlebar.cdstatus', level=20)
plugin.activate('idlebar.holidays', level=20)
#
======================================================================
# Freevo directory settings:
#
======================================================================
# You can change all this variables in the folder.fxd
on a per folder
# basis
#
# Example:
# <freevo>
# <folder title="Title of the directory"
img-cover="nice-cover.png">
# <setvar name="directory_autoplay_single_item"
val="0"/>
# <info>
# <content>A small description of the
directory</content>
# </info>
# </folder>
# </freevo>
#
# Should playlists be available for movies, and all
movies in a directory
# be played in succession (unless you press
STOP/EXIT)?
#
# MOVIE_PLAYLISTS = 0
#
# Should a Random Playlist be generated for Music?
#
# AUDIO_RANDOM_PLAYLIST = 1
#
# Should directories sorted by date instead of
filename
# 0 = no, 1 = yes, 2 = no for normal menus, yes for
DIR_RECORD
#
DIRECTORY_SORT_BY_DATE = 2
#
# Show the items in the list in reverse order
#
DIRECTORY_REVERSE_SORT = 0
#
# Should we use "smart" sorting to ignore 'The' in
directories
# 0 = no, 1 = yes
#
DIRECTORY_SMART_SORT = 0
#
# Should freevo autoplay the item if only one item is
in the directory
#
# DIRECTORY_AUTOPLAY_SINGLE_ITEM = 1
#
# Force the skin to a specific layout number. -1 == no
force. The layout
# toggle with DISPLAY will be disabled
#
# FORCE_SKIN_LAYOUT = -1
#
# Formatstring for the audio item names, possible
strings:
# a = artist, n = tracknumber, t = title, y = year, f
= filename
#
# This will show the title and the track number
# AUDIO_FORMAT_STRING = '%(n)s - %(t)s'
# This is the default - track name only
#
# AUDIO_FORMAT_STRING = '%(t)s'
#
# Use media id tags to generate the name of the item.
This should be
# 1 all the time and only be disabled in directories
with broken tags
#
# USE_MEDIAID_TAG_NAMES = 1
#
======================================================================
# Freevo movie settings:
#
======================================================================
#
# Where the movie files can be found.
#
DIR_MOVIES = [ ('Action', '/freevo/movies/action'),
('Comedy', '/freevo/movies/comedy') ]
#
# This is where recorded video is written.
#
# XXX the path doesn't work from the www cgi scripts!
DIR_RECORD = '/freevo/recordings'
#
# Directory for XML definitions for DVDs and VCDs.
Items in this
# directory won't be in the MOVIE MAIN MENU, but will
be used to find
# titles and images for the current DVD/VCD
#
MOVIE_DATA_DIR = '/freevo/movie-data/'
#
# Directory containing images for tv shows. A tv show
maches the regular
# expression TV_SHOW_REGEXP, e.g. "Name 3x10 - Title".
If an image
# name.(png|jpg) (lowercase) is in this directory, it
will be taken as cover
# image
#
TV_SHOW_DATA_DIR = "/freevo/tv-show-images/"
#
# Directory for cover images for CD/VCD/DVD and music
CDs or when you can't
# add a cover image to the dir you want. Not for
replacing the normal
# cover file function.
#
COVER_DIR = '/freevo/Covers/'
#
# Only scan MOVIE_DATA_DIR and TV_SHOW_DATA_DIR for
fxd files containing
# informations about a disc. If you only have the fxd
files for discs in
# one of this directories (and subdirectories), set
this to 1, it will
# speed up startup, 0 may be needed if you have fxd
files with disc links
# in your normal movie tree.
#
ONLY_SCAN_DATADIR = 1
#
======================================================================
# Freevo audio settings:
#
======================================================================
#
# Where the Audio (mp3, ogg) files can be found.
# Format: [ ('Title1', 'directory1', 'mplayer
options'),
# ('Title2', 'directory2'), ... ]
# The 'mplayer options' field can be omitted.
#
DIR_AUDIO = [ ('mp3s', '/freevo/mp3s') ]
#
======================================================================
# Freevo image viewer settings:
#
======================================================================
# Where the image files can be found.
# DIR_IMAGES = [ ('Arizona 2002',
'/video/SlideShows/arizona-2002.ssr'),
# ('Carmel 2002',
'/video/SlideShows/carmel.ssr'),
# ('Pics', '/video/SlideShows') ]
# The viewer now supports a new type of menu entry, a
slideshow file.
# It also has the slideshow alarm signal handler for
automated shows.
# It uses a new configuration option:
# SUFFIX_IMAGE_SSHOW = [ 'ssr' ]
# This defines the file extensions of slideshow
playlists. When DIR_IMAGES
# is parsed, it will look for entries that match the
SUFFIX_IMAGE_SSHOW
# patterns. If it finds a match, then it will classify
that entry as a
# slideshow playlist instead of a directory of images.
For example:
#
======================================================================
# Freevo games settings:
#
======================================================================
#
# MAME is an emulator for old arcade video games. It
supports almost
# 2000 different games! The actual emulator is not
included in Freevo,
# you'll need to download and install it separately.
The main MAME
# website is at http://www.mame.net, but the version
that is used here
# is at http://x.mame.net since the regular MAME is
for Windows.
#
# SNES stands for Super Nintendo Entertainment System.
Freevo relies
# on other programs that are not included in Freevo to
play these games.
#
# NEW GAMES SYSTEM :
# =================
# The DIR_GAMES structure is now build as follows :
# <NAME>, <FOLDER>, (<TYPE>, <COMMAND_PATH>,
<COMMAND_ARGS>, <IMAGE_PATH>, \
# [<FILE_SUFFIX_FOR_GENERIC>])
# where :
# - <TYPE> : Internal game types (MAME or
SNES) or
# generic one (GENERIC)
# - <COMMAND_PATH> : Emulator command
# - <COMMAND_ARGS> : Arguments for the
emulator
# - <IMAGE_PATH> : Optionnal path to
the picture
# - <FILE_SUFFIX_FOR_GENERIC> : If the
folder use the GENERIC
# type,
then you must specify here
# the file
suffix used by the emulator
# DIR_GAMES = [ ('MAME',
'/home/media/games/xmame/roms',
# ('MAME', '/usr/local/bin/xmame.SDL',
'-fullscreen -modenumber 6',
# '/home/media/games/xmame/shots',
None)),
# ('SUPER NINTENDO',
'/home/media/games/snes/roms',
# ('SNES', '/usr/local/bin/zsnes', '-m
-r 3 -k 100 -cs -u', '', None )),
# ('Visual Boy Advance',
'/home/media/games/vba/roms/',
# ('GENERIC',
'/usr/local/vba/VisualBoyAdvance', '', '', [ 'gba' ]
)),
# ('MEGADRIVE',
'/home/media/games/megadrive/roms',
# ('GENESIS',
'/usr/local/bin/generator-svgalib', '', '', '' )) ]
# are used for the Mame arcade emulator.
#
GAMES_NICE = -20 # Priority of the game
process. 0 is unchanged,
# <0 is higher prio, >0
lower prio.
# prio <0 has no effect
unless run as root.
MAME_CACHE = '%s/romlist-%s.pickled' %
(FREEVO_CACHEDIR, os.getuid())
#
======================================================================
# freevo OSD section:
#
======================================================================
#
# XML file for the skin
#
# SKIN_XML_FILE = 'noia'
#
# Start the new skin with a specific layout. Default
is 0, DISPLAY toggles
# between the different layouts. If a menu hasn't that
layout number, 0 will
# be taken
#
# SKIN_START_LAYOUT = 0
#
# Select a way when to switch to text view even if a
image menu is there
# Possible values are
# 1. force text view when all items have the same
image and there are no
# directories
# 2. Ignore the directories, always switch to text
view when all images
# are the same
#
SKIN_FORCE_TEXTVIEW_STYLE = 1
#
# Force text view for the mediamenu (first menu for
video, audio, images and
# games).
#
SKIN_MEDIAMENU_FORCE_TEXTVIEW = 0
# ENABLE_SHUTDOWN_SYS = 0 # Performs a whole system
shutdown at SHUTDOWN!
# For standalone boxes.
# The following fours variables have different
settings in freevo_config.py
# based on the display you use.
# Exec a script on the osd close.
# OSD_SDL_EXEC_AFTER_CLOSE = ""
# Exec a script after startup
# OSD_SDL_EXEC_AFTER_STARTUP = ""
# OVERSCAN_X = 0
# OVERSCAN_Y = 0
#
======================================================================
# Remote control section
#
======================================================================
#
# you need a lircrc file, like this:
#
# begin
# prog = freevo
# button = select
# config = SELECT
# end
#
# Check contrib/lirc for examples and
helpers/freevo2lirc.pl for a converter
# script.
#
LIRCRC = '/etc/freevo/lircrc'
#
# Set the Joy device to 0 to disable, 1 for js0, 2 for
js1, etc...
# Supports as many buttons as your controller has,
# but make sure there is a corresponding entry in
JOY_CMDS.
# You will also need to plugin.activate('joy').
# FYI: new kernels use /dev/input/jsX, but joy.py will
fall back on /dev/jsX
#
# JOY_DEV = 0
# JOY_CMDS = {
# 'up' : 'UP',
# 'down' : 'DOWN',
# 'left' : 'LEFT',
# 'right' : 'RIGHT',
# 'button 1' : 'PLAY',
# 'button 2' : 'PAUSE',
# 'button 3' : 'STOP',
# 'button 4' : 'ENTER',
# }
#
======================================================================
# MPlayer section:
#
======================================================================
MPLAYER_AO_DEV = 'oss:/dev/dsp' # e.g.:
oss,sdl,alsa, see mplayer docs
DVD_LANG_PREF = 'en,se,no' # Order of
preferred languages on DVD.
DVD_SUBTITLE_PREF = '' # Order of
preferred subtitles on DVD.
# Priority of mplayer process. 0 is unchanged, <0 is
higher prio, >0 lower prio.# prio <0 has no effect
unless run as root.
MPLAYER_NICE = -20
MPLAYER_ARGS_DEF = (('-ac mad, -autosync 100
-nolirc -autoq 100 -screenw %s '
+ '-screenh %s -fs') %
(CONF.width, CONF.height))
#
# Mplayer options to use the software scaler. If your
CPU is fast enough, you
# might try a software scaler. You can disable it
later for some larger files
# with the mplayer option '-nosws'. If you have
-framedrop or -hardframedrop
# as mplayer option, the software scaler will also not
be used.
# A good value for this variable is
MPLAYER_SOFTWARE_SCALER = "-subfont-text-scale 5 -fs
-sws 2 -vf scale=%s:-3,"\
"expand=%s:%s " % (
CONF.width, CONF.width, CONF.height )
# older versions of mplayer may need
# MPLAYER_SOFTWARE_SCALER = '-xy %s -sws 2 -vop
scale:-1:-1:-1:100' % CONF.width#
#
# Mplayer args for the different kinds of files.
Possible values are dvd, vcd,
# cd (audio cd), tv, all extentions and default if
nothing matches
#
MPLAYER_ARGS = { 'dvd': '-cache 8192',
'vcd': '-cache 4096',
'cd' : '-cache 500 -cdda speed=1',
'tv' : '-nocache',
'avi': '-cache 5000 -idx',
'rm' : '-cache 5000 -forceidx',
'default': '-cache 5000'
}
# Number of seconds before seek value times out. This
is used when
# seeking to a specified number of minutes into a
movie. If you make
# a mistake or change your mind, the seek value will
timeout after
# this many seconds
#
MPLAYER_SEEK_TIMEOUT = 8
# Autocrop files when playing. This is usefull for
files in 4:3 with black
# bars on a 16:9 tv
#
MPLAYER_AUTOCROP = 0
#
# Try to set correct 'delay' and 'mc' values for
mplayer based on the delay
# from mmpython. This should correct av sync problems
with mplayer for some
# files, but may also break things (I don't know,
that's why it's disabled
# as default). WARNING: when seeking, the playpack is
out of sync for some
# seconds! This only works with mmpython > 0.2
#
MPLAYER_SET_AUDIO_DELAY = 0
#
======================================================================
# Xine section:
#
======================================================================
# You need xine-ui version greater 0.9.21 to use the
all the features
# of the xine plugin
XINE_AO_DEV = 'oss' # alsa or oss
XINE_USE_VCDNAV = 0 # use xine for
VCD nav playback
#
======================================================================
# TV:
#
======================================================================
#
# Watching TV
#
# XXX You must change this to fit your local
conditions!
#
TV_SETTINGS = 'ntsc television us-cable /dev/video0'
VCR_SETTINGS = 'ntsc television us-cable /dev/video0'
#
# NORM: ntsc, pal, secam
# INPUT: television, composite1
# CHANLIST: One of the following:
#
# us-bcast, us-cable, us-cable-hrc, japan-bcast,
japan-cable, europe-west,
# europe-east, italy, newzealand, australia, ireland,
france, china-bcast,
# southafrica, argentina, canada-cable
#
# DEVICE: Usually /dev/video0, but might be
/dev/video1 instead for multiple
# boards.
#
TV_SETTINGS = '%s television %s /dev/video0' %
(CONF.tv, CONF.chanlist)
# This is the size (in MB) of the timeshift buffer,
ie: how long you can
# pause tv for. This is set to a low default because
the default buffer
# location is under FREEVO_CACHEDIR and we don't want
to blow /var or /tmp.
TIMESHIFT_BUFFER_SIZE = 1024
TIMESHIFT_ENCODE_CMD = 'mp1e -m3 -c%s -p%s -r14,100' %
\
(TV_SETTINGS.split()[3],
AUDIO_INPUT_DEVICE)
TIMESHIFT_BUFFER = '/freevo/cache/timeshift.mpeg'
TV_CHANNEL_PROG = './chchan %(channel)s %(norm)s
%(freqtable)s'
TV_DATEFORMAT = '%e-%b' # Day-Month: 11-Jun
TV_TIMEFORMAT = '%H:%M' # Hour-Minute 14:05
#
# XXX Recording is still work in progress. You need to
change
# XXX the entire string below to fit your local
settings.
# XXX Eventually TV norm (PAL/NTSC) etc will be taken
from the
# XXX other flags. VCR_xxx and TV_REC_xxx is not used
yet!
# XXX You also need to have the recording daemon
running, see
# XXX the website docs or the mailing lists if that
fails.
# XXX Example cron script:
# XXX * * * * * /usr/local/freevo/freevo execute
src/tv/record_daemon.py
# if using record_daemon from cron
# REC_SCHEDULE_FILE = '/tmp/freevo_record.lst'
# if using the persitant record_server
RECORD_SCHEDULE = '%s/record_schedule.xml' %
FREEVO_CACHEDIR
RECORD_SERVER_IP = '192.168.1.202'
RECORD_SERVER_PORT = 18001
#
# XXX Please see the mencoder docs for more info about
the settings
# XXX below. Some stuff must be changed (adevice),
others probably
# XXX should be ("Change"), or could be in some cases
("change?")
VCR_CMD = ('/usr/bin/mencoder ' + # Absolute
path to the runtime
'tv:// -tv ' +
'driver=v4l:input=0' + # Input 0 =
Comp. V. in
':norm=NTSC' + # Change
':channel=%(channel)s' + # Filled in
by Freevo
':chanlist=us-cable' + # Change
':width=640:height=480' + # Change if
needed
':outfmt=yv12' + # Prob. ok,
yuy2 might be faster
':device=/dev/video0' + # CHANGE!
':adevice=/dev/dsp' + # CHANGE!
':audiorate=44100' + # 44100 for
better sound
':forceaudio:forcechan=2:' + # Forced
mono for bug in my driver
'buffersize=64' + # 64
Megabyte capture buffer, change? ' -ovc lavc
-lavcopts ' + # Mencoder lavcodec video codec
'vcodec=mpeg4' + # lavcodec
mpeg-4
':vbitrate=1200:' + # Change
lower/higher, bitrate
'keyint=30 ' + # Keyframe
every 10 secs, change?
'-oac mp3lame -lameopts ' + # Use Lame
for MP3 encoding
'br=128:cbr:mode=3 ' + # MP3
const. bitrate, 128 kbit/s
'-ffourcc divx ' + # Force
'divx' ident, better compat.
'-endpos %(seconds)s ' + # only
mencoder uses this so do it here.
'-o %(filename)s.avi ') # Filled in
by Freevo
# XXX Not used yet
# VCR_SETTINGS = '%s composite1 %s /dev/video0' %
(CONF.tv, CONF.chanlist)
# TV capture size for viewing and recording. Max
768x480 for NTSC,
# 768x576 for PAL. Set lower if you have a slow
computer!
#
# For the 'tvtime' TV viewing application, only the
horizontal size is used.
# Set the horizontal size to 400 or 480 if you have a
slow (~500MHz) computer,
# it still looks OK, and the picture will not be as
jerky.
# The vertical size is always either fullscreen or
480/576 (NTSC/PAL)
# for tvtime.
TV_VIEW_SIZE = (640, 480)
# XXX Not used yet
# TV_REC_SIZE = (320, 240) # Default for slower
computers
# Input formats for viewing and recording. The format
affect viewing
# and recording performance. It is specific to your
hardware, so read
# the MPlayer docs and experiment with mplayer to see
which one fits
# your computer best.
TV_VIEW_OUTFMT = 'yuy2' # Better quality, slower on
pure FB/X11
# XXX Not used yet
# TV_REC_OUTFMT = 'yuy2'
#
# Settings for ivtv based cards such as the WinTV
PVR-250/350.
#
# XXX TODO: Add descriptions and valid settings for
each option.
# bitrate in bps
# stream type
# Options are: 0 (mpeg2_ps), 1 (mpeg2_ts), 2 (mpeg1),
3 (mpeg2_pes_av),
# 5 (mpeg2_pes_v), 7 (mpeg2_pes_a), 10
(dvd)
# IVTV_OPTIONS = {
# 'input' : 4,
# 'resolution' : '720x480',
# 'aspect' : 2,
# 'audio_bitmask' : 233,
# 'bframes' : 3,
# 'bitrate_mode' : 1,
# 'bitrate' : 4000000,
# 'bitrate_peak' : 4000000,
# 'dnr_mode' : 0,
# 'dnr_spatial' : 0,
# 'dnr_temporal' : 0,
# 'dnr_type' : 0,
# 'framerate' : 0,
# 'framespergop' : 15,
# 'gop_closure' : 1,
# 'pulldown' : 0,
# 'stream_type' : 10,
# }
#
# FREQUENCY_TABLE - This is only used when Freevo
changes the channel natively.
# This is only the case if you are using V4L2 and any
of the following plugins:
# timeshift, ivtv_record, ivtv_basic_tv.
# For the standard frequancy tables see
src/tv/freq.py. To add your own just
# replace tuner_id in the following example with a
valid tuner id (ie: '5' or
# 'BBC1') and a frequency in KHz. You may have as
many entries as you like,
# anything here will simply override a coresponding
entry in your standard
# frequency table and you can also have entries here
that are not present i
# there.
# FREQUENCY_TABLE = {
# 'tuner_id' : 55250,
# }
#
# TV Channels. This list contains a mapping from the
displayed channel name
# to the actual channel name as used by the TV
watching application.
# The display name must match the names from the XMLTV
guide,
# and the TV channel name must be what the tuner
expects (usually a number).
#
# The TV menu is supposed to be supported by the XMLTV
application for
# up to date listings, but can be used without it to
just display
# the available channels.
#
# This list also determines the order in which the
channels are displayed!
# N.B.: You must delete the XMLTV cache file (e.g.
/var/cache/freevo/TV.xml.pickled)
# if you make changes here and restart!
#
# Format: [('xmltv channel id', 'freevo display name',
'tv channel name'), ...]
#
# If this variable is set to None (default), Freevo
will try to auto-detect
# the channel list based on the xmltv file. This
doesn't work for all
# xmltv grabber, e.g. the German list doesn't contain
station lists. In this
# case Freevo will output the possible list for you to
add them manually.
#
# If auto-detection doesn't work or you want to edit
the list, run
# freevo tv_grab -query.
#
# Setting this variable to [] will deactivate the tv
guide. If you don't have
# a tv card, you may also want to add
plugin.remove('tv') to remove the whole
# tv menu.
#
# All channels listed here will be displayed on the TV
menu, even if they're
# not present in the XMLTV listing.
#
#
# Timedependent channels:
#
# The TV_CHANNELS-list can look like this:
#
# TV_CHANNELS = [('21', 'SVT1', 'E5'),
# ('22', 'SVT2', 'E3'),
# ('26', 'TV3', 'E10'),
# ('27', 'TV4', 'E6'),
# ('10', 'Kanal 5', 'E7'),
# ('60', 'Fox Kids', 'E8',
('1234567','0600','1659')),
# ('16', 'TV6', 'E8',
('1234567','1700','2359'),
#
('1234567','0000','0300')),
# ('14', 'MTV Europe', 'E11') ]
#
# As you can see the list takes optional tuples:
# ( 'DAYS', 'START','END')
#
# 1234567 in days means all days.
# 12345 would mean monday to friday.
#
# It will display "Fox Kids" from 06:00 to 16:59 and
"TV6" from 17:00 to 03:00.
# 03:00 to 06:00 it won't be displayed at all.
#
# Program to grab xmltv listings. To get a grabber,
you need to download
# xmltv. A possible value for users in the USA is
tv_grab_na
# Use the tv_grab helper to grab the listings and
cache them. Start
# 'freevo tv_grab --help' for more informations.
XMLTV_GRABBER = 'tv_grab_na'
# If you want to run tv_sort on your listings add the
path to tv_sort here.
# tv_sort will make sure all your programs have proper
stop times, otherwise
# programs might get cut off at midnight.
XMLTV_SORT = 'tv_sort'
# Number of days the grabber should get
XMLTV_DAYS = 2
#
======================================================================
# Builtin WWW server settings
#
======================================================================
# XXX THIS IS WORK IN PROGRESS!
#
# To activate the build in web server, please activate
the www plugin
# in your local_conf.py:
#
# plugin.activate('www')
#
# Web server port number. 80 is the standard port, but
is often
# taken already by apache, and cannot be used unless
the server
# runs as root. Use port 8080 as the default, change
to 80 if
# needed.
#
WWW_PORT = 80
#
# Username / Password combinations to login to the web
interface.
# These should be overridden in local_conf.py
#
WWW_USERS = { "XXX" : "XXX" }
__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Freevo-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-users