xbelanch / OBS4Pi

Compiling and building ffmpeg and OBS for Raspberry Pi 4
MIT License
35 stars 7 forks source link

Install missing dependencies - doesnt't work #9

Closed Hubert97 closed 3 years ago

Hubert97 commented 3 years ago

When running script on fresh install of RaspberyPiOS (32bit) . I get this error. pi@raspberrypi:~/Downloads/OBS4Pi $ ./build.sh

OBS4Pi4: Building Script v0.0.2

OS: Linux 5.10.17-v7l+ armv7l Compilation timestamp: 15:29:47 21-06-21

Update and upgrade list of installed packages

Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following package was automatically installed and is no longer required: python-colorzero Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Install missing dependencies

real 0m5.953s user 0m4.610s sys 0m1.131s

xbelanch commented 3 years ago

Please @Hubert97 could you provide a new log after updating to the last commit?

Hubert97 commented 3 years ago

================================= OBS4Pi4: Building Script v0.0.2

OS: Linux 5.10.17-v7l+ armv7l Description: Raspbian GNU/Linux 10 (buster) Compilation timestamp: 22:03:38 22-06-21

Update and upgrade list of installed packages

Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following package was automatically installed and is no longer required: python-colorzero Use 'sudo apt autoremove' to remove it. The following packages will be upgraded: libegl-mesa0 libegl1-mesa-dev libgbm1 libgl1-mesa-dev libgl1-mesa-dri libglapi-mesa libgles2-mesa libgles2-mesa-dev libglx-mesa0 liblz4-1 mesa-va-drivers mesa-vdpau-drivers 12 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 10.3 MB of archives. After this operation, 0 B of additional disk space will be used. Get:1 http://archive.raspberrypi.org/debian buster/main armhf libegl-mesa0 armhf 19.3.2-1~bpo10+1~rpt4 [120 kB] Get:2 http://archive.raspberrypi.org/debian buster/main armhf libgbm1 armhf 19.3.2-1~bpo10+1~rpt4 [67.2 kB] Get:3 http://archive.raspberrypi.org/debian buster/main armhf libgl1-mesa-dri armhf 19.3.2-1~bpo10+1~rpt4 [5,551 kB] Get:4 http://ftp.icm.edu.pl/pub/Linux/distributions/raspbian/raspbian buster/main armhf liblz4-1 armhf 1.8.3-1+deb10u1 [49.7 kB] Get:5 http://archive.raspberrypi.org/debian buster/main armhf libglx-mesa0 armhf 19.3.2-1~bpo10+1~rpt4 [167 kB] Get:6 http://archive.raspberrypi.org/debian buster/main armhf libglapi-mesa armhf 19.3.2-1~bpo10+1~rpt4 [78.5 kB] Get:7 http://archive.raspberrypi.org/debian buster/main armhf libegl1-mesa-dev armhf 19.3.2-1~bpo10+1~rpt4 [51.0 kB] Get:8 http://archive.raspberrypi.org/debian buster/main armhf libgl1-mesa-dev armhf 19.3.2-1~bpo10+1~rpt4 [49.4 kB] Get:9 http://archive.raspberrypi.org/debian buster/main armhf libgles2-mesa armhf 19.3.2-1~bpo10+1~rpt4 [49.4 kB] Get:10 http://archive.raspberrypi.org/debian buster/main armhf libgles2-mesa-dev armhf 19.3.2-1~bpo10+1~rpt4 [49.4 kB] Get:11 http://archive.raspberrypi.org/debian buster/main armhf mesa-va-drivers armhf 19.3.2-1~bpo10+1~rpt4 [1,980 kB] Get:12 http://archive.raspberrypi.org/debian buster/main armhf mesa-vdpau-drivers armhf 19.3.2-1~bpo10+1~rpt4 [2,094 kB] Fetched 10.3 MB in 1s (9,314 kB/s) apt-listchanges: Reading changelogs... (Reading database ... 114089 files and directories currently installed.) Preparing to unpack .../liblz4-1_1.8.3-1+deb10u1_armhf.deb ... Unpacking liblz4-1:armhf (1.8.3-1+deb10u1) over (1.8.3-1) ... Setting up liblz4-1:armhf (1.8.3-1+deb10u1) ... (Reading database ... 114089 files and directories currently installed.) Preparing to unpack .../00-libegl-mesa0_19.3.2-1~bpo10+1~rpt4_armhf.deb ... Unpacking libegl-mesa0:armhf (19.3.2-1~bpo10+1~rpt4) over (19.3.2-1~bpo10+1~rpt3) ... Preparing to unpack .../01-libgbm1_19.3.2-1~bpo10+1~rpt4_armhf.deb ... Unpacking libgbm1:armhf (19.3.2-1~bpo10+1~rpt4) over (19.3.2-1~bpo10+1~rpt3) ... Preparing to unpack .../02-libgl1-mesa-dri_19.3.2-1~bpo10+1~rpt4_armhf.deb ... Unpacking libgl1-mesa-dri:armhf (19.3.2-1~bpo10+1~rpt4) over (19.3.2-1~bpo10+1~rpt3) ... Preparing to unpack .../03-libglx-mesa0_19.3.2-1~bpo10+1~rpt4_armhf.deb ... Unpacking libglx-mesa0:armhf (19.3.2-1~bpo10+1~rpt4) over (19.3.2-1~bpo10+1~rpt3) ... Preparing to unpack .../04-libglapi-mesa_19.3.2-1~bpo10+1~rpt4_armhf.deb ... Unpacking libglapi-mesa:armhf (19.3.2-1~bpo10+1~rpt4) over (19.3.2-1~bpo10+1~rpt3) ... Preparing to unpack .../05-libegl1-mesa-dev_19.3.2-1~bpo10+1~rpt4_armhf.deb ... Unpacking libegl1-mesa-dev:armhf (19.3.2-1~bpo10+1~rpt4) over (19.3.2-1~bpo10+1~rpt3) ... Preparing to unpack .../06-libgl1-mesa-dev_19.3.2-1~bpo10+1~rpt4_armhf.deb ... Unpacking libgl1-mesa-dev:armhf (19.3.2-1~bpo10+1~rpt4) over (19.3.2-1~bpo10+1~rpt3) ... Preparing to unpack .../07-libgles2-mesa_19.3.2-1~bpo10+1~rpt4_armhf.deb ... Unpacking libgles2-mesa:armhf (19.3.2-1~bpo10+1~rpt4) over (19.3.2-1~bpo10+1~rpt3) ... Preparing to unpack .../08-libgles2-mesa-dev_19.3.2-1~bpo10+1~rpt4_armhf.deb ... Unpacking libgles2-mesa-dev:armhf (19.3.2-1~bpo10+1~rpt4) over (19.3.2-1~bpo10+1~rpt3) ... Preparing to unpack .../09-mesa-va-drivers_19.3.2-1~bpo10+1~rpt4_armhf.deb ... Unpacking mesa-va-drivers:armhf (19.3.2-1~bpo10+1~rpt4) over (19.3.2-1~bpo10+1~rpt3) ... Preparing to unpack .../10-mesa-vdpau-drivers_19.3.2-1~bpo10+1~rpt4_armhf.deb ... Unpacking mesa-vdpau-drivers:armhf (19.3.2-1~bpo10+1~rpt4) over (19.3.2-1~bpo10+1~rpt3) ... Setting up mesa-vdpau-drivers:armhf (19.3.2-1~bpo10+1~rpt4) ... Setting up libgles2-mesa-dev:armhf (19.3.2-1~bpo10+1~rpt4) ... Setting up libgles2-mesa:armhf (19.3.2-1~bpo10+1~rpt4) ... Setting up libgbm1:armhf (19.3.2-1~bpo10+1~rpt4) ... Setting up libglapi-mesa:armhf (19.3.2-1~bpo10+1~rpt4) ... Setting up libgl1-mesa-dev:armhf (19.3.2-1~bpo10+1~rpt4) ... Setting up mesa-va-drivers:armhf (19.3.2-1~bpo10+1~rpt4) ... Setting up libegl1-mesa-dev:armhf (19.3.2-1~bpo10+1~rpt4) ... Setting up libgl1-mesa-dri:armhf (19.3.2-1~bpo10+1~rpt4) ... Setting up libegl-mesa0:armhf (19.3.2-1~bpo10+1~rpt4) ... Setting up libglx-mesa0:armhf (19.3.2-1~bpo10+1~rpt4) ... Processing triggers for libc-bin (2.28-10+rpi1) ...

