[MPlayer-users] encoding thinks "nothing to do" ?

Meino Christian Cramer Meino.Cramer at gmx.de
Thu Apr 20 04:57:31 CEST 2006


Hi,

 From the manual (file:
 http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-enc-libavcodec.html,
 Chapter "13.3.4. Encoding setting examples" I copied the according
 parameter string into a script:

 The parameter string can be found under "Very high quality" in the
 first text box. It is:

  vcodec=mpeg4:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2	

 The resulting script was:

    #!/bin/zsh
    mencoder $2 -ovc lavc -lavcopts vcodec=mpeg4:psnr:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2 -oac copy -vf $1 -o $3
    
 With: $1: cropping values
       $2: input video
       $3: outpüut video

 I started that script to encode a video.

 The output was:

   Script started on Thu Apr 20 04:49:03 2006
   MEncoder dev-CVS-060420-03:55-3.4.5 (C) 2000-2006 MPlayer Team
   CPU: Advanced Micro Devices Athlon 64 Newcastle; Athlon 64 X2 Manchester (Family: 15, Stepping: 1)
   CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
   Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
   
   
   WARNING: OUTPUT FILE FORMAT IS _AVI_. see -of help.
   success: format: 0  data: 0x0 - 0x7c9e4800
   MPEG-PS file format detected.
   VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  15000.0 kbps (1875.0 kbyte/s)
   [V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
   ==========================================================================
   Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
   AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
   Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
   ==========================================================================
   Opening video filter: [expand osd=1]
   Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
   Opening video filter: [crop w=704 h=416 x=8 y=80]
   Crop: 704 x 416, 8 ; 80
   ==========================================================================
   Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
   VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
   Could not find matching colorspace - retrying with -vf scale...
   Opening video filter: [scale]
   The selected video_out device is incompatible with this codec.
   Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
   VDecoder init failed :(
   Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
   Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
   ==========================================================================
   audiocodec: framecopy (format=50 chans=2 rate=48000 bits=16 B/s=24000 sample-1)
   VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
   VDec: using Planar YV12 as output csp (no 0)
   Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
   videocodec: libavcodec (704x416 fourcc=34504d46 [FMP4])
   [VE_LAVC] High quality encoding selected (non real time)!
   Pos:   0.0s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
   1 duplicate frame(s)!
   Writing header...
   ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
   Setting audio delay to 0.040s
   Writing header...
   ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
   Setting audio delay to 0.040s
   Pos:   0.0s      2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.004 [0:0]New_Face failed. Maybe the font path is wrong.
   Please supply the text font file (~/.mplayer/subfont.ttf).
   subtitle font: load_sub_face failed.
   
   1 duplicate frame(s)!
   Writing header...
   ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
   Setting audio delay to 0.040s
   Pos:   0.1s      3f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.008 [0:0]Pos:   0.1s      4f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.012 [0:0][mpeg4 @ 0x876d1e8]Error, Invalid timestamp=2, last=2
   Writing header...
   ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
   Setting audio delay to 0.040s
   Pos:   0.1s      5f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.016 [0:0]MEncoder dev-CVS-060420-03:55-3.4.5 (C) 2000-2006 MPlayer Team
   CPU: Advanced Micro Devices Athlon 64 Newcastle; Athlon 64 X2 Manchester (Family: 15, Stepping: 1)
   CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
   Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
   
   
   WARNING: OUTPUT FILE FORMAT IS _AVI_. see -of help.
   success: format: 0  data: 0x0 - 0x7c9e4800
   MPEG-PS file format detected.
   VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  15000.0 kbps (1875.0 kbyte/s)
   [V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
   ==========================================================================
   Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
   AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
   Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
   ==========================================================================
   Opening video filter: [expand osd=1]
   Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
   Opening video filter: [crop w=704 h=416 x=8 y=80]
   Crop: 704 x 416, 8 ; 80
   ==========================================================================
   Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
   VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
   Could not find matching colorspace - retrying with -vf scale...
   Opening video filter: [scale]
   The selected video_out device is incompatible with this codec.
   Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
   VDecoder init failed :(
   Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
   Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
   ==========================================================================
   audiocodec: framecopy (format=50 chans=2 rate=48000 bits=16 B/s=24000 sample-1)
   VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
   VDec: using Planar YV12 as output csp (no 0)
   Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
   videocodec: libavcodec (704x416 fourcc=34504d46 [FMP4])
   [VE_LAVC] High quality encoding selected (non real time)!
   Pos:   0.0s      1f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
   1 duplicate frame(s)!
   Writing header...
   ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
   Setting audio delay to 0.040s
   Writing header...
   ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
   Setting audio delay to 0.040s
   Pos:   0.0s      2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.004 [0:0]New_Face failed. Maybe the font path is wrong.
   Please supply the text font file (~/.mplayer/subfont.ttf).
   subtitle font: load_sub_face failed.
   
   1 duplicate frame(s)!
   Writing header...
   ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
   Setting audio delay to 0.040s
   Pos:   0.1s      3f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.008 [0:0]Pos:   0.1s      4f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.012 [0:0][mpeg4 @ 0x876d1e8]Error, Invalid timestamp=2, last=2
   Writing header...
   ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
   Setting audio delay to 0.040s
   Pos:   0.1s      5f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.016 
   
   Script done on Thu Apr 20 04:49:12 2006
    
 The encoding process stops immediately after starting the script with
 a 28kb long result (input was about 2Gb)

 I cannot figure out, what was going wrong here, since the output does
 not differ significantly (at least for me ... ;) from those done when
 encoding with the same video input works quite well (but I wanted 
 picture quality to be better...)


 Thank you very much for any helpful reply in advance !
 Kind regards,
 mcc




More information about the MPlayer-users mailing list