Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (92)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (7120)

  • FFMPEG fails with only two input frames

    3 mars 2019, par JeffThompson

    I’d like to use ffmpeg’s great frame interpolation to blend two images. I get great results when testing with about a dozen frames, but when only using two it finishes immediately and I get a video file that can’t be opened.

    My command :

    ffmpeg -y -r 24 -pattern_type glob -i "TestFrames/*[0-1].png" -pix_fmt yuv420p -filter:v "minterpolate='mi_mode=mci:mc_mode=aobmc:me_mode=bidir:vsbmc=1:fps=1024'" -vsync 2 8.mp4

    Output from ffmpeg :

    ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers
     built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
     configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
     libavutil      56. 22.100 / 56. 22.100
     libavcodec     58. 35.100 / 58. 35.100
     libavformat    58. 20.100 / 58. 20.100
     libavdevice    58.  5.100 / 58.  5.100
     libavfilter     7. 40.101 /  7. 40.101
     libavresample   4.  0.  0 /  4.  0.  0
     libswscale      5.  3.100 /  5.  3.100
     libswresample   3.  3.100 /  3.  3.100
     libpostproc    55.  3.100 / 55.  3.100
    Input #0, image2, from 'TestFrames/*.png':
     Duration: 00:00:00.08, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: png, rgba(pc), 1080x1080, 25 tbr, 25 tbn, 25 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [libx264 @ 0x7fa5c2813200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 0x7fa5c2813200] profile High, level 6.1
    [libx264 @ 0x7fa5c2813200] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to '8.mp4':
     Metadata:
       encoder         : Lavf58.20.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 1080x1080, q=-1--1, 1024 fps, 16384 tbn, 1024 tbc
       Metadata:
         encoder         : Lavc58.35.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown

    (Why fps=1024 ? I wanted to generate a a bunch of frames between the two images, so I plan to later separate the resulting video into separate images.)

  • Converting ffmpeg & ffprobe outputs to variables in an ffmpeg AWS Lambda Layer

    7 mars 2019, par Gracie

    I have two tasks I am trying to perform with the ffmpeg AWS Lambda layer.

    1) Convert an audio file from stereo to mono (with ffmpeg)

    2) Get the duration of the audio file and pass the result to a variable (with ffprobe)

    const { spawnSync } = require("child_process");
    const { readFileSync, writeFileSync, unlinkSync } = require("fs");
    const util = require('util');
    var fs = require('fs');

    exports.handler = (event, context, callback) => {

       // Windows 10 ffmpeg command to convert stereo to ffmpeg is
       // ffmpeg -i volando.flac -ac 1 volando-mono.flac

       // Convert from stereo to mono
       spawnSync(
           "/opt/bin/ffmpeg",
           [
               "-i",
               `volando.flac`,
               "-ac",
               "1",
               `/tmp/volando-mono.flac`
           ],
           { stdio: "inherit" }
       );

       //Pass result to a variable
       //var duration = stdio;

       //Read the content from the /tmp directory
       fs.readdir("/tmp/", function (err, data) {
           if (err) throw err;
           console.log('Contents of tmp file: ', data);
       });

       // Get duration of Flac file
       // Windows 10 ffmpeg command is
       // ffprobe in.wav -show_entries stream=duration -select_streams a -of compact=p=0:nk=1 -v 0
       spawnSync(
           "/opt/bin/ffprobe",
           [
               `in.wav`,
               "-show_entries",
               "stream=duration",
               "-select_streams",
               "a",
               "-of",
               "compact=p=0:nk=1",
               "-v",
               "0"
           ],
           { stdio: "inherit" }

           //Pass result to a variable
           //var duration = stdio;
       );

    };

    Can anyone who has had success with this ffmpeg Lambda layer help get an output for these commands ?

    Here are some resources regarding the FFmpeg Lambda layer :

    https://serverless.com/blog/publish-aws-lambda-layers-serverless-framework/
    https://github.com/serverlesspub/ffmpeg-aws-lambda-layer
    https://devopstar.com/2019/01/28/serverless-watermark-using-aws-lambda-layers-ffmpeg/

  • Trying to create mp4 proxy from Sony RAW file using FFMPEG

    16 avril 2021, par Daniel Akerman

    I'm trying to create a viewable mp4 proxy file (MPEG-4 AVC with AAC LC audio) from a Sony RAW SQ mxf file.

    


    I was able to create an mp4 with a single track of audio but no video by using this :

    


    ffmpeg -i Raw.mxf -c:v libx264 -c:a aac -strict experimental Raw-test.mp4


    


    I have a Mac, using ffmpeg version 4.3.2

    


    This is the file I'm trying to convert:
