Recherche avancée

Médias (91)

Autres articles (81)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

Sur d’autres sites (7687)

  • Metadata is not showing ffmpeg C++

    22 novembre 2022, par Kaidul

    I am muxing h264 encoded video data and PCM g711 encoded audio data into a .mov media container. I am trying to write metadata on header but the metadata is not showing when I go to file->right click->properties->details on windows and likewise in Ubuntu. This is my code -

    



    // Instead of creating new AVDictionary object, I also tried following way
// stated here: http://stackoverflow.com/questions/17024192/how-to-set-header-metadata-to-encoded-video 
// but no luck
AVDictionary* pMetaData = m_pFormatCtx->metadata;
av_dict_set(&pMetaData, "title", "Cloud Recording", 0);
av_dict_set(&pMetaData, "artist", "Foobar", 0);
av_dict_set(&pMetaData, "copyright", "Foobar", 0);
av_dict_set(&pMetaData, "filename", m_sFilename.c_str(), 0);
time_t now = time(0);
struct tm tStruct = *localtime(&now);
char date[100];
strftime(date, sizeof(date), "%c", &tStruct); // i.e. Thu Aug 23 14:55:02 2001
av_dict_set(&pMetaData, "date", date, 0);
av_dict_set(&pMetaData, "creation_time", date, 0);
av_dict_set(&pMetaData, "comment", "This video has been created using Eyeball MSDK", 0);

// ....................
// .................

/* write the stream header, if any */
int ret = avformat_write_header(m_pFormatCtx, &pMetaData);


    



    I also tried to see if the file contains any metadata using mediainfo and exiftools in linux. Also I tried ffmpeg -i output.mov but no metadata is shown.

    



    Whats the problem ? Is the flags value 0 in av_dict_set okay ? DO I need to set different flags for different platform (windows/linux) ?

    



    I saw this link and it stated that for windows, I have to use id3v2_version 3 and -write_id3v1 1 to make metadata working. If so, how can I do this in C++ ?

    


  • How to create a video from images with timestamps, sizes and positions with ffmpeg

    23 octobre 2022, par Maxou

    I want to convert a subtitle file (.sup) to a video file with transparency. To do that I convert my .sup file into a multitude of png files listed in a xml file.

    


    XML File

    


    &lt;?xml version="1.0" encoding="UTF-8"?>&#xA;<bdn version="0.93">&#xA;  <description>&#xA;    <format videoformat="1080p" framerate="25" dropframe="False"></format>&#xA;    <events type="Graphic" firsteventintc="00:00:00:01" lasteventouttc="00:23:59:05" numberofevents="708"></events>&#xA;  </description>&#xA;  <events>&#xA;    <event intc="00:00:00:01" outtc="00:00:03:09" forced="False">&#xA;      <graphic width="1146" height="65" x="387" y="985">seq_0001.png</graphic>&#xA;    </event>&#xA;    <event intc="00:00:04:19" outtc="00:00:07:14" forced="False">&#xA;      <graphic width="1112" height="65" x="404" y="985">seq_0002.png</graphic>&#xA;    </event>&#xA;    <event intc="00:00:08:06" outtc="00:00:10:23" forced="False">&#xA;      <graphic width="681" height="65" x="619" y="985">seq_0003.png</graphic>&#xA;    </event>&#xA;  </events>&#xA;</bdn>&#xA;

    &#xA;

    I tried to generate a video using this command

    &#xA;

    ffmpeg -t 20 -s 1920x1080 \&#xA;-f rawvideo -pix_fmt yuva420p -i /dev/zero \&#xA;-i seq-1.png \&#xA;-filter_complex "[0:v][1:v] overlay=25:25:enable=&#x27;between(t,0,20)&#x27;" \&#xA;empty.webm&#xA;

    &#xA;

    It works but it takes a long time and I only manage to do it with one image.

    &#xA;

    It is possible to generate a video with all the images (with size, position and timestamp) include in the xml file ?

    &#xA;

  • Start ffmpeg sound recording at system start doesn't work

    3 octobre 2022, par CheatingBoy

    I made a python script to record sound at System boot, but it doesn't work. I've tried using crontab and systemd but it doesn't work. If I start the program manually it works out fine.

    &#xA;

    #!/bin/python3&#xA;import RPi.GPIO as GPIO&#xA;import time&#xA;import datetime&#xA;import subprocess&#xA;import os&#xA;import signal&#xA;GPIO.setmode(GPIO.BCM)&#xA;GPIO.setup(24, GPIO.IN)&#xA;GPIO.setup(23, GPIO.OUT)&#xA;print("Started Sound_Recorder_ULtimate_Control")&#xA;p = None&#xA;while True:&#xA;        time.sleep(0.5)&#xA;        if GPIO.input(24) == 1:&#xA;            if p is None:&#xA;                print("Preparing to recorde")&#xA;                today = datetime.datetime.now()&#xA;                time1 = "{}.{}.{}_{}:{}:{}".format(today.day , today.month, today.year, today.hour, today.minute, today.second)&#xA;                # Aufname starten&#xA;                command = "sh -c &#x27;ffmpeg -f pulse -nostdin -i alsa_input.usb-FuZhou_Kingwayinfo_CO._LTD_TONOR_TC30_Audio_Device_20200707-00.mono-fallback /home/pi/sound_recorder/Recordes/&#x27;" &#x2B; time1 &#x2B; ".mp3"&#xA;                print(command)&#xA;                #subprocess.Popen(command)&#xA;                p = subprocess.Popen(command, stdout=subprocess.PIPE, &#xA;                       shell=True, preexec_fn=os.setsid)&#xA;                print("Recording...")&#xA;                GPIO.output(23, GPIO.HIGH)&#xA;                time.sleep(2)    &#xA;&#xA;            else:&#xA;                print("Terminate")&#xA;                os.killpg(os.getpgid(p.pid), signal.SIGTERM)&#xA;                GPIO.output(23, GPIO.LOW)&#xA;                p = None&#xA;                time.sleep(2)&#xA;&#xA;

    &#xA;