Install missing dependencies autoconf is installed. automake is installed. build-essential is installed. cmake is installed. doxygen is installed.

real 1m9.997s user 0m18.005s sys 0m5.673s

It seems that this function dees something, but crashes? it doesn't proceed with instalation. Im trying it now manualy by commenting install missing dependencies.

xbelanch commented 3 years ago

It's important (and mandatory) to complete the install missing dependencies process. Otherwise it can't be not possible to compile the libraries that ffmpeg and obs needs. Try it again and copypasta only the part related to "Install missing dependencies". I think the issue stands on when the script detects one library that is not installed and do not the action of installing it (!)

xbelanch commented 3 years ago

@Hubert97: try again to check if now it works.

Hubert97 commented 3 years ago

It went through this step, now its compiling pipewire, i'll let you know wether it succeeded.

Hubert97 commented 3 years ago

Ok so it failed yet again at building ffmpeg. I think that installing dependecies issue is fixed.


Get and build FFMPEG

Cloning into '/tmp/tmp.2zvykELmWM/FFmpeg'... remote: Enumerating objects: 7277, done. remote: Counting objects: 100% (7277/7277), done. remote: Compressing objects: 100% (5578/5578), done. remote: Total 7277 (delta 1924), reused 3516 (delta 1407), pack-reused 0 Receiving objects: 100% (7277/7277), 15.37 MiB | 8.88 MiB/s, done. Resolving deltas: 100% (1924/1924), done. Note: checking out 'f719f869907764e6412a6af6e178c46e5f915d25'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

