
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (108)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)
Sur d’autres sites (7949)
-
YouPHPTube Encoder is not encoding video [on hold]
11 octobre 2019, par Tanjima TaniI successfully installed
YouPHPTube
an on demand video script. I tried to encode a local video but it is always in "pending" state. The error of encoding error log is as follows :[11-Oct-2019 23:54:25 Asia/Dhaka] Upload.php will set format
[11-Oct-2019 23:54:25 Asia/Dhaka] Upload.php will let function decide decideFormatOrder
[11-Oct-2019 23:54:25 Asia/Dhaka] decideFormatOrder: {"file":"myvideo.mp4","audioOnly":"false","spectrum":"false","webm":"false","inputHLS":"false","inputLow":"true","inputSD":"true","inputHD":"true","title":"","description":"","categories_id":"0"}
[11-Oct-2019 23:54:25 Asia/Dhaka] decideFormatOrder: MP4 All
[11-Oct-2019 23:54:25 Asia/Dhaka] {"status":"error", "msg":"getDurationFromFile ERROR, File () Not Found"}
[11-Oct-2019 23:54:25 Asia/Dhaka] YouPHPTube-Encoder sending file to http://localhost/YouPHPTube/youPHPTubeEncoder.json
[11-Oct-2019 23:54:25 Asia/Dhaka] YouPHPTube-Encoder reading file from
[11-Oct-2019 23:54:25 Asia/Dhaka] YouPHPTube-Streamer answer {"error":false,"video_id":14}
[11-Oct-2019 23:54:25 Asia/Dhaka] {"error":false,"format":"mp4","file":"","resolution":"","videoDownloadedLink":null,"target":"http:\/\/localhost\/YouPHPTube\/youPHPTubeEncoder.json","postFields":11,"response_raw":"{\"error\":false,\"video_id\":14}","response":{"error":false,"video_id":14}}
[11-Oct-2019 17:54:27 UTC] downloadFile: start queue_id = 14
[11-Oct-2019 17:54:27 UTC] downloadFile: url = http://localhost/YouPHPTube-Encoder/videos/original_myvideo_YPTuniqid_5da0c1d10f5c29.50237780
[11-Oct-2019 17:54:27 UTC] downloadFile:strpos global['webSiteRootURL'] = http://localhost/YouPHPTube-Encoder/
[11-Oct-2019 17:54:27 UTC] downloadFile: this file was uploaded from file and thus is in the videos
[11-Oct-2019 17:54:27 UTC] downloadFile: downloadedFile = /var/www/html/YouPHPTube-Encoder/videos/original_myvideo_YPTuniqid_5da0c1d10f5c29.50237780 | url = http://localhost/YouPHPTube-Encoder/videos/original_myvideo_YPTuniqid_5da0c1d10f5c29.50237780
[11-Oct-2019 17:54:27 UTC] Try to get UTF8 URL http://localhost/YouPHPTube-Encoder/videos/original_myvideo_YPTuniqid_5da0c1d10f5c29.50237780
[11-Oct-2019 17:54:27 UTC] Try to get UTF8 decode URL http://localhost/YouPHPTube-Encoder/videos/original_myvideo_YPTuniqid_5da0c1d10f5c29.50237780
[11-Oct-2019 17:54:27 UTC] downloadFile: success
[11-Oct-2019 17:54:27 UTC] downloadFile: {"error":false,"filename":"14_tmpFile.mp4","pathFileName":"\/var\/www\/html\/YouPHPTube-Encoder\/videos\/14_tmpFile.mp4"}
[11-Oct-2019 17:54:27 UTC] sendImages: Sending image to [14]
[11-Oct-2019 17:54:27 UTC] Duration found: 0:00:26
[11-Oct-2019 17:54:27 UTC] sendImages: YouPHPTube-Encoder sending file to http://localhost/YouPHPTube/objects/youPHPTubeEncoderReceiveImage.json.php
[11-Oct-2019 17:54:27 UTC] sendImages: YouPHPTube-Encoder reading file from /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4
[11-Oct-2019 17:54:27 UTC] getImage: ffmpeg -ss 00:00:13 -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vframes 1 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4.jpg
[11-Oct-2019 17:54:27 UTC] getImage: takes 0.11579895019531 sec to complete
[11-Oct-2019 17:54:27 UTC] getGifImage
[11-Oct-2019 17:54:27 UTC] getGif: Starts
[11-Oct-2019 17:54:28 UTC] getGif: takes 0.51563596725464 sec to complete
[11-Oct-2019 17:54:29 UTC] sendImages: curl_init
[11-Oct-2019 17:54:29 UTC] sendImages: curl_exec
[11-Oct-2019 17:54:29 UTC] sendImages: YouPHPTube-Streamer answer {"error":false,"video_id":14}
[11-Oct-2019 17:54:29 UTC] {"error":false,"file":"\/var\/www\/html\/YouPHPTube-Encoder\/videos\/14_tmpFile.mp4","target":"http:\/\/localhost\/YouPHPTube\/objects\/youPHPTubeEncoderReceiveImage.json.php","postFields":6,"response_raw":"{\"error\":false,\"video_id\":14}","response":{"error":false,"video_id":14}}
[11-Oct-2019 17:54:29 UTC] run:runMultiResolution
[11-Oct-2019 17:54:29 UTC] YouPHPTube-Encoder Start Encoder [ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vf scale=-2:720 -movflags +faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_HD.mp4]
[11-Oct-2019 17:54:29 UTC] ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vf scale=-2:720 -movflags +faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_HD.mp4 --- [] --- (8, /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4, /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_HD.mp4, 14)
[11-Oct-2019 17:54:29 UTC] YouPHPTube-Encoder Start Encoder [ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vf scale=-2:540 -movflags +faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_SD.mp4]
[11-Oct-2019 17:54:29 UTC] ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vf scale=-2:540 -movflags +faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_SD.mp4 --- [] --- (7, /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4, /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_SD.mp4, 14)
[11-Oct-2019 17:54:29 UTC] YouPHPTube-Encoder Start Encoder [ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vf scale=-2:360 -movflags +faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_Low.mp4]
[11-Oct-2019 17:54:29 UTC] ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vf scale=-2:360 -movflags +faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_Low.mp4 --- [] --- (1, /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4, /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_Low.mp4, 14)
[11-Oct-2019 17:54:29 UTC] Trying again: [1] => Execute code error "Array\n(\n)\n"
Code: ffmpeg -i /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile.mp4 -vf scale=-2:360 -movflags +faststart -preset ultrafast -vcodec h264 -acodec aac -strict -2 -max_muxing_queue_size 1024 -y /var/www/html/YouPHPTube-Encoder/videos/14_tmpFile_converted_Low.mp4
[11-Oct-2019 23:54:30 Asia/Dhaka] ERROR on get http://localhost/YouPHPTube/plugin/CustomizeAdvanced/advancedCustom.json.php false
[11-Oct-2019 23:54:30 Asia/Dhaka] PHP Warning: Creating default object from empty value in /var/www/html/YouPHPTube-Encoder/view/index.php on line 233What to do next ? Thanks in advance
-
Laravel FFmpeg error ffprobe running command -show_streams -print_format json is not running How i can resolve it ?
12 octobre 2019, par Shahzad WarisI’m using laravel FFmpeg Package v4 to change the Dimension of the video.
This is my queue log.[2019-10-12 15:14:17] local.INFO : ffprobe running command
"C :/FFmpeg/bin/ffprobe.exe"
C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
-show_streams -print_format json [2019-10-12 15:14:17] local.ERROR : ffprobe failed to execute command "C :/FFmpeg/bin/ffprobe.exe"
C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
-show_streams -print_format json [2019-10-12 15:14:17] local.ERROR : Unable to probe
C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
"exception" :"[object] (FFMpeg\Exception\RuntimeException(code : 0) :
Unable to probe
C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
at
C :\wamp64\www\creamer\creamer\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe.php:263,
Alchemy\BinaryDriver\Exception\ExecutionFailureException(code : 0) :
ffprobe failed to execute command \"C :/FFmpeg/bin/ffprobe.exe\"
C :\wamp64\www\creamer\creamer\storage\app\public\videos1570870350.mp4
-show_streams -print_format json at C :\wamp64\www\creamer\creamer\vendor\alchemy\binary-driver\src\Alchemy\BinaryDriver\ProcessRunner.php:100)
[stacktrace]0 C :\wamp64\www\creamer\creamer\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFProbe.php(206) :
FFMpeg\FFProbe->probe(’C :\wamp64\www\c...’, ’-show_streams’,
’streams’)1 C :\wamp64\www\creamer\creamer\vendor\php-ffmpeg\php-ffmpeg\src\FFMpeg\FFMpeg.php(92) :
FFMpeg\FFProbe->streams(’C :\wamp64\www\c...’) [internal
function] : Illuminate\Queue\Console\WorkCommand->handle() 1 :
https://github.com/pascalbaljetmedia/laravel-ffmpeg?ref=madewithlaravel.comThis is Queue code :
namespace App\Jobs;
use App\Video;
use FFMpeg;
use FFMpeg\Coordinate\Dimension;
use FFMpeg\Format\Video\X264;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Queue\SerializesModels;
class ConvertVideoForDownloading implements ShouldQueue
{
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
public $video;
/**
* Create a new job instance.
*
* @return void
*/
public function __construct(Video $v)
{
$this->video = $v;
}
/**
* Execute the job.
*
* @return void
*/
public function handle()
{
// create a video format...
$lowBitrateFormat = (new X264)->setKiloBitrate(500);
// open the uploaded video from the right disk...
FFMpeg::fromDisk('local')
->open('public\videos' . $this->video->videoLink)
// add the 'resize' filter...
->addFilter(function ($filters) {
$filters->resize(new Dimension(960, 540));
})
// call the 'export' method...
->export()
// tell the MediaExporter to which disk and in which format we want to export...
->toDisk('local')
->inFormat($lowBitrateFormat)
// call the 'save' method with a filename...
->save($this->video->id . '.mp4');
// update the database so we know the convertion is done!
// $this->video->update([
// 'converted_for_downloading_at' => Carbon::now(),
// ]);
}
} -
Join a lot of frames with some audio files
30 octobre 2019, par Laurin NeffWhat I’m trying to do
I have 3697 frames (frames/[0-3696].png) and 5 audio files, which are the same length in total as the resulting video should be (audio/[0-4].mp3). I’m trying to play the frames at 15 fps, with the audio files playing in sequence and putting this into out.mp4. How can I achieve this ?
File tree
frames
|-0.png
|-1.png
|...
|-3695.png
\-3696.png
audio
|-0.mp3
|-1.mp3
|-2.mp3
|-3.mp3
\-4.mp3What I’ve tried
ffmpeg -i frames/%d.png -i audio/%d.mp3 -vf fps=15 out.mp4
What I expect
I expect out.mp4 to contain all frames, with the 5 mp3 files playing in sequence
What actually happens
$ ffmpeg -i frames/%d.png -i audio/%d.mp3 -vf fps=15 out.mp4
ffmpeg version n4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.1.0 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, image2, from 'frames/%d.png':
Duration: 00:02:27.88, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgb24(pc), 1920x1080, 25 fps, 25 tbr, 25 tbn, 25 tbc
audio/%d.mp3: No such file or directory