Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (50)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (5798)

  • FFMPEG video output size is too long

    12 mars 2021, par fahad

    I am trying to merge videos in FFmpeg reading through a .txt file, it merges the videos but increases the total timeline. Expected timeline is 2 minutes but after merging the videos the output file has a timeline of 18 hours.I am using the following command in my cmd :

    


    ffmpeg -f concat -i mylist.txt -c copy output.mp4

    


  • fftools/ffmpeg : use a separate counter for encoded packet data size

    25 août 2022, par Anton Khirnov
    fftools/ffmpeg : use a separate counter for encoded packet data size
    

    update_video_stats() currently uses OutputStream.data_size to print the
    total size of the encoded stream so far and the average bitrate.
    However, that field is updated in the muxer thread, right before the
    packet is sent to the muxer. Not only is this racy, but the numbers may
    not match even if muxing was in the main thread due to bitstream
    filters, filesize limiting, etc.

    Introduce a new counter, data_size_enc, for total size of the packets
    received from the encoder and use that in update_video_stats(). Rename
    data_size to data_size_mux to indicate its semantics more clearly.

    No synchronization is needed for data_size_mux, because it is only read
    in the main thread in print_final_stats(), which runs after the muxer
    threads are terminated.

    • [DH] fftools/ffmpeg.c
    • [DH] fftools/ffmpeg.h
    • [DH] fftools/ffmpeg_mux.c
  • Working with -filter_complex in ffmpeg with a batch concat array

    21 avril 2014, par user3555008

    What I am trying to do here is write an ffmpeg script that takes all songs from a folder and combines them into one audio file using the command line in Windows.

    So far I have

    ffmpeg -i "pathforinput1" -i "pathforinput2" -i "pathforinputn" -filter_complex "[0:0] [1:0] concat=n=(number of songs goes here):v=0:a=1 "[a]"" -map "[a]" -acodec libmp3lame -ab 320k "output file.mp3"

    My problem is that I want to combine it with the existing script :

    for %A in ("input folder\*.extension") do ffmpeg

    to create a total script that uses -i "%A" for the input. The problem I am having here is that each input file requires an entry in the array -filter_complex "[0:0] [1:0] as well as having the total number of input files present in concat=n=(number of files). I’ m willing to use a batch script to make this possible, but I can’t see how I would go about finding the total number of files in a folder and then creating an array for each (for example if there were 7 songs the array would be [0:0] [1:0] [2:0] [3:0] [4:0] [5:0] [6:0]).

    Any help or pointers for making this possible would be great. Someone in this question managed to make something similar for a Unix system but I am using batch files and I don’t know how to modify it for Windows.

    Thanks in advance for any help

    Ok, progress made with the help of the first commenter. However, I think ffmpeg isn’t liking what I’ve made. My code thus far is :

    :: Give you a list of the .wav filenames in -i "filename1" -i "filename2" format

    for %%a in ("C:\Users\James\Input\*.*") do call set var=%%var%% -i "%%a"
    echo %var%

    :: Give you the number of .mp3 files

    for /f %%a in ('dir "C:\Users\James\Input\*.*" /b /a-d ^|find /c /v "" ') do set "numfiles=%%a"
    echo there are "%numfiles%" files
    set /a totalnum=numfiles

    :: dir "C:\Users\James\Input\" /b >> C:\Users\James\Output\filelist.txt
    :: print some text
    set /a numfiles=numfiles-1
    for /L %%b in (0,1,%numfiles%) do call set array=%%array%% [%%b:0]
    :: for /L %%b in (0,1,%numfiles%) do call set array=%%array%% [0:0]
    echo %array%
    for /f "tokens=* delims= " %%C in ('echo %array% ') do set array=%%C
    set array=%array:~0,-1%
    echo %array%
    :: for %%d in ("C:\Users\James\Input\*.*") do ffmpeg -i "%%d" -filter_complex "%array% concat=n=%totalnum%:v=0:a=1 "[a]"" -map "[a]" -acodec libmp3lame -ab 320k "C:\Users\James\Output\outputtestbatch1.mp3"
    for %%d in ("C:\Users\James\Input\*.*") do ffmpeg -i "%%d" -filter_complex "%array% concat=n=%totalnum%:v=0:a=1 "[a]"" -map "[a]" -acodec libmp3lame -ab 320k "C:\Users\James\Output\outputtestbatch1.mp3"
    pause`

    The issue I am having now is that I think ffmpeg is assuming each input file has audio stream [0:0] rather than incrementing them one after the other. Is there a way to fix this with the input method I’m using ?

    **SECOND EDIT**L : Success ! I modified foxidrive’s script a bit because it was slightly misconfigured. Final product is here :

    @echo off

    for %%a in ("C:\Users\James\Input\*.*") do call set var=%%var%% -i "%%a"
    :: echo %var%
    :: Give you the number of files

    for /f %%a in ('dir "C:\Users\James\Input\*.*" /b /a-d ^|find /c /v "" ') do set "numfiles=%%a"
    echo there are "%numfiles%" files

    for /L %%b in (0,%numfiles%) do call set array=%%array%% [%%b:0]
    set array=%array:~1%
    echo "%array%"

    ffmpeg %var% -filter_complex "%array% concat=n=%numfiles%:v=0:a=1 "[a]"" -map "[a]" -acodec libmp3lame -ab 320k "C:\Users\James\Output\outputtestbatch1.mp3"

    popd    
    pause