mmsh module fails (unsuported while muxing for this format)

About encoding, codec settings, muxers and filter usage
Prutser
Blank Cone
Blank Cone
Posts: 20
Joined: 11 Jun 2004 11:52
Location: The Netherlands

mmsh module fails (unsuported while muxing for this format)

Postby Prutser » 02 Sep 2004 11:49

Hi folks,

I'm trying to feed a vanilla WMP from vlc. I've read most of the forum messages on this topic and used MMSH output on vlc with MPEG-TS encapsulation and WMV1/mp3 transcoding.

Problem is, when I press play on vlc, it appears to start playing (I've disabled play-locally), but in the messages pane I see:

main debug: using encoder module "ffmpeg"
stream_out_duplicate debug: duplicated a new stream codec=mpga (es=68 group=1)
main error: cannot add a new stream (unsuported while muxing for this format)
stream_out_duplicate debug: - failed for output 0
main error: cannot create packetizer output
...
main error: cannot add a new stream (unsuported while muxing for this format)
stream_out_duplicate debug: - failed for output 0
stream_out_transcode error: cannot add this stream

It displays the errors in red. Now when I point WMP client (or even vlc) to it, it doesn't work. Looks like the clients never get any input.
I've also fiddled around with different encapsulation (asf, avi) and transcoding (wmv2, div2, div3) in all permutations, but without success. However, when I select plain HTTP as output method it does work (only with a vlc client of course, as vanilla WMP refuses to read from plain http).

Is there something wrong with my vlc installation or is MMSH flawed? Note that I've tried it on Linux (Fedora Core 2) and Win2003. Both give the same error when I select MMSH output.

cheers,
Erik





Below is the full messages output window:

main debug: adding playlist item `/mnt/mp3/24-1/24-1-01.mpeg' ( /mnt/mp3/24-1/24-1-01.mpeg )
main debug: 562 loops consuming user: 17, system: 2
main debug: dumping stream ID 0x0 [OK:0/D:0]
main debug: seekable stream, position: 21131200/308516648 (-:--:--/-:--:--)
main debug: dumping program 0x1, version 0 (partial)
main debug: ES 0x42, stream 0x0, fourcc `pmt ', not selected [OK:683/ERR:0]
main debug: ES 0x44, stream 0x0, fourcc `mpgv', selected [OK:90531/ERR:0]
main debug: ES 0x45, stream 0x0, fourcc `mpga', selected [OK:20471/ERR:0]
main debug: unlocking module "mpeg_system"
main debug: unlocking module "ts_dvbpsi"
main debug: unselecting ES 0x44
main debug: unlocking module "packetizer_mpegvideo"
main debug: killing decoder fourcc `mpgv', 0 PES in FIFO
main debug: removing an input
main debug: unselecting ES 0x45
main debug: unlocking module "mpeg_audio"
main debug: killing decoder fourcc `mpga', 0 PES in FIFO
main debug: no more selected ES
main warning: destroying sout
main debug: destroying chain... (name=transcode)
main debug: destroying chain... (name=duplicate)
stream_out_duplicate debug: closing a duplication
main debug: destroying chain... (name=std)
mux_asf debug: Asf muxer closed
access_output_http warning: HTTP sout access cannot seek
main debug: unlocking module "mux_asf"
main debug: httpd_HostDelete
main debug: httpd_HostDelete: host removed from http
main debug: thread 1478179760 joined (src/misc/httpd.c:1036)
main debug: httpd_HostDelete: host thread joined
main: httpd doesn't reference any host, deleting
access_output_http debug: Close
main debug: unlocking module "access_output_http"
main debug: unlocking module "stream_out_standard"
main debug: destroying chain done
main debug: unlocking module "stream_out_duplicate"
main debug: destroying chain done
main debug: unlocking module "stream_out_transcode"
main debug: destroying chain done
main error: cannot delete object (329, (null)) with children
access_file: closing `/:///mnt/mp3/24-1/24-1-01.mpeg'
main debug: unlocking module "access_file"
main debug: pes: 0 packets
main debug: data: 193 packets
main debug: buffers: 1 packets
main warning: 65720 bytes have not been freed, expect memory leak
main debug: freeing info structures...
main debug: thread 1467689904 joined (src/input/input.c:373)
main debug: creating new input thread
main debug: option: :sout=#transcode{vcodec=WMV1,vb=1024,scale=1,acodec=mp3,ab=192,channels=2}:duplicate{dst=std{access=mmsh,mux=ts,url=:1236}}
main debug: set input option: sout to #transcode{vcodec=WMV1,vb=1024,scale=1,acodec=mp3,ab=192,channels=2}:duplicate{dst=std{access=mmsh,mux=ts,url=:1236}}
main: playlist item `/mnt/mp3/24-1/24-1-01.mpeg'
main debug: waiting for thread completion
main debug: thread 1467689904 (input) created at priority 0 (src/input/input.c:326)
main debug: access `', demux `', name `/mnt/mp3/24-1/24-1-01.mpeg'
main debug: stream=`transcode'
main debug: looking for sout stream module
main debug: probing 1 candidate
main debug: stream=`duplicate'
main debug: looking for sout stream module
main debug: probing 1 candidate
stream_out_duplicate debug: creating 'duplicate'
stream_out_duplicate debug: * adding `std{access=mmsh,mux=ts,url=:1236}'
main debug: stream=`std'
main debug: looking for sout stream module
main debug: probing 1 candidate
main debug: set sout option: sout-standard-access to mmsh
main debug: set sout option: sout-standard-mux to ts
main debug: set sout option: sout-standard-url to :1236
stream_out_standard debug: creating `mmsh/ts://:1236'
stream_out_standard warning: fixing to mmsh/asfh
stream_out_standard debug: using `mmsh/asfh://:1236'
main debug: looking for sout access module
main debug: probing 1 candidate
main: creating httpd
main debug: thread 1478179760 (httpd host thread) created at priority 0 (src/misc/httpd.c:982)
main debug: using sout access module "access_output_http"
stream_out_standard debug: access opened
main debug: looking for sout mux module
main debug: probing 1 candidate
mux_asf debug: Asf muxer opened
mux_asf debug: creating asf stream to be used with mmsh
mux_asf debug: meta data: title='' author='' copyright='' comment='' rating=''
main debug: using sout mux module "mux_asf"
stream_out_standard debug: mux opened
main debug: using sout stream module "stream_out_standard"
main debug: using sout stream module "stream_out_duplicate"
main debug: set sout option: sout-transcode-vcodec to WMV1
main debug: set sout option: sout-transcode-vb to 1024
main debug: set sout option: sout-transcode-scale to 1
main debug: set sout option: sout-transcode-acodec to mp3
main debug: set sout option: sout-transcode-ab to 192
main debug: set sout option: sout-transcode-channels to 2
stream_out_transcode debug: codec audio=mp3 0Hz 2 channels 192Kb/s
stream_out_transcode debug: codec video=WMV1 0x0 scaling: 1.000000 1024kb/s
main debug: using sout stream module "stream_out_transcode"
main debug: looking for access module
main debug: probing 8 candidates
dvdplay debug: plugin discarded (not a valid source)
dvdread warning: dvdread module discarded (not a valid source)
dvd warning: dvd module discarded (not a valid block device)
vcdx warning: could not open /mnt/mp3/24-1/24-1-01.mpeg
cddax warning: could not open /mnt/mp3/24-1/24-1-01.mpeg
access_file debug: opening file `/mnt/mp3/24-1/24-1-01.mpeg'
main debug: using access module "access_file"
main debug: looking for demux module
main debug: probing 7 candidates
main debug: looking for mpeg-system module
main debug: probing 1 candidate
main debug: using mpeg-system module "mpeg_system"
main debug: using demux module "ts_dvbpsi"
main debug: looking for a subtitle file in /mnt/mp3/24-1/
main debug: found a possible subtitle: 24_1x01_-_12.00_am_01.00_am.srt
main debug: found a possible subtitle: 24_1x02_-_01.00_am_02.00_am.srt
main debug: found a possible subtitle: 24_1x03_-_02.00_am_03.00_am.srt
main debug: found a possible subtitle: 24_1x04_-_03.00_am_04.00_am.srt
main debug: found a possible subtitle: 24_1x05_-_04.00_am_05.00_am.srt
main debug: found a possible subtitle: 24_1x06_-_05.00_am_06.00_am.srt
main debug: found a possible subtitle: 24_1x07_-_06.00_am_07.00_am.srt
main debug: found a possible subtitle: 24_1x08_-_07.00_am_08.00_am.srt
main debug: found a possible subtitle: 24_1x09_-_08.00_am_09.00_am.srt
main debug: found a possible subtitle: 24_1x10_-_09.00_am_10.00_am.srt
main debug: found a possible subtitle: 24_1x11_-_10.00_am_11.00_am.srt
main debug: found a possible subtitle: 24_1x12_-_11.00_am_12.00_pm.srt
main debug: found a possible subtitle: 24_1x13_-_12.00_pm_01.00_pm.srt
main debug: found a possible subtitle: 24_1x14_-_01.00_pm_02.00_pm.srt
main debug: found a possible subtitle: 24_1x15_-_02.00_pm_03.00_pm.srt
main debug: found a possible subtitle: 24_1x16_-_03.00_pm_04.00_pm.srt
main debug: found a possible subtitle: 24_1x17_-_04.00_pm_05.00_pm.srt
main debug: found a possible subtitle: 24_1x18_-_05.00_pm_06.00_pm.srt
main debug: found a possible subtitle: 24_1x19_-_06.00_pm_07.00_pm.srt
main debug: found a possible subtitle: 24_1x20_-_07.00_pm_08.00_pm.srt
main debug: found a possible subtitle: 24_1x21_-_08.00_pm_09.00_pm.srt
main debug: found a possible subtitle: 24_1x22_-_09.00_pm_10.00_pm.srt
main debug: found a possible subtitle: 24_1x23_-_10.00_pm_11.00_pm.srt
main debug: found a possible subtitle: 24_1x24_-_11.00_pm_12.00_am.srt
main debug: starting in synch mode
ts_dvbpsi debug: processing PAT version 0
ts_dvbpsi debug: new program: 1
ts_dvbpsi debug: processing PMT for program 1 version 24
ts_dvbpsi debug: new PID 0x44 stream type 0x2
main debug: ES 42 has unknown type
main debug: selecting video ES 44
main debug: selecting ES 0x44
main debug: looking for packetizer module
main debug: probing 27 candidates
main debug: using packetizer module "packetizer_mpegvideo"
main debug: stream out mode -> no decoder thread
packetizer_mpegvideo debug: Size 640x352 fps=25.000
main debug: adding a new input
stream_out_transcode debug: creating video transcoding from fcc=`mpgv' to fcc=`WMV1'
main debug: looking for encoder module
main debug: probing 10 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: found encoder Windows Media Video 1
main debug: using encoder module "ffmpeg"
main debug: unlocking module "ffmpeg"
main debug: looking for encoder module
main debug: probing 10 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: found encoder Windows Media Video 1
main debug: using encoder module "ffmpeg"
stream_out_duplicate debug: duplicated a new stream codec=WMV1 (es=67 group=1)
main debug: adding a new input
mux_asf debug: adding input
stream_out_duplicate debug: - added for output 0
ts_dvbpsi debug: processing PMT for program 1 version 25
main debug: unselecting ES 0x44
main debug: unlocking module "packetizer_mpegvideo"
main debug: killing decoder fourcc `mpgv', 0 PES in FIFO
main debug: removing an input
main debug: unlocking module "ffmpeg"
mux_asf debug: removing input
main warning: no more input stream for this mux
main debug: no more selected ES
ts_dvbpsi debug: new PID 0x44 stream type 0x2
ts_dvbpsi debug: new PID 0x45 stream type 0x3
main debug: ES 42 has unknown type
main debug: selecting video ES 44
main debug: selecting ES 0x44
main debug: looking for packetizer module
main debug: probing 27 candidates
main debug: using packetizer module "packetizer_mpegvideo"
main debug: stream out mode -> no decoder thread
main debug: selecting audio ES 45
main debug: selecting ES 0x45
main debug: looking for packetizer module
main debug: probing 27 candidates
main debug: using packetizer module "mpeg_audio"
main debug: stream out mode -> no decoder thread
mpeg_audio: MPGA channels:2 samplerate:48000 bitrate:128
main debug: adding a new input
stream_out_transcode debug: creating audio transcoding from fcc=`mpga' to fcc=`mp3 '
main debug: looking for encoder module
main debug: probing 10 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: found encoder MPEG Audio layer 1/2/3
main debug: using encoder module "ffmpeg"
stream_out_duplicate debug: duplicated a new stream codec=mpga (es=68 group=1)
main error: cannot add a new stream (unsuported while muxing for this format)
stream_out_duplicate debug: - failed for output 0
main error: cannot create packetizer output
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: waiting for sequence start
packetizer_mpegvideo debug: Size 640x352 fps=25.000
main debug: adding a new input
stream_out_transcode debug: creating video transcoding from fcc=`mpgv' to fcc=`WMV1'
main debug: looking for encoder module
main debug: probing 10 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: found encoder Windows Media Video 1
main debug: using encoder module "ffmpeg"
main debug: unlocking module "ffmpeg"
main debug: looking for encoder module
main debug: probing 10 candidates
ffmpeg debug: libavcodec already initialized
ffmpeg debug: found encoder Windows Media Video 1
main debug: using encoder module "ffmpeg"
stream_out_duplicate debug: duplicated a new stream codec=WMV1 (es=67 group=1)
main error: cannot add a new stream (unsuported while muxing for this format)
stream_out_duplicate debug: - failed for output 0
stream_out_transcode error: cannot add this stream
main debug: unlocking module "ffmpeg"

zorglub
Cone that earned his stripes
Cone that earned his stripes
Posts: 482
Joined: 21 Nov 2003 02:53
Location: Paris - France
Contact:

Postby zorglub » 02 Sep 2004 13:14

Hello,

You can't put MP3 in ASF.

Use another codec for audio, like wma (acodec="wma")
Zorglub
Clément Stenac

Prutser
Blank Cone
Blank Cone
Posts: 20
Joined: 11 Jun 2004 11:52
Location: The Netherlands

Postby Prutser » 02 Sep 2004 13:36

tnx for the quick response. I just tried with all available audio codecs (mpga, mp3, mp4a, a52, vorb, flac and spx) and although I'm unfamiliar with most of them, none of them work. Or rather; vlc still barfs with "cannot add a new stream (unsuported while muxing for this format)".

I also tried with MPEG-TS instead of ASF. No difference.

cheers,
Erik

Prutser
Blank Cone
Blank Cone
Posts: 20
Joined: 11 Jun 2004 11:52
Location: The Netherlands

It was the file :-/

Postby Prutser » 03 Sep 2004 13:53

Quick update.
I've messed around with it a little more and my problem appears to be related to the mpeg file. vlc is incapable of publishing this one mpeg file through mmsh. Regardless of the streaming settings (encapsulation/codec/etc). It does play the file wonderfully, as well as streaming it over http, multicast, etc, but it fails when I select mmsh.
When I loaded a different mpeg file, vlc does work. Strange stuff.. anyone interested in my mpeg file? Or is this a known limitation of any kind?

Next is that I want to run my stream through Windows Media Server. Is there any way I can feed WMS through vlc like a chain? I've tried vlc publishing over http and configuring WMS to source from a "remote publishing point", but wms complains about vlc's stream to be unsupported for no apparent reason. Ironically enough, WMS does not support MMS as a content source..

Anyone ever done this?

cheers,
Erik

sachink
New Cone
New Cone
Posts: 3
Joined: 03 Jan 2007 16:24
Contact:

Postby sachink » 07 Apr 2007 08:24

Hello friends,
I am also stuck up with the same issue of streaming out from vlc to WMS over RTSP can anyone help me to stream over RTP/RTSP to WMS


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 8 guests