Recherche avancée

Médias (0)

Mot : - Tags -/presse-papier

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

Autres articles (99)

  • Qu’est ce qu’un éditorial

    21 juin 2013, par

    Ecrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
    Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
    Vous pouvez personnaliser le formulaire de création d’un éditorial.
    Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

Sur d’autres sites (7418)

  • ffmpeg : Downmixing 5.1 to stereo with phase invert

    1er novembre 2022, par anti-hero

    I'd like to use ffmpeg and Dolby Logic Pro II formula to downmix a 5.1 song to stereo :

    


    


    Lt = L + (–3 dB × C) – (–1.2 dB × Ls) – (–6.2 dB × Rs)

    


    Rt = R + (–3 dB × C) + (–6.2 dB × Ls) + (–1.2 dB × Rs)

    


    


    I came up with this long and probably redundant bash script :

    


    # L channel
ffmpeg -i "$filename" -map_channel 0.1.0 -c:a pcm_f32le L.wav
ffmpeg -i "$filename" -map_channel 0.1.2 -filter:a "volume=-3dB" -c:a pcm_f32le C.wav
ffmpeg -i "$filename" -map_channel 0.1.4 -af "volume=-1.2dB" -c:a pcm_f32le Ls.wav
ffmpeg -i "$filename" -map_channel 0.1.5 -af "volume=-6.2dB" -c:a pcm_f32le Rs.wav
ffmpeg -i Ls.wav -af "aeval=-val(0)" -c:a pcm_f32le Lsi.wav
ffmpeg -i Rs.wav -af "aeval=-val(0)" -c:a pcm_f32le Rsi.wav
ffmpeg -i L.wav -i C.wav -i Lsi.wav -i Rsi.wav -filter_complex "amix=inputs=4" -c:a pcm_f32le L_final.wav
rm L.wav Ls.wav Rs.wav Lsi.wav Rsi.wav

# R channel
ffmpeg -i "$filename" -map_channel 0.1.1 -c:a pcm_f32le R.wav
ffmpeg -i "$filename" -map_channel 0.1.4 -filter:a "volume=-6.2dB" -c:a pcm_f32le Ls.wav
ffmpeg -i "$filename" -map_channel 0.1.5 -filter:a "volume=-1.2dB" -c:a pcm_f32le Rs.wav
ffmpeg -i R.wav -i C.wav -i Ls.wav -i Rs.wav -filter_complex "amix=inputs=4" -c:a pcm_f32le R_final.wav
rm R.wav C.wav Ls.wav Rs.wav

# Mix
ffmpeg -i L_final.wav -i R_final.wav -filter_complex "[0:0][1:0] amerge=inputs=2" -c:a pcm_f32le "${filename%.*}_dm.wav"
rm L_final.wav R_final.wav


    


    Would this work ? And is there a simpler way to do this ?

    


    update : I also wrote Python code for the 90 degree phase shift version.

    


    import scipy, os, numpy as np

os.system(f'ffmpeg -i "{filename}" -c:a pcm_f32le temp.wav')
sample_rate, waves = scipy.io.wavfile.read("temp.wav")
os.remove("temp.wav")

L, R, C, LFE, LS, RS = waves.T

LS_shifted = -np.imag(scipy.signal.hilbert(LS))
RS_shifted = np.imag(scipy.signal.hilbert(RS))
L_out = L + 0.708 * C - 0.871 * LS_shifted - 0.49 * RS_shifted
R_out = R + 0.708 * C + 0.49 * LS_shifted + 0.871 * RS_shifted

scipy.io.wavfile.write("out.wav", sample_rate, np.vstack((L_out, R_out)).T)


    


    Hope someone finds this useful ! (and that someone verifies it's correct)

    


  • FFmpeg MXF converting stuck on last frame

    9 septembre 2022, par Diana Savi

    i'm having issues with my code

    


    I'm converting a input mxf with 1 stereo channel to a mxf output with 16 mono channels for tv broadcast equipment, which have a specific pattern like this :

    


    [A1][A2][A3][A4][MUTE5][MUTE6][MUTE7][MUTE8][A9][A10][A11][A12][MUTE13][MUTE14][MUTE15][MUTE16]

    


    so i made this :

    


    ffmpeg -i shorttest.mxf -f lavfi -i anullsrc=channel_layout=mono -ac:0 1 -map_metadata -1 -map 0:v -map 0:a -map 0:a -map 1:a -map 1:a -map 1:a -map 1:a -map 0:a -map 0:a -map 1:a -map 1:a -map 1:a -map 1:a -vcodec mpeg2video -ar 48000 OUTPUT8CH.mxf

    


    the problem is when i do that it stucks on the very last frame, consuming a lot of RAM and eventually crashing

    


    `frame= 208 fps= 26 q=31.0 size= 13568kB time=00:26:50.28 bitrate= 69.0kbits/s speed=200x

    


    so i'm trying to figure out what's wrong, can someone help me ?

    


  • FFmpeg stuck on last frame

    9 septembre 2022, par Diana Savi

    i'm having issues with my code

    


    I'm using a input mxf with 1 stereo channel to a mxf output with 16 mono channels for tv broadcast equipment, which have a specific pattern like this :

    


    [A1][A2][A3][A4][MUTE5][MUTE6][MUTE7][MUTE8][A9][A10][A11][A12][MUTE13][MUTE14][MUTE15][MUTE16]

    


    so i made this :

    


    ffmpeg -i shorttest.mxf -f lavfi -i anullsrc=channel_layout=mono -ac:0 1 -map_metadata -1 -map 0:v -map 0:a -map 0:a -map 1:a -map 1:a -map 1:a -map 1:a -map 0:a -map 0:a -map 1:a -map 1:a -map 1:a -map 1:a -vcodec mpeg2video -ar 48000 OUTPUT8CH.mxf

    


    the problem is when i do that it stucks on the very last frame, consuming a lot of RAM and eventually crashing

    


    `frame= 208 fps= 26 q=31.0 size= 13568kB time=00:26:50.28 bitrate= 69.0kbits/s speed=200x

    


    so i'm trying to figure out what's wrong, can someone help me ?