RTP Stream Stops After 10 Seconds

About encoding, codec settings, muxers and filter usage
bradcarter
Blank Cone
Blank Cone
Posts: 15
Joined: 10 Nov 2004 20:18

RTP Stream Stops After 10 Seconds

Postby bradcarter » 17 Sep 2005 04:19

I am transcoding a MPEG 4 stream from an Axis 232D camera to a lower bit rate using ffmpeg. I was trying to relay the stream with Darwin Streaming Server and the stream would stop streaming after about 2 minutes. I started trouble shooting. Using the command line below I get the same results with VLC streaming UDP but the stream stops about 5 to 10 seconds later.

Code: Select all

./VLC rtsp://192.168.0.90:554/mpeg4/media.amp --sout '#transcode{vcodec=mp4v,vb=450,venc=ffmpeg{keyint=45,fps=15}}:duplicate{dst=std{access=udp,mux=ts,url=68.35.96.91:13000,ttl=25}}'
If I replace the input of the above command with a local AVI file the stream works as expected and never drops out.

When I use -vvv with the RTSP stream I get the following output with the last 2 lines repeating them selves.

Any ideas?
[00000255] stream_out_duplicate private debug: duplicated a new stream codec=mp4v (es=0 group=0)
[00000263] main private debug: adding a new input
[00000263] mux_ts private debug: adding input codec=mp4v pid=68
[00000263] mux_ts private debug: new PCR PID is 68
[00000255] stream_out_duplicate private debug: - added for output 0
[00000249] macosx interface debug: input has changed, refreshing interface
[00000264] livedotcom demuxer debug: tk->rtpSource->hasBeenSynchronizedUsingRTCP()
[00000263] mux_ts private warning: packet with too strange dts (dts=1372879893469564,old=1126923265255160,pcr=1126923265255160)
[00000282] ffmpeg encoder warning: almost fed libavcodec with a frame in the past (current: 1126923265393920, last: 1372879893499564)
[00000282] ffmpeg encoder warning: almost fed libavcodec with a frame in the past (current: 1126923265427276, last: 1372879893499564)

bradcarter
Blank Cone
Blank Cone
Posts: 15
Joined: 10 Nov 2004 20:18

Postby bradcarter » 17 Sep 2005 05:36

Okay, I tried the same with the mjpg stream from the camera and the same effect. Am I missing something in my command line?

Edit: Never mind, it does stream out UDP without dropping out.

bradcarter
Blank Cone
Blank Cone
Posts: 15
Joined: 10 Nov 2004 20:18

Postby bradcarter » 18 Sep 2005 04:43

I figured it out. I had the FPS setting in the brackets for the GOP settings. Moved it outside of the brackets and now the stream doesn't drop off when transcoding the MPEG 4 stream.

FelipeFrantz

Same Problem with an Axis 210

Postby FelipeFrantz » 04 Oct 2005 23:06

Where did you change the GOP setting? was it in the camera configuration or in the VLC config? Where?

fmonaca

Postby fmonaca » 01 Feb 2006 23:44

I read somewhere in the forum that VLC couldn't "inject" a stream into Darwin... but you seem to do it succesfully. Although i don't understand how you see the stream from Darwin without an sdp file...

smitha
New Cone
New Cone
Posts: 5
Joined: 03 Mar 2006 11:53

Re: RTP Stream Stops After 10 Seconds

Postby smitha » 03 Mar 2006 12:11

I have an IP camera which gives mpeg4 streams through RTSP. I used VLC to stream out the RTSP streams that we get from camera using the following:


vlc -vvv "rtsp://192.168.1.94:554/live" --sout #rtp{dst=192.168.1.19,port=1234,sdp=rtsp://192.168.1.19:1235/test.sdp} --ttl 12


Then I used IBM's MPEG4 player to capture the rtsp stream given by VLC. But I am not able to get streams. VLC shows a warning:

packetizer_mpeg4video warning: waiting for VOL

Please help....My ultimate aim is to get an MPEG4 player for my current Java project.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 14 guests