Giter Site home page Giter Site logo

marcobramini / screen-recorder Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 3.0 72.54 MB

A library to capture and record your audio and video devices

License: GNU General Public License v3.0

CMake 2.29% C++ 49.00% Objective-C++ 2.04% QML 15.18% JavaScript 31.38% C 0.12%
ffmpeg qt6 screen-recorder screen-capture capture-screen capture-video ffmpeg-library record-screen recorder recording

screen-recorder's People

Contributors

marcobramini avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

screen-recorder's Issues

use of deleted function fmt::v10::formatte

template <typename T, typename ParseContext>
FMT_CONSTEXPR auto parse_format_specs(ParseContext& ctx)
    -> decltype(ctx.begin())
{
  using char_type = typename ParseContext::char_type;
  using context = buffer_context<char_type>;
  using mapped_type = conditional_t<
      mapped_type_constant<T, context>::value != type::custom_type,
      decltype(arg_mapper<context>().map(std::declval<const T&>())),
      typename strip_named_arg<T>::type>;
  return formatter<mapped_type, char_type>().parse(ctx);
}

error log:

vcpkg-2023.06.20\packages\fmt_x64-windows\include\fmt\core.h:2561: error: use of deleted function 'fmt::v10::formatter<T, Char, Enable>::formatter() [with T = AVMediaType; Char = char; Enable = void]'

error: static assertion failed: Cannot format an argument. To make type T formattable provide a formatter<T> specialization:

/// Finds the main video stream in the current device context.
int DeviceContext::find_main_stream(AVMediaType streamType) {
  // Build method params for error handling purposes
  std::map<std::string, std::string> methodParams = {
      {"streamType", std::to_string(streamType)}};

  if (avfc == nullptr) {
    throw std::runtime_error(Error::build_error_message(
        __FUNCTION__, methodParams, "device not initialized"));
  }

  int streamIndex =
      av_find_best_stream(avfc.get(), streamType, -1, -1, nullptr, 0);
  if (streamIndex < 0) {
    throw std::runtime_error(Error::build_error_message(
        __FUNCTION__, methodParams,
        fmt::format("error finding main stream for type {}", streamType)));
  }

  return streamIndex;
}


device_context.cpp:152:21: In template: call to deleted constructor of 'formatter<mapped_type, char_type>' (aka 'formatter<AVMediaType, char>')
core.h:2567:10: error occurred here
core.h:2626:23: in instantiation of function template specialization 'fmt::detail::parse_format_specs<AVMediaType, fmt::detail::compile_parse_context<char>>' requested here
core.h:2775:47: in instantiation of member function 'fmt::detail::format_string_checker<char, AVMediaType>::format_string_checker' requested here
device_context.cpp:152:21: in instantiation of function template specialization 'fmt::basic_format_string<char, AVMediaType &>::basic_format_string<char[38], 0>' requested here
core.h:792:3: 'formatter' has been explicitly marked deleted here

/vcpkg-2023.06.20/packages/fmt_x64-windows/include/fmt/core.h:1691:7: error: static assertion failed: Cannot format an argument. To make type T formattable provide a formatter<T> specialization: https://fmt.dev/latest/api.html#udt
 1691 |       formattable,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.