Recherche avancée

Médias (1)

Mot : - Tags -/illustrator

Autres articles (101)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (10918)

  • ffmpeg command for merge is not working in php [closed]

    25 juillet 2020, par Nirav Trivedi

    There was a problem !

    


    command : ffmpeg -i uploads/155799695.wav -i uploads/155799695.webm -map 0:0 -map 1:0 uploads/155799695-merged.webm 2>&1

    


    output :

    


    -i uploads/199606400.wav -i uploads/199606400.webm -map 0:0 -map 1:0 uploads/199606400-merged.webm\nArray
(
[0] => ffmpeg version 2.6.8 Copyright (c) 2000-2016 the FFmpeg developers
[1] => built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-16)
[2] => configuration : —prefix=/usr —bindir=/usr/bin —datadir=/usr/share/ffmpeg —incdir=/usr/include/ffmpeg —libdir=/usr/lib64 —mandir=/usr/share/man —arch=x86_64 —optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector —param=ssp-buffer-size=4 -m64 -mtune=generic' —enable-bzlib —disable-crystalhd —enable-gnutls —enable-ladspa —enable-libass —enable-libdc1394 —enable-libfaac —enable-nonfree —disable-indev=jack —enable-libfreetype —enable-libgsm —enable-libmp3lame —enable-openal —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libschroedinger —enable-libsoxr —enable-libspeex —enable-libtheora —enable-libvorbis —enable-libv4l2 —enable-libx264 —enable-libx265 —enable-libxvid —enable-x11grab —enable-avfilter —enable-avresample —enable-postproc —enable-pthreads —disable-static —enable-shared —enable-gpl —disable-debug —disable-stripping —shlibdir=/usr/lib64 —enable-runtime-cpudetect
[3] => libavutil 54. 20.100 / 54. 20.100
[4] => libavcodec 56. 26.100 / 56. 26.100
[5] => libavformat 56. 25.101 / 56. 25.101
[6] => libavdevice 56. 4.100 / 56. 4.100
[7] => libavfilter 5. 11.102 / 5. 11.102
[8] => libavresample 2. 1. 0 / 2. 1. 0
[9] => libswscale 3. 1.101 / 3. 1.101
[10] => libswresample 1. 1.100 / 1. 1.100
[11] => libpostproc 53. 3.100 / 53. 3.100
[12] => Guessed Channel Layout for Input Stream #0.0 : stereo
[13] => Input #0, wav, from 'uploads/199606400.wav' :
[14] => Duration : 00:00:09.01, bitrate : 1411 kb/s
[15] => Stream #0:0 : Audio : pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels, s16, 1411 kb/s
[16] => Input #1, matroska,webm, from 'uploads/199606400.webm' :
[17] => Metadata :
[18] => encoder : Chrome
[19] => Duration : N/A, start : 0.000000, bitrate : N/A
[20] => Stream #1:0(eng) : Video : vp8, yuv420p, 640x480, SAR 1:1 DAR 4:3, 12.58 tbr, 1k tbn, 1k tbc (default)
[21] => Metadata :
[22] => alpha_mode : 1
[23] => Output #0, webm, to 'uploads/199606400-merged.webm' :
[24] => Stream #0:0 : Audio : vorbis, 0 channels, 128 kb/s
[25] => Metadata :
[26] => encoder : Lavc56.26.100 libvorbis
[27] => Stream #0:1(eng) : Video : vp8, none, q=2-31, 128 kb/s (default)
[28] => Metadata :
[29] => alpha_mode : 1
[30] => Stream mapping :
[31] => Stream #0:0 -> #0:0 (pcm_s16le (native) -> vorbis (libvorbis))
[32] => Stream #1:0 -> #0:1 (vp8 (native) -> ? (?))
[33] => Encoder (codec vp8) not found for output stream #0:1
)

    


  • How to improve the output video quality with ffmpeg and h264_videotoolbox flag ?

    13 avril 2023, par Anthony Kong

    Currently I am using this command to convert

    


    ffmpeg -i <srcfile> -vcodec libx264 -profile:v main -level 3.1 -preset slower -crf 18 -x264-params ref=4 -acodec copy -movflags &#x2B;faststart <outfile>&#xA;</outfile></srcfile>

    &#xA;

    to convert some dashcam footage for viewing on an iOS device.

    &#xA;

    The above command took about 30 min to complete on a 2017 Macbookpro with 16G of RAM.

    &#xA;

    I want to speed it. One thing I tried is to harness the GPU in the computer. Therefore I added the flag -c:v h264_videotoolbox

    &#xA;

    It sped up by a lot. I can complete the conversion in 1 min.

    &#xA;

    However, when I inspected the output, the GPU version suffers from banding and blurry.

    &#xA;

    Here is a screenshot. CPU version on the left and GPU version on the right.

    &#xA;

    enter image description here

    &#xA;

    To highlight the difference, here are the parts of the videos

    &#xA;

      &#xA;
    1. Trees in reflections
    2. &#xA;

    &#xA;

    enter image description here

    &#xA;

      &#xA;
    1. corrugated iron sheet wall
    2. &#xA;

    &#xA;

    enter image description here

    &#xA;

    Is there any switch that I can manipulate to make the GPU version clearer ?

    &#xA;

  • Compiling c++ program for ffmpeg, error give undefined reference to [duplicate]

    6 août 2020, par leonardltk1

    I have a code read_mp3.cpp, which uses ffmpeg to decode an mp3 file into an array.

    &#xA;

    Code for read_mp3.cpp is as follows :

    &#xA;

        #include &#xA;    #include &#xA;&#xA;    // I use extern "C" as recommended here: https://blog.csdn.net/qq_18144521/article/details/79608355&#xA;    extern "C"&#xA;    {&#xA;    #include <libavutil></libavutil>opt.h>&#xA;    #include <libavcodec></libavcodec>avcodec.h>&#xA;    #include <libavformat></libavformat>avformat.h>&#xA;    #include <libswresample></libswresample>swresample.h>&#xA;    }&#xA;    using namespace std;&#xA;&#xA;&#xA;    int decode_audio_file(const char* path, const int sample_rate, double** data, int* size) {&#xA;        // initialize all muxers, demuxers and protocols for libavformat&#xA;        // (does nothing if called twice during the course of one program execution)&#xA;        av_register_all();&#xA;&#xA;        /*&#xA;        Code for the rest of this function is found here :&#xA;        https://rodic.fr/blog/libavcodec-tutorial-decode-audio-file/&#xA;        */&#xA;&#xA;        return 0;&#xA;    }&#xA;&#xA;    int main (int argc, char ** argv) {&#xA;        // decode data&#xA;        int sample_rate = 44100;&#xA;        double* data;&#xA;        int size;&#xA;        if (decode_audio_file(argv[1], sample_rate, &amp;data, &amp;size) != 0) {&#xA;            return -1;&#xA;        }&#xA;&#xA;        /*&#xA;        Do something with data ...&#xA;        */&#xA;&#xA;        return 0;&#xA;    }&#xA;

    &#xA;

    I tried different ways to compilations, but to no avail :

    &#xA;

        g&#x2B;&#x2B; -o ./read_mp3.out -Ofast -Wall -Wextra \&#xA;      -lavformat-ffmpeg -lavdevice-ffmpeg -lavcodec-ffmpeg -lavutil -lswresample \&#xA;    -std=c&#x2B;&#x2B;11 "./read_mp3.cpp"&#xA;    &#xA;    g&#x2B;&#x2B; -o ./read_mp3.out -Ofast -Wall -Wextra \&#xA;      -lavformat -lavdevice -lavcodec -lavutil -lswresample \&#xA;    -std=c&#x2B;&#x2B;11 "./read_mp3.cpp"&#xA;    &#xA;    g&#x2B;&#x2B; -o ./read_mp3.out -Ofast -Wall -Wextra \&#xA;      -lavformat  -lavdevice -lavcodec  -lavutil -pthread  -ldl -lswscale -lbz2  -lz -lm \&#xA;    -std=c&#x2B;&#x2B;11 "./read_mp3.cpp"&#xA;

    &#xA;

    but i get the following error :

    &#xA;

        /tmp/ccnZzoIh.o: In function `decode_audio_file(char const*, int, double**, int*)&#x27;:&#xA;    read_mp3.cpp:(.text&#x2B;0x2781): undefined reference to `av_register_all&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2786): undefined reference to `avformat_alloc_context&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x279c): undefined reference to `avformat_open_input&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x27b7): undefined reference to `avformat_find_stream_info&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x284b): undefined reference to `avcodec_find_decoder&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2858): undefined reference to `avcodec_open2&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2865): undefined reference to `swr_alloc&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2880): undefined reference to `av_opt_set_int&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2896): undefined reference to `av_opt_set_int&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x28ae): undefined reference to `av_opt_set_int&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x28c4): undefined reference to `av_opt_set_int&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x28dc): undefined reference to `av_opt_set_int&#x27;&#xA;    &#xA;    /tmp/ccnZzoIh.o:read_mp3.cpp:(.text&#x2B;0x28f0): more undefined references to `av_opt_set_int&#x27; follow&#xA;    /tmp/ccnZzoIh.o: In function `decode_audio_file(char const*, int, double**, int*)&#x27;:&#xA;    read_mp3.cpp:(.text&#x2B;0x2907): undefined reference to `av_opt_set_sample_fmt&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x291d): undefined reference to `av_opt_set_sample_fmt&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2927): undefined reference to `swr_init&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2931): undefined reference to `swr_is_initialized&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2943): undefined reference to `av_init_packet&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2948): undefined reference to `av_frame_alloc&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x297b): undefined reference to `av_read_frame&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x299a): undefined reference to `avcodec_decode_audio4&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x29cc): undefined reference to `av_samples_alloc&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x29e6): undefined reference to `swr_convert&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2a36): undefined reference to `av_frame_free&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2a40): undefined reference to `swr_free&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2a48): undefined reference to `avcodec_close&#x27;&#xA;    read_mp3.cpp:(.text&#x2B;0x2a52): undefined reference to `avformat_free_context&#x27;&#xA;&#xA;    collect2: error: ld returned 1 exit status&#xA;

    &#xA;