3 Commits

Author SHA1 Message Date
niels
2db03f4b2b removal AVCodecHWContext fixes issue #281 2025-01-16 18:54:36 +01:00
niels
cb9325c5a4 remove obsolete code 2025-01-16 18:53:36 +01:00
niels
18319653a6 update package list for ubuntu 2025-01-16 18:53:09 +01:00
2 changed files with 4 additions and 26 deletions

View File

@@ -36,11 +36,13 @@ The video output server (Ffmpeg/libSDL), a 'visual' instrument and realtime vide
First, make sure you system is up-to-date, and install the dependencies with:
```bash
sudo apt-get install build-essential autoconf automake libtool m4 gcc libjpeg62-dev \
sudo apt-get install build-essential autoconf automake libtool m4 gcc \
libswscale-dev libavutil-dev libavcodec-dev libavformat-dev libx11-dev \
libxml2-dev libsdl2-dev libjack0 libjack-dev jackd1 libgtk3-dev libgdk-pixbuf-2.0-dev
libxml2-dev libsdl2-dev libjack0 libjack-dev jackd1 libgtk-3-dev libgdk-pixbuf-2.0-dev
```
#### Build the veejay's applications
Veejay is divided into multiple packages. Each must be build separately and in a specific order.

View File

@@ -157,28 +157,6 @@ static int key_compare(const void *key1, const void *key2)
return ((const int) key1 == (const int) key2 ? 0 : 1);
}
#include <libavutil/hwcontext.h>
int avhelper_hwaccel(AVCodecContext *codec_context) {
int i;
for( i = 0;; i++ ) {
AVCodecHWConfig *hw_config = avcodec_get_hw_config(codec_context->codec,i);
if(!hw_config) {
veejay_msg(0, "Decoder %s does not support hwaccel", codec_context->codec->name);
return 0;
}
if( hw_config->methods & AV_CODEC_HW_CONFIG_METHOD_HW_DEVICE_CTX ) {
veejay_msg(VEEJAY_MSG_INFO, "Codec supports hardware acceleration");
return 1;
}
}
return 0;
}
int avhelper_set_num_decoders() {
int n_threads = 0;
@@ -413,8 +391,6 @@ void *avhelper_get_mjpeg_decoder(VJFrame *output) {
x->output = yuv_yuv_template( NULL,NULL,NULL, output->width, output->height, alpha_fmt_to_yuv(output->format) );
//av_dict_free(&options);
//avhelper_hwaccel(x->codec_ctx);
return (void*) x;
}