Recherche avancée

Médias (1)

Mot : - Tags -/illustrator

Autres articles (97)

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

  • More Cinepak Madness

    20 octobre 2011, par Multimedia Mike — Codec Technology

    Fellow digital archaeologist Clone2727 found a possible fifth variant of the Cinepak video codec. He asked me if I cared to investigate the sample. I assured him I wouldn’t be able to die a happy multimedia nerd unless I have cataloged all possible Cinepak variants known to exist in the wild. I’m sure there are chemistry nerds out there who are ecstatic when another element is added to the periodic table. Well, that’s me, except with weird multimedia formats.

    Background
    Cinepak is a video codec that saw widespread use in the early days of digital multimedia. To date, we have cataloged 4 variants of Cinepak in the wild. This distinction is useful when trying to write and maintain an all-in-one decoder. The variants are :

    1. The standard type : Most Cinepak data falls into this category. It decodes to a modified/simplified YUV 4:2:0 planar colorspace and is often seen in AVI and QuickTime/MOV files.
    2. 8-bit greyscale : Essentially the same as the standard type but with only a Y plane. This has only been identified in AVI files and is distinguished by the file header’s video bits/pixel field being set to 8 instead of 24.
    3. 8-bit paletted : Again, this is identified by the video header specifying 8 bits/pixel for a Cinepak stream. There is essentially only a Y plane in the data, however, each 8-bit value is a palette index. The palette is transported along with the video header. To date, only one known sample of this format has even been spotted in the wild, and it’s classified as NSFW. It is also a QuickTime/MOV file.
    4. Sega/FILM CPK data : Sega Saturn games often used CPK files which stored a variant of Cinepak that, while very close the standard Cinepak, couldn’t be decoded with standard decoder components.

    So, a flexible Cinepak decoder has to identify if the file’s video header specified 8 bits/pixel. How does it distinguish between greyscale and paletted ? If a file is paletted, a custom palette should have been included with the video header. Thus, if video bits/pixel is 8 and a palette is present, use paletted ; else, use greyscale. Beyond that, the Cinepak decoder has a heuristic to determine how to handle the standard type of data, which might deviate slightly if it comes from a Sega CPK file.

    The Fifth Variant ?
    Now, regarding this fifth variant– the reason this issue came up is because of that aforementioned heuristic. Basically, a Cinepak chunk is supposed to store the length of the entire chunk in its header. The data from a Sega CPK file plays fast and loose with this chunk size and the discrepancy makes it easy to determine if the data requires special handling. However, a handful of files discovered on a Macintosh game called “The Journeyman Project : Pegasus Prime” have chunk lengths which are sometimes in disagreement with the lengths reported in the containing QuickTime file’s stsz atom. This trips the heuristic and tries to apply the CPK rules against Cinepak data which, aside from the weird chunk length, is perfectly compliant.

    Here are the first few chunk sizes, as reported by the file header (stsz atom) and the chunk :

    size from stsz = 7880 (0x1EC8) ; from header = 3940 (0xF64)
    size from stsz = 3940 (0xF64) ; from header = 3940 (0xF64)
    size from stsz = 15792 (0x3DB0) ; from header = 3948 (0xF6C)
    size from stsz = 11844 (0x2E44) ; from header = 3948 (0xF6C)
    

    Hey, there’s a pattern here. If they don’t match, then the stsz size is an even multiple of the chunk size (2x, 3x, or 4x in my observation). I suppose I could revise the heuristic to state that if the stsz size is 2x, 3x, 4x, or equal to the chunk header, qualify it as compliant Cinepak data.

    Of course it feels impure, but software engineering is rarely about programmatic purity. A decade of special cases in the FFmpeg / Libav codebases are a testament to that.

    What’s A Variant ?
    Suddenly, I find myself contemplating what truly constitutes a variant. Maybe this was just a broken encoder program making these files ? And for that, I assign it the designation of distinct variation, like some sort of special, unique showflake ?

    Then again, I documented Magic Carpet FLIC as being a distinct variant of the broader FLIC format (which has an enormous number of variants as well).

  • avutil/avutil : make AV_TIME_BASE_Q available in C++

    18 septembre 2023, par Zhao Zhili
    avutil/avutil : make AV_TIME_BASE_Q available in C++
    

    ISO C++ forbids compound-literals. It's not available with MSVC.
    This is a known issue from 10 years ago, and that's why there is a
    av_get_time_base_q().

    Since we have no plan to remove AV_TIME_BASE_Q, just make it
    available in C++.

    There are multiple choices :
    1. Use C++11 syntax : AVRational1, AV_TIME_BASE

    Users may still use C++98 to write new code. So no.

    2. Use av_get_time_base_q().

    It's for this purpose. But it's not compile time constants as
    AV_TIME_BASE_Q in C.

    So I choose av_make_q() as Anton's suggestion.

    https://libav-devel.libav.narkive.com/ZQCWfTun/patch-0-2-fix-avutil-h-usage-from-c
    Signed-off-by : Zhao Zhili <zhilizhao@tencent.com>

    • [DH] doc/APIchanges
    • [DH] libavutil/avutil.h
    • [DH] libavutil/version.h
  • Ffmpeg hls segment stop segmenting after 5300 segments

    9 avril 2019, par Hug Duino

    I’m trying to make a http video streaming using hls, ffmpeg and raspivid and I need a replay time of 1 day but after 5300 segments ffmpeg stop segmenting and continue writing the video to the 5301 segment for the end of the day (5300/5301 is an average number, +- 50 segments)
    I have plenty of storage space, my camera can record all the day. The only problem is ffmpeg who decide to stop segmenting after 5300 segments

    Thank you and sorry for my poor english ^^

    Here is my streaming script :

    base="/var/www/html/"

    set -x

    rm -rf /var/www/html/ppc/saves/live live.h264
    mkdir -p /var/www/html/ppc/saves/live

    # fifos seem to work more reliably than pipes - and the fact that the
    # fifo can be named helps ffmpeg guess the format correctly.
    mkfifo live.h264
    raspivid -a 1036 -w 1640 -h 1232 -fps 15 -t 37200000 -b 1500000 -o - | psips > live.h264 &amp;

    # Letting the buffer fill a little seems to help ffmpeg to id the stream
    sleep 2

    # Need ffmpeg around 1.0.5 or later. The stock Debian ffmpeg won't work.
    # I'm not aware of options apart from building it from source. I have
    # Raspbian packags built from Debian Multimedia sources. Available on
    # request but I don't want to post them publicly because I haven't cross
    # compiled all of Debian Multimedia and conflicts can occur.
    ffmpeg -y -r 15 -i live.h264 -f alsa  -i default:CARD=C525 -r:a 48000 -ac 1 -af adelay=32s -c:v copy -c:a aac -b:a 128k -map 0:0 -map 1:0 -r 30 \
    -f segment \
    -segment_time 7 \
    -segment_format mpegts \
    -segment_list /var/www/html/ppc/saves/live/live.m3u8 \
    -segment_list_flags live \
    -segment_list_type m3u8 \
    -initial_offset -9 \
    -strict 2 /var/www/html/ppc/saves/live/%08d.ts &lt; /dev/null```