[Mplayer-advusers] Bugs/problems with JPEG output driver

Doug Reynolds dsreyn at ll.mit.edu
Mon Feb 2 18:53:34 CET 2004


I have found a few relatively minor bugs / problems with the JPEG video 
output
driver.  My system and hardware information is included at the bottom of 
this
message.  Three problems are described below.

Doug

----------------------------------------------------------------------------

Problem 1
---------

When using the "-ss [time]" option, the first output JPEG file is always the
first frame in the video.  Subsequent JPEG files are from the correct 
part of
the file.  Example:

   mplayer -vo jpeg -ss 60 -frames 5 vis.001.avi >& mplayer.log

Six JPEG files are created - one for the first frame of the file, then 
five as
requested with the "-frames 5" option.  The output log follows:


MPlayer dev-CVS-040202-00:00-3.2.2 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 2658 MHz (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file 
/home/jalapeno/reynolds/local/etc/mplayer/mplayer.conf: No such file or 
directory
Reading config file /users/reynolds/.mplayer/config
Reading /users/reynolds/.mplayer/codecs.conf: Can't open 
'/users/reynolds/.mplayer/codecs.conf': No such file or directory
Reading /home/jalapeno/reynolds/local/etc/mplayer/codecs.conf: Can't 
open '/home/jalapeno/reynolds/local/etc/mplayer/codecs.conf': No such 
file or directory
Using built-in default codecs.conf.
font: can't open file: /users/reynolds/.mplayer/font/font.desc
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Font /home/jalapeno/reynolds/local/share/mplayer/font/font.desc loaded 
successfully! (206 chars)
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system 
startup scripts.
Using usleep() timing
Can't open input config file /users/reynolds/.mplayer/input.conf: No 
such file or directory
Can't open input config file 
/home/jalapeno/reynolds/local/etc/mplayer/input.conf: No such file or 
directory
Falling back on default (hardcoded) input config
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.

Playing ../fps20_2004-01-14_11-02-32/vis.001.avi.
AVI file format detected.
VIDEO:  [dvsd]  720x480  24bpp  29.970 fps  28771.2 kbps (3512.1 kbyte/s)
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 192000->192000 (1536.0 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
==========================================================================
Opening video decoder: [dshow] DirectShow video codecs
Decoder supports the following YUV formats: YUY2 UYVY
Decoder is capable of YUV output (flags 0x9)
VDec: vo config request - 720 x 480 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 4.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1

SwScaler: BICUBIC scaler, from Packed YUY2 to RGB 24-bit using MMX2
VO: [jpeg] 720x480 => 720x480 RGB 24-bit
Win32 Warning: Unlocking unlocked Critical Section 0x869a1dc!!
Win32 Warning: Unlocking unlocked Critical Section 0x869a1c4!!
Win32 Warning: Unlocking unlocked Critical Section 0x869a1c4!!
Selected video codec: [qdv] vfm:dshow (Sony Digital Video (DV))
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
Win32 Warning: Unlocking unlocked Critical Section 0x869a1dc!!
A:   0.1 V:   0.0 A-V:  0.060 ct:  0.000    1/  1   0%  0%  0.0% 0 0 0%
Win32 Warning: Unlocking unlocked Critical Section 0x869a1dc!!
A:  60.0 V:  60.0 A-V:  0.043 ct:  0.004  1799/1799   0%  0%  0.0% 0 0 0%
Win32 Warning: Unlocking unlocked Critical Section 0x869a1dc!!
A:  60.1 V:  60.0 A-V:  0.053 ct:  0.008  1800/1800   0%  0%  0.0% 0 0 0%
Win32 Warning: Unlocking unlocked Critical Section 0x869a1dc!!
A:  60.1 V:  60.1 A-V:  0.064 ct:  0.011  1801/1801   0%  0%  0.0% 0 0 0%
Win32 Warning: Unlocking unlocked Critical Section 0x869a1dc!!
A:  60.2 V:  60.1 A-V:  0.074 ct:  0.014  1802/1802   0%  0%  0.0% 0 0 0%
Win32 Warning: Unlocking unlocked Critical Section 0x869a1dc!!
A:  60.2 V:  60.1 A-V:  0.085 ct:  0.018  1803/1803   0%  0%  0.0% 0 0 0%

Win32 Warning: Unlocking unlocked Critical Section 0x869a1dc!!
Total Unfree 1146 bytes cnt 13 [(nil),0]

Exiting... (End of file)

----------------------------------------------------------------------------

Problem 2
---------

The output filenames created using the JPEG driver are numbered starting 
at 1.
If the decoding does not start with the first frame, as in the example 
used in
describing Problem 1 above, it would be desireable to use the frame 
number to
construct the file name.  The example above produced these output files:

 > ls *.jpg
00000001.jpg
00000002.jpg
00000003.jpg
00000004.jpg
00000005.jpg
00000006.jpg

The frame numbers are apparently known, and displayed on these lines:

A:   0.1 V:   0.0 A-V:  0.060 ct:  0.000    1/  1   0%  0%  0.0% 0 0 0%
A:  60.0 V:  60.0 A-V:  0.043 ct:  0.004  1799/1799   0%  0%  0.0% 0 0 0%
A:  60.1 V:  60.0 A-V:  0.053 ct:  0.008  1800/1800   0%  0%  0.0% 0 0 0%
A:  60.1 V:  60.1 A-V:  0.064 ct:  0.011  1801/1801   0%  0%  0.0% 0 0 0%
A:  60.2 V:  60.1 A-V:  0.074 ct:  0.014  1802/1802   0%  0%  0.0% 0 0 0%
A:  60.2 V:  60.1 A-V:  0.085 ct:  0.018  1803/1803   0%  0%  0.0% 0 0 0%

So it would be useful if the output files were 00001799.jpg, 
00001800.jpg, etc.
This would allow multiple sections of the same file to be decoded in one 
common
subdirectory, without conflicting filenames.

----------------------------------------------------------------------------

Problem 3
---------

The "-vf tinterlace" filter appears to be incompatible with the JPEG video
output driver.  Output from the following command is shown below:

   mplayer -vo jpeg -vf tinterlace vis.001.avi > & mplayer.log

Either of the following commands will work correctly:

   mplayer -vf tinterlace vis.001.avi
   mplayer -vo jpeg vis.001.avi

This problem seems to be independent of the type of input file.


MPlayer dev-CVS-040202-00:00-3.2.2 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium 4/Xeon/Celeron Foster 2658 MHz (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Reading config file 
/home/jalapeno/reynolds/local/etc/mplayer/mplayer.conf: No such file or 
directory
Reading config file /users/reynolds/.mplayer/config
Reading /users/reynolds/.mplayer/codecs.conf: Can't open 
'/users/reynolds/.mplayer/codecs.conf': No such file or directory
Reading /home/jalapeno/reynolds/local/etc/mplayer/codecs.conf: Can't 
open '/home/jalapeno/reynolds/local/etc/mplayer/codecs.conf': No such 
file or directory
Using built-in default codecs.conf.
font: can't open file: /users/reynolds/.mplayer/font/font.desc
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Font /home/jalapeno/reynolds/local/share/mplayer/font/font.desc loaded 
successfully! (206 chars)
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system 
startup scripts.
Using usleep() timing
Can't open input config file /users/reynolds/.mplayer/input.conf: No 
such file or directory
Can't open input config file 
/home/jalapeno/reynolds/local/etc/mplayer/input.conf: No such file or 
directory
Falling back on default (hardcoded) input config
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.

Playing ../fps20_2004-01-14_11-02-32/vis.001.avi.
AVI file format detected.
VIDEO:  [dvsd]  720x480  24bpp  29.970 fps  28771.2 kbps (3512.1 kbyte/s)
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 192000->192000 (1536.0 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
Opening video filter: [tinterlace]
==========================================================================
Opening video decoder: [dshow] DirectShow video codecs
Decoder supports the following YUV formats: YUY2 UYVY
Decoder is capable of YUV output (flags 0x9)
VDec: vo config request - 720 x 480 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 4.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdv] vfm:ffmpeg (FFmpeg DV decoder)
==========================================================================
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 720 x 480 (preferred csp: Planar 411P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.

FATAL: Could not initialize video filters (-vf) or video output (-vo).


Exiting... (End of file)

----------------------------------------------------------------------------

System Information
------------------

System:
Red Hat 9

Kernel:
Linux jalapeno 2.4.20 #3 SMP Mon Jun 23 10:28:03 EDT 2003 i686 i686 i386 
GNU/Linux

libc version:
-rwxr-xr-x    1 root     root      1561228 Nov 12 19:56 /lib/libc-2.3.2.so
lrwxrwxrwx    1 root     root           13 Nov 18 18:27 /lib/libc.so.6 
-> libc-2.3.2.so

gcc and ld versions:
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
GNU ld version 2.13.90.0.18 20030206

binutils version:
GNU assembler 2.13.90.0.18 20030206


Hardware and drivers
--------------------

CPU:

processor    : 0
vendor_id    : GenuineIntel
cpu family    : 15
model        : 2
model name    : Intel(R) Xeon(TM) CPU 2.66GHz
stepping    : 7
cpu MHz        : 2657.883
cache size    : 512 KB
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 2
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips    : 5308.41

processor    : 1
vendor_id    : GenuineIntel
cpu family    : 15
model        : 2
model name    : Intel(R) Xeon(TM) CPU 2.66GHz
stepping    : 7
cpu MHz        : 2657.883
cache size    : 512 KB
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 2
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips    : 5308.41

processor    : 2
vendor_id    : GenuineIntel
cpu family    : 15
model        : 2
model name    : Intel(R) Xeon(TM) CPU 2.66GHz
stepping    : 7
cpu MHz        : 2657.883
cache size    : 512 KB
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 2
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips    : 5308.41

processor    : 3
vendor_id    : GenuineIntel
cpu family    : 15
model        : 2
model name    : Intel(R) Xeon(TM) CPU 2.66GHz
stepping    : 7
cpu MHz        : 2657.883
cache size    : 512 KB
fdiv_bug    : no
hlt_bug        : no
f00f_bug    : no
coma_bug    : no
fpu        : yes
fpu_exception    : yes
cpuid level    : 2
wp        : yes
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca 
cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm
bogomips    : 5308.41

Video card:

nVidia GeForce 4
NVIDIA XFree86 Driver  1.0-4363  Sat Apr 19 17:49:42 PDT 2003

Sound card:

None





More information about the MPlayer-advusers mailing list