Status about streaming out FLV format

About encoding, codec settings, muxers and filter usage
alrama
Blank Cone
Blank Cone
Posts: 21
Joined: 02 Nov 2006 12:11

Status about streaming out FLV format

Postby alrama » 02 Jul 2007 10:24

Someone can give some news about the status of streaming out flv format (wiki article) ? On my side I made these tests:

1. On WinXP, used one of latest nightly build with: vlc.exe udp://@<multicast input> :sout=#transcode{vcodec=FLV1,acodec=mp3,sameplerate=44100}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:1234/stream.flv} . VLC starts and crash immediately .
2. On WinXP, rebuilded it by SVN source. Compiled the source using Win32 Contrib package upgraded with a new libavformat.a and libavcodec.a from ffmpeg source. Source ffmpeg was compiled with a mp3lame new build. Same result of previous attempt.
3. Because maybe other O.S. behave different , I gave a try with a nightly on a Debian virtual machine. I got no better luck

But . someone said they did it .
Some words from these smart guys ?
Last edited by alrama on 06 Jul 2007 09:55, edited 2 times in total.

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: Status about streaming out FLV format

Postby Jean-Baptiste Kempf » 02 Jul 2007 10:56

Just a quick question; do you have mp3lame built in ?
have you tried to just mux=flv?
Log paste ?
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.

alrama
Blank Cone
Blank Cone
Posts: 21
Joined: 02 Nov 2006 12:11

Re: Status about streaming out FLV format

Postby alrama » 02 Jul 2007 11:28

thank you for quick reply !

1. Yes. My ffmpeg configure command: ./configure --target-os=mingw32 --enable-memalign-hack --enable-static --disable-shared --extra-cflags=-I/usr/local/include --cc="gcc -mno-cygwin" --enable-libmp3lame --enable-pp --enable-gpl --prefix=/usr/local --extra-ldflags=-L/usr/local/lib
2. With mux=flv VLC doesn't crash but the stream doesn't start and messages (messages level = 0) show:

main error: Reloading playlist not implemented.
main info: creating httpd
main error: no sout mux module matched "flv"
stream_out_standard error: no suitable sout mux module for `http{mime=video/x-flv}/flv://0.0.0.0:1234/stream.flv'
stream_out_transcode error: cannot create chain
main error: stream chain failed for `transcode{vcodec=FLV1,acodec=mp3,sameplerate=44100}:std{access=http{mime=video/x-flv},mux=flv,dst=0.0.0.0:1234/stream.flv}'
main error: cannot start stream output instance, aborting

3. These are messages recorded (log level=2) until crash:

-- logger module started --
main debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
main debug: looking for memcpy module: 3 candidates
main debug: using memcpy module "memcpymmxext"
main error: Reloading playlist not implemented.
main debug: waiting for thread completion
main debug: thread 3944 (preparser) created at priority 0 (playlist/thread.c:81)
main debug: waiting for thread completion
main debug: thread 3960 (fetcher) created at priority 0 (playlist/thread.c:107)
main debug: waiting for thread completion
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 0 items, index -1
main debug: thread 3964 (playlist) created at priority 0 (playlist/thread.c:117)
main debug: looking for interface module: 1 candidate
main debug: using interface module "hotkeys"
main debug: thread 3988 (interface) created at priority 0 (interface/interface.c:218)
main debug: looking for interface module: 1 candidate
logger: VLC media player - version 0.9.0-svn Grishenko - (c) 1996-2007 the VideoLAN team
logger:
Attenzione: se l'interfaccia grafica non è più accessibile, apri una finestra a linea di comando, vai nella cartella in cui hai installato VLC ed esegui "vlc -I wx"

logger: using logger...
logger warning: no log filename provided, using `vlc-log.txt'
logger debug: opening logfile `vlc-log.txt'
main debug: using interface module "logger"
main debug: thread 4016 (interface) created at priority 0 (interface/interface.c:218)
main debug: adding item `udp://@239.255.100.101:7003' ( udp://@239.255.100.101:7003 )
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: looking for interface module: 3 candidates
main debug: using interface module "qt4"
main debug: starting new item
main debug: changing item without a request (current -1/1)
main debug: using item 0
main debug: creating new input thread
main debug: waiting for thread completion
main debug: stream=`transcode'
main debug: looking for sout stream module: 1 candidate
main debug: stream=`std'
main debug: looking for sout stream module: 1 candidate
main debug: set config option: sout-standard-access to http{mime=video/x-flv}
main debug: set config option: sout-standard-mux to ffmpeg{mux=flv}
main debug: set config option: sout-standard-dst to 0.0.0.0:1234/stream.flv
stream_out_standard debug: creating `http{mime=video/x-flv}/ffmpeg{mux=flv}://0.0.0.0:1234/stream.flv'
stream_out_standard debug: extension is flv
stream_out_standard debug: extension -> mux=ffmpeg{mux=flv}
stream_out_standard debug: using `http{mime=video/x-flv}/ffmpeg{mux=flv}://0.0.0.0:1234/stream.flv'
main debug: looking for sout access module: 1 candidate
main debug: set config option: sout-http-mime to video/x-flv
main: creating httpd
main debug: net: listening to 0.0.0.0 port 1234
main debug: thread 4392 (input) created at priority 1 (input/input.c:331)
main debug: requesting art for udp://@239.255.100.101:7003
main debug: thread 5208 (httpd host thread) created at priority 0 (network/httpd.c:1099)
main debug: using sout access module "access_output_http"
stream_out_standard debug: access opened
main debug: looking for sout mux module: 1 candidate
main debug: set config option: ffmpeg-mux to flv
main debug: using sout mux module "ffmpeg"
stream_out_standard debug: mux opened
main debug: using sout stream module "stream_out_standard"
main debug: set config option: sout-transcode-vcodec to FLV1
main debug: set config option: sout-transcode-acodec to mp3
main warning: option sameplerate is unknown
stream_out_transcode debug: codec audio=mp3 0Hz 0 channels 64Kb/s
stream_out_transcode debug: codec video=FLV1 0x0 scaling: 1,000000 800kb/s
main debug: using sout stream module "stream_out_transcode"
main debug: `udp://@239.255.100.101:7003' gives access `udp' demux `' path `@239.255.100.101:7003'
main debug: creating demux: access='udp' demux='' path='@239.255.100.101:7003'
main debug: looking for access_demux module: 0 candidates
main warning: no access_demux module matched "udp"
main debug: creating access 'udp' path='@239.255.100.101:7003'
main debug: looking for access2 module: 1 candidate
access_udp debug: opening server=:0 local=239.255.100.101:7003
main debug: net: opening 239.255.100.101 datagram port 7003
main debug: Multicast group join request
main debug: IP_ADD_MEMBERSHIP multicast request
main debug: using access2 module "access_udp"
main debug: pre buffering
access_udp debug: detected TS over raw UDP
main debug: creating demux: access='udp' demux='' path='@239.255.100.101:7003'
main debug: looking for demux2 module: 48 candidates
main debug: using demux2 module "ts"
main debug: looking for a subtitle file in C:\Documents and Settings\id\Desktop\
ts debug: DEMUX_SET_GROUP 0 00000000
main debug: starting in sync mode
access_udp warning: unimplemented query in control
main debug: `udp://@239.255.100.101:7003' successfully opened
ts debug: pid[33] unknown
ts debug: pid[34] unknown
ts debug: pid[37] unknown
main debug: control type=13
main debug: art not found for udp://@239.255.100.101:7003
ts debug: PATCallBack called
ts debug: new PAT ts_id=999 version=0 current_next=1
ts debug: * number=1 pid=32
ts debug: PMTCallBack called
ts debug: new PMT program number=1 version=0 pid_pcr=37
ts debug: * es pid=33 type=16 fcc=mp4v
main debug: selecting program id=1
main debug: looking for packetizer module: 18 candidates
main debug: using packetizer module "packetizer_mpeg4video"
main debug: thread 5460 (decoder) created at priority 0 (input/decoder.c:191)
ts debug: * es pid=34 type=3 fcc=mpga
main debug: looking for packetizer module: 18 candidates
main debug: using packetizer module "mpeg_audio"
main debug: thread 5448 (decoder) created at priority 2 (input/decoder.c:191)
mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:64
main debug: adding a new input
stream_out_transcode debug: creating audio transcoding from fcc=`mpga' to fcc=`mp3 '
main debug: looking for decoder module: 25 candidates
main debug: using decoder module "mpeg_audio"
main debug: looking for encoder module: 9 candidates
ffmpeg debug: libavcodec initialized (interface 3352580 )
ffmpeg debug: found encoder MPEG Audio layer 1/2/3
main debug: using encoder module "ffmpeg"
main debug: looking for audio filter2 module: 5 candidates
mpgatofixed32 debug: mpga->fl32, bits per sample: 0
main debug: using audio filter2 module "mpgatofixed32"
main debug: looking for audio filter2 module: 5 candidates
audio_format debug: fl32->s16l, bits per sample: 32
main debug: using audio filter2 module "audio_format"
main debug: adding a new input
ffmpeg debug: adding input
mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:64
ts warning: discontinuity received 0x2 instead of 0xb (pid=33)
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
main debug: adding a new input
stream_out_transcode debug: creating video transcoding from fcc=`mp4v' to fcc=`FLV1'
main debug: looking for decoder module: 25 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: postprocessing disabled
ffmpeg debug: using direct rendering
ffmpeg debug: ffmpeg codec (MPEG-4 Video) started
main debug: using decoder module "ffmpeg"
main debug: looking for encoder module: 9 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: found encoder Flash Video
main debug: using encoder module "ffmpeg"
main debug: removing module "ffmpeg"
stream_out_transcode debug: decoder aspect is 576000:432000
stream_out_transcode debug: source pixel aspect is 1,090909:1
stream_out_transcode debug: scaled pixel aspect is 1,090909:1
stream_out_transcode debug: source 704x576, crop 704x576, destination 704x576, padding 704x576
stream_out_transcode debug: encoder aspect is 576000:432000
main debug: looking for encoder module: 9 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: found encoder Flash Video
main debug: using encoder module "ffmpeg"
main debug: adding a new input
ffmpeg debug: adding input
ts warning: discontinuity received 0x0 instead of 0xa (pid=33)
ts warning: discontinuity received 0xc instead of 0x0 (pid=33)
ts warning: discontinuity received 0x8 instead of 0x2 (pid=33)
ts warning: discontinuity received 0x6 instead of 0x5 (pid=34)
ts warning: discontinuity received 0xe instead of 0x1 (pid=33)
ts warning: discontinuity received 0xe instead of 0xa (pid=34)
ts debug: PATCallBack called
ts warning: discontinuity received 0xf instead of 0xd (pid=33)
ts warning: discontinuity received 0xc instead of 0x2 (pid=34)
ts debug: PATCallBack called


The event Window shows error on
AppName: vlc.exe AppVer: 0.9.0.0 ModName: libffmpeg_plugin.dll
ModVer: 0.0.0.0 Offset: 002db0ae

collintmiller
New Cone
New Cone
Posts: 4
Joined: 27 Jun 2007 23:17

Re: Status about streaming out FLV format

Postby collintmiller » 02 Jul 2007 17:30

Ah, I've had similar questions. But this thread seems to have better seed information.

I hope this can get figured out.

thommyboy
New Cone
New Cone
Posts: 3
Joined: 03 Jul 2007 17:24

Re: Status about streaming out FLV format

Postby thommyboy » 03 Jul 2007 17:27

Any new informationen on VLC streaming out FLV?
I would really appriciate this feature as I need to
"simulate" (offline) a LiveStream in a Flash-
presentation...

Any other ways to do this- like having a (simple)
streaming server installed locally?

Cheers TOM

toejam
New Cone
New Cone
Posts: 4
Joined: 29 Mar 2007 01:00

Re: Status about streaming out FLV format

Postby toejam » 06 Jul 2007 18:58

How to Stream flv with VLC player from TVU Player!!

This is a guide how to stream flv from local computer only.
I've only tested in local computer so if anyone have tried to connect with two computers or other devices like computer (server) and console (client).
Please send a PM to me and describe how you did it.

[Programs you need]

* TVU Player latest version

* VLC Player version 0.8.6a

* VLC Player version 0.9.0-svn

* FLV Player 1.3.3


[Guide]

To get sound in your flv streaming you need to have two VLC Player installed.


Stage #1) Start-up TVU Player and choice a channel you want to see.

Stage #2) Start-up VLC Player 0.8.6a and go to File -> Open networkstream

Stage #3) Choose (( HTTP/HTTPS/FTP/MMS )) then in the URL field type:
127.0.0.1:8901 because it’s the IP address for TVU Player is using for receive tv stream.

Stage #4) Choose (( Stream/Save )) click Settings.

Stage #5) In the settings window check (( HTTP )) and Address field type 127.0.0.1 and Port field type 1234.

Stage #6) In the Encapsulation Method section, choose (( ASF ))
In Transcoding options check Audio codec and choose (( mp3 ))

In the Stream output MRL section it should be like this.

Code: Select all

:sout=#transcode{acodec=mp3,samplerate=44100}:duplicate{dst=display,dst=std{access=http,mux=asf,dst=127.0.0.1:1234}}

Stage #7) Now you start-up the VLC Player 0.9.0-svn from the cmd.
Go to Start -> Run and type in cmd then press enter.
Locate where VLC Player 0.9.0-svn are installed.

When you find where it is located then type in the cmd window::

cd ((your VLC Player 0.9.0-svn path))

and type in this code::

Code: Select all

vlc --sout "#transcode{vcodec=FLV1,acodec=mp3,sameplerate=44100}:std{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:8080/stream.flv}" http://127.0.0.1:1234 --loop -vvv --color -I dummy
Stage #8) Start-up FLV Player and go to url… button in the address bar type in
http://127.0.0.1:8080/stream.flv


Have you done all the stages right then you should see your flv streaming is working.

alrama
Blank Cone
Blank Cone
Posts: 21
Joined: 02 Nov 2006 12:11

Re: Status about streaming out FLV format

Postby alrama » 09 Jul 2007 10:24

thank you for share your solution, toejam.

I attempted to replicate it on my multicast+MPEG-TS+MPEG4 stream. Maybe this one is more critical to manage by ffmpeg codecs because VLC-0.9.0-SVN crash again !
If I have well understood, you suggest to use an intermediate HTTP+ASF+MP3 format to realize it. My source stream is already a network stream so I started a VLC 0.8.6 instance to grab it (bypassing TVU Player first-step) and stream out the intermediate format. Then I run a VLC 0.9.0-SVN instance from command line in the same way you did.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Status about streaming out FLV format

Postby dionoea » 09 Jul 2007 12:35

This is a guide how to stream flv from local computer only.
I've only tested in local computer so if anyone have tried to connect with two computers or other devices like computer (server) and console (client).
Please send a PM to me and describe how you did it.
Since you use "0.0.0.0" in the dst IP address, the server should already then listen on all addresses, which means that you can access it from an other computer using http://<server ip>:<server port>

Note that you can simplify your output command quite a bit and add video and audio bitrates:

Code: Select all

vlc --sout "#transcode{vcodec=FLV1,vb=<some bit rate for video>,acodec=mp3,ab=<some bit rate for audio>,sameplerate=44100}:std{access=http,dst=0.0.0.0:8080/stream.flv}" <some input> --loop -vvv --color -I dummy
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

alrama
Blank Cone
Blank Cone
Posts: 21
Joined: 02 Nov 2006 12:11

Re: Status about streaming out FLV format

Postby alrama » 17 Jul 2007 12:58

No kind of response ? Kind of: you are wrong, your source isn't good to encode to, we have some problems on flv streaming yet , we wont do it anymore, ... :roll:

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Status about streaming out FLV format

Postby dionoea » 17 Jul 2007 16:29

It's most likely due to a Windows specific bug. Just to make sure, can you dump 1 or 2 MB of that input ts stream, try to encode the dump and see if it still fails and if it does host the file somewhere so I can give it a try? (I only run linux, but at least I'd be able to confirm that it's somehow a Windows related issue.)
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

alrama
Blank Cone
Blank Cone
Posts: 21
Joined: 02 Nov 2006 12:11

Re: Status about streaming out FLV format

Postby alrama » 17 Jul 2007 17:00

Thank you dionoea, I did it. Convert/save (input recorded no conversion) a couple of MB of source netstream. Then I attempted to stream it by:
"C:\Documents and Settings\id\Desktop\vlc-0.9.0-svn\vlc.exe" --sout=#transcode{vcodec=FLV1,acodec=mp3,sameplerate=44100}:std{access=http{mime=video/x-flv},dst=0.0.0.0:1234/stream.flv} "c:\Documents and Settings\id\Desktop\dump.mpg"
It crash again.
So I put dump.mpg here.
If Linux is able to manage it I could afford to build VLC on it

thommyboy
New Cone
New Cone
Posts: 3
Joined: 03 Jul 2007 17:24

Re: Status about streaming out FLV format

Postby thommyboy » 19 Jul 2007 09:05

hi toejam,
is this the only (simpliest) way to make vlc stream flv?
flv is getting so important- i was just hoping someone
yould implement it in vlc directly ;-)
cheers TOM

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Status about streaming out FLV format

Postby dionoea » 19 Jul 2007 13:35

hi toejam,
is this the only (simpliest) way to make vlc stream flv?
flv is getting so important- i was just hoping someone
yould implement it in vlc directly ;-)
cheers TOM
It is implemented in VLC directly.

@alrama: I haven't had time to give it a try yet. I might have time today.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

alrama
Blank Cone
Blank Cone
Posts: 21
Joined: 02 Nov 2006 12:11

Re: Status about streaming out FLV format

Postby alrama » 19 Jul 2007 13:52

thank you dionea and toejam, now I'm be able to get it works !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You both were right.
First of all I managed to build VLC 0.9 on Linux (only when Wiki was up again) . Using that one I got "unable to write header" (or something so) but none crashed here. So I used a 0.8.6c instance to first convert source stream piped to my brand new 0.9.0 to finally stream out "much wished" http://0.0.0.0:1234/stream.flv .

best regards to you all and I wish a long life to Videolan project
Last edited by alrama on 20 Jul 2007 08:50, edited 1 time in total.

thommyboy
New Cone
New Cone
Posts: 3
Joined: 03 Jul 2007 17:24

Re: Status about streaming out FLV format

Postby thommyboy » 19 Jul 2007 15:46

it is? but not on windows?
i can use flv as input but the resulting output stream
is not flv, only asf, mpeg supported when creating
a http stream

alrama
Blank Cone
Blank Cone
Posts: 21
Joined: 02 Nov 2006 12:11

Re: Status about streaming out FLV format

Postby alrama » 20 Jul 2007 09:11

For my experience, yes. Maybe I could have made some mistakes, building VLC on windows, maybe it could work on Windows too. Anyway this is what I did there:
  • Downloaded and setup Cygwin+Win32 contrib as in wiki
  • Downloaded Lamemp3 sources, ./configure, make, make install
  • Downloaded ffmpeg sources, ./configure --target-os=mingw32 --enable-memalign-hack --enable-static --disable-shared --enable-network --extra-cflags=-I/usr/local/include --cc="gcc -mno-cygwin" --enable-libmp3lame --enable-protocol=rtp --enable-protocol=udp --enable-pp --enable-gpl --prefix=/usr/local --extra-ldflags=-L/usr/local/lib , make
  • copy builded libavcodec.a and libavformat.a over win32 contrib folder
  • Downloaded VLC src, ./bootstrap && CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" LDFLAGS=-L/usr/win32/lib PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" , ./configure --enable-sdl --with-sdl-config-path=/usr/win32/bin --disable-gtk --enable-nls --enable-ffmpeg --with-ffmpeg-mp3lame --with-wx-config-path=/usr/win32/bin --with-freetype-config-path=/usr/win32/bin --with-fribidi-config-path=/usr/win32/bin --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 --disable-gnomevfs
  • make, make package-win32-zip
maybe someone can pick up which was my mistake(s) here.

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Status about streaming out FLV format

Postby dionoea » 20 Jul 2007 11:22

And that doesn't work?

What ffmpeg version are you using? What configure flags did you provide in ffmpeg?
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

alrama
Blank Cone
Blank Cone
Posts: 21
Joined: 02 Nov 2006 12:11

Re: Status about streaming out FLV format

Postby alrama » 20 Jul 2007 12:00

ffmpeg source tarball: ffmpeg-export-2007-05-22

ffmpeg configure command:

./configure --target-os=mingw32 --enable-memalign-hack --enable-static --disable-shared --enable-network --extra-cflags=-I/usr/local/include --cc="gcc -mno-cygwin" --enable-libmp3lame --enable-protocol=rtp --enable-protocol=udp --enable-pp --enable-gpl --prefix=/usr/local --extra-ldflags=-L/usr/local/lib

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Status about streaming out FLV format

Postby dionoea » 20 Jul 2007 12:02

Should be fine ... although you should always use the latest ffmpeg version (ie svn trunk). But FLV streaming definitively worked in may. Can you try adding --disable-swscaler to the ffmpeg configure line?
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

alrama
Blank Cone
Blank Cone
Posts: 21
Joined: 02 Nov 2006 12:11

Re: Status about streaming out FLV format

Postby alrama » 20 Jul 2007 14:35

I rebuilt all (ffmpeg with --disable-swscaler) and run again. Same result. I put messages level=2 and post recorded output. I'm going to spend some weeks on holiday so I won't be here for a while ...

cheers
Alberto Ramacciotti

-- logger module started --
main debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
main debug: looking for memcpy module: 3 candidates
main debug: using memcpy module "memcpymmxext"
main error: Reloading playlist not implemented.
main debug: waiting for thread completion
main debug: thread 4052 (preparser) created at priority 0 (playlist/thread.c:81)
main debug: waiting for thread completion
main debug: thread 4068 (fetcher) created at priority 0 (playlist/thread.c:107)
main debug: waiting for thread completion
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 0 items, index -1
main debug: thread 4072 (playlist) created at priority 0 (playlist/thread.c:117)
main debug: looking for interface module: 1 candidate
main debug: using interface module "hotkeys"
main debug: thread 4100 (interface) created at priority 0 (interface/interface.c:218)
main debug: looking for interface module: 1 candidate
logger: VLC media player - version 0.9.0-svn Grishenko - (c) 1996-2007 the VideoLAN team
logger:
Attenzione: se l'interfaccia grafica non è più accessibile, apri una finestra a linea di comando, vai nella cartella in cui hai installato VLC ed esegui "vlc -I wx"

logger: using logger...
logger warning: no log filename provided, using `vlc-log.txt'
logger debug: opening logfile `vlc-log.txt'
main debug: using interface module "logger"
main debug: thread 4128 (interface) created at priority 0 (interface/interface.c:218)
main debug: adding item `udp://@239.255.100.101:7003' ( udp://@239.255.100.101:7003 )
main debug: looking for interface module: 4 candidates
main debug: using interface module "qt4"
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: starting new item
main debug: changing item without a request (current -1/1)
main debug: using item 0
main debug: creating new input thread
main debug: waiting for thread completion
main debug: stream=`transcode'
main debug: looking for sout stream module: 1 candidate
main debug: thread 4500 (input) created at priority 1 (input/input.c:331)
main debug: stream=`std'
main debug: looking for sout stream module: 1 candidate
main debug: set config option: sout-standard-access to http{mime=video/x-flv}
main debug: set config option: sout-standard-dst to 0.0.0.0:1234/stream.flv
stream_out_standard debug: creating `http{mime=video/x-flv}/(null)://0.0.0.0:1234/stream.flv'
stream_out_standard debug: extension is flv
stream_out_standard debug: extension -> mux=ffmpeg{mux=flv}
stream_out_standard debug: using `http{mime=video/x-flv}/ffmpeg{mux=flv}://0.0.0.0:1234/stream.flv'
main debug: looking for sout access module: 1 candidate
main debug: set config option: sout-http-mime to video/x-flv
main: creating httpd
main debug: net: listening to 0.0.0.0 port 1234
main debug: requesting art for udp://@239.255.100.101:7003
main debug: thread 5332 (httpd host thread) created at priority 0 (network/httpd.c:1099)
main debug: using sout access module "access_output_http"
stream_out_standard debug: access opened
main debug: looking for sout mux module: 1 candidate
main debug: set config option: ffmpeg-mux to flv
main debug: using sout mux module "ffmpeg"
stream_out_standard debug: mux opened
main debug: using sout stream module "stream_out_standard"
main debug: set config option: sout-transcode-vcodec to FLV1
main debug: set config option: sout-transcode-acodec to mp3
main warning: option sameplerate is unknown
stream_out_transcode debug: codec audio=mp3 0Hz 0 channels 64Kb/s
stream_out_transcode debug: codec video=FLV1 0x0 scaling: 1,000000 800kb/s
main debug: using sout stream module "stream_out_transcode"
main debug: `udp://@239.255.100.101:7003' gives access `udp' demux `' path `@239.255.100.101:7003'
main debug: creating demux: access='udp' demux='' path='@239.255.100.101:7003'
main debug: looking for access_demux module: 0 candidates
main warning: no access_demux module matched "udp"
main debug: creating access 'udp' path='@239.255.100.101:7003'
main debug: looking for access2 module: 1 candidate
access_udp debug: opening server=:0 local=239.255.100.101:7003
main debug: net: opening 239.255.100.101 datagram port 7003
main debug: Multicast group join request
main debug: IP_ADD_MEMBERSHIP multicast request
main debug: using access2 module "access_udp"
main debug: pre buffering
access_udp debug: detected TS over raw UDP
main debug: creating demux: access='udp' demux='' path='@239.255.100.101:7003'
main debug: looking for demux2 module: 48 candidates
main debug: using demux2 module "ts"
main debug: looking for a subtitle file in C:\Documents and Settings\id\Desktop\vlc-0.9.0-svn\
ts debug: DEMUX_SET_GROUP 0 00000000
main debug: starting in sync mode
access_udp warning: unimplemented query in control
main debug: `udp://@239.255.100.101:7003' successfully opened
ts debug: pid[33] unknown
ts debug: PATCallBack called
ts debug: new PAT ts_id=999 version=0 current_next=1
ts debug: * number=1 pid=32
ts debug: pid[37] unknown
ts debug: pid[34] unknown
main debug: art not found for udp://@239.255.100.101:7003
ts debug: PMTCallBack called
ts debug: new PMT program number=1 version=0 pid_pcr=37
ts debug: * es pid=33 type=16 fcc=mp4v
main debug: selecting program id=1
main debug: looking for packetizer module: 18 candidates
main debug: using packetizer module "packetizer_mpeg4video"
main debug: thread 5564 (decoder) created at priority 0 (input/decoder.c:191)
ts debug: * es pid=34 type=3 fcc=mpga
main debug: looking for packetizer module: 18 candidates
main debug: using packetizer module "mpeg_audio"
main debug: thread 5552 (decoder) created at priority 2 (input/decoder.c:191)
ts warning: first packet for pid=33 cc=0xc
ts warning: first packet for pid=34 cc=0x8
mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:64
main debug: adding a new input
stream_out_transcode debug: creating audio transcoding from fcc=`mpga' to fcc=`mp3 '
main debug: looking for decoder module: 28 candidates
main debug: using decoder module "mpeg_audio"
main debug: looking for encoder module: 10 candidates
ffmpeg debug: libavcodec initialized (interface 3352580 )
ffmpeg debug: found encoder MPEG Audio layer 1/2/3
ts warning: discontinuity received 0x8 instead of 0x2 (pid=33)
main debug: using encoder module "ffmpeg"
main debug: looking for audio filter2 module: 5 candidates
mpgatofixed32 debug: mpga->fl32, bits per sample: 0
main debug: using audio filter2 module "mpgatofixed32"
main debug: looking for audio filter2 module: 5 candidates
audio_format debug: fl32->s16l, bits per sample: 32
main debug: using audio filter2 module "audio_format"
main debug: adding a new input
ffmpeg debug: adding input
ts warning: discontinuity received 0xe instead of 0xc (pid=34)
mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:64
ts warning: discontinuity received 0x3 instead of 0xc (pid=33)
ts warning: discontinuity received 0xd instead of 0x1 (pid=33)
ts warning: discontinuity received 0x2 instead of 0x0 (pid=34)
ts debug: PATCallBack called
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
ts warning: discontinuity received 0x8 instead of 0x3 (pid=33)
ts warning: discontinuity received 0xd instead of 0x6 (pid=33)
main debug: adding a new input
ts warning: discontinuity received 0x0 instead of 0xe (pid=34)
ts warning: discontinuity received 0x2 instead of 0xd (pid=33)
stream_out_transcode debug: creating video transcoding from fcc=`mp4v' to fcc=`FLV1'
main debug: looking for decoder module: 28 candidates
ts warning: discontinuity received 0x1 instead of 0x5 (pid=33)
ffmpeg debug: libavcodec already initialized
ts debug: PATCallBack called
ts warning: discontinuity received 0xa instead of 0x8 (pid=34)
ffmpeg debug: postprocessing disabled
ffmpeg debug: using direct rendering
ffmpeg debug: ffmpeg codec (MPEG-4 Video) started
main debug: using decoder module "ffmpeg"
main debug: looking for encoder module: 10 candidates
ffmpeg debug: libavcodec already initialized
ts warning: discontinuity received 0xd instead of 0x5 (pid=33)
ts warning: discontinuity received 0xc instead of 0xa (pid=34)
ts debug: PATCallBack called
ffmpeg debug: found encoder Flash Video
main debug: using encoder module "ffmpeg"
main debug: removing module "ffmpeg"
ffmpeg warning: Error at MB: 119
(mpeg4@04865560)
ffmpeg debug: concealing 1516 DC, 1516 AC, 1516 MV errors
(mpeg4@04865560)
stream_out_transcode debug: decoder aspect is 576000:432000
stream_out_transcode debug: source pixel aspect is 1,090909:1
stream_out_transcode debug: scaled pixel aspect is 1,090909:1
stream_out_transcode debug: source 704x576, crop 704x576, destination 704x576, padding 704x576
stream_out_transcode debug: encoder aspect is 576000:432000
main debug: looking for encoder module: 10 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: found encoder Flash Video
main debug: using encoder module "ffmpeg"
main debug: adding a new input
ffmpeg debug: adding input
ts warning: discontinuity received 0x6 instead of 0xd (pid=33)
ts warning: discontinuity received 0x6 instead of 0x4 (pid=34)
ts warning: discontinuity received 0x7 instead of 0x3 (pid=33)
ts warning: discontinuity received 0x9 instead of 0x4 (pid=33)
ts warning: discontinuity received 0x6 instead of 0x2 (pid=34)
ts debug: PATCallBack called
ts warning: discontinuity received 0x2 instead of 0xb (pid=33)
ts warning: discontinuity received 0xb instead of 0xf (pid=33)
ts warning: discontinuity received 0x2 instead of 0x1 (pid=34)
ts debug: PATCallBack called
ts warning: discontinuity received 0xa instead of 0xf (pid=33)
ts warning: discontinuity received 0x8 instead of 0x6 (pid=34)
ts warning: discontinuity received 0x9 instead of 0x2 (pid=33)
ts warning: discontinuity received 0x6 instead of 0x4 (pid=34)
ts debug: PATCallBack called
ts warning: discontinuity received 0x2 instead of 0xf (pid=33)
ts warning: discontinuity received 0x2 instead of 0x0 (pid=34)
ts warning: discontinuity received 0x5 instead of 0x4 (pid=34)
ts warning: discontinuity received 0x0 instead of 0xa (pid=33)
ts warning: discontinuity received 0x5 instead of 0xf (pid=33)
ts warning: discontinuity received 0xe instead of 0xd (pid=34)

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Status about streaming out FLV format

