Recherche avancée

Médias (0)

Mot : - Tags -/publication

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

Autres articles (38)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (6348)

  • Anomalie #4729 : problème d’affichage dans la colone date

    16 avril 2021

    En fait quel est le problème ?

    Parce que "2019-W16" ça veut dire Semaine 16 de 2019…
    C’est ça qui te gène ?

    C’est un format de date normalisé aussi.
    https://en.wikipedia.org/wiki/ISO_week_date

  • 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

    


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