From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_00, DNS_FROM_OPENWHOIS,UNPARSEABLE_RELAY autolearn=no version=3.2.5 Message-ID: <44563.195.230.140.18.1300901766.metamail@webmail.meta.ua> Date: Wed, 23 Mar 2011 19:36:06 +0200 (EEST) From: "Olexander Chernetskyy" To: "Community@lists.altlinux.org" User-Agent: MetaMail/1.0 MIME-Version: 1.0 Content-Type: text/plain;charset=koi8-r Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Browser: Opera/9.80 (X11; Linux i686; U; ru) Presto/2.7.62 Version/11.01 MetaPassport-Id: 577845 X-Gen: 2fe3a71ad6487288314e20acd4779699 Subject: [Comm] =?koi8-r?b?68HLINDSwdfJzNjOzyBtcGVnINcgeDI2NCDTINDPzc/d?= =?koi8-r?b?2MAgZmZtcGVnIMvPztfF0tTJ0s/XwdTYPw==?= X-BeenThere: community@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: sp_archer@meta.ua, ALT Linux Community general discussions List-Id: ALT Linux Community general discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2011 17:36:18 -0000 Archived-At: List-Archive: List-Post: Всем здравствуйте Имеется файл (и не один). Видео MPG. Захвачен с аналоговой кассеты формата Video8. Вот что о нем говорит mediainfo: =================================================== General Complete name : 2005-05-01_.mpg Format : MPEG-PS File size : 402 MiB Duration : 6mn 36s Overall bit rate : 8 501 Kbps Video ID : 224 (0xE0) Format : MPEG Video Format version : Version 2 Format profile : Main@Main Format settings, Matrix : Default Duration : 6mn 36s Bit rate mode : Variable Bit rate : 7 939 Kbps Nominal bit rate : 9 000 Kbps Width : 720 pixels Height : 576 pixels Display aspect ratio : 4:3 Frame rate : 25.000 fps Standard : PAL Colorimetry : 4:2:0 Scan type : Interlaced Scan order : Top Field First Bits/(Pixel*Frame) : 0.766 Stream size : 375 MiB (93%) Audio ID : 192 (0xC0) Format : MPEG Audio Format version : Version 1 Format profile : Layer 2 Duration : 6mn 36s Bit rate mode : Constant Bit rate : 224 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Resolution : 16 bits Stream size : 10.6 MiB (3%) =================================================== Хочу его преобразовать в x264. Цель - экономия места на диске. Говорю: $ ffmpeg -i 2005-05-01_.mpg -vcodec libx264 -acodec libmp3lame -ac 2 -ab 128k 2005-05-01-ffmpeg-libx264.avi Получаю отлуп: =================================================== FFmpeg version 0.6-alt0.svn24911.M50P.1, Copyright (c) 2000-2010 the FFmpeg developers ---8<--- libavutil 50.24. 0 / 50.24. 0 libavcore 0. 6. 0 / 0. 6. 0 libavcodec 52.86. 1 / 52.86. 1 libavformat 52.78. 3 / 52.78. 3 libavdevice 52. 2. 1 / 52. 2. 1 libavfilter 1.38. 1 / 1.38. 1 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, mpeg, from '2005-05-01_.mpg': Duration: 00:06:36.24, start: 0.184656, bitrate: 8510 kb/s Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 9000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, 2 channels, s16, 224 kb/s File '2005-05-01-ffmpeg-libx264.avi' already exists. Overwrite ? [y/N] y [buffer @ 0x807ec60] w:720 h:576 pixfmt:yuv420p [libx264 @ 0x807dd80] broken ffmpeg default settings detected [libx264 @ 0x807dd80] use an encoding preset (vpre) Output #0, avi, to '2005-05-01-ffmpeg-libx264.avi': Stream #0.0: Video: libx264, yuv420p, 720x576 [PAR 16:15 DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 25 tbc Stream #0.1: Audio: libmp3lame, 48000 Hz, 2 channels, s16, 128 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height =================================================== Читал и букварь по ffmpeg, и гугль. Пытался добавлять всяческие опции... Много их непонятных... Вообщем просьба: Может кто-то уже делал такую конвертацию? Тогда поделитесь готовой командной строкой. Заранее благодарен. -- Best regards, ArCher Jabber: antonio_gaudi{at}jabber.ru