From: Andrei Bulava <abulava@altlinux.ru> To: ALT Linux Sisyphus discussion list <sisyphus@altlinux.ru> Subject: Re: [sisyphus] Re: Странная приписка к MJPEG-tools Date: Tue, 10 May 2005 15:15:49 +0300 Message-ID: <4280A5F5.8070608@altlinux.ru> (raw) In-Reply-To: <200505101426.45903.led@ukr-fin.com.ua> Led wrote: > В сообщении от Вторник 10 Май 2005 14:09 Sharavin Sergey написал(a): > >>>Попробовать? >> >>Да вот на это и думаю , не могу из avi сделать mpeg2 >>$ lav2mpeg 1.avi01 >>/usr/bin/lav2mpeg: line 256: shift: 1-1: numeric argument required >>17:39:29 - >>/usr/bin/lav2mpeg: line 404: [: b: integer expression expected >>17:39:29 - using mode=vcd, stereo=2 audio bpr=224 >>17:39:29 - beginning conversion of 1.avi01 to 1.mpg >>17:39:29 - had 5543 to encode >>17:39:29 - beginning video encoding >>17:39:29 - ugh! video encoding failed, bailing. used command: >>17:39:29 - nice -n 19 lav2yuv 1.avi01 | nice -n 19 yuvdenoise | nice >>-n 19 yuvscaler -O VCD -n p | nice -n 19 mpeg2enc -a 2 -f 1 -4 1 -2 1 >>-o 1.m1v ^^^^^^^^^^^^^^^ это MPEG-1, а не MPEG-2, см. yuvscaler(1) /-O output_keyword и стандарт VCD. > > > А > mencoder -ovc lavc -lavcopts vcodec=mpeg2vodeo.... > попробовать? Ага, значит, не одному мне приходят в голову идеи конвертировать avi обратно в dvd или хотя бы vcd/svcd :-) Уже часов 6 работает вот такая конструкция (на подбор _работающего_ сочетания инструментов ушло без малого полдня): $ nice time transcode -i LotR.3.avi -x mplayer -y mpeg2enc -F "8,-K hi-res --cbr -b 2500 -g 6 -G 15 -r 16 -4 2 -2 1" --export_prof dvd-pal --export_asr 3 -o LotR.3 -D0 -s2 -A -P 2 -m LotR.3.ac3 -J modfps --export_fps 25 Ключевые моменты: $ rpm -q MPlayer MPlayer-1.0-alt20.pre7 $ rpm -q transcode transcode-0.6.14-alt1.1 $ rpm -q mjpegtools mjpegtools-1.7.0-alt0.2 За другие сочетания я не ручаюсь, т.к., например, попытка проделать то же самое на версиях, входящих в ALM 2.4, провалилась с треском. transcode в приведённой вверху строчке используется только ради одной вещи (которую, правда, он делает хорошо) - letterboxing, т.е. автоматические манипуляции в обрезанием полосок по бокам и добавлением полосок сверху и снизу, ибо вручную засунуть super-widescreen (2,50:1) avi-файл в DVD-совместимый mpeg2 - это задача не для слабых духом. "-J modfps --export_fps 25" - это нужно только тем, кому попался avi в NTSC. Если исходный avi и так в PAL, то modfps использовать не нужно. "-A -P 2 -m LotR.3.ac3" - это чтоб transcode было чем заняться :-) Всё равно получающийся таким образом AC3-аудиопоток содержит глюки. И по окончании транскодирования я буду извлекать звук с помощью "mplayer -dumpaudio -dumpfile LotR.3.ac3 LotR.3.avi" Мною обнаружена полная несостоятельность transcode при работе с '-x ffmpeg' (режим по умолчанию, между прочим), а также некорректная работа с '-x ffbin', результат которого удручает - выходной m2v получается ускоренным. Потому что-то, отличное от '-x mplayer', использовать не советую. P.S. Если всё-таки нужен vcd, то 1) "--export_prof dvd-pal" следует заменить на "--export_prof vcd-pal", 2) "--export_asr 3" - на "--export_asr 2" (если мне не изменяет память, vcd не бывает иначе чем 4:3), 3) '-F "8,-K hi-res --cbr -b 2500 -g 6 -G 15 -r 16 -4 2 -2 1"' подкорректировать до вида '-F "1,-4 1 -2 1"' P.P.S. Удачи, она вам понадобится! :-) Не забывайте о ключе -c у transcode - "-c 0-00:03:00" делает 3-хминутный отрезок, пригодный для суждений о качестве результата. -- // AB1002-UANIC
next prev parent reply other threads:[~2005-05-10 12:15 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-05-09 15:02 [sisyphus] " Sharavin Sergey 2005-05-10 9:09 ` [sisyphus] " Michael Shigorin 2005-05-10 11:09 ` Sharavin Sergey 2005-05-10 11:26 ` Led 2005-05-10 12:15 ` Andrei Bulava [this message] 2005-05-10 12:24 ` Led 2005-05-10 12:28 ` Led 2005-05-10 13:15 ` [sisyphus] [JT] " Andrei Bulava 2005-05-11 19:01 ` Led 2005-05-11 19:24 ` [sisyphus] " Michael Shigorin 2005-05-11 19:42 ` Led 2005-05-10 13:05 ` [sisyphus] " Michael Shigorin 2005-05-10 13:49 ` Andrei Bulava 2005-05-10 14:06 ` Led
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4280A5F5.8070608@altlinux.ru \ --to=abulava@altlinux.ru \ --cc=sisyphus@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \ sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru public-inbox-index sisyphus Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.sisyphus AGPL code for this site: git clone https://public-inbox.org/public-inbox.git