[Ffmpeg-devel] [PATCH] dv pixel format encoding fix
Thu Mar 9 20:26:19 CET 2006
> That fixes pix_fmt detection on most dv streams.
Thanks, this looks good to me.
> I still have problems with DV in MOV since I could not figure out yet
> where atp is set in codec encoding functions. Roman could you help me on
> this one ?
The problem with DV in MOV is that the packet formatting functions in
libavformat/dv.c are never called at all.
(except for a small piece in dvvideo_encode_frame(), which is just a
hack so that dv_frame_profile() works).
This is the architecture issue I pointed out earlier. If you want
fully working DV-in-MOV you will need to do two things:
1) Fill in all of the headers. This will involve moving
dv_format_frame() and associated functions into the avcodec, and
calling them from dvvideo_encode_frame().
2) Fill in the audio samples. This is the hard one. My first instinct
is to add a special callback function from the MOV/AVI avformat
wrappers, to tell the video codec that audio samples are available.
But I'm not very familiar with the guts of muxing, so perhaps there is
an easier way.
More information about the ffmpeg-devel