Checking out files: 100% (7327/7327), done. install prefix /usr/local source path . C compiler gcc C library glibc ARCH arm (armv8-a) big-endian no runtime cpu detection yes ARMv5TE enabled yes ARMv6 enabled yes ARMv6T2 enabled yes VFP enabled yes NEON enabled yes THUMB enabled no debug symbols yes strip symbols yes optimize for size no optimizations yes static yes shared yes postprocessing support yes network support yes threading support pthreads safe bitstream reader yes texi2html enabled no perl enabled yes pod2man enabled yes makeinfo enabled yes makeinfo supports HTML yes

External libraries: alsa libfdk_aac libopus libvorbis libxcb_shape openssl iconv libfreetype librtmp libvpx libxcb_shm sdl2 libaom libkvazaar libsnappy libwebp libxcb_xfixes sndio libass libmp3lame libsoxr libx264 libxml2 xlib libdav1d libopencore_amrnb libssh libx265 libzimg zlib libdrm libopencore_amrwb libv4l2 libxcb lzma

External libraries providing hardware acceleration: mmal omx v4l2_m2m vaapi vdpau

Libraries: avcodec avfilter avutil swresample avdevice avformat postproc swscale

Programs: ffmpeg ffplay ffprobe

Enabled decoders: aac aura fmvc mp2float pcx truemotion1 aac_fixed aura2 fourxm mp3 pfm truemotion2 aac_latm avrn fraps mp3adu pgm truemotion2rt aasc avrp frwu mp3adufloat pgmyuv truespeech ac3 avs g2m mp3float pgssub tscc ac3_fixed avui g723_1 mp3on4 pictor tscc2 acelp_kelvin ayuv g729 mp3on4float pixlet tta adpcm_4xm bethsoftvid gdv mpc7 pjs twinvq adpcm_adx bfi gif mpc8 png txd adpcm_afc bink gremlin_dpcm mpeg1_v4l2m2m ppm ulti adpcm_agm binkaudio_dct gsm mpeg1video prores utvideo adpcm_aica binkaudio_rdft gsm_ms mpeg2_mmal prosumer v210 adpcm_argo bintext h261 mpeg2_v4l2m2m psd v210x adpcm_ct bitpacked h263 mpeg2video ptx v308 adpcm_dtk bmp h263_v4l2m2m mpeg4 qcelp v408 adpcm_ea bmv_audio h263i mpeg4_mmal qdm2 v410 adpcm_ea_maxis_xa bmv_video h263p mpeg4_v4l2m2m qdmc vb adpcm_ea_r1 brender_pix h264 mpegvideo qdraw vble adpcm_ea_r2 c93 h264_mmal mpl2 qpeg vc1 adpcm_ea_r3 cavs h264_v4l2m2m msa1 qtrle vc1_mmal adpcm_ea_xas ccaption hap mscc r10k vc1_v4l2m2m adpcm_g722 cdgraphics hca msmpeg4v1 r210 vc1image adpcm_g726 cdtoons hcom msmpeg4v2 ra_144 vcr1 adpcm_g726le cdxl hevc msmpeg4v3 ra_288 vmdaudio adpcm_ima_alp cfhd hevc_v4l2m2m msrle ralf vmdvideo adpcm_ima_amv cinepak hnm4_video mss1 rasc vmnc adpcm_ima_apc clearvideo hq_hqa mss2 rawvideo vorbis adpcm_ima_apm cljr hqx msvideo1 realtext vp3 adpcm_ima_cunning cllc huffyuv mszh rl2 vp4 adpcm_ima_dat4 comfortnoise hymt mts2 roq vp5 adpcm_ima_dk3 cook iac mv30 roq_dpcm vp6 adpcm_ima_dk4 cpia idcin mvc1 rpza vp6a adpcm_ima_ea_eacs cscd idf mvc2 rscc vp6f adpcm_ima_ea_sead cyuv iff_ilbm mvdv rv10 vp7 adpcm_ima_iss dca ilbc mvha rv20 vp8 adpcm_ima_mtf dds imc mwsc rv30 vp8_v4l2m2m adpcm_ima_oki derf_dpcm imm4 mxpeg rv40 vp9 adpcm_ima_qt dfa imm5 nellymoser s302m vp9_v4l2m2m adpcm_ima_rad dirac indeo2 notchlc sami vplayer adpcm_ima_smjpeg dnxhd indeo3 nuv sanm vqa adpcm_ima_ssi dolby_e indeo4 on2avc sbc wavpack adpcm_ima_wav dpx indeo5 opus scpr wcmv adpcm_ima_ws dsd_lsbf interplay_acm paf_audio screenpresso webp adpcm_ms dsd_lsbf_planar interplay_dpcm paf_video sdx2_dpcm webvtt adpcm_mtaf dsd_msbf interplay_video pam sgi wmalossless adpcm_psx dsd_msbf_planar jacosub pbm sgirle wmapro adpcm_sbpro_2 dsicinaudio jpeg2000 pcm_alaw sheervideo wmav1 adpcm_sbpro_3 dsicinvideo jpegls pcm_bluray shorten wmav2 adpcm_sbpro_4 dss_sp jv pcm_dvd sipr wmavoice adpcm_swf dst kgv1 pcm_f16le siren wmv1 adpcm_thp dvaudio kmvc pcm_f24le smackaud wmv2 adpcm_thp_le dvbsub lagarith pcm_f32be smacker wmv3 adpcm_vima dvdsub libaom_av1 pcm_f32le smc wmv3image adpcm_xa dvvideo libdav1d pcm_f64be smvjpeg wnv1 adpcm_yamaha dxa libfdk_aac pcm_f64le snow wrapped_avframe adpcm_zork dxtory libopencore_amrnb pcm_lxf sol_dpcm ws_snd1 agm dxv libopencore_amrwb pcm_mulaw sonic xan_dpcm aic eac3 libopus pcm_s16be sp5x xan_wc3 alac eacmv libvorbis pcm_s16be_planar speedhq xan_wc4 alias_pix eamad libvpx_vp8 pcm_s16le srgc xbin als eatgq libvpx_vp9 pcm_s16le_planar srt xbm amrnb eatgv loco pcm_s24be ssa xface amrwb eatqi lscr pcm_s24daud stl xl amv eightbps m101 pcm_s24le subrip xma1 anm eightsvx_exp mace3 pcm_s24le_planar subviewer xma2 ansi eightsvx_fib mace6 pcm_s32be subviewer1 xpm ape escape124 magicyuv pcm_s32le sunrast xsub apng escape130 mdec pcm_s32le_planar svq1 xwd aptx evrc metasound pcm_s64be svq3 y41p aptx_hd exr microdvd pcm_s64le tak ylc arbc ffv1 mimic pcm_s8 targa yop ass ffvhuff mjpeg pcm_s8_planar targa_y216 yuv4 asv1 ffwavesynth mjpegb pcm_u16be tdsc zero12v asv2 fic mlp pcm_u16le text zerocodec atrac1 fits mmvideo pcm_u24be theora zlib atrac3 flac motionpixels pcm_u24le thp zmbv atrac3al flashsv movtext pcm_u32be tiertexseqvideo atrac3p flashsv2 mp1 pcm_u32le tiff atrac3pal flic mp1float pcm_u8 tmv atrac9 flv mp2 pcm_vidc truehd

