Granjow / slowmoVideo

USE THIS ONE: https://github.com/slowmoVideo/slowmoVideo
15 stars 9 forks source link

Can't generate mp4 file #9

Open simonbuehler opened 10 years ago

simonbuehler commented 10 years ago

hi,

mpeg as outputformat works but mp4/mkv does not (win7, x32/amd64 ffmpeg versions)

Using format mp4.
Settings: 1920x1080, 51840000 bits/s (tolerance: 4000000), 25/1 fps
Output #0, mp4, to '/tmp/renderedl5.mp4':
    Stream #0:0: Video: h264, yuv420p, 1920x1080, q=2-31, 51840 kb/s, 90k tbn, 2
5 tbc
Codec used: libx264
[libx264 @ 086d3d20] broken ffmpeg default settings detected
[libx264 @ 086d3d20] use an encoding preset (e.g. -vpre medium)
[libx264 @ 086d3d20] preset usage: -vpre <speed> -vpre <profile>
[libx264 @ 086d3d20] speed presets are listed in x264 --help
[libx264 @ 086d3d20] profile is optional; x264 defaults to high
Could not open codec libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10.
"Video could not be prepared (error code 3).
"
Granjow commented 10 years ago

That's actually very well possible. Using the ffmpeg/libav libraries directly is a pain in everything already for supporting one single video format.

The recommended way is to render to PNG (this allows you to re-render only parts of the project in case you e.g. correct Optical Flow) and then use a tool like WinFF to convert those to the desired video format.