Time lapse bug

i am using a raspberry pi 2 to run my server, using the armel version software and when the timelapse command is run after a print, there is an error. what would fix this? i have another command i can manually run on the pi to create the timlapse but that has nothing to do with the server.
  Here is the code:
**Pressing Recreate Video on Web Portal**
RESULT: 48 byte mp4 file. Internet Explorer says Invalid Source.
---------------------------------------------------------------------------
**Command from Log File executed as pi user**
CMD: /usr/src/ffmpeg/ffmpeg -loglevel error -f concat -i /var/lib/Repetier-Server/printer/Davinci_10/timelapse/20160101T215816_stretchlet/input.txt -c:v libx264 -threads 1 -r 30 -pix_fmt yuv420p -profile:v baseline -level 3.0 -movflags +faststart -b:v 1000k -y /var/lib/Repetier-Server/printer/Davinci_10/timelapse/20160101T215816_stretchlet/video.mp4

OUTPUT:
Bus error

RESULT: 48 byte mp4 file. Internet Explorer says Invalid Source.
---------------------------------------------------------------------------
**Command from Log File Executed as repetierserver**
CMD: /usr/src/ffmpeg/ffmpeg -loglevel error -f concat -i /var/lib/Repetier-Server/printer/Davinci_10/timelapse/20160101T215816_stretchlet/input.txt -c:v libx264 -threads 1 -r 30 -pix_fmt yuv420p -profile:v baseline -level 3.0 -movflags +faststart -b:v 1000k -y /var/lib/Repetier-Server/printer/Davinci_10/timelapse/20160101T215816_stretchlet/video.mp4

OUTPUT:
Bus error

RESULT: 48 byte mp4 file. Internet Explorer says Invalid Source.
---------------------------------------------------------------------------
**Command from Log File Executed as root**
CMD: /usr/src/ffmpeg/ffmpeg -loglevel error -f concat -i /var/lib/Repetier-Server/printer/Davinci_10/timelapse/20160101T215816_stretchlet/input.txt -c:v libx264 -threads 1 -r 30 -pix_fmt yuv420p -profile:v baseline -level 3.0 -movflags +faststart -b:v 1000k -y /var/lib/Repetier-Server/printer/Davinci_10/timelapse/20160101T215816_stretchlet/video.mp4

OUTPUT:
Bus error

RESULT: 48 byte mp4 file. Internet Explorer says Invalid Source.
---------------------------------------------------------------------------
**Custom Command executed as repetierserver**
NOTE: This is executed within the folder containing the timelapse images. This command outputs the exact same when called with a definite filepath to the ffmpeg executable and/or the image location.

CMD: ffmpeg -f image2 -r 30 -i image_00000%03d.jpg -r 30 -s hd1080 -vcodec libx264 video.mp4

