[MPlayer-users] trouble with MPEG-PS video

Dave Wayne dave.wayne at gmail.com
Thu Apr 17 21:31:32 CEST 2008


I've been trying to encode a video in MPEG-PS format but I either get green
lines all across the screen or an unplayable video and could use any advice.

Here is the latest attempt (which results in an unplayable video)

/usr/local/bin/mencoder original-video -ovc lavc -oac copy -o new_video.avi
-v  -lavcopts vcodec=mpeg4
MEncoder dev-SVN-r26348-4.3.1 (C) 2000-2008 MPlayer Team
CPU: AMD Athlon(tm) MP (Family: 6, Model: 6, Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Configuration: --enable-debug=3
init_freetype
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
[file] File size is 52499160 bytes
STREAM: [file] original-video
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
success: format: 0  data: 0x0 - 0x32112d8
LAVF_check: MPEG PS format
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename original-video ext: (null)
Checking for Nullsoft Streaming Video
Checking for MOV
Checking for VIVO
header block 1 size: 0
AVS: avs_check_file - attempting to open file original-video
AVS: File is too big, aborting...
Checking for PVA
Checking for MPEG-TS...
TRIED UP TO POSITION 66143, FOUND 47, packet_size= 0, SEEMS A TS? 0
Checking for LMLM4 Stream Format
Invalid packet in LMLM4 stream: ch=0 size=1140851704
LMLM4 Stream Format not found
system stream synced at 0xD (13)!
==> Found video stream: 0
==> Found audio stream: 0
MPEG-PS file format detected.
Searching for sequence header... OK!
VIDEO:  MPEG2  480x576  (aspect 2)  25.000 fps  2500.0 kbps (312.5 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:480x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: using 3DNow!Ex optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer II, 44100 Hz 224 kbit Stereo, BPF: 731
Channels: 2, copyright: No, original: No, CRC: Yes, emphasis: 0
AUDIO: 44100 Hz, 2 ch, s16le, 224.0 kbit/15.87% (ratio: 28000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[file] File size is 0 bytes
STREAM: [file] new_video.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 480 x 576 (preferred colorspace: Mpeg PES)
Trying filter chain: expand lavc
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 expand lavc
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[libaf] Adding filter format
[format] Changing sample format from little-endian 16-bit signed int to
big-endian 8-bit signed int
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[format] Changing sample format from little-endian 16-bit signed int to
big-endian 8-bit signed int
audiocodec: framecopy (format=50 chans=2 rate=44100 bits=16 B/s=28000
sample-1)
[ffmpeg] aspect_ratio: 1.333333
VDec: vo config request - 480 x 576 (preferred colorspace: Planar YV12)
Trying filter chain: expand lavc
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO Config (480x576->768x576,flags=0,'MPlayer',0x32315659)
REQ: flags=0x401  req=0x0
videocodec: libavcodec (480x576 fourcc=34504d46 [FMP4])
get_path('subfont.ttf') -> '/root/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
get_path('subfont.ttf') -> '/root/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
*** [lavc] Allocating mp_image_t, 480x576x12bpp YUV planar, 414720 bytes
*** [expand] Direct Rendering mp_image_t, 480x576x12bpp YUV planar, 414720
bytes
*** [lavc] Allocating mp_image_t, 480x576x12bpp YUV planar, 414720 bytesms
1/13 D/B/S 0/1/0
*** [expand] Direct Rendering mp_image_t, 480x576x12bpp YUV planar, 414720
bytes
Muxer frame buffer sending 2 frame(s) to the muxer.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing
vprp header.
*** [lavc] Allocating mp_image_t, 480x576x12bpp YUV planar, 414720 bytesms
1/14 D/B/S 0/1/0
*** [expand] Direct Rendering mp_image_t, 480x576x12bpp YUV planar, 414720
bytes
Pos:   1.4s     35f ( 0%)   0fps Trem:   1min  12mb  A-V:0.080 [142:224]
A/Vms 1/10 D/B/S 0/1/0
Skipping frame!
CPos:   6.3s    159f ( 1%)  97fps Trem:   1min  13mb  A-V:0.037 [70:224]
A/Vms 1/9 D/B/S 0/2/1



More information about the MPlayer-users mailing list