Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (87)

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

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (14930)

  • ffmpeg select subclips from large video bash and create outputfile names

    29 juin 2018, par martins

    I am using bash command on a Mac Terminal. For each of the 250 .mp4 files in a directory I need to create a new outputfile which extracts 4 subclips from each inputfile : 1st subclip (from second 10 to 20), 2nd subclip (10 seconds at a 33% stage of the inputfile), 3rd subclip (10 seconds at a 66% of the inputfile), and a 4th subclip (10 seconds starting 30seconds before the end of the inputfile). Each inputfile has a different length of about 10-15minutes.

    I tried with one inputfile and the following bash script works :

    #!/bin/bash
    for file in *.mp4; do ffmpeg -i "$file" -vf "select='between(t, 10, 20) + between(t, 197, 207) + between(t, 393, 403) + between(t, 570,580)',
    setpts=N/FRAME_RATE/TB" -qscale 0 -af "aselect='between(t, 10, 20) +
    between(t, 197, 207) + between(t, 393, 403) + between(t, 570, 580)',
    asetpts=N/SR/TB" outputfile.mp4; done

    However, I don’t know how to loop it over the 250 mp4 files. Specifically, I have 2 issues :

    1. The above code shows specific seconds I manually checked from the inputfile I used to test the code. I need to automatize the code according to the timings above.
    2. Name the outputfile the same as the inputfile but adding "_1" suffix

    In sum, I have a directory with inputfiles between 10-15minutes long :

    inputfile1.mp4
    inputfile2.mp4
    inputfile3.mp4
    .......
    inputfile250.mp4

    And I want the same directory with inputfiles and outputfiles together :

    inputfile1.mp4
    inputfile1_1.mp4 #this is 40 seconds long
    inputfile2.mp4
    inputfile2_1.mp4 #this is 40 seconds long
    inputfile3.mp4
    inputfile3_1.mp4 #this is 40 seconds long
    .......
    inputfile250.mp4
    inputfile250_1.mp4 #this is 40 seconds long

    Thank you very much in advance.

  • avformat/mpegts : parse large PMTs with multiple tables

    11 juin 2018, par Aman Gupta
    avformat/mpegts : parse large PMTs with multiple tables
    

    In 9152c1e4955, the mpegts parser was taught how to parse
    PMT sections which contained multiple tables. That commit
    fixed parsing of PMT packets from some cable providers,
    which included a special SCTE table (0xc0) before the
    standard program map table (0x2).

    Sometimes, however, the combined 0xc0 and 0x2 tables are
    larger than a single TS packet (188 bytes). The mpegts parser
    already attempts to parse sections which span multiple packets,
    but still assumed that the split section only contained one
    table.

    This patch fixes parsing of such a sample[1].

    Before :

    Input #0, mpegts, from 'combined-pmt-tids-split.ts' :
    Duration : 00:00:01.26, start : 39188.931756, bitrate : 597 kb/s
    Program 1
    No Program
    Stream #0:0[0xeff] : Audio : ac3, 48000 Hz, mono, fltp, 64 kb/s
    Stream #0:1[0xefd] : Audio : mp3, 0 channels, fltp
    Stream #0:2[0xefe] : Unknown : none

    After :

    Input #0, mpegts, from 'combined-pmt-tids-split.ts' :
    Duration : 00:00:01.27, start : 39188.931756, bitrate : 589 kb/s
    Program 1
    Stream #0:0[0xefd] : Video : h264 ([27][0][0][0] / 0x001B), none, 59.94 fps, 59.94 tbr, 90k tbn, 180k tbc
    Stream #0:1[0xefe](eng) : Audio : ac3 ([129][0][0][0] / 0x0081), 48000 Hz, stereo, fltp, 384 kb/s
    Stream #0:2[0xeff](spa) : Audio : ac3 ([129][0][0][0] / 0x0081), 48000 Hz, mono, fltp, 64 kb/s
    Stream #0:3[0xf00] : Data : scte_35
    Stream #0:4[0xf01] : Unknown : none (ETV1 / 0x31565445)
    Stream #0:5[0xf02] : Unknown : none (ETV1 / 0x31565445)
    Stream #0:6[0xf03] : Unknown : none ([192][0][0][0] / 0x00C0)

    With the patch, the PMT is parsed correctly so the streams are
    created in the correct order, are associated with "Program 1",
    and their codecs are set correctly.

    [1] https://s3.amazonaws.com/tmm1/combined-pmt-tids-split.ts

    Signed-off-by : Aman Gupta <aman@tmm1.net>
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavformat/mpegts.c
  • FFMPEG Failure - Extracting frames on large file

    25 avril 2018, par Marian Montagnino

    Calling the ffmpeg command :

    ffmpeg -y -ss "00:00:02" -i 5ccaea226acfc1b4b75ccd1a9f09512c.mxf -frames 30 -f image2 -vf "fps=1/1.25,scale='min(420,iw)':-1" video%04d.jpg

    Causes a failure :

    ffmpeg failed: ffmpeg version N-85692-g78a5fc4 Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
    configuration: --prefix=/tmp/gm-ffmpeg-1.0.4/BUILD/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/tmp/gm-ffmpeg-1.0.4/BUILD/ffmpeg_build/include --extra-ldflags=-L/tmp/gm-ffmpeg-1.0.4/BUILD/ffmpeg_build/lib --bindir=/tmp/gm-ffmpeg-1.0.4/BUILDROOT/gm-ffmpeg-1.0.4-1.el7.centos.x86_64/opt/graymeta/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
    libavutil 55. 61.100 / 55. 61.100
    libavcodec 57. 93.100 / 57. 93.100
    libavformat 57. 72.101 / 57. 72.101
    libavdevice 57. 7.100 / 57. 7.100
    libavfilter 6. 87.100 / 6. 87.100
    libswscale 4. 7.101 / 4. 7.101
    libswresample 2. 8.100 / 2. 8.100
    libpostproc 54. 6.100 / 54. 6.100
    [mxf @ 0x2c6da60] broken or empty index
    Input #0, mxf, from '/alloc/5ccaea226acfc1b4b75ccd1a9f09512c.mxf':
    Metadata:
    uid : 27b07007-2dc8-4305-a78a-81a612d78b94
    generation_uid : ef5ae870-4075-4513-ea1f-39c0ed197267
    company_name : Colorfront
    product_name : Transkoder
    product_uid : 3a4fe380-0d01-11e4-869f-3cd92b5c1dfc
    product_version : 2.7.3.20150121
    application_platform: Microsoft Windows 7 Professional Service Pack 1 (Build 7601)
    modification_date: 2016-09-09T11:29:39.000000Z
    material_package_umid: 0x060A2B340101010501010F20130000008991E1DCEA584837149E72E7F9F0E09D
    timecode : 00:00:17;12
    Duration: 00:11:58.92, start: 0.000000, bitrate: 150802 kb/s
    Stream #0:0: Video: jpeg2000, yuv422p10le(progressive), 3840x2160, SAR 1:1 DAR 16:9, 59.94 fps, 59.94 tbr, 59.94 tbn, 59.94 tbc
    Metadata:
    file_package_umid: 0x060A2B340101010501010F2013000000F8B3B48BE8044408DDD6303A6D43F566
    track_name : Picture
    Stream mapping:
    Stream #0:0 -> #0:0 (jpeg2000 (native) -> mjpeg (native))
    Press [q] to stop, [?] for help
    : signal: killed

    I’m not sure how to interpret this error message and why it actually failed. This file is about 90GB large and shot in 4K resolution but 11 seconds long.