LINUX.ORG.RU

Ошибка MEncodera при конвертации avi в flv


0

0

Пытаюсь MEncoderom AVI файл переконвертировать в FLV.

mencoder video.avi -of lavf -lavfopts format=flv:i_certify_that_my_video_stream_does_not_use_b_frames -ovc lavc -oac mp3lame -o video.flv

Вот что получаю в ответ

MEncoder 1.0rc1-4.0.2 (C) 2000-2006 MPlayer Team

CPU: AMD Athlon(tm) 64 Processor 3500+ (Family: 15, Model: 47, Stepping: 2)

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 - 0x1d64000

** MUXER_LAVF *****************************************************************

You have certified that your video stream does not contain B frames.

REMEMBER: MEncoder's libavformat muxing is presently broken and will generate

INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer

will play these INCORRECT files as if nothing were wrong!

*******************************************************************************

AVI file format detected.

VIDEO: [DIV3] 512x419 24bpp 25.000 fps 940.2 kbps (114.8 kbyte/s)

[V] filefmt:3 fourcc:0x33564944 size:512x419 fps:25.00 ftime:=0.0400

==========================================================================

Opening audio decoder: [mp3lib] MPEG layer-2, layer-3

AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)

Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)

==========================================================================

OK, exit

Opening video filter: [expand osd=1]

Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1

==========================================================================

Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family

Selected video codec: [ffdivx] vfm: ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))

==========================================================================

Exiting...

После чего создается пустой файл video.flv в 0 байт. Что ему не нравится в B-кадрах? Как избежать этой ошибки?

anonymous

Ответ на: комментарий от sda00

В этом случае конвертирует без звука =((

ffmpeg -i file.avi -ar 44100 file.flv

FFmpeg version SVN-r9470, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --enable-libmp3lame --enable-libxvid --enable-gpl
libavutil version: 49.4.1
libavcodec version: 51.40.4
libavformat version: 51.12.1
built on Jul 6 2007 14:22:54, gcc: 4.0.2 20051125 (Red Hat 4.0.2-8)
Input #0, avi, from 'file.avi':
Duration: 00:03:48.6, start: 0.000000, bitrate: 1078 kb/s
Stream #0.0: Video: msmpeg4, yuv420p, 512x419, 25.00 fps(r)
Stream #0.1: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Output #0, flv, to 'file.flv':
Stream #0.0: Video: flv, yuv420p, 512x419, q=2-31, 200 kb/s, 25.00 fps(c)
Stream mapping:
Stream #0.0 -> #0.0
[flv @ 0x83fbe90]removing common factors from framerate

anonymous
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.