我是 ubuntu 的新手,需要您的帮助:(32 位 ubuntu 12.10)我的命令:
ffmpeg -i ../output_images/particles%04d.png -r 30 -b 30000k final_movie.avi
Run Code Online (Sandbox Code Playgroud)
适用于我的 800x800 *.png 图片,但不适用于 512x512 *.png。在那里我收到以下消息:
[image2 @ 0x938a100] Could not find codec parameters (Video: png, 512x512)
Run Code Online (Sandbox Code Playgroud)
在校园机器上,它适用于具有相同代码的两者。我尝试做一个调整大小命令:
for p in *.tga; do convert -resize 800x800 $p $p; done
Run Code Online (Sandbox Code Playgroud)
添加此功能后,它可以工作,但我最终拥有 800x800 电影。
我已经安装了以下软件包:
过剩:
sudo apt-get install freeglut3-dev
Run Code Online (Sandbox Code Playgroud)
ffmpeg:
sudo apt-get install ffmpeg
Run Code Online (Sandbox Code Playgroud)
出现“未找到 curl 命令”错误。我修复了它:
sudo apt-get install curl
Run Code Online (Sandbox Code Playgroud)
还有另一个“转换:找不到命令”,我用以下方法修复了它:
sudo apt-get install imagemagick
Run Code Online (Sandbox Code Playgroud)
知道缺少什么吗?