I am using vlc to restream an rtp stream as another rtp stream. I need this becouse my camera does encodes with H264 baseline level4 and iphone 3G can only stream baseline level 3.
It starts perfectly... everything fine for the first 3 minutes but atfet it, vlc stops streaming. I use a code like below.
vlc -vvv rtsp://user:pwd@x.y.z.t:554/media.amp --sout "#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac,qpmax=36,qpmin=10,me=hex,merange=24,subme=9,qcomp=0.6},vcodec=x264,vb=500,scale=1,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtsp{dst=127.0.0.1,port-video=10000,port-audio=10002,sdp= file://%WMSCONFIG_HOME%/content/was.sdp}" --sout-keep --loop
i added " --sout-keep --loop" to keep user connected even the stream stopes. And after 3 minutes restart streaming. This solves the problem but its not good. User buffer for 10 s every 3 minutes for this issue.
Do you have any idea? What could be cousing it?
Thanks for your help.