Recherche avancée

Médias (0)

Mot : - Tags -/albums

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (31)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (6389)

  • ffmpeg programatically set the export date to download date using python

    16 janvier 2021, par Vladimir Tarasov

    i'm currently using the code below to export a youtube-dl converted video (with ffmpeg and youtube-dl for python)
how could i programatically set the good options for ffmpeg to add the download date (at least today's date) to the .mp3 file ?

    


    ydl_opts = {
    'format': 'bestaudio/best',
    'outtmpl': path + urlToTitleYT(link) + '.mp3',
    'postprocessors': [{
        'key': 'FFmpegExtractAudio',
        'preferredcodec': 'mp3',
        'preferredquality': '320',
    }],
}

with youtube_dl.YoutubeDL(ydl_opts) as ydl:
    ydl.download([link])



    


  • Trying to use openH264 as an alternative to libX264 in FFMPEG C project

    5 décembre 2015, par Tishu

    I have an application that transcodes a video frame by frame using FFMPEG and x264 encoder. I am looking to release this application but the licensing of x264 made me switch to using openh264 instead.

    I managed to compile everything smoothly (openh264 then FFMPEG with enable-openh264). I am now trying to correct the encoder setup in my C code as what worked for libx264 doesn’t work anymore. Unfortunately I found very limited C/C++ examples of FFMPEG/openh264, i would appreciate any link/hint.

    I am using the following code (dec_ctx is the AVCodecContext of the video I am decoding)

               enc_ctx->height = dec_ctx->height;
               enc_ctx->width = dec_ctx->width;
               enc_ctx->sample_aspect_ratio = dec_ctx->sample_aspect_ratio;
               /* take first format from list of supported formats */
               enc_ctx->pix_fmt = encoder->pix_fmts[0];
               /* video time_base can be set to whatever is handy and supported by encoder */
               enc_ctx->time_base = dec_ctx->time_base;

               enc_ctx->gop_size      = 120; /* emit one intra frame every twelve frames at most */
               enc_ctx->max_b_frames = 16;
               enc_ctx->scenechange_threshold = 0;
               enc_ctx->rc_buffer_size = 0;
               enc_ctx->me_method = ME_ZERO;

               enc_ctx->ticks_per_frame = dec_ctx->ticks_per_frame * ifmt_ctx->streams[i]->time_base.den * ifmt_ctx->streams[i]->r_frame_rate.num/ifmt_ctx->streams[i]->r_frame_rate.den;
               // Set Ultrafast profile. internal name for this preset is baseline
               av_opt_set(enc_ctx->priv_data, "preset", "placebo", AV_OPT_SEARCH_CHILDREN);

    I get the following errors in the output with the [OpenH264] tag :

    [OpenH264] this = 0x0000000019C126C0, Warning:bEnableFrameSkip = 0,bitrate can't be controlled for RC_QUALITY_MODE,RC_BITRATE_MODE and RC_TIMESTAMP_MODE without enabling skip frame.
    Output #0, mp4, to 'C:\Dev\temp\geoVid.mp4':
    Stream #0:0: Video: h264 (libopenh264), yuv420p, 720x480, q=2-31, 200 kb/s, 90k tbn, 180k tbc
    Stream #0:1: Audio: aac, 48000 Hz, stereo, fltp, 96 kb/s
    [OpenH264] this = 0x0000000019C126C0, Warning:Actual input framerate fAverageFrameRate = 0.000000 is quite different from framerate in setting 60.000000, please check setting or timestamp unit (ms), start_Ts = 0
    [OpenH264] this = 0x0000000019C126C0, Warning:Actual input framerate fAverageFrameRate = 0.000000 is quite different from framerate in setting 60.000000, please check setting or timestamp unit (ms), start_Ts = 0

    The output video file just plays black frames. Any hint or link to some doc would be appreciated. I have been trying to understand these errors but not too sure how to enable "skip frame" or why it is complaining about my input framerate (this is the same input as when I encode successfully with libx264)

  • Trying to use openH264 as an alternative to libX264 in FFMPEG C project

    18 octobre 2019, par tishu

    I have an application that transcodes a video frame by frame using FFMPEG and x264 encoder. I am looking to release this application but the licensing of x264 made me switch to using openh264 instead.

    I managed to compile everything smoothly (openh264 then FFMPEG with enable-openh264). I am now trying to correct the encoder setup in my C code as what worked for libx264 doesn’t work anymore. Unfortunately I found very limited C/C++ examples of FFMPEG/openh264, i would appreciate any link/hint.

    I am using the following code (dec_ctx is the AVCodecContext of the video I am decoding)

               enc_ctx->height = dec_ctx->height;
               enc_ctx->width = dec_ctx->width;
               enc_ctx->sample_aspect_ratio = dec_ctx->sample_aspect_ratio;
               /* take first format from list of supported formats */
               enc_ctx->pix_fmt = encoder->pix_fmts[0];
               /* video time_base can be set to whatever is handy and supported by encoder */
               enc_ctx->time_base = dec_ctx->time_base;

               enc_ctx->gop_size      = 120; /* emit one intra frame every twelve frames at most */
               enc_ctx->max_b_frames = 16;
               enc_ctx->scenechange_threshold = 0;
               enc_ctx->rc_buffer_size = 0;
               enc_ctx->me_method = ME_ZERO;

               enc_ctx->ticks_per_frame = dec_ctx->ticks_per_frame * ifmt_ctx->streams[i]->time_base.den * ifmt_ctx->streams[i]->r_frame_rate.num/ifmt_ctx->streams[i]->r_frame_rate.den;
               // Set Ultrafast profile. internal name for this preset is baseline
               av_opt_set(enc_ctx->priv_data, "preset", "placebo", AV_OPT_SEARCH_CHILDREN);

    I get the following errors in the output with the [OpenH264] tag :

    [OpenH264] this = 0x0000000019C126C0, Warning:bEnableFrameSkip = 0,bitrate can't be controlled for RC_QUALITY_MODE,RC_BITRATE_MODE and RC_TIMESTAMP_MODE without enabling skip frame.
    Output #0, mp4, to 'C:\Dev\temp\geoVid.mp4':
    Stream #0:0: Video: h264 (libopenh264), yuv420p, 720x480, q=2-31, 200 kb/s, 90k tbn, 180k tbc
    Stream #0:1: Audio: aac, 48000 Hz, stereo, fltp, 96 kb/s
    [OpenH264] this = 0x0000000019C126C0, Warning:Actual input framerate fAverageFrameRate = 0.000000 is quite different from framerate in setting 60.000000, please check setting or timestamp unit (ms), start_Ts = 0
    [OpenH264] this = 0x0000000019C126C0, Warning:Actual input framerate fAverageFrameRate = 0.000000 is quite different from framerate in setting 60.000000, please check setting or timestamp unit (ms), start_Ts = 0

    The output video file just plays black frames. Any hint or link to some doc would be appreciated. I have been trying to understand these errors but not too sure how to enable "skip frame" or why it is complaining about my input framerate (this is the same input as when I encode successfully with libx264)