File spec:
General
Complete name                            : Raw.mxf
Format                                   : MXF
Format version                           : 1.3
Format profile                           : OP-1a
Format settings                          : Closed / Complete
File size                                : 2.33 GiB
Duration                                 : 20 s 200 ms
Overall bit rate                         : 990 Mb/s
Encoded date                             : 2019-06-23 19:48:44.000
Writing application                      : Sony AXS 2.0.0.0.1
Writing library                          : Sony SC Platform 8.2.0.0.1

Video
ID                                       : 2
Format                                   : Sony RAW SQ
Format settings, wrapping mode           : Frame (D-10)
Codec ID                                 : 0E060D0302010100-0E06040102040201
Duration                                 : 20 s 200 ms
Bit rate                                 : 986 Mb/s
Width                                    : 4 096 pixels
Original width                           : 4 128 pixels
Height                                   : 2 160 pixels
Original height                          : 2 192 pixels
Display aspect ratio                     : 1.896
Frame rate                               : 25.000 FPS
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 4.457
Stream size                              : 2.32 GiB (100%)

Audio #1
ID                                       : 3
Format                                   : PCM
Format settings                          : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 20 s 200 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Frame rate                               : 25.000 FPS (1920 SPF)
Bit depth                                : 24 bits
Stream size                              : 2.77 MiB (0%)
Locked                                   : Yes

Audio #2
ID                                       : 4
Format                                   : PCM
Format settings                          : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 20 s 200 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Frame rate                               : 25.000 FPS (1920 SPF)
Bit depth                                : 24 bits
Stream size                              : 2.77 MiB (0%)
Locked                                   : Yes

Audio #3
ID                                       : 5
Format                                   : PCM
Format settings                          : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 20 s 200 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Frame rate                               : 25.000 FPS (1920 SPF)
Bit depth                                : 24 bits
Stream size                              : 2.77 MiB (0%)
Locked                                   : Yes

Audio #4
ID                                       : 6
Format                                   : PCM
Format settings                          : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 20 s 200 ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Frame rate                               : 25.000 FPS (1920 SPF)
Bit depth                                : 24 bits
Stream size                              : 2.77 MiB (0%)
Locked                                   : Yes

Other #1
ID                                       : 1-Material
Type                                     : Time code
Format                                   : MXF TC
Frame rate                               : 25.000 FPS
Time code of first frame                 : 20:50:05:08
Time code settings                       : Material Package
Time code, striped                       : Yes

Other #2
ID                                       : 1-Source
Type                                     : Time code
Format                                   : MXF TC
Frame rate                               : 25.000 FPS
Time code of first frame                 : 20:50:05:08
Time code settings                       : Source Package
Time code, striped                       : Yes

Other #3
ID                                       : 7
Format                                   : Acquisition Metadata
Muxing mode                              : Ancillary data / RDD 18
Duration                                 : 20 s 200 ms
Frame rate                               : 25.000 FPS
CaptureGammaEquation_FirstFrame          : SceneLinear
MacroSetting_FirstFrame                  : Off
OpticalExtenderMagnification_FirstFrame  : 100%
LensAttributes_FirstFrame                : Unknown
AutoExposureMode_FirstFrame              : Manual
NeutralDensityFilterWheelSetting_FirstFr : Clear
ImageSensorDimensionEffectiveWidth_First : 24.003 mm
ImageSensorDimensionEffectiveHeight_Firs : 12.658 mm
CaptureFrameRate_FirstFrame              : 25.000 fps
ImageSensorReadoutMode_FirstFrame        : Progressive frame
ShutterSpeed_Angle_FirstFrame            : 180.0°
ShutterSpeed_Time_FirstFrame             : 1/50 s
CameraMasterGainAdjustment_FirstFrame    : 0.00 dB
ISOSensitivity_FirstFrame                : 1250
ElectricalExtenderMagnification_FirstFra : 100%
AutoWhiteBalanceMode_FirstFrame          : Preset
WhiteBalance_FirstFrame                  : 3200 K
CameraMasterBlackLevel_FirstFrame        : 3.0%
CameraAttributes_FirstFrame              : F55 101044
ExposureIndexofPhotoMeter_FirstFrame     : 1250
GammaForCDL_FirstFrame                   : Undefined
ASC_CDL_V12_FirstFrame                   : sR=1.0 sG=1.0 sB=1.0 oR=0.0 oG=0.0 oB=0.0 pR=1.0 pG=1.0 pB=1.0 sat=1.0
EffectiveMarkerCoverage_FirstFrame       : 4096x4096
EffectiveMarkerAspectRatio_FirstFrame    : 4096x2160
CameraProcessDiscriminationCode_FirstFra : 201
RawBlackCodeValue_FirstFrame             : 512
RawGrayCodeValue_FirstFrame              : 1504
RawWhiteCodeValue_FirstFrame             : 5472
MonitoringDescriptions_FirstFrame        : SonyProf2:LC-709typA
MonitoringBaseCurve_FirstFrame           : 0E06040101010408

Other #4
Type                                     : Time code
Format                                   : SMPTE TC
Muxing mode                              : SDTI
Frame rate                               : 25.000 FPS
Time code of first frame                 : 20:50:05:08


    


    I'm not sure which camera it is from, I only have the information extracted by MediaInfo that I included.

    


    The FFMEG log is:
$ ffmpeg -i /Users/Aker84150/Downloads/Raw.mxf -c:v libx264 -c:a aac -strict experimental /Users/Aker84150/Downloads/Raw-test.mp4ffmpeg version 4.3.2 Copyright (c) 2000-2021 the FFmpeg developers  built with Apple clang version 11.0.0 (clang-1100.0.33.17)  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.2_4 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox  libavutil      56. 51.100 / 56. 51.100  libavcodec     58. 91.100 / 58. 91.100  libavformat    58. 45.100 / 58. 45.100  libavdevice    58. 10.100 / 58. 10.100  libavfilter     7. 85.100 /  7. 85.100  libavresample   4.  0.  0 /  4.  0.  0  libswscale      5.  7.100 /  5.  7.100  libswresample   3.  7.100 /  3.  7.100  libpostproc    55.  7.100 / 55.  7.100[mxf @ 0x7f808f008800] could not resolve sub descriptor strong ref[mxf @ 0x7f808f008800] source track 2: stream 0, no descriptor found[mxf @ 0x7f808f008800] could not resolve sub descriptor strong ref    Last message repeated 4 times[mxf @ 0x7f808f008800] Could not find codec parameters for stream 0 (Video: none, none): unknown codecConsider increasing the value for the 'analyzeduration' and 'probesize' optionsGuessed Channel Layout for Input Stream #0.1 : monoGuessed Channel Layout for Input Stream #0.2 : monoGuessed Channel Layout for Input Stream #0.3 : monoGuessed Channel Layout for Input Stream #0.4 : monoInput #0, mxf, from '/Users/Aker84150/Downloads/Raw.mxf':  Metadata:    operational_pattern_ul: 060e2b34.04010101.0d010201.01010900    product_uid     : cede1604-8280-11de-8a39-08004678031c    uid             : e8f36160-95ef-11e9-83ab-08004632275a    generation_uid  : e8f3616a-95ef-11e9-b502-08004632275a    company_name    : Sony    product_name    : AXS     product_version : 2.0    application_platform: Sony SC Platform    modification_date: 2019-06-23T19:48:44.000000Z    material_package_umid: 0x060A2B340101010501010D43130000009CDA54D3578605DC080046020132275A    timecode        : 20:50:05:08  Duration: 00:00:20.20, start: 0.000000, bitrate: 990426 kb/s    Stream #0:0: Video: none, none, 25 tbr, 25 tbn, 25 tbc    Stream #0:1: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s    Metadata:      file_package_umid: 0x060A2B340101010501010D43130000009DDA54D3578605DC080046020132275A    Stream #0:2: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s    Metadata:      file_package_umid: 0x060A2B340101010501010D43130000009DDA54D3578605DC080046020132275A    Stream #0:3: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s    Metadata:      file_package_umid: 0x060A2B340101010501010D43130000009DDA54D3578605DC080046020132275A    Stream #0:4: Audio: pcm_s24le, 48000 Hz, mono, s32 (24 bit), 1152 kb/s    Metadata:      file_package_umid: 0x060A2B340101010501010D43130000009DDA54D3578605DC080046020132275A    Stream #0:5: Data: none    Metadata:      file_package_umid: 0x060A2B340101010501010D43130000009DDA54D3578605DC080046020132275A      data_type       : vbi_vanc_smpte_436MStream mapping:  Stream #0:1 -> #0:0 (pcm_s24le (native) -> aac (native))Press [q] to stop, [?] for helpOutput #0, mp4, to '/Users/Aker84150/Downloads/Raw-test.mp4':  Metadata:    operational_pattern_ul: 060e2b34.04010101.0d010201.01010900    product_uid     : cede1604-8280-11de-8a39-08004678031c    uid             : e8f36160-95ef-11e9-83ab-08004632275a    generation_uid  : e8f3616a-95ef-11e9-b502-08004632275a    company_name    : Sony    product_name    : AXS     product_version : 2.0    application_platform: Sony SC Platform    modification_date: 2019-06-23T19:48:44.000000Z    material_package_umid: 0x060A2B340101010501010D43130000009CDA54D3578605DC080046020132275A    timecode        : 20:50:05:08    encoder         : Lavf58.45.100    Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp (24 bit), 69 kb/s    Metadata:      file_package_umid: 0x060A2B340101010501010D43130000009DDA54D3578605DC080046020132275A      encoder         : Lavc58.91.100 aacsize=     176kB time=00:00:20.20 bitrate=  71.3kbits/s speed=66.6x    video:0kB audio:171kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.619946%[aac @ 0x7f808f89a800] Qavg: 121.639


    


    Thanks