FFMPEG passthrough can not play video & what are best libraries?

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
User avatar
mlw19mlw91
Posts: 14
Joined: Mon Aug 17, 2020 6:49 pm

FFMPEG passthrough can not play video & what are best libraries?

Post by mlw19mlw91 »

I can not play back a camera's video for which live video works. It worked when setup as RTSP stream but I wanted to try to set it up as ffmpeg to see the effect of using 264 passthrough had on cpu load. I am using an android with IPwebcam software as the camera
so yeah I can view it live, but I can not watch any events.

I do not have this problem with RTSP stream in the Source: Remote option.

Also, are the best libraries installed by default with the zoneminder setup for the raspberry pi? I am curious to see the effect on CPU load of every option as I hope to get a frew cameras on one raspberry pi
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: FFMPEG passthrough can not play video & what are best libraries?

Post by bbunge »

Get the stream to work in VLC and use that source string in Zoneminder. And get the resolution right!
tommisgr
Posts: 23
Joined: Mon Aug 31, 2020 6:28 pm

Re: FFMPEG passthrough can not play video & what are best libraries?

Post by tommisgr »

After you get it working on VLC look into the tools menu -> codec (Ctrl+J)
to get the exact resolution especially Android IP webcam have some "interesting" resolutions.
u can change that from the android app (video options)
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: FFMPEG passthrough can not play video & what are best libraries?

Post by knight-of-ni »

If the camera is streaming H265, rather than H264, you will get these symptoms. Check the camera.
Most browsers do not (yet?) support H265 playback.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
User avatar
mlw19mlw91
Posts: 14
Joined: Mon Aug 17, 2020 6:49 pm

Re: FFMPEG passthrough can not play video & what are best libraries?

Post by mlw19mlw91 »

ah thanks for the tips guys I got it working. Heres what it was:
Screen Shot 10-04-20 at 10.42 AM 06.JPG
Screen Shot 10-04-20 at 10.42 AM 06.JPG (79.44 KiB) Viewed 9633 times
the IP webcam software for android by Pavel Khlebovich 2013 version has a different area to set the resolution for JPEG's.

Hope this helps someone else!

Also I didn't always find that the CPU load is lower, although the max seems lower and the min seems lower, it seems to mostly stay around the same load give or take. I didn't really do any "scientific" test but yeah no huge noticeable improvement switching from rtsp to ffmpeg so far even with the passthrough. I'm going to try both in different conditions and see.
tommisgr
Posts: 23
Joined: Mon Aug 31, 2020 6:28 pm

Re: FFMPEG passthrough can not play video & what are best libraries?

Post by tommisgr »

Also you cannot change the FPS of the camera from the web interface of the IPCam App but u can directly from the phone inside the settings of the app.
Post Reply