Enabled encoders: a64multi dca libkvazaar pam pcm_vidc tiff a64multi5 dnxhd libmp3lame pbm pcx truehd aac dpx libopencore_amrnb pcm_alaw pgm tta ac3 dvbsub libopus pcm_dvd pgmyuv utvideo ac3_fixed dvdsub libvorbis pcm_f32be png v210 adpcm_adx dvvideo libvpx_vp8 pcm_f32le ppm v308 adpcm_g722 eac3 libvpx_vp9 pcm_f64be prores v408 adpcm_g726 ffv1 libwebp pcm_f64le prores_aw v410 adpcm_g726le ffvhuff libwebp_anim pcm_mulaw prores_ks vc2 adpcm_ima_qt fits libx264 pcm_s16be qtrle vorbis adpcm_ima_ssi flac libx264rgb pcm_s16be_planar r10k vp8_v4l2m2m adpcm_ima_wav flashsv libx265 pcm_s16le r210 vp8_vaapi adpcm_ms flashsv2 ljpeg pcm_s16le_planar ra_144 vp9_vaapi adpcm_swf flv magicyuv pcm_s24be rawvideo wavpack adpcm_yamaha g723_1 mjpeg pcm_s24daud roq webvtt alac gif mjpeg_vaapi pcm_s24le roq_dpcm wmav1 alias_pix h261 mlp pcm_s24le_planar rv10 wmav2 amv h263 movtext pcm_s32be rv20 wmv1 apng h263_v4l2m2m mp2 pcm_s32le s302m wmv2 aptx h263p mp2fixed pcm_s32le_planar sbc wrapped_avframe aptx_hd h264_omx mpeg1video pcm_s64be sgi xbm ass h264_v4l2m2m mpeg2_vaapi pcm_s64le snow xface asv1 h264_vaapi mpeg2video pcm_s8 sonic xsub asv2 hap mpeg4 pcm_s8_planar sonic_ls xwd avrp hevc_v4l2m2m mpeg4_omx pcm_u16be srt y41p avui hevc_vaapi mpeg4_v4l2m2m pcm_u16le ssa yuv4 ayuv huffyuv msmpeg4v2 pcm_u24be subrip zlib bmp jpeg2000 msmpeg4v3 pcm_u24le sunrast zmbv cinepak jpegls msvideo1 pcm_u32be svq1 cljr libaom_av1 nellymoser pcm_u32le targa comfortnoise libfdk_aac opus pcm_u8 text

