Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (109)

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Soumettre améliorations et plugins supplémentaires

    10 avril 2011

    Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
    Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)

Sur d’autres sites (13146)

  • swresample/resample : do not increase phase_count on exact_rational

    17 juin 2016, par Muhammad Faiz
    swresample/resample : do not increase phase_count on exact_rational
    

    high phase_count is only useful when dst_incr_mod is non zero
    in other word, it is only useful on soft compensation

    on init, it will build filter with low phase_count
    but when soft compensation is enabled, rebuild filter
    with high phase_count

    this approach saves lots of memory

    Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by : Muhammad Faiz <mfcc64@gmail.com>

    • [DH] libswresample/resample.c
    • [DH] libswresample/resample.h
  • 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)

    &#xA;

    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.

    &#xA;

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

    &#xA;

    Here is the command for my best attempt so far

    &#xA;

    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&#xA;

    &#xA;

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

    &#xA;

    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 :

    &#xA;

    Creation of the stream :

    &#xA;

    inp = (&#xA;    ffmpeg&#xA;    .input(file_name, hwaccel="cuda", hwaccel_output_format="cuda")&#xA;    .filter("fps",fps=30)&#xA;    .filter(&#x27;scale_cuda&#x27;, &#x27;1280&#x27;,&#x27;720&#x27;)&#xA;    .filter_multi_output(&#x27;split&#x27;)&#xA;)&#xA;

    &#xA;

    Which then gets called in a for loop

    &#xA;

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

    &#xA;

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

    &#xA;

    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.

    &#xA;

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

    &#xA;

    Here is the command for my best attempt so far

    &#xA;

    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&#xA;

    &#xA;

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

    &#xA;

    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 :

    &#xA;

    Creation of the stream :

    &#xA;

    inp = (&#xA;    ffmpeg&#xA;    .input(file_name, hwaccel="cuda", hwaccel_output_format="cuda")&#xA;    .filter("fps",fps=30)&#xA;    .filter(&#x27;scale_cuda&#x27;, &#x27;1280&#x27;,&#x27;720&#x27;)&#xA;    .filter_multi_output(&#x27;split&#x27;)&#xA;)&#xA;

    &#xA;

    Which then gets called in a for loop

    &#xA;

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

    &#xA;