Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (19)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (3369)

  • ffmpeg Unrecognized option 'vcodec libx264'

    8 septembre 2021, par Mike

    I have a lambda that is trying to transcode webm files to mp4. It his the lambda using the following code to do the conversion :

    


    const args = [
    "-i",
    inputFilename,
    "-vcodec libx264",
    "-r 30",
    "-y",
    mp4Filename,
];


try {
    const { error, output } = spawnSync(ffmpeg, args);
    console.log(`output: ${output}`);
    console.log(`error: ${error}`);
} catch (error) {
    console.log("ffmpeg failed...");
    console.log(error);
}


    


    In my lambda, I'm seeing the following error :

    


    output: ,,ffmpeg version 4.2.2-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8 (Debian 8.3.0-6)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Unrecognized option 'vcodec libx264'.
Error splitting the argument list: Option not found

2021-09-08T15:19:46.644Z 9477062f-6afa-4a94-9900-6b28337d8c2a INFO output: ,,ffmpeg version 4.2.2-static https://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2019 the FFmpeg developers built with gcc 8 (Debian 8.3.0-6) configuration: --enable-gpl --enable-version3 --enable-static --disable-debug --disable-ffplay --disable-indev=sndio --disable-outdev=sndio --cc=gcc --enable-fontconfig --enable-frei0r --enable-gnutls --enable-gmp --enable-libgme --enable-gray --enable-libaom --enable-libfribidi --enable-libass --enable-libvmaf --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libvorbis --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libdav1d --enable-libxvid --enable-libzvbi --enable-libzimg libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Unrecognized option 'vcodec libx264'. Error splitting the argument list: Option not found


    


    I'm using ffmpeg-4.2.2-amd64-static

    


  • ffmpeg - Convert files but keep Same Date Modification as Original ?

    9 septembre 2021, par user5894146

    So I want to start with that ffmpeg and powershell isn't really my strength but I have been using the following powershell command to convert every .flac file in a certain directory to a 320K file.

    


    dir *.flac | foreach {ffmpeg -i $_.FullName -c:v copy  -b:a 320k  $_.FullName.Replace('flac', 'mp3')}


    


    This works exactly how I want to without any album art being transcoded but I want to incorporate a way so that the new .mp3 files that are created have the SAME DATE MODIFICATION value of the .flac files. Is something like this even possible ?

    


    audio_ex.flac = Date Modification: 1/1/2010
audio_ex.mp3 = Date Modification: 9/8/2021


    


    should be instead

    


    audio_ex.flac = Date Modification: 1/1/2010
audio_ex.mp3 = Date Modification: 1/1/2010


    


    I have a folder of 6K files and want each original date modified to match the newly created files so if I can do the above command and also have the date mod time match within one execution, that would be ideal.

    


    I thought of manually changing each files mod time using 3rd party tools but it will be too time consuming.

    


  • FFMPEG error when finding stream information with custom AVIOContext

    8 septembre 2021, par ryan

    I am writing software that takes in a file as a stream and decodes it. I have the following custom AVIO code for stream input :

    


    /* Allocate a 4kb buffer for copying. */&#xA;std::uint32_t bufSize = 4096;&#xA;struct vidBuf&#xA;{&#xA;    std::byte* ptr;&#xA;    int size;&#xA;};&#xA;&#xA;vidBuf tmpVidBuf = { const_cast(videoBuffer.data()),&#xA;    static_cast<int>(videoBuffer.size()) };&#xA;AVIOContext *avioContext =&#xA;    avio_alloc_context(reinterpret_cast(av_malloc(bufSize)),&#xA;                       bufSize, 0,&#xA;                       reinterpret_cast(&amp;tmpVidBuf),&#xA;                       [](void *opaque, std::uint8_t *buf, int bufSize) -> int&#xA;                       {&#xA;                           auto &amp;me = *reinterpret_cast(opaque);&#xA;                           bufSize = std::min(bufSize, me.size);&#xA;&#xA;                           std::copy_n(me.ptr, bufSize, reinterpret_cast(buf));&#xA;                           me.ptr &#x2B;= bufSize;&#xA;                           me.size -= bufSize;&#xA;                           return bufSize;&#xA;                       }, nullptr, nullptr);&#xA;&#xA;auto avFormatPtr = avformat_alloc_context();&#xA;avFormatPtr->pb = avioContext;&#xA;avFormatPtr->flags |= AVFMT_FLAG_CUSTOM_IO;&#xA;//avFormatPtr->probesize = tmpVidBuf.size;&#xA;//avFormatPtr->max_analyze_duration = 5000000;&#xA;&#xA;avformat_open_input(&amp;avFormatPtr, nullptr, nullptr, nullptr);&#xA;&#xA;if(auto ret = avformat_find_stream_info(avFormatPtr, nullptr);&#xA;   ret &lt; 0)&#xA;    logerror &lt;&lt; "Could not open the video file: " &lt;&lt; makeAVError(ret) &lt;&lt; &#x27;\n&#x27;;&#xA;</int>

    &#xA;

    However, when I run this code I get the error :

    &#xA;

    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d10736d580] stream 0, offset 0x30: partial file&#xA;[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d10736d580] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none(tv, bt709), 540x360, 649 kb/s): unspecified pixel format&#xA;Consider increasing the value for the &#x27;analyzeduration&#x27; (0) and &#x27;probesize&#x27; (5000000) options&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.76.100&#xA;  Duration: 00:04:08.41, start: 0.000000, bitrate: N/A&#xA;  Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none(tv, bt709), 540x360, 649 kb/s, SAR 1:1 DAR 3:2, 29.97 fps, 29.97 tbr, 30k tbn, 60k tbc (default)&#xA;    Metadata:&#xA;      handler_name    : ISO Media file produced by Google Inc. Created on: 01/10/2021.&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 22050 Hz, mono, fltp, 69 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : ISO Media file produced by Google Inc. Created on: 01/10/2021.&#xA;      vendor_id       : [0][0][0][0]&#xA;Assertion desc failed at libswscale/swscale_internal.h:677&#xA;

    &#xA;

    Note the absence of the YUV420p part in the video stream data.

    &#xA;

    This is strange since if I run my program with a different mp4 file it works perfectly fine, this error only occurs with a specific mp4 file. I know that the mp4 file is valid since mpv can play it, and ffprobe is able to get its metadata :

    &#xA;

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;heard.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : isom&#xA;    minor_version   : 512&#xA;    compatible_brands: isomiso2avc1mp41&#xA;    encoder         : Lavf58.76.100&#xA;  Duration: 00:04:08.41, start: 0.000000, bitrate: 724 kb/s&#xA;  Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 540x360 [SAR 1:1 DAR 3:2], 649 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)&#xA;    Metadata:&#xA;      handler_name    : ISO Media file produced by Google Inc. Created on: 01/10/2021.&#xA;      vendor_id       : [0][0][0][0]&#xA;  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, mono, fltp, 69 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : ISO Media file produced by Google Inc. Created on: 01/10/2021.&#xA;      vendor_id       : [0][0][0][0]&#xA;

    &#xA;

    As you can see by my code I also tried setting analyzeduration and probesize, but this did not fix the issue.

    &#xA;

    I also know that this error is because of my custom io because when I have avformat_open_input open the file directly, it is able to be decoded just fine. I am new to ffmpeg, so I might have missed something simple.

    &#xA;