Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (69)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

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

Sur d’autres sites (6054)

  • FFMPEG command not working on MP4 files as expected

    21 février 2020, par DavidB

    I am trying to set the output time offset for mp4 file.

    ffmpeg -ss 13.554000 -i input.mp4 -c copy -t 10 -output_ts_offset 13.554000 output.mp4

    This code works for WEBM file as expected but not for MP4.
    In webm it delays start time of video to the specified timestamp and duration is 23.554 but in mp4 it just cuts the video, start time is set to 0 and duration is 10
    Cannot find what is problem.

    ffmpeg -ss 12.960000 -i v.mp4 -c copy -t 10  -output_ts_offset 12.960000 output.mp4
    ffmpeg version git-2019-12-26-b0d0d7e Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 9.2.1 (GCC) 20191125
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig
    --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb
    --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora
    --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp
    --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis
    --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid
    --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
    --enable-libopenmpt --enable-amf
     libavutil      56. 37.100 / 56. 37.100
     libavcodec     58. 65.100 / 58. 65.100
     libavformat    58. 35.101 / 58. 35.101
     libavdevice    58.  9.101 / 58.  9.101
     libavfilter     7. 69.101 /  7. 69.101
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
     libpostproc    55.  6.100 / 55.  6.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'v.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       creation_time   : 1970-01-01T00:00:00.000000Z
       encoder         : Lavf53.24.2
     Duration: 00:00:29.57, start: 0.000000, bitrate: 1421 kb/s
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1032 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 383 kb/s (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : SoundHandler
    Output #0, mp4, to 'output.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf58.35.101
       Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 1032 kb/s, 25 fps, 25 tbr, 12800 tbn, 12800 tbc (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 383 kb/s (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame=  250 fps=0.0 q=-1.0 Lsize=    1687kB time=00:00:09.99 bitrate=1382.7kbits/s speed=2.21e+03x
    video:1212kB audio:468kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.408804%```
  • Trim video and extract thumbnail simultaneously

    12 septembre 2019, par Robin

    I am using the following two codes for ffmpeg.

    Trim Video :

    ffmpeg -i input.mp4 -ss 0 -t 100 -c copy -f mp4 output.mp4

    Create Thumbnail :

    ffmpeg -i input.mp4 -ss 1 -vframes 1 -f mjpeg output

    Which works as expected and is super fast, but when I combine the two like so :

    ffmpeg -i input.mp4 -ss 0 -t 100 -c copy -f mp4 output.mp4 -i input.mp4 -ss 1 -vframes 1 -f mjpeg output.jpeg

    ffmpeg runs a re-encoding copy rather than using -c copy. I really would like to execute both of these functions in a single ffmpeg command.

    Below is the output from terminal when it is generating the thumbnail, which is where it appears the re-encoding is happening.

     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.83.100
       Stream #1:0(und): Video: mjpeg, yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
       Metadata:
         creation_time   : 1970-01-01T00:00:00.000000Z
         handler_name    : VideoHandler
         encoder         : Lavc57.107.100 mjpeg
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
    frame=  324 fps=0.0 q=-1.0 q=6.3 size=    1792kB time=00:00:12.94 bitrate=1133.7kbits/s dup=0 drop=285 speed=2
    frame=  661 fps=660 q=-1.0 q=6.3 size=    4096kB time=00:00:26.43 bitrate=1269.5kbits/s dup=0 drop=622 speed=2
    frame= 1013 fps=674 q=-1.0 q=6.3 size=    6912kB time=00:00:40.51 bitrate=1397.7kbits/s dup=0 drop=974 speed=
    frame= 1356 fps=677 q=-1.0 q=6.3 size=    8704kB time=00:00:54.22 bitrate=1314.9kbits/s dup=0 drop=1317 speed=
    frame= 1694 fps=677 q=-1.0 q=6.3 size=   11264kB time=00:01:07.75 bitrate=1361.9kbits/s dup=0 drop=1655 speed=
    frame= 2031 fps=676 q=-1.0 q=6.3 size=   14080kB time=00:01:21.23 bitrate=1419.8kbits/s dup=0 drop=1992 speed=
    frame= 2360 fps=673 q=-1.0 q=6.3 size=   16384kB time=00:01:34.37 bitrate=1422.1kbits/s dup=0 drop=2321 speed=
    frame= 2511 fps=672 q=-1.0 Lq=6.3 size=   17695kB time=00:01:40.40 bitrate=1443.8kbits/s dup=0 drop=2474 speed=26.9x    
    video:13036kB audio:4684kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
  • how to extract a metadata track from MP4 file

    30 août 2019, par ravi

    I need to extract metadata track from a MP4 file and save as separate file. I see that, using ffmpeg I can extract standard tracks like Audio or Video or Subtitle track and save it as a new file. For ex : to save audio track I use the command below :

    ffmpeg -i input-video.avi -vn -acodec copy output-audio.aac

    But my need is to save a proprietary metadata track. Any pointers will be helpful.

    Here is output of ffmpeg to know different traks that are present in the file. Particuarly, I am interested in extracting track corresponding to Stream #0:3(eng)...

    C:\Users\rkumar\Documents\work\tools\ffmpeg\bin>ffmpeg.exe -i input.MP4
    ffmpeg version N-57176-g64b3aaf Copyright (c) 2000-2013 the FFmpeg developers
    built on Oct 15 2013 21:32:52 with gcc 4.8.1 (GCC)

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.MP4':
    Metadata:
    major_brand     : mp41
    minor_version   : 538120216
    compatible_brands: mp41
    creation_time   : 1970-01-01 00:00:09
    Duration: 00:00:10.52, start: 0.000000, bitrate: 834 kb/s

    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc, bt709),
    854x480 [SAR 1:1 DAR 427:240], 679 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
    Metadata:
    creation_time   : 1970-01-01 00:00:09
    handler_name    : AVC
    timecode        : 00:00:13:22

    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
    creation_time   : 1970-01-01 00:00:09
    handler_name    : AAC
    timecode        : 00:00:13:22

    Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
    creation_time   : 1970-01-01 00:00:09
    handler_name    : TCD
    timecode        : 00:00:13:22

    Stream #0:3(eng): Data: none (ssmd / 0x646D7067), 5 kb/s (default)
    Metadata:
    creation_time   : 1970-01-01 00:00:09
    handler_name    : MET

    Stream #0:4(eng): Data: none (fdsc / 0x63736466), 10 kb/s (default)
    Metadata:
    creation_time   : 1970-01-01 00:00:09
    handler_name    : SOS