Best approach to detect if URI exist

Jack jack at rybn.org
Wed Sep 11 14:44:50 UTC 2019


Hello Arjen,

Thanks for your answer.
I was more thinking about a tool from Gstreamer but it is quite simple
and make sense to use standard module to test if a URL or file exist.
++

Jack



Le 11/09/2019 à 09:15, Arjen Veenhuizen a écrit :
> I would use python's `urllib2` or the like to check the URL for anything
> other than 200 OK before feeding the URL to gstreamer. For local files, you
> could use os.path.exists().
> 
> 
> 
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 



More information about the gstreamer-devel mailing list