broken ffmpeg default settings detected

后端 未结 3 1861
栀梦
栀梦 2021-02-19 03:46

I am getting broken ffmpeg error while VideoWrite using X264 Fourcc codec.I have install all the dependencies.How can I rectify this problem.The sample code that I have been usi

相关标签:
3条回答
  • 2021-02-19 04:19

    for the error:

    [libx264 @ 0x8d6220] broken ffmpeg default settings detected
    [libx264 @ 0x8d6220] use an encoding preset (e.g. -vpre medium)
    [libx264 @ 0x8d6220] preset usage: -vpre <speed> -vpre <profile>
    [libx264 @ 0x8d6220] speed presets are listed in x264 --help
    [libx264 @ 0x8d6220] profile is optional; x264 defaults to high
    

    you may need the command -vpre perset (e.g. -vpre fast). maybe you libx264 is too old. I meet the same error while using a ffmpeg built in 2014.

    0 讨论(0)
  • 2021-02-19 04:27

    I don't remember if you need to re build opencv with open h264 support, but for sure, standart opencv doesn't provide h264 codec. Here is a hint:

    http://answers.opencv.org/question/104346/how-to-encode-a-h264-video-on-windows/

    0 讨论(0)
  • 2021-02-19 04:28

    please install libx264-dev and try compiling openvc3.0 with that. follow this link

    0 讨论(0)
提交回复
热议问题