Playing a video with my own instance of VLC

This forum is about all development around libVLC.
Mobill
New Cone
New Cone
Posts: 9
Joined: 24 Oct 2008 14:48

Playing a video with my own instance of VLC

Postby Mobill » 05 Dec 2008 18:12

Hello,

I'm trying to play a video with my own instance of VLC (with vlc 0.9.6 libs), but I have an error I don't know how to fix.
My main function is:


int main(int argc, char* argv[])
{
const char * const vlc_args[] = {
"-I", "dummy", /* Don't use any interface */
"--ignore-config",
"--no-overlay",
"--plugin-path=.\\plugins" }; /* Don't use VLC's config */

// Load of the functions of the libvlc library
if (initLibvlc() == 0)
return 0;

libvlc_exception_t exc;
libvlc_instance_t *instance = NULL;
libvlc_media_t *media = NULL;
libvlc_media_player_t *player = NULL;
int currentPos = 0;


libvlc_exception_init(&exc);

// Creation of the VLC instance
instance = libvlc_new(sizeof(vlc_args) / sizeof(vlc_args[0]), vlc_args, &exc);
raise (&exc);

//Creation of the media player
player = libvlc_media_player_new(instance, &exc);
raise (&exc);

// Creation of the media with the video file
media = libvlc_media_new(instance, "c:\\Temp\\Alpes.avi", &exc);
raise (&exc);

libvlc_media_player_set_media(player, media, &exc);
raise (&exc);

libvlc_media_player_play(player, &exc);
raise (&exc);

sleep(10);

freeLibvlc();
return 0;
}

When I run the executable, I see the first frame of the video, then the executable crashes.
Here are the log:


[0x2e2380] main libvlc debug: VLC media player - version 1.0.0-git Goldeneye - (
c) 1996-2008 the VideoLAN team
[0x2e2380] main libvlc debug: libvlc was configured with ./configure '--host=i6
86-pc-mingw32' '--disable-gtk' '--enable-nls' '--enable-sdl' '--with-sdl-config-
path=/usr/win32/bin' '--enable-avcodec' '--enable-avformat' '--enable-swscale' '
--enable-faad' '--enable-flac' '--enable-theora' '--with-wx-config-path=/usr/win
32/bin' '--with-freetype-config-path=/usr/win32/bin' '--with-fribidi-config-path
=/usr/win32/bin' '--enable-live555' '--with-live555-tree=/usr/win32/live.com' '-
-enable-caca' '--with-caca-config-path=/usr/win32/bin' '--with-xml2-config-path=
/usr/win32/bin' '--with-dvdnav-config-path=/usr/win32/bin' '--disable-cddax' '--
disable-vcdx' '--enable-goom' '--enable-twolame' '--enable-dvdread' '--enable-de
bug' '--enable-dca' '--disable-mkv' '--disable-taglib' '--disable-qt4' '--disabl
e-skins2' 'host_alias=i686-pc-mingw32' 'CC=gcc -mno-cygwin' 'LDFLAGS=-L/usr/win3
2/lib' 'CPPFLAGS=-I/usr/win32/include -I/usr/win32/include/ebml' 'CXX=g++ -mno-c
ygwin'
[0x2e2380] main libvlc debug: translation test: code is "Fr"

*** LibVLC Exception not handled: Input is NULL
Set a breakpoint in 'libvlc_exception_not_handled' to debug.
Fontconfig error: Cannot load default config file
[0x1b65c8e8] main window error: no vout window module matched "any"

Anybody could help me?

Thanks
Mobill

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: Playing a video with my own instance of VLC

Postby Jean-Baptiste Kempf » 06 Dec 2008 00:46

Is your VLC plugin list correct?
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.

d3x0r
Blank Cone
Blank Cone
Posts: 38
Joined: 01 Dec 2008 22:38

Re: Playing a video with my own instance of VLC

Postby d3x0r » 06 Dec 2008 22:05

by the way... this is a rewrite, and untested version of what I do... it's a back port to standard C

This adds the path you specify for vlc and vlc/plugins to the current environment.
(Linux... maybe adjust LD_LIBRARY_PATH too?)

Code: Select all

void FixupPath( char *vlc_path ) // pass the vlc base path, not plugins {[git][/git] char *PATH = getenv( "PATH" ); int pathlen; char *path_sep = ';'; // if this is linux, this should be ':' char *path_char = '\\'; // if this is linux, should be '/' char *new_path = malloc( pathlen = strlen( PATH ) + strlen( vlc_path )*2 + 14 ); snprintf( new_path, pathlen, "%s%c%s%c%s%cplugins" , PATH , path_sep , vlc_path , path_sep , vlc_path , path_char ); setenv( "PATH", new_path, TRUE ); free( new_path ); }
And while I'm thinking about this , why doesnt' VLC just do this? libvlc.dll can know its location, and assume plugins is relative to itself. It already has buildin paths to check current directory and currentDirectory/plugins.... why doesn't it just check its own directory?

Code: Select all

/* if VLC did this itself... (in windows) */ void GetMyOwnExectuableOrLibraryPath( void ) { TEXTCHAR filepath[256]; TEXTCHAR *ext, *e1, *e2;//, *filename; GetModuleFileName( NULL/*the library with this code*/ , filepath, sizeof( filepath ) ); e1 = strrchr( filepath, '\\' ); e2 = strrchr( filepath, '/' ); if( e1 && e2 && ( e1 > e2 ) ) e1[0] = 0; else if( e1 && e2 ) e2[0] = 0; else if( e1 ) e1[0] = 0; else if( e2 ) e2[0] = 0; return strdup( filepath ); } void FixupPathVLC_Internal( void ) // pass the vlc base path, not plugins { FixupPath( GetMyOwnExectuableOrLibraryPath() ); }

Mobill
New Cone
New Cone
Posts: 9
Joined: 24 Oct 2008 14:48

Re: Playing a video with my own instance of VLC

Postby Mobill » 07 Dec 2008 19:13

Thank you for you replies.

Regarding the PATH variable, I added the proposed source code (thanks d3x0r) and I checked that the PATH variable contains the vlc root and plugins directories pathes.
The PATH is OK but that doesn't change anything. It still crashes.

For your information, I can display the video perfectly, using the VLC executable generated by my compilation of the downloaded source code of VLC.
Now, I'm using the same DLLs but called by my own main function, and it fails.

J-B, how can I check the plugin list?

Best regards,
Mobill

Mobill
New Cone
New Cone
Posts: 9
Joined: 24 Oct 2008 14:48

Re: Playing a video with my own instance of VLC

Postby Mobill » 09 Dec 2008 08:50

Hello,

Is there anybody that could help me?
Tell me if you need further information.

Thanks
Mobill

d3x0r
Blank Cone
Blank Cone
Posts: 38
Joined: 01 Dec 2008 22:38

Re: Playing a video with my own instance of VLC

Postby d3x0r » 09 Dec 2008 08:59

have you tried adding --verbose=2 ?

Mobill
New Cone
New Cone
Posts: 9
Joined: 24 Oct 2008 14:48

Re: Playing a video with my own instance of VLC

Postby Mobill » 12 Dec 2008 10:36

Hello,

Thanks D3x0r for your advice. I forgot some of my developer's reflexes.
Unfortunately, I didn't see any decisive information.
Perhaps, you can see something I missed. so here are the logs:

Code: Select all

library = 0x70220000 PATH = /cygdrive/c/Program Files/Java/jre1.6.0_07/bin/client:/cygdrive/c/Program Files/Java/jre1.6.0_07/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:C:/cygwin/bin:/home/vista/vlc/src/.libs;E:\Developpement\Eclipse\workspace\TestVLC01\Debug; E:\Developpement\Eclipse\workspace\TestVLC01\Debug\plugins [0x3b2850] main libvlc debug: VLC media player - version 1.0.0-git Goldeneye - (c) 1996-2008 the VideoLAN team [0x3b2850] main libvlc debug: libvlc was configured with ./configure '--host=i686-pc-mingw32' '--disable-gtk' '--enable-nls' '--enable-sdl' '--with-sdl-config-path=/usr/win32/bin' '--enable-avcodec' '--enable-avformat' '--enable-swscale' '--enable-faad' '--enable-flac' '--enable-theora' '--with-wx-config-path=/usr/win32/bin' '--with-freetype-config-path=/usr/win32/bin' '--with-fribidi-config-path=/usr/win32/bin' '--enable-live555' '--with-live555-tree=/usr/win32/live.com' '--enable-caca' '--with-caca-config-path=/usr/win32/bin' '--with-xml2-config-path=/usr/win32/bin' '--with-dvdnav-config-path=/usr/win32/bin' '--disable-cddax' '--disable-vcdx' '--enable-goom' '--enable-twolame' '--enable-dvdread' '--enable-debug' '--enable-dca' '--disable-mkv' '--disable-taglib' '--disable-qt4' '--disable-skins2' 'host_alias=i686-pc-mingw32' 'CC=gcc -mno-cygwin' 'LDFLAGS=-L/usr/win32/lib' 'CPPFLAGS=-I/usr/win32/include -I/usr/win32/include/ebml' 'CXX=g++ -mno-cygwin' [0x3b2850] main libvlc debug: translation test: code is "Fr" [0x3b2850] main libvlc debug: checking builtin modules [0x3b2850] main libvlc debug: checking plugin modules [0x3b2850] main libvlc debug: loading plugins cache file C:\Users\vista\AppData\Roaming\vlc\plugins-04041e.dat [0x3b2850] main libvlc warning: could not open plugins cache file C:\Users\vista\AppData\Roaming\vlc\plugins-04041e.dat for reading [0x3b2850] main libvlc debug: recursively browsing `E:\Developpement\Eclipse\workspace\TestVLC01\Debug\modules' [0x3b2850] main libvlc debug: recursively browsing `E:\Developpement\Eclipse\workspace\TestVLC01\Debug\plugins' [0x3b2850] main libvlc debug: module bank initialized (341 modules) [0x3b2850] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU [0x3b2850] main libvlc debug: looking for memcpy module: 3 candidates [0x3b2850] main libvlc debug: using memcpy module "memcpymmxext" [0x1a26c708] main interaction debug: thread 447601088 (Interaction control) created at priority 0 (interface/interaction.c:382) [0x1a26c708] main interaction debug: thread started [0x1aac8c08] main input debug: Creating an input for 'Bibliothèque' [0x1aac8c08] main input debug: Input is a meta file: disabling unneeded options [0x1aac8c08] main input debug: `file/xspf-open://C:\Users\vista\AppData\Roaming\vlc\ml.xspf' gives access `file' demux `xspf-open' path `C:\Users\vista\AppData\Roaming\vlc\ml.xspf' [0x1aac8c08] main input debug: creating demux: access='file' demux='xspf-open' path='C:\Users\vista\AppData\Roaming\vlc\ml.xspf' [0x1a26c7e8] main demux debug: looking for access_demux module: 0 candidates [0x1a26c7e8] main demux debug: no access_demux module matched "file" [0x1a26c7e8] main demux debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1aac8c08] main input debug: creating access 'file' path='C:\Users\vista\AppData\Roaming\vlc\ml.xspf' [0x1a26c7e8] main access debug: looking for access module: 2 candidates [0x1a26c7e8] access_file access debug: opening file `C:\Users\vista\AppData\Roaming\vlc\ml.xspf' [0x1a26c7e8] main access debug: using access module "access_file" [0x1a26c7e8] main access debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1ab034a0] main stream debug: Using AStream*Stream [0x1ab034a0] main stream debug: pre-buffering... [0x1ab034a0] main stream debug: received first data for our buffer [0x1aac8c08] main input debug: creating demux: access='file' demux='xspf-open' path='C:\Users\vista\AppData\Roaming\vlc\ml.xspf' [0x1ab07ca0] main demux debug: looking for demux module: 1 candidate [0x1ab07ca0] playlist demux debug: using XSPF playlist reader [0x1ab07ca0] main demux debug: using demux module "playlist" [0x1ab07ca0] main demux debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1aac8c08] main input debug: `file/xspf-open://C:\Users\vista\AppData\Roaming\vlc\ml.xspf' successfully opened [0x1aaefbe0] main xml debug: looking for xml module: 2 candidates [0x1aaefbe0] main xml debug: using xml module "xml" [0x1aaefbe0] main xml debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1ab07ca0] playlist demux warning: invalid <playlist> attribute:"xmlns:vlc" [0x1ab07ca0] playlist demux debug: parsed 0 tracks successfully [0x1aaefbe0] main xml debug: removing module "xml" [0x1aac8c08] main input debug: EOF reached [0x1aac8c08] main input debug: control type=1 [0x1ab07ca0] main demux debug: removing module "playlist" [0x1a26c7e8] main access debug: removing module "access_file" [0x1aac8c08] main input debug: Destroying the input for 'Bibliothèque' [0x1aac8c08] main input debug: TIMER input launching for 'Bibliothèque' : 6.000 ms - Total 6.000 ms / 1 intvls (Avg 6.000 ms) [0x1aac8a18] main playlist debug: thread 447599840 (playlist) created at priority 0 (playlist/thread.c:92) [0x1aac8a18] main playlist debug: thread started [0x1aac8a18] main playlist debug: rebuilding array of current - root Liste de lecture [0x1aac8a18] main playlist debug: rebuild done - 0 items, index -1 [0x1aafd0a0] main interface debug: looking for interface module: 1 candidate [0x1aafd0a0] main interface debug: using interface module "hotkeys" [0x1aafd0a0] main interface debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1aafd0a0] main interface debug: thread 447599480 (interface) created at priority 0 (interface/interface.c:158) [0x1aafd0a0] main interface debug: thread started Instance of created VLC. Version = 1.0.0-git Goldeneye. PID = 1. After call of libvlc_media_player_new. Media mrl : c:\Temp\Alpes.avi Media status : 0 Media duration : -1 Player set with media. hasVout = 0; Length = -1 Before call of libvlc_media_player_play Sleep... *** LibVLC Exception not handled: Input is NULL Set a breakpoint in 'libvlc_exception_not_handled' to debug. *** LibVLC Exception not handled: Input is NULL Set a breakpoint in 'libvlc_exception_not_handled' to debug. [0x1ab034a0] main input debug: Creating an input for 'Alpes.avi' [0x1ab034a0] main input debug: thread 447600008 (input) created at priority 1 (input/input.c:383) [0x1ab034a0] main input debug: thread started [0x1ab034a0] main input debug: `c:\Temp\Alpes.avi' gives access `' demux `' path `c:\Temp\Alpes.avi' [0x1ab034a0] main input debug: creating demux: access='' demux='' path='c:\Temp\Alpes.avi' [0x1ab07ca0] main demux debug: looking for access_demux module: 1 candidate [0x1ab07ca0] main demux debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1ab034a0] main input debug: creating access '' path='c:\Temp\Alpes.avi' [0x1ab14300] main access debug: looking for access module: 4 candidates [0x1ab14300] vcd access debug: trying .cue file: c:\Temp\Alpes.cue [0x1ab14300] vcd access debug: could not find .cue file [0x1ab14300] access_file access debug: opening file `c:\Temp\Alpes.avi' [0x1ab14300] main access debug: using access module "access_file" [0x1ab14300] main access debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1ab03680] main stream debug: Using AStream*Stream [0x1ab03680] main stream debug: pre-buffering... [0x1ab03680] main stream debug: received first data for our buffer [0x1ab03680] main stream debug: pre-buffering done 1408981 bytes in 0s - 1374583 kbytes/s [0x1ab034a0] main input debug: creating demux: access='' demux='' path='c:\Temp\Alpes.avi' [0x1ab07ca0] main demux debug: looking for demux module: 53 candidates [0x1ab03680] avi stream debug: found Chunk fourcc:46464952 (RIFF) size:20266874 pos:0 [0x1ab03680] avi stream debug: found LIST chunk: 'AVI ' [0x1ab03680] avi stream debug: <list 'AVI '> [0x1ab03680] avi stream debug: found Chunk fourcc:5453494c (LIST) size:8816 pos:12 [0x1ab03680] avi stream debug: found LIST chunk: 'hdrl' [0x1ab03680] avi stream debug: <list 'hdrl'> [0x1ab03680] avi stream debug: found Chunk fourcc:68697661 (avih) size:56 pos:24 [0x1ab03680] avi stream debug: avih: streams:2 flags: HAS_INDEX IS_INTERLEAVED 720x576 [0x1ab03680] avi stream debug: found Chunk fourcc:5453494c (LIST) size:4244 pos:88 [0x1ab03680] avi stream debug: found LIST chunk: 'strl' [0x1ab03680] avi stream debug: <list 'strl'> [0x1ab03680] avi stream debug: found Chunk fourcc:68727473 (strh) size:56 pos:100 [0x1ab03680] avi stream debug: strh: type:vids handler:0x64697678 samplesize:0 25.00fps [0x1ab03680] avi stream debug: found Chunk fourcc:66727473 (strf) size:40 pos:164 [0x1ab03680] avi stream debug: strf: video:XVID 720x576 planes:1 24bpp [0x1ab03680] avi stream debug: found Chunk fourcc:4b4e554a (JUNK) size:4120 pos:212 [0x1ab03680] avi stream debug: </list 'strl'> [0x1ab03680] avi stream debug: found Chunk fourcc:5453494c (LIST) size:4220 pos:4340 [0x1ab03680] avi stream debug: found LIST chunk: 'strl' [0x1ab03680] avi stream debug: <list 'strl'> [0x1ab03680] avi stream debug: found Chunk fourcc:68727473 (strh) size:56 pos:4352 [0x1ab03680] avi stream debug: strh: type:auds handler:0x00000000 samplesize:4 48000.00fps [0x1ab03680] avi stream debug: found Chunk fourcc:66727473 (strf) size:16 pos:4416 [0x1ab03680] avi stream debug: strf: audio:0x0001 channels:2 48000Hz 16bits/sample 1500kb/s [0x1ab03680] avi stream debug: found Chunk fourcc:4b4e554a (JUNK) size:4120 pos:4440 [0x1ab03680] avi stream debug: </list 'strl'> [0x1ab03680] avi stream debug: found Chunk fourcc:5453494c (LIST) size:260 pos:8568 [0x1ab03680] avi stream debug: found LIST chunk: 'odml' [0x1ab03680] avi stream debug: <list 'odml'> [0x1ab03680] avi stream debug: found Chunk fourcc:686c6d64 (dmlh) size:248 pos:8580 [0x1ab03680] avi stream warning: unknown chunk (not loaded) [0x1ab03680] avi stream debug: </list 'odml'> [0x1ab03680] avi stream debug: </list 'hdrl'> [0x1ab03680] avi stream debug: found Chunk fourcc:4b4e554a (JUNK) size:1396 pos:8836 [0x1ab03680] avi stream debug: found Chunk fourcc:5453494c (LIST) size:20212802 pos:10240 [0x1ab03680] avi stream debug: skipping movi chunk [0x1ab03680] avi stream debug: found Chunk fourcc:31786469 (idx1) size:43824 pos:20223050 [0x1ab03680] avi stream debug: idx1: index entry:2739 [0x1ab03680] avi stream debug: </list 'AVI '> [0x1ab03680] avi stream debug: * LIST-root size:20266882 pos:0 [0x1ab03680] avi stream debug: + RIFF-AVI size:20266874 pos:0 [0x1ab03680] avi stream debug: | + LIST-hdrl size:8816 pos:12 [0x1ab03680] avi stream debug: | | + avih size:56 pos:24 [0x1ab03680] avi stream debug: | | + LIST-strl size:4244 pos:88 [0x1ab03680] avi stream debug: | | | + strh size:56 pos:100 [0x1ab03680] avi stream debug: | | | + strf size:40 pos:164 [0x1ab03680] avi stream debug: | | | + JUNK size:4120 pos:212 [0x1ab03680] avi stream debug: | | + LIST-strl size:4220 pos:4340 [0x1ab03680] avi stream debug: | | | + strh size:56 pos:4352 [0x1ab03680] avi stream debug: | | | + strf size:16 pos:4416 [0x1ab03680] avi stream debug: | | | + JUNK size:4120 pos:4440 [0x1ab03680] avi stream debug: | | + LIST-odml size:260 pos:8568 [0x1ab03680] avi stream debug: | | | + dmlh size:248 pos:8580 [0x1ab03680] avi stream debug: | + JUNK size:1396 pos:8836 [0x1ab03680] avi stream debug: | + LIST-movi size:20212802 pos:10240 [0x1ab03680] avi stream debug: | + idx1 size:43824 pos:20223050 [0x1ab07ca0] avi demux debug: AVIH: 2 stream, flags HAS_INDEX IS_INTERLEAVED [0x1ab07ca0] avi demux debug: stream[0] rate:25 scale:1 samplesize:0 [0x1ab07ca0] avi demux debug: stream[0] video(XVID) 720x576 24bpp 25.000000fps [0x1ab034a0] main input debug: selecting program id=0 [0x1ab07ca0] avi demux debug: stream[1] rate:192000 scale:4 samplesize:4 [0x1ab07ca0] avi demux debug: stream[1] audio(0x1) 2 channels 48000Hz 16bits [0x1ab07ca0] avi demux debug: stream[0] created 1375 index entries [0x1ab07ca0] avi demux debug: stream[1] created 1364 index entries [0x1ab07ca0] avi demux debug: stream[0] length:55 (based on index) [0x1ab07ca0] avi demux debug: stream[1] length:55 (based on index) [0x1ab07ca0] main demux debug: using demux module "avi" [0x1ab07ca0] main demux debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms) [0x1ab034a0] main input debug: looking for a subtitle file in c:\Temp\ [0x1aaca580] main decoder debug: looking for decoder module: 31 candidates [0x1aaca580] avcodec decoder debug: libavcodec initialized (interface 0x333f00) [0x1aaca580] avcodec decoder debug: using direct rendering [0x1aaca580] avcodec decoder debug: ffmpeg codec (MPEG-4 Video) started [0x1aaca580] main decoder debug: using decoder module "avcodec" [0x1aaca580] main decoder debug: TIMER module_need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms) [0x1aaca580] main decoder debug: thread 447749728 (decoder) created at priority 0 (input/decoder.c:296) [0x1aaca580] main decoder debug: thread started [0x1aacfc68] main decoder debug: looking for decoder module: 31 candidates [0x1aacfc68] araw decoder debug: samplerate:48000Hz channels:2 bits/sample:16 [0x1aacfc68] main decoder debug: using decoder module "araw" [0x1aacfc68] main decoder debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1aacfc68] main decoder debug: thread 447749152 (decoder) created at priority 2 (input/decoder.c:296) [0x1aacfc68] main decoder debug: thread started [0x1ab034a0] main input debug: `c:\Temp\Alpes.avi' successfully opened [0x1ab07ca0] avi demux debug: old:0 < new 0 [0x1ab034a0] main input debug: Buffering 0% [0x1ab034a0] main input debug: control type=1 [0x1ab034a0] main input debug: Buffering 8% [0x1aacfc68] main decoder debug: no aout present, spawning one [0x1ab034a0] main input debug: Buffering 16% [0x1ab034a0] main input debug: Buffering 25% [0x1ab034a0] main input debug: Buffering 33% [0x1ab034a0] main input debug: Buffering 41% [0x1ab034a0] main input debug: Buffering 50% [0x1ab034a0] main input debug: Buffering 58% [0x1ab034a0] main input debug: Buffering 66% [0x1ab034a0] main input debug: Buffering 75% [0x1ab034a0] main input debug: Buffering 83% [0x1ab034a0] main input debug: Buffering 91% [0x1ab034a0] main input debug: Buffering 100% [0x1ab034a0] main input debug: Stream buffering done (325 ms in 0 ms) [0x1ab26de0] main audio output debug: looking for audio output module: 3 candidates [0x1ab26de0] aout_directx audio output debug: OpenAudio [0x1aaca580] avcodec decoder debug: Invalid and inefficient vfw-avi packed B frames detected (mpeg4@1AACE860) [0x1aaca580] avcodec decoder debug: Invalid and inefficient vfw-avi packed B frames detected (mpeg4@1AACE860) [0x1aaca580] main decoder debug: no usable vout present, spawning one [0x1aad7fe8] main spu text debug: looking for text renderer module: 2 candidates [0x1aafaff8] main generic debug: thread 447750496 (fontlist builder) created at priority 0 (freetype.c:474) [0x1aad7fe8] freetype spu text debug: using fontsize: 2 [0x1aad7fe8] main spu text debug: using text renderer module "freetype" [0x1aad7fe8] main spu text debug: TIMER module_need() : 2.000 ms - Total 2.000 ms / 1 intvls (Avg 2.000 ms) [0x1ccdfe10] main scale debug: looking for video filter2 module: 20 candidates [0x1ccdfe10] swscale scale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality) [0x1ccdfe10] main scale debug: using video filter2 module "swscale" [0x1ccdfe10] main scale debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1cce0178] main scale debug: looking for video filter2 module: 20 candidates [0x1cce0178] yuvp scale debug: YUVP to YUVA converter [0x1cce0178] main scale debug: using video filter2 module "yuvp" [0x1cce0178] main scale debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) [0x1aafaff8] main generic debug: thread started Fontconfig error: Cannot load default config file [0x1aafaff8] freetype generic debug: Building font database... [0x1aafaff8] freetype generic debug: Finished building font database. [0x1aafaff8] freetype generic debug: Took 0 seconds [0x1aafaff8] main generic debug: thread ended [0x1ac1c7e0] main video output debug: window size: 720x576 [0x1ac1c7e0] main video output debug: looking for video output module: 6 candidates [0x1ab26de0] aout_directx audio output debug: found device: P?riph?rique audio principal [0x1ab26de0] aout_directx audio output debug: found device: Haut-parleurs (P?riph?rique High Definition Audio) [0x1ab26de0] aout_directx audio output debug: found device: P?riph?rique de sortie num?rique (SPDIF) (P?riph?rique High Definition Audio) [0x1ab26de0] aout_directx audio output debug: device supports 2 channels (DEFAULT!) [0x1ab26de0] aout_directx audio output debug: device supports 2 channels [0x1ab26de0] aout_directx audio output debug: device supports 1 channel [0x1ab26de0] aout_directx audio output debug: Windows says your SpeakerConfig is stereo [0x1ac1c7e0] direct3d video output debug: creating Vout EventThread [0x1aafb198] main generic debug: thread 447751768 (Vout Events Thread) created at priority 0 (direct3d.c:207) [0x1aafb198] main generic debug: waiting for thread initialization [0x1ab26de0] aout_directx audio output debug: creating DirectSoundThread [0x1ab008a0] main generic debug: thread 447751864 (DirectSound Notification Thread) created at priority 15 (directx.c:392) [0x1ab26de0] main audio output debug: using audio output module "aout_directx" [0x1ab26de0] main audio output debug: TIMER module_need() : 44.000 ms - Total 44.000 ms / 1 intvls (Avg 44.000 ms) [0x1ab26de0] main audio output debug: output 's16l' 48000 Hz Stereo frame=1 samples/4 bytes [0x1ab26de0] main audio output debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes [0x1ab26de0] main audio output debug: filter(s) 'fl32'->'s16l' 48000 Hz->48000 Hz Stereo->Stereo [0x1ab008a0] main generic debug: thread started [0x1ab16928] main audio output debug: looking for audio filter module: 24 candidates [0x1ab008a0] aout_directx generic debug: DirectSoundThread ready [0x1ab16928] main audio output debug: using audio filter module "converter_float" [0x1aafb198] main generic debug: thread started [0x1ab16928] main audio output debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1ab26de0] main audio output debug: found a filter for the whole conversion [0x1ac1c7e0] direct3d video output debug: DirectXCreateWindow [0x1ab26de0] main audio output debug: looking for audio mixer module: 3 candidates [0x1ab26de0] main audio output debug: using audio mixer module "float32_mixer" [0x1ab26de0] main audio output debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1ab26de0] main audio output debug: input 's16l' 48000 Hz Stereo frame=1 samples/4 bytes [0x1ab03770] main window debug: looking for vout window module: 0 candidates [0x1ab03770] main window error: no vout window module matched "any" [0x1ab03770] main window debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1ab03770] main window debug: no window provider available [0x1ab16a60] main audio filter debug: looking for audio filter module: 1 candidate [0x1ab16a60] scaletempo audio filter warning: bad input or output format [0x1ab16a60] main audio filter warning: no audio filter module matching "scaletempo" could be loaded [0x1ab16a60] main audio filter debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1ab16a60] main audio filter debug: looking for audio filter module: 1 candidate [0x1ab16a60] scaletempo audio filter debug: format: 48000 rate, 2 nch, 4 bps, fl32 [0x1ab16a60] scaletempo audio filter debug: params: 30 stride, 0.200 overlap, 14 search [0x1ab16a60] scaletempo audio filter debug: 1.000 scale, 1440.000 stride_in, 1440 stride_out, 1152 standing, 288 overlap, 672 search, 2400 queue, fl32 mode [0x1ab16a60] main audio filter debug: using audio filter module "scaletempo" [0x1ab16a60] main audio filter debug: TIMER module_need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms) [0x1ab26de0] main audio output debug: filter(s) 's16l'->'fl32' 48000 Hz->48000 Hz Stereo->Stereo [0x1ab16b98] main audio output debug: looking for audio filter module: 24 candidates [0x1ab16b98] main audio output debug: using audio filter module "converter_float" [0x1ab16b98] main audio output debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1ab26de0] main audio output debug: found a filter for the whole conversion [0x1ab26de0] main audio output debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz Stereo->Stereo [0x1ab16cd0] main audio output debug: looking for audio filter module: 24 candidates [0x1ab16cd0] main audio output debug: using audio filter module "bandlimited_resampler" [0x1ab16cd0] main audio output debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1ab26de0] main audio output debug: found a filter for the whole conversion [0x1aacfc68] main decoder debug: End of audio preroll [0x1ac1c7e0] direct3d video output debug: created video sub-window [0x1ac1c7e0] direct3d video output debug: Vout EventThread running [0x1ac1c7e0] direct3d video output debug: disabling screen saver [0x1ac1c7e0] main video output debug: using video output module "direct3d" [0x1ac1c7e0] main video output debug: TIMER module_need() : 52.000 ms - Total 52.000 ms / 1 intvls (Avg 52.000 ms) [0x1ac1c7e0] main video output debug: thread 483696248 (video output) created at priority 1 (video_output/video_output.c:503) [0x1ac1c7e0] main video output debug: waiting for thread initialization [0x1ac1c7e0] main video output debug: thread started [0x1ac1c7e0] direct3d video output debug: Direct3D device adapter successfully initialized [0x1ac1c7e0] direct3d video output debug: selected surface pixel format is YUY2 [0x1ac1c7e0] direct3d video output debug: 1 Direct3D pictures created successfully [0x1ac1c7e0] direct3d video output debug: Direct3D scene created successfully [0x1ac1c7e0] main video output debug: got 1 direct buffer(s) [0x1ac1c7e0] main video output debug: picture in 720x576 (0,0,720x576), chroma I420, ar 5:4, sar 1:1 [0x1ac1c7e0] main video output debug: picture user 720x576 (0,0,720x576), chroma I420, ar 5:4, sar 1:1 [0x1ac1c7e0] main video output debug: picture out 720x576 (0,0,720x576), chroma YUY2, ar 5:4, sar 1:1 [0x1cce04e0] main chroma debug: looking for video filter2 module: 20 candidates [0x1cce04e0] main chroma debug: using video filter2 module "i420_yuy2_sse2" [0x1cce04e0] main chroma debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1ac1c7e0] main video output debug: indirect render, mapping render pictures 0-7 to system pictures 1-8 [0x1aaca580] main decoder debug: End of video preroll [0x1aaca580] main decoder debug: Received first picture [0x1aad7fe8] freetype spu text debug: using fontsize: 36 [0x1cce0848] main blend debug: looking for video blending module: 1 candidate [0x1cce0848] blend blend debug: chroma: YUVA -> YUY2 [0x1cce0848] main blend debug: using video blending module "blend" [0x1cce0848] main blend debug: TIMER module_need() : 0.000 ms - Total 0.000 ms / 1 intvls (Avg 0.000 ms) [0x1ab034a0] main input debug: Decoder buffering done in 215 ms [0x1ab26de0] main audio output warning: PTS is out of range (-10000), dropping buffer [0x1ab26de0] main audio output warning: PTS is out of range (-31333), dropping buffer [0x1ab26de0] main audio output warning: PTS is out of range (-35000), dropping buffer [0x1ac1c7e0] main video output warning: late picture skipped (2000)
I compared this logs with the ones generated by the use of the VLC executable I compiled without any source modification and run in console mode (the use of the VLC executable does not crash).
The logs seem to be the same.

After that, I just made another test.
I donwloaded VLC-0.8.6i and followed the LibVLC Tutorial 086c ( http://wiki.videolan.org/LibVLC_Tutorial_086c ).
I successfully compiled my own demo.c (I changed the pathes only).
I got exactly the same result: A window appears with the first frame of my video file and VLC crashes.

If I run the executable delivered with VLC-0.8.6i, it can play the same video without any problem.
Of course, I made some tests with other video files and got the same results.

Today, I can say that the problem doesn't seem to be in the video file.
It doesn't seem to be in my test.c file as I got the same result with the "official" demo.c file.
My cygwin compiler seems to be ok as I succesfully compiled VLC (1.0.0) and can start the console mode and play my video file.

So where could be the problem? :(
In the environment? some variables are wrong or missing?
Other idea?

Thanks for your help.
Mobill

Mobill
New Cone
New Cone
Posts: 9
Joined: 24 Oct 2008 14:48

Re: Playing a video with my own instance of VLC

Postby Mobill » 12 Dec 2008 16:35

Hello,

I tried to run my testVlc executable on my old PC with XP Pro... and it plays the video without crashing!
Previously, I was working on my main PC with Vista home premium and the executable has been generated on this one. And there it crashes.

Is there a compatibility problem with Vista?

Mobill


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 10 guests