All pastes #140274 Raw Edit

Miscellany

public text v1 · immutable
#140274 ·published 2006-08-20 11:08 UTC
rendered paste body
[~/Desktop]$ CROP=$(mplayer -dvd-device /dev/hda -alang it dvd:// -vo null -ac null -vf cropdetect -ss 600 -frames 250 -fps 100 2>/dev/null |grep '[CROP]' |tail -n 1 |cut -d '(' -f 2 | cut -d ')' -f 1)
[~/Desktop]$ echo $CROP
-vf crop=720:416:0:80
[~/Desktop]$ vi /usr/local/bin/2dvd2ipod
[~/Desktop]$ mencoder -dvd-device /dev/hda -alang it dvd:// $CROP,scale=320:-10 -ovc lavc -lavcopts vcodec=ffvhuff -oac copy -o /tmp/dvd1.$$.avi
MEncoder dev-SVN-r19463-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ (Family: 15, Model: 35, Stepping: 2)
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

This codecs.conf is too old and incompatible with this MPlayer release! at line 6
There are 8 titles on this DVD.
There are 20 chapters in this DVD title.
There are 1 angles in this DVD title.
audio stream: 0 format: ac3 (5.1) language: en aid: 128.
audio stream: 1 format: ac3 (5.1) language: it aid: 129.
audio stream: 2 format: ac3 (stereo) language: en aid: 130.
number of audio channels on disk: 3.
subtitle ( sid ): 0 language: en
subtitle ( sid ): 1 language: it
subtitle ( sid ): 2 language: it
subtitle ( sid ): 3 language: en
subtitle ( sid ): 4 language: it
number of subtitles on disk: 5
success: format: 0  data: 0x805000 - 0xe5db8800
Selected DVD audio channel: 129 language: it
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  7500.0 kbps (937.5 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 5.1 (3f+2r+lfe)  48000 Hz  384.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=320 h=-10]
Opening video filter: [crop w=720 h=416 x=0 y=80]
Crop: 720 x 416, 0 ; 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=2000 chans=2 rate=48000 bits=16 B/s=48000 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.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 10 -> 12
SwScaler: reducing / aligning filtersize 10 -> 12
SwScaler: reducing / aligning filtersize 14 -> 13
SwScaler: reducing / aligning filtersize 14 -> 13

SwScaler: BICUBIC scaler, from 0x32315659 (21VY) to 0x32315659 (21VY) using MMX2
SwScaler: using n-tap MMX scaler for horizontal luminance scaling
SwScaler: using n-tap MMX scaler for horizontal chrominance scaling
SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like)
SwScaler: 720x416 -> 320x128
videocodec: libavcodec (320x128 fourcc=48564646 [FFVH])
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.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
New_Face failed. Maybe the font path is wrong.n   0mb  A-V:0.004 [0:0]
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

1 duplicate frame(s)!
Pos:   0.9s     22f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.084 [0:384]
Skipping frame!
Pos:   2.7s     68f ( 0%) 48.06fps Trem:   0min   0mb  A-V:0.081 [6319:384]
Skipping frame!
Pos:  10.1s    255f ( 0%) 56.44fps Trem:  30min 3704mb  A-V:0.007 [7196:384]]
Flushing video frames
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream: 7196.908 kbit/s  (899613 B/s)  size: 9068104 bytes  10.080 secs  255 frames

Audio stream:  384.000 kbit/s  (48000 B/s)  size: 528000 bytes  11.000 secs
[~/Desktop]$ vi /usr/local/bin/2dvd2ipod
[~/Desktop]$ mencoder /tmp/dvd1.$$.avi -dvd-device /dev/hda -alang it dvd:// $CROP,scale=320:-10 -ovc lavc -lavcopts vcodec=ffvhuff -oac copy -o /tmp/dvd.$$.avi
MEncoder dev-SVN-r19463-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ (Family: 15, Model: 35, Stepping: 2)
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

This codecs.conf is too old and incompatible with this MPlayer release! at line 6
success: format: 0  data: 0x0 - 0x92968c
AVI file format detected.
VIDEO:  [FFVH]  320x128  12bpp  25.000 fps  7196.9 kbps (878.5 kbyte/s)
[V] filefmt:3  fourcc:0x48564646  size:320x128  fps:25.00  ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffhuffyuv] vfm: ffmpeg (FFmpeg HuffYUV)
==========================================================================
audiocodec: framecopy (format=2000 chans=2 rate=48000 bits=16 B/s=48000 sample-1)
VDec: vo config request - 320 x 128 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 2)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (320x128 fourcc=48564646 [FFVH])
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
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.
Pos:   0.0s      2f ( 0%)  0.00fps Trem:   0min   9mb  A-V:0.000 [0:0]
1 duplicate frame(s)!
libdvdread: Could not open /dev/dvd with libdvdcss.mb  A-V:-0.000 [7225:384]
libdvdread: Can't open /dev/dvd for reading
Couldn't open DVD device: /dev/dvd
[file] No filename
Failed to open dvd://.
Cannot open file/device.

Exiting...
[~/Desktop]$