Recherche avancée

Médias (91)

Autres articles (56)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (9927)

  • hwcontext_vaapi : remove duplicate formats from sw_format list

    24 juillet 2020, par Haihao Xiang
    hwcontext_vaapi : remove duplicate formats from sw_format list
    

    hwcontext_vaapi maps different VA fourcc to the same pix_fmt for U/V
    plane swap cases, however duplicate formats are not expected in sw_format
    list when merging formats.

    For example :
    ffmpeg -loglevel debug -init_hw_device vaapi -filter_hw_device vaapi0 \
    - f lavfi -i smptebars -vf \
    "hwupload=derive_device=vaapi,scale_vaapi,hwdownload,format=yuv420p" \
    - vframes 1 -f null -

    Without this fix, an auto scaler is required for the above command
    Duplicate formats in ff_merge_formats detected
    [auto_scaler_0 @ 0x560df58f4550] Setting 'flags' to value 'bicubic'
    [auto_scaler_0 @ 0x560df58f4550] w:iw h:ih flags :'bicubic' interl:0
    [Parsed_hwupload_0 @ 0x560df58f0ec0] auto-inserting filter
    'auto_scaler_0' between the filter 'graph 0 input from stream 0:0' and
    the filter 'Parsed_hwupload_0'

    Signed-off-by : Haihao Xiang <haihao.xiang@intel.com>

    • [DH] libavutil/hwcontext_vaapi.c
  • Python, ffmpeg split list of audio files

    24 novembre 2020, par emil

    I know how to split one single audio file with python and ffmpeg :

    &#xA;

    command = "ffmpeg -i a.wav -f segment -segment_time 60 -c copy out_dir/output%09d.wav"&#xA;command = shlex.split(command)&#xA;subprocess.run(command)&#xA;

    &#xA;

    For my current task, I have a list of several hundred .wav files I want to split.

    &#xA;

    My current solution is :

    &#xA;

    def parse_and_split_dir(directory, out_dir):&#xA;  files = [x for x in os.listdir(directory) if ".wav" in x]&#xA;  print(files)&#xA;  cntr = 0&#xA;  for wav in files:&#xA;    wav = wav.replace(" ", "\ ")&#xA;    temp_dir = os.path.join(out_dir, str(cntr))&#xA;    Path(temp_dir).mkdir(parents=True, exist_ok=True)&#xA;    temp_dir = os.path.join(temp_dir, "output%05d.wav")&#xA;    command = "ffmpeg -i {} -f segment -segment_time 60 -c copy {}".format(os.path.join(directory, wav), temp_dir)&#xA;    command = shlex.split(command)&#xA;    subprocess.run(command)&#xA;    cntr &#x2B;= 1&#xA;&#xA;&#xA;

    &#xA;

    I list all .wav files, and for each file I create a directory where I store the split files into. This implies that file naming start with index 1 for each new file.&#xA;E.g. folder 1 contains files ...1.wav to ...9.wav, folder 2 contains ...1.wav to ...13.wav and so on.

    &#xA;

    In short, I ideally want to parse the whole directory with a single command, while keeping the naming continually from file to file, e.g. when the last wav saved its last split with ...10.split, the next split for the next file should be saved as ..11.split.

    &#xA;

    I thought about first concatenating all the single files to one file, and then splitting them again (which introduces massive overhead), and unnecessarily consumes memory and disk space. An alternative I thought of was using a *.wav wildcard, but ffmpeg found no file called *.wav(which is expected).

    &#xA;

    Related question : 1

    &#xA;

  • Master m3u8 file does not list streams

    23 septembre 2021, par kamoloff

    I have a video and I want to transcode it into hls using ffmpeg-python.&#xA;It works well with a video which has an audio stream.&#xA;But does not list stream playlists in master.m3u8 when I give a video file without audio as an input.

    &#xA;

    problem : master.m3u8 is not listing stream, only contains :

    &#xA;

    #EXTM3U&#xA;#EXT-X-VERSION:6&#xA;

    &#xA;

    expected :

    &#xA;

    #EXTM3U&#xA;#EXT-X-VERSION:6&#xA;#EXT-X-STREAM-INF:BANDWIDTH=415800,RESOLUTION=1280x720,CODECS="avc1.64001f,mp4a.40.2"&#xA;prefix_stream_0.m3u8&#xA;&#xA;#EXT-X-STREAM-INF:BANDWIDTH=105600,RESOLUTION=768x432,CODECS="avc1.64001e,mp4a.40.2"&#xA;prefix_stream_1.m3u8&#xA;&#xA;#EXT-X-STREAM-INF:BANDWIDTH=105600,RESOLUTION=640x360,CODECS="avc1.64001e,mp4a.40.2"&#xA;prefix_stream_2.m3u8&#xA;&#xA;#EXT-X-STREAM-INF:BANDWIDTH=52800,RESOLUTION=426x240,CODECS="avc1.640015,mp4a.40.2"&#xA;prefix_stream_3.m3u8&#xA;

    &#xA;