Package Details: obs-hevc-vaapi-git 27.2.0.r33.g0dbae4ebe-2

Git Clone URL: https://aur.archlinux.org/obs-hevc-vaapi-git.git (read-only, click to copy)
Package Base: obs-hevc-vaapi-git
Description: Free and open source software for video recording and live streaming. With VAAPI HEVC support.
Upstream URL: https://github.com/obsproject/obs-studio
Licenses: GPL2
Conflicts: obs-studio
Provides: obs-studio
Submitter: zan
Maintainer: Humorhenker
Last Packager: Humorhenker
Votes: 11
Popularity: 0.48
First Submitted: 2020-06-26 17:45 (UTC)
Last Updated: 2022-02-24 22:46 (UTC)

Required by (125)

Sources (6)

Latest Comments

1 2 3 4 Next › Last »

kikunae commented on 2022-11-22 13:19 (UTC)

I'm getting the same errors as rajhlinux, and also have no luck with the various patches

theriddick commented on 2022-09-03 07:35 (UTC)

No luck with patch for me. Shame this AUR can't be updated to 'just work'...

exuvo commented on 2022-08-15 22:25 (UTC) (edited on 2022-08-15 22:27 (UTC) by exuvo)

The patch at https://bbs.archlinux.org/viewtopic.php?pid=2046748#p2046748 builds with commit 2012963d020d3fbdafb23699021d94879820a477 from 2022-07-16.

