<div dir="ltr"><div>Ok. I was developing a video storage and distribution server in python based on gstreamer and opencv. Server stores video in a sequence on files so I made a little lib over ffprobe and subprocess in python.<br><br></div>I use ffprobe with json output to find out if my cams are alive and their streams are sane and the same with resulting files. It's pretty trivial, but mind that some versions of ffprobe/ffmpeg do not have a timeout and can hang forever when dealing with particullary broken network streams. I'll link the code below.<br><br><a href="http://pastebin.com/q29uYBXQ">http://pastebin.com/q29uYBXQ</a><br><div><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-11-08 15:32 GMT+03:00 Mikl <span dir="ltr"><<a href="mailto:michael.yarochkin@timetronics.be" target="_blank">michael.yarochkin@timetronics.be</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello, Ivan<br>
<br>
Thank you for reply.<br>
<br>
Can you give more details, please?<br>
Example maybe?<br>
<br>
Mikl<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Detect-damaged-file-tp4680534p4680543.html" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.<wbr>n4.nabble.com/Detect-damaged-<wbr>file-tp4680534p4680543.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</div></div></blockquote></div><br></div>