Recherche avancée

Médias (0)

Mot : - Tags -/utilisateurs

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

Autres articles (102)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Les notifications de la ferme

    1er décembre 2010, par

    Afin d’assurer une gestion correcte de la ferme, il est nécessaire de notifier plusieurs choses lors d’actions spécifiques à la fois à l’utilisateur mais également à l’ensemble des administrateurs de la ferme.
    Les notifications de changement de statut
    Lors d’un changement de statut d’une instance, l’ensemble des administrateurs de la ferme doivent être notifiés de cette modification ainsi que l’utilisateur administrateur de l’instance.
    À la demande d’un canal
    Passage au statut "publie"
    Passage au (...)

Sur d’autres sites (14287)

  • lavf : Add an MPEG-DASH ISOFF segmenting muxer

    6 octobre 2014, par Martin Storsjö
    lavf : Add an MPEG-DASH ISOFF segmenting muxer
    

    This is mostly to serve as a reference example on how to segment
    the output from the mp4 muxer, capable of writing the segment
    list in four different ways :
    - SegmentTemplate with SegmentTimeline
    - SegmentTemplate with implicit segments
    - SegmentList with individual files
    - SegmentList with one single file per track, and byte ranges

    The muxer is able to serve live content (with optional windowing)
    or create a static segmented MPD.

    In advanced cases, users will probably want to do the segmenting
    in their own application code.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] Changelog
    • [DBH] configure
    • [DBH] libavformat/Makefile
    • [DBH] libavformat/allformats.c
    • [DBH] libavformat/dashenc.c
    • [DBH] libavformat/version.h
  • Reading JPEG in ffmpeg

    16 juillet 2021, par Paul Lammertsma

    I'm trying to get ffmpeg to encode several individual JPEG images into a video on Android. I've successfully built it for Android (see the configuration string at the end of this post).

    &#xA;&#xA;

    I can encode an h.263+ video with randomly generated frame content, and ffmpeg otherwise appears to work well.

    &#xA;&#xA;

    A similar question suggests that the following code should be sufficient to load an image into an AvFrame :

    &#xA;&#xA;

    // Make sure we have the codecs&#xA;av_register_all();&#xA;&#xA;AVFormatContext *pFormatCtx;&#xA;int ret = av_open_input_file(&amp;pFormatCtx, imageFileName, NULL, 0, NULL);&#xA;&#xA;if (ret != 0) {&#xA;    printf("Can&#x27;t open image file &#x27;%s&#x27;: code %d, %s",&#xA;        imageFileName, ret, strerror(AVERROR(ret)));&#xA;}&#xA;

    &#xA;&#xA;

    The above returns the correct absolute file path and error :

    &#xA;&#xA;

    &#xA;

    Failed '/sdcard/DCIM/Camera/IMG083.jpg' : code -1094995529, Unknown error : 1094995529

    &#xA;

    &#xA;&#xA;

    Incidentally, if I omit av_register_all(), it returns with error 2.

    &#xA;&#xA;

    I've compiled ffmpeg with the following arguments :

    &#xA;&#xA;

    &#xA;
    &#xA;

    ./configure —target-os=linux &#xA; —prefix=$PREFIX &#xA; —enable-cross-compile &#xA; —extra-libs="-lgcc" &#xA; —arch=arm &#xA; —cc=$PREBUILT/bin/arm-linux-androideabi-gcc &#xA; —cross-prefix=$PREBUILT/bin/arm-linux-androideabi- &#xA; —nm=$PREBUILT/bin/arm-linux-androideabi-nm &#xA; —sysroot=$PLATFORM &#xA; —extra-cflags=" -O3 -fpic -DANDROID -DHAVE_SYS_UIO_H=1 -Dipv6mr_interface=ipv6mr_ifindex -fasm -Wno-psabi -fno-short-enums -fno-strict-aliasing -finline-limit=300 $OPTIMIZE_CFLAGS " &#xA; —enable-shared &#xA; —enable-static &#xA; —extra-ldflags="-Wl,-rpath-link=$PLATFORM/usr/lib -L$PLATFORM/usr/lib -nostdlib -lc -lm -ldl -llog" &#xA; —disable-everything &#xA; —enable-demuxer=mov &#xA; —enable-demuxer=h264 &#xA; —disable-ffplay &#xA; —enable-protocol=file &#xA; —enable-avformat &#xA; —enable-avcodec &#xA; —enable-decoder=mjpeg &#xA; —enable-decoder=png &#xA; —enable-parser=h264 &#xA; —enable-encoder=h263 &#xA; —enable-encoder=h263p &#xA; —disable-network &#xA; —enable-zlib &#xA; —disable-avfilter &#xA; —disable-avdevice

    &#xA;

    &#xA;

    &#xA;&#xA;

    Any suggestions would be most welcome !

    &#xA;

  • MPEG-2 AAC frame-by-frame audio decoding

    3 mai 2018, par Jonathan May

    I have individual audio frames encoded in MPEG-2 AAC. Each frame consists of 1024 16 bit PCM samples.

    I notice that each AAC frame is a different size. I assume this is a result of the MPEG-2 AAC compression algorithm and perfectly normal.

    I need a way to decode a single frame and get back the original 1024 PCM samples (with error from lossy compression, that’s fine).

    I couldn’t find information about the MPEG-2 AAC algorithm ANYWHERE online. It’s kinda nuts.

    I’ve been trying a crude work around using a library called pydub, which contains a few methods which use FFMPEG’s AAC decoder. Trying to load the audio frame as an AudioSegment using AAC encoding :

    audioData = BytesIO(frame)
    sound = AudioSegment.from_file(audioData, format="aac")

    gives the following error :

    [aac @ 000002d444c1aa00] Estimating duration from bitrate, this may be inaccurate\r\n
    Input #0, aac, from 'C:\\Users\\jmk_m\\AppData\\Local\\Temp\\tmpjl3x0xao':\r\n
     Duration: 00:00:00.19, bitrate: 23 kb/s\r\n
    Stream #0:0: Audio: aac (LC), 22050 Hz, mono, fltp, 23 kb/s\r\nStream mapping:\r\n
    Stream #0:0 -> #0:0 (aac (native) -> pcm_s16le (native))\r\n
    Press [q] to stop, [?] for help\r\n
    Output #0, wav, to 'C:\\Users\\jmk_m\\AppData\\Local\\Temp\\tmpxmp942e4':\r\n
    Metadata:\r\n
    ISFT            : Lavf58.10.100\r\n
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, mono, s16, 352 kb/s\r\n
    Metadata:\r\n      encoder         : Lavc58.13.100 pcm_s16le\r\n
    [aac @ 000002d444cc7480] Reserved bit set.\r\n
    [aac @ 000002d444cc7480] Prediction is not allowed in AAC-LC.\r\n
    Error while decoding stream #0:0: Invalid data found when processing input\r\n
    [aac @ 000002d444cc7480] Reserved bit set.\r\n
    [aac @ 000002d444cc7480] Prediction is not allowed in AAC-LC.\r\n
    Error while decoding stream #0:0: Invalid data found when processing input\r\n
    [aac @ 000002d444cc7480] Prediction is not allowed in AAC-LC.\r\n
    Error while decoding stream #0:0: Invalid data found when processing input\r\n
    size=       2kB time=00:00:00.04 bitrate= 366.2kbits/s speed=5.45x    \r\n
    video:0kB audio:2kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.808594%\r\n
    Conversion failed!\r\n"

    If anyone has any insights as to what may be causing the error, or any alternative approaches, that’d be greatly appreciated !