RTSP mpeg4 from Axis camera - capture to file - issue at 55s

macOS specific usage questions
lerxst
Blank Cone
Blank Cone
Posts: 12
Joined: 19 Jan 2007 19:18
Location: Traverse City, MI
Contact:

RTSP mpeg4 from Axis camera - capture to file - issue at 55s

Postby lerxst » 19 Jan 2007 19:33

Hello...
I've tried this on Windows, Linux and OS X(primary platform) and have an interesting error I'm encountering.

We're using a newer Axis webcam, and have been trying to capture the stream to a file.

We are doing this:
1) open VLC
2) preferences, select Input/Codecs, Demuxers, RTP/RTSP and check advanced box
3) check Use RTP over RTSP (TCP) client port -1
4) File | Open Network
5) click http/ftp/mms/rtsp and we are using rtsp://camera.ip.addr.com/mpeg4/media.amp
6) select target file (/Users/jre/Desktop/vlc-output.mp4) and set encapsulation method to MPEG4
7) click OK, OK again and it starts

It works GREAT if we capture less than 55 seconds.
RIGHT AT the 55 second mark, things go horribly wrong.

I ran it from the command line with verbosity, and here is the output. Note that I marked at 50 seconds and 55 seconds and when I hit Control-C a bunch of times to stop the program. If we don't run it from the command line, a Force Quit (OSX), process kill (linux), or task-kill AND reboot (windows) is necessary before it will work again (windows platform doesn't cleanly work again if a reboot doesn't happen...).

I need some ideas! and help! :)

Here is the dump:

jre@snapcase:~ $ /Applications/VLC.app/Contents/MacOS/VLC -vvv
[00000001] main private debug: opening config file /Users/jre/Library/Preferences/VLC/vlcrc
[00000001] main private debug: checking builtin modules
[00000001] main private debug: checking plugin modules
[00000001] main private debug: loading plugins cache file /Users/jre/Library/Preferences/VLC/cache/plugins-0404be.dat
[00000001] main private debug: recursively browsing `/Applications/VLC.app/Contents/MacOS/modules'
[00000001] main private debug: recursively browsing `/usr/local/lib/vlc'
[00000001] main private debug: recursively browsing `/Applications/VLC.app/Contents/MacOS/plugins'
[00000001] main private debug: module bank initialized, found 202 modules
[00000001] main private debug: opening config file /Users/jre/Library/Preferences/VLC/vlcrc
[00000001] main private debug: CPU has capabilities AltiVec FPU
[00000001] main private debug: looking for memcpy module: 2 candidates
[00000001] main private debug: using memcpy module "memcpyaltivec"
[00000265] main playlist debug: waiting for thread completion
[00000265] main playlist debug: thread 33644032 (playlist) created at priority -47 (playlist/playlist.c:184)
[00000266] main private debug: waiting for thread completion
[00000266] main private debug: thread 33659392 (preparser) created at priority -47 (playlist/playlist.c:210)
[00000267] main interface debug: looking for interface module: 1 candidate
[00000267] main interface debug: using interface module "hotkeys"
[00000267] main interface debug: thread 34500096 (interface) created at priority -47 (interface/interface.c:198)
[00000269] main interface debug: looking for interface module: 3 candidates
[00000269] main interface debug: using interface module "macosx"
[00000269] main interface debug: thread 33656832 (manage) created at priority -47 (interface/interface.c:164)
[00000265] main playlist debug: adding playlist item `media.amp' ( rtsp://camera.ip.addr.com/mpeg4/media.amp )
[00000265] main playlist debug: creating new input thread
[00000270] main input debug: waiting for thread completion
[00000270] main input debug: thread 35416064 (input) created at priority 37 (input/input.c:265)
[00000270] main input debug: creating statistics handler
[00000272] main stream output debug: stream=`duplicate'
[00000273] main private debug: looking for sout stream module: 1 candidate
[00000273] stream_out_duplicate private debug: creating 'duplicate'
[00000273] stream_out_duplicate private debug: * adding `display'
[00000272] main stream output debug: stream=`display'
[00000275] main private debug: looking for sout stream module: 1 candidate
[00000275] main private debug: using sout stream module "stream_out_display"
[00000273] stream_out_duplicate private debug: * adding `std{access=file,mux=mp4,dst="/Users/jre/Desktop/vlc-output.mp4"}'
[00000272] main stream output debug: stream=`std'
[00000277] main private debug: looking for sout stream module: 1 candidate
[00000277] main private debug: set sout option: sout-standard-access to file
[00000269] macosx interface debug: input has changed, refreshing interface
[00000277] main private debug: set sout option: sout-standard-mux to mp4
[00000277] main private debug: set sout option: sout-standard-dst to /Users/jre/Desktop/vlc-output.mp4
[00000277] stream_out_standard private debug: creating `file/mp4:///Users/jre/Desktop/vlc-output.mp4'
[00000277] stream_out_standard private debug: extension is mp4
[00000277] stream_out_standard private debug: extension -> mux=mp4
[00000277] stream_out_standard private debug: using `file/mp4:///Users/jre/Desktop/vlc-output.mp4'
[00000279] main private debug: looking for sout access module: 1 candidate
[00000279] access_output_file private debug: file access output opened (`/Users/jre/Desktop/vlc-output.mp4')
[00000279] main private debug: using sout access module "access_output_file"
[00000277] stream_out_standard private debug: access opened
[00000281] main private debug: looking for sout mux module: 1 candidate
[00000281] mux_mp4 private debug: Mp4 muxer opend
[00000281] main private debug: using sout mux module "mux_mp4"
[00000277] stream_out_standard private debug: mux opened
[00000277] main private debug: using sout stream module "stream_out_standard"
[00000273] main private debug: using sout stream module "stream_out_duplicate"
[00000270] main input debug: `rtsp://camera.ip.addr.com/mpeg4/media.amp' gives access `rtsp' demux `' path `camera.ip.addr.com/mpeg4/media.amp'
[00000270] main input debug: creating demux: access='rtsp' demux='' path='camera.ip.addr.com/mpeg4/media.amp'
[00000283] main demuxer debug: looking for access_demux module: 1 candidate
Sending request: OPTIONS rtsp://camera.ip.addr.com/mpeg4/media.amp RTSP/1.0
CSeq: 1
User-Agent: VLC media player (LIVE555 Streaming Media v2006.12.31)


Received OPTIONS response: RTSP/1.0 200 OK
CSeq: 1
Public: DESCRIBE, GET_PARAMETER, PAUSE, PLAY, SETUP, TEARDOWN


Sending request: DESCRIBE rtsp://camera.ip.addr.com/mpeg4/media.amp RTSP/1.0
CSeq: 2
Accept: application/sdp
User-Agent: VLC media player (LIVE555 Streaming Media v2006.12.31)


Received DESCRIBE response: RTSP/1.0 200 OK
CSeq: 2
Content-Base: rtsp://camera.ip.addr.com:554/mpeg4/media.amp/
Content-Type: application/sdp
Content-Length: 683


Need to read 683 extra bytes
Read 683 extra bytes: v=0
o=- 1169200753689399 1169200753689408 IN IP4 camera.ip.addr.com
s=Media Presentation
e=NONE
c=IN IP4 0.0.0.0
b=AS:8000
t=0 0
a=control:*
a=range:npt=now-
a=mpeg4-iod: "data:application/mpeg4-iod;base64,AoDUAE8BAf/1AQOAbwABQFBkYXRhOmFwcGxpY2F0aW9uL21wZWc0LW9kLWF1O2Jhc2U2NCxBUjBCR3dVZkF4Y0F5U1FBWlFRTklCRUVrK0FBZWhJQUFIb1NBQVlCQkE9PQQNAQUABAAAAAAAAAAAAAYJAQAAAAAAAAAAAzoAAkA2ZGF0YTphcHBsaWNhdGlvbi9tcGVnNC1iaWZzLWF1O2Jhc2U2NCx3QkFTWVFTSVVFVUZQd0E9BBICDQAAAgAAAAAAAAAABQMAAEAGCQEAAAAAAAAAAA=="
m=video 0 RTP/AVP 96
b=AS:8000
a=control:trackID=1
a=rtpmap:96 MP4V-ES/90000
a=fmtp:96 profile-level-id=245; config=000001B0F5000001B50900000100000001200084401928A021E0A21F;
a=mpeg4-esid:201

[00000283] live555 demuxer debug: RTP subsession 'video/MP4V-ES'
Sending request: SETUP rtsp://camera.ip.addr.com:554/mpeg4/media.amp/trackID=1 RTSP/1.0
CSeq: 3
Transport: RTP/AVP/TCP;unicast;interleaved=0-1
User-Agent: VLC media player (LIVE555 Streaming Media v2006.12.31)


Received SETUP response: RTSP/1.0 200 OK
CSeq: 3
Session: 1019391074;timeout=60
Transport: RTP/AVP/TCP;unicast;mode=play;interleaved=102-103


Sending request: PLAY rtsp://camera.ip.addr.com:554/mpeg4/media.amp/ RTSP/1.0
CSeq: 4
Session: 1019391074
Range: npt=0.000-
User-Agent: VLC media player (LIVE555 Streaming Media v2006.12.31)


Received PLAY response: RTSP/1.0 200 OK
CSeq: 4
Session: 1019391074
Range: npt=now-
RTP-Info: url=trackID=1;seq=58921;rtptime=4088449582


[00000283] live555 demuxer debug: We have a timeout of 60 seconds
[00000284] main private debug: waiting for thread completion
[00000284] main private debug: thread 35453440 (liveMedia-timeout) created at priority -47 (live555.cpp:895)
[00000283] live555 demuxer debug: spawned timeout thread
[00000270] main input debug: selecting program id=0
[00000283] main demuxer debug: using access_demux module "live555"
[00000285] main packetizer debug: looking for packetizer module: 17 candidates
[00000285] packetizer_mpeg4video packetizer debug: opening with vol size: 29
[00000285] main packetizer debug: using packetizer module "packetizer_mpeg4video"
[00000270] main input debug: stream out mode -> no decoder thread
[00000270] main input debug: starting in sync mode
[00000270] main input debug: `rtsp://camera.ip.addr.com/mpeg4/media.amp' successfully opened
[00000272] main stream output debug: adding a new input
[00000273] stream_out_duplicate private debug: duplicated a new stream codec=mp4v (es=0 group=0)
[00000304] main decoder debug: looking for decoder module: 24 candidates
[00000304] ffmpeg decoder debug: libavcodec initialized (interface 3349504 )
[00000304] ffmpeg decoder debug: postprocessing disabled
[00000304] ffmpeg decoder debug: using direct rendering
[00000304] ffmpeg decoder debug: ffmpeg codec (MPEG-4 Video) started
[00000304] main decoder debug: using decoder module "ffmpeg"
[00000304] main decoder debug: thread 36106752 (decoder) created at priority -47 (input/decoder.c:159)
[00000273] stream_out_duplicate private debug: - added for output 0
[00000281] main private debug: adding a new input
[00000281] mux_mp4 private debug: adding input
[00000273] stream_out_duplicate private debug: - added for output 1
[00000304] main decoder debug: no usable vout present, spawning one
[00000316] main video output debug: window size: 640x480
[00000281] main private warning: late buffer for mux input (1169229560951062)
[00000316] main video output debug: looking for video output module: 4 candidates
[00000316] opengl video output debug: Texture size: 640x480
[00000319] main private debug: looking for opengl provider module: 1 candidate
[00000319] macosx private debug: display is Quartz Extreme accelerated
[00000317] main private debug: Registering subpicture channel, ID: 2
[00000317] main private debug: Registering subpicture channel, ID: 3
[00000317] main private debug: Registering subpicture channel, ID: 4
[00000317] main private debug: Registering subpicture channel, ID: 5
[00000319] main private debug: using opengl provider module "macosx"
[00000316] main video output debug: using video output module "opengl"
[00000316] main video output debug: got 1 direct buffer(s)
[00000316] main video output debug: picture in 640x480 (0,0,640x480), chroma I420, ar 4:3, sar 1:1
[00000316] main video output debug: picture user 640x480 (0,0,640x480), chroma I420, ar 4:3, sar 1:1
[00000316] main video output debug: picture out 640x480 (0,0,640x480), chroma YUY2, ar 4:3, sar 1:1
[00000316] main video output debug: looking for chroma module: 6 candidates
[00000316] main video output debug: using chroma module "i420_yuy2_altivec"
[00000316] main video output debug: indirect render, mapping render pictures 0-7 to system pictures 1-8
[00000316] main video output debug: waiting for thread completion
[00000316] main video output debug: thread 36545024 (video output) created at priority 37 (video_output/video_output.c:421)
[00000281] mux_mp4 private warning: i_length <= 0
[00000283] live555 demuxer debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP()
[00000281] mux_mp4 private warning: i_length <= 0
[00000281] mux_mp4 private warning: i_length <= 0
[00000316] main video output warning: late picture skipped (36287)
[00000316] main video output warning: vout warning: early picture skipped (197365885275055)
[00000316] main video output warning: vout warning: early picture skipped (197365885314923)
[00000316] main video output warning: late picture skipped (25097)
[00000316] main video output warning: late picture skipped (24950)
[00000316] main video output warning: late picture skipped (42034)
***50sec
[00000284] live555 private debug: reset the timeout timer
Sending request: GET_PARAMETER rtsp://camera.ip.addr.com:554/mpeg4/media.amp/ RTSP/1.0
CSeq: 5
Session: 1019391074
User-Agent: VLC media player (LIVE555 Streaming Media v2006.12.31)
***55 sec
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (851 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1164 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (987 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (156 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (994 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1404 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1157 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (173 bytes, channel id 102)
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
***after a lot of control-Cs...
Discarding interleaved RTP or RTCP packet (1444 bytes, channel id 102)
^Cuser insisted too much, dying badly
Abort trap
jre@snapcase:~ $






Anyone got any clues? we would like 10-15 minutes of capture to the file, and instead can not even reach the 1-minute mark....

Thanks!
-jre

lerxst
Blank Cone
Blank Cone
Posts: 12
Joined: 19 Jan 2007 19:18
Location: Traverse City, MI
Contact:

Still an issue

Postby lerxst » 23 Jan 2007 16:50

Happening on all platforms.
No help at all???!

-jre
-jre

arri
Blank Cone
Blank Cone
Posts: 19
Joined: 26 Nov 2003 18:01

Postby arri » 25 Jan 2007 03:45

it seems related to an issue i had with a similair setup.

for an art project we want to receive/capture/manipulate/analyze/record/project etc.. a high resolution rtp/rtsp stream from an ip camera (which is way cooler than yours... :)

the quad G5 we currently develop on, is reasonably capable of handling a 1280x720 @25fps stream in mjpeg comression (±70%). depending on ligh and detail this results in 2 to 4Mb per second of data.

but anything higher will choke something somewhere in the system. didn't have time yet to see if it's quicktime, or maybe udp/tcp network-buffers going nuts...
i did do some tests with VLC, in order to see if it were an option to 'use' code from the VLC source, so we could bypass quicktime, but i ran into the same problem...

quicktime would just display a white frame, VLC will crash at some point..

didn't have time to create a clear, reproducable crahs situation yet, but i have the feeling it's maybe somewhere in the network-layer in osx..

anyway, try lowering the resolution and/or datarate. see if it still happens. this could give VLC developers maybe some clue.

btw; this 'cooler than yours' camera is the Elphel 333. (http://www.elphel.com)
it's really an amazing device. up to 3 Megapixels (@±12 fps) or up to 90fps on lower resolutions. and hard- and software are opensource...


cheers :)

arri
Blank Cone
Blank Cone
Posts: 19
Joined: 26 Nov 2003 18:01

Postby arri » 25 Jan 2007 03:50

btw;

a patched mplayer the elphel developers supply can handle high datarates with no problem on a thinkpad T42 running debian..
(a laptop !!)

lerxst
Blank Cone
Blank Cone
Posts: 12
Joined: 19 Jan 2007 19:18
Location: Traverse City, MI
Contact:

Other options?

Postby lerxst » 26 Jan 2007 17:33

Well, I don't think it's a /data size/ issue... my dual-proc G4 can't even do it.
But on ALL machines, including the windows computer, the stream basically plays forever in Quicktime.

So basically, I need to get this project done, and VLC seems not to be able to stream capture more than 55 seconds of this type of stream... but Quicktime plays it forever... no issues.

Ideas?
-jre

lerxst
Blank Cone
Blank Cone
Posts: 12
Joined: 19 Jan 2007 19:18
Location: Traverse City, MI
Contact:

Wow... even playback doesn't work...

Postby lerxst » 26 Jan 2007 17:37

Ok. here's something interesting. Playback even stops at 55 seconds, when I'm not capturing the stream to a file.

Does this mean RTSP over TCP is broken in VLC?

-jre
-jre

arri
Blank Cone
Blank Cone
Posts: 19
Joined: 26 Nov 2003 18:01

Postby arri » 26 Jan 2007 21:31

seems like some timeout issue from the camera's side, (and no keep-alive from VLC) . the GET_PARAMETERS request doesn't even seem to me supportes by the camera:
http://www.axis.com/techsup/cam_servers ... sp_api.htm


maybe interesting to look at output of TCPFLOW

BrandonKahler
New Cone
New Cone
Posts: 2
Joined: 13 Feb 2007 00:00

Postby BrandonKahler » 13 Feb 2007 00:04

I was having the same 55sec timeout problem using an Axis 241SA Video Server. I found the solution in the Plain Config.

System Options > Advanced > Plain Config > Network

Scroll down to the RTSP section and the default timeout value on mine was 60 seconds. I set it to zero and now VLC plays just fine.

I am experiencing the occasional pause in audio (video is fine).

lmdeaton1
New Cone
New Cone
Posts: 1
Joined: 29 May 2007 18:54

Postby lmdeaton1 » 29 May 2007 18:59

Where is the "System Options > Advanced > Plain Config > Network " settings? Is this in the Axis Video Server or the VLC Player?

I am having the same problem using the VLC player with another video server. Is there a config in the player to disable the timeout ping by the player? I could not find anything using the GUI preferences menus in the VLC player. However, I see the code is retrieving a timeout value from somewhere as below:

Taken from live555.cpp:
---------------------------------------
*****************************************************************************
* Play: starts the actual playback of the stream
*****************************************************************************/
static int Play( demux_t *p_demux )
{
demux_sys_t *p_sys = p_demux->p_sys;

if( p_sys->rtsp )
{
/* The PLAY */
if( !p_sys->rtsp->playMediaSession( *p_sys->ms ) )
{
msg_Err( p_demux, "RTSP PLAY failed %s", p_sys->env->getResultMsg() );
return VLC_EGENERIC;
}

/* Retrieve the timeout value and set up a timeout prevention thread */
#if LIVEMEDIA_LIBRARY_VERSION_INT >= 1138089600
p_sys->i_timeout = p_sys->rtsp->sessionTimeoutParameter();
#endif
if( p_sys->i_timeout > 0 && !p_sys->p_timeout )
{
msg_Dbg( p_demux, "We have a timeout of %d seconds", p_sys->i_timeout );
p_sys->p_timeout = (timeout_thread_t *)vlc_object_create( p_demux, sizeof(timeout_thread_t) );
p_sys->p_timeout->p_sys = p_demux->p_sys; /* lol, object recursion :D */
if( vlc_thread_create( p_sys->p_timeout, "liveMedia-timeout", TimeoutPrevention,
VLC_THREAD_PRIORITY_LOW, VLC_TRUE ) )
{
msg_Err( p_demux, "cannot spawn liveMedia timeout thread" );
vlc_object_destroy( p_sys->p_timeout );
}
msg_Dbg( p_demux, "spawned timeout thread" );
vlc_object_attach( p_sys->p_timeout, p_demux );
}
}
return VLC_SUCCESS;
}






This is an urgent issue for my customer, so any help would be appreciated.

Thanks,
Larry Deaton

MikeQBF
Blank Cone
Blank Cone
Posts: 87
Joined: 26 Apr 2007 07:18

Postby MikeQBF » 07 Jun 2007 15:45

Where is the "System Options > Advanced > Plain Config > Network " settings? Is this in the Axis Video Server or the VLC Player?
Axis.

glebfrank
Blank Cone
Blank Cone
Posts: 10
Joined: 09 Dec 2008 08:39

Re: RTSP mpeg4 from Axis camera - capture to file - issue at 55s

Postby glebfrank » 03 Feb 2009 11:21

OK, I'm seeing what appears to be the same issue - but only on the Mac. I'm using VLC 0.9.8a. Basically, the first time VLC sends a GET_PARAMETER request to the server, I get tons of "Discarding interleaved RTP or RTCP packet" messages, and have to force-quit the VLC process... Works like a charm on Linux. Thoughts?

The DJ
Cone Master
Cone Master
Posts: 5987
Joined: 22 Nov 2003 21:52
VLC version: git
Operating System: Mac OS X
Location: Enschede, Holland
Contact:

Re: RTSP mpeg4 from Axis camera - capture to file - issue at 55s

Postby The DJ » 23 Feb 2009 19:09

OK, I'm seeing what appears to be the same issue - but only on the Mac. I'm using VLC 0.9.8a. Basically, the first time VLC sends a GET_PARAMETER request to the server, I get tons of "Discarding interleaved RTP or RTCP packet" messages, and have to force-quit the VLC process... Works like a charm on Linux. Thoughts?
If vlc sends GET_PARAMETER on 0.9.8, then the server supports that message. The only reason that i see that can cause this, is simply that the AXIS camera responds incorrectly and the live555 (the component we use for RTSP) starts ignoring the data.

Note how the "Discarding" messages in the debug logging posted above don't start with: "[00000###]". Historically, AXIS isn't known for the fault tolerant RTSP implementation, but this might be a bug in live555 as well.
Don't use PMs for support questions.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 4 guests