Issue in running vlc

*nix specific usage questions
Bombay_Boy
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Sep 2008 21:33

Issue in running vlc

Postby Bombay_Boy » 20 Sep 2008 21:39

Dear Experts,
I have a built vlc 0.9.1 on coLinux. I have used the following configuration:
[00000001] main libvlc debug: VLC media player - version 0.9.1 Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--disable-hal' '--disable-dbus' '--disable-dbus-control' '--disable-release' '--enable-switcher' '--disable-audioscrobbler' '--disable-taglib' '--disable-live555' '--disable-smb' '--enable-ogg' '--enable-mkv' '--enable-id3tag' '--disable-ffmpeg' '--enable-faad' '--enable-flac' '--enable-png' '--disable-x264' '--disable-x11' '--disable-glx' '--disable-opengl' '--disable-ncurses' '--disable-bonjour' '--prefix=/home/guruji/rakingu/vlc/build' '--disable-schroedinger' '--disable-kate' '--disable-libgcrypt' '--disable-remoteosd' '--disable-libmpeg2' '--disable-optimizations' '--enable-debug' '--disable-sdl' '--disable-xvmc' '--disable-fb' '--disable-oss' '--disable-alsa' '-disable-xvideo' '--disable-dvdread' '--disable-dvdnav' '--enable-freetype' '--disable-avformat' '--disable-qt4' '--disable-skins2' '--disable-dvb' '--disable-dvbpsi' '--disable-v4l2' '--disable-avcodec'

When I try to ./vlc with an input file .mp3, I get the following error:
[00000310] main audio output error: couldn't find a filter for the conversion
[00000310] main audio output error: couldn't create audio output pipeline

I am clueless. I tried to look for similar errors on the forum but could not get any correct answer.

Could anyone familiar with this problem help me out.

NOTE: I have verified /usr/bin/vlc installed from videolan.org works fine using "pulse audio" and alsa on coLinux. That indicates that Audio setup is ok.

Thanks for your time and help!

Bombay_Boy
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Sep 2008 21:33

Re: Issue in running vlc

Postby Bombay_Boy » 20 Sep 2008 23:10

I forgot to mention,
I modified vlc.c in bin folder for vlc installation. The error I get is for this source file.
int main( int i_argc, char *ppsz_argv[] )
{
int i_ret = 0;

libvlc_exception_t excp;
printf("Begin to initialize");
libvlc_instance_t *inst;
int item;
char *filename = "abc.mp3";

char *myarg0 = "-I";
char *myarg1 = "dummy";
char *myarg2 = "--ignore-config";
char *myarg3 = "--plugin-path= <path>vlc-0.9.1/modules";
char *myargs[5] = {myarg0, myarg1,myarg2,myarg3, NULL};


inst = libvlc_new (4, myargs, &excp);


if (inst != NULL)
{
printf(" Instance created \n");
item = libvlc_playlist_add (inst, filename, NULL, &excp);
libvlc_playlist_play (inst, item, 0, NULL, &excp);
libvlc_wait (inst);
printf("Waiting");
libvlc_release (inst);
}



return i_ret;
}

Bombay_Boy
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Sep 2008 21:33

Re: Issue in running vlc

Postby Bombay_Boy » 22 Sep 2008 08:29

Dear Experts,
I successfully built vlc-0.9.2 on linux debian. When I try to run vlc compiled out of about vlc.c, I get the following error:
[00000001] main libvlc debug: translation test: code is "C"
...
[00000345] oss audio output error: cannot open audio device (/dev/dsp)
[00000345] main audio output error: couldn't find a filter for the conversion
[00000345] main audio output error: couldn't create audio output pipeline

I build using following configuration
./configure '--enable-x11' '--enable-xvideo' '--disable-gtk' '--disable-sdl' '--enable-avcodec' '--enable-avformat' '--enable-swscale' '--enable-mad' '--enable-libdvbpsi' '--enable-a52' '--enable-libmpeg2' '--enable-dvdnav' '--enable-faad' '--enable-vorbis' '--enable-ogg' '--enable-theora' '--enable-faac' '--enable-mkv' '--enable-freetype' '--enable-fribidi' '--enable-speex' '--enable-flac' '--disable-live555' '--with-live555-tree=/usr/lib/live' '--enable-caca' '--enable-skins' '--disable-skins2' '--disable-alsa' '--disable-kde' '--disable-qt4' '--enable-ncurses' '--enable-debug' '--disable-glx' '--disable-dvb' '--disable-dvbpsi' '--disable-v4l2' '--disable-opengl'

Please note, I have --disable-alsa. Do you think, that is what is causing the problem?.
I am however about to successfully play the installed binary version of vlc (/usr/bin/vlc)

Please help.

Bombay_Boy
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Sep 2008 21:33

Re: Issue in running vlc

Postby Bombay_Boy » 23 Sep 2008 06:17

Any clues?..Please 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: Issue in running vlc

Postby Jean-Baptiste Kempf » 23 Sep 2008 07:02

OSS is maybe locked by another application;.
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.

dimstar
Cone that earned his stripes
Cone that earned his stripes
Posts: 177
Joined: 15 Dec 2006 14:05
Location: Bucuresti, Romania
Contact:

Re: Issue in running vlc

Postby dimstar » 23 Sep 2008 09:38

Is your user allowed to access /dev/dsp? Does /dev/dsp exist?

In most distros I came across so far, there was a group audio granting access to /dev/dsp.

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: Issue in running vlc

Postby xtophe » 23 Sep 2008 14:18

Add -vvv in the options you pass to libvlc in your programm so that we have more debug
Xtophe

Bombay_Boy
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Sep 2008 21:33

Re: Issue in running vlc

Postby Bombay_Boy » 24 Sep 2008 07:56

Below is the output of ./vlc -vv.

And I have verified /dev/dsp exists. And I am able to run binary version of vlc(downloaded from videolan.org) and hear Audio. However, the compiled version on Linux gives me the error below. I have --disabled-alsa in my ./configure build. Would that be a problem?. Looks like "oss" has trouble in accesing /dev/dsp driver. Is there a configuration setting specific to vlc lib to look for correct alsa driver?

Too many questions. But I am disperate to solve this. Please help.

Thanks for your time.



./vlc -vv
[00000001] main libvlc debug: VLC media player - version 0.9.2 Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--enable-x11' '--enable-xvideo' '--disable-gtk' '--disable-sdl' '--enable-avcodec' '--enable-avformat' '--enable-swscale' '--enable-mad' '--enable-libdvbpsi' '--enable-a52' '--enable-libmpeg2' '--enable-dvdnav' '--enable-faad' '--enable-vorbis' '--enable-ogg' '--enable-theora' '--enable-faac' '--enable-mkv' '--enable-freetype' '--enable-fribidi' '--enable-speex' '--enable-flac' '--disable-live555' '--with-live555-tree=/usr/lib/live' '--enable-caca' '--enable-skins' '--disable-skins2' '--disable-alsa' '--disable-kde' '--disable-qt4' '--enable-ncurses' '--enable-debug' '--disable-glx' '--disable-dvb' '--disable-dvbpsi' '--disable-v4l2' '--disable-opengl'
[00000001] main libvlc debug: translation test: code is "C"
[00000332] main stream error: cannot pre fill buffer
process 3339: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
[00000336] inhibit interface error: Failed to connect to the D-Bus session daemon: Failed to execute dbus-launch to autolaunch D-Bus session
[00000336] main interface error: no suitable interface module
[00000001] main libvlc error: interface "inhibit,none" initialization failed
Instance created
process 3339: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
[00000345] oss audio output error: cannot open audio device (/dev/dsp)
[00000345] main audio output error: couldn't find a filter for the conversion
[00000345] main audio output error: couldn't create audio output pipeline

Saurabh Thakkar
New Cone
New Cone
Posts: 6
Joined: 15 Dec 2008 12:40

Re: Issue in running vlc

Postby Saurabh Thakkar » 17 Dec 2008 06:10

I have successfully compiled VLC package on Red Hat Linux. I can launch VideoLan client from the exe. When i try to play a mpeg file from the player launched a black screen appers. Can someone help please. My configuration script is as follows :


./configure '--enable-x11' '--enable-xvideo' '--enable-gtk' '--enable-sdl' '--enable-ffmpeg' '--with-ffmpeg-mp3lame' '--disable-mad' '--enable-libdvbpsi' '--disable-a52' '--disable-libmpeg2' '--enable-dvdnav' '--disable-faad' '--enable-vorbis' '--enable-ogg' '--disable-theora' '--enable-faac--enable-mkv' '--enable-freetype' '--enable-fribidi' '--enable-speex' '--enable-flac' '--enable-caca' '--enable-skins' '--disable-skins2' '--enable-alsa' '--enable-kde--enable-qt' '--disable-wxwindows' '--enable-ncurses' '--enable-release' '--disable-swscale' '--disable-dbus' '--disable-avcodec' '--disable-avformat' '--disable-postproc' '--disable-qt4' '--disable-v4l2'

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Re: Issue in running vlc

Postby xtophe » 17 Dec 2008 23:47

@Bombay_Boy:
That /dev/dsp exist is not enough. The rights on it needs to be correct and as j-b said, you need to be the only application using it.
Why disabling ALSA ??? I think you should recompile with alsa.

@Saurabh Thakkar:
1) Don't hijack threads
2)The crystal balls I ordered for Christmas hasn't arrived yet. So you'll have to give us the messages (-vvv)
Xtophe


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 13 guests