Hallo,

It seems that your version of mplayer was not complied with the
That is the important line: Error opening/initializing the selected video_out (-vo) device.

Please do a test: > mplayer -vo help
You should find a line like:
        yuv4mpeg        yuv4mpeg output for mjpegtools

If not, it would mean to me that mplayer was compiled without yuv4mpeg support. My version of mplayer: MPlayer 1.4-7

If you did compile it on you own please check when running t configure that you find in the enabled driver yuv4mpeg.
 Enabled optional drivers:
    Input: ftp pvr tv-v4l2 tv cddb cdda dvdread vcd dvb networking
Codecs: libvpx xvid ffmpeg(internal) real xanim faac libmpeg2 mpg123 speex
    Audio output: alsa pulse oss v4l2 sdl mpegpes(dvb)
Video output: v4l2 matrixview opengl sdl pnm jpeg mpegpes(dvb) fbdev xvidix cvidix x11 xover yuv4mpeg md5sum tga
---END---

If you use the precompiled version from your distribution I would recommend that you download the source and compile it on your own.


Janos G Komaromi wrote:
Hello Bernie, thanks. Here is what happened:

janos@andraslinux ~/tmp $ cat stream.yuv | yuvscaler -O SVCD | mpeg2enc
-f 4 -o video_svcd.m2v & mplayer -nosound -noframedrop -vo yuv4mpeg
ezcap0001.avi

[1] 21535 INFO: [yuvscaler] yuvscaler 2.2.1 11-Dec-2007
    INFO: [yuvscaler] (C) 2001-2004 Xavier Biquard <xbiqu...@free.fr>,
yuvscaler -h for help, or man yuvscaler INFO: [mpeg2enc] SETTING
EXTENDED MMX for MOTION! INFO: [mpeg2enc] SETTING SSE and MMX for
TRANSFORM! INFO: [mpeg2enc] SETTING EXTENDED MMX for PREDICTION!
MPlayer 1.4-11.3.0 (C) 2000-2019 MPlayer Team

Playing ezcap0001.avi.
libavformat version 58.76.100 (external)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  800x592  24bpp  30.000 fps  896.5 kbps (109.4 kbyte/s)
Error opening/initializing the selected video_out (-vo) device.
No stream found.


Exiting... (End of file)
janos@andraslinux ~/tmp $ ls
ezcap0001.avi  stream.yuv

I don't understand. if I issue command

janos@andraslinux ~/tmp $ mplayer ezcap0001.avi

MPlayer 1.4-11.3.0 (C) 2000-2019 MPlayer Team

Playing ezcap0001.avi.
libavformat version 58.76.100 (external)
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  800x592  24bpp  30.000 fps  896.5 kbps (109.4 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 58.134.100 (external)
[mpeg4 @ 0x7ff6ba3a8f60]Requested frame threading with a custom
get_buffer2() implementation which is not marked as thread safe. This
is not supported anymore, make your callback thread-safe. Selected
video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Load subtitles in ./
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8000->176400)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I,
II, III)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 800x592 => 800x592 Planar YV12
Movie-Aspect is 1.35:1 - prescaling to correct movie aspect.
VO: [xv] 800x592 => 800x592 Planar YV12
A:  16.2 V:  16.2 A-V: -0.001 ct:  0.012 486/486 27%  0%  0.9% 17 0

Exiting... (Quit)
janos@andraslinux ~/tmp $

the file starts to play almost imediately in a new window, perfectly
with sound and picture. So the video-out (-vo) device works
automatically with mplayer.

Janos
P.S. I'm sending this message from my other email address, a mailserver
on my fitlet machine where I try glav, etc.

On Thu, 06 Oct 2022 08:06:19 -0400
"Janos G. Komaromi" <ja...@jankom.net> wrote:

-------- Forwarded Message --------
From: Bernhard Praschinger <bernh...@griesbach.at>
To: Janos G. Komaromi <ja...@jankom.net>, MJPEG-tools user list
<mjpeg-users@lists.sourceforge.net>
Subject: Re: [Mjpeg-users] glav error opening .avi file
Date: Thu, 6 Oct 2022 06:27:00 +0200
Mailer: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Firefox/68.0 SeaMonkey/2.53.13

Hallo,

mkfifo creates a file where one file/process reads it's content, and
another process puts data into. You need is when program data can't
pipe
direct to each other. So you create the named pipe. You start
afterwards
the process that reads the data and as last step you put the data into
it.

The commands for the video would than be in one terminal window:
  > mkfifo stream.yuv
  > cat stream.yuv │ yuvscaler -O SVCD │ mpeg2enc -f 4 -o
video_svcd.m2v &
  > mplayer -nosound -noframedrop -vo yuv4mpeg ezcap0001.avi

Don't forget to add the & in the 2nd line to start the process in the
background. You don't need to start mplayer in the background.

For audio:
  > mplayer -vo null -ao pcm:file=audio.wav ezcap0001.avi
  > cat audio.wav │ mp2enc -v 2 -V -o sound.mp2

Afterwards mutiplex the files together with:
mplex -f 4 sound.mp2 video_svcd.m2v -o SVCD.mpg

You have then a encoded MPEG file with ist suitable for SVCD. You
need to change the commands for you need.
What do you want with the AVI file ?

If you encounter errors please add the output to the mail.

Janos G. Komaromi wrote:
Hi Bernie, thanks for your answer. Sorry, I have not been doing
video edits lately, so I need a little more help. Lat time I used
Cinelerra for video edit on my old FC-3 desktop.
auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: bernh...@griesbach.at
www: http://www.lysator.liu.se/~gz/bernhard


_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to