ffmpeg 无效缩放尺寸 - swScaler
我在使用 ffmpeg 命令时遇到了 swScaler 的问题“swScaler:6x25 -> 6x25 无效缩放尺寸无法获取重采样上下文”
。 这是命令及其输出。
# ffmpeg -i /var/www/site/tmp/cache/bc1a6321b7a595e928be9717edf43027/media.jpg test.bmp
FFmpeg version SVN-r24948, Copyright (c) 2000-2010 the FFmpeg developers
built on Apr 15 2011 15:10:24 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
configuration:
libavutil 50.24. 0 / 50.24. 0
libavcore 0. 6. 0 / 0. 6. 0
libavcodec 52.87. 0 / 52.87. 0
libavformat 52.78. 3 / 52.78. 3
libavdevice 52. 2. 1 / 52. 2. 1
libavfilter 1.38. 1 / 1.38. 1
libswscale 0.11. 0 / 0.11. 0
Input #0, image2, from '/var/www/site/tmp/cache/bc1a6321b7a595e928be9717edf43027/media.jpg':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj444p, 6x25 [PAR 72:72 DAR 6:25], 25 tbr, 25 tbn, 25 tbc
swScaler: 6x25 -> 6x25 is invalid scaling dimension
Cannot get resampling context
任何帮助将不胜感激。 提前致谢
i'm having this issue "swScaler: 6x25 -> 6x25 is invalid scaling dimension Cannot get resampling context"
with swScaler while using an ffmpeg command.
here is the command and it's output.
# ffmpeg -i /var/www/site/tmp/cache/bc1a6321b7a595e928be9717edf43027/media.jpg test.bmp
FFmpeg version SVN-r24948, Copyright (c) 2000-2010 the FFmpeg developers
built on Apr 15 2011 15:10:24 with gcc 4.2.4 (Ubuntu 4.2.4-1ubuntu4)
configuration:
libavutil 50.24. 0 / 50.24. 0
libavcore 0. 6. 0 / 0. 6. 0
libavcodec 52.87. 0 / 52.87. 0
libavformat 52.78. 3 / 52.78. 3
libavdevice 52. 2. 1 / 52. 2. 1
libavfilter 1.38. 1 / 1.38. 1
libswscale 0.11. 0 / 0.11. 0
Input #0, image2, from '/var/www/site/tmp/cache/bc1a6321b7a595e928be9717edf43027/media.jpg':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj444p, 6x25 [PAR 72:72 DAR 6:25], 25 tbr, 25 tbn, 25 tbc
swScaler: 6x25 -> 6x25 is invalid scaling dimension
Cannot get resampling context
any help will be appreciated.
thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
FFmpeg 不是将图像从一种格式转换为另一种格式的正确工具。 FFmpeg 适用于尺寸经常受到限制且不接受非常小的输入(例如 6 x 25)的视频。
更好的选择是 ImageMagick。等效的转换命令是:
FFmpeg is not the right tool for converting images from one format to another. FFmpeg is geared towards videos that frequently have restrictions on their dimensions and won't accept very small input, e.g., 6 by 25.
A much better choice is ImageMagick. The equivalent conversion command would be: