VP8 ES in ivf input causes crash
As noticed in: http://forum.videolan.org/viewtopic.php?f=14&t=80214
If one plays elementary stream VP8 videos with VLC, it might cause a crash after about 1 second of playback. Tested with VLC 1.1.1 under Win32.
Sample file:
http://x264.nl/developers/Dark_Shikari/parkjoy.ivf
Log from file playback before crash:
main debug: adding item `parkjoy.ivf' ( file:///C:/Users/x/Desktop/kana/parkjoy.ivf )
qt4 debug: Adding a new MRL to recent ones: C:\Users\x\Desktop\kana\parkjoy.ivf
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: processing request item parkjoy.ivf node null skip 0
main debug: resyncing on parkjoy.ivf
main debug: parkjoy.ivf is at 0
main debug: starting new item
main debug: creating new input thread
main debug: Creating an input for 'parkjoy.ivf'
main debug: Creating an input for 'parkjoy.ivf'
main debug: thread started
main debug: using timeshift granularity of 50 MiB
main debug: using timeshift path 'C:\Users\x\AppData\Local\Temp'
main debug: thread (input) created at priority 1 (../.././src/input/input.c:214)
main debug: `file:///C:/Users/x/Desktop/kana/parkjoy.ivf' gives access `file' demux `' path `C:\Users\x\Desktop\kana\parkjoy.ivf'
main debug: creating demux: access='file' demux='' path='C:\Users\x\Desktop\kana\parkjoy.ivf'
main debug: looking for access_demux module: 2 candidates
main debug: no access_demux module matching "file" could be loaded
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating access 'file' path='C:\Users\x\Desktop\kana\parkjoy.ivf'
main debug: looking for access module: 2 candidates
filesystem debug: opening file `C:\Users\x\Desktop\kana\parkjoy.ivf'
main debug: using access module "filesystem"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: Using AStream*Stream
main debug: pre buffering
main debug: received first data after 0 ms
main debug: pre-buffering done 1024 bytes in 0s - 1000000 KiB/s
main debug: looking for stream_filter module: 2 candidates
main debug: no stream_filter module matching "any" could be loaded
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: looking for stream_filter module: 1 candidate
main debug: using stream_filter module "stream_filter_record"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: creating demux: access='file' demux='' path='C:\Users\x\Desktop\kana\parkjoy.ivf'
main debug: looking for demux module: 50 candidates
ts warning: TS module discarded (lost sync)
lua debug: Trying Lua scripts in C:\Users\x\AppData\Roaming\vlc\lua\playlist
lua debug: Trying Lua scripts in C:\softa\vlc-1.1.1\lua\playlist
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\anevia_streams.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\anevia_xml.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\appletrailers.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\bbc_co_uk.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\break.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\canalplus.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\cue.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\dailymotion.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\france2.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\googlevideo.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\jamendo.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\joox.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\katsomo.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\koreus.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\lelombrik.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\megavideo.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\metacafe.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\mpora.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\pinkbike.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\rockbox_fm_presets.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\vimeo.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\youtube.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\playlist\youtube_homepage.lua
qt4 debug: IM: Setting an input
avcodec debug: detected format: ivf
main debug: selecting program id=0
avcodec debug: adding es: video codec = VP80
avcodec debug: AVFormat supported stream
avcodec debug: - format = ivf (On2 IVF)
avcodec debug: - start time = 0
avcodec debug: - duration = 10000000
main debug: using demux module "avcodec"
main debug: TIMER module_need() : 45.000 ms - Total 45.000 ms / 1 intvls (Avg 45.000 ms)
main debug: looking for a subtitle file in C:\Users\x\Desktop\kana\
main debug: looking for decoder module: 34 candidates
avcodec debug: libavcodec initialized (interface 0x344d00)
avcodec debug: direct rendering is disabled
avcodec debug: ffmpeg codec (Google/On2's VP8 Video) started
main debug: using decoder module "avcodec"
main debug: TIMER module_need() : 20.000 ms - Total 20.000 ms / 1 intvls (Avg 20.000 ms)
main debug: meta ok for (null), need to fetch art
main debug: looking for meta fetcher module: 1 candidate
lua debug: Trying Lua scripts in C:\Users\x\AppData\Roaming\vlc\lua\meta\fetcher
lua debug: Trying Lua scripts in C:\softa\vlc-1.1.1\lua\meta\fetcher
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\meta\fetcher\tvrage.lua
main debug: using meta fetcher module "lua"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: removing module "lua"
main debug: searching art for parkjoy.ivf
main debug: looking for art finder module: 2 candidates
lua debug: Trying Lua scripts in C:\Users\x\AppData\Roaming\vlc\lua\meta\art
lua debug: Trying Lua scripts in C:\softa\vlc-1.1.1\lua\meta\art
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\meta\art\01_googleimage.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\meta\art\02_frenchtv.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\meta\art\03_lastfm.lua
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\meta\art\04_musicbrainz.lua
main debug: no art finder module matching "any" could be loaded
main debug: TIMER module_need() : 5.000 ms - Total 5.000 ms / 1 intvls (Avg 5.000 ms)
main debug: art not found for parkjoy.ivf
main debug: thread (decoder) created at priority 0 (../.././src/input/decoder.c:301)
main debug: thread started
main debug: looking for meta reader module: 2 candidates
lua debug: Trying Lua scripts in C:\Users\x\AppData\Roaming\vlc\lua\meta\reader
lua debug: Trying Lua scripts in C:\softa\vlc-1.1.1\lua\meta\reader
lua debug: Trying Lua playlist script C:\softa\vlc-1.1.1\lua\meta\reader\filename.lua
main debug: no meta reader module matching "any" could be loaded
main debug: TIMER module_need() : 5.000 ms - Total 5.000 ms / 1 intvls (Avg 5.000 ms)
main debug: `file:///C:/Users/x/Desktop/kana/parkjoy.ivf' successfully opened
main debug: Buffering 0%
main debug: Buffering 6%
main debug: Buffering 13%
main debug: Buffering 20%
main debug: Buffering 26%
main debug: Buffering 33%
main debug: Buffering 40%
main debug: Buffering 46%
main debug: Buffering 53%
main debug: Buffering 60%
main debug: Buffering 66%
main debug: Buffering 73%
main debug: Buffering 80%
main debug: Buffering 86%
main debug: Buffering 93%
main debug: Buffering 100%
main debug: Stream buffering done (320 ms in 0 ms)
main debug: no usable vout present, spawning one
main debug: looking for text renderer module: 2 candidates
freetype debug: Building font databases.
freetype debug: Took 85000 microseconds
freetype debug: Using Arial as font from file C:/Windows/fonts/arial.ttf
freetype debug: using fontsize: 2
main debug: using text renderer module "freetype"
main debug: TIMER module_need() : 90.000 ms - Total 90.000 ms / 1 intvls (Avg 90.000 ms)
main debug: looking for video filter2 module: 18 candidates
swscale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality)
main debug: using video filter2 module "swscale"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: looking for video filter2 module: 18 candidates
yuvp debug: YUVP to YUVA converter
main debug: using video filter2 module "yuvp"
main debug: TIMER module_need() : 5.000 ms - Total 5.000 ms / 1 intvls (Avg 5.000 ms)
main debug: window size: 1920x1080
main debug: Deinterlacing available
main debug: deinterlace 0, mode blend, is_needed 0
main debug: looking for video output module: 1 candidate
vout_wrapper debug: Opening vout display wrapper
main debug: looking for vout display module: 8 candidates
direct3d debug: creating Vout EventThread
direct3d debug: DirectXCreateWindow
main debug: looking for vout window hwnd module: 3 candidates
qt4 debug: requesting video...
qt4 debug: Video was requested 0, 0
main debug: using vout window hwnd module "qt4"
main debug: TIMER module_need() : 25.000 ms - Total 25.000 ms / 1 intvls (Avg 25.000 ms)
direct3d debug: created video sub-window
direct3d debug: Vout EventThread running
direct3d debug: disabling screen saver
main debug: VoutDisplayEvent 'resize' 1936x1116 window
direct3d warning: trying surface pixel format: YV12
direct3d debug: selected surface pixel format is YV12
direct3d debug: Direct3D scene created successfully
direct3d debug: Direct3D device adapter successfully initialized
main debug: using vout display module "direct3d"
main debug: TIMER module_need() : 110.000 ms - Total 110.000 ms / 1 intvls (Avg 110.000 ms)
main debug: using video output module "vout_wrapper"
main debug: TIMER module_need() : 110.000 ms - Total 110.000 ms / 1 intvls (Avg 110.000 ms)
main debug: got 1 direct buffer(s)
main debug: pic render sz 1920x1080, of (0,0), vsz 1920x1080, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0
main debug: pic in sz 1920x1080, of (0,0), vsz 1920x1080, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0
main debug: pic out sz 1920x1080, of (0,0), vsz 1920x1080, 4cc I420, sar 1:1, msk r0x0 g0x0 b0x0
main debug: direct render, mapping render pictures 0-23 to system pictures 1-24
main debug: VoutDisplayEvent 'resize' 1920x1080 window
main debug: End of video preroll
main debug: Received first picture
freetype debug: using fontsize: 67
main debug: looking for video blending module: 1 candidate
blend debug: chroma: YUVA -> I420
main debug: using video blending module "blend"
main debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms)
main debug: Post-processing available
main warning: vlc_object_find_name(postproc) is not safe!
main debug: Decoder buffering done in 415 ms
main debug: control type=1
main debug: auto hidding mouse
main debug: auto hidding mouse
Edited by Jean-Baptiste Kempf