Advanced search

Medias (1)

Tag: - Tags -/pirate bay

Other articles (64)

  • Other interesting software

    13 April 2011, by

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website: http://videopress.com/
    License: GNU/GPL v2
    Source code: (...)

  • Des sites réalisés avec MediaSPIP

    2 May 2011, by

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Taille des images et des logos définissables

    9 February 2011, by

    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 (...)

On other websites (3859)

  • FFMPEG error when finding stream information with custom AVIOContext

    8 September 2021, by 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;

  • How can I add custom metadata to an MXF using FFMPEG?

    15 September 2021, by Zak44

    I am trying to add custom metadata to an MXF in FFMPEG. I can get the syntax to go through and then my metadata to be listed during the command output, but when I later run FFMPEG on the file to check the metadata is not there. Only the material_package_name will stick. Is this not possible with MXF?

    &#xA;

    Command:

    &#xA;

    ffmpeg -i Test.mp4 -vf scale=1920:1080 -an -metadata project="TEST PROJECT" -metadata comment="Test Comment" -metadata artist="Test" -metadata material_package_name="TEST VID CLIP" -b:v 36M -f mxf_opatom "TEST_VID_CLIP.mxf"&#xA;

    &#xA;

    Output from command:

    &#xA;

        Output #0, mxf_opatom, to &#x27;TEST_VID_CLIP.mxf&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42mp41&#xA;    project         : TEST PROJECT&#xA;    comment         : Test Comment&#xA;    artist          : Test&#xA;    material_package_name: TEST VID CLIP&#xA;    encoder         : Lavf58.76.100&#xA;  Stream #0:0(eng): Video: dnxhd (DNXHD), yuv422p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 36000 kb/s, 24 fps, 24 tbn (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-07-01T17:19:54.000000Z&#xA;      handler_name    : ?Mainconcept Video Media Handler&#xA;      vendor_id       : [0][0][0][0]&#xA;      encoder         : Lavc58.134.100 dnxhd&#xA;

    &#xA;

    Output running a check on file:

    &#xA;

    ffmpeg -i TEST_VID_CLIP.mxf &#xA;Input #0, mxf, from &#x27;TEST_VID_CLIP.mxf&#x27;:&#xA;  Metadata:&#xA;    operational_pattern_ul: 060e2b34.04010102.0d010201.10030000&#xA;    uid             : adab4424-2f25-4dc7-92ff-29bd000c0000&#xA;    generation_uid  : adab4424-2f25-4dc7-92ff-29bd000c0001&#xA;    company_name    : FFmpeg&#xA;    product_name    : OPAtom Muxer&#xA;    product_version_num: 58.76.100.0.0&#xA;    product_version : 58.76.100&#xA;    application_platform: Lavf (darwin)&#xA;    product_uid     : adab4424-2f25-4dc7-92ff-29bd000c0002&#xA;    toolkit_version_num: 58.76.100.0.0&#xA;    material_package_umid: 0x060A2B340101010501010D00136428C052947134A46428C00052947134A46400&#xA;    material_package_name: TEST VID CLIP&#xA;    timecode        : 00:00:00:00&#xA;  Duration: 00:01:05.71, start: 0.000000, bitrate: 36176 kb/s&#xA;  Stream #0:0: Video: dnxhd (DNXHD), yuv422p(tv, bt709/unknown/unknown, progressive), 1920x1080, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 24 tbn, 24 tbc&#xA;    Metadata:&#xA;      file_package_umid: 0x060A2B340101010501010D00136428C052947134A46428C00052947134A46401&#xA;At least one output file must be specified&#xA;

    &#xA;

  • ffmpeg Unrecognized option 'vcodec libx264'

    8 September 2021, by 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:

    &#xA;

    const args = [&#xA;    "-i",&#xA;    inputFilename,&#xA;    "-vcodec libx264",&#xA;    "-r 30",&#xA;    "-y",&#xA;    mp4Filename,&#xA;];&#xA;&#xA;&#xA;try {&#xA;    const { error, output } = spawnSync(ffmpeg, args);&#xA;    console.log(`output: ${output}`);&#xA;    console.log(`error: ${error}`);&#xA;} catch (error) {&#xA;    console.log("ffmpeg failed...");&#xA;    console.log(error);&#xA;}&#xA;

    &#xA;

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

    &#xA;

    output: ,,ffmpeg version 4.2.2-static https://johnvansickle.com/ffmpeg/  Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with gcc 8 (Debian 8.3.0-6)&#xA;  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&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;Unrecognized option &#x27;vcodec libx264&#x27;.&#xA;Error splitting the argument list: Option not found&#xA;&#xA;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 &#x27;vcodec libx264&#x27;. Error splitting the argument list: Option not found&#xA;

    &#xA;

    I'm using ffmpeg-4.2.2-amd64-static

    &#xA;