ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Как правильно mpeg в x264 с помощью ffmpeg конвертировать?
@ 2011-03-23 17:36 Olexander Chernetskyy
  2011-03-23 19:05 ` Maks Re
  0 siblings, 1 reply; 6+ messages in thread
From: Olexander Chernetskyy @ 2011-03-23 17:36 UTC (permalink / raw)
  To: Community

Всем здравствуйте

Имеется файл (и не один). Видео 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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-04-09 12:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-23 17:36 [Comm] Как правильно mpeg в x264 с помощью ffmpeg конвертировать? Olexander Chernetskyy
2011-03-23 19:05 ` Maks Re
2011-03-23 21:02   ` Olexander Chernetskyy
2011-03-23 21:19     ` Olexander Chernetskyy
2011-04-08 21:35   ` Motsyo Gennadi aka Drool
2011-04-09 12:02     ` Olexander Chernetskyy

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git