VLC transcoding + Darwin streaming problem

About encoding, codec settings, muxers and filter usage
vlc_fan55
New Cone
New Cone
Posts: 8
Joined: 15 Mar 2009 15:51

VLC transcoding + Darwin streaming problem

Postby vlc_fan55 » 15 Mar 2009 16:17

I am using VLC-0.9.8 to transcode an RTP stream on a Debian Linux server, which is then sent to a Darwin 5.5.5 streaming server on a different network.

There are no firewalls between the two machines, but the encoder network uses NAT.

The command line I use is:

vlc -I dummy "mms://a.b.c.d" --sout "#transcode:rtp" --sout-rtp-dst="a.b.c.d" --sout-rtp-port-video="6006" --sout-rtp-port-audio="6008" --sout-rtp-sdp="file:///tmp/file.sdp" --sout-transcode-vcodec=h264 --sout-transcode-vb=160 --sout-transcode-width=320 --sout-transcode-height=180 --sout-transcode-fps=12 --sout-transcode-acodec=mp4a --sout-ffmpeg-aac-profile=low --sout-transcode-ab=48 --sout-transcode-samplerate=32000 --sout-transcode-channels=2

The FIRST time I start vlc, copy the .sdp file to the Darwin server and play the resulting RTSP stream using a VLC client everything works OK. The stream opens up within a few seconds and keeps streaming consistently.

The NEXT time I try to do exactly the same thing i.e. restart VLC using the same command line, I am unable to open the RTSP URL ???

My client VLC just says:

