Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (108)

  • Modifier la date de publication

    21 juin 2013, par

    Comment changer la date de publication d’un média ?
    Il faut au préalable rajouter un champ "Date de publication" dans le masque de formulaire adéquat :
    Administrer > Configuration des masques de formulaires > Sélectionner "Un média"
    Dans la rubrique "Champs à ajouter, cocher "Date de publication "
    Cliquer en bas de la page sur Enregistrer

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (11935)

  • How can I play an MPG file using Electron on windows without converting it ? [closed]

    1er novembre 2024, par Indy Singh

    I am trying to play MPG files in an Electron app on Windows. The files contain mpeg1 encoded video. I am using the video element. I can play MP4 files, but the MPG files do not play. One requirement is to be able to play the video from some arbitrary start time.

    


    Electron uses the Chrome engine to render output. Google Chrome app also cannot play MPG files.

    


    Electron uses ffmpeg.dll to play the video file. As far as I can tell ffmpeg.dll contains the mpeg1 decoder, but the video element does not appear to make use of it.

    


    I know I can convert the video before playing, however conversion takes several minutes and is not an ideal user experience. As a fallback I can convert small segments as needed, which still takes a bit of time, so it is not ideal.

    


    Streaming the video from a server process with on-the-fly conversion is possible, but I believe it may not work well with the need to seek. I could be wrong here.

    


    Any other suggestions would be welcome.

    


    EDIT 1 :
I am developing an Electron App using the programming languages TypeScript, JavaScript and HTML5 and the tools Nodejs and Electron. I did not post a code snippet as I am looking for an approach, not a fix for code. Not sure why this question got flagged as being 'not about programming'.

    


    A Google search does not show many options other than those mentioned below.

    


    EDIT 2 :
Thanks to the suggestion from VC.One I am looking at the JSMPEG library. It does look like it could possibly do the job but with 'numerous limitations'. It also say the other alternative called Broadway is 'huge, compiled with emscripten and quite complicated'

    


    EDIT 3 :
I am now looking hls.js, which I think will likely work for my needs. It integrates well with using the html5 video element. I can use it with on-demand decoding of the MPG MPEG1 video file in small segments.

    


  • ffmpeg command is not able capture mobile video image properly. Always getting stretch image

    1er février 2021, par Vipul Jethva

    I have tried many ffmpeg commands to capture image from mobile video but it's always getting stretch image output.

    


    There are following commands which I used. My video format is mobile shoot. Desktop video is fine. Only mobile video having problem. Always getting stretch image. I need perfect image horizontally and vertically without stretch image.

    


    $command = "ffmpeg  -i &lt;<input video="video" />> -r 0.0033 -vf scale=-1:120 -vcodec png output.jpg";&#xA;&#xA;$command = "ffmpeg -i &lt;<input video="video" />> -ss 00:00:25 -vframes 1  output.jpg";&#xA;&#xA;$command = "ffmpeg -ss 00:00:45 -i &lt;<input video="video" />> -vframes 1 -q:v 2 output.jpg";&#xA;&#xA;$command = "ffmpeg -i &lt;<input video="video" />> -deinterlace -an -ss 00:00:45 -f mjpeg -t 1 -r 1 -y -s 850x478 output.jpg 2>&amp;1";&#xA;&#xA;$command = "ffmpeg -ss 100 -i &lt;<input video="video" />> -frames:v 1 -q:v 2 -vf scale=850:478:force_original_aspect_ratio=increase,crop=850:478 output.jpg";&#xA;

    &#xA;

    Please let me know where I am wrong in above command ? Or if you have other command please let me know.

    &#xA;

  • How to make ffmpeg remux an iPhone MOV (HEVC) that works on Apple products ?

    21 janvier 2024, par Mikael Finstad

    I want to remux a HEVC file (without encoding). I have tried most options, even removing audio, but I cannot get an output file that plays smoothly with Apple products.

    &#xA;&#xA;

    First I AirDrop any MOV from an iPhone recorded with the camera in HEVC.

    &#xA;&#xA;

    Then run :

    &#xA;&#xA;

    ffmpeg -i IMG_4605.MOV -c copy out.mov&#xA;

    &#xA;&#xA;

    Then if I send out.mov back to the iPhone and try to play it back, it plays back with glitches while seeking, like this : (original to the right)

    &#xA;&#xA;

    Result&#xA;Original

    &#xA;&#xA;

    When I try to drag the file into a new iMovie project and try to play it back, it freezes the whole iMovie app and needs a force quit.

    &#xA;&#xA;

    Doing the same with the original causes no issues, so obviously there is something wrong with the way ffmpeg remuxes it, or something wrong with Apple's software.

    &#xA;&#xA;

    ffmpeg -i IMG_4605.MOV &#xA;ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with Apple clang version 11.0.0 (clang-1100.0.33.17)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack&#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;IMG_4605.MOV&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 0&#xA;    compatible_brands: qt  &#xA;    creation_time   : 2019-12-29T10:20:56.000000Z&#xA;    com.apple.quicktime.location.ISO6709: &#x2B;01.3602&#x2B;103.9897&#x2B;024.438/&#xA;    com.apple.quicktime.make: Apple&#xA;    com.apple.quicktime.model: iPhone 11&#xA;    com.apple.quicktime.software: 13.3&#xA;    com.apple.quicktime.creationdate: 2019-12-29T18:20:56&#x2B;0800&#xA;  Duration: 00:00:09.00, start: 0.000000, bitrate: 24882 kb/s&#xA;    Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 3840x2160, 24659 kb/s, 29.99 fps, 29.97 tbr, 600 tbn, 600 tbc (default)&#xA;    Metadata:&#xA;      rotate          : 90&#xA;      creation_time   : 2019-12-29T10:20:56.000000Z&#xA;      handler_name    : Core Media Video&#xA;      encoder         : HEVC&#xA;    Side data:&#xA;      displaymatrix: rotation of -90.00 degrees&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2019-12-29T10:20:56.000000Z&#xA;      handler_name    : Core Media Audio&#xA;    Stream #0:2(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2019-12-29T10:20:56.000000Z&#xA;      handler_name    : Core Media Metadata&#xA;    Stream #0:3(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2019-12-29T10:20:56.000000Z&#xA;      handler_name    : Core Media Metadata&#xA;    Stream #0:4(und): Data: none (mebx / 0x7862656D), 17 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2019-12-29T10:20:56.000000Z&#xA;      handler_name    : Core Media Metadata&#xA;

    &#xA;&#xA;

    ffmpeg -i out.mov&#xA;ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with Apple clang version 11.0.0 (clang-1100.0.33.17)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack&#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;out.mov&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 512&#xA;    compatible_brands: qt  &#xA;    encoder         : Lavf58.29.100&#xA;  Duration: 00:00:09.00, start: 0.000000, bitrate: 24860 kb/s&#xA;    Stream #0:0: Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 3840x2160, 24659 kb/s, 29.99 fps, 29.97 tbr, 19200 tbn, 19200 tbc (default)&#xA;    Metadata:&#xA;      rotate          : 90&#xA;      handler_name    : Core Media Video&#xA;      encoder         : HEVC&#xA;    Side data:&#xA;      displaymatrix: rotation of -90.00 degrees&#xA;    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : Core Media Audio&#xA;

    &#xA;&#xA;

    If I open out.mov in QuickTime and do a trim and export it, then it it still "broken", so I'm thinking there's nothing wrong with the actual muxing into MOV, because QuickTime is passing the error on.

    &#xA;&#xA;

    I noticed that out.mov has different parameters 19200 tbn, 19200 tbc (vs original 600 tbn, 600 tbc). However, if I force set these to 600 with -video_track_timescale 600 the output file is still broken.

    &#xA;&#xA;

    Anyone got some insights ?

    &#xA;