Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 900953 - media-video/obs-studio-29.0.2 fails to compile with >=media-libs/ffmpeg-6.0
Summary: media-video/obs-studio-29.0.2 fails to compile with >=media-libs/ffmpeg-6.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chiitoo
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 901257
  Show dependency tree
 
Reported: 2023-03-13 01:04 UTC by Lee Starnes
Modified: 2023-05-06 11:12 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Upstream fix commit 2e79d4c (2e79d4c902abf3e6bb4ad1b5bf779c0cc22a6fd0.patch,3.39 KB, patch)
2023-03-13 01:06 UTC, Lee Starnes
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lee Starnes 2023-03-13 01:04:05 UTC
obs-studio 29.0.2 isn't compatible with ffmpeg 6. This was fixed upstream in commit 2e79d4c902abf3e6bb4ad1b5bf779c0cc22a6fd0

error output:

FAILED: plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/__/__/deps/media-playback/media-playback/decode.c.o                                                                                                          
/usr/bin/x86_64-pc-linux-gnu-gcc -DENABLE_HEVC -DHAVE_OBSCONFIG_H -Dobs_ffmpeg_EXPORTS -I/var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2_build/config -I/var/tmp/portage/media-video/obs-stu
dio-29.0.2/work/obs-studio-29.0.2/libobs -I/var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2/deps/media-playback -I/var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2/deps/
opts-parser  -march=native -O2 -pipe -fPIC -Wextra -Wvla -Wno-unused-function -Wno-missing-field-initializers -fno-strict-aliasing -Werror-implicit-function-declaration -Wno-missing-braces -Wno-switch -mmmx -ms
se -msse2 -MD -MT plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/__/__/deps/media-playback/media-playback/decode.c.o -MF plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/__/__/deps/media-playback/media-playback/decod
e.c.o.d -o plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/__/__/deps/media-playback/media-playback/decode.c.o -c /var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2/deps/media-playback/media-pla
yback/decode.c                                                                                                                                                                                                    
In file included from /var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2/deps/media-playback/media-playback/decode.c:17:                                                                       
/var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2/deps/media-playback/media-playback/decode.c: In function ‘mp_decode_init’:                                                                  
/var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2/deps/media-playback/media-playback/decode.h:40:25: error: ‘AV_CODEC_CAP_TRUNCATED’ undeclared (first use in this function); did you mean ‘AV
_CODEC_CAP_HARDWARE’?                                                                                                                                                                                             
   40 | #define CODEC_CAP_TRUNC AV_CODEC_CAP_TRUNCATED                                                                                                                                                            
      |                         ^~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                            
/var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2/deps/media-playback/media-playback/decode.c:227:38: note: in expansion of macro ‘CODEC_CAP_TRUNC’                                           
  227 |         if (d->codec->capabilities & CODEC_CAP_TRUNC)                                                                                                                                                     
      |                                      ^~~~~~~~~~~~~~~                                                                                                                                                      
/var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2/deps/media-playback/media-playback/decode.h:40:25: note: each undeclared identifier is reported only once for each function it appears in   
   40 | #define CODEC_CAP_TRUNC AV_CODEC_CAP_TRUNCATED                                                                                                                                                            
      |                         ^~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                            
/var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2/deps/media-playback/media-playback/decode.c:227:38: note: in expansion of macro ‘CODEC_CAP_TRUNC’                                           
  227 |         if (d->codec->capabilities & CODEC_CAP_TRUNC)                                                                                                                                                     
      |                                      ^~~~~~~~~~~~~~~                                                                                                                                                      
/var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2/deps/media-playback/media-playback/decode.h:41:26: error: ‘AV_CODEC_FLAG_TRUNCATED’ undeclared (first use in this function); did you mean ‘A
V_CODEC_FLAG_DROPCHANGED’?                                                                                                                                                                                        
   41 | #define CODEC_FLAG_TRUNC AV_CODEC_FLAG_TRUNCATED                                                                                                                                                          
      |                          ^~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                          
/var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2/deps/media-playback/media-playback/decode.c:228:38: note: in expansion of macro ‘CODEC_FLAG_TRUNC’                                          
  228 |                 d->decoder->flags |= CODEC_FLAG_TRUNC;                                                                                                                                                    
      |                                      ^~~~~~~~~~~~~~~~                                                                                                                                                     
/var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2/deps/media-playback/media-playback/decode.c: In function ‘mp_decode_next’:                                                                  
/var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2/deps/media-playback/media-playback/decode.c:442:17: warning: ‘pkt_duration’ is deprecated [-Wdeprecated-declarations]                       
  442 |                 int64_t duration = d->in_frame->pkt_duration;                                                                                                                                             
      |                 ^~~~~~~                                                                                                                                                                                   
In file included from /usr/include/libavutil/hwcontext.h:23,                                                                                                                                                      
                 from /usr/include/libavcodec/codec.h:27,                                                                                                                                                         
                 from /usr/include/libavformat/avformat.h:313,                                                                                                                                                    
                 from /var/tmp/portage/media-video/obs-studio-29.0.2/work/obs-studio-29.0.2/deps/media-playback/media-playback/decode.h:31:                                                                       
/usr/include/libavutil/frame.h:631:13: note: declared here                                                                                                                                                        
  631 |     int64_t pkt_duration;                                                                                                                                                                                 
      |             ^~~~~~~~~~~~   

Reproducible: Always
Comment 1 Lee Starnes 2023-03-13 01:06:49 UTC
Created attachment 857435 [details, diff]
Upstream fix commit 2e79d4c
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-15 04:11:41 UTC
(In reply to Lee Starnes from comment #1)
> Created attachment 857435 [details, diff] [details, diff]
> Upstream fix commit 2e79d4c

https://github.com/obsproject/obs-studio/commit/2e79d4c902abf3e6bb4ad1b5bf779c0cc22a6fd0
Comment 3 Geoff Leach 2023-03-29 06:14:25 UTC
patch works for me
Comment 4 Chiitoo gentoo-dev 2023-05-06 11:12:38 UTC
This should be fixed with 29.1.0.

Thank you for the report!