Recherche avancée

Médias (1)

Mot : - Tags -/artwork

Autres articles (53)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (7871)

  • How to cut video into 4M size mp4 video using ffmpeg

    13 octobre 2022, par fxsshiwo

    I have a *.mp4 video file, which is cut to a fixed size using ffmpeg, using the following commands

    


    '/usr/local/ffmpeg/bin/ffmpeg' '-y' '-ss' '00:00:00.00' '-i' '57066524-1.mp4' '-t' '00:00:05.00' '-vcodec' 'libx264' '-acodec' 'libmp3lame' '-b:v' '1000k' '-refs' '6' '-coder' '1' '-sc_threshold' '40' '-flags' '+loop' '-me_range' '16' '-subq' '7' '-i_qfactor' '0.71' '-qcomp' '0.6' '-qdiff' '4' '-trellis' '1' '-b:a' '128k' '-pass' '1' '-passlogfile' '/tmp/ffmpeg-passes6332bdc9814883qh89/pass-6332bdc98160c' '1.mp4'

    


    but I get an error saying -

    


    Unknown encoder 'libx264'

    


    Here is the complete error message:

    


    ffmpeg version 5.1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-44)
  configuration: --enable-shared --enable-swscale --enable-gpl --enable-nonfree --enable-pic --prefix=/usr/local/ffmpeg --enable-version3 --enable-postproc --enable-pthreads --enable-static --enable-libx264
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '57066524-1.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2022-09-26T02:06:24.000000Z
  Duration: 00:00:26.11, start: 0.000000, bitrate: 6683 kb/s
  Stream #0:0[0x1](eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(progressive), 720x720 [SAR 1:1 DAR 1:1], 6367 kb/s, 25 fps, 25 tbr, 25k tbn (default)
    Metadata:
      creation_time   : 2022-09-26T02:06:24.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      vendor_id       : [0][0][0][0]
      encoder         : AVC Coding
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
    Metadata:
      creation_time   : 2022-09-26T02:06:24.000000Z
      handler_name    : #Mainconcept MP4 Sound Media Handler
      vendor_id       : [0][0][0][0]
Unknown encoder 'libx264'



    


    I try to install libx264 and recompile, I still get this error

    


    [install libx264]
git clone https://code.videolan.org/videolan/x264.git
cd x264
./configure --prefix=/usr/local/x264/ --includedir=/usr/local/include --libdir=/usr/local/lib --enable-shared
./configure --prefix=/usr/softinstall/x264/ --includedir=/usr/local/include --libdir=/usr/local/lib --enable-shared

[compile ffmpeg]
wget http://www.ffmpeg.org/releases/ffmpeg-5.1.tar.gz
tar -zxvf ffmpeg-5.1.tar.gz
cd ffmpeg-5.1
./configure --enable-shared --enable-swscale --enable-gpl --enable-nonfree --enable-pic --prefix=/usr/local/ffmpeg --enable-version3 --enable-postproc --enable-pthreads --enable-static --enable-libx264 --enable-libmp3lame


    


    My questions :

    


      

    1. How to install ffmpeg with libx264
    2. 


    3. How to cut video into fixed size with ffmpeg
    4. 


    


  • FFMPEG sendcmd command limitation

    18 novembre 2022, par Stahlauge

    i try to draw text into a video with drawtext and sendcmd.
In the sendcmd file there are over 9100 commands defined (each frame needs a different text).
All my commands are build this way.

    


    0 Parsed_drawtext_1 reinit 'text=\102030GA01, 102040Ap05
von oben, in Fließrichtung
[0,00]   17.11.2022 10\:22\:04:fontsize=28.928569157918293:y=5:x=0:fontcolor=#FFFFFF';
0.04 Parsed_drawtext_1 reinit 'text=\102030GA01, 102040Ap05
von oben, in Fließrichtung
[0,00]   17.11.2022 10\:22\:04:fontsize=28.928569157918293:y=5:x=0:fontcolor=#FFFFFF';
0.08 Parsed_drawtext_1 reinit 'text=\102030GA01, 102040Ap05
von oben, in Fließrichtung
[0,00]   17.11.2022 10\:22\:05:fontsize=28.928569157918293:y=5:x=0:fontcolor=#FFFFFF';


    


    My command is.

    


    ffmpeg.exe -y -i "17112022_102204.mp4" -vf "sendcmd=f=drawtextcommands.cmd,drawtext=fontfile='Ubuntu-L.ttf':text=:fontcolor=black@1.0:line_spacing=5, drawtext=fontfile='Ubuntu-L.ttf':text=:fontcolor=yellow@1.0:line_spacing=5,drawtext=fontfile='Ubuntu-L.ttf':text=:fontcolor=yellow@1.0:line_spacing=5,drawtext=fontfile='Ubuntu-L.ttf':text=:fontcolor=green@1.0:line_spacing=5" -c:v mpeg4 -qscale:v 5 -f mp4 "102030GA01_2022-11-17_10-21.mp4"


    


    My ffmpeg Version is n5.0.4 lgpl.
If i run this command with the sendcmd file on my develop laptop it works just fine (i7-10850H and 32GB RAM) but if i run the excat same on a Surface (i5-1035G4 and 8GB RAM) or Dell Latitude 5175 (Intel m5-6Y57 and 8GB RAM) i get an error

    


    [Parsed_sendcmd_0 @ 000002454188c540] No Targed specified in interval #XXXX, command #0 


    


    where XXXX is different each time i run it. All PC runs Win 10.

    


    I can´t really find the problem why i get this error on the tablets but not on my Laptop.
Maybe it´s a hardware ressource problem even FFMEG doesn´t have any requirements at all ?

    


    I only can get it to run on the tablets if i delete lots of commands from the sendcmd file.
I can´t define excatly the amount i need to delete because each run i can have more or less commands that are working.
But i can say i need to delete a lot more commands on the Dell tablet then on the Surface on to get it to run.

    


  • Get Metadata From CDN URL

    13 novembre 2022, par Jeet Shekhaliya

    I have an code in node.js to get metadata from local file , but i want to extract data from CDN url : -
https://seach.sigmacdn1.workers.dev/stream/782167627762213921323b6b7a49465a6f36485045523164356e305b2e646f56547b4e5b30644c643753212f21776a6e6621393235353b3036333736353630377e/Lost.Bullet.2.2022.1080p.NF.WEB-DL.DDP5.1.H.264-playWEB.mkv

    


    const probe = require('node-ffprobe')
const ffprobeInstaller = require('@ffprobe-installer/ffprobe')
const fs = require("fs")
console.log(ffprobeInstaller.path, ffprobeInstaller.version)

probe.FFPROBE_PATH = ffprobeInstaller.path

var track = "movie.mkv" // or video

probe(track).then(probeData => {
    console.log(probeData)
    fs.writeFile("data.json", JSON.stringify(probeData), (err, data) => {

    })
})