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

351-Rebase Attempt for ffmpeg stability fixes #531

Merged
merged 8 commits into from Nov 13, 2014

Conversation

SteveGilvarry
Copy link
Member

zm_ffmpeg_camera.cpp was the biggest issue here as @Sune1337 had done some cleanup into functions and merge struggles to make sense of structural changes. Anyway I thought I would put this up here as an option to get #351 in.

I find sometimes rebase is a better option for a stale pull request as it reapplies the commits in the pull request to the current master, as opposed the the merge which brings all the changes since the pull was created into the pull branch.

Anyone who wants to check this out locally as the changed file view in Github is struggling with the structural changes also. https://help.github.com/articles/checking-out-pull-requests-locally/

If you work out how to merge #351 let me know and I can delete this request.

Sune1337 and others added 8 commits October 12, 2014 16:23
Sometimes when restarting the camera ffmpeg hung itself in some state, when calling avformat_open_input, which seemed to last forever.
- Reopen stream if av_read_frame returns EOF
Sometimes ffmpeg starts returning an EOF error when calling av_read_frame. Once this happens it seems no more images will ever be captured.
- Reopen stream if av_read_frame returns -110
Means something like Connection failed; cant remember. Anyway. Once this happens it seems no more images will ever be captured.
- don't spawn a new thread for every attempt to open a stream while reconnecting.
@Sune1337
Copy link
Contributor

I compared this pull request to my local version (which i merged into ZoneMinder/master manually), and we've gotten the same results.

knight-of-ni pushed a commit that referenced this pull request Nov 13, 2014
351-Rebase Attempt for ffmpeg stability fixes
@knight-of-ni knight-of-ni merged commit a00f719 into ZoneMinder:master Nov 13, 2014
@SteveGilvarry SteveGilvarry deleted the ffmpeg-stability-fixes branch July 28, 2015 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants