[Cin] Building Cingg from git using system FFmpeg and libs (Slowroll)

Terje J. Hanssen terjejhanssen at gmail.com
Mon Sep 23 18:35:16 CEST 2024



Den 23.09.2024 16:54, skrev Terje J. Hanssen:
>
>
> Den 23.09.2024 13:47, skrev Andrew Randrianasulu:
>>
>>
>> пн, 23 сент. 2024 г., 12:02 Terje J. Hanssen <terjejhanssen at gmail.com>:
>>
>>
>>
>>     Den 23.09.2024 01:20, skrev Andrew Randrianasulu:
>>>
>>>     [snip]
>>>
>>>>
>>>>
>>>>
>>>>         ah, ffmpeg includes not found ...
>>>>
>>>>
>>>>         does "pkg-config --cflags libavcodec" print anything?
>>>         # pkg-config --cflags libavcodec
>>>         -I/usr/include/ffmpeg
>>>
>>>>
>>>>         alternatively you can look with "ls" into /usr/include, may
>>>>         be current ffmpeg includes live there under ffmpeg7 directory?
>>>
>>>         # ls /usr/include/ffmpeg
>>>         libavcodec  libavdevice  libavfilter libavformat  libavutil 
>>>         libpostproc libswresample  libswscale
>>>
>>>>
>>>>         of course you need ffmpeg(7?)-devel package installed
>>>
>>>         # zypper se -i ffmpeg-7
>>>         Loading repository data...
>>>
>>>         Reading installed packages...
>>>
>>>         S  | Name                         | Summary | Type
>>>         ---+------------------------------+---------------------------------------------------------------------+--------
>>>         i  | ffmpeg-7                     | Set of libraries for
>>>         working with various multimedia formats        | package
>>>         i  | ffmpeg-7-libavcodec-devel    | Development files for
>>>         FFmpeg's codec library                        | package
>>>         i+ | ffmpeg-7-libavdevice-devel   | Development files for
>>>         FFmpeg's device library                       | package
>>>         i  | ffmpeg-7-libavfilter-devel   | Development files for
>>>         FFmpeg's audio/video filter library           | package
>>>         i  | ffmpeg-7-libavformat-devel   | Development files for
>>>         FFmpeg's stream format library                | package
>>>         i  | ffmpeg-7-libavutil-devel     | Development files for
>>>         FFmpeg's utility library                      | package
>>>         i  | ffmpeg-7-libpostproc-devel   | Development files for
>>>         the FFmpeg post-processing library            | package
>>>         i  | ffmpeg-7-libswresample-devel | Development files for
>>>         the FFmpeg software resampling library        | package
>>>         i  | ffmpeg-7-libswscale-devel    | Development files for
>>>         FFmpeg's image scaling and colorspace library | package
>>>
>>>
>>>>
>>>>         After you located includes try to re-run ./configure but
>>>>         set CFLAGS variable before it with
>>>>         -I/path_to_ffmpeg_includes directive,  like
>>>>
>>>>         CFLAGS=-I/usr/include/ffmpeg7 ./configure <..>
>>>>
>>>>
>>>         This way?
>>>
>>>         # CFLAGS=-I/usr/include/ffmpeg ./configure
>>>         --with-single-user --disable-static-build
>>>         --without-thirdparty --without-libdpx
>>>
>>>
>>>
>>>     I think yes.
>>
>>     /home/cinelerra/cinelerra-5.1#
>>
>>     4)
>>     # CFLAGS=-I/usr/include/ffmpeg ./configure --with-single-user
>>     --disable-static-build --without-thirdparty --without-libdpx >
>>     configure.log 2>&1
>>
>>     .......snip
>>     checking for suil_instance_new in -lsuil-0... yes
>>     checking for suil/suil.h... yes
>>     checking suil headers... yes
>>     checking for /usr/local/cuda/include/cuda.h... no
>>     checking cuda sdk... no
>>     checking for dlopen in -ldl... yes
>>     checking for numa_alloc in -lnuma... yes
>>     checking for openexr available... yes
>>       Reason                  Package
>>       ------                  -------
>>       disabled                encore
>>       disabled                audiofile
>>       disabled                esound
>>       disabled                libsvtav1
>>       shared                  -ltheoraenc
>>       shared                  -ltheoradec
>>       shared                  -logg
>>       shared                  -lvorbis
>>       shared                  -lvorbisfile
>>       shared                  -logg
>>       shared                  -lImath
>>       shared                  -lIlmThread
>>       shared                  -lIex
>>       shared                  -lpthread
>>       shared                  -la52
>>       shared                  -lfftw3
>>       shared                  -lFLAC
>>       shared                  -lgif
>>       shared                  -lavc1394
>>       shared                  -lrom1394
>>       shared                  -lraw1394
>>       shared                  -liec61883
>>       shared                  -ldv
>>       shared                  -ljpeg
>>       shared                  -logg
>>       shared                  -lsndfile
>>       shared                  -ltheora
>>       shared                  -luuid
>>       shared                  -lvorbisenc
>>       shared                  -lvorbisfile
>>       shared                  -ltiff
>>       shared                  -ltwolame
>>       shared                  -lx264
>>       shared                  -lx265
>>       shared                  -lopus
>>       shared                  -llilv-0
>>       shared                  -lsratom-0
>>       shared                  -lserd-0
>>       shared                  -lsord-0
>>       shared                  -lsuil-0
>>       system                  -lX11
>>       system                  -lXext
>>       system                  -lXinerama
>>       system                  -lXfixes
>>       system                  -lbz2
>>       system                  -lfontconfig
>>       system                  -lfreetype
>>       system                  -llzma
>>       system                  -lpng
>>       system                  -lpthread
>>       system                  -lz
>>       system                  -ljbig
>>       system                  -lvdpau
>>       system                  -lva
>>       system                  -lva-x11
>>       system                  -lva-drm
>>       system                  -lGL
>>       system                  -lGLU
>>       system                  -lXv
>>       system                  -lXft
>>       system                  -lasound
>>       system                  -lpulse-simple
>>       system                  -lpulse
>>       system                  -lusb-1.0
>>       system                  -ldl
>>       system                  -lnuma
>>
>>       using: with-gl
>>       using: with-xft
>>       using: with-xxf86vm
>>       using: with-oss
>>       using: with-alsa
>>       using: with-firewire
>>       using: with-ogg
>>       using: with-dv
>>       using: with-dvb
>>       using: with-ladspa
>>       using: with-video4linux2
>>       using: without-esound
>>       using: with-pulse
>>       using: with-pactl
>>       using: with-openexr
>>       using: with-lv2
>>       using: without-commercial
>>       using: with-giflib
>>       using: with-libzmpeg
>>       using: without-libdpx
>>       using: with-shuttle
>>       using: with-shuttle_usb
>>       using: with-xv
>>       using: with-vaapi
>>       using: with-vdpau
>>       using: without-cuda
>>       using: with-nv
>>       using: with-wintv
>>       using: with-x10tv
>>       using: with-jobs = 32
>>       using: exec-name = cin
>>       using: with-cinlib = $$CIN_PATH
>>       using: with-cindat = $$CIN_PATH
>>       using: with-config-dir = $$HOME/.bcast5
>>       using: with-nested-dir = $$HOME/Videos
>>       using: with-snap-dir = $$HOME/Pictures
>>       using: with-browser = firefox
>>       using: with-plugin-dir = $$CIN_LIB/plugins
>>       using: with-ladspa-dir = $$CIN_LIB/ladspa
>>       using: with-opencv = no
>>       using: with-git-ffmpeg = no
>>       using: with-noelision = auto
>>       using: with-booby = no
>>       using: with-clang = no
>>
>>       using: thirdparty build = no
>>       using: single-user  = yes
>>       using: static-build = no
>>       using: ladspa-build = yes
>>
>>     checking that generated files are newer than configure... done
>>     configure: creating ./config.status
>>     config.status: creating Makefile
>>     config.status: executing depfiles commands
>>     config.status: executing libtool commands
>>
>>     --------------------
>>
>>     5)
>>     # make > make.log 2>&1
>>
>>     .......snip
>>     /home/cinelerra/cinelerra-5.1/cinelerra/../guicast/bcwindowbase.h:222:22:
>>     warning: ‘virtual void BC_WindowBase::create_objects()’ was
>>     hidden [-Woverloaded-virtual=]
>>       222 |         virtual void create_objects() { return; };
>>           |                      ^~~~~~~~~~~~~~
>>     In file included from preferencesthread.h:30,
>>                      from appearanceprefs.h:30,
>>                      from preferences.h:37,
>>                      from convert.C:48:
>>     question.h:34:14: note:   by ‘void
>>     QuestionWindow::create_objects(const char*, int)’
>>        34 |         void create_objects(const char *string, int
>>     use_cancel);
>>           |              ^~~~~~~~~~~~~~
>>     make[2]: Leaving directory '/home/cinelerra/cinelerra-5.1/cinelerra'
>>     make[1]: *** [Makefile:592: all-recursive] Error 1
>>     make[1]: Leaving directory '/home/cinelerra/cinelerra-5.1'
>>     make: *** [Makefile:539: all] Error 2
>>
>>
>>
>>     Andrew, I attach complete config.log and make.log by email
>>
>>
>> from log:
>>
>> fatal error: lame/lame.h: No such file or directory
>>
>> installing something like lame-devel, or liblame-devel  should fix that.
>>
>>
>
> Yup, add-installed
>
> # zypper in libmp3lame-devel
>
> and have now
>
> # zypper se -i lame
> Loading repository data...
> Reading installed packages...
>
> S  | Name                  | 
> Summary                                               | Type
> ---+-----------------------+-------------------------------------------------------+--------
> i+ | libmp3lame-devel      | Development files for the LAME MP3 
> encoder            | package
> i  | libmp3lame0           | The LAME MP3 encoder 
> library                          | package
> i  | libmp3lame0-x86-64-v3 | The LAME MP3 encoder 
> library                          | package
> i+ | libtwolame-devel      | Include Files and Libraries mandatory for 
> Development | package
> i  | libtwolame0           | Shared libraries for TwoLame
>
>
> # cd /home/cinelerra/cinelerra-5.1
>
> #  CFLAGS=-I/usr/include/ffmpeg ./configure --with-single-user 
> --disable-static-build --without-thirdparty --without-libdpx > 
> configure.log 2>&1
>
> # make > make.log 2>&1
>
> # make install > make_install.log 2>&1
>
> Looks better, all ran through without stop errors,
> attach config.log, make.log and make_install.log by email.
>
> -----------
>
> Cinelerra could be started, errors first time like
> PluginFFilter::new_ffilter(overlay_qsv)
>   err: Input/output error
>
> Started and test loaded three video file types seemingly ok
>
> # ./bin/cin
> Cinelerra Infinity - built: Sep 23 2024 10:31:07
> git://git.cinelerra-gg.org/goodguy/cinelerra.git
> (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams
> 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy
> 2003-2017 mods for Cinelerra-CV by CinelerraCV team
> 2015-2024 mods for Cinelerra-GG by Cinelerra-GG team
>
> Libav version: Lavc61.3.100
>
> Cinelerra is free software, covered by the GNU General Public License,
> and you are welcome to change it and/or distribute copies of it under
> certain conditions. There is absolutely no warranty for Cinelerra.
>
> build plugin index for: /home/cinelerra/cinelerra-5.1/bin/plugins
> PluginFFilter::new_ffilter(lv2)
>   err: Operation not permitted
> [sofalizer_205 @ 0x3f0f2940] Valid SOFA filename must be set.
> PluginFFilter::new_ffilter(sofalizer)
>   err: Invalid argument
> PluginFFilter::new_ffilter(blend_vulkan)
>   err: Input/output error
> PluginFFilter::new_ffilter(libplacebo)
>   err: Operation not permitted
> PluginFFilter::new_ffilter(overlay_qsv)
>   err: Input/output error
> PluginFFilter::new_ffilter(overlay_vulkan)
>   err: Input/output error
> PluginFFilter::new_ffilter(xfade_vulkan)
>   err: Input/output error
> PluginFFilter::new_ffilter(hstack_qsv)
>   err: Operation not permitted
> PluginFFilter::new_ffilter(vstack_qsv)
>   err: Operation not permitted
> PluginFFilter::new_ffilter(xstack_qsv)
>   err: Operation not permitted
> build lv2 index for: $CIN_PATH/lv2
> build ladspa plugin index for: /home/cinelerra/cinelerra-5.1/bin/ladspa
> Total excess of backups: -50
> Session time: 0:02:06
> Cpu time: user: 0:00:05.599 sys: 0:00:00.987
>
> ----------
>
> # ./bin/cin
> Cinelerra Infinity - built: Sep 23 2024 10:31:07
> git://git.cinelerra-gg.org/goodguy/cinelerra.git
> (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams
> 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy
> 2003-2017 mods for Cinelerra-CV by CinelerraCV team
> 2015-2024 mods for Cinelerra-GG by Cinelerra-GG team
>
> Libav version: Lavc61.3.100
>
> Cinelerra is free software, covered by the GNU General Public License,
> and you are welcome to change it and/or distribute copies of it under
> certain conditions. There is absolutely no warranty for Cinelerra.
>
> FFMPEG::open_decoder: some stream times estimated: 
> /Videoklipp/AV1/cfhd01_07.mkv
> FFMPEG::open_decoder: some stream times estimated: 
> /Videoklipp/AV1/cfhd01_07.mkv
> FFMPEG::open_decoder: some stream times estimated: 
> /Videoklipp/AV1/cfhd01_07.mkv
> FFMPEG::open_decoder: some stream times estimated: 
> /Videoklipp/AV1/cfhd01_07.mkv
> FFMPEG::open_decoder: some stream times estimated: 
> /Videoklipp/AV1/cfhd01_07.mkv
> FFMPEG::open_decoder: some stream times estimated: 
> /Videoklipp/AV1/cfhd01_07.mkv
> FFMPEG::open_decoder: some stream times estimated: 
> /Videoklipp/AV1/cfhd01_07.mkv
> FFMPEG::open_decoder: some stream times estimated: 
> /Videoklipp/AV1/cfhd01_07.mkv
> Total excess of backups: -50
> Session time: 0:00:41
> Cpu time: user: 0:00:08.443 sys: 0:00:01.101
>
> ------
>
> # ./bin/cin
> Cinelerra Infinity - built: Sep 23 2024 10:31:07
> git://git.cinelerra-gg.org/goodguy/cinelerra.git
> (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams
> 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy
> 2003-2017 mods for Cinelerra-CV by CinelerraCV team
> 2015-2024 mods for Cinelerra-GG by Cinelerra-GG team
>
> Libav version: Lavc61.3.100
>
> Cinelerra is free software, covered by the GNU General Public License,
> and you are welcome to change it and/or distribute copies of it under
> certain conditions. There is absolutely no warranty for Cinelerra.
>
> Total excess of backups: -50
> Session time: 0:00:33
> Cpu time: user: 0:00:03.581 sys: 0:00:00.906
>
>

Audio didn't work during playback of a loaded DV.dv file:

Connection failure: Connection refused
pa_context_connect() failed: Connection refused
AudioALSA::set_params: hw_params failed
AudioALSA::open_output: set_params failed.  Aborting playback.

--------

Audio worked OK during playback of a loaded HDV.m2t file:

Connection failure: Connection refused
pa_context_connect() failed: Connection refused

--------

and Audio worked OK during playback of a loaded CFHD.mkv file:

FFMPEG::open_decoder: some stream times estimated: 
/Videoklipp/AV1/cfhd01_07.mkv
FFMPEG::open_decoder: some stream times estimated: 
/Videoklipp/AV1/cfhd01_07.mkv
FFMPEG::open_decoder: some stream times estimated: 
/Videoklipp/AV1/cfhd01_07.mkv
FFMPEG::open_decoder: some stream times estimated: 
/Videoklipp/AV1/cfhd01_07.mkv
FFMPEG::open_decoder: some stream times estimated: 
/Videoklipp/AV1/cfhd01_07.mkv
FFMPEG::open_decoder: some stream times estimated: 
/Videoklipp/AV1/cfhd01_07.mkv
FFMPEG::open_decoder: some stream times estimated: 
/Videoklipp/AV1/cfhd01_07.mkv
FFMPEG::open_decoder: some stream times estimated: 
/Videoklipp/AV1/cfhd01_07.mkv
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
FFMPEG::open_decoder: some stream times estimated: 
/Videoklipp/AV1/cfhd01_07.mkv
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
Connection failure: Connection refused
pa_context_connect() failed: Connection refused
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240923/a72e0602/attachment-0001.htm>


More information about the Cin mailing list