Re: quel encodage?
Am Freitag, 28. Dezember 2007 10:22 schrieb François Boisson:
> Le Fri, 28 Dec 2007 10:49:00 +0000
>
> Klaus Becker <colonius@free.fr> a écrit:
> > j'ai suivi ton conseil, mais le résultat est le même qu'avant :
> >
> > - fichier do'rigine : 1,3 GO
> > - fichier encodé : 143 MO.
J'ai recommencé avec le même fichier "glace.mpg" de 1,3 GO :
"Encode.sh glace Bson 128 Bvid 900 Passe 1". glace.avi pèse toujours 143 MO
Ensuite :
______________
$ Encode.sh glace Bson 128 Bvid 900 Passe 1
mkdir: ne peut créer le répertoire `glace.tmp': Le fichier existe.
MEncoder dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3700+ (Family: 15, Model: 39, 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
success: format: 0 data: 0x0 - 0x52332ed0
TS file format detected.
VIDEO MPEG2(pid=69) AUDIO MPA(pid=68) NO SUBS (yet)! PROGRAM N. 1
VIDEO: MPEG2 544x576 (aspect 2) 25.000 fps 15000.0 kbps (1875.0 kbyte/s)
[V] filefmt:29 fourcc:0x10000002 size:544x576 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: [scale w=640 h=496]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 544 x 576 (preferred colorspace: Mpeg PES)
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: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Forcing output FourCC to 58564944 [DIVX].
audiocodec: framecopy (format=50 chans=2 rate=48000 bits=16 B/s=24000
sample-1)
VDec: vo config request - 544 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.
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 6 -> 5
SwScaler: reducing / aligning filtersize 6 -> 5
[swscaler @ 0x897a80]SwScaler: BICUBIC scaler, from yuv420p to yuv420p using
MMX2
[swscaler @ 0x897a80]SwScaler: using 4-tap MMX scaler for horizontal luminance
scaling
[swscaler @ 0x897a80]SwScaler: using 4-tap MMX scaler for horizontal
chrominance scaling
[swscaler @ 0x897a80]SwScaler: using n-tap MMX scaler for vertical scaling
(YV12 like)
[swscaler @ 0x897a80]SwScaler: 544x576 -> 640x496
videocodec: libavcodec (640x496 fourcc=58564944 [DIVX])
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.
...
Flushing video frames.
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp
header.
Video stream: 137.762 kbit/s (17220 B/s) size: 61791072 bytes 3588.280
secs 89707 frames
Audio stream: 192.000 kbit/s (24000 B/s) size: 86120234 bytes 3588.343
secs
MEncoder dev-SVN-rUNKNOWN-4.1.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3700+ (Family: 15, Model: 39, 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
success: format: 0 data: 0x0 - 0x52332ed0
TS file format detected.
VIDEO MPEG2(pid=69) AUDIO MPA(pid=68) NO SUBS (yet)! PROGRAM N. 1
VIDEO: MPEG2 544x576 (aspect 2) 25.000 fps 15000.0 kbps (1875.0 kbyte/s)
[V] filefmt:29 fourcc:0x10000002 size:544x576 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: [scale w=640 h=496]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 544 x 576 (preferred colorspace: Mpeg PES)
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: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
Forcing output FourCC to 58564944 [DIVX].
audiocodec: framecopy (format=50 chans=2 rate=48000 bits=16 B/s=24000
sample-1)
VDec: vo config request - 544 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.
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 5 -> 4
SwScaler: reducing / aligning filtersize 6 -> 5
SwScaler: reducing / aligning filtersize 6 -> 5
[swscaler @ 0x897a80]SwScaler: BICUBIC scaler, from yuv420p to yuv420p using
MMX2
[swscaler @ 0x897a80]SwScaler: using 4-tap MMX scaler for horizontal luminance
scaling
[swscaler @ 0x897a80]SwScaler: using 4-tap MMX scaler for horizontal
chrominance scaling
[swscaler @ 0x897a80]SwScaler: using n-tap MMX scaler for vertical scaling
(YV12 like)
[swscaler @ 0x897a80]SwScaler: 544x576 -> 640x496
videocodec: libavcodec (640x496 fourcc=58564944 [DIVX])
[VE_LAVC] High quality encoding selected (non-realtime)!
[mpeg4 @ 0x2ba93e4e3550][lavc rc] Error: bitrate too low for this video with
these parameters.
Could not open codec.
FATAL: Cannot initialize video driver.
Exiting...
klaus@koeln:/home/daten/multimedia/video/film$ mplayer -v glace..avi | grep
VIDEO
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
File not found: 'glace..avi'
Failed to open glace..avi.
klaus@koeln:/home/daten/multimedia/video/film$ mplayer -v glace.avi | grep VI
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
s3fb: can't open /dev/fb0: No such file or directory
[VO_XV] It seems there is no Xvideo support for your video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.html#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11.
======= VIDEO Format ======
VIDEO: [DIVX] 640x496 24bpp 25.000 fps 137.8 kbps (16.8 kbyte/s)
______________
Donc : 0137.8 kbps et des messages d'erreur que tu sais mieux interpréter que
moi.
> >
> > Sur quel fichier dois-je faire "grep VIDEO"?
>
> Tu fais un
>
> $ mplayer -v fichier.avi | grep VIDEO
>
> mais c'est vraiment étonnant. Essayes les deux commandes suivantes
> (tonfilm.avi = ton film et le résultat est dans resultat.avi).
>
> $ mencoder tonfilm.avi -nosound -ovc lavc -vf scale=640:496 -lavcopts
> vcodec=mpeg4:vpass=1:vbitrate=900:turbo -ffourcc DIVX -o resultat.avi
J'ai essayé avec glace.avi, obtenu par "$ Encode.sh glace Bson 128 Bvid 900
Passe 1". "resultat.avi" a presque la même taille que "glace.mpg".
> $mencoder tonfilm.avi -oac mp3lame -lameopts vbr=3:br=64:q=0 -ovc lavc -vf
> scale=640:496 -lavcopts vcodec=mpeg4:vpass=2:vbitrate=900:vhq:v4mv:trell
> -ffourcc DIVX -o resultat.avi
Là, "glace.avi" pèse 172 MO
Puis :
$ mplayer -v glace.avi | grep VIDEO
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
s3fb: can't open /dev/fb0: No such file or directory
[VO_XV] It seems there is no Xvideo support for your video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.html#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11.
======= VIDEO Format ======
VIDEO: [DIVX] 640x496 24bpp 25.000 fps 137.8 kbps (16.8 kbyte/s)
C'est un peu compliqué, j'espère que tu t'y retrouves.
>
> Bonnes fêtes
> François Boisson
de même
Klaus
Reply to: