Recherche avancée

Médias (3)

Mot : - Tags -/collection

Autres articles (45)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (5378)

  • 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;