Quantcast
Channel: Intel® Software - Media
Viewing all 697 articles
Browse latest View live

QSV and ffmpeg C++ example

$
0
0

I'm trying to use qsv from ffmpeg with an example i found if ffmpeg src, but it isnt work for me, could you suggest me another one example or say what i do wrong?

When i used this example i had an output:

[AVHWFramesContext @ 048F29E0] Error synchronizing the operation: -3
Error transferring the data to system memory
[AVHWFramesContext @ 048F29E0] Error synchronizing the operation: -2
Error transferring the data to system memory

if i change in function ret = av_hwdevice_ctx_create(&decode.hw_device_ref, AV_HWDEVICE_TYPE_QSV, "auto", NULL, 0) "auto" to "auto_any" its starts work but it using my Nvidia? not Intel Gpu....what I do wrong?

 

There is an example src i used:

/*
 * Copyright (c) 2015 Anton Khirnov
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

/**
 * @file
 * Intel QSV-accelerated H.264 decoding example.
 *
 * @example qsvdec.c
 * This example shows how to do QSV-accelerated H.264 decoding with output
 * frames in the GPU video surfaces.
 */

#include "config.h"

#include <stdio.h>

#include "libavformat/avformat.h"
#include "libavformat/avio.h"

#include "libavcodec/avcodec.h"

#include "libavutil/buffer.h"
#include "libavutil/error.h"
#include "libavutil/hwcontext.h"
#include "libavutil/hwcontext_qsv.h"
#include "libavutil/mem.h"

typedef struct DecodeContext {
    AVBufferRef *hw_device_ref;
} DecodeContext;

static int get_format(AVCodecContext *avctx, const enum AVPixelFormat *pix_fmts)
{
    while (*pix_fmts != AV_PIX_FMT_NONE) {
        if (*pix_fmts == AV_PIX_FMT_QSV) {
            DecodeContext *decode = avctx->opaque;
            AVHWFramesContext  *frames_ctx;
            AVQSVFramesContext *frames_hwctx;
            int ret;

            /* create a pool of surfaces to be used by the decoder */
            avctx->hw_frames_ctx = av_hwframe_ctx_alloc(decode->hw_device_ref);
            if (!avctx->hw_frames_ctx)
                return AV_PIX_FMT_NONE;
            frames_ctx   = (AVHWFramesContext*)avctx->hw_frames_ctx->data;
            frames_hwctx = frames_ctx->hwctx;

            frames_ctx->format            = AV_PIX_FMT_QSV;
            frames_ctx->sw_format         = avctx->sw_pix_fmt;
            frames_ctx->width             = FFALIGN(avctx->coded_width,  32);
            frames_ctx->height            = FFALIGN(avctx->coded_height, 32);
            frames_ctx->initial_pool_size = 32;

            frames_hwctx->frame_type = MFX_MEMTYPE_VIDEO_MEMORY_DECODER_TARGET;

            ret = av_hwframe_ctx_init(avctx->hw_frames_ctx);
            if (ret < 0)
                return AV_PIX_FMT_NONE;

            return AV_PIX_FMT_QSV;
        }

        pix_fmts++;
    }

    fprintf(stderr, "The QSV pixel format not offered in get_format()\n");

    return AV_PIX_FMT_NONE;
}

static int decode_packet(DecodeContext *decode, AVCodecContext *decoder_ctx,
                         AVFrame *frame, AVFrame *sw_frame,
                         AVPacket *pkt, AVIOContext *output_ctx)
{
    int ret = 0;

    ret = avcodec_send_packet(decoder_ctx, pkt);
    if (ret < 0) {
        fprintf(stderr, "Error during decoding\n");
        return ret;
    }

    while (ret >= 0) {
        int i, j;

        ret = avcodec_receive_frame(decoder_ctx, frame);
        if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)
            break;
        else if (ret < 0) {
            fprintf(stderr, "Error during decoding\n");
            return ret;
        }

        /* A real program would do something useful with the decoded frame here.
         * We just retrieve the raw data and write it to a file, which is rather
         * useless but pedagogic. */
        ret = av_hwframe_transfer_data(sw_frame, frame, 0);
        if (ret < 0) {
            fprintf(stderr, "Error transferring the data to system memory\n");
            goto fail;
        }

        for (i = 0; i < FF_ARRAY_ELEMS(sw_frame->data) && sw_frame->data[i]; i++)
            for (j = 0; j < (sw_frame->height >> (i > 0)); j++)
                avio_write(output_ctx, sw_frame->data[i] + j * sw_frame->linesize[i], sw_frame->width);

fail:
        av_frame_unref(sw_frame);
        av_frame_unref(frame);

        if (ret < 0)
            return ret;
    }

    return 0;
}

