
Recherche avancée
Autres articles (89)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (5325)
-
An error occured 'maybe incorrect parameters such as bit_rate, rate, width or height' when I encode my video
17 mai 2019, par CrystalI always use this source code when I encode my videos. they are almost 1920x1080 videos.
but An error occured when I tried to encode a 7680x3840 video.ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
[avisynth @ 03af8040] Stream #0: not enough frames to estimate rate; consider increasing probesize
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, avisynth, from 'a.mp4.avs':
Duration: 00:00:01.85, start: 0.000000, bitrate: 2 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 7680x3840, 60 fps, 60 tbr, 60 tbn, 60 tbc
Stream #0:1: Audio: pcm_f32le, 48000 Hz, stereo, flt, 3072 kb/s
[libx264 @ 054c5c20] VBV maxrate specified, but no bufsize, ignored
[libx264 @ 054c5c20] frame MB size (480x240) > level limit (8192)
[libx264 @ 054c5c20] DPB size (4 frames, 460800 mbs) > level limit (0 frames, 32768 mbs)
[libx264 @ 054c5c20] MB rate (6912000) > level limit (245760)
[libx264 @ 054c5c20] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [error]: malloc of size 152432416 failed
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (pcm_f32le (native) -> aac (native))
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or heightthere is a strange message.
’malloc of size 152432416 failed’
I think this is memory problem but I have no idea to solve this problem.This is avs file
PluginPath = "D:\Application\Frame_Doubling_Set_Drag_And_Drop\ffmpeg-Convert-TrueMotion-x86_Newer_Svpflow\_exe\"
LoadPlugin(PluginPath + "ffms2.dll")
LoadPlugin(PluginPath + "svpflow1.dll")
LoadPlugin(PluginPath + "svpflow2.dll")
LoadPlugin(PluginPath + "mvtools2.dll")
Video=FFVideoSource("a.mp4", threads=8)
Audio=FFAudioSource("a.mp4")
Audiodub(Video, Audio)
Import(PluginPath + "InterFrame2.avsi")
InterFrame(GPU=true, Preset="Medium", FrameDouble=true, NewNum=60000, NewDen=1000, Cores=8)and this is batch file
@echo off
CD /D "%~dp1"
cls
set DestPath=%~dp1
set Src0=%~nx1
set Src1=%~n1
set DestExt=.mp4
set Dest0=%DestPath%\%Src1%-Cnv%DestExt%
set Dest1=%DestPath%\%Src1%-Cnv-New%DestExt%
set exe=%~dp0_exe\ffmpeg.exe
set Opt1=-i
set Opt2=-c:v libx264 -b:v 200000k -minrate 10k -maxrate 200000k -profile:v high -level 4.1 -pix_fmt yuv420p
set Opt3=-c:a aac -ab 192k
set Opt4=-f mp4
If Not Exist "%Src0%" (echo. && echo [ %Src0% ] Not Found. && echo. && pause && Goto End)
If Exist "%Dest0%" set Dest0=%Dest1%
"%exe%" %Opt1% "%Src0%" %Opt2% %Opt3% %Opt4% "%Dest0%"
:End
If Not Exist "%Dest0%" (echo. && pause)
rem pause
pauseWhat’s my problem ?
-
Support scaling to UHD
6 mai 2018, par Aurelius SchnitzlerI am using ffmpeg with
ffmpeg -i GOPR1373.MP4 -c:v libx264 -vf "pad=width=5848:height=2924:x=1964:y=922:color=black,scale=3840:2160" GOPR1373_w.MP4
Which yields to
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
andx264 [error]: malloc of size 43688832 failed
yet
ffmpeg -i GOPR1373.MP4 -c:v libx264 -vf "pad=width=5848:height=2924:x=1964:y=922:color=black,scale=1920:1080" GOPR1373_w.MP4
works.
How to fix this ?
EDIT : I solved it by freeing up memory.
-
electron app fluent-ffmpeg " Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height"
27 juillet 2020, par MartinI am trying to run an ffmpeg command in my electron app. I have created the function ffmpegTest() based off instructions for setting up ffmpeg here :


https://alexandercleasby.dev/blog/use-ffmpeg-electron


and the example query for ffmpeg-fluent here :


https://github.com/fluent-ffmpeg/node-fluent-ffmpeg/blob/master/examples/image2video.js


function ffmpegTest(){
 console.log('ffmpeg-test')
 //require the ffmpeg package so we can use ffmpeg using JS
 const ffmpeg = require('fluent-ffmpeg');
 //Get the paths to the packaged versions of the binaries we want to use
 const ffmpegPath = require('ffmpeg-static').replace(
 'app.asar',
 'app.asar.unpacked'
 );
 const ffprobePath = require('ffprobe-static').path.replace(
 'app.asar',
 'app.asar.unpacked'
 );
 //tell the ffmpeg package where it can find the needed binaries.
 ffmpeg.setFfmpegPath(ffmpegPath);
 ffmpeg.setFfprobePath(ffprobePath);
 
 var imgPath = "C:\\Users\\marti\\Documents\\martinradio\\uploads\\israel song festival 1979\\front.jpg"
 var outputPath = "C:\\Users\\marti\\Documents\\martinradio\\uploads\\israel song festival 1979\\output.m4v"

 // make sure you set the correct path to your video file
 var proc = ffmpeg(imgPath)
 // loop for 5 seconds
 .loop(5)
 // using 25 fps
 .fps(25)
 // setup event handlers
 .on('end', function() {
 console.log('file has been converted succesfully');
 })
 .on('error', function(err) {
 console.log('an error happened: ' + err.message);
 })
 // save to file
 .save(outputPath);

 console.log("end of ffmpeg-test")
}



it is trying to convert an image to a video, my filepaths are accurate, but when I run this function, I get this output in console :


ffmpeg-test
index.js:137 end of ffmpeg-test
index.js:132 an error happened: ffmpeg exited with code 1: 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!



After the error prints out, I can see my output.m4v file inside my output folder, but it is 0KB in size and wont open. Is there some way I can specify my bit_rate / rate / width / height in my fluent-ffmpeg command so I can run this simple ffmpeg command ?


thanks