Solution 1:

I forced strictness to -2 in FFMpeg options in advanced VLC options. It's under Tools>Preferences, then I click All under Show settings, click on Video codecs under Input / Codecs, then FFmpeg . So it's: Tools>Preferences>Video codecs>FFmpeg . Under FFmpeg I scroll down to under Encoding and I go to Strict standard compliance and I set it to -2

OR Add --sout-ffmpeg-strict=-2

to your command line. So no need to change it in the Gui