Jump to content
Tuts 4 You
Sign in to follow this  
LCF-AT

VLC black flash h264 issue

Recommended Posts

LCF-AT

Hi guys,

a while ago I found that the VLC player has a problem to play some h26x encoded video files correctly from the start and does show or flashing  black frames first.So I can see this problem more if I enable the loop mode in VLC.First I thought the video itself is the problem but other players like MPC-HS are playing the same video file correctly without any black flash.On internet I found also some posts about it with the hint to use a other VLC 2.2.0 version what works correctly and dosent show a black flash but I dont wanna use a old VLC version anymore and in the latest version 3.0.8 the problem is still present.So it seems to be a VLC issue or maybe any enabled / disabled VLC setting.My first question in this case would be whether anyone knows how to fix this problem in VLC?

Next I tried to encode small video parts by myself using x264 compression to encode with VirtualDub1 & 2 and I got some diffrent results.

If I am using VD1 to encode with x264 / mpeg-4 I get that black flash in VLC.In VD2 I have a 3 diffrent choices of this x264.All seems to be same only using diffrent driver names / 8 & 10 bit.Now if I encode a video part 3 times using all 3 diffrent x264 and I get one of them working with VLC without to get a black flash and the question is why.I did analyse all 3 video parts with ffmpeg and I got this results out.

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\DM a.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.78.100
  Duration: 00:00:01.06, start: 0.000000, bitrate: 701 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 480x360 [SAR 1:1 DAR 4:3], 450 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 246 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
At least one output file must be specified
-----------------------------------------------------------
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\DM a2.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.78.100
  Duration: 00:00:01.06, start: 0.000000, bitrate: 534 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt470bg/unknown/unknown), 480x360 [SAR 1:1 DAR 4:3], 276 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 246 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
At least one output file must be specified
-----------------------------------------------------------
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\DM a3.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.78.100
  Duration: 00:00:01.06, start: 0.000000, bitrate: 536 kb/s
    Stream #0:0(und): Video: h264 (High 10) (avc1 / 0x31637661), yuv420p10le(tv, bt470bg/unknown/unknown), 480x360 [SAR 1:1 DAR 4:3], 279 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 246 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
At least one output file must be specified

The first & second video parts showing that black flash in VLC player and the third video not.So I dont know why VLC does handle them diffrently and I would like to know why and how to fix it in VLC so that all 3 videos gets handled same on playback / loop you know.Maybe anyone does know what the problem is in VLC.Bellow I attached all diffrent 3 video parts (only one second runtime) for testing it etc.Maybe you can check this too in your VLC player to get problem like I get.

DM a.mp4  = shows black flash in VLC not in MPC-HC
DM a2.mp4 = shows black flash in VLC not in MPC-HC
DM a3.mp4 = shows NO black flash in VLC

All 3 video showing also NO black flash in VLC 2.2.0 version (I have test portable version)

Just turn on the loop mode in VLC to see it.

TestVideoSet.rar

greetz

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  
×
×
  • Create New...