
Recherche avancée
Médias (1)
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
Autres articles (67)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
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 (...) -
Création définitive du canal
12 mars 2010, parLorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
A la validation, vous recevez un email vous invitant donc à créer votre canal.
Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)
Sur d’autres sites (7390)
-
avcodec/vvcdec : refact, rename !is_mvp to check_mer
22 février 2024, par Nuo Mi -
libx264 : Update ROI behaviour to match documentation
4 juin 2019, par Mark Thompsonlibx264 : Update ROI behaviour to match documentation
Fix the quantisation offset - use the whole range, and don't change the
offset size based on bit depth.Iterate the list in reverse order. The first region in the list is the one
that applies in the case of overlapping regions. -
php. ffmpeg. read from input stream. How to ?
3 décembre 2020, par rzlvmpI trying to create mp4 file from looping jpg image. By transfer jpg image as a stdin stream.


$cwd = getcwd();
$env = [];
 
$descriptorspec = array(
 0 => ["pipe", "r"], // stdin
 1 => ["pipe", "w"], // stdout
 2 => ["pipe", "w"] // stderr
);

$transcode_command = 'ffmpeg -y -f lavfi -i anullsrc=channel_layout=stereo:sample_rate=44100 -f jpeg_pipe -loop 1 -i pipe:0 -c:v libx264 -r 29.97 -t 30 -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2,setsar=1" -c:a aac -shortest -movflags faststart -f mp4 /tmp/output.mp4';
$process = proc_open($transcode_command, $descriptorspec, $pipes, $cwd, $env);

$s3_client = new Aws\S3\S3Client([
 'calculate_md5' => true,
 'region' => $REGION,
 'version' => 'latest',
 'credentials' => [
 'key' => $AWS_KEY,
 'secret' => $AWS_SECRET
 ]
]);
$s3_client->registerStreamWrapper();

if (is_resource($process)) {

 $input_stream = fopen('s3://somebucket/image.jpg', 'r');

 if ($input_stream) {

 while (!feof($input_stream)) {
 fwrite($pipes[0], fread($input_stream, 1024));
 fclose($pipes[0]);
 }
 
 $output = stream_get_contents($pipes[1]);
 $error = stream_get_contents($pipes[2]);

 fclose($input_stream);
 fclose($pipes[1]);
 fclose($pipes[2]);

 print_r($output);
 print_r($error);
 }
}



And I've get response


...
Input #0, lavfi, from 'anullsrc=channel_layout=stereo:sample_rate=44100':
 Duration: N/A, start: 0.000000, bitrate: 705 kb/s
 Stream #0:0: Audio: pcm_u8, 44100 Hz, stereo, u8, 705 kb/s
[mjpeg @ 0xa705a0] EOI missing, emulating
Input #1, jpeg_pipe, from 'pipe:0':
 Duration: N/A, bitrate: N/A
 Stream #1:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 200x200 [SAR 72:72 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
Stream mapping:
 Stream #1:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
 Stream #0:0 -> #0:1 (pcm_u8 (native) -> aac (native))
[mjpeg @ 0xa70c40] overread 8
[mjpeg @ 0xa70c40] EOI missing, emulating
...



Looks like ffmpeg don't wait for stream end (
EOI missing, emulating
) and trying to create output video after firstwhile
iteration. Resulting file is mp4 with one broken frame.
If I set chunk size (1024
) bigger than image size, ffmpeg creates only one completed frame.

ffmpeg command working pretty good if I use
aws cli
(see my answer). But when I try to send input stream via PHP ffmpeg failing.

What problem may be ?..