[FFmpeg-user] ffmpeg convert jpg to avi

吴立斌 jklkj987 at gmail.com
Thu Jan 12 17:15:55 CET 2012


i use command "ffmpeg -r 1.5 -bf 2 -qscale 4 -intra -f image2 -i
Image-0000001-%d.jpg -s 800x600 aa.avi"
but the video is rotate 180 degrees, why?

ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers
  built on Dec 27 2011 00:22:07 with gcc 4.1.2 20071124 (Red Hat 4.1.2-42)
  configuration:
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 0 / 53. 42. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
Input #0, image2, from 'Image-0000001-%d.jpg':
  Duration: 00:00:02.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj440p, 768x1024 [SAR 96:96 DAR 3:4], 1.50
fps, 1.50 tbr, 1.50 tbn, 1.50 tbc
File 'aa.avi' already exists. Overwrite ? [y/N] y
Incompatible pixel format 'yuvj440p' for codec 'mpeg4', auto-selecting
format 'yuv420p'
[buffer @ 0x9ee1b80] w:768 h:1024 pixfmt:yuvj440p tb:1/1000000 sar:96/96
sws_param:
[scale @ 0x9ee20a0] w:768 h:1024 fmt:yuvj440p -> w:800 h:600 fmt:yuv420p
flags:0x4
Output #0, avi, to 'aa.avi':
  Metadata:
    ISFT            : Lavf53.24.0
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 800x600 [SAR
9:16 DAR 3:4], q=2-31, 200 kb/s, 1.50 tbn, 1.50 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg -> mpeg4)
Press [q] to stop, [?] for help
frame=    3 fps=  0 q=1.6 Lsize=      68kB time=00:00:02.00 bitrate=
279.8kbits/s
video:63kB audio:0kB global headers:0kB muxing overhead 9.088925%


More information about the ffmpeg-user mailing list