[MPlayer-users] FIFO problems...

SIEGERSTEIN siegerstein at pochta.ru
Mon Oct 29 04:35:16 CET 2007


Hi! I have a problem with fifo & mplayer.

My problem consists in that to do video capture and preview it in realtime 
mode.

# Capure with transcode:
$ transcode -x v4l2,v4l2 -g 640x480 -i /dev/video0 -p /dev/dsp -y ffmpeg -F 
ffv1 -N 0x1 -o video_out.avi -m audio_out.pcm
$ mplayer -tv input=3:driver=v4l2 tv:// -vo x11 -vf pp=lb

and take an error:

v4l2: ioctl streamon failed: Device or resource busy
v4l2: 0 frames successfully processed, 0 frames dropped.

As I cannot get simultaneous access to /dev/video, so I has decided to make it 
through fifo:

$ mkfifo video.fifo
$ transcode -x v4l2,v4l2 -g 640x480 -i /dev/video0 -p /dev/dsp -y ffmpeg -F 
ffv1 -N 0x1 -o video.fifo -m audio_out.pcm
$ mplayer video.fifo -vo x11 -vf pp=lb
MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 3, Stepping: 4)
MMX2 supported but disabled
CPUflags:  MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Скомпилировано для определения типа процессора во время выполнения.
mplayer: could not connect to socket
mplayer: No such file or directory
Неудачное открытие поддержки LIRC.
Вы не сможете использовать Ваш пульт управления.

Воспроизведение video.fifo.
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!

...

Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed
Cannot seek backward in linear streams!
Seek failed

...

Выходим... (Конец файла)
$

May be I doing something wrong?

MPlayer 1.0rc2-4.1.2
OS: GNU/Linux Gentoo

Best regards,
SIEGERSTEIN


More information about the MPlayer-users mailing list