Postby dionoea » 20 Jul 2007 14:40

You might want to try using samplerate instead of sameplerate in transcode :) Your mp3 has a 48 kHz samplerate and FLV can only use 44.1 kHz, 22.05 kHz and 11.025 kHz.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

alrama
Blank Cone
Blank Cone
Posts: 21
Joined: 02 Nov 2006 12:11

Re: Status about streaming out FLV format

Postby alrama » 20 Jul 2007 14:45

Yes Antoine I already do it on Windows and Linux. My command line:

cd "\Documents and Settings\id\Desktop\vlc-0.9.0-svn"
"vlc.exe" --sout=#transcode{vcodec=FLV1,acodec=mp3,sameplerate=44100}:std{access=http{mime=video/x-flv},dst=0.0.0.0:1234/stream.flv} udp://@239.255.100.101:7003

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Status about streaming out FLV format

Postby dionoea » 20 Jul 2007 14:46

samplerate !!!!!! not sameeeeeeeeeeeeeeeeeeeeeeeplerate.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

alrama
Blank Cone
Blank Cone
Posts: 21
Joined: 02 Nov 2006 12:11

Re: Status about streaming out FLV format

Postby alrama » 20 Jul 2007 14:50

You're right. On windows I made a mistake. Corrected but nothing changed. Reposting new vlc-log.txt:

-- logger module started --
main debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
main debug: looking for memcpy module: 3 candidates
main debug: using memcpy module "memcpymmxext"
main error: Reloading playlist not implemented.
main debug: waiting for thread completion
main debug: thread 4052 (preparser) created at priority 0 (playlist/thread.c:81)
main debug: waiting for thread completion
main debug: thread 4068 (fetcher) created at priority 0 (playlist/thread.c:107)
main debug: waiting for thread completion
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 0 items, index -1
main debug: thread 4072 (playlist) created at priority 0 (playlist/thread.c:117)
main debug: looking for interface module: 1 candidate
main debug: using interface module "hotkeys"
main debug: thread 4100 (interface) created at priority 0 (interface/interface.c:218)
main debug: looking for interface module: 1 candidate
logger: VLC media player - version 0.9.0-svn Grishenko - (c) 1996-2007 the VideoLAN team
logger:
Attenzione: se l'interfaccia grafica non è più accessibile, apri una finestra a linea di comando, vai nella cartella in cui hai installato VLC ed esegui "vlc -I wx"

