|
From: tosiara <to...@gm...> - 2018-01-25 09:14:24
|
Lets test your ffmpeg
Create a script "rawvideo.sh":
while [ true ]
do
mx=320;my=240;head -c "$((3*mx*my))" /dev/urandom
sleep 1
done
Then run a command:
./rawvideo.sh | ffmpeg -y -f rawvideo -pix_fmt yuv420p -video_size
320x240 -framerate 1 -i pipe:0 -vcodec libvpx test.webm
Let it run for some time and kill using CTRL+C
You should now get a test.webm file. Do you get it? If not - what
error does ffmpeg write to console?
On Thu, Jan 25, 2018 at 10:48 AM, Sébastien Delafond <se...@de...> wrote:
> On 2018-01-25, tosiara <to...@gm...> wrote:
>> I don't see any error. Has the file
>> "/var/lib/motion/2018-01-24/2018-01-24T16-37-04_01_23.webm" been
>> created?
>
> "pclose return: -1" seemed wrong to me. There is a webm file, but it's 0
> bytes long...
>
> --Seb
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Motion-user mailing list
> Mot...@li...
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
|