Send Motion-user mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. Motion FPS bug: slowmotion vs lags (tosiara)
   2. Re: Pixelated Playback (Harlan Daneker)


----------------------------------------------------------------------

Message: 1
Date: Thu, 29 Jan 2015 18:15:38 +0200
From: tosiara <[email protected]>
Subject: [Motion-user] Motion FPS bug: slowmotion vs lags
To: Motion discussion list <[email protected]>
Message-ID:
        <cachtdwqey-uv3zquv+7z-c6ky8dgriwd6laaw-v-puedmbw...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Hi,

I have seen this bug for quite long time, but now finally created
proof of concept.

The issue is how motion deals with variable frame rate. Depending on
the amount of light a web cam changes FPS: more light - more frames
per second.

When real frame rate increases - motion generates "slow" movie. For
example, motion started movie as 7 fps, but then camera started
sending 30 fps - you will have "slowmotion" effect.

When real frame rate decreases - motion starts filling "pauses" into
movie: copying last second's frame N-times.

Please see examples:

"Slowmotion" - https://yadi.sk/i/hnsMAPhTeKpH9
"Lags" - https://yadi.sk/i/4cnHPQAyeKpKj

Config: http://pastebin.com/FUViNzQt
Uses extpipe x264 (compiled with gpac)
Compiled latest "master" branch of Mr-Dave - https://github.com/Mr-Dave/motion

To reproduce "slowmotion", close web camera lens using your finger -
it will drop to the lowest framerate. Start motion, wait for 10
seconds and start generating movements - motion will begin writing a
movie at 7 fps. Then use flashlight to bring more light into web cam
lens - camera starts giving maximum frame rate.

To reproduce "lags" do vice versa. Turn on flashlight, camera will
switch to highest frame rate. Start motion and generate movements -
motion starts movie at 30 fps. Now turn flashlight off - camera drops
frame rate to lover (15 in my case).

Any ideas how we could fix that?

Thanks



------------------------------

Message: 2
Date: Sat, 31 Jan 2015 11:43:09 -0500
From: Harlan Daneker <[email protected]>
Subject: Re: [Motion-user] Pixelated Playback
To: Motion discussion list <[email protected]>
Message-ID:
        <cac1wkitxndo2siw3hppdmakgxd7ngu-jxqgyde+ozfer71q...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I've been trying different things as I've had the time.* FPS is set at 18*
and says *18 *in the log file, *bps is 1000000*. What I don't understand is
with the same frame rate and bps using

motion-3.3.0-trunkREV557.9.fc20.x86_64 from rpmfusion
and ffmpeg-2.1.7-1.fc20.x86_64

I don't have the problem.

If I use ffmpeg_variable_bitrate 2 it's not to bad, still some combing and
the files are to large. I can still achieve better results with the rpm
version. The rpm version wants to die occasionally which is why I'm trying
compiling myself. I've gone back one kernel version to see if that stops
the rpm version from dying. I would like to get the compiled version
working correctly.






On Tue, Jan 27, 2015 at 11:44 PM, Mr Dave <[email protected]> wrote:

