[MEncoder-users] Encode to DVCAM, DVCPRO, DVCPRO50

Mark Himsley mark at mdsh.com
Sun Feb 10 12:51:32 CET 2008


Hi,

I have two questions about encoding to DV.

Is it possible to set what type of DV is encoded with -ovc lavc 
-lavcopts vcodec=dvvideo?

I see the options in ffmpeg to set the -pix_fmt to yuv420p, yuv411p and 
yuv422p which appears [1] to define which of DVCAM, DVCPRO or DVCPRO50 
are encoded to.

Is if possible to set the bit-depth of -oac pcm?

I've tried -af format=s24le with -oac pcm but the file ends up as 16 bit.
Should I be using -oac lavf -lavfopts acodec=pcm_s24le instead?
If so then there is a fault somewhere because oac lavf -lavfopts 
acodec=pcm_s24le with -of lavf lavfopts format=mov causes a 
"mencoded.exe has generated errors ad will be closed by Windows" error 
(log below [2])

Thanks.



[1] according to 
http://www.itbroadcastanddigitalcinema.com/ffmpeg_howto.html


[2] L:\>mencoder 3718.mxf -v -noskip -mc 0 -af 
format=s24le,channels=2:2:0:0:1:1 -vf scale,crop=720:576:0:32,harddup 
-ovc lavc -oac lavc -lavcopts vcodec=dvvideo:acodec=pcm_s24le -of lavf 
-lavfopts format=mov -o 3718.mov

MEncoder dev-SVN-r25963-3.4.2 (C) 2000-2008 MPlayer Team

CPU: Intel(R) Pentium(R) 4 CPU 3.20GHz (Family: 15, Model: 2, Stepping: 9)

CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1

Compiled with runtime CPU detection.

Configuration: --enable-runtime-cpudetection --codecsdir=codecs 
--enable-menu --enable-static --with-extralibdir=/home/mdsh/live 
--with-extraincdir=/home/mdsh/live --disable-ssse3 --extra-libs=-DENOTSUP=48

get_path('font/font.desc') -> 'C:/Documents and 
Settings/mdsh/bin/mplayer/mplayer/font/font.desc'

font: can't open file: C:/Documents and 
Settings/mdsh/bin/mplayer/mplayer/font/font.desc

font: can't open file: /usr/local/share/mplayer/font/font.desc

Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay

WINSOCK2 init: 0

WINSOCK2 init: 0

[file] File size is 111614976 bytes

STREAM: [file] 3718.mxf

STREAM: Description: File

STREAM: Author: Albeu

STREAM: Comment: based on the code from ??? (probably Arpi)

success: format: 0  data: 0x0 - 0x6a71c00

LAVF_check: MXF format

libavformat file format detected.

==> Found video stream: 0

[lavf] Video stream found, -vid 0

======= VIDEO Format ======

  biSize 62

  biWidth 720

  biHeight 608

  biPlanes 0

  biBitCount 0

  biCompression 845639789='mpg2'

  biSizeImage 0

Unknown extra header dump: [0] [0] [1] [b3] [2d] [2] [60] [23] [49] [3e] 
[23] [d8] [0] [0] [1] [b5] [18] [54] [0] [1] [0] [80]

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

==> Found audio stream: 1

[lavf] Audio stream found, -aid 1

======= WAVE Format =======

Format Tag: 1 (0x1)

Channels: 4

Samplerate: 48000

avg byte/sec: 0

Block align: 1

bits/sample: 16

cbSize: 0

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

LAVF: 1 audio and 1 video streams found

LAVF: build 3409664

VIDEO:  [mpg2]  720x608  0bpp  25.000 fps  30000.0 kbps (3662.1 kbyte/s)

[V] filefmt:44  fourcc:0x3267706D  size:720x608  fps:25.00  ftime:=0.0400

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

Opening audio decoder: [pcm] Uncompressed PCM audio decoder

dec_audio: Allocating 2048 + 65536 = 67584 bytes for output buffer.

AUDIO: 48000 Hz, 4 ch, s16le, 0.0 kbit/0.00% (ratio: 0->384000)

Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)

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

WINSOCK2 init: 0

WINSOCK2 init: 0

[file] File size is 0 bytes

STREAM: [file] 3718.mov

STREAM: Description: File

STREAM: Author: Albeu

STREAM: Comment: based on the code from ??? (probably Arpi)

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

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

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

will play these INCORRECT files as if nothing were wrong!

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

OK, exit

ALLOCATED STREAM N. 1, type=0

Opening video filter: [expand osd=1]

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

Opening video filter: [harddup]

Opening video filter: [crop w=720 h=576 x=0 y=32]

Crop: 720 x 576, 0 ; 32

Opening video filter: [scale]

SwScale params: -1 x -1 (-1=no scaling)

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

Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough

VDec: vo config request - 720 x 608 (preferred colorspace: Mpeg PES)

Trying filter chain: scale crop harddup expand lavc

The selected video_out device is incompatible with this codec.

Try appending the scale filter to your filter list,

e.g. -vf spp,scale instead of -vf spp.

VDecoder init failed :(

Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b

Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))

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

ALLOCATED STREAM N. 2, type=1

Building audio filter chain for 48000Hz/4ch/s16le -> 0Hz/0ch/??...

[libaf] Adding filter format

[libaf] Adding filter channels

[channels] Routing from channel 0 to channel 0

[channels] Routing from channel 1 to channel 1

[format] Changing sample format from little-endian 16-bit signed int to 
little-endian 24-bit signed int

[libaf] Adding filter format

[format] Changing sample format from little-endian 24-bit signed int to 
big-endian 8-bit signed int

[format] Changing sample format from little-endian 16-bit signed int to 
little-endian 24-bit signed int

[format] Changing sample format from little-endian 24-bit signed int to 
big-endian 8-bit signed int

Building audio filter chain for 48000Hz/4ch/s16le -> 48000Hz/2ch/s16le...

[format] Changing sample format from little-endian 16-bit signed int to 
little-endian 24-bit signed int

[format] Changing sample format from little-endian 24-bit signed int to 
big-endian 8-bit signed int

[format] Changing sample format from little-endian 24-bit signed int to 
little-endian 16-bit signed int

[format] Changing sample format from little-endian 16-bit signed int to 
little-endian 24-bit signed int

[format] Changing sample format from little-endian 24-bit signed int to 
little-endian 16-bit signed int

[libaf] Reallocating memory in module format, old len = 0, new len = 405

[libaf] Reallocating memory in module channels, old len = 0, new len = 211

[libaf] Reallocating memory in module format, old len = 0, new len = 138

Increasing filtered audio buffer size from 0 to 132

VDec: vo config request - 720 x 608 (preferred colorspace: Planar 422P)

Trying filter chain: scale crop harddup expand lavc

VDec: using Planar 422P as output csp (no 3)

Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.

VO Config (720x608->810x608,flags=0,'MPlayer',0x50323234)

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 @ 00B02DC0]SwScaler: BICUBIC scaler, from yuv422p to yuv420p 
using MMX2

[swscaler @ 00B02DC0]SwScaler: using 4-tap MMX scaler for horizontal 
luminance scaling

[swscaler @ 00B02DC0]SwScaler: using 4-tap MMX scaler for horizontal 
chrominance scaling

[swscaler @ 00B02DC0]SwScaler: using 1-tap MMX "scaler" for vertical 
scaling (YV12 like)

[swscaler @ 00B02DC0]SwScaler: 720x608 -> 720x608

REQ: flags=0x401  req=0x0

REQ: flags=0x401  req=0x400

REQ: flags=0x401  req=0x0

REQ: flags=0x401  req=0x0

videocodec: libavcodec (720x576 fourcc=64737664 [dvsd])

*** [scale] Allocating mp_image_t, 720x608x16bpp YUV planar, 875520 bytes

*** [crop] Allocating mp_image_t, 720x608x12bpp YUV planar, 656640 
bytesms 0/51 D/B/S 0/1/0

*** [harddup] Exporting mp_image_t, 720x576x12bpp YUV planar, 622080 bytes

*** [expand] Exporting mp_image_t, 720x576x12bpp YUV planar, 622080 bytes

*** [lavc] Allocating mp_image_t, 720x576x12bpp YUV planar, 622080 bytes

Muxer frame buffer sending 2 frame(s) to the muxer.

VIDEO CODEC ID: 25

AUDIO CODEC ID: 10000, TAG: 0

MUXER_LAVF(audio stream) frame_size: 0, scale: 6, sps: 48000, rate: 
28000, ctx->block_align = stream->wf->nBlockAlign; 0=6 
stream->wf->nAvgBytesPerSec:28000

Writing header...

[mov @ 00B8C5E0]track 1: codec frame size is not set



L:\>





More information about the MEncoder-users mailing list