Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (60)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

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

Sur d’autres sites (8183)

  • Concatting videos leads to audio async

    2 juin 2019, par Alex

    I am converting videos of different sources and one-image-slideshows like this

    ffmpeg -y -ss 00:00:00.077 -to 00:00:03.980 -fflags +igndts -i "GOPR2774.MP4" -r 60 -c:v libx264 -copytb 1 -af afade=t=in:ss=0:d=1,afade=t=out:st='00\:00\:02.903':d=1 36.mp4
    ffmpeg -y -i 36.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts 36f.ts
    ffmpeg -y -loop 1 -fflags +igndts -i "IMG_20190601_184039.jpg" -t 1 -f lavfi -i anullsrc -c:a aac -ac 2 -ar 48000 -b:a 118k -c:v libx264 -copytb 1 -pix_fmt yuv420p -r 60 -shortest 37.mp4
    ffmpeg -y -i 37.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts 37f.ts
    ffmpeg -y -ss 00:00:05.072 -to 00:00:10.883 -fflags +igndts -i "VID_20190601_184513.mp4" -r 60 -c:v libx264 -copytb 1 -vf reverse -af afade=t=in:ss=0:d=1,afade=t=out:st='00\:00\:04.811':d=1,areverse 38.mp4
    ffmpeg -y -i 38.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts 38f.ts
    ffmpeg -y -ss 00:00:03.078 -to 00:00:08.591 -fflags +igndts -i "GOPR2775.MP4" -r 60 -c:v libx264 -copytb 1 -vf reverse -af afade=t=in:ss=0:d=1,afade=t=out:st='00\:00\:04.513':d=1,areverse 39.mp4
    ffmpeg -y -i 39.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts 39f.ts

    and I concat them like this

    ffmpeg -y -i "concat:36f.ts|37f.ts|38f.ts|39f.ts" -c copy "result.mp4"

    Yet whenever there is a picture-slideshow, audio from previous/following videos bleeds in. Like

    Video1 - Video2 - slideshow - Video3

    Video1Audio - Video2Audio - slideshow_With_Part_of_Video3Audio - Video3Audio_Async

    or

    Video1Audio - Video2Audio - slideshow_With_Part_of_Video2Audio - Video3Audio_Async

    The slideshow should be silent -i anullsrc.

    How to have the videos concatted the way they are ?

  • I have a ffmpeg command to concatenate 300+ videos of different formats. What is the proper syntax for the concat complex filter ?

    25 avril 2022, par jokoon

    I plan to concatenate a large amount of video files of different formats and resolution, some without sound, and add a short black screen "pause" of about 0.5s between each.

    


    I wrote a python script to generate such command.

    


    I created a 0.5s video file using ffmpeg.exe -t 0.5 -f lavfi -i color=c=black:s=640x480 -c:v libx264 -tune stillimage -pix_fmt yuv420p blank500ms.mp4.

    


    I then added a silent audio to it with -f lavfi -i anullsrc -c:v copy -c:a aac -shortest

    


    I now have the problem of adding a blank audio track for streams without one, but I don't want to generate new file, I want to add it to my complex filter.

    


    This is my complex script and generate command.

    


    The command (there are line returns, because I send this with the python subprocess module)

    


    ffmpeg.exe
-i
input0.mp4
-i
input1.mp4
-i
input2.mp4
-i
input3.mp4
-i
input4.mp4
-i
input5.mp4
-i
input6.mp4
-i
input7.mp4
-i
input8.mp4
-i
input9.mp4
-i
input10.mp4
-f
lavfi
-i
anullsrc
-filter_complex_script
C:/filter_complex_script.txt
-map
"[final_video]"
-map
"[final_audio]"
output.mp4


    


    The complex_filter_script :

    


    [0]fps=24[fps0];
[fps0]scale=480:270:force_original_aspect_ratio=decrease,pad=480:270:(ow-iw)/2:(oh-ih)/2,setsar=1,setpts=PTS-STARTPTS[rescaled0];
[1]fps=24[fps1];
[fps1]scale=480:270:force_original_aspect_ratio=decrease,pad=480:270:(ow-iw)/2:(oh-ih)/2,setsar=1,setpts=PTS-STARTPTS[rescaled1];
[2]fps=24[fps2];
[fps2]scale=480:270:force_original_aspect_ratio=decrease,pad=480:270:(ow-iw)/2:(oh-ih)/2,setsar=1,setpts=PTS-STARTPTS[rescaled2];
[3]fps=24[fps3];
[fps3]scale=480:270:force_original_aspect_ratio=decrease,pad=480:270:(ow-iw)/2:(oh-ih)/2,setsar=1,setpts=PTS-STARTPTS[rescaled3];
[4]fps=24[fps4];
[fps4]scale=480:270:force_original_aspect_ratio=decrease,pad=480:270:(ow-iw)/2:(oh-ih)/2,setsar=1,setpts=PTS-STARTPTS[rescaled4];
[5]fps=24[fps5];
[fps5]scale=480:270:force_original_aspect_ratio=decrease,pad=480:270:(ow-iw)/2:(oh-ih)/2,setsar=1,setpts=PTS-STARTPTS[rescaled5];
[6]fps=24[fps6];
[fps6]scale=480:270:force_original_aspect_ratio=decrease,pad=480:270:(ow-iw)/2:(oh-ih)/2,setsar=1,setpts=PTS-STARTPTS[rescaled6];
[7]fps=24[fps7];
[fps7]scale=480:270:force_original_aspect_ratio=decrease,pad=480:270:(ow-iw)/2:(oh-ih)/2,setsar=1,setpts=PTS-STARTPTS[rescaled7];
[8]fps=24[fps8];
[fps8]scale=480:270:force_original_aspect_ratio=decrease,pad=480:270:(ow-iw)/2:(oh-ih)/2,setsar=1,setpts=PTS-STARTPTS[rescaled8];
[9]fps=24[fps9];
[fps9]scale=480:270:force_original_aspect_ratio=decrease,pad=480:270:(ow-iw)/2:(oh-ih)/2,setsar=1,setpts=PTS-STARTPTS[rescaled9];
[10]fps=24[fps10];
[fps10]scale=480:270:force_original_aspect_ratio=decrease,pad=480:270:(ow-iw)/2:(oh-ih)/2,setsar=1,setpts=PTS-STARTPTS[rescaled10];
[10]split=10[blank0][blank1][blank2][blank3][blank4][blank5][blank6][blank7][blank8][blank9];
[rescaled0:v][0:a][blank0][rescaled1:v][1:a][blank1][rescaled2:v][2:a][blank2][rescaled3:v][3:a][blank3][rescaled4:v][4:a][blank4][rescaled5:v][5:a][blank5][rescaled6:v][11:a][blank6][rescaled7:v][11:a][blank7][rescaled8:v][11:a][blank8][rescaled9:v][11:a][blank9]concat=n=22:v=1:a=1[final_video][final_audio]


    


    As you can see, some video use [11:a], because it's a silent audio stream.

    


    input10.mp4, mapped to [10] and then split (or "cloned") into blanked0 to 9, is a short pause separator.

    


    ffmpeg tells me the error

    


    [Parsed_split_55 @ 000001591c33b280] Media type mismatch between the 'Parsed_split_55' filter output pad 1 (video) and the 'Parsed_concat_56' filter input pad 5 (audio)
[AVFilterGraph @ 000001591bf1e6c0] Cannot create the link split:1 -> concat:5
Error initializing complex filters.
Invalid argument


    


    I'm a bit lost when it comes to using the [X:Y:Z] syntax, and how the order matter in the concat argument list.

    


    I'm open to any other suggestion to solve my problem. I would rather do this in a single command, without intermediate file.

    


    EDIT :

    


    For details, I already wrote a large concat+xstack filter that worked well with 8GB of memory.

    


    In this case, there are a lot of inputs, but those inputs are small, most of them are between 1 and 10MB, so it would probably not generate out-of-memory problems, although I'm not certain.

    


  • ffmpeg concat mp4s - adding audio and using shortest not lasting for the concatenated mp4

    23 mars 2023, par Gregor Sotošek

    I'd like to create an mp4 with audio.
I need to combine :

    


      

    1. Video - pt1 (made from cca 30 images : im1.jpg, im2.jpg . . . ) - length cca 6 secs
    2. 


    3. Video - pt2 (made of single Image (logo.png) - length cca 3 secs
    4. 


    5. Audio should be played all the time of combined video duration. Initially is cca 30 secs long, but should only be played for (6 + 3 secs), then cut.
I am using filter_complex and this is my command. It is written as text, so that I can use line breaks properly.
    6. 


    


    ffmpeg ^

    


    -framerate 5 -i happy/im%d.jpg ^

    


    -loop 1 -t 3 -i logoBlack.png ^

    


    -i techno1.mp3 ^

    


    -filter_complex ^

    


    "[0:v]scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920 :(ow-iw)/2 :(oh-ih)/2,setsar=1[v0] ;^

    


    [1:v]scale=1080:1920:force_original_aspect_ratio=decrease,pad=1080:1920 :(ow-iw)/2 :(oh-ih)/2,setsar=1,drawtext=text='742 pointz, nize':x=(w-text_w)/2:y=300:fontfile=fonts.ttf:fontsize=100:fontcolor=white[v1] ;^

    


    [v0][v1] concat=n=2:v=1:a=0[out]" -r 5 -map "[out]" -map 2 -c:a aac -y -shortest video_withaudio.mp4

    


      

    • 

        



      


    • 


    


    The problem is that with this, I get mp4 with audio, however, audio is only 3 secs long (shortest param is considering the length of the shortest of the 2 initial videos).
How can I achieve, that shortest would be comparing total length of the video with the audio length.

    


    1.Am I suppose to add audio part within concat (-f lavfi -t 0.1 -i anullsrc) ? I tried adding dummy audio in concat but did not succeed. I believe I should be adding a single silent audio to the concatinated part, and after that perform shortest.. If anyone has an idea, would appreciate.