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!