Recherche avancée

Médias (2)

Mot : - Tags -/doc2img

Autres articles (54)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (4804)

  • How to reduce time while writing to output stream

    9 février 2021, par Summit

    I am streaming the render ouput of a opengl application using mpegts.The issue that i am facing is that the time taken to encode the frame is quite long.

    


    The application renders at 60 fps with frame size of 1920 X 1080 , the frame data of the application is pushed to a std::queue.

    


    This is the process for ffmpeg.

    


    I  initialize the stream like this.&#xA;&#xA;   streamerUpd.InitUPD("udp://127.0.0.1:1234", 1920, 1080, rings_);&#xA;&#xA;int StreamUPD::InitUPD(const char* url, int width, int height, std::shared_ptr<ringbuffer2> rings)&#xA;{&#xA;&#xA;    rings_ = rings;&#xA;    width_ = width;&#xA;    height_ = height;&#xA;    filename = url;&#xA;    int ret;&#xA;    av_dict_set(&amp;opt, "pkt_size", "1316", 0);&#xA;    &#xA;        &#xA;    avformat_alloc_output_context2(&amp;oc, nullptr, "mpegts", filename);&#xA;    if (!oc) {&#xA;        return 1;&#xA;    }&#xA;&#xA;    fmt = oc->oformat;&#xA;    /* Add the audio and video streams using the default format codecs&#xA;     * and initialize the codecs. */&#xA;    if (fmt->video_codec != AV_CODEC_ID_NONE) {&#xA;        add_stream(&amp;video_st, oc, &amp;video_codec, fmt->video_codec);&#xA;        have_video = 1;&#xA;        encode_video = 1;&#xA;    }&#xA;&#xA;    /* Write the stream header, if any. */&#xA;    ret = avformat_write_header(oc, &amp;opt);&#xA;    if (ret &lt; 0) {&#xA;        fprintf(stderr, "Error occurred when opening output file: %s\n",&#xA;            av_err2str(ret));&#xA;        return 1;&#xA;    }&#xA;    thr = std::thread(&amp;StreamUPD::output_result, this);&#xA;    return 0;&#xA;}&#xA;</ringbuffer2>

    &#xA;

    ////////////////////////////////////////////////////////////////////////////////////////

    &#xA;

    // Add the output stream

    &#xA;

    void StreamUPD::add_stream(OutputStream* ost, AVFormatContext* oc, AVCodec** codec, enum AVCodecID codec_id)&#xA;{&#xA;    AVCodecContext* c;&#xA;    int i;&#xA;    /* find the encoder */&#xA;    *codec = avcodec_find_encoder(codec_id);&#xA;    if (!(*codec)) {&#xA;        fprintf(stderr, "Could not find encoder for &#x27;%s&#x27;\n",&#xA;            avcodec_get_name(codec_id));&#xA;        exit(1);&#xA;    }&#xA;    ost->st = avformat_new_stream(oc, NULL);&#xA;    if (!ost->st) {&#xA;        fprintf(stderr, "Could not allocate stream\n");&#xA;        exit(1);&#xA;    }&#xA;    ost->st->id = oc->nb_streams - 1;&#xA;    c = avcodec_alloc_context3(*codec);&#xA;    if (!c) {&#xA;        fprintf(stderr, "Could not alloc an encoding context\n");&#xA;        exit(1);&#xA;    }&#xA;    ost->enc = c;&#xA;    switch ((*codec)->type) {&#xA;    case AVMEDIA_TYPE_VIDEO:&#xA;        c->codec_id = codec_id;&#xA;        c->bit_rate = 400000;&#xA;&#xA;        /* Resolution must be a multiple of two. */&#xA;        c->width = width_;&#xA;        c->height = height_;&#xA;        /* timebase: This is the fundamental unit of time (in seconds) in terms&#xA;         * of which frame timestamps are represented. For fixed-fps content,&#xA;         * timebase should be 1/framerate and timestamp increments should be&#xA;         * identical to 1. */&#xA;        ost->st->time_base = { 1, STREAM_FRAME_RATE };&#xA;        c->time_base = ost->st->time_base;&#xA;        c->gop_size = 12; /* emit one intra frame every twelve frames at most */&#xA;        c->pix_fmt = STREAM_PIX_FMT;&#xA;        &#xA;        if (c->codec_id == AV_CODEC_ID_MPEG2VIDEO) {&#xA;            /* just for testing, we also add B-frames */&#xA;            qDebug() &lt;&lt; "This is MPEG2VIDEO Frame";&#xA;            c->max_b_frames = 2;&#xA;            &#xA;        }&#xA;        if (c->codec_id == AV_CODEC_ID_MPEG1VIDEO) {&#xA;            /* Needed to avoid using macroblocks in which some coeffs overflow.&#xA;             * This does not happen with normal video, it just happens here as&#xA;             * the motion of the chroma plane does not match the luma plane. */&#xA;            c->mb_decision = 2;&#xA;        }&#xA;        break;&#xA;    default:&#xA;        break;&#xA;    }&#xA;    /* Some formats want stream headers to be separate. */&#xA;    if (oc->oformat->flags &amp; AVFMT_GLOBALHEADER)&#xA;        c->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;&#xA;}&#xA;

    &#xA;

    //////////////////////////////////////////////////////////////////////////////////

    &#xA;

    // Open the video

    &#xA;

    void StreamUPD::open_video(AVFormatContext* oc, AVCodec* codec, OutputStream* ost, AVDictionary* opt_arg)&#xA;    {&#xA;        int ret;&#xA;        AVCodecContext* c = ost->enc;&#xA;        AVDictionary* opt = NULL;&#xA;        av_dict_copy(&amp;opt, opt_arg, 0);&#xA;        /* open the codec */&#xA;        ret = avcodec_open2(c, codec, &amp;opt);&#xA;        av_dict_free(&amp;opt);&#xA;        if (ret &lt; 0) {&#xA;            fprintf(stderr, "Could not open video codec: %s\n", av_err2str(ret));&#xA;            exit(1);&#xA;        }&#xA;        /* allocate and init a re-usable frame */&#xA;        ost->frame = alloc_picture(c->pix_fmt, c->width, c->height);&#xA;        if (!ost->frame) {&#xA;            fprintf(stderr, "Could not allocate video frame\n");&#xA;            exit(1);&#xA;        }&#xA;        /* If the output format is not YUV420P, then a temporary YUV420P&#xA;         * picture is needed too. It is then converted to the required&#xA;         * output format. */&#xA;        ost->tmp_frame = NULL;&#xA;        if (c->pix_fmt != AV_PIX_FMT_YUV420P) {&#xA;            ost->tmp_frame = alloc_picture(AV_PIX_FMT_YUV420P, c->width, c->height);&#xA;            if (!ost->tmp_frame) {&#xA;                fprintf(stderr, "Could not allocate temporary picture\n");&#xA;                exit(1);&#xA;            }&#xA;        }&#xA;        /* copy the stream parameters to the muxer */&#xA;        ret = avcodec_parameters_from_context(ost->st->codecpar, c);&#xA;        if (ret &lt; 0) {&#xA;            fprintf(stderr, "Could not copy the stream parameters\n");&#xA;            exit(1);&#xA;        }&#xA;    }&#xA;

    &#xA;

    Once i have setup the ffmpeg output stream this is how i am streaming the data.

    &#xA;

    This function gets the frame data from the std::queue(pixelsQueue) and sends it for encoding.

    &#xA;

    int StreamUPD::stream_video_frame()&#xA;{   &#xA;    ost = &amp;video_st;&#xA;    c = ost->enc;   &#xA;&#xA;    /* when we pass a frame to the encoder, it may keep a reference to it&#xA;     * internally; make sure we do not overwrite it here */&#xA;    if (av_frame_make_writable(ost->frame) &lt; 0)&#xA;        exit(1);&#xA;    if (!ost->sws_ctx) {&#xA;        ost->sws_ctx = sws_getContext(c->width, c->height,&#xA;            AV_PIX_FMT_RGB24,&#xA;            c->width, c->height,&#xA;            c->pix_fmt,&#xA;            SWS_FAST_BILINEAR, NULL, NULL, NULL);&#xA;        if (!ost->sws_ctx) {&#xA;            fprintf(stderr,&#xA;                "Could not initialize the conversion context\n");&#xA;            exit(1);&#xA;        }&#xA;    }&#xA;    finished_ = true;&#xA;&#xA;    if (pixelsQueue.size() > 0) {       &#xA;        if (pixelsQueue.pop(pixels)) {&#xA;            fill_yuv_image(ost->sws_ctx, frame_data->pixels_.get(), ost->frame, c->width, c->height);&#xA;            ost->frame->pts = ost->next_pts&#x2B;&#x2B;;&#xA;            return write_frame(oc, ost->enc, ost->st, ost->frame);&#xA;        }&#xA;    }&#xA;    return 1;&#xA;}&#xA;

    &#xA;

    Writing the data to the output stream.

    &#xA;

    The function avcodec_receive_packet is the one that takes lot of time.

    &#xA;

    int StreamUPD::write_frame(AVFormatContext* fmt_ctx, AVCodecContext* c,&#xA;    AVStream* st, AVFrame* frame)&#xA;{&#xA;    int ret;&#xA;    // send the frame to the encoder&#xA;    AVPacket pkt = { 0 };&#xA;    ret = avcodec_send_frame(c, frame);&#xA;    ret = avcodec_receive_packet(c, &amp;pkt);&#xA;    if (ret &lt; 0) {&#xA;        fprintf(stderr, "Error sending a frame to the encoder: %s\n",&#xA;            av_err2str(ret));&#xA;        exit(1);&#xA;    }&#xA;    &#xA;    while (ret >= 0) {&#xA;        AVPacket pkt = { 0 };&#xA;        ret = avcodec_receive_packet(c, &amp;pkt);  // This is the function that takes lot of time&#xA;        if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF)&#xA;            break;&#xA;        else if (ret &lt; 0) {&#xA;            fprintf(stderr, "Error encoding a frame: %s\n", av_err2str(ret));&#xA;            exit(1);&#xA;        }&#xA;        // rescale output packet timestamp values from codec to stream timebase &#xA;        av_packet_rescale_ts(&amp;pkt, c->time_base, st->time_base);&#xA;        pkt.stream_index = st->index;&#xA;        // Write the compressed frame to the media file. &#xA;        ret = av_interleaved_write_frame(fmt_ctx, &amp;pkt);&#xA;        av_packet_unref(&amp;pkt);&#xA;        if (ret &lt; 0) {&#xA;            fprintf(stderr, "Error while writing output packet: %s\n", av_err2str(ret));&#xA;            exit(1);&#xA;        }&#xA;    }&#xA;    return ret == AVERROR_EOF ? 1 : 0;&#xA;}&#xA;

    &#xA;

    How can i reduce the outputting time while writing the frames to the stream ?

    &#xA;

    Currently i push more frames in the buffer and the outputting speed is less so the buffer starts to run out of memory in some time.

    &#xA;

  • Why X.Org's X Server has stopped working on Google Colab ?

    20 février 2021, par Rahul

    I am Using X server for the virtual screen on Google Colab and capturing that screen with ffmpeg to record it and live stream it to twitch. (for the reinforcement learning project)

    &#xA;

    &#xA;

    The above process was completely working till my last use of my Colab notebook (on mid-January 2021), but now (on 19th February 2021) I am using the same notebook and the streaming code has stopped working.

    &#xA;

    &#xA;

    I am adding config and log file data below. (I have never seen these files before because it was working, now it's not so I don't have any idea what wrong)

    &#xA;

    The config file stored at /etc/X11/xorg.conf have the following data :

    &#xA;

    # nvidia-xconfig: X configuration file generated by nvidia-xconfig&#xA;# nvidia-xconfig:  version 418.67&#xA;&#xA;Section "ServerLayout"&#xA;    Identifier     "Layout0"&#xA;    Screen      0  "Screen0"&#xA;    InputDevice    "Keyboard0" "CoreKeyboard"&#xA;    InputDevice    "Mouse0" "CorePointer"&#xA;EndSection&#xA;&#xA;Section "Files"&#xA;EndSection&#xA;&#xA;Section "InputDevice"&#xA;    # generated from default&#xA;    Identifier     "Mouse0"&#xA;    Driver         "mouse"&#xA;    Option         "Protocol" "auto"&#xA;    Option         "Device" "/dev/mouse"&#xA;    Option         "Emulate3Buttons" "no"&#xA;    Option         "ZAxisMapping" "4 5"&#xA;EndSection&#xA;&#xA;Section "InputDevice"&#xA;    # generated from default&#xA;    Identifier     "Keyboard0"&#xA;    Driver         "kbd"&#xA;EndSection&#xA;&#xA;Section "Monitor"&#xA;    Identifier     "Monitor0"&#xA;    VendorName     "Unknown"&#xA;    ModelName      "Unknown"&#xA;    HorizSync       28.0 - 33.0&#xA;    VertRefresh     43.0 - 72.0&#xA;    Option         "DPMS"&#xA;EndSection&#xA;&#xA;Section "Device"&#xA;    Identifier     "Device0"&#xA;    Driver         "nvidia"&#xA;    VendorName     "NVIDIA Corporation"&#xA;    BoardName      "Tesla T4"&#xA;    BusID          "PCI:0:4:0"&#xA;    MatchSeat      "seat-1"&#xA;EndSection&#xA;&#xA;Section "Screen"&#xA;    Identifier     "Screen0"&#xA;    Device         "Device0"&#xA;    Monitor        "Monitor0"&#xA;    DefaultDepth    24&#xA;    Option         "AllowEmptyInitialConfiguration" "True"&#xA;    SubSection     "Display"&#xA;        Virtual     1920 1080&#xA;        Depth       24&#xA;    EndSubSection&#xA;EndSection&#xA;

    &#xA;

    The log file stored at /var/log/Xorg.0.log have the following data :

    &#xA;

    [   464.605] &#xA;X.Org X Server 1.19.6&#xA;Release Date: 2017-12-20&#xA;[   464.605] X Protocol Version 11, Revision 0&#xA;[   464.605] Build Operating System: Linux 4.15.0-124-generic x86_64 Ubuntu&#xA;[   464.605] Current Operating System: Linux 9d3fe3949671 4.19.112&#x2B; #1 SMP Thu Jul 23 08:00:38 PDT 2020 x86_64&#xA;[   464.605] Kernel command line: BOOT_IMAGE=/syslinux/vmlinuz.A init=/usr/lib/systemd/systemd boot=local rootwait ro noresume noswap loglevel=7 noinitrd console=ttyS0 security=apparmor virtio_net.napi_tx=1 systemd.unified_cgroup_hierarchy=false systemd.legacy_systemd_cgroup_controller=false csm.disabled=1 dm_verity.error_behavior=3 dm_verity.max_bios=-1 dm_verity.dev_wait=1 i915.modeset=1 cros_efi loadpin.enabled=0 root=/dev/dm-0 "dm=1 vroot none ro 1,0 4077568 verity payload=PARTUUID=555BDB75-CBD7-CD4A-B24E-29B13D7AC0DF hashtree=PARTUUID=555BDB75-CBD7-CD4A-B24E-29B13D7AC0DF hashstart=4077568 alg=sha256 root_hexdigest=42104d547ac104fb7061529e78f53e4f3e8c3d3cbb040dc6e0f84aad68491347 salt=9dc7f3acc4e2ce65be16356e960c2b21b51a917fa31d2e891fd295490c991e41" mitigations=off&#xA;[   464.605] Build Date: 30 November 2020  08:01:56PM&#xA;[   464.605] xorg-server 2:1.19.6-1ubuntu4.8 (For technical support please see http://www.ubuntu.com/support) &#xA;[   464.605] Current version of pixman: 0.34.0&#xA;[   464.605]    Before reporting problems, check http://wiki.x.org&#xA;    to make sure that you have the latest version.&#xA;[   464.605] Markers: (--) probed, (**) from config file, (==) default setting,&#xA;    (&#x2B;&#x2B;) from command line, (!!) notice, (II) informational,&#xA;    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.&#xA;[   464.605] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Feb 20 03:10:44 2021&#xA;[   464.606] (==) Using config file: "/etc/X11/xorg.conf"&#xA;[   464.606] (==) Using system config directory "/usr/share/X11/xorg.conf.d"&#xA;[   464.607] (==) ServerLayout "Layout0"&#xA;[   464.607] (**) |-->Screen "Screen0" (0)&#xA;[   464.607] (**) |   |-->Monitor "Monitor0"&#xA;[   464.607] (**) |   |-->Device "Device0"&#xA;[   464.607] (**) |-->Input Device "Keyboard0"&#xA;[   464.607] (**) |-->Input Device "Mouse0"&#xA;[   464.607] (==) Automatically adding devices&#xA;[   464.607] (==) Automatically enabling devices&#xA;[   464.607] (==) Automatically adding GPU devices&#xA;[   464.607] (==) Automatically binding GPU devices&#xA;[   464.607] (==) Max clients allowed: 256, resource mask: 0x1fffff&#xA;[   464.607] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.&#xA;[   464.607]    Entry deleted from font path.&#xA;[   464.607] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.&#xA;[   464.607]    Entry deleted from font path.&#xA;[   464.607] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.&#xA;[   464.607]    Entry deleted from font path.&#xA;[   464.607] (WW) The directory "/usr/share/fonts/X11/Type1" does not exist.&#xA;[   464.607]    Entry deleted from font path.&#xA;[   464.607] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.&#xA;[   464.607]    Entry deleted from font path.&#xA;[   464.607] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.&#xA;[   464.607]    Entry deleted from font path.&#xA;[   464.607] (==) FontPath set to:&#xA;    /usr/share/fonts/X11/misc,&#xA;    built-ins&#xA;[   464.607] (==) ModulePath set to "/usr/lib/xorg/modules"&#xA;[   464.607] (WW) Hotplugging is on, devices using drivers &#x27;kbd&#x27;, &#x27;mouse&#x27; or &#x27;vmmouse&#x27; will be disabled.&#xA;[   464.607] (WW) Disabling Keyboard0&#xA;[   464.607] (WW) Disabling Mouse0&#xA;[   464.607] (II) Loader magic: 0x556eb77b8020&#xA;[   464.607] (II) Module ABI versions:&#xA;[   464.607]    X.Org ANSI C Emulation: 0.4&#xA;[   464.607]    X.Org Video Driver: 23.0&#xA;[   464.607]    X.Org XInput driver : 24.1&#xA;[   464.607]    X.Org Server Extension : 10.0&#xA;[   464.607] (EE) dbus-core: error connecting to system bus: org.freedesktop.DBus.Error.FileNotFound (Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory)&#xA;[   464.609] (--) PCI: (0:0:4:0) 10de:1eb8:10de:12a2 rev 161, Mem @ 0xc0000000/16777216, 0x380000000/268435456, 0x390000000/33554432&#xA;[   464.609] (II) no primary bus or device found&#xA;[   464.609] (II) LoadModule: "glx"&#xA;[   464.609] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so&#xA;[   464.610] (II) Module glx: vendor="X.Org Foundation"&#xA;[   464.610]    compiled for 1.19.6, module version = 1.0.0&#xA;[   464.610]    ABI class: X.Org Server Extension, version 10.0&#xA;[   464.610] (II) LoadModule: "nvidia"&#xA;[   464.610] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so&#xA;[   464.610] (II) Module nvidia: vendor="NVIDIA Corporation"&#xA;[   464.610]    compiled for 4.0.2, module version = 1.0.0&#xA;[   464.610]    Module class: X.Org Video Driver&#xA;[   464.610] (II) NVIDIA dlloader X Driver  418.67  Sat Apr  6 02:51:17 CDT 2019&#xA;[   464.610] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs&#xA;[   464.610] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)&#xA;[   464.610] (II) Loading sub module "fb"&#xA;[   464.610] (II) LoadModule: "fb"&#xA;[   464.611] (II) Loading /usr/lib/xorg/modules/libfb.so&#xA;[   464.611] (II) Module fb: vendor="X.Org Foundation"&#xA;[   464.611]    compiled for 1.19.6, module version = 1.0.0&#xA;[   464.611]    ABI class: X.Org ANSI C Emulation, version 0.4&#xA;[   464.611] (II) Loading sub module "wfb"&#xA;[   464.611] (II) LoadModule: "wfb"&#xA;[   464.611] (II) Loading /usr/lib/xorg/modules/libwfb.so&#xA;[   464.611] (II) Module wfb: vendor="X.Org Foundation"&#xA;[   464.611]    compiled for 1.19.6, module version = 1.0.0&#xA;[   464.611]    ABI class: X.Org ANSI C Emulation, version 0.4&#xA;[   464.611] (II) Loading sub module "ramdac"&#xA;[   464.611] (II) LoadModule: "ramdac"&#xA;[   464.611] (II) Module "ramdac" already built-in&#xA;[   464.637] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the&#xA;[   464.637] (EE) NVIDIA:     system&#x27;s kernel log for additional error messages and&#xA;[   464.637] (EE) NVIDIA:     consult the NVIDIA README for details.&#xA;[   464.662] (EE) NVIDIA: Failed to initialize the NVIDIA kernel module. Please see the&#xA;[   464.662] (EE) NVIDIA:     system&#x27;s kernel log for additional error messages and&#xA;[   464.662] (EE) NVIDIA:     consult the NVIDIA README for details.&#xA;[   464.662] (EE) No devices detected.&#xA;[   464.662] (==) Matched modesetting as autoconfigured driver 0&#xA;[   464.662] (==) Matched fbdev as autoconfigured driver 1&#xA;[   464.662] (==) Matched vesa as autoconfigured driver 2&#xA;[   464.662] (==) Assigned the driver to the xf86ConfigLayout&#xA;[   464.662] (II) LoadModule: "modesetting"&#xA;[   464.662] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so&#xA;[   464.663] (II) Module modesetting: vendor="X.Org Foundation"&#xA;[   464.663]    compiled for 1.19.6, module version = 1.19.6&#xA;[   464.663]    Module class: X.Org Video Driver&#xA;[   464.663]    ABI class: X.Org Video Driver, version 23.0&#xA;[   464.663] (II) LoadModule: "fbdev"&#xA;[   464.663] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so&#xA;[   464.663] (II) Module fbdev: vendor="X.Org Foundation"&#xA;[   464.663]    compiled for 1.19.3, module version = 0.4.4&#xA;[   464.663]    Module class: X.Org Video Driver&#xA;[   464.663]    ABI class: X.Org Video Driver, version 23.0&#xA;[   464.663] (II) LoadModule: "vesa"&#xA;[   464.663] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so&#xA;[   464.663] (II) Module vesa: vendor="X.Org Foundation"&#xA;[   464.663]    compiled for 1.19.3, module version = 2.3.4&#xA;[   464.663]    Module class: X.Org Video Driver&#xA;[   464.663]    ABI class: X.Org Video Driver, version 23.0&#xA;[   464.663] (II) NVIDIA dlloader X Driver  418.67  Sat Apr  6 02:51:17 CDT 2019&#xA;[   464.663] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs&#xA;[   464.663] (II) modesetting: Driver for Modesetting Kernel Drivers: kms&#xA;[   464.663] (II) FBDEV: driver for framebuffer: fbdev&#xA;[   464.663] (II) VESA: driver for VESA chipsets: vesa&#xA;[   464.663] xf86EnableIOPorts: failed to set IOPL for I/O (Operation not permitted)&#xA;[   464.663] (EE) open /dev/dri/card0: No such file or directory&#xA;[   464.663] (WW) Falling back to old probe method for modesetting&#xA;[   464.663] (EE) open /dev/dri/card0: No such file or directory&#xA;[   464.663] (WW) Falling back to old probe method for fbdev&#xA;[   464.663] (II) Loading sub module "fbdevhw"&#xA;[   464.663] (II) LoadModule: "fbdevhw"&#xA;[   464.663] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so&#xA;[   464.663] (II) Module fbdevhw: vendor="X.Org Foundation"&#xA;[   464.663]    compiled for 1.19.6, module version = 0.0.2&#xA;[   464.663]    ABI class: X.Org Video Driver, version 23.0&#xA;[   464.664] (EE) open /dev/fb0: No such file or directory&#xA;[   464.664] (WW) Falling back to old probe method for vesa&#xA;[   464.664] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support&#xA;[   464.664] (EE) Screen 0 deleted because of no matching config section.&#xA;[   464.664] (II) UnloadModule: "modesetting"&#xA;[   464.664] (EE) Device(s) detected, but none match those in the config file.&#xA;[   464.664] (EE) &#xA;Fatal server error:&#xA;[   464.664] (EE) no screens found(EE) &#xA;[   464.664] (EE) &#xA;Please consult the The X.Org Foundation support &#xA;     at http://wiki.x.org&#xA; for help. &#xA;[   464.664] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.&#xA;[   464.664] (EE) &#xA;[   464.664] (EE) Server terminated with error (1). Closing log file.&#xA;&#xA;

    &#xA;

    I am using this github repo to setup the video-streamer

    &#xA;

    If anyone wants the colab notebook for the example then I will add it over here.

    &#xA;

    For this problem I am really not sure where to file an issue for this so that's why I am writing this here.

    &#xA;

  • Creating video from single long audio and single image then created video not playing

    25 février 2021, par Mukul Kashyap

    I am creating a video from single audio and single image and it is fine when the audio length less than 10 seconds but when the audio length exceeds 10 seconds then video not playing. I am using FFmpeg to create video using shell_exec().&#xA;The video is fine when I directly runs the FFmpeg command on the terminal but the only issue comes with the shell_exec command.

    &#xA;

    This command I am using -

    &#xA;

    ffmpeg -loop 1 -f image2 -i $this->img_url -i $this->audio_url -vf scale=1920*1080 -pix_fmt yuv420p -vcodec libx264 -shortest ".$video_local_dir.$video_name ;

    &#xA;

    Please help me to fix this issue

    &#xA;

    Thanks.

    &#xA;