Titot Posted July 4, 2017 Posted July 4, 2017 (edited) I am deciding for buy orange pi one board. But I want to use it for this pipe { ffmpeg -v -ss seconds -i ./video -vframes 7 -f image2pipe -vcodec bmp - | mkbitmap -x -f 3.5 -s 1 -b 1 -t 0.48 -o - | potrace --turdsize 2 --longcurve --turnpolicy black -b pdf -o pdf-file.pdf } . And I need someone that have the orange pi one that could test it and post the "fps speed" or time of process some video , 60 seconds . Edited July 4, 2017 by pfeerick Added board type to title
martinayotte Posted July 4, 2017 Posted July 4, 2017 After tweaking ffmpeg command line arguments (some were wrong), I got something like 6fps, but sometime 4.5fps ...
Titot Posted July 4, 2017 Author Posted July 4, 2017 Yes , The ffmpeg argument is wrong ... Is like this; { time ffmpeg -t 60 -i ./video -r 7 -f image2pipe -vcodec bmp - | mkbitmap -x -f 3.5 -s 1 -b 1 -t 0.48 -o - | potrace --alphamax 1.334 --turdsize 2 --longcurve --turnpolicy black -b pdf -o ./pdf-file-output.pdf } Please if you could ! test it , let me know the fps and time .
martinayotte Posted July 4, 2017 Posted July 4, 2017 "-i ./video" is also wrong, it required a input file, so here is what I used and reported output : time ffmpeg -t 60 -i ./Videos/dynamiteurs.mpg -r 7 -f image2pipe -vcodec bmp - | mkbitmap -x -f 3.5 -s 1 -b 1 -t 0.48 -o - | potrace --alphamax 1.334 --turdsize 2 --longcurve --turnpolicy black -b pdf -o ./pdf-file-output.pdf ffmpeg version 3.2.5-1~bpo8+1 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 4.9.2 (Debian 4.9.2-10) configuration: --prefix=/usr --extra-version='1~bpo8+1' --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --disable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared libavutil 55. 34.101 / 55. 34.101 libavcodec 57. 64.101 / 57. 64.101 libavformat 57. 56.101 / 57. 56.101 libavdevice 57. 1.100 / 57. 1.100 libavfilter 6. 65.100 / 6. 65.100 libavresample 3. 1. 0 / 3. 1. 0 libswscale 4. 2.100 / 4. 2.100 libswresample 2. 3.100 / 2. 3.100 libpostproc 54. 1.100 / 54. 1.100 Input #0, mpeg, from './Videos/dynamiteurs.mpg': Duration: 00:00:27.26, start: 0.066733, bitrate: 9321 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 352x480 [SAR 20:11 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s [swscaler @ 0x7f6d2e80] No accelerated colorspace conversion found from yuv420p to bgr24. Output #0, image2pipe, to 'pipe:': Metadata: encoder : Lavf57.56.101 Stream #0:0: Video: bmp, bgr24, 352x480 [SAR 20:11 DAR 4:3], q=2-31, 200 kb/s, 7 fps, 7 tbn, 7 tbc Metadata: encoder : Lavc57.64.101 bmp Stream mapping: Stream #0:0 -> #0:0 (mpeg2video (native) -> bmp (native)) Press [q] to stop, [?] for help frame= 192 fps=2.0 q=-0.0 Lsize= 95050kB time=00:00:27.42 bitrate=28388.3kbits/s dup=0 drop=625 speed=0.282x video:95050kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000% real 1m40.470s user 2m16.770s sys 0m1.840s root@orangepione:~# ll pdf-file.pdf -rw-r--r-- 1 root root 436971 Jul 4 09:01 pdf-file.pdf
Titot Posted July 5, 2017 Author Posted July 5, 2017 2 fps that's more fast than rpi1 but ... What other board will be better doing this pipe code??
martinayotte Posted July 5, 2017 Posted July 5, 2017 With ffmpeg alone, it was giving around 40fps. It is the mkimage that take too much time...
Titot Posted July 7, 2017 Author Posted July 7, 2017 ok { ffmpeg -t 60 -i ./"input-video" -r 7 -f image2pipe -vcodec bmp ./imgage-%d.bmp } code goes on 40 fps !! thats fast !! and How fast goes the inverse { ffmpeg -framerate 7 -i ./image-%d.bmp -pix_fmt yuv420p ./out-video.mp4 } with the modification of the encoder "I don't know"?
Titot Posted July 13, 2017 Author Posted July 13, 2017 martinayotte , Is this " orange pi one allwinner" better for video convert , encode , transcode , or things related to fast ffmpeg performance ? or other boards, tv boxes with amlogic or rockship are faster in those tasks??
martinayotte Posted July 13, 2017 Posted July 13, 2017 I really don't know, but yes, I think those rockchip are probably faster, but I don't own any ...
Recommended Posts