
Recherche avancée
Autres articles (40)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
L’utiliser, en parler, le critiquer
10 avril 2011La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
Une liste de discussion est disponible pour tout échange entre utilisateurs.
Sur d’autres sites (5869)
-
create bar type wave forms using ffmpeg
8 juillet 2016, par Ashish Joshii am trying to create wave forms from mp3 using ffmpeg.
i have successfully created waveforms like belownow i am having troubles with generating like below sample image...
the code i am using to generate vertical line is provided below...
while (!feof($handle) && $data_point < $data_size) {
if ($data_point++ % DETAIL == 0) {
$bytes = array();
// get number of bytes depending on bitrate
for ($i = 0; $i < $byte; $i++) {
$bytes[$i] = fgetc($handle);
}
switch ($byte) {
// get value for 8-bit wav
case 1:
$data = findValues($bytes[0], $bytes[1]);
break;
// get value for 16-bit wav
case 2:
if (ord($bytes[1]) & 128) {
$temp = 0;
} else {
$temp = 128;
}
$temp = chr((ord($bytes[1]) & 100) + $temp);
$data = floor(findValues($bytes[0], $temp) / 256);
break;
}
// skip bytes for memory optimization
fseek($handle, $ratio, SEEK_CUR);
// draw this data point
// relative value based on height of image being generated
// data values can range between 0 and 255
$v = (int) ($data / 255 * $height);
// don't print flat values on the canvas if not necessary
if (!($v / $height == 0.5 && !$draw_flat))
// draw the line on the image using the $v value and centering it vertically on the canvas
{
imageline($img,
// x1
(int) ($data_point / DETAIL),
// y1: height of the image minus $v as a percentage of the height for the wave amplitude
$height * $wav - $v,
// x2
(int) ($data_point / DETAIL),
// y2: same as y1, but from the bottom of the image
$height * $wav - ($height - $v), imagecolorallocate($img, $r, $g, $b));
}
imageline($img1,
// x1
(int) ($data_point / DETAIL),
// y1: height of the image minus $v as a percentage of the height for the wave amplitude
$height * $wav - $v,
// x2
(int) ($data_point / DETAIL),
// y2: same as y1, but from the bottom of the image
$height * $wav - ($height - $v), imagecolorallocate($img1, $r1, $g1, $b1));
}any help is appreciated...
-
How to convert ogg or mp3 file in wav without using ffmpeg
3 août 2023, par Maksim PalchevskiI have problems with installing ffmpeg and ffprobe that's why I am looking for ways to avoid them


I have tried to ask neurolinks and even looked in Internet, but it is might to be impossible to install ffmpeg on that os that i have (nix os). So, i have tried to avoid it, but haven't found any solutions. Here is my code :


from pydub import AudioSegment
def convert_audio_to_wav(input_file, output_file):
 # Читаем аудиофайл с помощью pydub
 x = AudioSegment.from_file(input_file)
 x.export(output_file, format='wav') 



And it returns an error :


[Errno 2] No such file or directory: 'ffprobe'



-
ffmpeg convert 4K file to 1080p mp4 file
16 septembre 2015, par Hüseyin GÖZEi’m using ffmpeg to converting video in windows service, when i’m trying to converting 4K video to 1080p ffmpeg returns error like this :
libvo_aacenc Stream mapping : Stream #0:0 -> #0:0 (h264 (native) ->
h264 (libx264)) Stream #0:2 -> #0:1 (ac3 (native) -> aac
(libvo_aacenc)) Error while opening encoder for output stream #0:1 -
maybe incorrect parameters such as bit_rate, rate, width or heightmy ffmpeg convert command like this :
ffmpeg -i 4k2.mp4 -vf scale=1920:1080 -threads 3 4k2_1080.mp4
what’s wrong with this ?