Re: lavplay does not work

Bernhard Praschinger <[email protected]>
Newsgroups gmane.comp.video.mjpeg.user
Message-ID <[email protected]>
Hallo

Janos G. Komaromi wrote:
> On 12/05/2016 01:02 PM, Bernhard Praschinger wrote:
>> You can use the -U/--use-write Option and see if that helps.
> Does not help, all I hear is a pop in the beginning, then nothing. See
> my command and output below:
> [apu@andraslinux ~]$ glav -p S -U +n -v 2 record.avi
> ++:    INFO: [lavplay] Norm set to NTSC
> ++:    INFO: [lavplay] Initialising SDL
> ++:    INFO: [lavplay] SDL YUV overlay: hardware
> ++:    INFO: [lavplay] Using read(2)/write(2) system call for
> capture/playpack
> ++:    INFO: [lavplay] Output norm: NTSC
> ++:    INFO: [lavplay] Output dimensions: 320x240
> ++: lavtools version 1.9.0
> ++: ++ WARN: [lavplay] Unable to set negative priority for audio thread.
> ++: ++ WARN: [lavplay] Pthread Real-time scheduling for audio thread
> could not be enabled.
> ++:
That output looks ok. I guess that adding the +n should not make any 
difference.

>> Did you check the mixer settings when you play back the file ?
> cat anytextfile.txt > /dev/dsp produces loud noise in speakers
Ok.

>> It could be that environment Variable  LAV_AUDIO_DEV is set wrong.
>>
>> Can you run lavinfo filename.avi and post at least the audio related
>> info, it should look like that:
>> has_audio=1
>> audio_bps=4
>> audio_chans=2
>> audio_bits=16
>> audio_rate=44100
>> ---ENDE---
> See below::
> [apu@andraslinux ~]$ lavinfo record.avi
> video_frames=554
> video_width=320
> video_height=240
> video_inter=p
> video_norm=NTSC
> video_fps=29.970629
> video_sar_width=1
> video_sar_height=1
> max_frame_size=19220
> chroma=422
> has_audio=1
> audio_bps=1
> audio_chans=1
> audio_bits=8
> audio_rate=44100
> num_video_files=1
What was the setting when you did record the audio signal ? I would 
guess that it was mono and 8Bit Samples and 44.1kHz samplerate. I 
haven't seen such a setup long time ago. It can be that lavplay/glav 
have problems (=bug) playing such a audio stream back. Can you try 
recording in Stereo, 16Bit and 44.1kHz ? And see if that makes any 
difference ?
You can split the audio and video with lavtrans, and add a WAV file to 
the video with lavaddwav.

> also:
> My modules, excerpted from lsmod:
> ...
> snd_intel8x0           19052  0
> snd_ac97_codec         76031  1 snd_intel8x0
> ac97_bus                 618  1 snd_ac97_codec
> snd_pcm_oss            27105  0
> snd_mixer_oss           9866  1 snd_pcm_oss
> snd_pcm                40209  3 snd_intel8x0,snd_ac97_codec,snd_pcm_oss
> snd_timer              11572  1 snd_pcm
> snd                    29851  6
> snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
> soundcore               3105  1 snd
> snd_page_alloc          4565  2 snd_intel8x0,snd_pcm
> ...
That lookes good.

> Thanks for your answer; I did receive the email correctly and responding
> here to it.
> Hope we can get to the bottom of this.


auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: [email protected]
www: http://www.lysator.liu.se/~gz/bernhard

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
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.