In PKGBUILD: source=("$pkgname::git+https://github.com/obsproject/obs-studio.git#commit=2012963d020d3fbdafb23699021d94879820a477"

rajhlinux commented on 2022-07-11 05:13 (UTC) (edited on 2022-07-17 07:20 (UTC) by rajhlinux)

I get this error:


==> Making package: obs-hevc-vaapi-git 27.2.0.r33.g0dbae4ebe-2 (Mon 11 Jul 2022 01:06:02 AM EDT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating obs-hevc-vaapi-git git repo...
  -> Updating ftl-sdk git repo...
  -> Updating obs-browser git repo...
  -> Updating obs-vst git repo...
  -> Found hevc-vaapi.diff
  -> Found fix_python_binary_loading.patch
==> Validating source files with sha256sums...
    obs-hevc-vaapi-git ... Skipped
    ftl-sdk ... Skipped
    obs-browser ... Skipped
    obs-vst ... Skipped
    hevc-vaapi.diff ... Passed
    fix_python_binary_loading.patch ... Passed
==> Extracting sources...
  -> Creating working copy of obs-hevc-vaapi-git git repo...
Reset branch 'makepkg'
  -> Creating working copy of ftl-sdk git repo...
Switched to a new branch 'makepkg'
  -> Creating working copy of obs-browser git repo...
Switched to a new branch 'makepkg'
  -> Creating working copy of obs-vst git repo...
Switched to a new branch 'makepkg'
==> Starting prepare()...
patching file libobs/util/platform-nix.c
Hunk #1 succeeded at 75 (offset 4 lines).
patching file plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c
Hunk #1 FAILED at 72.
Hunk #2 succeeded at 177 (offset 4 lines).
Hunk #3 succeeded at 285 (offset 4 lines).
Hunk #4 succeeded at 296 (offset 4 lines).
Hunk #5 FAILED at 348.
Hunk #6 succeeded at 489 (offset 3 lines).
Hunk #7 FAILED at 510.
Hunk #8 succeeded at 572 (offset 2 lines).
Hunk #9 FAILED at 640.
Hunk #10 succeeded at 698 (offset 3 lines).
Hunk #11 succeeded at 728 (offset 3 lines).
4 out of 11 hunks FAILED -- saving rejects to file plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c.rej
patching file plugins/obs-ffmpeg/obs-ffmpeg.c
Hunk #1 succeeded at 40 (offset 3 lines).
Hunk #2 succeeded at 285 (offset 69 lines).
Hunk #3 succeeded at 355 with fuzz 1 (offset 85 lines).
==> ERROR: A failure occurred in prepare().
    Aborting...

EDIT:

I got this to build following the direction from an Arch Forum user named "loqs".

Read post #8 of the thread link given below if you would like "obs-hevc-vaapi-git 27.2.0.r33.g0dbae4ebe-2" to build:

https://bbs.archlinux.org/viewtopic.php?pid=2046748#p2046748

syori commented on 2022-06-07 17:03 (UTC)

[ 52%] Building C object plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/obs-ffmpeg-vaapi.c.o
/home/syori/.cache/yay/obs-hevc-vaapi-git/src/obs-hevc-vaapi-git/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c: In function ‘vaapi_create’:
/home/syori/.cache/yay/obs-hevc-vaapi-git/src/obs-hevc-vaapi-git/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c:383:28: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  383 |                 enc->vaapi = avcodec_find_encoder_by_name("h264_vaapi");
      |                            ^
/home/syori/.cache/yay/obs-hevc-vaapi-git/src/obs-hevc-vaapi-git/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c:387:28: warning: assignment discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
  387 |                 enc->vaapi = avcodec_find_encoder_by_name("hevc_vaapi");
      |                            ^
/home/syori/.cache/yay/obs-hevc-vaapi-git/src/obs-hevc-vaapi-git/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c: In function ‘vaapi_encode’:
/home/syori/.cache/yay/obs-hevc-vaapi-git/src/obs-hevc-vaapi-git/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c:527:35: error: ‘av_pkt’ undeclared (first use in this function)
  527 |                                 : av_pkt.flags & AV_PKT_FLAG_KEY;
      |                                   ^~~~~~
/home/syori/.cache/yay/obs-hevc-vaapi-git/src/obs-hevc-vaapi-git/plugins/obs-ffmpeg/obs-ffmpeg-vaapi.c:527:35: note: each undeclared identifier is reported only once for each function it appears in
make[2]: *** [plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/build.make:202: plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/obs-ffmpeg-vaapi.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1478: plugins/obs-ffmpeg/CMakeFiles/obs-ffmpeg.dir/all] Error 2
make: *** [Makefile:156: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
 -> error making: obs-hevc-vaapi-git
syori@arch ~ $ 

dr460nf1r3 commented on 2022-06-02 12:41 (UTC)

This just needs makedepends+=(python libajantv2).

ArchBoxHero commented on 2022-03-01 16:59 (UTC) (edited on 2022-03-01 17:02 (UTC) by ArchBoxHero)

Getting a failed build:


--   Package 'libftl', required by 'virtual:world', not found
-- Found ftl-sdk: ftl outputs enabled
-- Could NOT find LibAJANTV2 (missing: AJA_LIBRARIES_INCLUDE_DIR AJA_NTV2_LIB)
-- aja plugin disabled (deps not found)
-- Could NOT find LibAJANTV2 (missing: AJA_LIBRARIES_INCLUDE_DIR AJA_NTV2_LIB)
-- aja-output-ui plugin disabled (deps not found)
-- Configuring done
CMake Warning at plugins/obs-outputs/CMakeLists.txt:179 (add_library):
  Cannot generate a safe runtime search path for target obs-outputs because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libz.so.1] in /usr/lib/../lib64 may be hidden by files in:
      /home/arcrog/anaconda3/condabin/../lib

  Some of these libraries may not be found correctly.


-- Generating done
-- Build files have been written to: /home/arcrog/AUR/obs-hevc-vaapi-git/src/build
CMake Error: Unknown argument --build
CMake Error: Run 'cmake --help' for all supported options.
==> ERROR: A failure occurred in build().
    Aborting...

I have tried deactivating Anaconda and exporting the paths 1/2 dozen ways but still no go. I hate Anaconda but I'm too far in to remove any time soon.

I found this link explaining what cmake is doing: This link

niobium93 commented on 2022-02-24 03:12 (UTC)

@Humorhenker Thanks for the patch! Can confirm it all works fine when using mp4.

Humorhenker commented on 2022-02-07 15:40 (UTC)

@niobium93 i extended the patch to allow setting profile and level for the hevc vaapi encoder aswell. It should work that way but i have not tested it in all variations. However i am just like you unable to create mkv files. Even with the profile and level settings usable. mp4 are no problem however. If anyone got the source of the problem ill be happy to fix it.

niobium93 commented on 2022-02-01 10:58 (UTC) (edited on 2022-02-01 11:02 (UTC) by niobium93)

Trying to use hevc results in an empty mkv file. H.264 works fine.

According to terminal output it tries using profile: 1 and level: 0, which makes no sense. The options to change the profile and level are missing. With my h.264 settings the profile is reported as 578 and level 42, so I figure the hevc settings should be similar. Also this error appears only when using hevc:

Error opening '/home/andrius/Videos/2022-02-01 12-59-18.mkv': Invalid data found when processing inputCouldn't initialize muxer