Slice overlaps with next

This forum is about all development around libVLC.
ppcat
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Feb 2015 11:16
VLC version: 2.1.5
Operating System: Windows 7
Contact:

Slice overlaps with next

Postby ppcat » 17 Apr 2017 12:40

I use embeded vlc using libvlc library. Some files shows as two rectangles one under the other on a dark background.
But VLC application shows this files fine.
I tried vlc versions 2.2.1, 2.2.2, 2.2.5.1 with the same effect.
Here is my simple code:

Code: Select all

int main(int argc, const char* argv[]) { const char *params[] = { "--ignore-config" ,"--verbose=2" ,"--file-logging" ,"--logfile=c:\\vlc-simple.log" }; libvlc_instance_t* inst = libvlc_new(sizeof(params) / sizeof(params[0]), params); libvlc_media_player_t* player = libvlc_media_player_new(inst); libvlc_media_t *media = libvlc_media_new_path(inst, argv[1]); libvlc_media_player_set_media(player, media); //libvlc_video_set_deinterlace(player, "mean"); libvlc_media_release(media); libvlc_media_player_play(player); getchar(); libvlc_media_player_stop(player); libvlc_media_player_release(player); libvlc_release(inst); return 0; }
In "vlc-simple.log" I see:

Code: Select all

avcodec debug: trying to use direct rendering avcodec debug: allowing 4 thread(s) for decoding avcodec warning: threaded frame decoding is not compatible with DXVA2, disabled avcodec debug: avcodec codec (H264 - MPEG-4 AVC (part 10)) started avcodec debug: using slice thread mode with 4 threads
and many messages in console out put:

Code: Select all

[h264 @ 09c71280] Slice overlaps with next at 120
With vlc application:
vlc.exe --ignore-config --verbose=2 --file-logging --logfile=c:\\vlc-2.2.5.1.log "file.mxf"

Code: Select all

avcodec debug: trying to use direct rendering avcodec debug: allowing 4 thread(s) for decoding avcodec debug: avcodec codec (H264 - MPEG-4 AVC (part 10)) started avcodec debug: using frame thread mode with 4 threads
Here are MediaInfo output for the problem file:

Code: Select all

Video ID : 2 Format : AVC Format/Info : Advanced Video Codec Format profile : High 4:2:2@L4.1 Format settings, CABAC : Yes Format settings, ReFrames : 2 frames Format settings, GOP : M=3, N=12 Format settings, wrapping mode : Frame Codec ID : 0D01030102106001-0401020201316001 Duration : 1 h 32 min Bit rate mode : Variable Bit rate : 50.0 Mb/s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 25.000 FPS Color space : YUV Chroma subsampling : 4:2:2 Bit depth : 10 bits Scan type : Interlaced Scan type, store method : Separated fields Scan order : Top Field First Bits/(Pixel*Frame) : 0.965 Stream size : 32.4 GiB (96%) Transfer characteristics : BT.709
What's going on and how can I fix it?
Thanks in advance for any help.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Slice overlaps with next

Postby Jean-Baptiste Kempf » 18 Apr 2017 18:33

Please share logs.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 24 guests