[MPlayer-users] documentation mencoder section multiple jpg / png / tga

Helmut Rathgen helmut.rathgen at web.de
Wed Nov 30 14:56:44 CET 2005


Hello Guillaume,

thank you for your answer! I understand you are the one who is taking 
care about the docs?! Really nice - they are great! I want to try to 
give you more information.

>problem. Helmut, what version of MPlayer are you using? Are you using
>CVS or a release? Try with latest CVS if you did not try already.
>
I am using 1.0pre7try2.

I started from a set of .tif files. Converted them to .jpg.

*|$> for i in *.tif; do convert -depth 8 -colorspace rgb $i `basename $i .tif`.jpg; done|
*
*Now I verify the result. I do
*
*$> mplayer -v mf://*.jpg -mf fps=25*
MPlayer 1.0pre7try2-3.3.5 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
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


CommandLine: '-v' 'mf://*.jpg' '-mf' 'fps=25'
init_freetype
get_path('font/font.desc') -> '/home/helmut/.mplayer/font/font.desc'
font: can't open file: /home/helmut/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: Permission denied (it should be readable by the user.)
Using nanosleep() timing
get_path('input.conf') -> '/home/helmut/.mplayer/input.conf'
Can't open input config file /home/helmut/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('*.jpg.conf') -> '/home/helmut/.mplayer/*.jpg.conf'
Playing mf://*.jpg.
STREAM: [null] mf://*.jpg
STREAM: Description: Null stream
STREAM: Author: Albeu
STREAM: Comment: 
[demuxer] mf support.
[demux_mf] file type was not set! trying 'type=jpg'...
[mf] search expr: *.jpg
[mf] number of files: 9 (36)
==> Found video stream: 0
VIDEO:  [IJPG]  0x0  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16  fourcc:0x47504A49  size:0x0  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/helmut/.mplayer/sub/'
get_path('default.sub') -> '/home/helmut/.mplayer/default.sub'
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports layers.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours LAYER FULLSCREEN ABOVE BELOW X atoms
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x0101fe).
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffmjpeg] vfm:ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
[ffmpeg] aspect_ratio: nan
VDec: vo config request - 680 x 512 (preferred csp: Unknown)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
The selected video_out device is incompatible with this codec.
mp_image: Unknown out_fmt: 0x0
*** [vo] Exporting mp_image_t, 680x512x0bpp YUV packed, 0 bytes

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

uninit video: ffmpeg
vo: uninit ...

Exiting... (End of file)

*...the movies doesn't play.
*
*I do*

*$> mplayer -v -vc ijpg mf://*.jpg -mf fps=25
*MPlayer 1.0pre7try2-3.3.5 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster (Family: 8, Stepping: 9)
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


CommandLine: '-v' '-vc' 'ijpg' 'mf://*.jpg' '-mf' 'fps=25'
init_freetype
get_path('font/font.desc') -> '/home/helmut/.mplayer/font/font.desc'
font: can't open file: /home/helmut/.mplayer/font/font.desc
Font /usr/local/share/mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Failed to open /dev/rtc: Permission denied (it should be readable by the user.)
Using nanosleep() timing
get_path('input.conf') -> '/home/helmut/.mplayer/input.conf'
Can't open input config file /home/helmut/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config
get_path('*.jpg.conf') -> '/home/helmut/.mplayer/*.jpg.conf'
Playing mf://*.jpg.
STREAM: [null] mf://*.jpg
STREAM: Description: Null stream
STREAM: Author: Albeu
STREAM: Comment: 
[demuxer] mf support.
[demux_mf] file type was not set! trying 'type=jpg'...
[mf] search expr: *.jpg
[mf] number of files: 9 (36)
==> Found video stream: 0
VIDEO:  [IJPG]  0x0  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16  fourcc:0x47504A49  size:0x0  fps:25.00  ftime:=0.0400
get_path('sub/') -> '/home/helmut/.mplayer/sub/'
get_path('default.sub') -> '/home/helmut/.mplayer/default.sub'
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports layers.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours LAYER FULLSCREEN ABOVE BELOW X atoms
[xv common] Drawing colorkey manually.
[xv common] Using colorkey from Xv (0x0101fe).
==========================================================================
Forced video codec: ijpg
Opening video decoder: [ijpg] JPEG Images decoder
Selected video codec: [ijpg] vfm:ijpg (Independent JPEG Group's codec)
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
VDec: vo config request - 680 x 512 (preferred csp: RGB 24-bit)
Trying filter chain: vo
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
SwScale params: -1 x -1 (-1=no scaling)
Trying filter chain: scale vo
VDec: using RGB 24-bit as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (680x512->680x512,flags=0,'MPlayer',0x52474218)
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8

SwScaler: BICUBIC scaler, from RGB 24-bit to Planar YV12 using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using 1-tap MMX "scaler" for vertical scaling (YV12 like)
SwScaler: 680x512 -> 680x512
REQ: flags=0x437  req=0x0  
VO: [xv] 680x512 => 680x512 Planar YV12 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 61 for hw scaling
[xv] dx: 0 dy: 0 dw: 680 dh: 546
*** [scale] Allocating mp_image_t, 680x512x24bpp RGB packed, 1044480 bytes
*** [vo] Allocating mp_image_t, 688x512x12bpp YUV planar, 528384 bytes
[xv] dx: 0 dy: 0 dw: 680 dh: 546
ds_fill_buffer: EOF reached (stream: video)                                                                                                                                                                         
EOF code: 1    9 ??% ??% ??,?% 0 0                                                                                                                                                                                  

uninit video: ijpg
vo: uninit ...

Exiting... (End of file)*

and mplayer is playing perfectly fine!

I understand without -vc ijpg mplayer chooses lavc's ffmpeg to play the "mf://*.jpg" source. However ijpg is the better choice.

Now as for the mencoder, I understand it works "in two steps". Correct me if I'm wrong. First mplayer generates a stream of the source and second this stream is fed to mencoder which generates the desired output file. So I can use the -vc option with mencoder to tell it how it should read the source, like

$> mencoder mf://*.jpg -mf fps=25 -vc ijpg -ovc lavc -lavcopts vcodec=mpeg4 -oac copy -o output.avi

So I suggest it should be very useful for a newbee (like me) to understand from the examples in the mencoder mjpg / mpng / mtga Docs section that this is possible (and maybe sometimes necessary).


hope this is of use for others:-)! Thank you once again.

All the Best,

Helmut
*

>
>I will do it when I have some time, and once I can be certain that
>there is no other way to go but to do as you suggested.
>
>Guillaume
>--
>MPlayer's doc is offline. Find some fresh one here:
>http://tuxrip.free.fr//MPlayer-DOCS-HTML/en/
>http://tuxrip.free.fr//MPlayer-DOCS-HTML/fr/
>
>_______________________________________________
>MPlayer-users mailing list
>MPlayer-users at mplayerhq.hu
>http://mplayerhq.hu/mailman/listinfo/mplayer-users
>  
>




More information about the MPlayer-users mailing list