[MPlayer-users] Y4m
Oliver Seitz
info at vtnd.de
Wed Jun 23 19:02:35 CEST 2010
>>> I am trying to create a y4m file out of mencoder.
>> Why don't you use mplayer -vo yuv4mpeg ?
> Unfortunately it seems you cannot pipe that output (without mkfifo).
Strange. It seems you cannot stream it even through a named pipe... But
why..?
Output of the decoding mplayer:
$>mplayer Video.flv -nosound -vo yuv4mpeg:file=fifo -benchmark -v
MPlayer SVN-r31457-4.4.3 (C) 2000-2010 MPlayer Team
CPU vendor name: GenuineIntel max cpuid level: 10
CPU: Intel(R) Atom(TM) CPU 330 @ 1.60GHz (Family: 6, Model: 28,
Stepping: 2)
extended cpuid-level: 8
extended cache-info: 33587264
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
Tests of OS support for SSE passed.
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 SSSE3 CMOV
get_path('codecs.conf') -> '/home/kiste/.mplayer/codecs.conf'
Reading /home/kiste/.mplayer/codecs.conf: Can't open
'/home/kiste/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration:
CommandLine: 'Videos/ARD/MeinFreundAusFaro.flv' '-nosound' '-vo'
'yuv4mpeg:file=fifo' '-benchmark' '-v'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/kiste/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/kiste/.mplayer/input.conf'
Can't open input config file /home/kiste/.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('MeinFreundAusFaro.flv.conf') ->
'/home/kiste/.mplayer/MeinFreundAusFaro.flv.conf'
Playing Videos/ARD/MeinFreundAusFaro.flv.
get_path('sub/') -> '/home/kiste/.mplayer/sub/'
[file] File size is 1448921088 bytes
STREAM: [file] Videos/ARD/MeinFreundAusFaro.flv
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
LAVF_check: FLV format
libavformat file format detected.
[aac @ 0xa73bf60]Transition from an ONLY_LONG or LONG_STOP to an
EIGHT_SHORT sequence detected. If you heard an audible artifact, please
submit the sample to the FFmpeg developers.
Last message repeated 1 times
[flv @ 0xa73a770]Estimating duration from bitrate, this may be inaccurate
==> Found video stream: 0
======= VIDEO Format ======
biSize 108
biWidth 960
biHeight 544
biPlanes 0
biBitCount 0
biCompression 875967048='H264'
biSizeImage 0
Unknown extra header dump: [1] [4d] [0] [20] [ff] [e1] [0] [35] [67] [4d]
[40] [20] [96] [52] [81] [e0] [22] [df] [f8] [4] [40] [4] [3b] [44] [0]
[0] [3] [0] [4] [0] [0] [3] [0] [cb] [82] [80] [1] [e8] [48] [0] [4] [93]
[e7] [f1] [8e] [30] [50] [0] [3d] [9] [0] [0] [92] [7c] [fe] [31] [c3]
[b4] [30] [64] [b0] [1] [0] [4] [68] [e9] [23] [52]
===========================
[lavf] stream 0: video (h264), -vid 0
==> Found audio stream: 1
======= WAVE Format =======
Format Tag: 20557 (0x504D)
Channels: 2
Samplerate: 48000
avg byte/sec: 0
Block align: 1
bits/sample: 16
cbSize: 4
Unknown extra header dump: [11] [90] [0] [0]
==========================================================================
[lavf] stream 1: audio (aac), -aid 0
LAVF: 1 audio and 1 video streams found
LAVF: build 3425280
VIDEO: [H264] 960x544 0bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:960x544 fps:25.000 ftime:=0.0400
Clip info:
duration: 5272
moovPosition: 28
width: 960
height: 544
videocodecid: avc1
audiocodecid: mp4a
avcprofile: 77
avclevel: 32
aacaot: 2
videoframerate: 25
audiosamplerate: 48000
audiochannels: 2
get_path('sub/') -> '/home/kiste/.mplayer/sub/'
Using (default) progressive frame
mode.==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
[ffmpeg] aspect_ratio: 1.777778
VDec: vo config request - 960 x 544 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (960x544->968x544,flags=0,'MPlayer',0x32315659)
VO: [yuv4mpeg] 960x544 => 968x544 Planar YV12
VO: Description: yuv4mpeg output for mjpegtools
VO: Author: Robert Kesterson <robertk at robertk.com>
*** [vo] Exporting mp_image_t, 960x544x12bpp YUV planar, 783360 bytes
Unicode font: 5025 glyphs.
Unicode font: 5025 glyphs.
MPlayer interrupted by signal 13 in module: flip_page
MPlayer interrupted by signal 13 in module: flip_page
Output of the displaying mplayer:
$>mplayer fifo -demuxer y4m -vc rawyv12 -v
MPlayer SVN-r31457-4.4.3 (C) 2000-2010 MPlayer Team
CPU vendor name: GenuineIntel max cpuid level: 10
CPU: Intel(R) Atom(TM) CPU 330 @ 1.60GHz (Family: 6, Model: 28,
Stepping: 2)
extended cpuid-level: 8
extended cache-info: 33587264
Detected cache-line size is 64 bytes
Testing OS support for SSE... yes.
Tests of OS support for SSE passed.
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 SSSE3 CMOV
get_path('codecs.conf') -> '/home/kiste/.mplayer/codecs.conf'
Reading /home/kiste/.mplayer/codecs.conf: Can't open
'/home/kiste/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Configuration:
CommandLine: 'fifo' '-demuxer' 'y4m' '-vc' 'rawyv12' '-v'
init_freetype
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
get_path('fonts') -> '/home/kiste/.mplayer/fonts'
Using nanosleep() timing
get_path('input.conf') -> '/home/kiste/.mplayer/input.conf'
Can't open input config file /home/kiste/.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('fifo.conf') -> '/home/kiste/.mplayer/fifo.conf'
Playing fifo.
get_path('sub/') -> '/home/kiste/.mplayer/sub/'
[file] File size is -1 bytes
STREAM: [file] fifo
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Checking for YUV4MPEG2
YUV4MPEG2 file format detected.
==> Found video stream: 0
YUV4MPEG2 Video stream 0 size: display: 960x544, codec: 960x544
VIDEO: [YV12] 960x544 12bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:12 fourcc:0x32315659 size:960x544 fps:25.000 ftime:=0.0400
get_path('sub/') -> '/home/kiste/.mplayer/sub/'
error reading frame bad header magic
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1440x900 with depth 24 and 32 bpp (":0.0" => local
display)
[x11] Detected wm supports layers.
[x11] Using workaround for Metacity bugs.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports FULLSCREEN state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
[VO_XV] Using Xv Adapter #0 (Intel(R) Textured Video)
[xv common] Drawing no colorkey.
[xv common] Maximum source image dimensions: 2048x2048
==========================================================================
Forced video codec: rawyv12
Opening video decoder: [raw] RAW Uncompressed Video
VDec: vo config request - 960 x 544 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO Config (960x544->968x544,flags=0,'MPlayer',0x32315659)
VO: [xv] 960x544 => 968x544 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: 0x30323449 (I420) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x434d5658 (XVMC) planar
using Xvideo port 86 for hw scaling
Selected video codec: [rawyv12] vfm: raw (RAW YV12)
==========================================================================
Audio: no sound
Freeing 0 unused audio chunks.
Starting playback...
error reading frame bad header magic
ds_fill_buffer: EOF reached (stream: video)
error reading frame bad header magic
ds_fill_buffer: EOF reached (stream: video)
error reading frame bad header magic
ds_fill_buffer: EOF reached (stream: video)
error reading frame bad header magic
ds_fill_buffer: EOF reached (stream: video)
error reading frame bad header magic
ds_fill_buffer: EOF reached (stream: video)
error reading frame bad header magic
ds_fill_buffer: EOF reached (stream: video)
error reading frame bad header magic
ds_fill_buffer: EOF reached (stream: video)
error reading frame bad header magic
ds_fill_buffer: EOF reached (stream: video)
error reading frame bad header magic
ds_fill_buffer: EOF reached (stream: video)
EOF code: 1 0 ??% ??% ??,?% 0 0
Uninit video: raw
vo: uninit ...
Exiting... (End of file)
Greets,
Kiste
More information about the MPlayer-users
mailing list