
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (70)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-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
Sur d’autres sites (9230)
-
Scale with scale_vaapi and than pad, got error. Seems ok without "pad"
24 mai 2023, par huangda1982My computer : customized Linux, haswell
I am trying to scale 1280x720 video to 640x450 in 640x480 frame with black borders. To do so, I run this command :


ffmpeg -v warning -hide_banner -init_hw_device vaapi=vaapi0:/dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -hwaccel_device vaapi0 -filter_hw_device vaapi0 -i 'my_video.mp4' -vf 'scale_vaapi=640:450,pad=640:480:0:14' -c:v h264_vaapi -q:v 18 -profile:v main -level 3.1 -c:a aac -q:a 3 -f mp4 out.mp4 -loglevel verbose



And I got this error :


Impossible to convert between the formats supported by the filter 'Parsed_scale_vaapi_0' and the filter 'auto_scaler_0'<br />
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0



When I removed the ",pad=640:480:0:14" part, the command continued. I pressed ctrl-c, and did not check the result.


"-q:v 18", "-level 3.1" and "-q:a" options seem not work.


Full message :


[h264 @ 0x55dfeb529340] Reinit context to 1280x720, pix_fmt: yuv420p
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'my_video.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: mp41
 creation_time : 1970-01-01T00:00:00.000000Z
 encoder : PotEncoder
 Duration: 00:22:45.01, start: 0.000000, bitrate: 3264 kb/s
 Stream #0:0(und): Video: h264 (Constrained Baseline), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1280x720 [SAR 1:1 DAR 16:9], 3068 kb/s, 23.98 fps, 23.98 tbr, 1199 tbn, 47.96 tbc (default)
 Metadata:
 creation_time : 1970-01-01T00:00:00.000000Z
 handler_name : VideoHandler
 vendor_id : [0][0][0][0]
 Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default)
 Metadata:
 creation_time : 1970-01-01T00:00:00.000000Z
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]
File 'out.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
 Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_vaapi))
 Stream #0:1 -> #0:1 (mp3 (mp3float) -> aac (native))
Press [q] to stop, [?] for help
[h264 @ 0x55dfeb553e40] Reinit context to 1280x720, pix_fmt: vaapi_vld
[graph_1_in_0_1 @ 0x55dfeb6b7580] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3
[graph 0 input from stream 0:0 @ 0x55dfebb4d000] w:1280 h:720 pixfmt:vaapi_vld tb:1/1199 fr:1199/50 sar:1/1
[auto_scaler_0 @ 0x55dfebb4f940] w:iw h:ih flags:'bicubic' interl:0
[Parsed_pad_1 @ 0x55dfebb4c700] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_scale_vaapi_0' and the filter 'Parsed_pad_1'
Impossible to convert between the formats supported by the filter 'Parsed_scale_vaapi_0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0
[AVIOContext @ 0x55dfeb5522c0] Statistics: 0 seeks, 0 writeouts
[aac @ 0x55dfeb551600] Qavg: 354.000
[aac @ 0x55dfeb551600] 2 frames left in the queue on closing
[AVIOContext @ 0x55dfeb530500] Statistics: 1144787 bytes read, 2 seeks
Conversion failed!



-
How to scale video up and then put image as an overlay with FFMPEG
13 mars 2023, par Dean Van GreunenI'm scaling a video to 920x692.
Then I want to resize an image and put it in the button corner of the video.
Here is my code, using nodejs with the ffmpeg fluent library import.
I'm having issue with the complex filters.


// load imports
const ffmpeg = require("fluent-ffmpeg");
const sizeOf = require("image-size");

// load files
const inputFile = "./test.mp4";
const outputFile = "./output.mp4";
const watermarkFile = "./watermark.png";

// load output video size/res
const outputW = 920;
const outputH = 692;

// load output options
const outputOptions = [
 "-movflags faststart",
 "-c:v libx264",
 "-crf 21",
 "-preset medium",
 "-r 30",
 "-c:a aac",
 "-ac 2",
 "-strict -2",
 "-f mp4",
 "-af volume=6.0",
 "-map [out]",
 "-map 1:a",
]

// get the watermark image size
const watermarkFileSize = sizeOf(watermarkFile);
const watermark_w = watermarkFileSize.width;
const watermark_h = watermarkFileSize.height;

// calculate new image size based on height being 64px
const newWatermark_n_h = 64;
const newWatermark_n_w = Math.floor(
 (watermark_w * newWatermark_n_h) / watermark_h
);

// calculate overlay offset position (to bottom right corner)
const watermark_x_offset = Math.floor(outputH - newWatermark_n_w);
const watermark_y_offset = Math.floor(
 outputW - newWatermark_n_h
);

// define complex filters (these seem to not work)
const scaleVideo = "[1]scale=920:692[inner];[0][inner]overlay=0:0:[out]";
const applyOverlay = "[2]scale=" + newWatermark_n_w + ":" + newWatermark_n_h + "[inner];[out][inner]overlay=" + watermark_x_offset + ":" + watermark_y_offset + ":[out]",

// apply inputs, complex filters and output file
ffmpeg()
.input(inputFile)
.input(watermarkFile)
.complexFilter([
 scaleVideo,
 applyOverlay
]).outputOptions(outputOptions)
.saveToFile(outputFile);



-
ffmpeg overlay with scale in filter_complex
2 février 2023, par anders larssonim trying to get the scale in video input 0 to scale down but get error


exec_static /usr/bin/ffmpeg -threads 1 -i "rtmp ://url" -stream_loop -1 -i /slider.m
p4 -filter_complex "[0:v]scale=1920:1080[1:v] overlay=20:main_h-overlay_h-80" -c:v h264 -c:a aac -b:v 1980k -b:a 64k -an -tune zerolatency -preset ultrafast -f flv rtmp ://localhost:1935/live/std 2>>/var/log/nginx/ffmpeg-std.lo
g ;


[AVFilterGraph @ 0x556874510700] Unable to parse graph description substring : "overlay=20:main_h-overlay_h-80"
Error initializing complex filters.


i was trying to scale down the video input


Input #0, flv, from 'rtmp ://url' :
Metadata :
displayWidth : 2304
displayHeight : 1296
Duration : 00:00:00.00, start : 53669.778000, bitrate : N/A
Stream #0:0 : Data : none
Stream #0:1 : Video : h264 (Baseline), yuv420p(progressive), 2304x1296, 12 fps, 12 tbr, 1k tbn
Stream #0:2 : Audio : aac (LC), 16000 Hz, mono, fltp