qt4 debug: New item: rtsp://a.b.c.d/file.sdp
main debug: adding item `rtsp://a.b.c.d/file.sdp' ( rtsp://a.b.c.d/file.sdp )
main debug: rebuilding array of current - root Playlist
main debug: rebuild done - 2 items, index 0
main debug: starting new item
main debug: processing request item rtsp://a.b.c.d/file.sdp node Playlist skip 0
main debug: resyncing on rtsp://a.b.c.d/file.sdp
main debug: rtsp://a.b.c.d/file.sdp is at 1
main debug: creating new input thread
main debug: Creating an input for 'rtsp://a.b.c.d/file.sdp'
main debug: waiting for thread initialization
main debug: thread started
main debug: thread 5744 (input) created at priority 1 (input/input.c:370)
main debug: `rtsp://a.b.c.d/file.sdp' gives access `rtsp' demux `' path `a.b.c.d/file.sdp'
main debug: creating demux: access='rtsp' demux='' path='a.b.c.d/file.sdp'
main debug: looking for access_demux module: 1 candidate
qt4 debug: Updating the stream status: 3
live555 debug: RTP subsession 'video/H264'
main debug: selecting program id=0
qt4 debug: New Event: type 1108
live555 debug: RTP subsession 'audio/MP4A-LATM'
live555 debug: setup start: 0 stop:0
live555 debug: play start: 0 stop:0
main debug: using access_demux module "live555"
main debug: TIMER module_Need() : 436.000 ms - Total 436.000 ms / 1 intvls (Avg 436.000 ms)
main debug: looking for a subtitle file in C:\Program Files\VideoLAN\VLC\
main debug: looking for decoder module: 34 candidates
avcodec debug: libavcodec already initialized
avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) started
main debug: using decoder module "avcodec"
main debug: TIMER module_Need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms)
main debug: looking for packetizer module: 18 candidates
packetizer_h264 debug: found NAL_SPS (sps_id=0)
main debug: using packetizer module "packetizer_h264"
main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: thread 5652 (decoder) created at priority 0 (input/decoder.c:217)
main debug: looking for decoder module: 34 candidates
main debug: using decoder module "faad"
main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: thread 5300 (decoder) created at priority 2 (input/decoder.c:217)
main debug: thread started
main debug: `rtsp://a.b.c.d/file.sdp' successfully opened
main debug: thread started
qt4 debug: New Event: type 1103
qt4 debug: Updating the stream status: 3
main debug: control type=1
live555 warning: no data received in 10s. Switching to TCP
avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) stopped
main debug: removing module "avcodec"
main debug: thread ended
main debug: thread times: real 0m10.531250s, kernel 0m0.000000s, user 0m0.000000s
main debug: thread 5652 joined (input/decoder.c:248)
main debug: killing decoder fourcc `h264', 0 PES in FIFO
main debug: removing module "packetizer_h264"
main debug: removing module "faad"
main debug: thread ended
main debug: thread times: real 0m10.531250s, kernel 0m0.000000s, user 0m0.000000s
main debug: thread 5300 joined (input/decoder.c:248)
main debug: killing decoder fourcc `mp4a', 0 PES in FIFO
main debug: Program doesn't contain anymore ES
live555 debug: RTP subsession 'video/H264'
main debug: looking for decoder module: 34 candidates
avcodec debug: libavcodec already initialized
avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) started
main debug: using decoder module "avcodec"
main debug: TIMER module_Need() : 3.000 ms - Total 3.000 ms / 1 intvls (Avg 3.000 ms)
main debug: looking for packetizer module: 18 candidates
packetizer_h264 debug: found NAL_SPS (sps_id=0)
main debug: using packetizer module "packetizer_h264"
main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: thread 5776 (decoder) created at priority 0 (input/decoder.c:217)
main debug: thread started
live555 debug: RTP subsession 'audio/MP4A-LATM'
main debug: looking for decoder module: 34 candidates
main debug: using decoder module "faad"
main debug: TIMER module_Need() : 1.000 ms - Total 1.000 ms / 1 intvls (Avg 1.000 ms)
main debug: thread 5740 (decoder) created at priority 2 (input/decoder.c:217)
main debug: thread started
live555 debug: setup start: 0 stop:0
live555 debug: play start: 0 stop:0
live555 error: no data received in 10s, aborting
main debug: repeating the same input (20)
main debug: control type=10
main debug: control type=5
main error: INPUT_CONTROL_SET_POSITION(_OFFSET) 0.0% failed
live555 error: no data received in 10s, aborting
main debug: repeating the same input (19)
main debug: control type=10
main debug: control type=5
main error: INPUT_CONTROL_SET_POSITION(_OFFSET) 0.0% failed
live555 error: no data received in 10s, aborting
main debug: repeating the same input (18)
main debug: control type=10
main debug: control type=5
[SAME THING REPEATED 17 TIMES]
main error: INPUT_CONTROL_SET_POSITION(_OFFSET) 0.0% failed
live555 error: no data received in 10s, aborting
main debug: EOF reached
main debug: finished input
main debug: dying input
main debug: removing module "live555"
avcodec debug: ffmpeg codec (H264 - MPEG-4 AVC (part 10)) stopped
main debug: removing module "avcodec"
main debug: thread ended
main debug: thread times: real 0m6.437500s, kernel 0m0.000000s, user 0m0.000000s
main debug: thread 5776 joined (input/decoder.c:248)
main debug: killing decoder fourcc `h264', 0 PES in FIFO
main debug: removing module "packetizer_h264"
main debug: removing module "faad"
main debug: thread ended
main debug: thread times: real 0m6.375000s, kernel 0m0.000000s, user 0m0.000000s
main debug: thread 5740 joined (input/decoder.c:248)
main debug: killing decoder fourcc `mp4a', 0 PES in FIFO
main debug: thread ended
qt4 debug: Updating the stream status: 8
main debug: dead input
main debug: thread times: real 0m20.250000s, kernel 0m0.000000s, user 0m0.000000s
main debug: thread 5744 joined (playlist/engine.c:244)
main debug: TIMER input launching for 'rtsp://a.b.c.d/file.sdp' : 456.000 ms - Total 456.000 ms / 1 intvls (Avg 456.000 ms)
main debug: starting new item
main debug: changing item without a request (current 1/2)
main debug: nothing to play

I have now tried doing the same thing with several different encoder machines on different networks (all using NAT though) and different port numbers, but the result is always the same.

Any ideas?

speak2beeb
Blank Cone
Blank Cone
Posts: 12
Joined: 07 May 2008 00:56

Re: VLC transcoding + Darwin streaming problem

Postby speak2beeb » 23 Apr 2009 23:28

Hi vlc_fan,

I'm trying to do a similar thing, but just with an audio stream, no video. Would you be able to help me out with this? Sometimes I don't get errors, but it's not streaming. Other times I get errors like:

Code: Select all

[00000277] dummy interface: using the dummy interface module... [00000295] access_mms access: selecting stream[0x1] audio (23 kb/s) [00000295] access_mms access: selecting stream[0x2] video (391 kb/s) [00000295] access_mms access: connection successful [00000330] ffmpeg encoder error: cannot find encoder h264 [00000289] stream_out_transcode private error: cannot find encoder [00000289] stream_out_transcode private error: cannot create video chain [00000328] main packetizer error: cannot create packetizer output (WMV3) [00000289] stream_out_transcode private error: cannot find decoder [00000289] stream_out_transcode private error: cannot create audio chain [00000300] main packetizer error: cannot create packetizer output (undf)
Any help is greatly appreciated!


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 13 guests