Enabled hwaccels: h263_vaapi hevc_vaapi mpeg1_vdpau mpeg4_vaapi vc1_vdpau wmv3_vaapi h264_vaapi hevc_vdpau mpeg2_vaapi mpeg4_vdpau vp8_vaapi wmv3_vdpau h264_vdpau mjpeg_vaapi mpeg2_vdpau vc1_vaapi vp9_vaapi

Enabled parsers: aac cook dvdsub h264 opus vc1 aac_latm dca flac hevc png vorbis ac3 dirac g723_1 jpeg2000 pnm vp3 adx dnxhd g729 mjpeg rv30 vp8 av1 dpx gif mlp rv40 vp9 avs2 dvaudio gsm mpeg4video sbc webp bmp dvbsub h261 mpegaudio sipr xma cavsvideo dvd_nav h263 mpegvideo tak

Enabled demuxers: aa codec2 hls lrc pcm_s24le srt aac codec2raw hnm lvf pcm_s32be stl ac3 concat ico lxf pcm_s32le str acm dash idcin m4v pcm_s8 subviewer act data idf matroska pcm_u16be subviewer1 adf daud iff mgsts pcm_u16le sup adp dcstr ifv microdvd pcm_u24be svag ads derf ilbc mjpeg pcm_u24le swf adx dfa image2 mjpeg_2000 pcm_u32be tak aea dhav image2_alias_pix mlp pcm_u32le tedcaptions afc dirac image2_brender_pix mlv pcm_u8 thp aiff dnxhd image2pipe mm pcm_vidc threedostr aix dsf image_bmp_pipe mmf pjs tiertexseq alp dsicin image_dds_pipe mov pmp tmv amr dss image_dpx_pipe mp3 pp_bnk truehd amrnb dts image_exr_pipe mpc pva tta amrwb dtshd image_gif_pipe mpc8 pvf tty anm dv image_j2k_pipe mpegps qcp txd apc dvbsub image_jpeg_pipe mpegts r3d ty ape dvbtxt image_jpegls_pipe mpegtsraw rawvideo v210 apm dxa image_pam_pipe mpegvideo realtext v210x apng ea image_pbm_pipe mpjpeg redspark vag aptx ea_cdata image_pcx_pipe mpl2 rl2 vc1 aptx_hd eac3 image_pgm_pipe mpsub rm vc1t aqtitle epaf image_pgmyuv_pipe msf roq vividas argo_asf ffmetadata image_pictor_pipe msnwc_tcp rpl vivo asf filmstrip image_png_pipe mtaf rsd vmd asf_o fits image_ppm_pipe mtv rso vobsub ass flac image_psd_pipe musx rtp voc ast flic image_qdraw_pipe mv rtsp vpk au flv image_sgi_pipe mvi s337m vplayer av1 fourxm image_sunrast_pipe mxf sami vqf avi frm image_svg_pipe mxg sap w64 avr fsb image_tiff_pipe nc sbc wav avs fwse image_webp_pipe nistsphere sbg wc3 avs2 g722 image_xpm_pipe nsp scc webm_dash_manifest bethsoftvid g723_1 image_xwd_pipe nsv sdp webvtt bfi g726 ingenient nut sdr2 wsaud bfstm g726le ipmovie nuv sds wsd bink g729 ircam ogg sdx wsvqa bintext gdv iss oma segafilm wtv bit genh iv8 paf ser wv bmv gif ivf pcm_alaw shorten wve boa gsm ivr pcm_f32be siff xa brstm gxf jacosub pcm_f32le sln xbin c93 h261 jv pcm_f64be smacker xmv caf h263 kux pcm_f64le smjpeg xvag cavsvideo h264 kvag pcm_mulaw smush xwma cdg hca live_flv pcm_s16be sol yop cdxl hcom lmlm4 pcm_s16le sox yuv4mpegpipe cine hevc loas pcm_s24be spdif

Enabled muxers: a64 dts ico mpeg2dvd pcm_s8 srt ac3 dv ilbc mpeg2svcd pcm_u16be stream_segment adts eac3 image2 mpeg2video pcm_u16le streamhash adx f4v image2pipe mpeg2vob pcm_u24be sup aiff ffmetadata ipod mpegts pcm_u24le swf amr fifo ircam mpjpeg pcm_u32be tee apng fifo_test ismv mxf pcm_u32le tg2 aptx filmstrip ivf mxf_d10 pcm_u8 tgp aptx_hd fits jacosub mxf_opatom pcm_vidc truehd asf flac kvag null psp tta asf_stream flv latm nut rawvideo uncodedframecrc ass framecrc lrc oga rm vc1 ast framehash m4v ogg roq vc1t au framemd5 matroska ogv rso voc avi g722 matroska_audio oma rtp w64 avm2 g723_1 md5 opus rtp_mpegts wav avs2 g726 microdvd pcm_alaw rtsp webm bit g726le mjpeg pcm_f32be sap webm_chunk caf gif mkvtimestamp_v2 pcm_f32le sbc webm_dash_manifest cavsvideo gsm mlp pcm_f64be scc webp codec2 gxf mmf pcm_f64le segafilm webvtt codec2raw h261 mov pcm_mulaw segment wtv crc h263 mp2 pcm_s16be singlejpeg wv dash h264 mp3 pcm_s16le smjpeg yuv4mpegpipe data hash mp4 pcm_s24be smoothstreaming daud hds mpeg1system pcm_s24le sox dirac hevc mpeg1vcd pcm_s32be spdif dnxhd hls mpeg1video pcm_s32le spx

Enabled protocols: async ftp icecast libssh rtp udp cache gopher librtmp md5 srtp udplite concat hls librtmpe mmsh subfile unix crypto http librtmps mmst tcp data httpproxy librtmpt pipe tee file https librtmpte prompeg tls

Enabled filters: abench asidedata deflate hqdn3d perspective smartblur abitscope asoftclip deflicker hqx phase smptebars acompressor asplit deinterlace_vaapi hstack photosensitivity smptehdbars acontrast ass dejudder hue pixdesctest sobel acopy astats delogo hwdownload pixscope spectrumsynth acrossfade astreamselect denoise_vaapi hwmap pp split acrossover asubboost derain hwupload pp7 spp acrusher atadenoise deshake hysteresis premultiply sr acue atempo despill idet prewitt ssim addroi atrim detelecine il procamp_vaapi stereo3d adeclick avectorscope dilation inflate pseudocolor stereotools adeclip avgblur displace interlace psnr stereowiden adelay axcorrelate dnn_processing interleave pullup streamselect aderivative bandpass doubleweave join qp subtitles adrawgraph bandreject drawbox kerndeint random super2xsai aecho bass drawgraph lagfun readeia608 superequalizer aemphasis bbox drawgrid lenscorrection readvitc surround aeval bench drawtext life realtime swaprect aevalsrc bilateral drmeter limiter remap swapuv afade biquad dynaudnorm loop removegrain tblend afftdn bitplanenoise earwax loudnorm removelogo telecine afftfilt blackdetect ebur128 lowpass repeatfields testsrc afifo blackframe edgedetect lowshelf replaygain testsrc2 afir blend elbg lumakey reverse thistogram afirsrc bm3d entropy lut rgbashift threshold aformat boxblur eq lut1d rgbtestsrc thumbnail agate bwdif equalizer lut2 roberts tile agraphmonitor cas erosion lut3d rotate tinterlace ahistogram cellauto extractplanes lutrgb sab tlut2 aiir channelmap extrastereo lutyuv scale tmedian aintegral channelsplit fade mandelbrot scale2ref tmix ainterleave chorus fftdnoiz maskedclamp scale_vaapi tonemap alimiter chromahold fftfilt maskedmax scdet tonemap_vaapi allpass chromakey field maskedmerge scroll tpad allrgb chromashift fieldhint maskedmin select transpose allyuv ciescope fieldmatch maskedthreshold selectivecolor transpose_vaapi aloop codecview fieldorder maskfun sendcmd treble alphaextract color fifo mcdeint separatefields tremolo alphamerge colorbalance fillborders mcompand setdar trim amerge colorchannelmixer find_rect median setfield unpremultiply ametadata colorhold firequalizer mergeplanes setparams unsharp amix colorkey flanger mestimate setpts untile amovie colorlevels floodfill metadata setrange uspp amplify colormatrix format midequalizer setsar v360 amultiply colorspace fps minterpolate settb vaguedenoiser anequalizer compand framepack mix sharpness_vaapi vectorscope anlmdn compensationdelay framerate movie showcqt vflip anlms concat framestep mpdecimate showfreqs vfrdet anoisesrc convolution freezedetect mptestsrc showinfo vibrance anull convolve freezeframes negate showpalette vibrato anullsink copy fspp nlmeans showspatial vignette anullsrc cover_rect gblur nnedi showspectrum vmafmotion apad crop geq noformat showspectrumpic volume aperms cropdetect gradfun noise showvolume volumedetect aphasemeter crossfeed gradients normalize showwaves vstack aphaser crystalizer graphmonitor null showwavespic w3fdif apulsator cue greyedge nullsink shuffleframes waveform arealtime curves haas nullsrc shuffleplanes weave aresample datascope haldclut oscilloscope sidechaincompress xbr areverse dblur haldclutsrc overlay sidechaingate xfade arnndn dcshift hdcd owdenoise sidedata xmedian aselect dctdnoiz headphone pad sierpinski xstack asendcmd deband hflip pal100bars signalstats yadif asetnsamples deblock highpass pal75bars signature yaepblur asetpts decimate highshelf palettegen silencedetect yuvtestsrc asetrate deconvolve hilbert paletteuse silenceremove zoompan asettb dedot histeq pan sinc zscale ashowinfo deesser histogram perms sine

Enabled bsfs: aac_adtstoasc dump_extradata h264_redundant_pps mjpega_dump_header null trace_headers av1_frame_merge eac3_core hapqa_extract mov2textsub opus_metadata truehd_core av1_frame_split extract_extradata hevc_metadata mp3_header_decompress pcm_rechunk vp9_metadata av1_metadata filter_units hevc_mp4toannexb mpeg2_metadata prores_metadata vp9_raw_reorder chomp h264_metadata imx_dump_header mpeg4_unpack_bframes remove_extradata vp9_superframe dca_core h264_mp4toannexb mjpeg2jpeg noise text2movsub vp9_superframe_split

Enabled indevs: alsa kmsgrab oss v4l2 fbdev lavfi sndio xcbgrab

Enabled outdevs: alsa oss sndio xv fbdev sdl2 v4l2

License: nonfree and unredistributable GEN libavutil/libavutil.version GEN libswscale/libswscale.version GEN libswresample/libswresample.version GEN libpostproc/libpostproc.version GEN libavcodec/libavcodec.version GEN libavformat/libavformat.version GEN libavfilter/libavfilter.version GEN libavdevice/libavdevice.version CC libavdevice/alldevices.o CC libavdevice/alsa.o CC libavdevice/alsa_dec.o CC libavdevice/alsa_enc.o CC libavdevice/avdevice.o CC libavdevice/fbdev_common.o CC libavdevice/fbdev_dec.o libavdevice/avdevice.c: In function ‘device_next’: libavdevice/avdevice.c:88:13: warning: ‘av_oformat_next’ is deprecated [-Wdeprecated-declarations] if (!(prev = av_oformat_next(prev))) ^~ In file included from libavdevice/avdevice.h:51, from libavdevice/avdevice.c:23: ./libavformat/avformat.h:2095:17: note: declared here AVOutputFormat av_oformat_next(const AVOutputFormat f); ^~~~~~~ libavdevice/avdevice.c:92:13: warning: ‘av_iformat_next’ is deprecated [-Wdeprecated-declarations] if (!(prev = av_iformat_next(prev))) ^~ In file included from libavdevice/avdevice.h:51, from libavdevice/avdevice.c:23: ./libavformat/avformat.h:2087:17: note: declared here AVInputFormat av_iformat_next(const AVInputFormat f); ^~~~~~~ CC libavdevice/fbdev_enc.o CC libavdevice/kmsgrab.o CC libavdevice/lavfi.o CC libavdevice/oss.o libavdevice/kmsgrab.c:436:16: error: ‘DRM_FORMAT_MOD_NONE’ undeclared here (not in a function); did you mean ‘DRM_FORMAT_NV12’? { .i64 = DRM_FORMAT_MOD_NONE }, 0, INT64_MAX, FLAGS }, ^~~~~~~ DRM_FORMAT_NV12 make: [ffbuild/common.mak:59: libavdevice/kmsgrab.o] Error 1 make: Waiting for unfinished jobs....

real 34m48.109s user 76m26.468s sys 8m31.201s

xbelanch commented 3 years ago

I found this related thread gist (https://gist.github.com/jjangsangy/058456fe2d04e3c5f6107d62b60542e3). Could you try to follow this basic steps to fix the compile error? https://stackoverflow.com/questions/12901706/ffmpeg-error-in-linux/12901788#12901788

xbelanch commented 3 years ago

Just installed a fresh raspios buster and the script compiles everything right. Just in case download the last commit and execute the script without commenting nothing inside the main function.

Hubert97 commented 3 years ago

What version of raspberry Pi os are you using 32 bit or 64? I had problems on 32 bit version.

xbelanch commented 3 years ago

According to neofetch output of my pi board:

WindowsTerminal_2021-06-27_19-26-59

armv7l means 32 bits as you can read at this stack-question is my linux ARM 32 or 64 bit?. In fact the 64 bits raspberry available version is still under development at this moment and it seems that's not a priority for the Pi Foundation.

On the other hand, check out a streaming demo at https://www.twitch.tv/xbelanch