VLC 0.9.3 Compile Error demux.c (Probably my fault though)

*nix specific usage questions
bdk907
New Cone
New Cone
Posts: 7
Joined: 10 Mar 2008 22:21
VLC version: 0.9.3
Operating System: ˈlɪnəks
Location: Anchorage, AK

VLC 0.9.3 Compile Error demux.c (Probably my fault though)

Postby bdk907 » 10 Oct 2008 09:21

My ultimate goal is to build a replacement for a Windows streaming server. I'm trying to source the video/audio via VLC and have Windows users use Windows Media Player to play back the stream, otherwise I'd use out of the box VLC. Compiling box is a relatively fresh (Hardy Heron) Ubuntu install that has had all the dependencies installed 'apt-get build-dep vlc'. I'm using gcc 4.2.3.

I've successfully compiled and made FFMPEG with the following flags:

Code: Select all

/usr/local/src/ffmpeg$ ffmpeg FFmpeg version git-8756e5b, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --disable-vhook --enable-gpl --enable-pthreads --disable-debug --enable-libmp3lame --enable-swscale --enable-libfaac libavutil 49.11. 0 / 49.11. 0 libavcodec 52. 0. 0 / 52. 0. 0 libavformat 52.22. 1 / 52.22. 1 libavdevice 52. 1. 0 / 52. 1. 0 libswscale 0. 6. 1 / 0. 6. 1 built on Oct 9 2008 22:12:26, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
After successfully bootstrapping VLC, I configure VLC these flags:

Code: Select all

/usr/local/src/vlc-0.9.3$ ./configure --enable-ffmpeg --with-ffmpeg-mp3lame --disable-live555

Code: Select all

Ending up with: Enabled modules: a52 a52tofloat32 a52tospdif access_filter_bandwidth access_filter_dump access_filter_record access_filter_timeshift access_mmap access_smb adjust adpcm alphamask alsa aout_file aout_sdl araw asf atmo audio_format audioscrobbler avcodec avformat avi bandlimited_resampler blend blendbench bluescreen bonjour canvas cc cdda cdg chain cinepak clone cmml colorthres converter_fixed converter_float crop croppadd cvdsub dbus deinterlace dolby_surround_decoder dts dtstospdif dummy dvb dvb dvbsub dvdnav dvdread dynamicoverlay equalizer erase export extract fake fb flac float32_mixer folder freetype gaussianblur gestures glx gnutls gradient grain grey_yuv h264 hal headphone_channel_mixer hotkeys http i420_rgb i420_rgb_mmx i420_rgb_sse2 i420_ymga i420_ymga_mmx i420_yuy2 i420_yuy2_mmx i420_yuy2_sse2 i422_i420 i422_yuy2 i422_yuy2_mmx i422_yuy2_sse2 id3tag image inhibit invert libmpeg2 linear_resampler logger logo lpcm m4a m4v magnify marq memcpy memcpy3dn memcpymmx memcpymmxext mkv mod mono mosaic motion motionblur motiondetect mp4 mpc mpeg_audio mpga mpgatofixed32 mpgv mux_ogg mux_ts noise normvol notify nsc ogg opengl opengl osd_parser osdmenu oss panoramix param_eq playlist png podcast postproc probe_hal ps psychedelic pulse puzzle qt4 rawvideo rc remoteosd ripple rotate rss rv32 sap scale scaletempo screen screensaver sdl_image sharpen shout showintf signals simple_channel_mixer skins2 spatializer spdif_mixer speex spudec stats subsdec subsusf svcdsub swscale t140 telepathy telnet telx transform trivial_channel_mixer trivial_mixer trivial_resampler ts ugly_resampler v4l2 vcd visual vmem vorbis vout_sdl wall wave x11 xml xtag xvideo yuy2_i420 yuy2_i422 libvlc configuration -------------------- version : 0.9.3 system : linux architecture : x86_64 mmx sse sse2 build flavour : devel vlc aliases : cvlc rvlc svlc qvlc plugins/bindings :

and I eventually get this error when I 'make':

Code: Select all

