Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (77)

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

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

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (15771)

  • Using ffmpeg to scale app preview videos for the AppStore

    1er décembre 2018, par Felipe Ferri

    I’m generating an app preview video to send to the AppStore. Depending on the device type, the AppStore requires certain video resolutions.

    I have a main video, with resolution 1920x1080, which I was able to upload.

    I need to generate another video with the resolution 1920x886 for supporting 6.5" devices, so I used the following command to perform the scaling :

    ffmpeg -i video_1920_1080.mp4 -vf scale=1920:886 -c:a copy video_1920_886.mp4

    If I get the info for the generated video using ffmpeg -i I get the following result :

    ffmpeg -i video_1920_886.mp4

    ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
     built with Apple LLVM version 9.0.0 (clang-900.0.39.2)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4.2 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --disable-jack --enable-gpl --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma
     libavutil      55. 78.100 / 55. 78.100
     libavcodec     57.107.100 / 57.107.100
     libavformat    57. 83.100 / 57. 83.100
     libavdevice    57. 10.100 / 57. 10.100
     libavfilter     6.107.100 /  6.107.100
     libavresample   3.  7.  0 /  3.  7.  0
     libswscale      4.  8.100 /  4.  8.100
     libswresample   2.  9.100 /  2.  9.100
     libpostproc    54.  7.100 / 54.  7.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'hittin_1920_886.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.83.100
     Duration: 00:00:29.13, start: 0.000000, bitrate: 705 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x886 [SAR 443:540 DAR 16:9], 694 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
       Metadata:
         handler_name    : VideoHandler
         timecode        : 00:00:10:20
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 2 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
       Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s
       Metadata:
         handler_name    : TimeCodeHandler
         timecode        : 00:00:10:20

    Ok, so it seems the output video is in the correct 1920x886 resolution.

    However, when I try to upload this video the AppStore complains that the video is in the incorrect resolution.

    If I open the file properties window on macos, the following information appears for the same video :

    Properties of video_1920_886.mp4

    And, if I open the same video on VLC, I can see the following info on the Media Info screen :

    Codec Details on VLC

    So :

    1. ffmpeg -i tells me the video is in the resolution 1920x886.
    2. macos file properties tells me the video is in the resolution 1575x886.
    3. VLC tells me the video has a Resolution of 1920x898 and a Display Resolution of 1920x886.

    Why are there three different resolutions ? How can I change each one of them ? I suppose the appstoreconnect website expects the file properties resolution to be 1920x886. How can I change that ?

  • ffmpeg - ffmpeg aws lamnda function error

    30 novembre 2018, par Pramod Gehlot

    I am getting error

    Execution result : failed(logs)
    Details

    The area below shows the result returned by your function execution. Learn more about returning results from your function.

    {
     "errorMessage": "RequestId: eb7906af-f46d-11e8-ae3b-45487c02a68e Process exited before completing request"
    }

    Summary

    Code SHA-256
    ca50xloHl4xLOSWox2xidHxC1VHyNqwq3kECKraw7/c=
    Request ID
    eb7906af-f46d-11e8-ae3b-45487c02a68e
    Duration
    38.73 ms
    Billed duration
    100 ms
    Resources configured
    128 MB
    Max memory used
    19 MB

    Log output

    The section below shows the logging calls in your code. These correspond to a single row within the CloudWatch log group corresponding to this Lambda function. Click here to view the CloudWatch log group.

    START RequestId: eb7906af-f46d-11e8-ae3b-45487c02a68e Version: $LATEST
    2018-11-30T07:02:38.509Z    eb7906af-f46d-11e8-ae3b-45487c02a68e    TypeError: Cannot create property 'stack' on string 'Could not find ffmpeg executable, tried "/var/task/node_modules/@ffmpeg-installer/linux-x64/ffmpeg" and "/var/task/node_modules/@ffmpeg-installer/ffmpeg/node_modules/@ffmpeg-installer/linux-x64/ffmpeg"'

    END RequestId: eb7906af-f46d-11e8-ae3b-45487c02a68e
    REPORT RequestId: eb7906af-f46d-11e8-ae3b-45487c02a68e  Duration: 38.73 ms  Billed Duration: 100 ms     Memory Size: 128 MB Max Memory Used: 19 MB  
    RequestId: eb7906af-f46d-11e8-ae3b-45487c02a68e Process exited before completing request
  • FFmpeg : Audio Filter taking too long

    29 novembre 2018, par Prashant_Sarin

    I am using the code below to apply a volume filter in ffmpeg, but it is taking too long. A 5-minute audiofile filter takes 3 minutes. Can someone give advice on how I can speed it up.

    My command is :

    var command = "-i $audioPath -af volume=enable='between(t,5,10)+between(t,15,20)':volume=0.25:eval=frame $outputFile"

    Logs are :

    2018-11-29 16:58:22.487 23387-23387/com.example.prashants.ffmpegtest D/com.example.prashants.ffmpegtest.service.AudioOverlayService: onProgress -    ---AudioVolume---- size=    1537kB time=00:01:40.41 bitrate= 125.4kbits/s speed=1.13x    
    2018-11-29 16:58:22.489 23387-23387/com.example.prashants.ffmpegtest D/com.example.prashants.ffmpegtest.service.AudioOverlayService: onProgress ----AudioVolume---- video:0kB audio:1518kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.260607%
    2018-11-29 16:58:22.490 23387-23387/com.example.prashants.ffmpegtest D/com.example.prashants.ffmpegtest.service.AudioOverlayService: onProgress ----AudioVolume---- bench: utime=86.707s
    2018-11-29 16:58:22.491 23387-23387/com.example.prashants.ffmpegtest D/com.example.prashants.ffmpegtest.service.AudioOverlayService: onProgress ----AudioVolume---- bench: maxrss=65792kB
    2018-11-29 16:58:22.492 23387-23387/com.example.prashants.ffmpegtest D/com.example.prashants.ffmpegtest.service.AudioOverlayService: onProgress ----AudioVolume---- [aac @ 0xb1ce4400] Qavg: 17415.965
    2018-11-29 16:58:22.493 23387-23387/com.example.prashants.ffmpegtest D/com.example.prashants.ffmpegtest.service.AudioOverlayService: AudioVolume success--------- -benchmark -threads 4 -i /storage/emulated/0/FFmpegTest/looped.m4a -af volume=enable='between(t,5,10)+between(t,15,20)':volume=0.25:eval=frame
    /storage/emulated/0/FFmpegTest/filtered_audio.m4a