Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only first few frames of motion recorded #1115

Closed
topshed opened this issue Sep 4, 2017 · 19 comments
Closed

Only first few frames of motion recorded #1115

topshed opened this issue Sep 4, 2017 · 19 comments

Comments

@topshed
Copy link

topshed commented Sep 4, 2017

Not sure if this is the same as #1094 but only the first couple of seconds of a recorded movie contains frames with motion. The rest of the movie is just one frame repeated. Tried with a Pi B and Pi3 image. Reproducible.

@jasaw
Copy link
Collaborator

jasaw commented Sep 4, 2017

Which version of MotionEyeOS are you running?

@topshed
Copy link
Author

topshed commented Sep 5, 2017

20170710

@jasaw
Copy link
Collaborator

jasaw commented Sep 6, 2017

MotionEyeOS-20170710 is running very old version of motion software which has known issues with video recording.

A lot of video recording issues have been fixed. Are you able to test this version that's on my fork?
https://github.com/jasaw/motioneyeos/releases/tag/20170827-drain-codec

@timdonovanuk
Copy link

I'll give this a go, as the current MotioneyeOs is unusable on a Pi Zero W, with regards to movie capture. Will report back.

@timdonovanuk
Copy link

timdonovanuk commented Sep 22, 2017

Same problem, half the video is a black screen, the rest is a single still frame. I think the file is also corrupt in some way, VLC certainly has a hard time playing it (you cannot skip ahead or rewind etc). I've attached a sample zipped (github wouldn't let me upload mp4).
Camera1_15-36-59.zip

This is on the latest release of both the standard and the fork provided by jasaw, with a Pi Zero W.

@jasaw
Copy link
Collaborator

jasaw commented Sep 22, 2017

@timdonovanuk I can playback your video file without any problem. Can you please try a different player?

It looks like it's 320 x 200 resolution at 1 fps. You might want to try the OMX codec if you're using my forked version to get higher frame rate.

@timdonovanuk
Copy link

timdonovanuk commented Sep 22, 2017

I've tried on my usual VLC player but just tried SMPlayer too. It worked in SMPlayer this time...I've had it simply crash from trying to play MotionEyeOs output though.

Super weird, because VLC is quite widespread and plays pretty much anything. I wonder if its just my machine!

I'll clear my browser cache and try your fork. Many thanks @jasaw !

edit: just to say, playback in SMPlayer (for me) is by no means perfect. With the uploaded clip, it only works 1/4 times. The rest it either crashes SMPlayer or I get similar behaviour to VLC with a black screen for many seconds.

@timdonovanuk
Copy link

Thanks @jasaw this is working well for me! I changed the codec type to Matroska OMX mkv and have no problems playing videos now.

Really weird, as I've never had any problems playing other movie files..

@jasaw
Copy link
Collaborator

jasaw commented Sep 25, 2017

@timdonovanuk You may want to try MX Player if the other players are giving you problems in the future. MX Player has been working well for me.

As for the OMX codec on my fork, it will be available on official motionEyeOS eventually.

@jasaw jasaw closed this as completed Sep 25, 2017
@timdonovanuk
Copy link

To be honest, VLC is the golden standard of media players, and if that struggles to play it, then something is very wrong (albeit, maybe with my computer - although again, never had a single problem with other media).

I tried watching one of the MP4's generated byMotionEye on my Android phone, and it crashed the stock video player...

@topshed
Copy link
Author

topshed commented Sep 25, 2017

Changing media players doesn't help for me. I've tried QuickTime and even imported into iMovie. Still multiple repeated frames, mostly at the start of the movies.

@jasaw
Copy link
Collaborator

jasaw commented Sep 25, 2017

@topshed Which version of motionEyeOS are you running? Are you running my forked version? Honestly, I have never used QuickTime or iMovie, so no idea how well they handle H264.

@timdonovanuk H264 standard has many profiles. Many older versions of players cannot even handle H264 baseline profile properly, especially older smartphones. Try the latest MX Player on your Android phone. I never come across a stock player that is good enough, even on my brand new Android phone. They always struggle with some format, or freeze, or even crash. Which version of VLC are you running?

@topshed
Copy link
Author

topshed commented Sep 26, 2017

I'm convinced this is a big in motion. I've switched to using a Pi 3 with the latest Stretch Raspbian image and the latest version of motion. I still see the same problem (although not as severe). At some parts of the movie, normally the start, there are multiple repeated frames.

@jasaw
Copy link
Collaborator

jasaw commented Sep 27, 2017

@topshed Which versions of motion did you run? Please provide the git hash of the versions that you were referring to, otherwise no one can help you. When you say latest version, do you mean git-2eedfdc01522102f3d5d5b99dcc7fb35db1e8147 ?

I have fixed multiple motion bugs related to movie recording, some merged into upstream, some still pending. I can't help you if you don't provide any information.

@metalshreds
Copy link

I'm wondering if this is the same problem I'm having. first few seconds record, then freezes for most of the video. rpi3 running latest motion version, version: 4.0.1+git37b3595.
Front of House_10-58-10.avi.zip

@jasaw
Copy link
Collaborator

jasaw commented Oct 22, 2017

@metalshreds That motion version is very old, from Wed Nov 2 2016. Since then, there has been A LOT of work done to fix video recording and playback issues. Please try motionEyeOS pre-release version 20171008 and report back.

@metalshreds
Copy link

ahh sorry, was not aware I was using such an old version. I'll do that and get back, thank you :)

@metalshreds
Copy link

@jasaw this latest version has been working really well, thank you! videos are very smooth using H.264/OMX :)

@jasaw
Copy link
Collaborator

jasaw commented Oct 24, 2017

@metalshreds Very glad to hear that ! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants