Recherche avancée

Médias (91)

Autres articles (101)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (10392)

  • libavutil/hwcontext_qsv : fix a bug for mapping vaapi frame to qsv

    16 novembre 2021, par nyanmisaka
    libavutil/hwcontext_qsv : fix a bug for mapping vaapi frame to qsv
    

    The data stored in data[3] in VAAPI AVFrame is VASurfaceID while
    the data stored in pair->first is the pointer of VASurfaceID, so
    we need to do cast to make following commandline works :

    ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 \
    - hwaccel_output_format vaapi -i input.264 \
    - vf "hwmap=derive_device=qsv,format=qsv" -c:v h264_qsv output.264

    Signed-off-by : nyanmisaka <nst799610810@gmail.com>
    Signed-off-by : Wenbin Chen <wenbin.chen@intel.com>
    Signed-off-by : Anton Khirnov <anton@khirnov.net>

    • [DH] libavutil/hwcontext_qsv.c
  • libavfilter/scale : Populate ow/oh when using 0 as w/h

    14 juin 2017, par Kevin Mark
    libavfilter/scale : Populate ow/oh when using 0 as w/h
    

    The input width and height is known at parse time so there's no
    reason ow/oh should not be usable when using 0 as the width or
    height expression.

    Previously in "scale=0:ow" ow would be set to "0" which works,
    conveniently, as "scale=0:0" is perfectly valid input but this breaks
    down when you do something like "scale=0:ow/4" which one could
    reasonably expect to work as well, but does not as ow is 0 not the
    real value.

    This change handles the 0 case for w/h immediately so the ow/oh
    variables work as expected. Consequently, the rest of the code does
    not need to handle 0 input. w/h will always be > 0 or < 0.

    The second explicit (int) cast ensures that ow/oh appear as integers
    as a user might expect when dealing with pixel dimensions.

    Signed-off-by : Kevin Mark <kmark937@gmail.com>
    Signed-off-by : Ronald S. Bultje <rsbultje@gmail.com>

    • [DH] libavfilter/scale.c
  • Some videos fail to chromecast with error MEDIA_UNKNOWN

    1er juin 2020, par JonasVautherin

    Using mkchromecast to cast local mp4 files, some videos work, and some don't (as in : the screen hangs on the blue chromecast logo, suggesting that the initial connection worked). I can reproduce exactly the issue described here.

    &#xA;&#xA;

    So I decided to go one level lower, with pychromecast, and try to see what actually happens when it hangs on the blue logo. I converted two videos to HLS format, and exposed them through an http server. The video that works with mkchromecast also works with my setup, but the one that fails, well... fails on both. With pychromecast, I don't get much more information than :

    &#xA;&#xA;

    &#xA;

    ERROR, code 100 : MEDIA_UNKNOWN.

    &#xA;

    &#xA;&#xA;

    From the Cast documentation, this error means :

    &#xA;&#xA;

    &#xA;

    The media element encountered an unknown error fired from platform. The media element encountered an error that did not indicate it's one of MediaError.MEDIA_ERR_*. This should be rare.

    &#xA;

    &#xA;&#xA;

    It is not rare for me at all, though. I thought that maybe the failing video was in an unsupported format, as described in the documentation. So I tried to compare both videos with the following command :

    &#xA;&#xA;

    ffprobe -v quiet -print_format json -show_streams &#xA;

    &#xA;&#xA;

    Video that works :

    &#xA;&#xA;

    {&#xA;    "streams": [&#xA;        {&#xA;            "index": 0,&#xA;            "codec_name": "h264",&#xA;            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",&#xA;            "profile": "High",&#xA;            "codec_type": "video",&#xA;            "codec_time_base": "1001/48000",&#xA;            "codec_tag_string": "avc1",&#xA;            "codec_tag": "0x31637661",&#xA;            "width": 1920,&#xA;            "height": 1080,&#xA;            "coded_width": 1920,&#xA;            "coded_height": 1088,&#xA;            "has_b_frames": 2,&#xA;            "sample_aspect_ratio": "1:1",&#xA;            "display_aspect_ratio": "16:9",&#xA;            "pix_fmt": "yuv420p",&#xA;            "level": 50,&#xA;            "chroma_location": "left",&#xA;            "refs": 1,&#xA;            "is_avc": "true",&#xA;            "nal_length_size": "4",&#xA;            "r_frame_rate": "24000/1001",&#xA;            "avg_frame_rate": "24000/1001",&#xA;            "time_base": "1/24000",&#xA;            "start_pts": 0,&#xA;            "start_time": "0.000000",&#xA;            "duration_ts": 47127080,&#xA;            "duration": "1963.628333",&#xA;            "bit_rate": "5527977",&#xA;            "bits_per_raw_sample": "8",&#xA;            "nb_frames": "47080",&#xA;            "disposition": {&#xA;                "default": 1,&#xA;                "dub": 0,&#xA;                "original": 0,&#xA;                "comment": 0,&#xA;                "lyrics": 0,&#xA;                "karaoke": 0,&#xA;                "forced": 0,&#xA;                "hearing_impaired": 0,&#xA;                "visual_impaired": 0,&#xA;                "clean_effects": 0,&#xA;                "attached_pic": 0,&#xA;                "timed_thumbnails": 0&#xA;            },&#xA;            "tags": {&#xA;                "language": "und",&#xA;                "handler_name": "VideoHandler"&#xA;            }&#xA;        },&#xA;        {&#xA;            "index": 1,&#xA;            "codec_name": "aac",&#xA;            "codec_long_name": "AAC (Advanced Audio Coding)",&#xA;            "profile": "LC",&#xA;            "codec_type": "audio",&#xA;            "codec_time_base": "1/48000",&#xA;            "codec_tag_string": "mp4a",&#xA;            "codec_tag": "0x6134706d",&#xA;            "sample_fmt": "fltp",&#xA;            "sample_rate": "48000",&#xA;            "channels": 2,&#xA;            "channel_layout": "stereo",&#xA;            "bits_per_sample": 0,&#xA;            "r_frame_rate": "0/0",&#xA;            "avg_frame_rate": "0/0",&#xA;            "time_base": "1/48000",&#xA;            "start_pts": 0,&#xA;            "start_time": "0.000000",&#xA;            "duration_ts": 94254528,&#xA;            "duration": "1963.636000",&#xA;            "bit_rate": "125776",&#xA;            "max_bit_rate": "125776",&#xA;            "nb_frames": "92048",&#xA;            "disposition": {&#xA;                "default": 1,&#xA;                "dub": 0,&#xA;                "original": 0,&#xA;                "comment": 0,&#xA;                "lyrics": 0,&#xA;                "karaoke": 0,&#xA;                "forced": 0,&#xA;                "hearing_impaired": 0,&#xA;                "visual_impaired": 0,&#xA;                "clean_effects": 0,&#xA;                "attached_pic": 0,&#xA;                "timed_thumbnails": 0&#xA;            },&#xA;            "tags": {&#xA;                "language": "und",&#xA;                "handler_name": "SoundHandler"&#xA;            }&#xA;        }&#xA;    ]&#xA;}&#xA;

    &#xA;&#xA;

    Video that does NOT work :

    &#xA;&#xA;

    {                                               &#xA;    "streams": [&#xA;        {&#xA;            "index": 0,&#xA;            "codec_name": "h264",&#xA;            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",&#xA;            "profile": "High",&#xA;            "codec_type": "video",&#xA;            "codec_time_base": "125/5994",&#xA;            "codec_tag_string": "avc1",&#xA;            "codec_tag": "0x31637661",&#xA;            "width": 1920,&#xA;            "height": 1040,&#xA;            "coded_width": 1920,&#xA;            "coded_height": 1040,&#xA;            "has_b_frames": 2,&#xA;            "sample_aspect_ratio": "1:1",&#xA;            "display_aspect_ratio": "24:13",&#xA;            "pix_fmt": "yuv420p",&#xA;            "level": 41,&#xA;            "chroma_location": "left",&#xA;            "refs": 1,&#xA;            "is_avc": "true",&#xA;            "nal_length_size": "4",&#xA;            "r_frame_rate": "2997/125",&#xA;            "avg_frame_rate": "2997/125",&#xA;            "time_base": "1/11988",&#xA;            "start_pts": 0,&#xA;            "start_time": "0.000000",&#xA;            "duration_ts": 97032000,&#xA;            "duration": "8094.094094",&#xA;            "bit_rate": "2499644",&#xA;            "bits_per_raw_sample": "8",&#xA;            "nb_frames": "194064",&#xA;            "disposition": {&#xA;                "default": 1,&#xA;                "dub": 0,&#xA;                "original": 0,&#xA;                "comment": 0,&#xA;                "lyrics": 0,&#xA;                "karaoke": 0,&#xA;                "forced": 0,&#xA;                "hearing_impaired": 0,&#xA;                "visual_impaired": 0,&#xA;                "clean_effects": 0,&#xA;                "attached_pic": 0,&#xA;                "timed_thumbnails": 0&#xA;            },&#xA;            "tags": {&#xA;                "creation_time": "2020-03-27T09:56:39.000000Z",&#xA;                "language": "und",&#xA;                "handler_name": "L-SMASH Video Media Handler"&#xA;            }&#xA;        },&#xA;        {&#xA;            "index": 1,&#xA;            "codec_name": "aac",&#xA;            "codec_long_name": "AAC (Advanced Audio Coding)",&#xA;            "profile": "LC",&#xA;            "codec_type": "audio",&#xA;            "codec_time_base": "1/48000",&#xA;            "codec_tag_string": "mp4a",&#xA;            "codec_tag": "0x6134706d",&#xA;            "sample_fmt": "fltp",&#xA;            "sample_rate": "48000",&#xA;            "channels": 6,&#xA;            "channel_layout": "5.1",&#xA;            "bits_per_sample": 0,&#xA;            "r_frame_rate": "0/0",&#xA;            "avg_frame_rate": "0/0",&#xA;            "time_base": "1/48000",&#xA;            "start_pts": 0,&#xA;            "start_time": "0.000000",&#xA;            "duration_ts": 388516320,&#xA;            "duration": "8094.090000",&#xA;            "bit_rate": "224000",&#xA;            "max_bit_rate": "224000",&#xA;            "nb_frames": "379413",&#xA;            "disposition": {&#xA;                "default": 1,&#xA;                "dub": 0,&#xA;                "original": 0,&#xA;                "comment": 0,&#xA;                "lyrics": 0,&#xA;                "karaoke": 0,&#xA;                "forced": 0,&#xA;                "hearing_impaired": 0,&#xA;                "visual_impaired": 0,&#xA;                "clean_effects": 0,&#xA;                "attached_pic": 0,&#xA;                "timed_thumbnails": 0&#xA;            },&#xA;            "tags": {&#xA;                "creation_time": "2020-03-27T09:56:39.000000Z",&#xA;                "language": "eng",&#xA;                "handler_name": "SoundHandler"&#xA;            }&#xA;        }&#xA;    ]&#xA;}&#xA;

    &#xA;&#xA;

    For what I can see, the codecs are the same, and the only difference I can make is in the aspect ratio.

    &#xA;&#xA;

    What could be the reason for this "MEDIA_UNKNOWN" error on the chromecast side ? Is there something more I could compare between those two videos ? Could it be that the chromecast fails because of the aspect ratio ?

    &#xA;