Recherche avancée

Médias (0)

Mot : - Tags -/optimisation

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

Autres articles (66)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • (Dés)Activation de fonctionnalités (plugins)

    18 février 2011, par

    Pour gérer l’ajout et la suppression de fonctionnalités supplémentaires (ou plugins), MediaSPIP utilise à partir de la version 0.2 SVP.
    SVP permet l’activation facile de plugins depuis l’espace de configuration de MediaSPIP.
    Pour y accéder, il suffit de se rendre dans l’espace de configuration puis de se rendre sur la page "Gestion des plugins".
    MediaSPIP est fourni par défaut avec l’ensemble des plugins dits "compatibles", ils ont été testés et intégrés afin de fonctionner parfaitement avec chaque (...)

  • Activation de l’inscription des visiteurs

    12 avril 2011, par

    Il est également possible d’activer l’inscription des visiteurs ce qui permettra à tout un chacun d’ouvrir soit même un compte sur le canal en question dans le cadre de projets ouverts par exemple.
    Pour ce faire, il suffit d’aller dans l’espace de configuration du site en choisissant le sous menus "Gestion des utilisateurs". Le premier formulaire visible correspond à cette fonctionnalité.
    Par défaut, MediaSPIP a créé lors de son initialisation un élément de menu dans le menu du haut de la page menant (...)

Sur d’autres sites (11042)

  • Start of video is not labeled as "0" in QuickTime Video from GoPro

    26 mars 2020, par John Terragnoli

    I’m trying to combine four GoPro videos into a single video, and then rotate it 90 degrees. However, the time scales on the bottom of the videos are all wrong. The videos are 17 minutes and 42 second. But the beginning time is labeled as 5:15:20:32 and the ending time is 5:33:01:32. It just looks really weird and I’d like to fix it. After I use ffmpeg to rotate and concatenate the videos, the problem persists. Could it possibly be fixed with Exiftool ?

    ffmpeg -safe 0 -f concat -i list.txt -vcodec copy -acodec copy merged_videos.MP4

    ffmpeg -i input.mov -vf "transpose=1" output.mov

    Here is the exiftool information on one of the videos :

    File Name                       : GOPR3023.MP4
    Directory                       : .
    File Size                       : 3.7 GB
    File Modification Date/Time     : 2018:04:12 14:56:16-05:00
    File Access Date/Time           : 2020:03:25 12:17:18-05:00
    File Inode Change Date/Time     : 2020:03:25 17:57:04-05:00
    File Permissions                : rwxrwxrwx
    File Type                       : MP4
    File Type Extension             : mp4
    MIME Type                       : video/mp4
    Major Brand                     : MP4 v1 [ISO 14496-1:ch13]
    Minor Version                   : 2013.10.18
    Compatible Brands               : mp41
    Movie Data Size                 : 4001979951
    Movie Data Offset               : 28
    Movie Header Version            : 0
    Create Date                     : 2018:04:12 14:38:32
    Modify Date                     : 2018:04:12 14:38:32
    Time Scale                      : 60000
    Duration                        : 0:17:42
    Preferred Rate                  : 1
    Preferred Volume                : 100.00%
    Preview Time                    : 0 s
    Preview Duration                : 0 s
    Poster Time                     : 0 s
    Selection Time                  : 0 s
    Selection Duration              : 0 s
    Current Time                    : 0 s
    Next Track ID                   : 6
    Firmware Version                : HD5.03.02.51.00
    Lens Serial Number              : NAH6092300301117
    Camera Serial Number Hash       : 34676f2cdf49b86a1514817a93377bf7
    Track Header Version            : 0
    Track Create Date               : 2018:04:12 14:38:32
    Track Modify Date               : 2018:04:12 14:38:32
    Track ID                        : 1
    Track Duration                  : 0:17:42
    Track Layer                     : 0
    Track Volume                    : 0.00%
    Image Width                     : 1920
    Image Height                    : 1080
    Graphics Mode                   : srcCopy
    Op Color                        : 0 0 0
    Compressor ID                   : avc1
    Source Image Width              : 1920
    Source Image Height             : 1080
    X Resolution                    : 72
    Y Resolution                    : 72
    Compressor Name                 : GoPro AVC encoder
    Bit Depth                       : 24
    Color Representation            : nclx 1 1 1
    Video Frame Rate                : 59.94
    Time Code                       : 3
    Balance                         : 0
    Audio Format                    : mp4a
    Audio Channels                  : 2
    Audio Bits Per Sample           : 16
    Audio Sample Rate               : 48000
    Text Font                       : Unknown (21)
    Text Face                       : Plain
    Text Size                       : 10
    Text Color                      : 0 0 0
    Background Color                : 65535 65535 65535
    Font Name                       : Helvetica
    Other Format                    : tmcd
    Warning                         : [minor] The ExtractEmbedded option may find more tags in the movie data
    Matrix Structure                : 1 0 0 0 1 0 0 0 1
    Media Header Version            : 0
    Media Create Date               : 2018:04:12 14:38:32
    Media Modify Date               : 2018:04:12 14:38:32
    Media Time Scale                : 60000
    Media Duration                  : 0:17:42
    Handler Class                   : Media Handler
    Handler Type                    : NRT Metadata
    Handler Description             : GoPro SOS
    Gen Media Version               : 0
    Gen Flags                       : 0 0 0
    Gen Graphics Mode               : srcCopy
    Gen Op Color                    : 0 0 0
    Gen Balance                     : 0
    Meta Format                     : fdsc
    Image Size                      : 1920x1080
    Megapixels                      : 2.1
    Avg Bitrate                     : 30.1 Mbps
    Rotation                        : 0

    Part 2
    There is a pretty obvious "stutter" at the 17:42 mark where the two clips are combined. I’ve tried using ffmpeg and iMovie, but both give the same results. The GoPro broke up the event into multiple clips on it’s own so it seems weird that there would be any information missing. Is there any way to get rid of this stutter ?

    Thanks !

  • Create animated gif from a set of png images

    12 avril 2020, par Zizi96

    I'm trying to use ffpmeg to convert a list of png to a gif.

    



    Running C:\Users\Me\Art\Animations\wubz\output> dir shows my files :

    



    12/04/2020  16:48    <dir>          ..&#xA;12/04/2020  16:45           136,706 wubz_0001.png&#xA;12/04/2020  16:45           136,180 wubz_0002.png&#xA;12/04/2020  16:45           136,413 wubz_0003.png&#xA;12/04/2020  16:45           136,099 wubz_0004.png&#xA;12/04/2020  16:45           136,309 wubz_0005.png&#xA;12/04/2020  16:45           137,172 wubz_0006.png&#xA;</dir>

    &#xA;&#xA;

    The code I'm running in command prompt from C:\Users\Me\Art\Animations\wubz\output> :

    &#xA;&#xA;

    ffmpeg-f image2 -framerate 30 -i wubz_%d.png video.flv&#xA;

    &#xA;&#xA;

    gives the error message :&#xA;[image2 @ 000001efd6c4bac0] Could find no file with path &#x27;wubz_%d.png&#x27; and index in the range 0-4&#xA;wubz_%d.png: No such file or directory

    &#xA;&#xA;

    Can someone explain what I'm doing wrong, I don't get why ffmpeg isn't seeing the png files in the output directory.

    &#xA;

  • Why won't this encrypted HLS video play on iOS (but works on Windows Chrome via hls.js library) ?

    8 mai 2023, par Ryan

    I am trying to play an MP4 test video.

    &#xA;

    My /home/vagrant/Code/example/public/hls_hls.keyInfo is :

    &#xA;

    https://example.com/hls.key&#xA;/home/vagrant/Code/example/public/hls_hls.key&#xA;467216aae8a26fb699080812628031955e304a66e9e4480f9b70d31d8fe94e9a&#xA;

    &#xA;

    My /home/vagrant/Code/example/public/hls_hls.key was generated using PHP : hex2bin(&#x27;467216aae8a26fb699080812628031955e304a66e9e4480f9b70d31d8fe94e9a&#x27;)

    &#xA;

    The ffmpeg command for encrypting the video as HLS playlist with "ts" files :

    &#xA;

    &#x27;/usr/bin/ffmpeg&#x27; &#x27;-y&#x27; &#x27;-i&#x27; &#x27;storage/app/sample_media2/2020-02-27/Sample_Videos_5.mp4&#x27; &#xA;&#x27;-c:v&#x27; &#x27;libx264&#x27; &#x27;-s:v&#x27; &#x27;1920x1080&#x27; &#x27;-crf&#x27; &#x27;20&#x27; &#x27;-sc_threshold&#x27; &#x27;0&#x27; &#x27;-g&#x27; &#x27;48&#x27; &#xA;&#x27;-keyint_min&#x27; &#x27;48&#x27; &#x27;-hls_list_size&#x27; &#x27;0&#x27; &#xA;&#x27;-hls_time&#x27; &#x27;10&#x27; &#x27;-hls_allow_cache&#x27; &#x27;0&#x27; &#x27;-b:v&#x27; &#x27;4889k&#x27; &#x27;-maxrate&#x27; &#x27;5866k&#x27; &#xA;&#x27;-hls_segment_type&#x27; &#x27;mpegts&#x27; &#x27;-hls_fmp4_init_filename&#x27; &#x27;output_init.mp4&#x27; &#xA;&#x27;-hls_segment_filename&#x27; &#x27;storage/app/public/test/output_1080p_%04d.ts&#x27; &#xA;&#x27;-hls_key_info_file&#x27; &#x27;/home/vagrant/Code/example/public/hls_hls.keyInfo&#x27; &#xA;&#x27;-strict&#x27; &#x27;-2&#x27; &#x27;-threads&#x27; &#x27;12&#x27; &#x27;storage/app/public/test/output_1080p.m3u8&#x27;&#xA;

    &#xA;

    Then, I know from https://caniuse.com/#search=hls that Windows Chrome won't be able to play the HLS video without a library, so I use https://github.com/video-dev/hls.js/, and Windows Chrome successfully plays the encrypted video !

    &#xA;

    However, iOS Safari is unable to play it (with or without the hls.js library).

    &#xA;

    On iOS Safari, when I try to play the video, I see just a quick glimpse (less than a second) where the screen shows 0:15, so it must be reading and decrypting enough to know the correct duration of the video.

    &#xA;

    So, to debug, I log events :

    &#xA;

    const nativeHlsEvents = [&#x27;play&#x27;, &#x27;playing&#x27;, &#x27;abort&#x27;, &#x27;error&#x27;, &#x27;canplaythrough&#x27;, &#x27;waiting&#x27;, &#x27;loadeddata&#x27;, &#x27;loadstart&#x27;, &#x27;progress&#x27;, &#x27;timeupdate&#x27;, &#x27;volumechange&#x27;];&#xA;$.each(nativeHlsEvents, function (i, eventType) {&#xA;    video.addEventListener(eventType, (event) => {//https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement&#xA;        console.log(eventType, event);&#xA;        if (eventType === &#x27;error&#x27;) {&#xA;            console.error(video.error);//https://developer.mozilla.org/en-US/docs/Web/API/HTMLMediaElement/error&#xA;        }&#xA;    });&#xA;});&#xA;

    &#xA;

    I see in the console log :

    &#xA;

    loadstart, {"isTrusted":true}&#xA;progress, {"isTrusted":true}&#xA;play, {"isTrusted":true}&#xA;waiting, {"isTrusted":true}&#xA;error, {"isTrusted":true}&#xA;video.error, {}&#xA;

    &#xA;

    I don't know how to find more details about the error.

    &#xA;

    Note that even though Windows Chrome successfully plays the video, it too shows warnings in the console log :

    &#xA;

    {"type":"mediaError","details":"fragParsingError","fatal":false,"reason":"TS packet did not start with 0x47","frag":{"...&#xA;{"type":"mediaError","details":"fragParsingError","fatal":false,"reason":"no audio/video samples found","frag":{...&#xA;

    &#xA;

    Where is my problem ?

    &#xA;