Recherche avancée

Médias (1)

Mot : - Tags -/ipad

Autres articles (111)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

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

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

  • How to convert AAC/MP4A to MP3 using FFMPEG in full length ? Audio file gets cut off after 1 second

    6 novembre 2022, par Avatar

    I have recorded an audio file with MediaRecorder on iPhone.

    


    As ffmpeg command I am using :

    


    ffmpeg -i 18380889311644327118 -ar 44100 -ac 2 -b:a 128k -c:a libmp3lame -q:a 0 18380889311644327118.mp3


    


    -i specifies the input file
-vn disables all video-streams from the input
-ar audio sampling frequency
-ac number of audio channels
-b:a bit rate
-c:a libmp3lame - codec of target file
-q:a quality set audio quality (codec-specific) (lower is better), see https://superuser.com/a/1515841

-sn disables all subtitle-streams from the input
-dn disables all data-streams from the input


    


    The console output looks like this :

    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '18380889311644327118':
  Metadata:
    major_brand     : iso5
    minor_version   : 1
    compatible_brands: isomiso5hlsf
    creation_time   : 2021-12-08T15:44:06.000000Z
  Duration: 00:00:01.00, start: 0.000000, bitrate: 2258 kb/s
    Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 2234 kb/s (default)
    Metadata:
      creation_time   : 2021-12-08T15:44:06.000000Z
      handler_name    : Core Media Audio
Stream mapping:
  Stream #0:0 -> #0:0 (aac (native) -> mp3 (libmp3lame))

Output #0, mp3, to '18380889311644327118.mp3':
  Metadata:
    major_brand     : iso5
    minor_version   : 1
    compatible_brands: isomiso5hlsf
    TSSE            : Lavf58.29.100
    Stream #0:0(und): Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2021-12-08T15:44:06.000000Z
      handler_name    : Core Media Audio
      encoder         : Lavc58.54.100 libmp3lame
size=      17kB time=00:00:01.01 bitrate= 135.5kbits/s speed=37.2x
video:0kB audio:16kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 3.343701%


    


    As you can see, the duration is 01.00 second. And this happens with all recorded files.

    


    How to convert the entire file (which is 12 seconds long) to its full length ?

    

    

    


    Note : It seems that the recorded file does not have a length specified. Under Windows I renamed the file, adding an extension ".m4a" and opened the file properties :

    


    m4a properties

    


    The length attribute is empty.

    


  • fastest ways of cropping a fixed size image into 9 fixed size crops

    18 septembre 2022, par bit_scientist

    I have thousands of images in a folder and I need to crop each image(3840x2160) into 9 crops (1280x720) with the fastest way possible. The cropped images should preserve all the details of the original image as it may contain small objects of interest. I found that image_slicer does the job, but not sure about its speed.

    


    from image_slicer import slice
slice('cake.png', 9)


    


    I also looked at PIL (image_slicer uses it), Imagemagick and some other similar libraries, but was not able to evaluate their speed. Maybe ffmpeg has some line command to achieve my goal.

    


    Eventually, I need a Windows executable file where a user inserts a full path to images and gets cropped images for each image in the new folder.

    


  • How to concat two videos with different aspect ratio with pad to later video and make intro the same size ?

    25 septembre 2021, par code0x00

    I want to concat two videos with different aspect ratio with padding to 2nd video if the 2nd video is of small resolution than the 1st video.

    


    for eg.

    


    I have a intro video(1920x1080) and a main video(480x480)

    


    so i want to add padding to main video so it becomes 16:9 which would make main video 848x480 and also make the intro that size too.

    


    I have tried this

    


    ffmpeg -ss 00:00:00 -t 00:00:10 -i ./intro.webm -i ./main.mkv -filter_complex "[0:v]scale=1920:1080:force_original_aspect_ratio=decrease[s0];[s0]fps=fps=30[s1];[s1]setsar=1[s2];[s2]pad=1920:1080:ow-iw/2:oh-ih/2[s3];[1:v]scale=1920:1080:force_original_aspect_ratio=decrease[s4];[s4]fps=fps=30[s5];[s5]setsar=1[s6];[s6]pad=1920:1080:ow-iw/2:oh-ih/2[s7];[s3][0:a][s7][1:a]concat=a=1:n=2:v=1[s8][s9]" -map "[s8]" -map "[s9]" -bitexact -c:a aac -crf 28 -map_metadata -1 -pix_fmt yuv420p -preset fast -report -tag:v hvc1 -vcodec libx265 -y output.mp4


    


    but it just scale the video to 1920x1080, is there a way :
to make main video so it becomes 16:9 which would make main video 848x480 and also make the intro that size too.

    


    I have also tried this :

    


    ffmpeg -ss 00:00:00 -t 00:00:10 -i intro.webm -i main.mp4 -filter_complex "[0]split[base][full];[base]trim=0:5,drawbox=t=fill[base];[1][base]scale2ref=iw:ih:force_original_aspect_ratio=decrease:flags=spline[2nd][base];[base][2nd]overlay='(W-w)/2':'(H-h)/2'[padded];[full][0:a][padded][1:a]concat=n=2:v=1:a=1[v][a]" -c:v libx264 -c:a aac -strict -2 -map "[v]" -map "[a]" output.mp4


    


    But is it not changing the intro video resolution

    


    EDIT

    


    I have managed to make 2nd command work but it shows aspect ratio 16:9 but the width is same 480x480 ?

    


    ffmpeg -ss 00:00:00 -t 00:00:10 -i intro.webm -i main1.mp4 -filter_complex "[0][1]scale2ref=iw:ih[intro][main];[intro]drawbox=t=fill[intro-bg];[0][intro-bg]scale2ref=iw:ih:force_original_aspect_ratio=decrease:flags=spline[intro][intro-bg];[intro-bg][intro]overlay=x='(W-w)/2':y='(H-h)/2'[intro-resized];[intro-resized][0:a][main][1:a]concat=n=2:v=1:a=1:unsafe=1[v][a]" -map '[v]' -map '[a]' -movflags +faststart -acodec aac  -b:v 1000k -bt 1000k -y -2pass true -r 30 -preset medium output.mp4


    


    and when i change as per aspect ratio i get an error :

    


    ffmpeg -ss 00:00:00 -t 00:00:10 -i intro.webm -i main1.mp4 -filter_complex "[0][1]scale2ref=ih*16/9:-1[intro][main];[intro]drawbox=t=fill[intro-bg];[0][intro-bg]scale2ref=iw:ih:force_original_aspect_ratio=decrease:flags=spline[intro][intro-bg];[intro-bg][intro]overlay=x='(W-w)/2':y='(H-h)/2'[intro-resized];[intro-resized][0:a][main][1:a]concat=n=2:v=1:a=1:unsafe=1[v][a]" -map '[v]' -map '[a]' -movflags +faststart -acodec aac  -b:v 1000k -bt 1000k -y -2pass true -r 30 -preset medium output.mp4


    


    Too many inputs specified for the "pad" filter.


    


    Is there a way i can change the width and height too ?