Skip to content

Transcoding with h264 Video Codec Fails

Summary

Transcoding video from an input to a file using the h264 codec fails with these error messages.


libVLC:[Error] avcodec:cannot find encoder H264 - MPEG-4 AVC (part 10)

*** Your Libav/FFmpeg installation is crippled. ***

*** Please check with your Libav/FFmpeg packager. ***

*** This is NOT a VLC media player issue. ***

libVLC:[Debug] main:Buffering 13%

libVLC:[Debug] main:no encoder modules matched

libVLC:[Error] stream_out_transcode:cannot find video encoder (module:any fourcc:h264). Take a look few lines earlier to see possible reason.


Example repo of UWP project https://github.com/groovykool/libVLC-Transcode.git

Press "Play". View log box output errors wait a few seconds press "Stop"

no transcoded output

What is the expected correct behavior?

Transcoded video is saved in a file.

The transcoding options work in the VLC client.

Relevant logs and/or screenshots


libVLC:[Error] avcodec:cannot find encoder H264 - MPEG-4 AVC (part 10)

*** Your Libav/FFmpeg installation is crippled. ***

*** Please check with your Libav/FFmpeg packager. ***

*** This is NOT a VLC media player issue. ***

libVLC:[Debug] main:Buffering 13%

libVLC:[Debug] main:no encoder modules matched

libVLC:[Error] stream_out_transcode:cannot find video encoder (module:any fourcc:h264). Take a look few lines earlier to see possible reason.


Environment

  • OS: Windows 10
  • Version 1903
  • Device: PC
  • LibVLC version and architecture 3.0.4 Vetinari
  • LibVLCSharp version Nuget 3.2.1

Possible fixes

libVLC compile options?

Edited by Tony Wilkey
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information