Opened 12 years ago
Closed 4 days ago
#2151 closed defect (invalid)
Warning: data is not aligned! This can lead to a speedloss
Reported by: | viric | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | swscale |
Version: | 1.1 | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
How to reproduce:
% ffmpeg -ss 01:05:30 -i album-familiar-1.mkv -t 00:07:28 -vf "yadif, crop=690:560:16" -vcodec mpeg4 -vtag xvid -qscale:v 4 -ac 1 -acodec libmp3lame -qscale:a 3 /tmp/tieta2.avi ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers built on Jan 13 2013 22:22:02 with gcc 4.6.3 (GCC) configuration: --disable-static --prefix=/nix/store/1pja3gxi62f2hjwyww67ys84mxqfjgwm-ffmpeg-1.1 --enable-gpl --enable-postproc --enable-swscale --disable-ffplay --enable-shared --enable-runtime-cpudetect --enable-libmp3lame --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-vdpau 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, matroska,webm, from 'album-familiar-1.mkv': Metadata: ENCODER : Lavf54.59.106 Duration: 03:04:49.44, start: 0.000000, bitrate: 65334 kb/s Stream #0:0: Video: h264 (High 4:4:4 Predictive), yuv422p, 720x576, SAR 1:1 DAR 5:4, 25 fps, 25 tbr, 1k tbn, 50 tbc (default) Stream #0:1: Audio: flac, 44100 Hz, stereo, s16 (default) Output #0, avi, to '/tmp/tieta2.avi': Metadata: ISFT : Lavf54.59.106 Stream #0:0: Video: mpeg4 (xvid / 0x64697678), yuv420p, 690x560 [SAR 1:1 DAR 69:56], q=2-31, 200 kb/s, 25 tbn, 25 tbc (default) Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, mono, s16p (default) Stream mapping: Stream #0:0 -> #0:0 (h264 -> mpeg4) Stream #0:1 -> #0:1 (flac -> libmp3lame) Press [q] to stop, [?] for help [swscaler @ 0x752040] Warning: data is not aligned! This can lead to a speedloss frame= 6 fps=0.0 q=4.0 Lsize= 91kB time=00:00:00.24 bitrate=3118.7kbits/s dup=0 drop=7 video:75kB audio:6kB subtitle:0 global headers:0kB muxing overhead 12.867035%
Change History (3)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
I added the ticket because I was told through irc that this line should not appear, and asked me to submit a ticket. But as time went by, someone told me it's normal. So it may be closed freely, as you want.
comment:3 by , 4 days ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
I'm pretty sure this is an unavoidable consequence of cropping to an unaligned offset. There is nothing we can do about this except do a full memcpy into an aligned buffer, which I'm pretty sure will not help.
swscale.c prints this message whenever the data pointers are not a multiple of 16, and since the yuv422p chroma plane is subsampled by a factor of 2 (in the horizontal direction), that means the chroma plane now starts at an offset of 8 (relative to the aligned image start).
Closing since everything is "working as intended". The message is just letting you know that you are requesting a crop that will inevitably slow down scaling.
The full log: