Recherche avancée

Médias (10)

Mot : - Tags -/wav

Autres articles (27)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (7128)

  • Is there an efficient way to use ffmpeg to create a huge quantity of small video file, cut from a larger one ?

    9 mars 2024, par Giuliano Oliveri

    I'm trying to cut video files into smaller chunks. (each one being one word said in the video, so they're not all of equal size)

    


    I've tried a lot of different approaches to try to be as efficient as possible, but I can't get the runtime to be under 2/3rd of the original video length. That's an issue because I'm trying to process 400+ hours of video.

    


    Is there a more efficient way to do this ? Or am I doomed to run this for weeks ?

    


    Here is the command for my best attempt so far

    


    ffmpeg -hwaccel cuda -hwaccel_output_format cuda -ss start_timestamp -t to_timestamp -i file_name -vf "fps=30,scale_cuda=1280:720" -c:v h264_nvenc -y output_file


    


    Note that the machine running the code has a 4090
This command is then executed via python, which gives it the right timestamps and file paths for each smaller clip in a for loop

    


    I think it's wasting a lot of time calling a new process each time, however I haven't been able to get better results with a split filter ; but here's the ffmpeg-python code for that attempt :

    


    Creation of the stream :

    


    inp = (
    ffmpeg
    .input(file_name, hwaccel="cuda", hwaccel_output_format="cuda")
    .filter("fps",fps=30)
    .filter('scale_cuda', '1280','720')
    .filter_multi_output('split')
)


    


    Which then gets called in a for loop

    


    (
    ffmpeg
    .filter(inp, 'trim', start=row[1]['start'], end=row[1]['end'])
    .filter('setpts', 'PTS-STARTPTS')
    .output(output_file,vcodec='h264_nvenc')
    .run()
)


    


  • Is there an efficient way to use ffmpeg to perform a large quantity of cuts from a single file ?

    16 mars 2024, par Giuliano Oliveri

    I'm trying to cut video files into smaller chunks. (each one being one word said in the video, so they're not all of equal size)

    


    I've tried a lot of different approaches to try to be as efficient as possible, but I can't get the runtime to be under 2/3rd of the original video length. That's an issue because I'm trying to process 400+ hours of video.

    


    Is there a more efficient way to do this ? Or am I doomed to run this for weeks ?

    


    Here is the command for my best attempt so far

    


    ffmpeg -hwaccel cuda -hwaccel_output_format cuda -ss start_timestamp -t to_timestamp -i file_name -vf "fps=30,scale_cuda=1280:720" -c:v h264_nvenc -y output_file


    


    Note that the machine running the code has a 4090
This command is then executed via python, which gives it the right timestamps and file paths for each smaller clip in a for loop

    


    I think it's wasting a lot of time calling a new process each time, however I haven't been able to get better results with a split filter ; but here's the ffmpeg-python code for that attempt :

    


    Creation of the stream :

    


    inp = (
    ffmpeg
    .input(file_name, hwaccel="cuda", hwaccel_output_format="cuda")
    .filter("fps",fps=30)
    .filter('scale_cuda', '1280','720')
    .filter_multi_output('split')
)


    


    Which then gets called in a for loop

    


    (
    ffmpeg
    .filter(inp, 'trim', start=row[1]['start'], end=row[1]['end'])
    .filter('setpts', 'PTS-STARTPTS')
    .output(output_file,vcodec='h264_nvenc')
    .run()
)


    


  • FFMPEG Update Command For Android 7

    4 juin 2019, par user2401847

    I have 300 images and i want to generate video from these images with Audio

    i am using below command to generate video

    ffmpeg -framerate 15 -i img_%d.jpg -i logo.png -i inputfile.mp3 -filter_complex \
    "[0:v][1:v] overlay=25:25:enable='between(t,0,20)'" \
    -vcodec libx264 -crf 25 -map 2:a -c:a copy -pix_fmt yuv420p -shortest test_video.mp4

    Which generates video with audio but video is not working for android 7 and above

    Log File (Android 6 - Working) https://drive.google.com/file/d/1uZEjcumY9qUACHvOSdW-3FxMQ66Gr7t4/view?usp=sharing

    Log file (Android 7 - not working ) https://drive.google.com/file/d/1QgFYjf-hr33LvIpDZBaV0KxyrO3Z9eUs/view?usp=sharing