[FFmpeg-trac] #4149(undetermined:open): Support mjpeg rotation
FFmpeg
trac at avcodec.org
Thu Jul 2 00:00:02 CEST 2015
#4149: Support mjpeg rotation
-------------------------------------+-------------------------------------
Reporter: rrjp | Owner:
Type: enhancement | Status: open
Priority: wish | Component:
Version: git-master | undetermined
Keywords: mjpeg exif | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by rogerdpack):
I think I just ran into this today:
original:
identify -verbose 20150630_165653.jpg | grep -i orient
Orientation: RightTop
exif:Orientation: 6
exif:thumbnail:Orientation: 6
then if I use ffmpeg to convert it from jpeg to jpeg:
ffmpeg -i 20150630_165653.jpg converted.jpg
ffmpeg version N-44261-g0083c16 Copyright (c) 2000-2015 the FFmpeg
developers
built with Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM
3.6.0svn)
configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared
--enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables
--enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-
libx264 --enable-libmp3lame --enable-libvo-aacenc --enable-libxvid
--enable-vda
libavutil 54. 27.100 / 54. 27.100
libavcodec 56. 45.101 / 56. 45.101
libavformat 56. 40.100 / 56. 40.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 19.100 / 5. 19.100
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.100 / 1. 2.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, image2, from '20150630_165653.jpg':
Duration: 00:00:00.04, start: 0.000000, bitrate: 1007788 kb/s
Stream #0:0: Video: mjpeg, yuvj422p(pc, bt470bg/unknown/unknown),
5312x2988, 25 tbr, 25 tbn, 25 tbc
Output #0, image2, to 'converted.jpg':
Metadata:
encoder : Lavf56.40.100
Stream #0:0: Video: mjpeg, yuvj422p(pc), 5312x2988, q=2-31, 200 kb/s,
25 fps, 25 tbn, 25 tbc
Metadata:
encoder : Lavc56.45.101 mjpeg
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> mjpeg (native))
Press [q] to stop, [?] for help
frame= 1 fps=0.0 q=9.8 Lsize=N/A time=00:00:00.04 bitrate=N/A
video:615kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
$ identify -verbose converted.jpg | grep -i orient
Orientation: Undefined
orientation has been lost...
My guess would be that maybe if it has a certain orientation, ffmpeg
should "auto rotate" it so that it gets appropriate input, perhaps?
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4149#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list