make[5]: Entering directory `/usr/local/src/vlc-0.9.3/modules/demux/avformat' make all-am make[6]: Entering directory `/usr/local/src/vlc-0.9.3/modules/demux/avformat' /bin/bash ../../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX `top_builddir="../../.." ../../../vlc-config --cflags plugin libavformat_plugin_la-avformat.lo` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libavformat_plugin_la-avformat.lo -MD -MP -MF .deps/libavformat_plugin_la-avformat.Tpo -c -o libavformat_plugin_la-avformat.lo `test -f 'avformat.c' || echo './'`avformat.c mkdir .libs gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=avformat -DMODULE_NAME_IS_avformat -DMODULE_STRING=\"avformat\" -O3 -ffast-math -funroll-loops -mtune=athlon64 -fomit-frame-pointer -I/usr/local/include -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libavformat_plugin_la-avformat.lo -MD -MP -MF .deps/libavformat_plugin_la-avformat.Tpo -c avformat.c -fPIC -DPIC -o .libs/libavformat_plugin_la-avformat.o mv -f .deps/libavformat_plugin_la-avformat.Tpo .deps/libavformat_plugin_la-avformat.Plo /bin/bash ../../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX `top_builddir="../../.." ../../../vlc-config --cflags plugin libavformat_plugin_la-demux.lo` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libavformat_plugin_la-demux.lo -MD -MP -MF .deps/libavformat_plugin_la-demux.Tpo -c -o libavformat_plugin_la-demux.lo `test -f 'demux.c' || echo './'`demux.c gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=avformat -DMODULE_NAME_IS_avformat -DMODULE_STRING=\"avformat\" -O3 -ffast-math -funroll-loops -mtune=athlon64 -fomit-frame-pointer -I/usr/local/include -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libavformat_plugin_la-demux.lo -MD -MP -MF .deps/libavformat_plugin_la-demux.Tpo -c demux.c -fPIC -DPIC -o .libs/libavformat_plugin_la-demux.o In file included from demux.c:46: ../../codec/avcodec/chroma.h: In function ‘GetFfmpegChroma’: ../../codec/avcodec/chroma.h:117: warning: comparison between signed and unsigned ../../codec/avcodec/chroma.h:118: warning: comparison between signed and unsigned ../../codec/avcodec/chroma.h:119: warning: comparison between signed and unsigned demux.c: At top level: demux.c:87: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IOSeek’ demux.c: In function ‘OpenDemux’: demux.c:103: warning: passing argument 2 of ‘stream_Peek’ from incompatible pointer type demux.c:173: warning: implicit declaration of function ‘offset_t’ demux.c:173: error: expected expression before ‘)’ token demux.c:173: error: called object ‘offset_t(<erroneous-expression>)’ is not a function demux.c:173: error: expected ‘;’ before ‘IOSeek’ demux.c:177: error: ‘IOSeek’ undeclared (first use in this function) demux.c:177: error: (Each undeclared identifier is reported only once demux.c:177: error: for each function it appears in.) demux.c: In function ‘Control’: demux.c:387: warning: cast from function call of type ‘int64_t’ to non-matching type ‘double’ demux.c: At top level: demux.c:496: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘IOSeek’ make[6]: *** [libavformat_plugin_la-demux.lo] Error 1 make[6]: Leaving directory `/usr/local/src/vlc-0.9.3/modules/demux/avformat' make[5]: *** [all] Error 2 make[5]: Leaving directory `/usr/local/src/vlc-0.9.3/modules/demux/avformat' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/usr/local/src/vlc-0.9.3/modules/demux' make[3]: *** [all] Error 2 make[3]: Leaving directory `/usr/local/src/vlc-0.9.3/modules/demux' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/vlc-0.9.3/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/vlc-0.9.3' make: *** [all] Error 2
There was a lot more output during the 'make' process but not really knowing what is busted, I don't know what else to add to the post. I had found this post that talked about adding '--enable-swscale' to FFMPEG, which I did, but that still didn't fix the issue. Hopefully I can write a how-to on getting the new VLC compiled and installed to support mp3 when this is all said and done with.

Thanks!

-bdk

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: VLC 0.9.3 Compile Error demux.c (Probably my fault though)

Postby Jean-Baptiste Kempf » 10 Oct 2008 13:06

demux.c:173: warning: implicit declaration of function ‘offset_t’

This is the issue... Take a bit older FFMpeg.
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.

boing
Blank Cone
Blank Cone
Posts: 13
Joined: 03 Sep 2008 21:59
VLC version: 1.0.0-git
Operating System: Linux
Location: Cholet (49), France

Re: VLC 0.9.3 Compile Error demux.c (Probably my fault though)

Postby boing » 10 Oct 2008 19:09


bdk907
New Cone
New Cone
Posts: 7
Joined: 10 Mar 2008 22:21
VLC version: 0.9.3
Operating System: ˈlɪnəks
Location: Anchorage, AK

Re: VLC 0.9.3 Compile Error demux.c (Probably my fault though)

Postby bdk907 » 13 Oct 2008 13:01

I went ahead and patched the files and it compiled perfectly and now I can see my audio blocks & buffers incrementing on the receiving end of a stream when I encode with mp3.

It seems as I fix/accomplish one issue, another one pops up. Going to do some searching first, but I can't seem to get any video displayed locally (using my new newly compiled vlc 0.9.3) from files that were captured (h264, mpg, wmv2, divx2, etc) with vlc 0.8.6e (Ubuntu build) nor with my v4l device. The audio is recognized though and is played locally and streamed. I figured out v4l wasn't enabled by default and I was able to enable it and now get the 'v4l' option to capture from, though nothing shows up visually.

