Re: glav error opening .avi file

Bernhard Praschinger <[email protected]> Sat, 19 Nov 2022 06:57:03 +0100
Newsgroups gmane.comp.video.mjpeg.user
Message-ID <[email protected]>
cd dowHallo,

Janos G. Komaromi wrote:
> Sorry, I'm back again. I still would like to do my video editing with
> glav and sound. Consequently I did a lot of research and Gentoo Forum
> message exchanges about alsa and OSS. I tried to resolve the issue
> without turning to this mailing list community. Here is the latest
> situation, and now I'm asking for comments, suggestions.
> 
> After enabling /dev/dsp and making sure that alsa oss emulation is
> configured correctly - quote:
> 
> janos@andraslinux ~/save/tmp/videoDigitizing $ glav xcoded.avi
> ++: **ERROR: [lavplay] Error initializing Audio: Audio task died.
> Reason: Error: Soundcard fragment size unexpected
> ++: lavtools version 2.2.1
I get that error too.

> janos@andraslinux ~/save/tmp/videoDigitizing $ aoss glav xcoded.avi
> ++: **ERROR: [lavplay] Error initializing Audio: Audio task died.
> Reason: Error: Invalid argument - mapping audio buffer (consider using
> read/write instead of mmap)
> ++: lavtools version 2.2.1
> Unquote.
With the same options the same error message. It get's more descriptive 
if you add -v 2
Did you add -U so it uses the the Read/write mode instead of the mmap 
mode ? This helps me here to lavplay/glav does not crash.

Does your distribution use still ALSA ? My opensuse uses PulseAudio, 
using the padsp - PulseAudio OSS Wrapper instead of aoss, made lavplay 
play back the videos audio and sound. The command looked like this:
padsp lavplay file.avi -U

> Apparently something is wrong either with "fragment size". I could
> probably configure fragment size if I knew what lavplay expects; the
> loaded modules are:
> 
> snd_pcm_oss
> snd_mixer_oss
> or something is wrong with in the code of lavplay.
Could be, but I just enjoy a old Music Video from Marusha :-)

auf hoffentlich bald,

Berni the Chaos of Woodquarter

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