Re: Question on V4L sound in CVS

Bart Kerver <[email protected]>
Newsgroups gmane.comp.video.videolan.vls.devel
Message-ID <[email protected]>
Eric,

>>It seems to be that the sound is sampled at a lower (say 32Khz) and is
>>being played back on a different samplerate (say 44 Khz). Therefore the
>>pitch of the sound is higher and there are hickups. I rememeber that the
>>BT878 had some problem with 44Khz. I configured the VLC client to change
>>the playback speed at 32Khz, and the sound seemed to improve.
> 
> 
>  I didn't have such issues up to now. You can modify the samplerate in VLS 
> with the latest CVS thanks to Philippe Jouguet's patch, could you check if it 
> can actually fix your problem ?

Thanks for the new feature/patches, all has been patched, but it doesn't 
work (yet). If you like I can start a multicast so you can see and 
hear/see it yourself too?

Source in use:
CVS VLS - this morging (21/03/03)
CVS ffmpeg - wednesday (19/03/03)

hardware in use:
Haupage WinTV PCI FM BT878 (using cable-input)

---------
vls: configure --enable-vls --with-ffmpeg=/usr/local/src/ffmpeg... 
--enable-debug

configfile attached

VLC version: 0.5.2
-1- tested VLC with audio settings configured just like VLS (tested with 
16KHz upto 48Khz)

-2- with VLS: i tried mp2 mp3 and ogg and all the samplerates.
---------

The only (strange?) message VLS gives is:
"sample rate 32000 not supported" - though 44100 has been configured...

I have looked into the source, this might have to do with ffmpeg (could 
that be?)

Regards,
Bart


-- 
Bart Kerver

SURFnet bv - dep. Innovation Management
phone : +31 (0)30 2 305 373
fax   : +31 (0)30 2 305 329
web   : http://www.surfnet.nl/en/
vls.cfg (text/plain, 3.1 KB)
# vls configuration file (Example)

# Application wide settings
BEGIN "Vls"
  LogFile       = "vls.log"             # log file
  ScreenLog     = "enable"              # log to the console
  SystemLog     = "disable"             # log to the systemlog
END 

# Security informations :
BEGIN "Groups"
  monitor       = "help|browse|logout"
  master        = "help|browse|start|logout|program|input|channel|show"
END

# The section "Users" describes each user
BEGIN "Users"
  monitor       = "3BcKWoiQn0vi6:monitor"       # password is 'monitor'
  bozo          = "JKg2TpPerilnw:master"        # password is 'bozo'
END

BEGIN "Interfaces"
  Telnet	= "telnet"                # Port to use for that purpose
END


# Telnet Administration
BEGIN "Telnet"
  LocalPort     = "9999"                # Port to use for that purpose
  Use = "true"
END

# Streams sources declaration
BEGIN "Inputs"
  local1       = "local"               # Local input example
  tuner	= "v4l"			# Video For Linux example (composite)
END

BEGIN "Input"
  ProgramCount = "1"
END


# Video For Linux (V4L) configuration
BEGIN "tuner"
Device        = "/dev/video0"     # Video4linux device (default is /dev/video)
Channel       = "0"              # Channel Source: Webcam often 0
                                 # For TV Card, may be Tuner(0), Composite(1),
                                 # Svideo(2)
# Frequency     = "7668"           # Frequency (Mhz) * 16
Norm          = "0"              # PAL=0, NTSC=1, SECAM=2
Size          = "VGA"               # Size possibilities 

                                 # - empty string : default size
                                 # - width x height
                                 # - subQCIF(128x96), QSIF(160x120),
                                 #   QCIF(176x144), SIF(320x240),
                                 #   CIF(352x288), VGA (640x480)
DeInterlace   = "0"
Compression   = "mpeg1"	         # mpeg1 or mpeg4 [experimental]
Bitrate       = "1500"            # Bitrate (approx.) in kbps
Quality       = "1.0"            # 1.0 (good) to 31.0 (bad)

AudioDevice   = "/dev/dsp1"       # Sound device (try /dev/dsp<X>
AudioCompression = "mp2"         # mp2, mp3 or ogg
AudioBitrate  = "128"             # Audio bitrate in kbps
AudioFreq     = "44100"          # 16000, 22050, 24000, 32000, 44100, 48000
AudioChannel  = "2"              # 1=mono, 2=stereo
END

# Channel (outputs) declaration
BEGIN "Channels"
  localhost     = "network"
  kers		= "network"
  multicast     = "network"
END

# Channels configuration
BEGIN "localhost"         # The client is on the same host as the server
  DstHost = "127.0.0.1"
  DstPort = "1234"
END

# Channels configuration
BEGIN "kers"         
  DstHost = "192.87.109.22"
  DstPort = "1234"
END

BEGIN "multicast"                        # multicast example
  Type    = "multicast"
  TTL     = "16"                          # Time To Live
  DstHost = "233.4.79.6"                # multicast address
  DstPort = "1234"                       # destination port
END

# Commands automatically lanched on Startup
BEGIN "LaunchOnStartUp"
  command1 = "start video multicast tuner"
END
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.