Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (108)

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

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

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

Sur d’autres sites (12666)

  • ffmpeg options for encoding a video mpeg2video but with .mov extension

    20 septembre 2020, par Selene

    I just finished a project, and need to produce an output in the specific format, should be exactly the same as the format of the video I received.
The best way for me to identify the source format was to use ffprobe. Here was the output of that :

    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mov':
  Metadata:
    creation_time   : 2020-02-27T04:15:23.000000Z
  Duration: 00:00:22.13, start: 0.000000, bitrate: 111320 kb/s
    Stream #0:0(eng): Video: mpeg2video (4:2:2) (xd5c / 0x63356478), yuv422p(tv, bt709, top coded first (swapped)), 1920x1080 [SAR 1:1 DAR 16:9], 109779 kb/s, 54.94 fps, 54.94 tbr, 5494 tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2020-02-27T04:15:23.000000Z
      handler_name    : Gestor de contenido de v?deo Apple
      encoder         : XDCAM HD422 1080i50 (50 Mb/s)
    Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2 channels, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2020-02-27T04:15:23.000000Z
      handler_name    : Gestor de contenido de sonido Apple


    


    I did a lot of video work on the above file, and as part of my pipeline, I converted the file to ProRes4444. Now I need to get this video into the same format as above.

    


    Couple of questions on the format, if I understand it correctly, mpeg2video is mpeg2, this would not normally appear as .mov file, but the source is as mov container. Why ?

    


    Does the encoder from the input format matter ? specifically the XDCAM ?

    


    Alternative to solving my problem would be to use media encoder, but even that application doesn't seem to give me options at mov + mpeg2, and if it is mov, it almost forces to use Apple ProRes to keep high resolution. Also, none of the options allow me to set fps at the source level, which is 54.94, and the closest option I have is 59.94.

    


    Please help,

    


  • Transcode raw audio data (PCM | PCM_ALAW | PCM_ULAW) to an audio file with the MKA extension

    15 septembre 2020, par bbdd

    My task is to package raw audio data (PCM_ALAW, PCM_ULAW, PCM_S16LE, PCM_S16BE) into an MKA container. Looking through this example, I came across the question, how do I change the functions of receiving the input audio file, to the functions that accept raw data for packaging into an audio file.

    


    I need to make such functionality as in this original example :

    


    ffmpeg -f alaw -ar 8000 -ac 1 -i rawData test.mka


    


    But in my case, I can only use the ``ffmpeg` API library.

    


    The example shows the logic for receiving an audio file with a specific extension to determine the codec and other configuration parameters. But when feeding simple raw data, the program will crash because it can't determine what it is getting. I need to define functions that will help the library understand that it receives raw audio file data as input, with parameters such as :

    


      

    • Sample rate
    • 


    • Bit rate
    • 


    • Channels
    • 


    • Sample format and more...
    • 


    


    This is what using this method should look like :

    


    int main(int argc, char **argv)
{
    QFile file("rawPcmAlawData.bin");
    if (!file.open(QIODevice::ReadOnly)) {
        return EXIT_FAILURE;
    }
    QByteArray rawPcmAlawData(file.readAll());

    AudioGenerater generator;
    generator.generateAudioFileWithOptions(
        // Input options
        rawPcmAlawData,       // Input raw data
        1,                    // Number channels
        64000,                // Bit-rate
        8000,                 // Sample rate
        AV_CODEC_ID_PCM_ALAW, // The type of input raw data

        // Output options
        "test.mka",           // Audio file where raw data will be recorded. 
        1,                    // Number channels
        64000,                // Bit-rate
        8000,                 // Sample rate
        AV_SAMPLE_FMT_S16     // Sample format);

    return 0;
}



    


    I do not know how to do this and what exactly I need to determine. I ask for Your help.

    


  • FFmpeg same Filename for output but without extension with python

    10 septembre 2020, par Ptibouc77

    i'm kinda noob with Python but i managed to make this code to encode multiple videos files from a folder to H265, everything woks fine exept for the output name.

    


    Actually the output name keep the old file extension with the new one like this "MyMovie.mov.mp4" and i want it to be named like this "MyMovie.mp4" is there any way to exclude the original file extension from the output file ?

    


    import os, sys, re

input_folder= '/content/drive/My Drive/Videos'
output_folder= '/content/drive/My Drive/Videos/X265' 
quality_setting = '30'
file_type = 'mp4

my_suffixes = (".mp4", ".mov", ".mkv", ".avi", ".ts", ".flv", ".webm", ".wmv", ".mpg", ".m4v", ".f4v")

from pathlib import Path
Path(output_folder).mkdir(parents=True, exist_ok=True)

for filename in os.listdir(my_folder):
   if (filename.endswith(my_suffixes)):
       cmd = !ffmpeg -v quiet -stats -hwaccel cuvid -i "$input_folder/{filename}" -metadata comment="X265-QF$quality_setting-AAC" -c:v hevc_nvenc -preset:v slow -rc vbr -cq $quality_setting -c:a aac -b:a 160k "$output_folder/{filename}.$file_type"


    


    Ps : This code is used on Google Colab that's why i need this with python.