Is there a command that'll show which options VLC is compiled with? I know I'm missing a enable command and I want to compare a working 0.8.6e to the one I'm trying to compile to see if something isn't enabled that should be. I thought I remembered reading of one but I can't find that post anymore. For instance, running 'ffmpeg' shows the configuration options that were used when it was compiled.

Thanks for an awesome product and the volunteer time it takes to help others understand how VLC works!

-bdk

boing
Blank Cone
Blank Cone
Posts: 13
Joined: 03 Sep 2008 21:59
VLC version: 1.0.0-git
Operating System: Linux
Location: Cholet (49), France

Re: VLC 0.9.3 Compile Error demux.c (Probably my fault though)

Postby boing » 13 Oct 2008 19:03

hello,

Code: Select all

vlc -vvv
should do the trick

bdk907
New Cone
New Cone
Posts: 7
Joined: 10 Mar 2008 22:21
VLC version: 0.9.3
Operating System: ˈlɪnəks
Location: Anchorage, AK

Re: VLC 0.9.3 Compile Error demux.c (Probably my fault though)

Postby bdk907 » 13 Oct 2008 21:55

Thanks for the reminder, but 'vlc -vvv' doesn't appear to work on 0.8.6e:

Code: Select all

VLC media player 0.8.6e Janus [00000001] main private debug: checking builtin modules [00000001] main private debug: checking plugin modules [00000001] main private debug: loading plugins cache file /home/bdk/.vlc/cache/plugins-04081e.dat [00000001] main private debug: recursively browsing `/usr/lib/vlc' [00000001] main private debug: module bank initialized, found 225 modules [00000001] main private debug: opening config file /home/bdk/.vlc/vlcrc [00000001] main private debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU [00000001] main private debug: looking for memcpy module: 3 candidates [00000001] main private debug: using memcpy module "memcpymmxext" [00000289] main playlist debug: waiting for thread completion [00000289] main playlist debug: thread 1088432464 (playlist) created at priority 0 (playlist/playlist.c:184) [00000290] main private debug: waiting for thread completion [00000290] main private debug: thread 1096825168 (preparser) created at priority 0 (playlist/playlist.c:210) [00000291] main interface debug: looking for interface module: 1 candidate [00000291] main interface debug: using interface module "hotkeys" [00000291] main interface debug: thread 1105217872 (interface) created at priority 0 (interface/interface.c:231) [00000293] main interface debug: looking for interface module: 1 candidate [00000293] main interface debug: using interface module "screensaver" [00000293] main interface debug: thread 1113610576 (interface) created at priority 0 (interface/interface.c:231) [00000295] main interface debug: looking for interface module: 5 candidates [00000295] main interface debug: using interface module "wxwidgets" [00000295] main interface debug: thread 1122003280 (manager) created at priority 0 (interface/interface.c:216) [00000295] wxwidgets interface debug: Using last windows config '(-1,0,0,1280,800)(0,154,145,425,72)(3,661,249,509,467)(6,0,0,-1,150)' [00000295] wxwidgets interface debug: id=0 p=(154,145) s=(425,72) [00000295] wxwidgets interface debug: id=3 p=(661,249) s=(509,467) [00000295] wxwidgets interface debug: id=6 p=(0,0) s=(-1,150)
It does work on my newly compiled 0.9.3 though:

Code: Select all

VLC media player 0.9.3 Grishenko [00000001] main libvlc debug: VLC media player - version 0.9.3 Grishenko - (c) 1996-2008 the VideoLAN team [00000001] main libvlc debug: libvlc was configured with ./configure '--enable-ffmpeg' '--with-ffmpeg-mp3lame' '--disable-live555' '--enable-v4l' [00000001] main libvlc debug: translation test: code is "C" [00000001] main libvlc debug: checking builtin modules [00000001] main libvlc debug: checking plugin modules
-bdk

bdk907
New Cone
New Cone
Posts: 7
Joined: 10 Mar 2008 22:21
VLC version: 0.9.3
Operating System: ˈlɪnəks
Location: Anchorage, AK

Re: VLC 0.9.3 Compile Error demux.c (Probably my fault though)

Postby bdk907 » 13 Oct 2008 22:23

Sorry for the quick re-post but I just noticed in './configure --help' I'm not seeing the options '--enable-ffmpeg' and '--with-ffmpeg-mp3lame' that I configured 0.9.3 with, is there another list of options? I only ask because I'm trying to stream using the 'Windows wmv/asf' profile and I get an error of 'stream_out_transcode stream out error: cannot find audio encoder (module:any fourcc:wma)'.

On a very positive point I woke up this morning and I'm able to play an h264/mpga file that I had recorded earlier with an earlier version of 0.8.6e.

-bdk

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: VLC 0.9.3 Compile Error demux.c (Probably my fault though)

Postby Jean-Baptiste Kempf » 14 Oct 2008 09:54

Yes, ffmpeg is needed.
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.


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

Who is online

Users browsing this forum: No registered users and 5 guests