Recherche avancée

Médias (1)

Mot : - Tags -/pirate bay

Autres articles (82)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • 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

Sur d’autres sites (13839)

  • avformat/mxfdec : Read Apple private Content Light Level from MXF

    9 septembre 2020, par Harry Mallon
    avformat/mxfdec : Read Apple private Content Light Level from MXF
    

    * As embedded by Apple Compressor

    Signed-off-by : Harry Mallon <harry.mallon@codex.online>

    • [DH] libavformat/mxfdec.c
    • [DH] tests/fate/mxf.mak
    • [DH] tests/ref/fate/mxf-probe-applehdr10
  • Ffmpeg H.264 encode video is sped up if camera capture with low light

    10 août 2020, par Expressingx

    I'm encoding everything to H.264. If h264_qsv is available I'm using it, else libx264. Works fine, but I noticed that if the camera is recording in low light, the video saved is sped up like x2 or x3. And I'm not sure where the problem is. Creating the input format context :

    &#xA;

        private AVFormatContext* CreateFormatContext()&#xA;    {&#xA;        AVDictionary* options = null;&#xA;&#xA;        ffmpeg.av_dict_set(&amp;options, "packet-buffering", "0", 0);&#xA;        ffmpeg.av_dict_set(&amp;options, "sync", "1", 0);&#xA;        ffmpeg.av_dict_set(&amp;options, "rtsp_transport", "tcp", 0);&#xA;        ffmpeg.av_dict_set(&amp;options, "reconnect", "1", 0);&#xA;        ffmpeg.av_dict_set(&amp;options, "analyzeduration", "2000000", 0);&#xA;        ffmpeg.av_dict_set(&amp;options, "probesize", (16384 * 16).ToString(), 0);&#xA;        ffmpeg.av_dict_set(&amp;options, "max_delay", "0", 0);&#xA;        ffmpeg.av_dict_set(&amp;options, "reorder_queue_size", "0", 0);&#xA;        ffmpeg.av_dict_set(&amp;options, "skip_frame", "8", 0);&#xA;        ffmpeg.av_dict_set(&amp;options, "skip_loop_filter", "48", 0);&#xA;        ffmpeg.av_dict_set(&amp;options, "rtbufsize", "1000M", 0);&#xA;&#xA;        AVFormatContext* pInputFmtCtx = ffmpeg.avformat_alloc_context();&#xA;&#xA;        AVInputFormat* inputFormat = null;&#xA;&#xA;        if (!string.IsNullOrEmpty(_format))&#xA;        {&#xA;            inputFormat = ffmpeg.av_find_input_format(_format);&#xA;&#xA;            if (inputFormat == null)&#xA;            {&#xA;                //throw&#xA;            }&#xA;        }&#xA;&#xA;        int ret = ffmpeg.avformat_open_input(&amp;pInputFmtCtx, _streamUrl, inputFormat, &amp;options);&#xA;&#xA;        if (ret != 0)&#xA;        {&#xA;            //throw&#xA;        }&#xA;&#xA;        return pInputFmtCtx;&#xA;    }&#xA;

    &#xA;

    video decoder

    &#xA;

        private void CreateVideoDecoder()&#xA;    {&#xA;        AVStream* videoStream = InputFormatContext->streams[VideoStreamIndex];&#xA;        AVCodecParameters* videoCodecParams = videoStream->codecpar;&#xA;        AVCodec* videoDecoder = ffmpeg.avcodec_find_decoder(videoCodecParams->codec_id);&#xA;&#xA;        VideoDecodeContext = ffmpeg.avcodec_alloc_context3(videoDecoder);&#xA;&#xA;        if (ffmpeg.avcodec_parameters_to_context(VideoDecodeContext, videoCodecParams) &lt; 0)&#xA;        {&#xA;            //throw&#xA;        }&#xA;&#xA;        if (ffmpeg.avcodec_open2(VideoDecodeContext, videoDecoder, null) &lt; 0)&#xA;        {&#xA;            //throw&#xA;        }&#xA;    }&#xA;

    &#xA;

    and the h264 encoder

    &#xA;

    private void CreateH264Encoder(AVStream* inputStream, AVStream* outputStream)&#xA;    {&#xA;        AVRational framerate = ffmpeg.av_guess_frame_rate(_inputContext.InputFormatContext, inputStream, null);&#xA;&#xA;        AVCodec* videoEncoder = ffmpeg.avcodec_find_encoder_by_name("h264_qsv");&#xA;        if (videoEncoder == null)&#xA;        {&#xA;            videoEncoder = ffmpeg.avcodec_find_encoder_by_name("libx264");&#xA;            PixelFormat = AVPixelFormat.AV_PIX_FMT_YUV420P;&#xA;        }&#xA;&#xA;        if (videoEncoder == null)&#xA;        {&#xA;            //throw&#xA;        }&#xA;&#xA;        VideoEncodeContext = ffmpeg.avcodec_alloc_context3(videoEncoder);&#xA;&#xA;        if (VideoEncodeContext == null)&#xA;        {&#xA;            //throw&#xA;        }&#xA;&#xA;        VideoEncodeContext->width = _inputContext.VideoDecodeContext->width;&#xA;        VideoEncodeContext->height = _inputContext.VideoDecodeContext->height;&#xA;        VideoEncodeContext->pix_fmt = PixelFormat;&#xA;        VideoEncodeContext->bit_rate = 2 * 1000 * 1000;&#xA;        VideoEncodeContext->rc_buffer_size = 4 * 1000 * 1000;&#xA;        VideoEncodeContext->rc_max_rate = 2 * 1000 * 1000;&#xA;        VideoEncodeContext->rc_min_rate = 3 * 1000 * 1000;&#xA;        VideoEncodeContext->framerate = framerate;&#xA;        VideoEncodeContext->max_b_frames = 0;&#xA;        VideoEncodeContext->time_base = ffmpeg.av_inv_q(framerate);&#xA;        VideoEncodeContext->flags |= ffmpeg.AV_CODEC_FLAG_GLOBAL_HEADER;&#xA;&#xA;        ffmpeg.av_opt_set(VideoEncodeContext->priv_data, "preset", "slow", 0);&#xA;        ffmpeg.av_opt_set(VideoEncodeContext->priv_data, "vprofile", "baseline", 0);&#xA;&#xA;        if (ffmpeg.avcodec_open2(VideoEncodeContext, videoEncoder, null) &lt; 0)&#xA;        {&#xA;            //throw&#xA;        }&#xA;&#xA;        ffmpeg.avcodec_parameters_from_context(outputStream->codecpar, VideoEncodeContext);&#xA;    }&#xA;

    &#xA;

    I'm using ffmpeg 4.0.1, so I'm decoding/encoding with the new format API which I'll skip to share for now because its nothing more than following the link : https://ffmpeg.org/doxygen/3.3/group__lavc__encdec.html

    &#xA;

  • Discord Music Bot joins voice channel, light up green but didnt has any audio. Worked well for 2 weeks before. No errors in console

    8 juin 2021, par FeX

    I coded a bot with node.js. I used the example by Crawl for his music bot. I did everything similar to him. After I finished my build everything worked. Every other command and the play command. But now after 2 weeks the bot joins the voice channel, light up green but has no sound. I updated ffmpeg, @discordjs/opus, ffmpeg-static and downloaded the completed version from ffmpeg but the bot still has no audio. The queue, volume, nowplaying, skip, shuffle, loop everything works. But after I got the video or playlist with the play command the bot only joins light up green but has no audio. So the bot definitly get the url, get the video, get everything he needs to play. But after joining he doesnt use the informations to play. Also he doesnt leave the voicechannel after the song should end.

    &#xA;&#xA;

    function play(guild, song) {&#xA;&#xA;  try {&#xA;&#xA;    const ServerMusicQueue = queue.get(guild.id);&#xA;&#xA;    if (!song) {&#xA;&#xA;      ServerMusicQueue.textchannel.send(`ퟎ