LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1253|回复: 4

Mplayer播放HD-RIP片子,说影像太大了,有啥办法么?

[复制链接]
发表于 2007-4-28 18:12:04 | 显示全部楼层 |阅读模式
RIP文件是MKV格式的,播放信息如下:
  1. bigcat@bigcat:~/foreign_home/downloading/07.04.26.Tears.of.the.sun.2003.BDRe.x264.AC3.DualAudio-CSCXK@Silu$ mplayer Tears.of.the.sun.2003.BDRe.x264.AC3.DualAudio-CSCXK@Silu-Sample.mkv
  2. MPlayer 2:0.99+1.0pre8-0ubuntu8 (C) 2000-2006 MPlayer Team
  3. CPU: Intel Celeron 2/Pentium III Coppermine,Geyserville (Family: 6, Model: 8, Stepping: 10)
  4. CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 0
  5. Compiled with runtime CPU detection.
  6. Opening joystick device /dev/input/js0
  7. Can't open joystick device /dev/input/js0: No such file or directory
  8. Can't init input joystick
  9. Setting up LIRC support...
  10. mplayer: could not connect to socket
  11. mplayer: No such file or directory
  12. Failed to open LIRC support.
  13. You will not be able to use your remote control.
  14. Playing Tears.of.the.sun.2003.BDRe.x264.AC3.DualAudio-CSCXK@Silu-Sample.mkv.
  15. Cache fill:  0.00% (0 bytes)   
  16. [mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
  17. [mkv] Track ID 2: audio (A_AC3), -aid 0, -alang eng
  18. [mkv] Track ID 3: audio (A_AC3), -aid 1, -alang chi
  19. [mkv] Will play video track 1
  20. [mkv] Will play audio track 2
  21. Matroska file format detected.
  22. VIDEO:  [avc1]  1280x800  24bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
  23. ==========================================================================
  24. Opening audio decoder: [liba52] AC3 decoding with liba52
  25. Using SSE optimized IMDCT transform
  26. AC3: 5.1 (3f+2r+lfe)  48000 Hz  448.0 kbit/s
  27. Using MMX optimized resampler
  28. AUDIO: 48000 Hz, 2 ch, s16le, 448.0 kbit/29.17% (ratio: 56000->192000)
  29. Selected audio codec: [a52] afm: liba52 (AC3-liba52)
  30. ==========================================================================
  31. xscreensaver_disable: Could not find XScreenSaver window.
  32. ==========================================================================
  33. Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
  34. Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
  35. ==========================================================================
  36. alsa-init: using device default
  37. alsa: 48000 Hz/2 channels/4 bpf/32768 bytes buffer/Signed 16 bit Little Endian
  38. AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
  39. Starting playback...
  40. VDec: vo config request - 1280 x 800 (preferred colorspace: Planar YV12)
  41. VDec: using Planar YV12 as output csp (no 0)
  42. Movie-Aspect is 2.40:1 - prescaling to correct movie aspect.
  43. VO: [xv] 1280x800 => 1920x800 Planar YV12
  44. [xv] Source image dimensions are too high: 1280x800 (maximum is 1024x1024)
  45. FATAL: Cannot initialize video driver.
  46. FATAL: Could not initialize video filters (-vf) or video output (-vo).
  47. alsa-uninit: pcm closed
  48. Exiting... (End of file)
复制代码

尝试了-zoom、-x 1024 -y 480等参数,结果还是一样。用-vo x11倒是可以出影像,可是太慢了。兄弟们有办法治它么?
发表于 2007-4-29 21:16:26 | 显示全部楼层
mplayer -vo xv -vf scale=x:y
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-4-30 10:14:11 | 显示全部楼层
能行了,多谢兄弟的回复,感谢感谢!!!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-5-2 14:06:42 | 显示全部楼层
有个问题:使用-vf scale参数是可以播放,但是CPU占用也大幅度上升,起码多了20%左右。还有其它代价低些的办法没有?
回复 支持 反对

使用道具 举报

发表于 2007-5-2 17:09:13 | 显示全部楼层
缩放必然会使cpu占用率增大。另外,你是怎么知道cpu占用率大了20%的?
建议看看mplayer文档中的这些参数的说明:
       

−sws <software scaler type> (also see −vf scale and −zoom)

       

Specify the software scaler algorithm to be used with the −zoom option. This affects video output drivers which lack hardware acceleration, e.g. x11.

Available types are:

       

0
       
       

fast bilinear
       

       

1
       
       

bilinear
       

       

2
       
       

bicubic (good quality) (default)
       

       

3
       
       

experimental
       

       

4
       
       

nearest neighbor (bad quality)
       

       

5
       
       

area
       

       

6
       
       

luma bicubic / chroma bilinear
       

       

7
       
       

gauss
       

       

8
       
       

sincR
       

       

9
       
       

lanczos
       

       

10
       
       

natural bicubic spline
       

       

NOTE: Some −sws options are tunable. The description of the scale video filter has further information.
scale[=w:h[:ilaced[:chr_drop[:par[:par2[:presize[:noup[:arnd]]]]]]]]

       

Scales the image with the software scaler (slow) and performs a YUV<−>RGB colorspace conversion (also see −sws).

       

<w>,<h>

       

scaled width/height (default: original width/height)
NOTE: If −zoom is used, and underlying filters (including libvo) are incapable of scaling, it defaults to d_width/d_height!

       

0: scaled d_width/d_height
-1: original width/height
-2: Calculate w/h using the other dimension and the prescaled aspect ratio.
-3: Calculate w/h using the other dimension and the original aspect ratio.
-(n+8): Like -n above, but rounding the dimension to the closest multiple of 16.

       

<ilaced>

       

Toggle interlaced scaling.

       

0: off (default)
1: on

       

<chr_drop>

       

chroma skipping

       

0: Use all available input lines for chroma.
1: Use only every 2. input line for chroma.
2: Use only every 4. input line for chroma.
3: Use only every 8. input line for chroma.

       

<par>[:<par2>] (also see −sws)

       

Set some scaling parameters depending on the type of scaler selected with −sws.

       

−sws 2 (bicubic): B (blurring) and C (ringing)
0.00:0.60 default
0.00:0.75 VirtualDub’s "precise bicubic"
0.00:0.50 Catmull-Rom spline
0.33:0.33 Mitchell-Netravali spline
1.00:0.00 cubic B-spline
−sws 7 (gaussian): sharpness (0 (soft) − 100 (sharp))
−sws 9 (lanczos): filter length (1−10)

       

<presize>

       

Scale to preset sizes.

       

qntsc: 352x240 (NTSC quarter screen)
qpal: 352x288 (PAL quarter screen)
ntsc: 720x480 (standard NTSC)
pal: 720x576 (standard PAL)
sntsc: 640x480 (square pixel NTSC)
spal: 768x576 (square pixel PAL)

       

<noup>

       

Disallow upscaling past the original dimensions.

       

0: Allow upscaling (default).
1: Disallow upscaling if one dimension exceeds its original value.
2: Disallow upscaling if both dimensions exceed their original values.

       

<arnd>

       

Accurate rounding for the vertical scaler, which may be faster or slower than the default rounding.

       

0: Disable accurate rounding (default).
1: Enable accurate rounding.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表