Recherche avancée

Médias (1)

Mot : - Tags -/géodiversité

Autres articles (69)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

Sur d’autres sites (7894)

  • Issues when decoding video via ffmpeg with dxva2

    5 janvier 2016, par CD83

    I have successfully implemented a video player using ffmpeg. I am now trying to use hardware decoding but I’m facing a couple issues.
    I found a post that I followed as a starting point here : http://comments.gmane.org/gmane.comp.video.ffmpeg.libav.user/13523

    I have updated the code that setup the necessary stuff for the decoder. The updated code is available here : https://drive.google.com/file/d/0B5ufHdoDzA4ieVk5UVpxcDNzRHc/view?usp=sharing

    And this is how I’m using it to initialize the decoder :

    // Prepare the decoding context
    AVCodec *codec = nullptr;
    _codecContext = _avFormatContext->streams[_streamIndex]->codec;
    if ((codec = avcodec_find_decoder(_codecContext->codec_id)) == 0)
    {
       std::cout << "Unsupported video codec!" << std::endl;
       return false;
    }

    _codecContext->thread_count = 1;  // Multithreading is apparently not compatible with hardware decoding
    InputStream *ist = new InputStream();
    ist->hwaccel_id = HWACCEL_AUTO;
    ist->hwaccel_device = "dxva2";
    ist->dec = codec;
    ist->dec_ctx = _codecContext;
    _codecContext->coded_width = _width;
    _codecContext->coded_height = _height;

    _codecContext->opaque = ist;
    dxva2_init(_codecContext);

    _codecContext->get_buffer2 = ist->hwaccel_get_buffer;
    _codecContext->get_format = GetHwFormat;
    _codecContext->thread_safe_callbacks = 1;

    if (avcodec_open2(_codecContext, codec, nullptr) < 0)
    {
       std::cout << "Video codec open error" << std::endl;
       return false;
    }

    And here is the definition of GetHwFormat referenced above :

    AVPixelFormat GetHwFormat(AVCodecContext *s, const AVPixelFormat *pix_fmts)
    {
       InputStream* ist = (InputStream*)s->opaque;
       ist->active_hwaccel_id = HWACCEL_DXVA2;
       ist->hwaccel_pix_fmt = AV_PIX_FMT_DXVA2_VLD;
       return ist->hwaccel_pix_fmt;
    }

    When I open an mp4 (encoded in h264) video that is HD resolution or less, everything seems to be working fine. However, as soon as I try higher resolution videos like 3840x2160, I get the following errors repeatedly :

    Failed to execute: 0x80070057
    Hardware accelerator failed to decode picture

    I also start getting the following errors after a few seconds :

    co located POCs unavailable

    And the video is not displayed properly : I get a lot of artifacts all over the video and it is lagging. I checked the first error in the ffmpeg source code. It seems that IDirectXVideoDecoder_Execute fails because of an invalid parameter. Since this is happening withing ffmpeg, there must be something that I’m missing but I can’t figure out what. The only relevant post that I found with this error was because of multithreading but I set the thread_count to 1 before opening the codec.

    This issue is happening on my main computer which has the following specs :

    • i7-4790 CPU @ 3.6GHz
    • RAM 16 GB
    • Intel HD Graphics 4600
    • Windows 8.1

    The same issue is not happening on my second computer which has the following specs :

    • i7 4510U @ 2GHz
    • RAM 8 GB
    • NVIDIA GeForce GTX 750Ti
    • Windows 10

    If I use DXVAChecker on my main computer, it says that my graphics card supports DXVA2 for H264_VLD_*, and I can see that the calls to the Microsoft API are being made (DXVA2_DecodeDeviceCreated, DXVA2_DecodeDeviceBeginFrame, DXVA2_DecodeDeviceGetBuffer, DXVA2_DecodeDeviceExecute, DXVA2_DecodeDeviceEndFrame) while my video is playing.

    I also don’t see any increase of GPU usage (on either computer) between the version with hardware decoding and the version without ; however, I do see a decrease in CPU usage (not as much as I was expecting though). This is also very strange.

    Note that I tried both the Windows release available on the FFmpeg website, and a version that I compiled with —enable-dxva2. I have searched a lot already but I was unable to find what I’m doing wrong.

    Hopefully, someone can help me, or maybe point me to a better example ?

  • swscale/aarch64/output.S : refactor ff_yuv2plane1_8_neon

    31 janvier, par Krzysztof Pyrkosz
    swscale/aarch64/output.S : refactor ff_yuv2plane1_8_neon
    

    The benchmarks (before vs after) were gathered using
    ./tests/checkasm/checkasm —test=sw_scale —bench —runs=6 | grep yuv2yuv1

    A78 before :
    yuv2yuv1_0_512_accurate_c : 2039.5 ( 1.00x)
    yuv2yuv1_0_512_accurate_neon : 385.5 ( 5.29x)
    yuv2yuv1_0_512_approximate_c : 2110.5 ( 1.00x)
    yuv2yuv1_0_512_approximate_neon : 385.5 ( 5.47x)
    yuv2yuv1_3_512_accurate_c : 2061.2 ( 1.00x)
    yuv2yuv1_3_512_accurate_neon : 381.2 ( 5.41x)
    yuv2yuv1_3_512_approximate_c : 2099.2 ( 1.00x)
    yuv2yuv1_3_512_approximate_neon : 381.2 ( 5.51x)
    yuv2yuv1_8_512_accurate_c : 2054.2 ( 1.00x)
    yuv2yuv1_8_512_accurate_neon : 385.5 ( 5.33x)
    yuv2yuv1_8_512_approximate_c : 2112.2 ( 1.00x)
    yuv2yuv1_8_512_approximate_neon : 385.5 ( 5.48x)
    yuv2yuv1_11_512_accurate_c : 2036.0 ( 1.00x)
    yuv2yuv1_11_512_accurate_neon : 381.2 ( 5.34x)
    yuv2yuv1_11_512_approximate_c : 2115.0 ( 1.00x)
    yuv2yuv1_11_512_approximate_neon : 381.2 ( 5.55x)
    yuv2yuv1_16_512_accurate_c : 2066.5 ( 1.00x)
    yuv2yuv1_16_512_accurate_neon : 385.5 ( 5.36x)
    yuv2yuv1_16_512_approximate_c : 2100.8 ( 1.00x)
    yuv2yuv1_16_512_approximate_neon : 385.5 ( 5.45x)
    yuv2yuv1_19_512_accurate_c : 2059.8 ( 1.00x)
    yuv2yuv1_19_512_accurate_neon : 381.2 ( 5.40x)
    yuv2yuv1_19_512_approximate_c : 2102.8 ( 1.00x)
    yuv2yuv1_19_512_approximate_neon : 381.2 ( 5.52x)

    After :
    yuv2yuv1_0_512_accurate_c : 2206.0 ( 1.00x)
    yuv2yuv1_0_512_accurate_neon : 139.2 (15.84x)
    yuv2yuv1_0_512_approximate_c : 2050.0 ( 1.00x)
    yuv2yuv1_0_512_approximate_neon : 139.2 (14.72x)
    yuv2yuv1_3_512_accurate_c : 2205.2 ( 1.00x)
    yuv2yuv1_3_512_accurate_neon : 138.0 (15.98x)
    yuv2yuv1_3_512_approximate_c : 2052.5 ( 1.00x)
    yuv2yuv1_3_512_approximate_neon : 138.0 (14.87x)
    yuv2yuv1_8_512_accurate_c : 2171.0 ( 1.00x)
    yuv2yuv1_8_512_accurate_neon : 139.2 (15.59x)
    yuv2yuv1_8_512_approximate_c : 2064.2 ( 1.00x)
    yuv2yuv1_8_512_approximate_neon : 139.2 (14.82x)
    yuv2yuv1_11_512_accurate_c : 2164.8 ( 1.00x)
    yuv2yuv1_11_512_accurate_neon : 138.0 (15.69x)
    yuv2yuv1_11_512_approximate_c : 2048.8 ( 1.00x)
    yuv2yuv1_11_512_approximate_neon : 138.0 (14.85x)
    yuv2yuv1_16_512_accurate_c : 2154.5 ( 1.00x)
    yuv2yuv1_16_512_accurate_neon : 139.2 (15.47x)
    yuv2yuv1_16_512_approximate_c : 2047.2 ( 1.00x)
    yuv2yuv1_16_512_approximate_neon : 139.2 (14.70x)
    yuv2yuv1_19_512_accurate_c : 2144.5 ( 1.00x)
    yuv2yuv1_19_512_accurate_neon : 138.0 (15.54x)
    yuv2yuv1_19_512_approximate_c : 2046.0 ( 1.00x)
    yuv2yuv1_19_512_approximate_neon : 138.0 (14.83x)

    A72 before :
    yuv2yuv1_0_512_accurate_c : 3779.8 ( 1.00x)
    yuv2yuv1_0_512_accurate_neon : 527.8 ( 7.16x)
    yuv2yuv1_0_512_approximate_c : 4128.2 ( 1.00x)
    yuv2yuv1_0_512_approximate_neon : 528.2 ( 7.81x)
    yuv2yuv1_3_512_accurate_c : 3836.2 ( 1.00x)
    yuv2yuv1_3_512_accurate_neon : 527.0 ( 7.28x)
    yuv2yuv1_3_512_approximate_c : 3991.0 ( 1.00x)
    yuv2yuv1_3_512_approximate_neon : 526.8 ( 7.58x)
    yuv2yuv1_8_512_accurate_c : 3732.8 ( 1.00x)
    yuv2yuv1_8_512_accurate_neon : 525.5 ( 7.10x)
    yuv2yuv1_8_512_approximate_c : 4060.0 ( 1.00x)
    yuv2yuv1_8_512_approximate_neon : 527.0 ( 7.70x)
    yuv2yuv1_11_512_accurate_c : 3836.2 ( 1.00x)
    yuv2yuv1_11_512_accurate_neon : 530.0 ( 7.24x)
    yuv2yuv1_11_512_approximate_c : 4014.0 ( 1.00x)
    yuv2yuv1_11_512_approximate_neon : 530.0 ( 7.57x)
    yuv2yuv1_16_512_accurate_c : 3726.2 ( 1.00x)
    yuv2yuv1_16_512_accurate_neon : 525.5 ( 7.09x)
    yuv2yuv1_16_512_approximate_c : 4114.2 ( 1.00x)
    yuv2yuv1_16_512_approximate_neon : 526.2 ( 7.82x)
    yuv2yuv1_19_512_accurate_c : 3812.2 ( 1.00x)
    yuv2yuv1_19_512_accurate_neon : 530.0 ( 7.19x)
    yuv2yuv1_19_512_approximate_c : 4012.2 ( 1.00x)
    yuv2yuv1_19_512_approximate_neon : 530.0 ( 7.57x)

    After :
    yuv2yuv1_0_512_accurate_c : 3716.8 ( 1.00x)
    yuv2yuv1_0_512_accurate_neon : 215.1 (17.28x)
    yuv2yuv1_0_512_approximate_c : 3877.8 ( 1.00x)
    yuv2yuv1_0_512_approximate_neon : 222.8 (17.40x)
    yuv2yuv1_3_512_accurate_c : 3717.1 ( 1.00x)
    yuv2yuv1_3_512_accurate_neon : 217.8 (17.06x)
    yuv2yuv1_3_512_approximate_c : 3801.6 ( 1.00x)
    yuv2yuv1_3_512_approximate_neon : 220.3 (17.25x)
    yuv2yuv1_8_512_accurate_c : 3716.6 ( 1.00x)
    yuv2yuv1_8_512_accurate_neon : 213.8 (17.38x)
    yuv2yuv1_8_512_approximate_c : 3831.8 ( 1.00x)
    yuv2yuv1_8_512_approximate_neon : 218.1 (17.57x)
    yuv2yuv1_11_512_accurate_c : 3717.1 ( 1.00x)
    yuv2yuv1_11_512_accurate_neon : 219.1 (16.97x)
    yuv2yuv1_11_512_approximate_c : 3801.6 ( 1.00x)
    yuv2yuv1_11_512_approximate_neon : 216.1 (17.59x)
    yuv2yuv1_16_512_accurate_c : 3716.6 ( 1.00x)
    yuv2yuv1_16_512_accurate_neon : 213.6 (17.40x)
    yuv2yuv1_16_512_approximate_c : 3831.6 ( 1.00x)
    yuv2yuv1_16_512_approximate_neon : 215.1 (17.82x)
    yuv2yuv1_19_512_accurate_c : 3717.1 ( 1.00x)
    yuv2yuv1_19_512_accurate_neon : 223.8 (16.61x)
    yuv2yuv1_19_512_approximate_c : 3801.6 ( 1.00x)
    yuv2yuv1_19_512_approximate_neon : 219.1 (17.35x)

    x13s before :
    yuv2yuv1_0_512_accurate_c : 1435.1 ( 1.00x)
    yuv2yuv1_0_512_accurate_neon : 221.1 ( 6.49x)
    yuv2yuv1_0_512_approximate_c : 1405.4 ( 1.00x)
    yuv2yuv1_0_512_approximate_neon : 219.1 ( 6.41x)
    yuv2yuv1_3_512_accurate_c : 1418.6 ( 1.00x)
    yuv2yuv1_3_512_accurate_neon : 215.9 ( 6.57x)
    yuv2yuv1_3_512_approximate_c : 1405.9 ( 1.00x)
    yuv2yuv1_3_512_approximate_neon : 224.1 ( 6.27x)
    yuv2yuv1_8_512_accurate_c : 1433.9 ( 1.00x)
    yuv2yuv1_8_512_accurate_neon : 218.6 ( 6.56x)
    yuv2yuv1_8_512_approximate_c : 1412.9 ( 1.00x)
    yuv2yuv1_8_512_approximate_neon : 218.9 ( 6.46x)
    yuv2yuv1_11_512_accurate_c : 1449.1 ( 1.00x)
    yuv2yuv1_11_512_accurate_neon : 217.6 ( 6.66x)
    yuv2yuv1_11_512_approximate_c : 1410.9 ( 1.00x)
    yuv2yuv1_11_512_approximate_neon : 221.1 ( 6.38x)
    yuv2yuv1_16_512_accurate_c : 1402.1 ( 1.00x)
    yuv2yuv1_16_512_accurate_neon : 214.6 ( 6.53x)
    yuv2yuv1_16_512_approximate_c : 1422.4 ( 1.00x)
    yuv2yuv1_16_512_approximate_neon : 222.9 ( 6.38x)
    yuv2yuv1_19_512_accurate_c : 1421.6 ( 1.00x)
    yuv2yuv1_19_512_accurate_neon : 217.4 ( 6.54x)
    yuv2yuv1_19_512_approximate_c : 1421.6 ( 1.00x)
    yuv2yuv1_19_512_approximate_neon : 221.4 ( 6.42x)

    After :
    yuv2yuv1_0_512_accurate_c : 1413.6 ( 1.00x)
    yuv2yuv1_0_512_accurate_neon : 80.6 (17.53x)
    yuv2yuv1_0_512_approximate_c : 1455.6 ( 1.00x)
    yuv2yuv1_0_512_approximate_neon : 80.6 (18.05x)
    yuv2yuv1_3_512_accurate_c : 1429.1 ( 1.00x)
    yuv2yuv1_3_512_accurate_neon : 77.4 (18.47x)
    yuv2yuv1_3_512_approximate_c : 1462.6 ( 1.00x)
    yuv2yuv1_3_512_approximate_neon : 80.6 (18.14x)
    yuv2yuv1_8_512_accurate_c : 1425.4 ( 1.00x)
    yuv2yuv1_8_512_accurate_neon : 77.9 (18.30x)
    yuv2yuv1_8_512_approximate_c : 1436.6 ( 1.00x)
    yuv2yuv1_8_512_approximate_neon : 80.9 (17.76x)
    yuv2yuv1_11_512_accurate_c : 1429.4 ( 1.00x)
    yuv2yuv1_11_512_accurate_neon : 76.1 (18.78x)
    yuv2yuv1_11_512_approximate_c : 1447.1 ( 1.00x)
    yuv2yuv1_11_512_approximate_neon : 78.4 (18.46x)
    yuv2yuv1_16_512_accurate_c : 1439.9 ( 1.00x)
    yuv2yuv1_16_512_accurate_neon : 77.6 (18.55x)
    yuv2yuv1_16_512_approximate_c : 1422.1 ( 1.00x)
    yuv2yuv1_16_512_approximate_neon : 78.1 (18.20x)
    yuv2yuv1_19_512_accurate_c : 1447.1 ( 1.00x)
    yuv2yuv1_19_512_accurate_neon : 78.1 (18.52x)
    yuv2yuv1_19_512_approximate_c : 1474.4 ( 1.00x)
    yuv2yuv1_19_512_approximate_neon : 78.1 (18.87x)

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libswscale/aarch64/output.S
  • FFmpeg/FFplay directshow and blackmagic

    21 janvier 2016, par max246

    I got a BlackMagic intensity pro 4k capturing card, which is working fine with the express tool, I can see the live feed and record, but after I tried different stuff from what I found online to make ffplay/ffmpeg working, I ended up to have just a black screen.

    I have checked if all the versions of my ffmpeg files were eanable-decklinnk, I have compiled the latest one with the latest version of the api, but still I get a black screen instead of the actually feed.

    ffmpeg -list_devices true -f dshow -i dummy
    ffmpeg version N-77245-g7209c94 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 5.2.0 (Rev4, Built by MSYS2 project)
     configuration:  --enable-avisynth --enable-libbluray --enable-libcaca --enable -libass --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
    --enable-libschroedinger --enable-libsoxr --enable-libtwolame --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libopus --enable-libtesseract --
    enable-libdcadec --enable-libbs2b --enable-libmfx --enable-libfreetype --enable-fontconfig --enable-libfribidi --enable-opengl --enable-libvpx --enable-libkvaza
    ar --enable-libwebp --enable-decklink --enable-libgme --disable-w32threads --enable-opencl --enable-libzimg --enable-openssl --disable-debug
     libavutil      55. 10.100 / 55. 10.100
     libavcodec     57. 17.100 / 57. 17.100
     libavformat    57. 20.100 / 57. 20.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6. 21.100 /  6. 21.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
    [dshow @ 0000000ba36b6480] DirectShow video devices (some may be both video and audio devices)
    [dshow @ 0000000ba36b6480]  "Blackmagic WDM Capture"
    [dshow @ 0000000ba36b6480]     Alternative name "@device_pnp_\\?\decklink#avstream#5&amp;2550cef9&amp;0&amp;0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\decklinkcapture1"
    [dshow @ 0000000ba36b6480]  "Decklink Video Capture"
    [dshow @ 0000000ba36b6480]     Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\{44A8B5C7-13B6-4211-BD40-35B629D9E6DF}"
    [dshow @ 0000000ba36b6480] DirectShow audio devices
    [dshow @ 0000000ba36b6480]  "Wej?øcie liniowe (Blackmagic Audio)"
    [dshow @ 0000000ba36b6480]     Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{977E2DB6-B17C-4343-9018-652924C20A8C}"
    [dshow @ 0000000ba36b6480]  "Decklink Audio Capture"
    [dshow @ 0000000ba36b6480]     Alternative name "@device_sw_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\{AAA22F7E-5AA0-49D9-8C8D-B52B1AA92EB7}"
    dummy: Immediate exit requested

    The result above tells me that ffmpeg can see the card and I am able to open a communication, I have checked one post where it says you need to specific which input type is showing, otherwise it will never work, and I did that, but still no luck.

    By running the command line above, I can only see a black screen but not actually errors.

    I am running Windows 8.1 64bit.

    ffplay  -pixel_format uyvy422 -framerate 25 -f dshow -i video="Decklink Video Capture"  -format x264
    ffplay version N-77245-g7209c94 Copyright (c) 2003-2015 the FFmpeg developers
     built with gcc 5.2.0 (Rev4, Built by MSYS2 project)
     configuration:  --enable-avisynth --enable-libbluray --enable-libcaca --enable-libass --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
    --enable-libschroedinger --enable-libsoxr --enable-libtwolame --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libopus --enable-libtesseract --
    enable-libdcadec --enable-libbs2b --enable-libmfx --enable-libfreetype --enable-fontconfig --enable-libfribidi --enable-opengl --enable-libvpx --enable-libkvaza
    ar --enable-libwebp --enable-decklink --enable-libgme --disable-w32threads --enable-opencl --enable-libzimg --enable-openssl --disable-debug
     libavutil      55. 10.100 / 55. 10.100
     libavcodec     57. 17.100 / 57. 17.100
     libavformat    57. 20.100 / 57. 20.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6. 21.100 /  6. 21.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.101 /  2.  0.101
    Input #0, dshow, from 'video=Decklink Video Capture':    0B f=0/0
     Duration: N/A, start: 0.138773, bitrate: N/A
       Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576, 25 tbr,
    10000k tbn, 25 tbc
      1.51 M-V: -0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0