OUTPUT:
ffmpeg version N-77535-g9f4c7b4 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (Raspbian 4.9.2-10)
configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --disable-fast-unaligned
libavutil 55. 11.100 / 55. 11.100
libavcodec 57. 20.100 / 57. 20.100
libavformat 57. 21.100 / 57. 21.100
libavdevice 57. 0.100 / 57. 0.100
libavfilter 6. 22.100 / 6. 22.100
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[mjpeg @ 0x18c81c0] Changing bps to 8
Input #0, image2, from 'image_00000%03d.jpg':
Duration: 00:00:02.63, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 240x320 [SAR 1:1 DAR 3:4], 30 fps, 30 tbr, 30 tbn, 30 tbc
File 'video.mp4' already exists. Overwrite ? [y/N] y
[swscaler @ 0x18e9c70] deprecated pixel format used, make sure you did set range correctly
No pixel format specified, yuvj420p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 0x18cd120] using SAR=27/64
[libx264 @ 0x18cd120] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x18cd120] profile High, level 4.0
[libx264 @ 0x18cd120] 264 - core 148 r2638 7599210 - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'video.mp4':
Metadata:
encoder : Lavf57.21.100
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj420p(pc), 1920x1080 [SAR 27:64 DAR 3:4], q=-1--1, 30 fps, 15360 tbn, 30 tbc
Metadata:
encoder : Lavc57.20.100 libx264
Side data:
unknown side data type 10 (24 bytes)
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Press [q] to stop, [?] for help
frame= 79 fps=0.8 q=-1.0 Lsize= 2024kB time=00:00:02.56 bitrate=6458.8kbits/s speed=0.0253x
video:2022kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.065191%
[libx264 @ 0x18cd120] frame I:1 Avg QP:27.63 size: 45003
[libx264 @ 0x18cd120] frame P:70 Avg QP:27.14 size: 26878
[libx264 @ 0x18cd120] frame B:8 Avg QP:27.20 size: 17963
[libx264 @ 0x18cd120] consecutive B-frames: 82.3% 12.7% 0.0% 5.1%
[libx264 @ 0x18cd120] mb I I16..4: 23.0% 72.2% 4.8%
[libx264 @ 0x18cd120] mb P I16..4: 12.6% 20.6% 0.6% P16..4: 44.4% 6.5% 1.5% 0.0% 0.0% skip:13.9%
[libx264 @ 0x18cd120] mb B I16..4: 3.5% 3.3% 0.1% B16..8: 38.5% 7.7% 0.5% direct: 8.2% skip:38.3% L0:52.6% L1:43.4% BI: 3.9%
[libx264 @ 0x18cd120] 8x8 transform intra:61.1% inter:93.1%
[libx264 @ 0x18cd120] coded y,uvDC,uvAC intra: 35.8% 60.1% 6.9% inter: 21.5% 44.3% 0.3%
[libx264 @ 0x18cd120] i16 v,h,dc,p: 6% 67% 3% 24%
[libx264 @ 0x18cd120] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 48% 17% 2% 3% 2% 6% 2% 5%
[libx264 @ 0x18cd120] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 57% 11% 2% 4% 3% 7% 2% 3%
[libx264 @ 0x18cd120] i8c dc,h,v,p: 43% 41% 11% 6%
[libx264 @ 0x18cd120] Weighted P-Frames: Y:31.4% UV:20.0%
[libx264 @ 0x18cd120] ref P L0: 49.6% 13.3% 20.7% 12.3% 4.2%
[libx264 @ 0x18cd120] ref B L0: 69.9% 28.4% 1.7%
[libx264 @ 0x18cd120] ref B L1: 87.3% 12.7%
[libx264 @ 0x18cd120] kb/s:6289.05

RESULT: Playable, valid timelapse video of 2072185 bytes. Web interface can play the video, but still says 48 bytes.

Comments

  • First are you getting images? You should be able to shuffle through your images after a print. If so it is just a question of succeeding in creating the mp5 movie. On my raspberry Pi 2 I have installed ffmpeg from the ffmpeg homepage->linux. Valling it without parameter shows







    ffmpeg version 1.2.12 Copyright (c) 2000-2015 the FFmpeg developers

      built on Feb 12 2015 18:13:26 with gcc 4.6 (Debian 4.6.3-14)

      configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/arm-linux-gnueabihf --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --  libavutil      52. 18.100 / 52. 18.100

      libavcodec     54. 92.100 / 54. 92.100

      libavformat    54. 63.104 / 54. 63.104

      libavdevice    54.  3.103 / 54.  3.103

      libavfilter     3. 42.103 /  3. 42.103

      libswscale      2.  2.100 /  2.  2.100

      libswresample   0. 17.102 /  0. 17.102

      libpostproc    52.  2.100 / 52.  2.100

    Hyper fast Audio and Video encoder

    usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...


    And this version works. As you pure command show your version seems to get an error while converting. You see in server.log what command the server sends and you should be able to run it on your own (maybe as root to be able to write in that directory). For me it was for example










    /usr/bin/ffmpeg -loglevel error -f concat -i /var/lib/Repetier-Server/printer/Stacker/timelapse/20151114T114311_PlunderbussPete/input.txt -i /usr/local/Repetier-Server/www/img/watermark.png -c:v libx264 -filter_complex [0:v][1:v] overlay=main_w-overlay_w-10:10 -threads 3 -r 30 -pix_fmt yuv420p -profile:v baseline -level 3.0 -movflags +faststart -b:v 1000k -y /var/lib/Repetier-Server/printer/Stacker/timelapse/20151114T114311_PlunderbussPete/video.mp4


Sign In or Register to comment.