Hey guys, I'm trying to set up to convert mjpeg-b encoded files and turning them into FLVs server-side to play in flash. For some reason, FFMPEG will not covert directly to FLV from a file encoded with [mjpb] 854x480 24bpp 29.970 fps ... If i take the testing movie and convert it on iMovie on my mac, for example, I can then use it on the server with FFMPEG. Soooo....

The set up:

MEncoder 1.0rc1-4.0.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 44, 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

Available codecs:
copy - frame copy, without re-encoding. Doesn't work with filters.
frameno - special audio-only file for 3-pass encoding, see DOCS.
raw - uncompressed video. Use fourcc option to set format explicitly.
nuv - nuppel video
lavc - libavcodec codecs - best quality!
x264 - H.264 encoding


I've tried this:

# mencoder input.mov -ovc lavc -o output.mov

and I get this:


MEncoder 1.0rc1-4.0.2 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 Processor 3000+ (Family: 15, Model: 44, 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


WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help.
success: format: 0 data: 0x0 - 0x237ad37
ISO: File Type Major Brand: Original QuickTime
Quicktime/MOV file format detected.
VIDEO: [mjpb] 854x480 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7 fourcc:0x62706A6D size:854x480 fps:29.97 ftime:=0.0334
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: [ffmjpegb] vfm: ffmpeg (FFmpeg MJPEG-B decoder)
================================================== ========================
VDec: vo config request - 854 x 480 (preferred colorspace: Planar 422P)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar 422P as output csp (no 1)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 9 -> 8

SwScaler: BICUBIC scaler, from yuv422p to yuv420p using MMX2
SwScaler: using 4-tap MMX scaler for horizontal luminance scaling
SwScaler: using 4-tap MMX scaler for horizontal chrominance scaling
SwScaler: using 1-tap MMX "scaler" for vertical scaling (YV12 like)
SwScaler: 854x480 -> 854x480
videocodec: libavcodec (854x480 fourcc=34504d46 [FMP4])
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos: 7.5s 224f ( 0%) 39.06fps Trem: 0min 0mb A-V:0.000 [1194:0]
Flushing video frames
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream: 1194.878 kbit/s (149359 B/s) size: 1116336 bytes 7.474 secs 224 frames

However, the output .mov file does not play properly, and is only 1MB??? Any attempts to try it with -ovc x264 also fails because it claims it cannot find the video codec:

ISO: File Type Major Brand: Original QuickTime
Quicktime/MOV file format detected.
VIDEO: [mjpb] 854x480 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7 fourcc:0x62706A6D size:854x480 fps:29.97 ftime:=0.0334
Couldn't find video filter 'x264'.
Failed to open the encoder.


As you saw from above, the video filter was listed as available....

What am I missing here?