int main(int argc, char **argv)
{
    AVFormatContext *input_ctx = NULL;
    AVStream *video_st = NULL;
    AVCodecContext *decoder_ctx = NULL;
    const AVCodec *decoder;

    AVPacket pkt = { 0 };
    AVFrame *frame = NULL, *sw_frame = NULL;

    DecodeContext decode = { NULL };

    AVIOContext *output_ctx = NULL;

    int ret, i;

    av_register_all();

    if (argc < 3) {
        fprintf(stderr, "Usage: %s <input file> <output file>\n", argv[0]);
        return 1;
    }

    /* open the input file */
    ret = avformat_open_input(&input_ctx, argv[1], NULL, NULL);
    if (ret < 0) {
        fprintf(stderr, "Cannot open input file '%s': ", argv[1]);
        goto finish;
    }

    /* find the first H.264 video stream */
    for (i = 0; i < input_ctx->nb_streams; i++) {
        AVStream *st = input_ctx->streams[i];

        if (st->codecpar->codec_id == AV_CODEC_ID_H264 && !video_st)
            video_st = st;
        else
            st->discard = AVDISCARD_ALL;
    }
    if (!video_st) {
        fprintf(stderr, "No H.264 video stream in the input file\n");
        goto finish;
    }

    /* open the hardware device */
    ret = av_hwdevice_ctx_create(&decode.hw_device_ref, AV_HWDEVICE_TYPE_QSV,
                                 "auto", NULL, 0);
    if (ret < 0) {
        fprintf(stderr, "Cannot open the hardware device\n");
        goto finish;
    }

    /* initialize the decoder */
    decoder = avcodec_find_decoder_by_name("h264_qsv");
    if (!decoder) {
        fprintf(stderr, "The QSV decoder is not present in libavcodec\n");
        goto finish;
    }

    decoder_ctx = avcodec_alloc_context3(decoder);
    if (!decoder_ctx) {
        ret = AVERROR(ENOMEM);
        goto finish;
    }
    decoder_ctx->codec_id = AV_CODEC_ID_H264;
    if (video_st->codecpar->extradata_size) {
        decoder_ctx->extradata = av_mallocz(video_st->codecpar->extradata_size +
                                            AV_INPUT_BUFFER_PADDING_SIZE);
        if (!decoder_ctx->extradata) {
            ret = AVERROR(ENOMEM);
            goto finish;
        }
        memcpy(decoder_ctx->extradata, video_st->codecpar->extradata,
               video_st->codecpar->extradata_size);
        decoder_ctx->extradata_size = video_st->codecpar->extradata_size;
    }
    decoder_ctx->refcounted_frames = 1;

    decoder_ctx->opaque      = &decode;
    decoder_ctx->get_format  = get_format;

    ret = avcodec_open2(decoder_ctx, NULL, NULL);
    if (ret < 0) {
        fprintf(stderr, "Error opening the decoder: ");
        goto finish;
    }

    /* open the output stream */
    ret = avio_open(&output_ctx, argv[2], AVIO_FLAG_WRITE);
    if (ret < 0) {
        fprintf(stderr, "Error opening the output context: ");
        goto finish;
    }

    frame    = av_frame_alloc();
    sw_frame = av_frame_alloc();
    if (!frame || !sw_frame) {
        ret = AVERROR(ENOMEM);
        goto finish;
    }

    /* actual decoding */
    while (ret >= 0) {
        ret = av_read_frame(input_ctx, &pkt);
        if (ret < 0)
            break;

        if (pkt.stream_index == video_st->index)
            ret = decode_packet(&decode, decoder_ctx, frame, sw_frame, &pkt, output_ctx);

        av_packet_unref(&pkt);
    }

    /* flush the decoder */
    pkt.data = NULL;
    pkt.size = 0;
    ret = decode_packet(&decode, decoder_ctx, frame, sw_frame, &pkt, output_ctx);

finish:
    if (ret < 0) {
        char buf[1024];
        av_strerror(ret, buf, sizeof(buf));
        fprintf(stderr, "%s\n", buf);
    }

    avformat_close_input(&input_ctx);

    av_frame_free(&frame);
    av_frame_free(&sw_frame);

    avcodec_free_context(&decoder_ctx);

    av_buffer_unref(&decode.hw_device_ref);

    avio_close(output_ctx);

    return ret;
}

 


Build errror building

$
0
0

Moin,

Downloaded IntelMediaSDK2017R2_1forEmbeddedLinux.tar.gz

When trying to build, after executing ./setup.sh error occures:

| if LC_ALL=C grep '@[a-zA-Z0-9_][a-zA-Z0-9_]*@' t/ax/test-defs.sh-t; then echo "t/ax/test-defs.sh contains unexpanded substitution (see lines above)"; exit 1; fi; chmod a-w t/ax/test-defs.sh-t && mv -f t/ax/test-defs.sh-t t/ax/test-defs.sh
| help2man: can't get `--help' info from automake-1.15
| Try `--no-discard-stderr' if option outputs to stderr
| make: *** [Makefile:3687: doc/automake-1.15.1] Error 255
| make: *** Waiting for unfinished jobs....

This seems to be an incompatibilty between automake-1.15 and perl, but i'm to stupid to tell yocto to patch it before building. Pls. advice.

WK

 

Unsupported feature/library load error

$
0
0

Hi Team,

To understand  Intel Media SDK api in details, started looking in to simple encode program. when i run  simple_encode application in Linux OS i am getting following error.

Unsupported feature/library load error. ./src/common_utils_linux.cpp 29

Unsupported feature/library load error. ./src/simple_encode.cpp 88

Above errors thrown while initialising a session.

mfxIMPL impl = options.values.impl;
    mfxVersion ver = { { 0, 1 } };
    MFXVideoSession session;

    sts = Initialize(impl, ver, &session, NULL);
    MSDK_CHECK_RESULT(sts, MFX_ERR_NONE, sts);

Thanks & Regards,

vittal

 

Intel Media SDK for android

$
0
0

Hi,

Is there any version of IMSDK available for android OS. I can see only for embedded linux and WIndows.

If not, what is the equivalent of IMSDK available fot android OS.

--Regards

Thushara

Intel media SDK can't be accessed

$
0
0

For a while now I use Handbrake in combination with the Media SDK for transcoding videos quickly with the QuickSync hardware accelerator if needed. But I think for already a few Win10 updates it's not working anymore. Handbrake 1.0.7 is just crashing before I could even take a look into the activity logs, while 0.10.3 (which I'm using because of the AAC FDK encoder since the FFMPEG one is crap) isn't exactly crashing, but it isn't reallydoing anything else either and the encoding log stays at

[spoiler]

HandBrake 0.10.3.0 - 64bit Version

OS: Microsoft Windows NT 6.2.9200.0 - 64bit

CPU: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz

Ram: 8076 MB,

GPU Information:

Intel(R) HD Graphics Family - 20.19.15.4531

Screen: 1366x768

Temp Dir: C:\Users\Richa\AppData\Local\Temp\

Install Dir: C:\Program Files\Handbrake

Data Dir: C:\Users\Richa\AppData\Roaming\HandBrake Team\HandBrake\0.10.3.0

-------------------------------------------

CLI Query: -i "D:\Filme\Within Temptation - Black Symphony - Bonuskonzert.mkv" -t 1 --angle 1 -c 1-12 -o "D:\Filme\Within Temptation - Black Symphony - Bonuskonzert qsv.mkv" -f mkv --deinterlace="fast" --crop 0:0:0:0 --strict-anamorphic --modulus 2 -e qsv_h264 -b 5000 --cfr -a 1,2 -E copy,flac24 -6 none,5point1 -R Auto,48 -B 0,160 -D 0,0 --gain 0,0 --aname="Stereo,5.1" --audio-fallback ac3 --markers="C:\Users\Richa\AppData\Local\Temp\Within Temptation - Black Symphony - Bonuskonzert qsv-1-chapters.csv" --encoder-preset=quality --verbose=1

[21:16:02] hb_init: starting libhb thread

HandBrake 0.10.3 (2016012200) - MinGW x86_64 - https://handbrake.fr

4 CPUs detected

Opening D:\Filme\Within Temptation - Black Symphony - Bonuskonzert.mkv...

[21:16:02] CPU: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz

[21:16:02] - Intel microarchitecture Haswell

[21:16:02] - logical processor count: 4

[21:16:02] OpenCL device #1: Intel(R) Corporation Intel(R) HD Graphics 4400

[21:16:02] - OpenCL version: 1.2

[21:16:02] - driver version: 20.19.15.4531

[21:16:02] - device type: GPU

[21:16:02] - supported: YES

[21:16:02] Intel Quick Sync Video support: yes

[21:16:02] - Intel Media SDK hardware: API 1.19 (minimum: 1.3)

[21:16:02] - Intel Media SDK software: API 1.23 (minimum: 1.3)

[21:16:02] - H.264 encoder: yes

[21:16:02] - preferred implementation: hardware (any)

[21:16:02] - H.265 encoder: no

[21:16:02] hb_scan: path=D:\Filme\Within Temptation - Black Symphony - Bonuskonzert.mkv, title_index=1

libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\Filme\Within Temptation - Black Symphony - Bonuskonzert.mkv/BDMV/index.bdmv

libbluray/bdnav/index_parse.c:162: indx_parse(): error opening D:\Filme\Within Temptation - Black Symphony - Bonuskonzert.mkv/BDMV/BACKUP/index.bdmv

libbluray/bluray.c:2182: nav_get_title_list(D:\Filme\Within Temptation - Black Symphony - Bonuskonzert.mkv) failed

[21:16:03] bd: not a bd - trying as a stream/file instead

libdvdnav: Using dvdnav version 5.0.1

libdvdread: Encrypted DVD support unavailable.

libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed

libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed

libdvdread: Can't open file VIDEO_TS.IFO.

libdvdnav: vm: failed to read VIDEO_TS.IFO

[21:16:03] dvd: not a dvd - trying as a stream/file instead

Input #0, matroska,webm, from 'D:\Filme\Within Temptation - Black Symphony - Bonuskonzert.mkv':

Metadata:

CREATION_TIME : 2018-03-01T18:05:19Z

ENCODER : Lavf55.12.0

Duration: 01:02:01.60, start: 0.000000, bitrate: N/A

Chapter #0.0: start 0.000000, end 76.000000

Metadata:

title : Intro

Chapter #0.1: start 76.067000, end 349.000000

Metadata:

title : Jillian (I'd Give My Heart)

Chapter #0.2: start 349.067000, end 694.267000

Metadata:

title : The Howling

Chapter #0.3: start 694.334000, end 994.600000

Metadata:

title : The Cross

Chapter #0.4: start 994.667000, end 1332.800000

Metadata:

title : Hand Of Sorrow

Chapter #0.5: start 1332.867000, end 1682.600000

Metadata:

title : The Heart Of Everything

Chapter #0.6: start 1682.667000, end 2041.933000

Metadata:

title : Restless

Chapter #0.7: start 2042.000000, end 2361.933000

Metadata:

title : Our Solemn Hour

Chapter #0.8: start 2362.000000, end 2714.733000

Metadata:

title : Mother Earth

Chapter #0.9: start 2714.800000, end 2989.467000

Metadata:

title : Jane Doe

Chapter #0.10: start 2989.534000, end 3419.700000

Metadata:

title : The Truth Beneath The Rose

Chapter #0.11: start 3419.767000, end 3721.500000

Metadata:

title : All I Need

Stream #0.0: Video: h264 (High), yuv420p, 720x576 [PAR 64:45 DAR 16:9], 30 fps, 1k tbn, 60 tbc (default)

Stream #0.1: Audio: aac, 48000 Hz, stereo, fltp (default)

Metadata:

title : Stereo

Stream #0.2: Audio: flac, 48000 Hz, 5.1, s32

Metadata:

title : 5.1

[21:16:03] scan: decoding previews for title 1

[21:16:03] scan: audio 0x1: aac, rate=48000Hz, bitrate=1 Unknown (AAC) (2.0 ch)

[21:16:03] scan: audio 0x2: flac, rate=48000Hz, bitrate=1 Unknown (FLAC) (5.1 ch)

Scanning title 1 of 1, preview 5, 50.00 %[21:16:03] scan: 10 previews, 720x576, 30.000 fps, autocrop = 6/32/12/0, aspect 16:9, PAR 64:45

[21:16:03] libhb: scan thread found 1 valid title(s)

+ title 1:

+ stream: D:\Filme\Within Temptation - Black Symphony - Bonuskonzert.mkv

+ duration: 01:02:01

+ size: 720x576, pixel aspect: 64/45, display aspect: 1.78, 30.000 fps

+ autocrop: 6/32/12/0

+ support opencl: yes

+ support hwd: yes

+ chapters:

+ 1: cells 0->0, 0 blocks, duration 00:01:16

+ 2: cells 0->0, 0 blocks, duration 00:04:33

+ 3: cells 0->0, 0 blocks, duration 00:05:45

+ 4: cells 0->0, 0 blocks, duration 00:05:00

+ 5: cells 0->0, 0 blocks, duration 00:05:38

+ 6: cells 0->0, 0 blocks, duration 00:05:50

+ 7: cells 0->0, 0 blocks, duration 00:05:59

+ 8: cells 0->0, 0 blocks, duration 00:05:20

+ 9: cells 0->0, 0 blocks, duration 00:05:53

+ 10: cells 0->0, 0 blocks, duration 00:04:35

+ 11: cells 0->0, 0 blocks, duration 00:07:10

+ 12: cells 0->0, 0 blocks, duration 00:05:02

+ audio tracks:

+ 1, Unknown (AAC) (2.0 ch) (iso639-2: und)

+ 2, Unknown (FLAC) (5.1 ch) (iso639-2: und)

+ subtitle tracks:

Reading chapter markers from file C:\Users\Richa\AppData\Local\Temp\Within Temptation - Black Symphony - Bonuskonzert qsv-1-chapters.csv

[21:16:03] 1 job(s) to process

[21:16:03] starting job

[21:16:03] do_job: QSV: full path, removing unsupported filter 'Framerate Shaper'

[21:16:03] Fast Deinterlace thread started for segment 0

[21:16:03] Auto Passthru: allowed codecs are AAC, AC3, DTS, DTS-HD, MP3

[21:16:03] Fast Deinterlace thread started for segment 1

[21:16:03] Fast Deinterlace thread started for segment 2

[21:16:03] Auto Passthru: fallback is AC3

[21:16:03] Auto Passthru: using AAC Passthru for track 1

[21:16:03] Fast Deinterlace thread started for segment 3

[21:16:03] work: compression level not specified, track 2 setting compression level 5.00

[21:16:03] sync: expecting 111645 video frames

[21:16:03] job configuration:

[21:16:03] * source

[21:16:03] + D:\Filme\Within Temptation - Black Symphony - Bonuskonzert.mkv

[21:16:03] + title 1, chapter(s) 1 to 12

[21:16:03] + container: matroska,webm

[21:16:03] * destination

[21:16:03] + D:\Filme\Within Temptation - Black Symphony - Bonuskonzert qsv.mkv

[21:16:03] + container: Matroska (libavformat)

[21:16:03] + chapter markers

[21:16:03] * video track

[21:16:03] + decoder: h264_qsv

[21:16:03] + filters

[21:16:03] + Quick Sync Video user filter (pre) (default settings)

[21:16:03] + copy data to system memory

[21:16:03] + Deinterlace (0)

[21:16:03] + Quick Sync Video user filter (post) (default settings)

[21:16:03] + copy data to opaque memory

[21:16:03] + strict anamorphic

[21:16:03] + storage dimensions: 720 * 576, mod 2

[21:16:03] + pixel aspect ratio: 64 / 45

[21:16:03] + display dimensions: 1024 * 576

[21:16:03] + encoder: H.264 (Intel Media SDK)

[21:16:03] + preset: quality

[21:16:03] + bitrate: 5000 kbps, pass: 0

[21:16:03] * audio track 1

[21:16:03] + name: Stereo

[21:16:03] + decoder: Unknown (AAC) (2.0 ch) (track 1, id 0x1)

[21:16:03] + samplerate: 48000 Hz

[21:16:03] + AAC Passthru

[21:16:03] * audio track 2

[21:16:03] + name: 5.1

[21:16:03] + decoder: Unknown (FLAC) (5.1 ch) (track 2, id 0x2)

[21:16:03] + samplerate: 48000 Hz

[21:16:03] + mixdown: 5.1 Channels

[21:16:03] + encoder: FLAC 24-bit (libavcodec)

[21:16:03] + samplerate: 48000 Hz

[21:16:03] + compression level: 5.00

[21:16:03] reader: first SCR 6030 id 0x0 DTS 6030

[21:16:03] encqsvInit: using full QSV path

[21:16:03] encqsvInit: TargetUsage 2 AsyncDepth 4

[21:16:03] encqsvInit: GopRefDist 3 GopPicSize 30 NumRefFrame 3

[21:16:03] encqsvInit: BFrames on BPyramid off

[21:16:03] encqsvInit: AdaptiveI off AdaptiveB off

[21:16:03] encqsvInit: RateControlMethod LA TargetKbps 5000 LookAheadDepth 40

[21:16:03] encqsvInit: LookAheadDS off

[21:16:03] encqsvInit: CAVLC off

[21:16:03] encqsvInit: Trellis off

[21:16:03] encqsvInit: H.264 profile High @ level 3.1 [/spoiler]

respectively at 00.01%. No problems if I don't explicitly use H.264 qsv. So Handbrake itself seems to see qsv because of tthe Media SDK, but somehow can't use it.

I have already reinstalled the Media SDK, even tried the 2016 version but no change. Also installing with Windows' compatibility settings didn't do anything.

One thing I noticed is that Intel writes on https://software.intel.com/en-us/media-sdk/choose-download/client about a INTELMEDIASDK_WINSDK_PATH which would be initialised after installation, but it isn't showing up where all the other PATH variables are. Also manually setting it like described here https://github.com/Intel-Media-SDK/samples/tree/master/samples doesn't make really sense since Windows can fidn that opencl.dll only in C:\Windows\system32\ and that folder is already a system variable as %SystemRoot%\system32

I also found a Tool for system analyses that seems to ship inside the SDK installer, but that isn't really helping either:

[hide]

Intel(R) Media Server Studio 2017 - System Analyzer (64-bit)

The following versions of Media SDK API are supported by platform/driver

[opportunistic detection of MSDK API > 1.23]:

Version Target Supported Dec Enc

1.0 HW Yes X X

1.0 SW Yes X X

1.1 HW Yes X X

1.1 SW Yes X X

1.2 HW Yes X X

1.2 SW Yes X X

1.3 HW Yes X X

1.3 SW Yes X X

1.4 HW Yes X X

1.4 SW Yes X X

1.5 HW Yes X X

1.5 SW Yes X X

1.6 HW Yes X X

1.6 SW Yes X X

1.7 HW Yes X X

1.7 SW Yes X X

1.8 HW Yes X X

1.8 SW Yes X X

1.9 HW Yes X X

1.9 SW Yes X X

1.10 HW Yes X X

1.10 SW Yes X X

1.11 HW Yes X X

1.11 SW Yes X X

1.12 HW Yes X X

1.12 SW Yes X X

1.13 HW Yes X X

1.13 SW Yes X X

1.14 HW Yes X X

1.14 SW Yes X X

1.15 HW Yes X X

1.15 SW Yes X X

1.16 HW Yes X X

1.16 SW Yes X X

1.17 HW Yes X X

1.17 SW Yes X X

1.18 HW Yes X X

1.18 SW Yes X X

1.19 HW Yes X X

1.19 SW Yes X X

1.20 HW No

1.20 SW Yes X X

1.21 HW No

1.21 SW Yes X X

1.22 HW No

1.22 SW Yes X X

1.23 HW No

1.23 SW Yes X X

Graphics Devices:

Name Version State

Intel(R) HD Graphics Family 20.19.15.4531 Active

System info:

CPU: Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz

OS: Microsoft Windows 10 Pro

Arch: 64-Bit

Installed Media SDK packages (be patient...processing takes some time):

Intel(R) Media SDK 2017 R1

Installed Media SDK DirectShow filters:

Installed Intel Media Foundation Transforms:

Intel(R) Hardware M-JPEG Decoder MFT : {00C69F81-0524-48C0-A353-4DD9D54F9A6E}

Intel(R) Hardware VP8 Sync Decoder MFT : {451E3CB7-2622-4BA5-8E1D-44B3C41D0924}

Intel(R) Hardware VP8 Decoder MFT : {6D856398-834E-4A89-8EE5-071BB3F58BE4}

Analysis complete... [press ENTER] [/hide]

Also reinstalling Handbrake doesn't help at this point.

Has anyone any idea what's going wrong and how that could be fixed? I mean it wasn't any update of Handbrake or the Media SDK that broke anything since it just stopped working.

PS: it seems UBB code isn't supported here so I have no idea how to hide those huge outputs. But I colored it so at least it's a visible difference

Is the VAAPI encoding whitepaper for Intel Atom E6XX valid for the N4200?

Best Processor for INTEL media SDK

$
0
0

Hello,

I want to buy new intel processors, which can transcode more than 20 h264 full hd instance simultaneously with latest intel media sdk (hw support). Can you please suggest me how can I achieve my requirement.

-Requirement:

->Support windows operating System. 

->Transcode 20 instance h264 full hd (1920*1080) simultaneously in HW mode with latest INTEL media sdk.

->Please suggest me best INTEL Processor + Graphic card combinations.

Thanking You,

Dhrumil Sheth

 

Is Microsoft DirectX* 11.1 the only supported acceleration infrastructure ?

$
0
0

         I have seen this sentence that" Microsoft DirectX* 11.1 is the only supported acceleration infrastructure (due to headless mode requirement)" on Intel® Media Software Development Kit 2017 R1 Release Notes (Version 7.0.0.487).But on my windows 10 computer,when I install Intel® Graphics Driver the Microsoft DirectX version changes to 12.

         I want to know does Microsoft DirectX 12 not support acceleration?If it's true ,how can I get  Microsoft DirectX* 11.1. Thank u.

 


Fails to encode with ROI in Intel Media SDK 20217 R1 For Windows

$
0
0

Hi,

I encountered one problem while using the mfxExtEncoderROI in the Media SDK, the problem is after the ROI information have been set, the Query() function failed with MFX_ERR_UNSUPPORTED, I wonder is this feature supported in my current development environment.

The Media SDK version I am using is: Intel Media SDK 2017 R1, the API version is 1.23.

I am using a NUC (https://www.amazon.com/Intel-NUC6i7KYK-Mini-i7-6770HQ-Windows/dp/B01FLDS5SO) with a i7-6770HQ CPU with Iris Pro Graphics 580. My OS is Windows 10 Enterprise 64Bit.

Some parts of the code are listed as follows:

m_mfxROI.NumROI = 1;

m_mfxROI.ROI[0].Left = 480;

m_mfxROI.ROI[0].Right = 1440;

m_mfxROI.ROI[0].Top = 270;

m_mfxROI.ROI[0].Bottom = 810;

m_mfxROI.ROI[0].Priority = -50; // CQP mode

m_EncExtParams.push_back((mfxExtBuffer*)&m_mfxROI);

...

the failed function is:

 sts = GetFirstEncoder()->Query(&m_mfxEncParams, &m_mfxEncParams);
 MSDK_CHECK_STATUS(sts, "Query (for encoder) failed");

 

I attached pipeline_encode.h and pipeline_encode.cpp which can be directly put to the sample_encode example solution in the latest Media SDK samples for Windows. 

 

Simultaneous playback of 4 times 4K videos

$
0
0

I'm looking into what solutions there are to playback 4 videos with 4K resolution simultaneously.

Would this be possible with the Intel Media SDK? 

I know this is a somewhat general question w/o any specs, but at the moment I'm pretty open to any solution that could work. I have some idea but would love to hear if anyone from the community did something similar or has advise  For now all I'm looking for is a way to decode 4 times 4K videos in real time and get access to the pixels/textures on the GPU.

Encoding Performance

$
0
0

Hello,

I am little confused about the encoding performance in windows:

I can encode 8 1080i@25fps live channels to H264 with deinterlacing on 6th linux. But when I try it on 7th windows10,my gpu usage is not enough。It can encode 8 1080i@25fps but can't perform deinterlacing. My follow settings:

                        Deinterlace::ADI

                        3MBit CBR

                        system memtype

                        AsyncDepth:1

Is there  anyone needs adjustment or the encoding performance on windows is really lower than linux?

Encoding Performance on windows

$
0
0

Hello

I can encode 8 1080i@25 fps to h264 with deinterlacing on 6th linux. But when I try it on 7th windows ,my computer's GPU usage is not enough.Here are my seetings;

Deinterlace::ADI

3MBit CBR

AsyncDepth 1

sys memtype

Are my settings need adjustments?Or the encoding performance on windows is really lower than on linux?

Thank u

Quick Sync Video + Ubuntu 16.04.4 Server x64

Can I capture a screen shot from graphic driver directly?

$
0
0

Hi, 

I try to develope streaming program using intel media sdk(capture, encode, decode).

In capture process, i set device using D3D11CreateDevice and capture screen shot using ID3D11Texture2D.

(My OS is windows 10 pro and i use visual studio 2017)

However,  when i turn off monitor(unplug driver line), capture process does not work.

I think this case happens because it did not capture from graphic driver directly.

So, I invetigate to solve this problem, but i couldn't find solultions.

Is it impossible to capture from graphic driver directly? or is there any solution?

 I would appriciate if anyone could answer.

Thanks

 

Why vainfo failed, when media server studio installed on CPU( Intel Xeon E3 1225 V5 )?

$
0
0

I have installed Media Server Studio 2017 R3 on CentOS 7.3,  CPU is  Intel Xeon E3 1225 V5 .

[hope@localhost CapsBasic]$ vainfo
libva info: VA-API version 0.99.0
Xlib:  extension "XFree86-DRI" missing on display ":0".
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
vaInitialize failed with error code -1 (unknown libva error),exit

-----------

[hope@localhost Downloads]$ python sys_analyzer_linux.py
--------------------------
Hardware readiness checks:
--------------------------
 [ OK ] Processor name: Intel(R) Xeon(R) CPU E3-1225 v5 @ 3.30GHz
--------------------------
OS readiness checks:
--------------------------
 [ OK ] GPU visible to OS
--------------------------
Media Server Studio Install:
--------------------------
 [ OK ] user in video group
 [ OK ] libva.so.1 found
 [ ERROR ] libva not loading Intel iHD
 [ ERROR ] vainfo not reporting codec entry points
 [ ERROR ] Intel video adapter not using i915
 [ ERROR ] no /dev/dri/renderD* interfaces found
--------------------------
Component Smoke Tests:
--------------------------
 [ OK ] Media SDK HW API level:1.23
 [ OK ] Media SDK SW API level:1.23
 [ OK ] OpenCL check:platform:Intel(R) OpenCL GPU FAIL CPU OK

Please help me.  Thanks.


FFMPEG libav qsv vs cuda vs i7-4790

$
0
0

FFMPEG libav qsv vs cuda vs i7-4790

I am using hardware accelerators to decode h264 video streams.

Both with QSV and with CUDA I do not get a significant advantage compared to the use of an i7-4790 CPU @ 3.60GHz RAM 16GB without hardware accelerator.

To decode I use the Zeranoe libraries (FFMPEG 3.4.2) 3.4.2 the last one at this moment.

The libraries provide functions and settings to use QSV or CUDA or standard (without special settings).

The 3 modes work well, and with the windows 10 performance viewer I can see when I use one gpu or the other or when they are not used.

My problem is that without using hardware accelerators (CUDA or QSV) I get more FPS's than with hardware accelerators.
And when I use hardware accelerators I do not get a significant cpu availability.

What can they say about it or what am I doing wrong?
Thank you.

JOCh: chicahuala@gmail.com

Release Announcement: Intel® Media SDK 2018 R1 and Intel® Media Server Studio 2018 R1

$
0
0

We thrilling announced the release of Media SDK 2018 R1 and Media Server Studio 2018 R1.

Intel® Media SDK has following new features:

  • Features that improve video and image processing and quality for AVC, HEVC, and VP9.
  • Support for 8th generation Intel® Core™, Celeron®, and Pentium® processors.

Intel® Media Server Studio Community/Essential Edition release provides:

  • Enhances AVC compression efficiency and video quality features 
  • Improves HEVC encode video quality and CPU performance for multiple media sessions running simultaneously
  • Expands API parameters for more control over the codecs
  • Increases performance significantly for Sessions Joining API
  • Supports CentOS* 7.4 - providing new features, security updates

Go to this What's New page to check the detailed new feature list.

error code -3 sample decode error

$
0
0

Hi Team,

I have installed Trail version of Intel Media SDK  on Linux Machine and tried sample decode example was throwing below error. i have shared all hardware and OS details. please let us know, what mistake iám doing and how overcome this issue.

Command:

./sample_encode h264 -i /home/bvittalprasad/ffmpeg_sources/ffmpeg_static/bb.yuv  -o out.yuv -w 1920 -h 1080

 

Error:

Return on error: error code -3, /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_encode/src/pipeline_encode.cpp  1069

Return on error: error code -3, /home/lab_msdk/buildAgentDir/buildAgent_MediaSDK4/git/mdp_msdk-samples/samples/sample_encode/src/sample_encode.cpp    859

 

CPU architecture:

 

Architecture:          x86_64

CPU op-mode(s):        32-bit, 64-bit

Byte Order:            Little Endian

CPU(s):                8

On-line CPU(s) list:   0-7

Thread(s) per core:    1

Core(s) per socket:    1

Socket(s):             8

NUMA node(s):          1

Vendor ID:             GenuineIntel

CPU family:            6

Model:                 60

Model name:      Intel Core Processor (Haswell)

Stepping:              1

CPU MHz:               2394.230

BogoMIPS:              4788.46

Hypervisor vendor:     KVM

Virtualization type:   full

L1d cache:             32K

L1i cache:             32K

L2 cache:              4096K

NUMA node0 CPU(s):     0-7

 

OS: RHEL 6.4

RHEL Release: Red Hat Enterprise Linux Server release 6.4 (Santiago)

RHEL Kernel: Linux mediabuild 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

 

Memory leak after CLOSE in MFXVideoENCODE

$
0
0

Hello.

When the H.264 encoding program repeats Query, Init and Close of MFXVideoENCODE, there is a phenomenon that the memory is not released after Close. About 20 kbyte to 60 kbyte has not been released​.

 

Processor: Intel Core i5-6300U @2.40 GHZ
Graphics Driver: Intel HD Graphics 520 (21.20.16.4627)
Operating System: Windows 10 - 64 bit
Intel Media SDK Version: 2017 - R1
 

I think that this driver is old, has it been solved with the latest driver?
I downloaded the driver (23.20.16.4982), but I can not update it.

Cannot find Intel Fortran in Build Rules for Xcode

$
0
0

I have installed Intel fortran compiler xe 2.036 for osx.  I am running High Sierra with Xcode 9.3.  In the Xcode new Project I cannot find the Intel Fortran Compiler in the Build Rules Using list.  Is there a problem with using Xcode 9.3?  If so what is the work around?  Thank you

 

 

Viewing all 697 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>