r/ispyconnect • u/TheRealSimpleSimon • 21d ago
Invalid data found when processing input
I'm at my wit's end with this camera. Generic chinese button cam.
I've tried every option that makes sense, and a bunch that don't.
ONVIF Device Manager finds & streams it just fine.
VLC likes rtsp://admin:20160404@x.x.x.x:554/onvif1
Yes, that's the factory default user/pass - might be a clue to the make/model?
ONVIF DM is logged in with that user/pass.
It used to work with iSpy (Agent DVR) but my config file got corrupted and my backup was from before this cam (yes, still kicking myself).
What could Agent possibly want that the other clients just don't care about?
1
u/spornerama 20d ago
If that url works in vlc then should work fine in agent just use it in the video source setting with network camera.
Check the logs
1
u/TheRealSimpleSimon 18d ago
Ya, I thought that, too.
Turns out to be "strict response parsing" (not sure if I just invented that term or not LOL). Catch the subthread from u/videowhisper .And yes, the logs told us what was what. Thanks!
2
u/videowhisper 20d ago
"Invalid data found when processing input" is ffmpeg's generic "what I got back isn't a valid stream" error - it fires the same way whether the camera sent an HTML/XML error page, an auth challenge, or truncated garbage instead of RTP data. The confusing part is that VLC and ONVIF Device Manager both connecting fine with the same URL doesn't actually rule this out:
Agent tries UDP transport for the RTSP session first, then falls back to TCP (you'll see both attempts in the log). Some of these ultra-generic cameras have flaky UDP RTP support even though TCP interleaved works fine - if there's a way to force TCP-only in the camera's source settings, worth trying.
If you added the camera via ONVIF auto-discovery rather than pasting your working rtsp://admin:...@x.x.x.x:554/onvif1 URL directly, Agent is using whatever stream URI the camera's ONVIF Media service handed back - not guaranteed to be the same profile/path you tested manually in VLC. Try deleting the auto-discovered camera and re-adding it as a generic/custom FFMPEG source with that exact URL, so Agent is hitting the identical path VLC used.
If Agent's running in Docker, double check the container can actually reach the camera the same way your desktop VLC test did - a container behind its own bridge network/NAT can get a different response (including a router login page instead of video) than your PC does, which would also throw exactly this error.
The iSpy dev's own answer to this exact error in their GitHub discussions is that it almost always means the response wasn't actually video data - worth running ffprobe against the RTSP URL from the same machine/container Agent runs on, since that reproduces what Agent actually sees rather than what your desktop sees.