logger: using logger...
logger warning: no log filename provided, using `vlc-log.txt'
logger debug: opening logfile `vlc-log.txt'
main debug: using interface module "logger"
main debug: thread 4128 (interface) created at priority 0 (interface/interface.c:218)
main debug: adding item `udp://@239.255.100.101:7003' ( udp://@239.255.100.101:7003 )
main debug: looking for interface module: 4 candidates
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 1 items, index -1
main debug: using interface module "qt4"
main debug: starting new item
main debug: changing item without a request (current -1/1)
main debug: using item 0
main debug: creating new input thread
main debug: waiting for thread completion
main debug: stream=`transcode'
main debug: looking for sout stream module: 1 candidate
main debug: thread 4496 (input) created at priority 1 (input/input.c:331)
main debug: stream=`std'
main debug: looking for sout stream module: 1 candidate
main debug: set config option: sout-standard-access to http{mime=video/x-flv}
main debug: set config option: sout-standard-dst to 0.0.0.0:1234/stream.flv
stream_out_standard debug: creating `http{mime=video/x-flv}/(null)://0.0.0.0:1234/stream.flv'
stream_out_standard debug: extension is flv
stream_out_standard debug: extension -> mux=ffmpeg{mux=flv}
stream_out_standard debug: using `http{mime=video/x-flv}/ffmpeg{mux=flv}://0.0.0.0:1234/stream.flv'
main debug: looking for sout access module: 1 candidate
main debug: set config option: sout-http-mime to video/x-flv
main: creating httpd
main debug: net: listening to 0.0.0.0 port 1234
main debug: requesting art for udp://@239.255.100.101:7003
main debug: thread 5332 (httpd host thread) created at priority 0 (network/httpd.c:1099)
main debug: using sout access module "access_output_http"
stream_out_standard debug: access opened
main debug: looking for sout mux module: 1 candidate
main debug: set config option: ffmpeg-mux to flv
main debug: using sout mux module "ffmpeg"
stream_out_standard debug: mux opened
main debug: using sout stream module "stream_out_standard"
main debug: set config option: sout-transcode-vcodec to FLV1
main debug: set config option: sout-transcode-acodec to mp3
main debug: set config option: sout-transcode-samplerate to 44100
stream_out_transcode debug: codec audio=mp3 44100Hz 0 channels 64Kb/s
stream_out_transcode debug: codec video=FLV1 0x0 scaling: 1,000000 800kb/s
main debug: using sout stream module "stream_out_transcode"
main debug: `udp://@239.255.100.101:7003' gives access `udp' demux `' path `@239.255.100.101:7003'
main debug: creating demux: access='udp' demux='' path='@239.255.100.101:7003'
main debug: looking for access_demux module: 0 candidates
main warning: no access_demux module matched "udp"
main debug: creating access 'udp' path='@239.255.100.101:7003'
main debug: looking for access2 module: 1 candidate
access_udp debug: opening server=:0 local=239.255.100.101:7003
main debug: net: opening 239.255.100.101 datagram port 7003
main debug: Multicast group join request
main debug: IP_ADD_MEMBERSHIP multicast request
main debug: using access2 module "access_udp"
main debug: pre buffering
access_udp debug: detected TS over raw UDP
main debug: creating demux: access='udp' demux='' path='@239.255.100.101:7003'
main debug: looking for demux2 module: 48 candidates
main debug: using demux2 module "ts"
main debug: looking for a subtitle file in C:\Documents and Settings\id\Desktop\vlc-0.9.0-svn\
ts debug: DEMUX_SET_GROUP 0 00000000
main debug: starting in sync mode
access_udp warning: unimplemented query in control
main debug: `udp://@239.255.100.101:7003' successfully opened
ts debug: pid[33] unknown
ts debug: PATCallBack called
ts debug: new PAT ts_id=999 version=0 current_next=1
ts debug: * number=1 pid=32
ts debug: pid[37] unknown
ts debug: pid[34] unknown
main debug: art not found for udp://@239.255.100.101:7003
ts debug: PMTCallBack called
ts debug: new PMT program number=1 version=0 pid_pcr=37
ts debug: * es pid=33 type=16 fcc=mp4v
main debug: selecting program id=1
main debug: looking for packetizer module: 18 candidates
main debug: using packetizer module "packetizer_mpeg4video"
main debug: thread 5560 (decoder) created at priority 0 (input/decoder.c:191)
ts debug: * es pid=34 type=3 fcc=mpga
main debug: looking for packetizer module: 18 candidates
main debug: using packetizer module "mpeg_audio"
main debug: thread 5548 (decoder) created at priority 2 (input/decoder.c:191)
ts warning: first packet for pid=33 cc=0x4
ts warning: first packet for pid=34 cc=0x2
mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:64
main debug: adding a new input
stream_out_transcode debug: creating audio transcoding from fcc=`mpga' to fcc=`mp3 '
main debug: looking for decoder module: 28 candidates
main debug: using decoder module "mpeg_audio"
main debug: looking for encoder module: 10 candidates
ffmpeg debug: libavcodec initialized (interface 3352580 )
ffmpeg debug: found encoder MPEG Audio layer 1/2/3
main debug: using encoder module "ffmpeg"
main debug: looking for audio filter2 module: 5 candidates
mpgatofixed32 debug: mpga->fl32, bits per sample: 0
main debug: using audio filter2 module "mpgatofixed32"
main debug: looking for audio filter2 module: 5 candidates
linear_resampler debug: fl32/48000KHz/2->s16l/44100KHz/2
main debug: using audio filter2 module "linear_resampler"
main debug: looking for audio filter2 module: 5 candidates
audio_format debug: fl32->s16l, bits per sample: 32
main debug: using audio filter2 module "audio_format"
main debug: adding a new input
ffmpeg debug: adding input
ts warning: discontinuity received 0xf instead of 0x8 (pid=33)
mpeg_audio debug: MPGA channels:2 samplerate:48000 bitrate:64
ts warning: discontinuity received 0x6 instead of 0xf (pid=33)
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
packetizer_mpeg4video warning: waiting for VOL
main debug: adding a new input
stream_out_transcode debug: creating video transcoding from fcc=`mp4v' to fcc=`FLV1'
main debug: looking for decoder module: 28 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: postprocessing disabled
ffmpeg debug: using direct rendering
ffmpeg debug: ffmpeg codec (MPEG-4 Video) started
main debug: using decoder module "ffmpeg"
main debug: looking for encoder module: 10 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: found encoder Flash Video
main debug: using encoder module "ffmpeg"
main debug: removing module "ffmpeg"
stream_out_transcode debug: decoder aspect is 576000:432000
stream_out_transcode debug: source pixel aspect is 1,090909:1
stream_out_transcode debug: scaled pixel aspect is 1,090909:1
stream_out_transcode debug: source 704x576, crop 704x576, destination 704x576, padding 704x576
stream_out_transcode debug: encoder aspect is 576000:432000
main debug: looking for encoder module: 10 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: found encoder Flash Video
main debug: using encoder module "ffmpeg"
main debug: adding a new input
ffmpeg debug: adding input
ts warning: discontinuity received 0xe instead of 0x5 (pid=33)
ts warning: discontinuity received 0xe instead of 0xa (pid=34)
ts debug: PATCallBack called
ts warning: discontinuity received 0x0 instead of 0xe (pid=33)
ts warning: discontinuity received 0x2 instead of 0x8 (pid=34)
ts debug: PATCallBack called
ts warning: discontinuity received 0x1 instead of 0x0 (pid=34)
ts warning: discontinuity received 0xb instead of 0x5 (pid=33)
ts warning: discontinuity received 0xd instead of 0x1 (pid=33)
ts warning: discontinuity received 0xc instead of 0xa (pid=34)
ts warning: discontinuity received 0xe instead of 0x7 (pid=33)
ts warning: discontinuity received 0x3 instead of 0xe (pid=33)
ts debug: PATCallBack called
ts warning: discontinuity received 0x1 instead of 0xa (pid=33)
ts warning: discontinuity received 0x0 instead of 0xc (pid=33)
ts warning: discontinuity received 0xc instead of 0xa (pid=34)
ts warning: discontinuity received 0xe instead of 0x8 (pid=33)

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Status about streaming out FLV format

Postby dionoea » 20 Jul 2007 14:56

I can't see any error. Can you try outputing to a file instead and playing that with VLC? (std{access=file,dst=somename.flv})
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 21 guests