FFMPEG - 未找到编解码器参数 [英] FFMPEG - Not finding codec parameters

查看:861
本文介绍了FFMPEG - 未找到编解码器参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过FFMPEG将一系列图像转换为mpeg电影,尽管我不断收到一条错误,表示找不到代码参数(Video:mjpeg)。 Google搜索并没有带来很大的帮助。

I'm trying to convert a sequence of images into a mpeg movie via FFMPEG, although I keep getting an error saying that it could not find the code parameters (Video: mjpeg). A Google search did not bring much up that was useful.


ffmpeg -f image2 -i /tmp/img%03d.jpg video.mpgFFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --extra-version=4:0.5.1-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 1 / 52.20. 1
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Mar  4 2010 12:35:30, gcc: 4.4.3
[mjpeg @ 0x9069870]dqt: 16bit precision
[mjpeg @ 0x9069870]mjpeg: unsupported coding type (c9)
[mjpeg @ 0x9069870]mjpeg: unsupported coding type (cf)
[mjpeg @ 0x9069870]only 8 bits/component accepted
[mjpeg @ 0x9069870]dqt: 16bit precision
[mjpeg @ 0x9069870]huffman table decode error
[mjpeg @ 0x9069870]mjpeg: unsupported coding type (ca)
[mjpeg @ 0x9069870]mjpeg: unsupported coding type (ce)
[mjpeg @ 0x9069870]mjpeg: unsupported coding type (cb)
[mjpeg @ 0x9069870]decode_sos: invalid len (60581)
[mjpeg @ 0x9069870]only 8 bits/component accepted
[mjpeg @ 0x9069870]decode_sos: invalid len (56833)
[mjpeg @ 0x9069870]invalid id 207
[mjpeg @ 0x9069870]mjpeg: unsupported coding type (cd)
[mjpeg @ 0x9069870]huffman table decode error
[image2 @ 0x90682c0]Could not find codec parameters (Video: mjpeg)
/tmp/img%03d.jpg: could not find codec parameters

图像位于/ tmp目录中,名称如img001.jpg和img002.jpg。

The images reside in the /tmp directory with names such as img001.jpg and img002.jpg.

任何想法?

感谢
-Tanner

Thanks -Tanner

推荐答案

ffmpeg其实是试图告诉你的是,你的文件有jpeg的扩展名,但这个文件实际上是bmp或者其他格式的。

What ffmpeg is actually trying to tell you is, that your file has extension of jpeg, but the file actually is bmp or some other format.

确保该文件以jpeg编码,问题将消失。

Make sure that the file is encoded in jpeg and the problem will disappear.

这篇关于FFMPEG - 未找到编解码器参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