Recherche avancée

Médias (0)

Mot : - Tags -/publication

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (75)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

Sur d’autres sites (9072)

  • FFMPEG — Error when trying to concat multiple files with and without audio

    7 août 2020, par Philban

    Ok so thanks to a fellow user I have the following FFMPEG command that concats 4 videos together. Now if I use this command with 4 video files that all have audio everything works ! However, if 1 or more of the videos do not have sound I get a "matches no streams" error.

    


    Can someone spot whats wrong here please ?

    


    Video Input 1 - No Audio so adding the anullsrc
Video 2 - Has Audio
Video 3 - No Audio
Video 4 - Has Audio

    


    ffmpeg -i noSound1.mp4 -i story1.mp4 -i noSound2.mp4 -i story2.mp4 -t 0.1 -f lavfi -i anullsrc=channel_layout=stereo -filter_complex 
"[0:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v0]; 
 [1:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v1]; 
 [2:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v2]; 
 [3:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v3]; 
 [0:a]aformat=sample_rates=48000:channel_layouts=stereo[a0]; 
 [1:a]aformat=sample_rates=48000:channel_layouts=stereo[a1]; 
 [2:a]aformat=sample_rates=48000:channel_layouts=stereo[a2]; 
 [3:a]aformat=sample_rates=48000:channel_layouts=stereo[a3]; 
 [v0][a0][v1][a1][v2][a2][v3][a3]concat=n=4:v=1:a=1[v][a]" 
-map "[v]" -map "[a]" -c:v libx264 -c:a aac -movflags +faststart testOutput.mp4


    


    Here is the error :

    


    Stream specifier ':a' in filtergraph description [0:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v0];  [1:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v1];  [2:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v2];  [3:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30,format=yuv420p[v3];  [0:a]aformat=sample_rates=48000:channel_layouts=stereo[a0];  [1:a]aformat=sample_rates=48000:channel_layouts=stereo[a1];  [2:a]aformat=sample_rates=48000:channel_layouts=stereo[a2];  [3:a]aformat=sample_rates=48000:channel_layouts=stereo[a3];  [v0][a0][v1][a1][v2][a2][v3][a3]concat=n=4:v=1:a=1[v][a] matches no streams.


    


    Now a slightly separate question. If I have N input videos where i do not know if they have sound or not, is there a way I can have a loop that does the above without having massive amounts of command lines ?
Many thanks !

    


  • FFmpeg start slowly with multiple instance on nvidia T4 GPU

    3 août 2020, par wyWang
    


    environment:

    


      

    1. OS:Centos7
    2. 


    3. FFMPEG version : 4.2
    4. 


    5. GPU : NVIDIA Tesla T4
    6. 


    


    


    I have a requirement to work with multiple FFMPEG instance,command like this :

    


    ffmpeg -y -loglevel info -hwaccel cuvid -hwaccel_output_format cuda -c:v h264_cuvid \
    -i http://xx/xxxx.mp4 \
    -c:v  h264_nvenc  -ss 0 -t 600 out.mp4


    


    and the output like this :

    


    ffmpeg version 4.2.git Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
  configuration: --enable-cuda-nvcc --enable-cuda --enable-cuvid --enable-nvenc --enable-libnpp --prefix=/snbeauty//platform/centos --pkg-config-flags=--static --extra-cflags='-I/snbeauty//platform/centos/include -I/usr/local/cuda/include/ -Werror=implicit-function-declaration -std=gnu99' --extra-ldflags='-L/snbeauty//platform/centos/lib64 -L/snbeauty//platform/centos/lib -L/usr/local/lib64 -L/usr/lib64 -L/usr/local/cuda/lib64 -L/lib64' --extra-libs='-lpthread -lm -lEGL -lGL -lpng -lYNEffect -ltracker -lcuda -lcudart' --bindir=/snbeauty//platform/centos/bin --enable-static --enable-nonfree --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-filters --enable-version3 --enable-gpl --enable-libass --enable-libfdk_aac --enable-encoder=libfdk_aac --enable-opengl --enable-filter=xiu --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libtheora --enable-libwebp --enable-frei0r --enable-openssl --enable-gray --enable-libxml2 --enable-libxvid
  libavutil      56. 42.100 / 56. 42.100
  libavcodec     58. 73.102 / 58. 73.102
  libavformat    58. 39.101 / 58. 39.101
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 77.100 /  7. 77.100
  libswscale      5.  6.100 /  5.  6.100
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://xxx/xxxx.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.29.100
  Duration: 00:38:52.05, start: 0.000000, bitrate: 5370 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 5245 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 119 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_cuvid) -> h264 (h264_nvenc))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
Output #0, mp4, to 'out.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.39.101
    Stream #0:0(und): Video: h264 (h264_nvenc) (Main) (avc1 / 0x31637661), cuda, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 25 fps, 12800 tbn, 25 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc58.73.102 h264_nvenc
    Side data:
      cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000 vbv_delay: N/A
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      encoder         : Lavc58.73.102 aac
frame=15000 fps=336 q=26.0 Lsize=  152462kB time=00:10:00.00 bitrate=2081.6kbits/s speed=13.4x    
video:142668kB audio:9418kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.247139%
[aac @ 0x32437c0] Qavg: 168.657

real    0m45.568s
user    0m29.034s
sys 0m2.961s


    


    is very fast

    


    But when I try concurrent 10 processes to run this command with different input url,ffmpeg start is very slowly. Then I found FFmpeg is slowly in this step :

    


    Stream mapping:
  Stream #0:0 -> #0:0 (h264 (h264_cuvid) -> h264 (h264_nvenc))
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))


    


    When the video is very short(like 0.5s or 1s), FFmpeg takes a long time to start.The actual codec takes less time than the boot time.

    


    I would like to ask what causes this problem ? (Nvidia GPU limit or FFmpeg) .And any way to solve it.

    


    Thanks !

    


  • Splitting m4a into multiple files with ffmpeg

    16 juillet 2020, par ARuiz

    I have an audio file (.m4a) and want to split it into smaller pieces using ffmpeg. All answers I have seen do something along one of the following two possibilities :

    


      

    1. ffmpeg -i inputFile -map 0 -f segment -segment_time 60 -c copy "$output%03d.m4a
    2. 


    


    or

    


      

    1. ffmpeg -i inputFile -acodec copy -ss start_time -to end_time outputFile
    2. 


    


    With 1. the first file is fine. From the second file on, I just get a minute of silence in quicktime, and in VLC the file plays but the timing is odd : for example the second file should have second 0 equals to second 60 in the original file. However in vlc it starts playing on second 60 and goes on to second 120.

    


    With 2. I have to set start times and end for each file, unfortunately I notice a small jump when I play one after the other, so it seems as if some miliseconds are lost.

    


    There are definitely a few old questions asked around this, but none of them actually helped me with this.