Recherche avancée

Médias (91)

Autres articles (46)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

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

  • Fragmented MP4 not playing in ffplay/QuickTime/Safari, but in VLC

    6 août 2020, par Stack64

    I encoded a fMP4-Video (HEVC) in Swift using VideoToolbox and CoreMedia. The resulting fragmented MP4 is only playing in VLC.

    


    The library I am using to write the fMP4 is an HEVC-adapted version of this GitHub-Project : https://github.com/krad/morsel

    


    Process of encoding and writing :

    


      

    1. VideoToolbox : Encoding SampleBuffer from the camera (VTCompressionSession, as described in WWDC 2014 Session 513)
    2. 


    3. Using CoreMedia-Functions (e.g. CMVideoFormatDescriptionGetHEVCParameterSetAtIndex, CMVideoFormatDescriptionGetDimensions) to get the encoded streams metadata. I am writing the content of CMFormatDescriptionGetExtension(description, extensionKey: "SampleDescriptionExtensionAtoms" as CFString)["hvcC"] directly to the hvcC box. This box is obviously written correctly, when I alter one bit of the box of the mp4, QuickTime throws an error.
    4. 


    5. I am appending the sample buffer data to the morsel-library, which manages fragmentation and creates the moof and mdat atoms.
    6. 


    


    The result file is playable in VLC, when I just let the playback "run" without doing anything. When I scroll the time in VLC, VLC crashes and the playback stops.

    


    It is also sort of "playable" in Safari and QuickTime (no error message shown, the playback window opens and the correct length of the file is shown, I can even change to playback time / play/pause, but there is no video shown. The window remains empty. And that is the problem I have. I need to get an fMP4 running in Safari and QuickTime.

    


    The file is not playing at all in ffplay (same problem when converting with ffmpeg). The line where the playback time is shown remains nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0 , there are no error messages. The playback just does not start.
When playing the file with ffplay, this is the output :

    


    ffplay version 4.3 Copyright (c) 2003-2020 the FFmpeg developers
  built with Apple clang version 11.0.3 (clang-1103.0.32.62)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3_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-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --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
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp41mp42isomhlsf
    creation_time   : 2020-08-03T20:41:08.000000Z
  Duration: N/A, bitrate: N/A
    Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 1920x1080, SAR 1:1 DAR 16:9, 1000000000.00 tbr, 1000000000.00 tbn, 1000000000.00 tbc (default)
    Metadata:
      creation_time   : 2020-08-03T20:41:08.000000Z
      handler_name    : video
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0 


    


    My file has this structure :

    


    ftyp
moov
    mvhd
    trak
        tkhd
        mdia
            mdhd
            hdlr
            minf
                vmhd
                dinf
                    dref
                stbl
                    stsd
                    stts
                    stsc
                    stsz
                    stco
    mvex
        trex
moof-(1)
mdat
moof-(2)
mdat 
...


    


    The result file I want to create should be like the fMP4 served within this HLS playlist : (Example : https://developer.apple.com/streaming/examples/advanced-stream-hevc.html, Playlist : https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_adv_example_hevc/master.m3u8)
This file has the following structure :

    


    ftyp
moov
    mvhd
    trak
        tkhd
        mdia
            mdhd
            hdlr
            minf
                vmhd
                dinf
                    dref
                stbl
                    stsd
                    stts
                    stsc
                    stsz
                    stco
    trak (same structure as above)
    mvex
        trex
moof-(1)
mdat
moof-(2)
mdat 
...


    


    This file from Apple plays perfectly in ffmpeg and QuickTime/Safari. Except for the second trak atom, it has the same structure.

    


    The "good" file is : https://devstreaming-cdn.apple.com/videos/streaming/examples/bipbop_adv_example_hevc/v14/main.mp4 (It is intended for use in a HLS Playlist I've downloaded it with curl)

    


    The "bad" file is : https://www.transfernow.net/ddl/fmp4_bad (link should work, tested it just now :) ). The video shows a slowly rotating sheet of paper.

    


    Any suggestions what the problem with my file is ?
Thanks in advance !

    


  • how to add hvt1 hvc2 to ffmpeg ?

    19 août 2020, par user10716022

    i only add libavformat library isom.c

    


    { AV_CODEC_ID_HEVC , MKTAG ('h', 'v', 'c', '2') }, /* HEVC / H.265 coded
with gpac */
 { AV_CODEC_ID_HEVC , MKTAG ('h', 'v', 't', '1') }, /* HEVC / H.265 coded
with gpac */


    


    i want use ffmpeg mpeg dash srd

    


    MPD video code ffmpeg do not have
this is my MPD

    


    &lt;?xml version="1.0"?>&#xA;&#xA;<mpd xmlns="urn:mpeg:dash:schema:mpd:2011" minbuffertime="PT1.500S" type="static" mediapresentationduration="PT0H3M37.792S" maxsegmentduration="PT0H0M5.000S" profiles="urn:mpeg:dash:profile:isoff-live:2011">&#xA; <programinformation moreinformationurl="http://gpac.io">&#xA;  &#xA; </programinformation>&#xA;&#xA; <period duration="PT0H3M37.792S">&#xA;  <adaptationset segmentalignment="true" maxwidth="1920" maxheight="1012" maxframerate="24" par="1920:1012" lang="und" startwithsap="1">&#xA;   <essentialproperty schemeiduri="urn:mpeg:dash:srd:2014" value="1,0,0,0,0"></essentialproperty>&#xA;   <segmenttemplate media="output_qp22_dash_track1_$Number$.m4s" initialization="hight01_set1_init.mp4" timescale="24000" startnumber="1" duration="120000"></segmenttemplate>&#xA;   <representation mimetype="video/mp4" codecs="hvc2.1.6.L186.80" width="1920" height="1012" framerate="24" sar="1:1" bandwidth="3010576">&#xA;   </representation>&#xA;  </adaptationset>&#xA;</period>&#xA;</mpd>&#xA;

    &#xA;

  • ffmpeg only processes first image

    8 septembre 2020, par Michael Price

    I have a directory of .png images (I had previously tried .jpg until I read somewhere ffmpeg prefers .png).

    &#xA;

    The images share a file numbering format cof000.png - cof358.png.

    &#xA;

    I want to convert those images into a moving picture format. MPG or MP4 will be fine.

    &#xA;

    The command I have tried is

    &#xA;

    ffmpeg.exe -framerate 25 -i cof%03d.png -r 6 output.mp4&#xA;

    &#xA;

    I adapted the command from this post, here :

    &#xA;

    https://stackoverflow.com/questions/53778503/ffmpeg-video-slideshow-only-takes-first-image&#xA;

    &#xA;

    Even after trying numerous different permutations of the command the final file only has the first image in it. I am using windows.

    &#xA;

    What ffmpeg command do I need to use on Windows to compile all 180 image files into a single moving image ?

    &#xA;

    Here is the output from using the command :

    &#xA;

    $ ffmpeg.exe -framerate 25 -i cof%03d.png -r 6 output.mp4&#xA;ffmpeg version 4.3 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 9.3.1 (GCC) 20200621&#xA;  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enabl&#xA;e-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enab&#xA;le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enabl&#xA;e-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --&#xA;enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-l&#xA;ibvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom&#xA;--enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11&#xA;va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;Input #0, image2, from &#x27;cof%03d.png&#x27;:&#xA;  Duration: 00:00:00.04, start: 0.000000, bitrate: N/A&#xA;    Stream #0:0: Video: png, rgb24(pc), 1200x1200 [SAR 2834:2834 DAR 1:1], 25 tbr, 25 tbn, 25 tbc&#xA;File &#x27;output.mp4&#x27; already exists. Overwrite? [y/N] y&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))&#xA;Press [q] to stop, [?] for help&#xA;[libx264 @ 000001f7da6985c0] using SAR=1/1&#xA;[libx264 @ 000001f7da6985c0] using cpu capabilities: MMX2 SSE2Fast LZCNT SSSE3 SSE4.2&#xA;[libx264 @ 000001f7da6985c0] profile High 4:4:4 Predictive, level 4.0, 4:4:4, 8-bit&#xA;[libx264 @ 000001f7da6985c0] 264 - core 160 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264&#xA;.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_rang&#xA;e=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 s&#xA;liced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=&#xA;0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=6 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbt&#xA;ree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00&#xA;Output #0, mp4, to &#x27;output.mp4&#x27;:&#xA;  Metadata:&#xA;    encoder         : Lavf58.45.100&#xA;    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 1200x1200 [SAR 1:1 DAR 1:1], q=-1--1, 6 fps, 12288&#xA;tbn, 6 tbc&#xA;    Metadata:&#xA;      encoder         : Lavc58.91.100 libx264&#xA;    Side data:&#xA;      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A&#xA;frame=    1 fps=0.0 q=23.0 Lsize=      26kB time=00:00:00.00 bitrate=2662518.5kbits/s speed=0.000541x&#xA;video:26kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.137195%&#xA;[libx264 @ 000001f7da6985c0] frame I:1     Avg QP:16.42  size: 25465&#xA;[libx264 @ 000001f7da6985c0] mb I  I16..4:  2.1% 85.2% 12.7%&#xA;[libx264 @ 000001f7da6985c0] 8x8 transform intra:85.2%&#xA;[libx264 @ 000001f7da6985c0] coded y,u,v intra: 9.1% 0.9% 1.0%&#xA;[libx264 @ 000001f7da6985c0] i16 v,h,dc,p: 42% 39% 19%  0%&#xA;[libx264 @ 000001f7da6985c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 11% 52%  0%  0%  0%  0%  0%  0%&#xA;[libx264 @ 000001f7da6985c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 17% 13%  5%  4%  6%  6%  6%  5%&#xA;[libx264 @ 000001f7da6985c0] kb/s:1222.32&#xA;

    &#xA;