Recherche avancée

Médias (1)

Mot : - Tags -/ogg

Autres articles (51)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • 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

  • 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 (8418)

  • avformat/sccdec : Don't use uninitialized data, fix crash, simplify logic

    1er octobre 2021, par Andreas Rheinhardt
    avformat/sccdec : Don't use uninitialized data, fix crash, simplify logic
    

    Up until now, the scc demuxer not only read the line that it intends
    to process, but also the next line, in order to be able to calculate
    the duration of the current line. This approach leads to unnecessary
    complexity and also to bugs : For the last line, the timing of the
    next subtitle is not only logically indeterminate, but also
    uninitialized and the same applies to the duration of the last packet
    derived from it.* Worse yet, in case of e.g. an empty file, it is not
    only the duration that is uninitialized, but the whole timing as well
    as the line buffer itself.** The latter is used in av_strtok(), which
    could lead to crashes. Furthermore, the current code always outputs
    at least one packet, even for empty files.

    This commit fixes all of this : It stops using two lines at a time ;
    instead only the current line is dealt with and in case there is
    a packet after that, the duration of the last packet is fixed up
    after having already parsed it ; consequently the duration of the
    last packet is left in its default state (meaning "unknown/up until
    the next subtitle"). If no further line could be read, processing
    is stopped ; in particular, no packet is output for an empty file.

    * : Due to stack reuse it seems to be zero quite often ; for the same
    reason Valgrind does not report any errors for a normal input file.
    ** : While ff_subtitles_read_line() claims to always zero-terminate
    the buffer like snprintf(), it doesn't do so if it didn't read anything.
    And even if it did, it would not necessarily help here : The current
    code jumps over 12 bytes that it deems to have read even when it
    hasn't.

    Reviewed-by : Paul B Mahol <onemda@gmail.com>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavformat/sccdec.c
  • FFMPEG error : "First slice in a frame missing" when decoding H.265 stream

    19 octobre 2023, par Snejk

    I have a problem with decoding IP camera stream (h.265) using ffmpeg libraries.

    &#xA;

    I use Live555 to receive RTP payload.

    &#xA;

    mMediaSession->readSource()->getNextFrame(mVideoBuffer.data(),&#xA;mVideoBuffer.size(), Stream::Static_PayloadRead, this, Stream::Static_StreamClose, this);&#xA;

    &#xA;

    First two bytes (after the start code 0001) has the nal_unit_header. I am retrieving the type, from bits 1-6 ( ( NALU[0] >> 1 ) & 0x3F ). Then I am processing the data depending on the NALu type :

    &#xA;

    enum NalUnitType  &#xA;{  &#xA;  NAL_UNIT_CODED_SLICE_TRAIL_N = 0,   // 0  &#xA;  NAL_UNIT_CODED_SLICE_TRAIL_R,   // 1    &#xA;  NAL_UNIT_CODED_SLICE_TSA_N,     // 2  &#xA;  NAL_UNIT_CODED_SLICE_TLA,       // 3    &#xA;  NAL_UNIT_CODED_SLICE_STSA_N,    // 4  &#xA;  NAL_UNIT_CODED_SLICE_STSA_R,    // 5    &#xA;  NAL_UNIT_CODED_SLICE_RADL_N,    // 6  &#xA;  NAL_UNIT_CODED_SLICE_DLP,       // 7     &#xA;  NAL_UNIT_CODED_SLICE_RASL_N,    // 8  &#xA;  NAL_UNIT_CODED_SLICE_TFD,       // 9   &#xA;  NAL_UNIT_RESERVED_10,  &#xA;...&#xA;  NAL_UNIT_CODED_SLICE_BLA,       // 16 &#xA;  NAL_UNIT_CODED_SLICE_BLANT,     // 17    &#xA;  NAL_UNIT_CODED_SLICE_BLA_N_LP,  // 18  &#xA;  NAL_UNIT_CODED_SLICE_IDR,       // 19  // Current name in the spec: IDR_W_DLP  &#xA;  NAL_UNIT_CODED_SLICE_IDR_N_LP,  // 20  &#xA;  NAL_UNIT_CODED_SLICE_CRA,       // 21  &#xA;  NAL_UNIT_RESERVED_22,  &#xA; ...&#xA;  NAL_UNIT_VPS,                   // 32  &#xA;  NAL_UNIT_SPS,                   // 33  &#xA;  NAL_UNIT_PPS,                   // 34  &#xA;  NAL_UNIT_ACCESS_UNIT_DELIMITER, // 35  &#xA;  NAL_UNIT_EOS,                   // 36  &#xA;  NAL_UNIT_EOB,                   // 37  &#xA;  NAL_UNIT_FILLER_DATA,           // 38  &#xA;  NAL_UNIT_SEI,                   // 39 Prefix SEI  &#xA;  NAL_UNIT_SEI_SUFFIX,            // 40 Suffix SEI  &#xA;...&#xA;  NAL_UNIT_INVALID,  &#xA;};  &#xA;

    &#xA;

    If buffer doesn't have the start code, I am adding 0x00000001 at the start of the payload data, before sending it to FFmpeg. Camera is sending these NALu (in the same order) :

    &#xA;

      &#xA;
    1. HEVC_NAL_VPS,
    2. &#xA;

    3. HEVC_NAL_SPS,
    4. &#xA;

    5. HEVC_NAL_PPS,
    6. &#xA;

    7. HEVC_NAL_IDR_W_RADL,
    8. &#xA;

    9. HEVC_NAL_IDR_W_RADL,
    10. &#xA;

    11. HEVC_NAL_IDR_W_RADL,
    12. &#xA;

    13. HEVC_NAL_TRAIL_R,
    14. &#xA;

    15. HEVC_NAL_TRAIL_R&#xA;...
    16. &#xA;

    &#xA;

    My solution works partially as I have 1/3 of image decoded. The other 2 HEVC_NAL_IDR_W_RADL slices get FFmpeg error : "First slice in a frame missing". If I lower the stream resolution I have 1/2 image with one additional HEVC_NAL_IDR_W_RADL slice.

    &#xA;

    Similiar code works with H.264 stream so I know (I hope) that Live555 and FFmpeg code should be fine.

    &#xA;

    Live555 doesn't reassemble the I frames (http://lists.live555.com/pipermail/live-devel/2016-September/020244.html)

    &#xA;

    Is there a specific way to reassemble frame send in multiple slices. I have even tried to assemble the frame as it would be Fragmented Unit NAL type 49 (How to depacketize the fragmented frames in RTP data (over UDP) for H265/HEVC ?)

    &#xA;

    Many Thanks

    &#xA;

  • FFmpeg's common filter "v360" missing

    26 septembre 2021, par Niklas E.

    I'm trying to convert a 180° fisheye video to a normal/regular video using the v360 filter of FFmpeg.

    &#xA;

    This is the command I tried :
    &#xA;ffmpeg -i in.mp4 -vf "v360=input=fisheye:output=flat:iv_fov=180:v_fov=90" out.mp4

    &#xA;

    But the output says clearly No such filter: &#x27;v360&#x27;, although v360 is a common filter listed in docs and other filters I used before worked just fine. I tried updating/reinstalling and looking for solutions, not fixing it.

    &#xA;

    Why is the filter missing ? How can I debug this ? Should I doe the task using another program entirely ?

    &#xA;

    Command output :

    &#xA;

    ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)&#xA;  configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#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;  libavresample   4.  0.  0 /  4.  0.  0&#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;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;in.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: mp42mp41&#xA;    creation_time   : 2021-09-11T14:18:33.000000Z&#xA;  Duration: 00:02:48.02, start: 0.000000, bitrate: 26056 kb/s&#xA;    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 2160x1080 [SAR 1:1 DAR 2:1], 25924 kb/s, 50 fps, 50 tbr, 50k tbn, 100 tbc (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-09-11T14:18:33.000000Z&#xA;      handler_name    : Mainconcept MP4 Video Media Handler&#xA;      encoder         : AVC Coding&#xA;    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2021-09-11T14:18:33.000000Z&#xA;      handler_name    : Mainconcept MP4 Sound Media Handler&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))&#xA;  Stream #0:1 -> #0:1 (aac (native) -> aac (native))&#xA;Press [q] to stop, [?] for help&#xA;[AVFilterGraph @ 0x55ee57567340] No such filter: &#x27;v360&#x27;&#xA;Error reinitializing filters!&#xA;Failed to inject frame into filter network: Invalid argument&#xA;Error while processing the decoded data for stream #0:0&#xA;Conversion failed!&#xA;

    &#xA;