[FFmpeg-user] DPX Converting to Quicktime MJPEG A

Baptiste Coudurier baptiste.coudurier at gmail.com
Mon Mar 16 08:43:11 CET 2009


Hi,

Chris.Marzullo at EFILM.com wrote:
> Hello all,
> 
> I am trying to create Quicktime MJPEG-A videos from a set of DPX frames. 
> The remaining issue I am having 
> is that in Quicktime the codec is showing up as Photo JPEG. How can I get 
> it to show up as MJPEG A?
> 
> I'll include my code for completeness, and to possibly help other people 
> fighting with the DPX to anything else encoding.
> In this short script that follows I'll assume you can infer the variables:
> 
> for i in `\ls -1 $IMGLOC| grep dpx |sort`
> do
>         gm convert -define dpx:colorspace=rgb $IMGLOC/$i ppm:-
> done  | ffmpeg -f image2pipe -vcodec ppm -r 23.976024 -i - -r 23.976024 
> -pix_fmt yuvj422p -b $CBR -f mov -vcodec mjpeg  $MOVIE
> 
> You might notice a weird framerate of 23.976.024. I work in film. If I do 
> not include this the duration will not match a Quicktime 
> made in After Effects of the same material. This number is (24 * 1000) / 
> 1001 
> 
> I have chosen -pix_fmt yuvj422p as this is what is shown when I look at a 
> known good mjpeg Quicktime with ffmpeg.
> 
> From Quicktime made in After Effects:
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 
> 'eng_countdown_from_AE_23.976fps.mov':
>   Duration: 00:03:06.22, start: 0.000000, bitrate: 4444 kb/s
>     Stream #0.0(eng): Video: mjpeg, yuvj422p, 720x486 [PAR 72:72 DAR 
> 40:27], 23.98 tb(r)
> 
> From Quicktime made with FFMPEG:
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'eng_countdown-ffmpeg-mjpeg.mov':
>   Duration: 00:03:06.22, start: 0.000000, bitrate: 4384 kb/s
>     Stream #0.0(eng): Video: mjpeg, yuvj422p, 720x486, 23.98 tb(r)
> 
> These match up (except for par/dar), yet when I look at it with the movie 
> inspector in Quicktime,
> the ffmpeg movie shows up as photo jpeg!
> 
> Any suggestions would be wonderful!
> 

-vcodec mjpeg -vbsf mjpega_dump -vtag mjpa file.mov

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-user mailing list