Open varac opened 4 years ago
Using the resulting ppm file and transcoding it to webm doesn't work:
❯ ls -alh gource.ppm
-rw-r----- 1 varac varac 723M Nov 22 12:57 gource.ppm
❯ ffmpeg -y -r 60 -f image2pipe -vcodec ppm -i gource.ppm -vcodec libvpx -b 10000K gource.webm
ffmpeg version 4.1.4-1build2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9 (Ubuntu 9.2.1-4ubuntu1)
configuration: --prefix=/usr --extra-version=1build2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=1build2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-liblensfun --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
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
Input #0, image2pipe, from 'gource.ppm':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: ppm, rgb24, 1024x768, 60 tbr, 60 tbn, 60 tbc
Please use -b:a or -b:v, -b is ambiguous
Stream mapping:
Stream #0:0 -> #0:0 (ppm (native) -> vp8 (libvpx))
Press [q] to stop, [?] for help
[libvpx @ 0x55980a438a80] v1.8.1
Output #0, webm, to 'gource.webm':
Metadata:
encoder : Lavf58.20.100
Stream #0:0: Video: vp8 (libvpx), yuv420p, 1024x768, q=-1--1, 10000 kb/s, 60 fps, 1k tbn, 60 tbc
Metadata:
encoder : Lavc58.35.100 libvpx
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Error while decoding stream #0:0: Invalid data found when processing input
frame= 1 fps=0.0 q=0.0 Lsize= 3kB time=00:00:00.00 bitrate=23320.0kbits/s speed=0.0238x
video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 29.959875%
Time: 0h:01m:20s
> ls -al gource.webm
-rw-r----- 1 varac varac 2915 Nov 22 13:02 gource.webm
It's odd that it says gnome screensaver is segfaulting.
Are you running out of disk space writing the ppm? You could try the one line command to encode a video on the wiki: https://github.com/acaudwell/Gource/wiki/Videos#ffmpeg-using-x264-codec
If you try Gource 0.51 it might possibly help with the 'Invalid data found when processing input' error, as there was an issue with ffmpeg that seemed to be a regression in their handling of ppm files that I tried to work around, however it might actually be a corrupt file in this case.
I always get such a segfault when using gource, even on a 1-commit test git repo. I use gource like this:
and journalctl shows:
I'm using gource
0.49-1build1
on Ubuntu 19.10 with sway/wayland (maybe this is related to the libX11 segfault) ?