Page 1 of 1

vlc crashes (seg fault) while playing raw h264 files

Posted: 27 Aug 2009 17:59
by arjunen
The latest version of vlc-1.0.1 crashes while playing raw h264 files. I downgraded to version vlc-0.9.8a on both windows and ubuntu-9.04, the windows version of vlc-0.9.8a plays the raw h264 files perfectly fine, but the linux version seg faults. I compiled vlc-0.9.8a from source, I installed all the dependencies and installed vlc with ./configure --disable-swscale && make && make install. Why is the windows version playing the raw h264 files but not the linux version, can you someone please help me.

Here is the output of vlc:

Code: Select all

vlc test.264 -vvv VLC media player 0.9.8a Grishenko [00000001] main libvlc debug: VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team [00000001] main libvlc debug: libvlc was configured with ./configure '--disable-swscale' [00000001] main libvlc debug: translation test: code is "C" [00000001] main libvlc debug: checking builtin modules [00000001] main libvlc debug: checking plugin modules [00000001] main libvlc debug: loading plugins cache file /home/arjun/.cache/vlc/plugins-04041e.dat [00000001] main libvlc debug: recursively browsing `/usr/local/lib/vlc' [00000001] main libvlc debug: module bank initialized, found 233 modules [00000001] main libvlc debug: opening config file (/home/arjun/.config/vlc/vlcrc) [00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU [00000001] main libvlc debug: looking for memcpy module: 3 candidates [00000001] main libvlc debug: using memcpy module "memcpymmxext" [00000315] main interaction debug: thread 3079728016 (Interaction control) created at priority 0 (interface/interaction.c:382) [00000315] main interaction debug: thread started [00000317] main input debug: Creating an input for 'Media Library' [00000317] main input debug: Input is a meta file: disabling unneeded options [00000317] main input debug: `file/xspf-open:///home/arjun/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/arjun/.local/share/vlc/ml.xspf' [00000317] main input debug: creating access 'file' path='/home/arjun/.local/share/vlc/ml.xspf' [00000318] main access debug: looking for access module: 3 candidates [00000318] access_file access debug: opening file `/home/arjun/.local/share/vlc/ml.xspf' [00000318] main access debug: using access module "access_file" [00000318] main access debug: TIMER module_Need() : 0.513 ms - Total 0.513 ms / 1 intvls (Avg 0.513 ms) [00000323] main stream debug: Using AStream*Stream [00000323] main stream debug: pre-buffering... [00000323] main stream debug: received first data for our buffer [00000317] main input debug: creating demux: access='file' demux='xspf-open' path='/home/arjun/.local/share/vlc/ml.xspf' [00000324] main demux debug: looking for demux module: 1 candidate [00000324] playlist demux debug: using XSPF playlist reader [00000324] main demux debug: using demux module "playlist" [00000324] main demux debug: TIMER module_Need() : 0.309 ms - Total 0.309 ms / 1 intvls (Avg 0.309 ms) [00000317] main input debug: `file/xspf-open:///home/arjun/.local/share/vlc/ml.xspf' successfully opened [00000339] main xml debug: looking for xml module: 1 candidate [00000339] main xml debug: using xml module "xtag" [00000339] main xml debug: TIMER module_Need() : 0.155 ms - Total 0.155 ms / 1 intvls (Avg 0.155 ms) [00000324] playlist demux debug: parsed 0 tracks successfully [00000339] main xml debug: removing module "xtag" [00000317] main input debug: EOF reached [00000317] main input debug: control type=1 [00000324] main demux debug: removing module "playlist" [00000318] main access debug: removing module "access_file" [00000317] main input debug: TIMER input launching for 'Media Library' : 2.808 ms - Total 2.808 ms / 1 intvls (Avg 2.808 ms) [00000341] main preparser debug: waiting for thread initialization [00000341] main preparser debug: thread started [00000341] main preparser debug: thread 3071302544 (preparser) created at priority 0 (playlist/thread.c:79) [00000342] main fetcher debug: waiting for thread initialization [00000342] main fetcher debug: thread started [00000342] main fetcher debug: thread 3058572176 (fetcher) created at priority 0 (playlist/thread.c:108) [00000316] main playlist debug: waiting for thread initialization [00000316] main playlist debug: thread started [00000316] main playlist debug: rebuilding array of current - root Playlist [00000316] main playlist debug: rebuild done - 0 items, index -1 [00000316] main playlist debug: thread 3050179472 (playlist) created at priority 0 (playlist/thread.c:117) [00000343] main interface debug: looking for interface module: 1 candidate [00000343] main interface debug: using interface module "hotkeys" [00000343] main interface debug: TIMER module_Need() : 0.177 ms - Total 0.177 ms / 1 intvls (Avg 0.177 ms) [00000343] main interface debug: thread 3041786768 (interface) created at priority 0 (interface/interface.c:168) [00000343] main interface debug: thread started [00000345] main interface debug: looking for interface module: 1 candidate [00000345] main interface debug: using interface module "inhibit" [00000345] main interface debug: TIMER module_Need() : 2.173 ms - Total 2.173 ms / 1 intvls (Avg 2.173 ms) [00000345] main interface debug: thread started [00000345] main interface debug: thread 3033394064 (interface) created at priority 0 (interface/interface.c:168) [00000347] main interface debug: looking for interface module: 1 candidate [00000347] main interface debug: using interface module "screensaver" [00000347] main interface debug: TIMER module_Need() : 0.287 ms - Total 0.287 ms / 1 intvls (Avg 0.287 ms) [00000347] main interface debug: thread 3025001360 (interface) created at priority 0 (interface/interface.c:168) [00000347] main interface debug: thread started [00000316] main playlist debug: adding item `test.264' ( test.264 ) [00000349] main interface debug: looking for interface module: 18 candidates [00000349] main interface debug: using interface module "signals" [00000349] main interface debug: TIMER module_Need() : 0.248 ms - Total 0.248 ms / 1 intvls (Avg 0.248 ms) [00000349] main interface debug: thread 3008215952 (interface) created at priority 0 (interface/interface.c:168) [00000349] main interface debug: thread started [00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [00000351] main interface debug: looking for interface module: 3 candidates [00000351] main interface debug: using interface module "qt4" [00000351] main interface debug: TIMER module_Need() : 134.251 ms - Total 134.251 ms / 1 intvls (Avg 134.251 ms) [00000351] main interface debug: thread 2984119184 (interface) created at priority 0 (interface/interface.c:168) [00000351] main interface debug: thread started [00000316] main playlist debug: rebuilding array of current - root Playlist [00000316] main playlist debug: rebuild done - 1 items, index -1 [00000316] main playlist debug: starting new item [00000316] main playlist debug: processing request item null node Playlist skip 0 [00000316] main playlist debug: creating new input thread [00000354] main input debug: Creating an input for 'test.264' [00000354] main input debug: waiting for thread initialization [00000354] main input debug: thread started [00000354] main input debug: `test.264' gives access `' demux `' path `test.264' [00000354] main input debug: creating demux: access='' demux='' path='test.264' [00000355] main demux debug: looking for access_demux module: 1 candidate [00000354] main input debug: thread 2975726480 (input) created at priority 10 (input/input.c:370) [00000355] main demux debug: TIMER module_Need() : 1.021 ms - Total 1.021 ms / 1 intvls (Avg 1.021 ms) [00000354] main input debug: creating access '' path='test.264' [00000358] main access debug: looking for access module: 5 candidates [00000358] vcd access debug: trying .cue file: test.cue [00000358] vcd access debug: could not find .cue file [00000358] access_file access debug: opening file `test.264' [00000358] main access debug: using access module "access_file" [00000358] main access debug: TIMER module_Need() : 0.698 ms - Total 0.698 ms / 1 intvls (Avg 0.698 ms) [00000360] main stream debug: Using AStream*Stream [00000360] main stream debug: pre-buffering... [00000360] main stream debug: received first data for our buffer [00000354] main input debug: creating demux: access='' demux='' path='test.264' [00000361] main demux debug: looking for demux module: 45 candidates [00000361] avformat demux debug: detected format: h264 [00000354] main input debug: selecting program id=0 [00000361] avformat demux debug: adding es: video codec = h264 [00000361] avformat demux debug: AVFormat supported stream [00000361] avformat demux debug: - format = h264 (raw H.264 video format) [00000361] avformat demux debug: - start time = -1 [00000361] avformat demux debug: - duration = -1 [00000361] main demux debug: using demux module "avformat" [00000361] main demux debug: TIMER module_Need() : 32.469 ms - Total 32.469 ms / 1 intvls (Avg 32.469 ms) [00000354] main input debug: looking for a subtitle file in /home/arjun/ [00000397] main decoder debug: looking for decoder module: 21 candidates [00000397] avcodec decoder debug: libavcodec initialized (interface 3416576 ) [00000397] avcodec decoder debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) started [00000397] main decoder debug: using decoder module "avcodec" [00000397] main decoder debug: TIMER module_Need() : 4.921 ms - Total 4.921 ms / 1 intvls (Avg 4.921 ms) [00000397] main decoder debug: thread 2940541840 (decoder) created at priority 0 (input/decoder.c:217) [00000354] main input debug: `test.264' successfully opened [00000354] main input debug: control type=1 [00000397] main decoder debug: thread started Segmentation fault
Any help is highly appreciated.

Thanks
Arjun

Re: vlc crashes (seg fault) while playing raw h264 files

Posted: 27 Aug 2009 19:24
by Jean-Baptiste Kempf
try to force --demux=h264

Re: vlc crashes (seg fault) while playing raw h264 files

Posted: 27 Aug 2009 20:33
by arjunen
Thanks j-b, enabling --demux=h264 works on both vlc-1.0.1 and the older 0.9.x versions.

Thanks again,
Arjun

Re: vlc crashes (seg fault) while playing raw h264 files

Posted: 27 Aug 2009 22:03
by Jean-Baptiste Kempf
You are welcome.