
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (88)
-
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)
Sur d’autres sites (5660)
-
Get Metadata From CDN URL
13 novembre 2022, par Jeet ShekhaliyaI 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) => {

 })
})




-
Cannot execute ffmpeg command with Java
12 octobre 2022, par Peter TranI am trying to execute ffmpeg command to add overlay text on existing video


ffmpeg command on shell which is working fine :


ffmpeg -i "/Users/test/video.mp4" -vf "drawtext=text='Testing':fontcolor=white:fontsize=24:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2" -codec:a copy "/Users/test/output.mp4"



Shell OUTPUT


fmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers



built with Apple clang version 14.0.0 (clang-1400.0.29.102)
configuration : —prefix=/opt/homebrew/Cellar/ffmpeg/5.1.2 —enable-shared —enable-pthreads —enable-version3 —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-librist —enable-librubberband —enable-libsnappy —enable-libsrt —enable-libtesseract —enable-libtheora —enable-libvidstab —enable-libvmaf —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 —enable-neon
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 '/Users/test/video.mp4' :
...


but when running above command with Java, the output video is not generated


Java code


@Test
public void generateVideo2() throws IOException, IOException {
 String fileNameFullPath= "/Users/test/video.mp4";
 String[] videoCmd = new String[]
 {"/bin/sh", "-c", "/opt/homebrew/Cellar/ffmpeg/5.1.2/bin/ffmpeg",
 "-i",
 fileNameFullPath,
 "-vf",
 "drawtext=text='Testing':fontcolor=white:fontsize=24:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2",
 "-codec:a copy",
 "/Users/test/output.mp4"
 };
 Process processDuration = new ProcessBuilder().command(videoCmd).start();
 StringBuilder strBuild = new StringBuilder();
 try (BufferedReader processOutputReader = new BufferedReader(new InputStreamReader(processDuration.getInputStream(), Charset.defaultCharset()));) {
 String line;
 while ((line = processOutputReader.readLine()) != null) {
 strBuild.append(line).append(System.lineSeparator());
 }
 int i = processDuration.waitFor();
 System.out.println("Process exitValue: "+i);
 } catch (InterruptedException e) {
 throw new RuntimeException(e);
 }
}



JAVA OUTPUT


Process exitValue : 1


Process finished with exit code 0


Does anyone have any idea ?


-
How to encode video with ffmpeg using AMD h264_amf
10 novembre 2022, par Ivy GrowingGiven :


- 

- Win10
- AMD CPU
- Video capturing card Avermedia Live Gamer Extreme 3
- ffmpeg versions and encoders :










>ffmpeg.exe -encoders | find "264"
ffmpeg version 5.1-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
// cut
 V....D libx264 libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (codec h264)
 V....D libx264rgb libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 RGB (codec h264)
 V....D h264_amf AMD AMF H.264 Encoder (codec h264)
 V....D h264_mf H264 via MediaFoundation (codec h264)
 V....D h264_nvenc NVIDIA NVENC H.264 encoder (codec h264)
 V..... h264_qsv H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (Intel Quick Sync Video acceleration) (codec h264)



Required to capture the video into H.264 encoded file using AMD's hardware accelerator in the CPU (AMF, or VCE).
Tried :
ffmpeg -y -f dshow -rtbufsize 2002000k -framerate 30 -i video="Live Gamer EXTREME 3" -t 00:00:10 -c:v h264_amf output.ts

Result :

Input #0, dshow, from 'video=Live Gamer EXTREME 3':
 Duration: N/A, start: 88548.973998, bitrate: N/A
 Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422(tv, bt709/bt709/unknown), 1280x720, 30 fps, 30 tbr, 10000k tbn
Stream mapping:
 Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (h264_amf))
Press [q] to stop, [?] for help
[h264_amf @ 000002404328c700] DLL amfrt64.dll failed to open
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!



For some reason
ffmpeg
uses resolution1280x720
... When trying to specifiy the capture card resolution the following error appears :

>ffmpeg -y -f dshow -rtbufsize 2002000k -framerate 30 -video_size 3840x2160 -i video="Live Gamer EXTREME 3" -r 30 -t 00:00:10 -c:v h264_amf -f mpegts output.ts
//cut
[dshow @ 0000029d7c0f84c0] Could not set video options
video=Live Gamer EXTREME 3: I/O error



This is not unique error for Avermedia card. The same error appears with Dell web cam and for Magewell.


From this answer the extra flags to be used with
h264_amf
. I guessed the default values should be good enough. It seems something needs to be configured or initialized when using AMF/VCE.

The video encoding in software (without AMF) works just fine but loads the CPU. The goal is using dedicated hardware module and release computational power of the CPU for the other apps.


Command example will be appreciated.