Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (38)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (5596)

  • Using find / for how do I remove the original file extension for the output file name ?

    2 septembre 2022, par burntscarr

    When using find or for to run things on multiple files, how would I make something not keep the file extension ?

    


    For example if using ffmpeg on multiple files to convert from DTS to WAV I would run one of the following :

    


    find . -name "*.dts" -exec ffmpeg -i "{}" -c:a pcm_s24le "{}.wav" \;

    


    or

    


    for f in ./*.dts; do ffmpeg -i "$f" -c:a pcm_s24le "$f.wav"; done

    


    Both of these make files that end in .dts.wav rather than just .wav

    


    My goal is to find out what I would add/change to make the "{}.wav" or "$f.wav" not include the .dts part for the output file name. (and several other examples with various extensions)

    


    This happens automatically when using the cli version of flac, the output file automatically removes .wav and has .flac instead, when no output file is specified.
(Ex : flac -8 *.wav would create .flac files next to the .wav files, but they aren't .wav.flac, they're just .flac)

    


  • FFMPEG Incorrect File Output Path

    3 avril 2016, par Benny Chen

    I’am working in windows 7 32bit and trying to stream file with ffmpeg, but the output file keep going on wrong location.

    If I use this code :

    ffmpeg -i input -c:v copy -c:a copy output.mp4

    The output file will be saved in /Users/username

    If I use absolute path :

    ffmpeg -i input -c:v copy -c:a copy c:/output.mp4

    or

    ffmpeg -i input -c:v copy -c:a copy "c:/output.mp4"

    It put the file in /Users/username/AppData/Local/VirtualStore

    So..it is weird and what the heck is the "VirtualStore" folder still a mystery....

    My question is simple, how to put output file in desired path location. Thanks.

  • C# File.Move creates an empty file and IO exception

    30 novembre 2020, par Maddie

    My code processes a video file (using ffmpeg) and creates different qualities (360p, 480p, etc) and formats (mp4 and HLS) of that. After creating these files, I move all of them to another drive (a network location).

    


    my code looks Like this :

    


    var files = Directory.GetFiles(srcFolder);
string filename, destFile = string.Empty, srcFile = string.Empty;
try
{
    for (int i = 0; i < files.Length; i++)
    {
        srcFile = files[i];
        filename = Path.GetFileName(srcFile);
        destFile = Path.Combine(destFolder, filename);
        File.Move(srcFile, destFile);
    }
}
catch
{
    _logger.LogError("Error in moving file. srcFile: {0}, destFile: {1}", destFile, srcFile);
    throw;
}


    


    This process works fine most of the time, but for some files, I get an IO exception every time I run this process.

    


    


    System.IO.IOException : The file exists. at System.IO.FileSystem.MoveFile(String sourceFullPath, String destFullPath, Boolean overwrite)

    


    


    I made sure that destFolder does not exist before, nor did the destFile.

    


    After logging the error and finding the path of source and target files, I downloaded both of them. The source file is a .ts file with a size of 1,048 KB, and the target file is an empty file with the same name (0KB).

    


    This error happened multiple times with the same video, so I assume that it has something to do with the file itself. But I cannot figure it out.