View Full Version : Open streaming RTSP
barrichiello
9th March 2012, 09:03
Hi
I'm reading a lot about, but I do not find answers.
Is possible to open a RTSP stream with Avisynth?
Is there any specific plugin to use?
thanks
Massimo
hanfrunz
9th March 2012, 12:07
You can try using graphedit or graphstudio to build a working graph that opens the stream and plays it back to the standart video+audio render. Then remove audio+video renderer and save the graph to "mystream.grf".
Now you can open that file in your script:
input=directshowsource("mystream.grf", framecount=12*60*60*25, fps=25, video=true, seek=false, audio=true)
Change fps and framecount if you need to. I set framecount to 12h in my example.
hanfrunz
barrichiello
9th March 2012, 14:35
Thanks
You know a filter to open the stream rtsp://192.168.0.13?
I have tried:
File Source (Async.)
File Source (NetShow URL)
File Source (URL)
got the same error:"Cannot load specified file"
I have no problem reading a file physically present on the PC, the problem is to begin to read the stream rtsp!
jmartinr
9th March 2012, 22:05
input=directshowsource("mystream.grf", framecount=12*60*60*25, fps=25, video=true, seek=false, audio=true)
I remember from experimenting in the past that you could open either the audio or the video stream this way.
Did you succeed in opening both at once?
IanB
12th March 2012, 22:40
Opening .GRF files is explicitly restricted to only a single stream type, either Audio or Video. The code checks for a "Video=false XOR Audio=false".
You need to explicitly AudioDub the 2 graphs. Unfortunately this means you get 2 full direct show instances, each with a connection to the server, each reading the full stream.
And the magic for indeterminate length streams is to set the framecount option. And for the Audio stream you need to set the fps option to use with the framecount option to get a specified total audio duration.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.