[MPlayer-users] problems with most avifile codecs(seg faults)
wil
wsa3 at xs4all.nl
Thu Oct 23 10:32:37 CEST 2003
Hi,
I'm not able to get most of the the avifile codecs to work without seg
faulting.
(see 2 verbose examples below)
asv1,asv2,ljpeg and ffv1 work...the rest is a nono.
As for the non lavc stuff, xvid works, divx4 doesn't.
This might very well be me screwing things up or avifile stuff broken
or whatever but i thought this might be the best place to ask
Sorry for the long post.
Debian SID.
packages(including de non off. packages from http://marillat.free.fr/):
ii libxvidcore-de 0.9.2-0.3 MPEG-4 Video encoder -- development files
ii libxvidcore-do 0.9.2-0.0 MPEG-4 Video encoder - documentaton files
ii libxvidcore2 0.9.2-0.3 MPEG-4 Video encoder
ii libxvidencore0 0.9.1-0.2 MPEG-4 Video encoder
ii avifile-divx-p 0.7.38.2003071 Divx4Linux video encoding plugin
ii libdivxdecore0 5.0.1-1 DivX MPEG-4 Codec - decoder library
ii libdivxencore0 5.0.1-1 DivX MPEG-4 Codec - encoder library
ii avifile-xvid-p 0.7.38.2003071 XviD video encoding plugin
ii avifile-mad-pl 0.7.38.2003071 MAD - MPEG audio plugin
ii avifile-mjpeg- 0.7.38.2003071 MJPEG video plugin
ii avifile-player 0.7.38.2003071 Video player for AVI/ASF/WMF files
ii avifile-utils 0.7.38.2003071 Utility programs using the avifile library
ii avifile-vorbis 0.7.38.2003071 Vorbis audio plugin
ii avifile-win32- 0.7.38.2003071 Win32 audio/video plugin
ii avifile-xvid-p 0.7.38.2003071 XviD video encoding plugin
ii libavifile-0.7 0.7.38.2003071 Shared libraries for AVI read/writing
ii mencoder-686 1.0-pre2-0.0 MPlayer's Movie Encoder
From the divx site i got divx4linux-std-20030428.tar and ran
the default install script.
EXAMPLE 1:
PC:~# mencoder tv:// -tv
driver=v4l:width=400:height=300:buffersize=96:channel=E5 - \
ovc lavc -lavcopts vcodec=msmpeg4v2 -nosound -v -o n3.avi
MEncoder 1.0pre2-3.3.2 (C) 2000-2003 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin 1373 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
MMX2 supported but disabled
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX SSE
Reading /root/.mplayer/mencoder_codecs.conf: Can't open
'/root/.mplayer/mencoder_codecs.conf': No such file or directory
Reading /etc/mplayer/mencoder_codecs.conf: 61 audio & 157 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /root/.mplayer/mencoder: No such file or directory
init_freetype
Using MMX Optimized OnScreenDisplay
STREAM: [null] tv://
STREAM: Description: Null stream
STREAM: Author: Albeu
STREAM: Comment:
success: format: 9 data: 0x0 - 0x0
TV detected! ;-)
Selected driver: v4l
name: Video 4 Linux input
author: Alex Beregszaszi
comment: under development
Selected device: BT878(Pinnacle PCTV Studio/Ra)
Capabilites: capture tuner overlay clipping frameram scales
Device type: 235
Supported sizes: 48x32 => 924x576
Inputs: 3
0: Television: tuner audio tv camera (tuner:1, norm:pal)
1: Composite1: audio camera (tuner:0, norm:pal)
2: S-Video: audio camera (tuner:0, norm:pal)
mbuf: size=8519680, frames=4
Audio devices: 1
Video capture card reports the audio setup as follows:
0: TV: muted=no vol=0 bass=0 treble=0 balance=0 mode=mono chan=1
ioctl dsp getfmt: 0
Supported formats: 10
ioctl dsp setfmt: 0
ioctl dsp stereo: 0 (req: 0)
ioctl dsp speed: 0
ioctl dsp trigger: 0
trigger: 1
ioctl dsp trigger: 0
ioctl dsp getblocksize: 0
blocksize: 16384
Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 meas.
Using input 'Television'
Selected norm: pal
Tuner (Television) range: 0 -> 4294967295
Requested width: 400
Requested height: 300
Selected channel list: europe-east (including 133 channels)
Requested channel: E5
Selected channel: E5 (freq: 175.250)
requested frequency: 175.250
Current frequency: 2804 (175.250)
Current frequency: 2804 (175.250)
==> Found video stream: 0
Output format: Planar YV12
Picture values:
Depth: 12, Palette: yuv420p (Format: Planar YV12)
Brightness: 32768, Hue: 32768, Colour: 32512, Contrast: 27648
Using a ring buffer for maximum 559 frames, 95 MB total size.
Enabling tv audio. Requested setup is:
id=0 vol=60000 bass=0 treble=0 balance=0 mode=mono chan=1
[V] filefmt:9 fourcc:0x32315659 size:400x300 fps:25.00 ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 400 x 300 (preferred csp: Planar YV12)
Trying filter chain: expand lavc
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (400x300->400x300,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401 req=0x0
videocodec: libavcodec (400x300 fourcc=3234504d [MP42])
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
Writing AVI header...
Forcing audio preload to 0, max pts correction to 0
*** [expand] Exporting mp_image_t, 400x300x12bpp YUV planar, 180000 bytes
*** [lavc] Allocating mp_image_t, 400x300x12bpp YUV planar, 180000 bytes
get_path('subfont.ttf') -> '/root/.mplayer/subfont.ttf'
Unicode font: 1185 glyphs.
video capture thread: frame delta ~ 11.1 fps
Segmentation fault
EAMPLE2:
PC:/home/willem# mencoder tv:// -tv driver=v4l:width=640:height=480 -oac pcm \
-ovc lavc -lavcopts vcodec=mpeg4 -v -o sigh.avi
MEncoder 1.0pre2-3.3.2 (C) 2000-2003 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin 1346 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 32 bytes
MMX2 supported but disabled
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX SSE
Reading /root/.mplayer/mencoder_codecs.conf: Can't open
'/root/.mplayer/mencoder_codecs.conf': No such file or directory
Reading /etc/mplayer/mencoder_codecs.conf: 61 audio & 157 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /root/.mplayer/mencoder: No such file or directory
init_freetype
Using MMX Optimized OnScreenDisplay
STREAM: [null] tv://
STREAM: Description: Null stream
STREAM: Author: Albeu
STREAM: Comment:
success: format: 9 data: 0x0 - 0x0
TV detected! ;-)
Selected driver: v4l
name: Video 4 Linux input
author: Alex Beregszaszi
comment: under development
Selected device: BT878(Pinnacle PCTV Studio/Ra)
Capabilites: capture tuner overlay clipping frameram scales
Device type: 235
Supported sizes: 48x32 => 924x576
Inputs: 3
0: Television: tuner audio tv camera (tuner:1, norm:pal)
1: Composite1: audio camera (tuner:0, norm:pal)
2: S-Video: audio camera (tuner:0, norm:pal)
mbuf: size=8519680, frames=4
Audio devices: 1
Video capture card reports the audio setup as follows:
0: TV: muted=no vol=0 bass=0 treble=0 balance=0 mode=mono chan=1
ioctl dsp getfmt: 0
Supported formats: 10
ioctl dsp setfmt: 0
ioctl dsp stereo: 0 (req: 0)
ioctl dsp speed: 0
ioctl dsp trigger: 0
trigger: 1
ioctl dsp trigger: 0
ioctl dsp getblocksize: 0
blocksize: 16384
Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 meas.
Using input 'Television'
Selected norm: pal
Tuner (Television) range: 0 -> 4294967295
Requested width: 640
Requested height: 480
Selected channel list: europe-east (including 133 channels)
Current frequency: 0 (0.000)
==> Found video stream: 0
Output format: Planar YV12
Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 meas.
==> Found audio stream: 0
TV audio: 1 channels, 16 bits, 44100 Hz
Picture values:
Depth: 12, Palette: yuv420p (Format: Planar YV12)
Brightness: 32767, Hue: 32767, Colour: 32767, Contrast: 24576
Audio capture - buffer 256 blocks of 16384 bytes, skew average from 16 meas.
Using a ring buffer for maximum 429 frames, 188 MB total size.
Enabling tv audio. Requested setup is:
id=0 vol=60000 bass=0 treble=0 balance=0 mode=mono chan=1
[V] filefmt:9 fourcc:0x32315659 size:640x480 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer
AUDIO: 44100 Hz, 1 ch, 16 bit (0x10), ratio: 88200->88200 (705.6 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
==========================================================================
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 640 x 480 (preferred csp: Planar YV12)
Trying filter chain: expand lavc
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (640x480->640x480,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401 req=0x0
videocodec: libavcodec (640x480 fourcc=58564944 [DIVX])
Selected video codec: [rawyv12] vfm:raw (RAW YV12)
==========================================================================
CBR PCM audio selected
Building audio filter chain for 44100Hz/1ch/16bit -> 44100Hz/2ch/16bit...
[libaf] Adding filter dummy
[dummy] Was reinitialized, rate=44100Hz, nch = 1, format = 0x00000001 and
bps = 2
[libaf] Adding filter channels
[channels] Changing number of channels to 2
[dummy] Was reinitialized, rate=44100Hz, nch = 1, format = 0x00000001 and
bps = 2
Writing AVI header...
Forcing audio preload to 0, max pts correction to 0
*** [expand] Exporting mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
*** [lavc] Allocating mp_image_t, 640x480x12bpp YUV planar, 460800 bytes
get_path('subfont.ttf') -> '/root/.mplayer/subfont.ttf'
Unicode font: 1185 glyphs.
Segmentation fault
PC:/home/willem#
video capture thread: frame delta ~ 4.4 fps
video capture thread: frame delta ~ 4.8 fps
video capture thread: frame delta ~ 4.5 fps
video capture thread: frame delta ~ 4.6 fps
video capture thread: frame delta ~ 5.6 fps
(here it stops and i have to hit enter once to get back to prompt)
PC:/home/willem#
More information about the MPlayer-users
mailing list