From: tosiara <to...@gm...> - 2019-06-11 08:41:43
|
So it is now clear that the command works fine. Now put back this line into your config: extpipe ffmpeg -y -f rawvideo -pix_fmt yuv420p -video_size %wx%h -framerate %fps -i pipe:0 -vcodec libx264 -preset ultrafast -f mp4 %f.mp4 Reproduce the issue and send full log with -d 7 On Tue, Jun 11, 2019 at 3:53 AM Harlan Daneker <hda...@gm...> wrote: > > > Thank you for replying, here is the output. > > > ffmpeg -y -f rawvideo -pix_fmt yuv420p -video_size 320x240 -framerate 5 -i pipe:0 -vcodec libx264 -preset ultrafast -f mp4 test.mp4 > ffmpeg version 4.1.3 Copyright (c) 2000-2019 the FFmpeg developers > built with gcc 9 (GCC) > configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect > libavutil 56. 22.100 / 56. 22.100 > libavcodec 58. 35.100 / 58. 35.100 > libavformat 58. 20.100 / 58. 20.100 > libavdevice 58. 5.100 / 58. 5.100 > libavfilter 7. 40.101 / 7. 40.101 > libavresample 4. 0. 0 / 4. 0. 0 > libswscale 5. 3.100 / 5. 3.100 > libswresample 3. 3.100 / 3. 3.100 > libpostproc 55. 3.100 / 55. 3.100 > > On Mon, Jun 10, 2019 at 10:42 AM tosiara <to...@gm...> wrote: >> >> "Does not work" does not contain enough information, do you agree? >> >> Try to run the command in your console: >> >> ffmpeg -y -f rawvideo -pix_fmt yuv420p -video_size 320x240 -framerate >> 5 -i pipe:0 -vcodec libx264 -preset ultrafast -f mp4 test.mp4 >> >> This should hang waiting for video on stdin. Copy the output and kill >> with CTRL+C. Send the output >> >> On Mon, Jun 10, 2019 at 5:15 PM Harlan Daneker <hda...@gm...> wrote: >> > >> > motion 4.1.1+git20180626-43b9c2b >> > >> > >> > This does not work: >> > extpipe ffmpeg -y -f rawvideo -pix_fmt yuv420p -video_size %wx%h -framerate %fps -i pipe:0 -vcodec libx264 -preset ultrafast -f mp4 %f.mp4 >> > >> > I have tried as many of the video formats as I was able to find and none of them work. >> > >> > So I just omitted "rawvideo -pix_fmt" and it works. >> > extpipe ffmpeg -y -video_size %wx%h -framerate %fps -i pipe:0 -vcodec libx264 -preset ultrafast -f mp4 %f.mp4 >> > >> > But I constantly get these errors in motion.log: >> > Motion.log >> > [1:ml1] [ERR] [EVT] [Jun 09 21:32:56] event_extpipe_put: Error writing in pipe , state error 1: Broken pipe >> > [1:ml1] [ERR] [EVT] Above message repeats 29 times >> > [1:ml1] [ERR] [EVT] [Jun 09 21:32:57] event_extpipe_put: Error writing in pipe , state error 1: Broken pipe >> > [1:ml1] [ERR] [EVT] Above message repeats 29 times >> > [1:ml1] [ERR] [EVT] [Jun 09 21:32:58] event_extpipe_put: Error writing in pipe , state error 1: Broken pipe >> > [1:ml1] [ERR] [EVT] Above message repeats 29 times >> > [1:ml1] [ERR] [EVT] [Jun 09 21:32:59] event_extpipe_put: Error writing in pipe , state error 1: Broken pipe >> > [1:ml1] [ERR] [EVT] Above message repeats 12 times >> > [1:ml1] [ERR] [EVT] [Jun 09 21:33:03] event_extpipe_put: Error writing in pipe , state error 1: Broken pipe >> > [1:ml1] [ERR] [EVT] Above message repeats 26 times >> > [1:ml1] [ERR] [EVT] [Jun 09 21:33:04] event_extpipe_put: Error writing in pipe , state error 1: Broken pipe >> > [1:ml1] [ERR] [EVT] Above message repeats 29 times >> > [1:ml1] [ERR] [EVT] [Jun 09 21:33:05] event_extpipe_put: Error writing in pipe , state error 1: Broken pipe >> > _______________________________________________ >> > 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 >> >> >> _______________________________________________ >> 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 > > _______________________________________________ > 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 |