Some JPEG images are not displayed
Some of my JPEG images are not properly recognized by VLC. Instead of playing them 10 seconds long (as configured by default), they appear only for a moment, then VLC player jumps to the next playlist item. When adding the affected images to a playlist, no duration is shown.
This behavior occurs only with some images (I got them mainly from facebook), while others from the same source work fine. I attached one example. I could not see any difference in terms of size, format, encoding or color scheme between working and non-working images. Different Video Output modules didn't change anything.
Issue appeared on: Intel i7 6700k + AMD RX480, with these OS/Player versions:
- Windows 10 x64 / VLC 2.2.6
- Windows 10 x64 / today's VLC 3.0.0 nightly
- Linux Mint 18.3 (based on Ubuntu LTS 16.04) / VLC 2.2.2
- Linux Mint 18.3 / VLC 3.0.0. master (compiled from source)
Steps to reproduce:
- Download the attached image (from Facebook, not modified)
- Drag/drop it into a VLC playlist (duration is not recognized, it should be 10sec by default)
- Try to play it (it appears only for a second, it should stay longer)
Logs:
core debug: adding item `14067760_10154184068188889_3076327504579510449_o.jpg' ( file:///C:/Users/Username/Desktop/14067760_10154184068188889_3076327504579510449_o.jpg )
core debug: Creating an input for '14067760_10154184068188889_3076327504579510449_o.jpg'
core debug: meta ok for (null), need to fetch art
core debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in C:\Users\Username\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\fetcher
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac
core debug: no meta fetcher modules matched
core debug: searching art for 14067760_10154184068188889_3076327504579510449_o.jpg
core debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\Username\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
core debug: no art finder modules matched
core debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in C:\Users\Username\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\fetcher
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac
core debug: using meta fetcher module "lua"
core debug: removing module "lua"
core debug: searching art for 14067760_10154184068188889_3076327504579510449_o.jpg
core debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\Username\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
core debug: no art finder modules matched
core debug: art not found for 14067760_10154184068188889_3076327504579510449_o.jpg
core debug: processing request item: 14067760_10154184068188889_3076327504579510449_o.jpg, node: Wiedergabeliste, skip: 0
core debug: rebuilding array of current - root Wiedergabeliste
core debug: rebuild done - 1 items, index 0
core debug: starting playback of the new playlist item
core debug: resyncing on 14067760_10154184068188889_3076327504579510449_o.jpg
core debug: 14067760_10154184068188889_3076327504579510449_o.jpg is at 0
core debug: creating new input thread
core debug: Creating an input for '14067760_10154184068188889_3076327504579510449_o.jpg'
core debug: requesting art for 14067760_10154184068188889_3076327504579510449_o.jpg
core debug: using timeshift granularity of 50 MiB, in path 'C:\Users\Username\AppData\Local\Temp'
core debug: `file:///C:/Users/Username/Desktop/14067760_10154184068188889_3076327504579510449_o.jpg' gives access `file' demux `' path `/C:/Users/Username/Desktop/14067760_10154184068188889_3076327504579510449_o.jpg'
core debug: specified demux `any'
core debug: creating demux: access='file' demux='any' location='/C:/Users/Username/Desktop/14067760_10154184068188889_3076327504579510449_o.jpg' file='C:\Users\Username\Desktop\14067760_10154184068188889_3076327504579510449_o.jpg'
core debug: looking for access_demux module matching "file": 12 candidates
core debug: looking for meta fetcher module matching "any": 1 candidates
lua debug: Trying Lua scripts in C:\Users\Username\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\fetcher
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac
core debug: no meta fetcher modules matched
core debug: searching art for 14067760_10154184068188889_3076327504579510449_o.jpg
core debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\Username\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
core debug: no access_demux modules matched
core debug: creating access 'file' location='/C:/Users/Username/Desktop/14067760_10154184068188889_3076327504579510449_o.jpg', path='C:\Users\Username\Desktop\14067760_10154184068188889_3076327504579510449_o.jpg'
core debug: looking for access module matching "file": 21 candidates
filesystem debug: opening file `C:\Users\Username\Desktop\14067760_10154184068188889_3076327504579510449_o.jpg'
core debug: using access module "filesystem"
core debug: Using stream method for AStream*
core debug: starting pre-buffering
core debug: received first data after 0 ms
core debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
core debug: looking for stream_filter module matching "any": 6 candidates
core debug: no stream_filter modules matched
core debug: looking for stream_filter module matching "record": 6 candidates
core debug: using stream_filter module "record"
core debug: creating demux: access='file' demux='any' location='/C:/Users/Username/Desktop/14067760_10154184068188889_3076327504579510449_o.jpg' file='C:\Users\Username\Desktop\14067760_10154184068188889_3076327504579510449_o.jpg'
core debug: looking for demux module matching "any": 66 candidates
ts debug: TS module discarded (lost sync)
mod debug: MOD validation failed (ext=jpg)
mjpeg debug: JPEG SOI marker detected
core debug: selecting program id=0
lua debug: skipping script (unmatched scope) C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
core debug: no art finder modules matched
core debug: looking for meta fetcher module matching "any": 1 candidates
qt4 debug: IM: Setting an input
core debug: using demux module "mjpeg"
lua debug: Trying Lua scripts in C:\Users\Username\AppData\Roaming\vlc\lua\meta\fetcher
core debug: looking for a subtitle file in C:\Users\Username\Desktop\
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\fetcher
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\fetcher\tvrage.luac
core debug: looking for decoder module matching "any": 43 candidates
core debug: using meta fetcher module "lua"
core debug: removing module "lua"
core debug: searching art for 14067760_10154184068188889_3076327504579510449_o.jpg
core debug: looking for art finder module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\Username\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\art
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\00_musicbrainz.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\01_googleimage.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\02_frenchtv.luac
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\art\03_lastfm.luac
core debug: no art finder modules matched
core debug: art not found for 14067760_10154184068188889_3076327504579510449_o.jpg
avcodec debug: CPU flags: 0x0107d3db
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 (Motion JPEG Video) started
core debug: using decoder module "avcodec"
core debug: looking for meta reader module matching "any": 2 candidates
lua debug: Trying Lua scripts in C:\Users\Username\AppData\Roaming\vlc\lua\meta\reader
lua debug: Trying Lua scripts in C:\Program Files\VideoLAN\VLC\lua\meta\reader
lua debug: Trying Lua playlist script C:\Program Files\VideoLAN\VLC\lua\meta\reader\filename.luac
core debug: no meta reader modules matched
core debug: `file:///C:/Users/Username/Desktop/14067760_10154184068188889_3076327504579510449_o.jpg' successfully opened
mjpeg debug: did not find JPEG EOI in 15360 bytes
mjpeg debug: did not find JPEG EOI in 20480 bytes
mjpeg debug: did not find JPEG EOI in 25600 bytes
mjpeg debug: did not find JPEG EOI in 30720 bytes
mjpeg debug: did not find JPEG EOI in 35840 bytes
mjpeg debug: did not find JPEG EOI in 40960 bytes
mjpeg debug: did not find JPEG EOI in 46080 bytes
mjpeg debug: did not find JPEG EOI in 51200 bytes
mjpeg debug: did not find JPEG EOI in 56320 bytes
mjpeg debug: did not find JPEG EOI in 61440 bytes
mjpeg debug: did not find JPEG EOI in 66560 bytes
mjpeg debug: did not find JPEG EOI in 71680 bytes
mjpeg debug: did not find JPEG EOI in 76800 bytes
mjpeg debug: did not find JPEG EOI in 81920 bytes
mjpeg debug: did not find JPEG EOI in 87040 bytes
mjpeg debug: did not find JPEG EOI in 92160 bytes
mjpeg debug: did not find JPEG EOI in 97280 bytes
mjpeg debug: did not find JPEG EOI in 102400 bytes
mjpeg debug: did not find JPEG EOI in 107520 bytes
mjpeg debug: did not find JPEG EOI in 112640 bytes
mjpeg debug: did not find JPEG EOI in 117760 bytes
mjpeg debug: did not find JPEG EOI in 122880 bytes
mjpeg debug: JPEG EOI detected at 126239
core debug: Buffering 0%
core debug: looking for text renderer module matching "any": 2 candidates
freetype debug: Using Arial as font from file C:\WINDOWS\Fonts\arial.ttf
freetype debug: Using Courier New as mono-font from file C:\WINDOWS\Fonts\cour.ttf
freetype debug: using fontsize: 2
core debug: using text renderer module "freetype"
core debug: looking for video filter2 module matching "any": 58 candidates
swscale debug: 32x32 (32x32) chroma: YUVA -> 16x16 (16x16) chroma: RGBA with scaling using Bicubic (good quality)
core debug: using video filter2 module "swscale"
core debug: looking for video filter2 module matching "any": 58 candidates
yuvp debug: YUVP to YUVA converter
core debug: using video filter2 module "yuvp"
core debug: Deinterlacing available
core debug: deinterlace 0, mode blend, is_needed 0
core debug: Opening vout display wrapper
core debug: looking for vout display module matching "any": 11 candidates
direct3d debug: creating Vout EventThread
direct3d debug: Win32VoutCreateWindow
core debug: looking for vout window hwnd module matching "qt4,any": 3 candidates
qt4 debug: requesting video window...
qt4 debug: Video was requested 0, 0
core debug: using vout window hwnd module "qt4"
direct3d debug: created video sub-window
direct3d debug: Vout EventThread running
direct3d debug: disabling screen saver
direct3d debug: Direct3d Device: Radeon (TM) RX 480 Graphics 4098 26591 199
core debug: VoutDisplayEvent 'resize' 1096x1119 window
direct3d warning: trying surface pixel format: X8R8G8B8
direct3d debug: selected surface pixel format is X8R8G8B8
direct3d debug: Using D3DTEXF_LINEAR for minification
direct3d debug: Using D3DTEXF_LINEAR for magnification
direct3d debug: Direct3D scene created successfully
direct3d debug: Direct3D device adapter successfully initialized
core debug: using vout display module "direct3d"
core debug: A filter to adapt decoder to display is needed
core debug: looking for video filter2 module matching "any": 58 candidates
swscale debug: 1080x1080 (1088x1088) chroma: J420 -> 1080x1080 (1088x1088) chroma: RV32 with scaling using Bicubic (good quality)
core debug: using video filter2 module "swscale"
core debug: Filter 'Swscale' (00000000052b0600) appended to chain
core debug: original format sz 1088x1088, of (0,0), vsz 1080x1080, 4cc J420, sar 1:1, msk r0x0 g0x0 b0x0
core debug: removing module "freetype"
core debug: VoutDisplayEvent 'resize' 1680x914 window
core debug: looking for text renderer module matching "any": 2 candidates
freetype debug: Using Arial as font from file C:\WINDOWS\Fonts\arial.ttf
freetype debug: Using Courier New as mono-font from file C:\WINDOWS\Fonts\cour.ttf
freetype debug: using fontsize: 2
core debug: using text renderer module "freetype"
avcodec warning: plane 0 not aligned
avcodec warning: disabling direct rendering
core debug: End of video preroll
core debug: Received first picture
mjpeg warning: no more data
mjpeg warning: cannot peek data
core debug: EOF reached
core debug: Stream buffering done (0 ms in 0 ms)
core debug: Decoder wait done in 0 ms
core debug: finished input
core debug: removing module "avcodec"
avcodec debug: ffmpeg codec (Motion JPEG Video) stopped
core debug: killing decoder fourcc `MJPG', 0 PES in FIFO
core debug: saving a free vout
core debug: reusing provided vout
qt4 debug: Qt: Fullscreen state changed
core debug: removing module "mjpeg"
core debug: removing module "record"
core debug: removing module "filesystem"
core debug: Program doesn't contain anymore ES
core debug: dead input
core debug: changing item without a request (current 0/1)
core debug: nothing to play
core debug: destroying useless vout
core debug: Filter 00000000052b0600 removed from chain
core debug: removing module "swscale"
core debug: removing module "direct3d"
direct3d debug: Direct3D scene released successfully
direct3d debug: Win32 Vout EventThread terminating
direct3d debug: Win32VoutCloseWindow
direct3d debug: WinProc WM_DESTROY
qt4 debug: releasing video...
qt4 debug: IM: Deleting the input
qt4 debug: Video is not needed anymore
core debug: removing module "freetype"
core debug: removing module "yuvp"
core debug: removing module "swscale"