Hi, I have a series of png files that I would like to make into an mpeg movie that would be playable on a Mac. I am trying this w/ the following command: ffmpeg -f image2 -i "oplus_maps_zp1_%03d.png" -pix_fmt yuv420p file.mp4
The error in question is: [libx264 @ 0x35e1f00] width not divisible by 2 (455x450) I assume this means my input file width should be divisible by 2. I used ImageMagick convert to create png files with an even number of pixels in width, but it did not solve the problem. Can anybody help? Thanks, Ben Foster [email protected] [foster@yslogin6 oplus_maps_zp1.movie]$ !ffmpeg ffmpeg -f image2 -i "oplus_maps_zp1_%03d.png" -pix_fmt yuv420p file.mp4 ffmpeg version 1.1.2 Copyright (c) 2000-2013 the FFmpeg developers built on Feb 19 2013 10:15:04 with gcc 4.4.6 (GCC) 20110731 (Red Hat 4.4.6-3) configuration: --disable-yasm --prefix=/glade/p/hao/wiltbemj/local --enable-libx264 --enable-gpl --extra-ldflags=-L/glade/p/hao/wiltbemj/local/lib/ --extra-cflags=-I/glade/p/hao/wiltbemj/local/include --extra-libs=/glade/p/hao/wiltbemj/local/lib/libx264.a libavutil 52. 13.100 / 52. 13.100 libavcodec 54. 86.100 / 54. 86.100 libavformat 54. 59.106 / 54. 59.106 libavdevice 54. 3.102 / 54. 3.102 libavfilter 3. 32.100 / 3. 32.100 libswscale 2. 1.103 / 2. 1.103 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 2.100 / 52. 2.100 Input #0, image2, from 'oplus_maps_zp1_%03d.png': Duration: 00:00:03.88, start: 0.000000, bitrate: N/A Stream #0:0: Video: png, rgb24, 455x450, 25 fps, 25 tbr, 25 tbn, 25 tbc [libx264 @ 0x35e1f00] width not divisible by 2 (455x450) Output #0, mp4, to 'file.mp4': Stream #0:0: Video: h264, yuv420p, 455x450, q=-1--1, 90k tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (png -> libx264) Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height [foster@yslogin6 oplus_maps_zp1.movie]$ -- Ben Foster National Center for Atmospheric Research (NCAR) High Altitude Observatory (HAO) 303-497-1595 _______________________________________________ ffmpeg-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/ffmpeg-user
