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. Re: Pixelated Playback (tosiara)
----------------------------------------------------------------------
Message: 1
Date: Thu, 19 Mar 2015 15:42:44 +0200
From: tosiara <[email protected]>
Subject: Re: [Motion-user] Pixelated Playback
To: Motion discussion list <[email protected]>
Message-ID:
<cachtdwtkz30_379ohgyfxhgnij6gaefewxr36qf4jmpvne4...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hi all,
there was also similar issue reported on Github () and we came to solution
for using ext_pipe:
1. check "x264 --help"
2. if you see ".mp4 -> MP4 if compiled with GPAC or L-SMASH support* (no)*"
then you will get "broken pipe" error, as there is no MP4 support in your
x264
3. if so, install libgpac-dev and recompile x264 from source
Full thread: https://github.com/Mr-Dave/motion/issues/64
HTH
On Sun, Feb 15, 2015 at 10:02 AM, tosiara <[email protected]> wrote:
> If you run in console "x264 - --input-res 640x480 --fps 18 --bitrate
> 600000 --preset ultrafast --quiet -o output.mp4" - what do you get?
>
> On Sun, Feb 15, 2015 at 3:50 AM, Harlan Daneker <[email protected]>
> wrote:
>
>> use_extpipe on
>> extpipe x264 - --input-res 640x480 --fps 18 --bitrate 600000 --preset
>> ultrafast --quiet -o output.mp4
>>
>> [1] [NTC] [EVT] [Feb 14 20:43:39] event_new_video FPS 18
>> [1] [NTC] [EVT] [Feb 14 20:43:39] event_create_extpipe: pipe: x264 -
>> --input-res 640x480 --fps 18 --bitrate 600000 --preset ultrafast --quiet -o
>> output.mp4
>> [1] [NTC] [EVT] [Feb 14 20:43:39] event_create_extpipe: cnt->moviefps: 18
>> [1] [NTC] [EVT] [Feb 14 20:43:39] event_newfile: File of type 8 saved to:
>> /cache/video/Cam1/01-20150214204339
>> [1] [NTC] [ALL] [Feb 14 20:43:39] motion_detected: Motion detected -
>> starting event 1
>> [1] [ERR] [EVT] [Feb 14 20:43:39] event_extpipe_put: Error writting in
>> pipe , state error 1: Broken pipe
>>
>>
>> *Can somebody give me a clue what I am doing wrong?*
>>
>>
>>
>> On Fri, Feb 6, 2015 at 3:30 AM, tosiara <[email protected]> wrote:
>>
>>> For H.264 you can use ext_pipe command, like this:
>>>
>>> extpipe x264 - --input-res %wx%h --fps %fps --bitrate 6000 --preset
>>> ultrafast --quiet -o %f.mp4
>>>
>>> The advantage of ext_pipe is that you can use whatever encoder that
>>> supports raw frames from stdin, and second - you utilize more than just one
>>> CPU core which gives you huge performance boost on multi-core devices.
>>>
>>> On Thu, Feb 5, 2015 at 6:58 AM, Harlan Daneker <[email protected]>
>>> wrote:
>>>
>>>>
>>>> *This appears to be an ffmpeg issue. (h264 codec)*
>>>>
>>>> #./ffmpeg -f v4l2 -framerate 28 -video_size 640x480 -i /dev/video0 -b:v
>>>> 500000 output.mkv
>>>>
>>>> * ffmpeg-2.1.7-1.fc20.x86_64* (playbacks are good quality)
>>>> Output #0, matroska, to '/output1.mkv':
>>>> Metadata:
>>>> encoder : Lavf55.19.104
>>>> *Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248)*, yuv420p,
>>>> 640x480, q=-1--1, 500 kb/s, 1k tbn, 29.97 tbc
>>>> Stream mapping:
>>>> Stream #0:0 -> #0:0 (rawvideo -> libx264)
>>>> Press [q] to stop, [?] for help
>>>> frame= 266 fps= 29 q=-1.0 Lsize= 547kB time=00:00:08.80 bitrate=
>>>> 509.0kbits/s
>>>> video:545kB audio:0kB subtitle:0 global headers:0kB muxing overhead
>>>> 0.443394%
>>>>
>>>> *Compiled ffmpeg* (playbacks are pixelated)
>>>> Output #0, matroska, to '/output2.mkv':
>>>> Metadata:
>>>> encoder : Lavf56.19.100
>>>> * Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46)*, yuv420p, 640x480,
>>>> q=2-31, 500 kb/s, 29.97 fps, 1k tbn, 29.97 tbc
>>>> Metadata:
>>>> encoder : Lavc56.20.100 mpeg4
>>>> Stream mapping:
>>>> Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))
>>>> Press [q] to stop, [?] for help
>>>> frame= 467 fps= 30 q=9.5 Lsize= 1167kB time=00:00:15.58 bitrate=
>>>> *613.5kbits/s*
>>>> video:1162kB audio:0kB subtitle:0kB other streams:0kB global
>>>> headers:0kB muxing overhead: 0.443893
>>>>
>>>> *Solution*
>>>> I compiled https://github.com/cisco/openh264 must use version *1.3*
>>>> #cd openh264
>>>> #git checkout v1.3
>>>> #make ENABLE64BIT=Yes # Use ENABLE64BIT=No for 32bit platforms
>>>> #make install
>>>>
>>>> #cd ffmpeg
>>>> #export PKG_CONFIG_PATH=/opt/openh264
>>>> #./configure --enable-gpl --enable-libopenh264
>>>> #make
>>>> #make install
>>>>
>>>> #export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/bin
>>>> #./ffmpeg -f v4l2 -framerate 28 -video_size 640x480 -i /dev/video0 -b:v
>>>> 500000 -vcodec h264 output.mkv
>>>>
>>>>
>>>> *Pixelation is much better!!*
>>>>
>>>> *How do I set the library path permanently??* (Please show examples)
>>>> *How can I have motion use the **h264 codec??* (Please show examples*)*
>>>>
>>>> On Sat, Jan 31, 2015 at 9:31 PM, Harlan Daneker <[email protected]>
>>>> wrote:
>>>>
>>>>> I forgot this info:
>>>>>
>>>>> CCTV camera, coax, and the capture card below
>>>>>
>>>>>
>>>>> http://store.bluecherry.net/pv-149-4-port-video-capture-card-v4l-windows-directshow-120fps.html
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Jan 31, 2015 at 11:43 AM, Harlan Daneker <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> 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
>>
>>
>
-------------- 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 106, Issue 4
*******************************************