Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (59)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 (...)

  • Mise à disposition des fichiers

    14 avril 2011, par

    Par défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
    Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
    Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...)

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

Sur d’autres sites (6308)

  • How to Adjust Google TTS SSML to Match Original SRT Timing ?

    2 avril, par Alexandre Silkin

    I have an .srt file where each speech segment is supposed to last a specific duration (e.g., 4 seconds). However, when I generate the speech using Google Text-to-Speech (TTS) with SSML, the resulting audio plays the same segment in a shorter time (e.g., 3 seconds).

    


    I want to adjust the speech rate dynamically in SSML so that each segment matches its original timing. My idea is to use ffmpeg to extract the actual duration of each generated speech segment, then calculate the speech rate percentage as :
generated duration
speech rate = --------------------
original duration

    


    This percentage would then be applied in SSML using the tag, like :
Text to be spoken

    


    How can I accurately measure the duration of each segment using ffmpeg, and what is the best way to apply the correct speech rate in SSML to match the original .srt timing ?

    


    I tried duration and my SSML should look like this :

    


            f.write(f&#x27;\t<p>{break_until_start}{text}<break time="{value["></break></p>\n&#x27;)&#xA;

    &#xA;

    Code writing the SSML :

    &#xA;

    text = value['text']&#xA;start_time_ms = int(value['start_ms']) # Start time in milliseconds&#xA;previous_end_ms = int(subsDict.get(str(int(key) - 1), {}).get('end_ms', 0)) # Get the previous end time&#xA;gap_to_fill = max(0, start_time_ms - previous_end_ms)

    &#xA;

            text = text.replace("&amp;", "&amp;amp;").replace(&#x27;"&#x27;, "&amp;quot;").replace("&#x27;", "&amp;apos;").replace("&lt;", "&amp;lt;").replace(&#xA;            ">", "&amp;gt;")&#xA;&#xA;        break_until_start = f&#x27;<break time="{gap_to_fill}ms"></break>&#x27; if gap_to_fill > 0 else &#x27;&#x27;&#xA;&#xA;        f.write(f&#x27;\t<p>{break_until_start}{text}<break time="{value["></break></p>\n&#x27;)&#xA;&#xA;    f.write(&#x27;\n&#x27;)&#xA;

    &#xA;

  • Google - Shaka | Deleting SegmentTimeline in manifest.mpd after restart container

    27 juin 2022, par burakkiymaz

    Shaka is running inside docker container. When I restarted container, SegmentTimeline part in manifest.mpd file deleting. Is possible appending old SegmentTimeline to new manifest.mpd file or recover it when I restarted ?

    &#xA;

    Operating System :

    &#xA;

    NAME="CentOS Linux"&#xA;VERSION="7 (Core)"&#xA;

    &#xA;

    Shaka Packager Version :

    &#xA;

    google/shaka-packager:v2.5.1&#xA;

    &#xA;

    You can find out my configuration file below :

    &#xA;

    CH_PATH=/some/path/$CH_NAME&#xA;&#xA;/usr/bin/packager \&#xA;        &#x27;in=udp://127.0.0.1:&#x27;$PORT&#x27;,stream=audio,init_segment=&#x27;$CH_PATH&#x27;/audio_init.m4s,segment_template=&#x27;$CH_PATH&#x27;/audio_$Time$.m4s&#x27; \&#xA;        &#x27;in=udp://127.0.0.1:&#x27;$PORT&#x27;,stream=video,init_segment=&#x27;$CH_PATH&#x27;/h264_360p_init.m4s,segment_template=&#x27;$CH_PATH&#x27;/h264_360p_$Time$.m4s&#x27; \&#xA;        &#x27;in=udp://127.0.0.1:&#x27;$(($PORT &#x2B; 1))&#x27;,stream=video,init_segment=&#x27;$CH_PATH&#x27;/h264_540p_init.m4s,segment_template=&#x27;$CH_PATH&#x27;/h264_540p_$Time$.m4s&#x27; \&#xA;        &#x27;in=udp://127.0.0.1:&#x27;$(($PORT &#x2B; 2))&#x27;,stream=video,init_segment=&#x27;$CH_PATH&#x27;/h264_720p_init.m4s,segment_template=&#x27;$CH_PATH&#x27;/h264_720p_$Time$.m4s&#x27; \&#xA;        &#x27;in=udp://127.0.0.1:&#x27;$(($PORT &#x2B; 3))&#x27;,stream=video,init_segment=&#x27;$CH_PATH&#x27;/h264_1080p_init.m4s,segment_template=&#x27;$CH_PATH&#x27;/h264_1080p_$Time$.m4s&#x27; \&#xA;        --enable_widevine_encryption \&#xA;        --key_server_url ************ \&#xA;        --content_id ********** \&#xA;        --signer ********** \&#xA;        --aes_signing_key ************ \&#xA;        --aes_signing_iv ************* \&#xA;        --mpd_output $CH_PATH/manifest.mpd \&#xA;        --hls_playlist_type LIVE \&#xA;        --hls_master_playlist_output $CH_PATH/mn.m3u8 \&#xA;        --time_shift_buffer_depth 43200 \&#xA;        --preserved_segments_outside_live_window 43200&#xA;

    &#xA;

  • Is it possible to convert all video files in subdirectories on google drive using ffmpeg & rclone ?

    24 avril 2020, par rms

    Currently I'm using this code whereby rclone fetches 1 file from my google drive, converts it using ffpmeg on a server and moves the converted files to the same folder. It's shown as below.&#xA;Step 1 is generating a list over which rclone can iterate over and the conversion process begins with the second script in step 2

    &#xA;&#xA;

    step 1

    &#xA;&#xA;

    rclone lsf "gdrive:/folder" --files-only > list.txt&#xA;

    &#xA;&#xA;

    step 2

    &#xA;&#xA;

    while read file; do&#xA;    rclone copy "gdrive:/folder/""$file" . -P&#xA;    ffmpeg -i "$file" -vf scale=-1:540 -vcodec libx265 -crf 26 "${file%.*}.mkv" null&#xA;    rm -f "$file"&#xA;    rclone move . "gdrive:/folder/" --exclude list.txt -P&#xA;done code>

    &#xA;&#xA;

    However, some sub directories have nested videos to convert which would rather take a long time if I'm to do it for every folder. This brought me to my question whether it's possible to modify the above process to work with subdirectories.

    &#xA;&#xA;

    I've tried rclone lsf to generate the list recursively using the -R flag but ffmpeg doesn't seem to read the file from the list to make it work. Is there a way to make this work with some tweaking possibly ?

    &#xA;