Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (34)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

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

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (3422)

  • Access files in a directory and write the file paths to a text file in ascending order using PHP

    26 mars 2014, par SCC

    I have a list of video files in my server. I would like to list out all the video files in this directory and write it to a text file. These video files are all having the same name output-x.mp4, and x is the number from 0 to an unknown figure. The total number of video files is dynamic and therefore I don't get to know the number of the last video. I have the below code to access all the video files in this directory. It works fine with only one problem : The video files written to the text file are not sorted in ascending order.

    $directory = "video/myvideo";
    $fp = fopen($_SERVER['DOCUMENT_ROOT']."Path/to/text/file", "wb");
    $split_video_files = scandir($directory);
    foreach($split_video_files as $file)
    {
       $content = "file ".$directory.$file."\r\n";
       fwrite($fp, $content);
    }
    fclose($fp);

    What the text file gave me is this :

    video/myvideo/output-0.mp4
    video/myvideo/output-1.mp4
    video/myvideo/output-10.mp4
    video/myvideo/output-11.mp4
    video/myvideo/output-12.mp4
    video/myvideo/output-13.mp4
    video/myvideo/output-14.mp4
    video/myvideo/output-2.mp4
    video/myvideo/output-3.mp4
    video/myvideo/output-4.mp4
    video/myvideo/output-5.mp4
    video/myvideo/output-6.mp4
    video/myvideo/output-7.mp4
    video/myvideo/output-8.mp4
    video/myvideo/output-9.mp4

    It lists out all the filename that start with "1" first before proceed to "2" and so on. Any ways for me to sort it in ascending order so that it starts from 0, 1, 2,… ?

  • check if file is downloaded in temp in GCF from GCS

    3 septembre 2020, par soshi

    Im making video encoder using GCF

    


    that downloads video file from gcs to /tmp and encode it by ffmpeg.

    


    I want to ask how to check if file is downloaded in tmp ?

    


    I tried console.log(process.cwd()) but tmp folder is not displayed

    


    exports.encodeVideo = async (req, res) => {

 mkdirp('/tmp')

 storage.bucket('video-bucket').file('raw/samplevideo.mp4').download({ 
 destination:'encoded/samplevideo.mp4' })

ffmpeg........
}


    


  • How can I take a user input in python3 and use it for the file name of ffmpeg-python file output ?

    25 novembre 2022, par tylerdurden4285

    I am trying to do something like this :

    


    import ffmpeg

user_input =input("give your output file a name: ")

(
    ffmpeg
    .input('input.mp4')
    .vflip()
    .output('(user_input).mp4')
    .run()
)



    


    I am wondering how I can take the string input from the user and make it the filename. So if they input "tester" the resulting output file would be "tester.mp4".

    


    I am running it on an ubuntu 20.04 WSL. I'm new to here and doing my best to learn python3 and ffmpeg so please be gentle with me if I broke any community rules. I'll improve as I go.

    


    I don't know what to search for to find the answer to this problem.