>
> I was able to reproduce the effect by changing the FPS.  Can you tell me
> some of the FPS stats for your setup?  In particular:
> FPS that camera is sending (also whether it is a netcam or webcam.)
> FPS that is specified in the config
> Turn on NTC level for logging in the config and when it starts a movie, it
> should report out a
> event_new_video FPS and a Selected Output FPS
> when it creates any new video.
>
> When I had all of these in sync somewhat the videos were better.
> Dave
>
>
> On 1/26/2015 6:38 PM, Harlan Daneker wrote:
>
>  There is something odd going on. I compiled with ffmpeg-2.5.3,
> ffmpeg-2.1.7 and ffmpeg-2.0.6. I don't see any difference.
>
>  Fedora 20 version is ffmpeg-2.1.7-1.fc20.x86_64 and seems to work better.
>
> On Mon, Jan 26, 2015 at 7:03 PM, Harlan Daneker <[email protected]>
> wrote:
>
>>   Thanks,
>>
>>  Increasing the bitrate helps, but I am unable to get the recordings to
>> playback with the same quality as the older version of ffmpeg.
>>
>>  I changed it from *ffmpeg_bps 500000* to  *ffmpeg_variable_bitrate 2*.
>>
>>  This is an issue I hope will be worked on in the future.
>>
>> On Mon, Jan 26, 2015 at 2:04 PM, tosiara <[email protected]> wrote:
>>
>>>  Your RPM and GIT uses different ffmpeg versions:
>>> Lavf55.19.104 vs Lavf56.19.100
>>>
>>>  I also have had such issues with motion's written movies, especially in
>>> timelapse. There was short discussion about that, but the issue was not
>>> identified. To workaround I just increased bitrate:
>>> https://github.com/Mr-Dave/motion/commit/b6f73ffccb845f2ad265710b585577b3973eec29#commitcomment-8459232
>>>
>>>  What bitrate do you use in your config? Check if that value is not
>>> ignored (parameter was renamed between 3.2 and trunk)
>>>
>>> On Mon, Jan 26, 2015 at 8:47 PM, Harlan Daneker <[email protected]>
>>> wrote:
>>>
>>>> Sorry,
>>>>
>>>> These were recorded a few hours apart, any ideas why the compiled
>>>> version is pixelated?
>>>>
>>>> Fedora 20, motion 3.4.0-Git-78ba2da, FFmpeg N-69160-g1013c15
>>>> http://www.htd.dns2go.com/GIT-122333.avi
>>>> <https://192.168.1.12/GIT-122333.avi>
>>>>
>>>> Fedora 20, motion 3.3.0-RPM, ffmpeg-2.1.7-1.fc20.x86_64
>>>> http://www.htd.dns2go.com/RPM-064744.avi
>>>> <https://192.168.1.12/RPM-064744.avi>
>>>>
>>>>
>>>> On Mon, Jan 26, 2015 at 1:38 PM, tosiara <[email protected]> wrote:
>>>>
>>>>> Nobody can access files on your private network. Upload files to
>>>>> Dropbox or Google drive
>>>>>
>>>>>  On Mon, Jan 26, 2015 at 7:59 PM, Harlan Daneker <[email protected]>
>>>>> wrote:
>>>>>
>>>>>>   Hi:
>>>>>>
>>>>>> These were recorded a few hours apart, any ideas why the compiled
>>>>>> version is pixelated?
>>>>>>
>>>>>> Fedora 20, motion 3.4.0-Git-78ba2da, FFmpeg N-69160-g1013c15
>>>>>> https://192.168.1.12/GIT-122333.avi
>>>>>>
>>>>>> Fedora 20, motion 3.3.0-RPM, ffmpeg-2.1.7-1.fc20.x86_64
>>>>>> https://192.168.1.12/RPM-064744.avi
>>>>>>
>>>>>>
>>>>>>
>>>>>>  Harlan
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Dive into the World of Parallel Programming. The Go Parallel Website,
>>>>>> sponsored by Intel and developed in partnership with Slashdot Media,
>>>>>> is your
>>>>>> hub for all things parallel software development, from weekly thought
>>>>>> leadership blogs to news, videos, case studies, tutorials and more.
>>>>>> Take a
>>>>>> look and join the conversation now.
>>>>>> http://goparallel.sourceforge.net/
>>>>>> _______________________________________________
>>>>>> Motion-user mailing list
>>>>>> [email protected]
>>>>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>>>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Dive into the World of Parallel Programming. The Go Parallel Website,
>>>>> sponsored by Intel and developed in partnership with Slashdot Media,
>>>>> is your
>>>>> hub for all things parallel software development, from weekly thought
>>>>> leadership blogs to news, videos, case studies, tutorials and more.
>>>>> Take a
>>>>> look and join the conversation now. http://goparallel.sourceforge.net/
>>>>> _______________________________________________
>>>>> Motion-user mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>>>
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Dive into the World of Parallel Programming. The Go Parallel Website,
>>>> sponsored by Intel and developed in partnership with Slashdot Media, is
>>>> your
>>>> hub for all things parallel software development, from weekly thought
>>>> leadership blogs to news, videos, case studies, tutorials and more.
>>>> Take a
>>>> look and join the conversation now. http://goparallel.sourceforge.net/
>>>> _______________________________________________
>>>> Motion-user mailing list
>>>> [email protected]
>>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>>
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Dive into the World of Parallel Programming. The Go Parallel Website,
>>> sponsored by Intel and developed in partnership with Slashdot Media, is
>>> your
>>> hub for all things parallel software development, from weekly thought
>>> leadership blogs to news, videos, case studies, tutorials and more. Take
>>> a
>>> look and join the conversation now. http://goparallel.sourceforge.net/
>>> _______________________________________________
>>> Motion-user mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/motion-user
>>> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>>>
>>>
>>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
>
>
>
> _______________________________________________
> Motion-user mailing 
> [email protected]https://lists.sourceforge.net/lists/listinfo/motion-userhttp://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/

------------------------------

_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user


End of Motion-user Digest, Vol 104, Issue 16
********************************************

Reply via email to