Bonjour,
j'ai continué mes petites recherches et ai eu des premiers résultats.
Primo, j'ai découvert qu'il existe un logiciel console Mencoder. Deuxièment qu'il marche avec mplayer.
Brèf il faut faire attention à prendre toutes les bonnes librairies cf ce très bon site
[
www.trustonme.net]
Puis après il faut bien paramétrer mplayer par rapport aux codecs sinon il met un message du style (File not found: 'frameno.avi'). Et enfin on lance la ligne de code en console suivante
[vendee@localhost VERGER-RICHARD-Videos]$ mencoder -oac mp3lame -ovc xvid -xvidencopts bitrate=200 -vop scale=352:288 Cap0001.mpg -o tset3.avi
MEncoder 1.0pre7try2-3.3.1 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices (Family: 8, Stepping: 2)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
85 audio & 196 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
success: format: 0 data: 0x0 - 0x4118000
MPEG-PS file format detected.
VIDEO: MPEG2 704x576 (aspect 2) 25.000 fps 9300.0 kbps (1162.5 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:704x576 fps:25.00 ftime:=0.0400
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
AC3: 2.0 (stereo) 48000 Hz 256.0 kbit/s
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [a52] afm:liba52 (AC3-liba52)
==========================================================================
xvid: using library version 1.1.0 (build xvid-1.1.0)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [scale w=352 h=288]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 704 x 576 (preferred csp: Mpeg PES)
The selected video_out device is incompatible with this codec.
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))
==========================================================================
MP3 audio selected
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
VDec: vo config request - 704 x 576 (preferred csp: 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 9 -> 8
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: BICUBIC scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: XviD (352x288 fourcc=44495658 [XVID])
xvid: par=0/0 (vga11), displayed=384x288, sampled=352x288
xvid: CBR Rate Control -- bitrate=200kbit/s
New_Face failed. Maybe the font path is wrong. 1mb A-V:0.004 [0:0]
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
ODML: vprp aspect is 4:3.
1 duplicate frame(s)!
Pos: 64.6s 1619f (100%) 22fps Trem: 0min 3mb A-V:0.037 [213:260]
Flushing video frames
Writing AVI index...
Fixing AVI header...
ODML: vprp aspect is 4:3.
Video stream: 213.311 kbit/s (26663 bps) size: 1725687 bytes 64.720 secs 1619 frames
Audio stream: 260.608 kbit/s (32576 bps) size: 2122656 bytes 65.160 secs
[vendee@localhost VERGER-RICHARD-Videos]$
Et voilà le travail. Donc j'ai bien transformé mon fichié mpeg en avi
J'ai renommé mon fichier ;-p
[vendee@localhost VERGER-RICHARD-Videos]$ file Cap0001t.avi
Cap0001t.avi: RIFF (little-endian) data, AVI, 352 x 288, 25.00 fps, video: XviD, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)
[vendee@localhost VERGER-RICHARD-Videos]$
Par contre j'ai une méga perte de qualité. Est ce que quelqu'un sait si en changeant un élément de ma ligne de commande je peux augmenter la qualité de mon film avi?
a+
Petit Penguoin