about Stream output in VLC

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
xzheng
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Jul 2004 07:48

about Stream output in VLC

Postby xzheng » 19 Jul 2004 08:12

Hi,
how are you. I hear there is VLS funtion in VLC. How can I get from the source of VLC 0.7.2? Can you help to tell whice lib or doc there is?

sam

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 19 Jul 2004 13:22

For general documentation, see:
http://videolan.org/doc/

For a short write-up on streaming, see wiki.videolan.org. Under Articles there is a UDP streaming example.

xzheng
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Jul 2004 07:48

Postby xzheng » 21 Jul 2004 03:18

hi,markfm,
how are you doing. Thank you for helping me. I can stream with the VLC because you tell me how to do . Now I want to develop the server program of a UDP streaming with VLC. But I don't know which the interface of VLC is. Can you tell me the DLL I want in VLC or tell me where find the articles for helping?

Best regards

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 21 Jul 2004 03:27

About a week back, I believe, DJ posted something discussing the order of processing, going from the initial input (e.g., frame grabber) to the output stream.

For general use, vlc works well run as a batch/script/command file. I work with Windows, so in my case I have vlc parked in c:\vlc\vlc.exe

I can pretty much launch any stream I want using a command of the form:
c:\vlc\vlc.exe thing_to_stream how_I_want_it_streamed

You can get the information on proper things to put in for thing_to_stream and how_I-want_it_streamed by "playing" with the Streaming Wizard. Up in the top of Steps 1 and 2 are little command windows, where the Wizard stuffs the proper information. For instance, at Step 2 you might choose UDP, MPEG4 video at 768 kbps, mp3 audio at 192 kbps, MPEG TS encapsulation -- you can copy what's in the top of the window, use that in your command line.

This is just a hint. As written now, VLC isn't, say, an ActiveX component. It does provide very powerful command line operation, but not a classic accessible API. If I wanted to automate things, I would think in terms of using Shell commands to launch VLC, control its operation, and a third-party app like process.exe to control killing instances of VLC that I needed to stop.

xzheng
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Jul 2004 07:48

Postby xzheng » 21 Jul 2004 11:40

markfm,thanks a lot for helping me.
I can do it with binary code of VLC. and can do it with command line like "c:\vlc\vlc.exe thing_to_stream how_I_want_it_streamed". But the vlc.exe that I compile the VLC 0.7.2 with VC++ in windows2K can not do it successful.
the follow:
c:\vlc\vlc.exe test.mpe :sout=#duplicate{dst=std{access=udp,mux=ts,url=127.0.0.1:1234}}
as result:
[00000063] rc interface: VLC media player - version 0.7.2 Bond - (c) 1996-2004 V
ideoLAN
[00000063] rc interface:
Warning: if you can't access the GUI anymore, open a dos command box, go to the
directory where you installed VLC and run "vlc -I wxwin"

Remote control interface initialized, `h' for help
[00000064] main input: playlist item `test.mpe'
[00000066] main private error: no sout stream module matched "duplicate"
[00000065] main stream output error: stream chained failed for `duplicate{dst=st
d{access=udp,mux=ts,url=127.0.0.1:1234}}'
[00000065] main stream output error: cannot delete object (65, (null)) with a pa
rent
[00000064] main input error: cannot start stream output instance, aborting
[00000064] main input error: cannot delete object (64, (null)) with children

otherwise,I download the setup.exe of cygwin,and execute ,I select "install from local directory",but execute cygwin and don't find anything. Now I download it in selecting "install form internet",but it takes me for long time and don't finish . How can I do?
Now I don't get anything from the source of VLC, and I can see the funtion from the binary VLC. Can you provide the simple Demo about the VLS in windows OS?

Best regards

markfm
Big Cone-huna
Big Cone-huna
Posts: 1536
Joined: 22 Feb 2004 17:42

Postby markfm » 21 Jul 2004 12:31

Sorry I cannot be of much help on this. Visual C has problems with VLC -- there are multiple posts about it.

For Cygwin, you do have to start by downloading from the Internet. In the Setup program there are three choices -- one of them lets you download the files to a local directory. It does take a long time, but each individual package is not too large.

I would probably try Cygwin, use the download-to-local-disk approach, use theonlinerecordstore.com as the selected location to download from. Use the list of packages in the Appendix of the VLC Compile Environment document as the guide for which packages to download. Run Setup a couple of times, getting as many packages onto my local hard disk as I can each time I run it. After a couple of tries you should end up getting all of the packages. Then run Cygwin using the install-from-local-disk approach.

Guest

Postby Guest » 22 Jul 2004 11:00

First of all, thank markfm,
Here I have a new problem. Now I had set up Cygwin, It's OK. And
In your Cygwin shell, enter:
tar xjvf contrib-20040413-win32-bin-gcc3.3.1-only.tar.bz2 -C /
It's OK too.
Then,c:\program files\subversion\bin\svn" co svn://svn.videolan.org/vlc/trunk vlc-trunk
It's OK too.
But,
When I do it like the follow: the filename is config_setup
./bootstrap && \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ \
./configure --host=i586-mingw32msvc --build=i386-linux \
--disable-sdl --disable-gtk \
--enable-nls \
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--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-livedotcom --with-livedotcom-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-debug
as a result:
Administrator@rds-xz /home/vlc-trunk
$ ../config_setup
+ AUTOMAKESUCKS=no
+ INSTALLSUCKS=no
+ ACLOCAL_ARGS=-I m4
+ test -d extras/contrib/bin
+ amvers=none
+ automake-1.7 --version
automake-1.7: not found
+ automake-1.6 --version
automake-1.6: not found
+ automake-1.5 --version
automake-1.5: not found
+ automake --version
automake: not found
+ test none = none
+ set +x
you need automake version 1.5 or later

Can you tell what 's wrong with it?
Where do I find the "aotomake"?

Best regards

xzheng
Blank Cone
Blank Cone
Posts: 16
Joined: 19 Jul 2004 07:48

Postby xzheng » 22 Jul 2004 11:04

First of all, thank markfm,
Here I have a new problem. Now I had set up Cygwin, It's OK. And
In your Cygwin shell, enter:
tar xjvf contrib-20040413-win32-bin-gcc3.3.1-only.tar.bz2 -C /
It's OK too.
Then,c:\program files\subversion\bin\svn" co svn://svn.videolan.org/vlc/trunk vlc-trunk
It's OK too.
But,
When I do it like the follow: the filename is config_setup
./bootstrap && \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ \
./configure --host=i586-mingw32msvc --build=i386-linux \
--disable-sdl --disable-gtk \
--enable-nls \
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--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-livedotcom --with-livedotcom-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-debug
as a result:
Administrator@rds-xz /home/vlc-trunk
$ ../config_setup
+ AUTOMAKESUCKS=no
+ INSTALLSUCKS=no
+ ACLOCAL_ARGS=-I m4
+ test -d extras/contrib/bin
+ amvers=none
+ automake-1.7 --version
automake-1.7: not found
+ automake-1.6 --version
automake-1.6: not found
+ automake-1.5 --version
automake-1.5: not found
+ automake --version
automake: not found
+ test none = none
+ set +x
you need automake version 1.5 or later

Can you tell what 's wrong with it?
Where do I find the "aotomake"?

Best regards


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 27 guests