Recherche avancée

Médias (91)

Autres articles (38)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

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

  • Que fait exactement ce script ?

    18 janvier 2011, par

    Ce script est écrit en bash. Il est donc facilement utilisable sur n’importe quel serveur.
    Il n’est compatible qu’avec une liste de distributions précises (voir Liste des distributions compatibles).
    Installation de dépendances de MediaSPIP
    Son rôle principal est d’installer l’ensemble des dépendances logicielles nécessaires coté serveur à savoir :
    Les outils de base pour pouvoir installer le reste des dépendances Les outils de développements : build-essential (via APT depuis les dépôts officiels) ; (...)

Sur d’autres sites (6213)

  • Add support for playing Audible AAXC (.aaxc) files [PATCH v4]

    1er janvier 2000, par Vesselin Bontchev
    Add support for playing Audible AAXC (.aaxc) files [PATCH v4]
    

    The AAXC container format is the same as the (already supported) Audible
    AAX format but it uses a different encryption scheme.

    Note : audible_key and audible_iv values are variable (per file) and are
    externally fed.

    It is possible to extend https://github.com/mkb79/Audible to derive the
    audible_key and audible_key values.

    Relevant code :

    def decrypt_voucher(deviceSerialNumber, customerId, deviceType, asin, voucher) :
    buf = (deviceType + deviceSerialNumber + customerId + asin).encode("ascii")
    digest = hashlib.sha256(buf).digest()
    key = digest[0:16]
    iv = digest[16 :]

    # decrypt "voucher" using AES in CBC mode with no padding
    cipher = AES.new(key, AES.MODE_CBC, iv)
    plaintext = cipher.decrypt(voucher).rstrip(b"\x00") # improve this !
    return json.loads(plaintext)

    The decrypted "voucher" has the required audible_key and audible_iv
    values.

    Update (Nov-2020) : This patch has now been tested by multiple folks -
    details at the following URL :

    https://github.com/mkb79/Audible/issues/3

    Signed-off-by : Vesselin Bontchev <vesselin.bontchev@yandex.com>

    • [DH] libavformat/isom.h
    • [DH] libavformat/mov.c
  • Android ffmpeg Command not executing

    22 juin 2020, par MoTahir

    I am using this FFMPEG library,

    &#xA;

    first I am playing the video inside my videoView to make sure that the video path is correct

    &#xA;

    videoView.setVideoURI(Uri.parse(getExternalFilesDir(null)?.absolutePath &#x2B; "videoToBeEdit"))&#xA;

    &#xA;

    then I am calling the code written below to crop the video then put it inside the videoView again just to see the result

    &#xA;

    val ff = FFmpeg.getInstance(this@EditVideoActivity)&#xA;if (ff.isSupported){&#xA;&#xA;  val inFile = File(getExternalFilesDir(null)?.absolutePath ,"videoToBeEdit")&#xA;  val outFile = File(getExternalFilesDir(null)?.absolutePath , "result")&#xA;&#xA;  val command = arrayOf("ffmpeg","-i", inFile.absolutePath , "-filter:v", "crop=100:100:0:0", outFile.absolutePath)&#xA;&#xA;  ff.execute(command, object : ExecuteBinaryResponseHandler() {&#xA;    override fun onSuccess(message: String?) {&#xA;      super.onSuccess(message)&#xA;      videoView.setVideoURI(Uri.parse(getExternalFilesDir(null)?.absolutePath &#x2B; "videoToBeEdit"))&#xA;    }&#xA;&#xA;    override fun onProgress(message: String?) {&#xA;      super.onProgress(message)&#xA;    }&#xA;&#xA;    override fun onFailure(message: String?) {&#xA;      super.onFailure(message)&#xA;      Log.e("error", "failed")&#xA;    }&#xA;&#xA;    override fun onStart() {&#xA;      super.onStart()&#xA;      Log.e("start", "started the process")&#xA;    }&#xA;&#xA;    override fun onFinish() {&#xA;      super.onFinish()&#xA;      Log.e("finish", "done")&#xA;    }&#xA;  })&#xA;}&#xA;

    &#xA;

    but my code above goes from start to error then finish, it doesn't show any error messages and that's making it really hard to know what's actually wrong :( I tried to write my command in different ways following those tutorials tutorial1 tutorial2 link&#xA;please help, thank you in advance...

    &#xA;

  • Ffmpeg inaccurate cutting with ts and m3u8 files despite resamping audio filter

    31 juillet 2020, par Lemon Sky

    I need to accurately seek and cut a video. Some online sources say put -ss in front or after the source. The result is the same for me. In the examples below, the start time is accurate but the duration is not accurate.

    &#xA;

    ffmpeg -y -ss 00:00:05 -t 00:00:05 -i output.ts 5s.wav&#xA;ffprobe 5s.wav&#xA;&#xA;Duration: 00:00:04.74&#xA;&#xA;ffmpeg -y -i output.ts -ss 00:00:05 -t 00:00:05 5s.wav&#xA;ffprobe 5s.wav&#xA;&#xA;Duration: 00:00:04.74&#xA;

    &#xA;

    Sometimes the starting point is not accurate but the duration is. This is clearly audible by cutting the ts file and cutting an uncompressed wav file, and listening to both.

    &#xA;

    ffmpeg -y -i output.ts -ss 00:00:15 -t 00:00:05 5s.wav&#xA;&#xA;ffmpeg -y -i output.wav -ss 00:00:15 -t 00:00:05 5s-reference.wav&#xA;

    &#xA;

    What fixes the starting time is if I use an m3u8 file that contains the byte offset for every keyframe AND I put the -ss option in front of the source file (if I put it after the source, the start time is inaccurate but the duration is accurate) :

    &#xA;

    ffmpeg -y -ss 00:00:15 -t 00:00:05 -i output.m3u8 5s.wav&#xA;

    &#xA;

    This fixes the start time but the duration is at the location that I would get had I used no m3u8 file (duration is just 4.47s).

    &#xA;

    It seems different timestamps are involved, and sometimes one or the other gets used.

    &#xA;

    The ts file was generated by capturing a UDP stream and storing it with ffmpeg and -codec:v copy.

    &#xA;

    Is ffmpeg broken, or the ts file ? How do I work around this issue or fix the ts file ? What I realize is that the video starts later than the audio, probably because the video does not start with a keyframe. Can I get ffmpeg to start the -codec:v copy after the first keyframe ? What I also notice is that using ffprobe reports "start : 1.400000". Can I force it to start at 0 ?

    &#xA;

    Any hints would be appreciated.

    &#xA;

    I tried both ffmpeg 4.3.1 and ffmpeg git-2020-07-24-21442a8.

    &#xA;

    The output.* files were generated as follows. The statement "af aresample=async=1" should fill missing audio according to Duration of source video and subtracted audio are different. Adding this statement makes no difference in terms of accuracy or duration. The question is not a duplicate.

    &#xA;

    ffmpeg -i udp://example:port ^&#xA;-af aresample=async=1 ^&#xA;-codec:v copy ^&#xA;-codec:a aac -ac 2 -ar 44100 -b:a 160k ^&#xA;-hls_time 4 -hls_flags single_file -hls_list_size 0 -hls_segment_filename output.ts -hls_segment_type mpegts output.m3u8 ^&#xA;-codec:a pcm_s16le -bitexact -ar 11025 -ac 1 output.wav&#xA;

    &#xA;