
Recherche avancée
Médias (91)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (69)
-
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 (...) -
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (5049)
-
FFMPEG - zoompan image in top left corner
11 novembre 2020, par user3221592I can get zoompan to zoom in a dot in the middle of the frame with the standard :


zoompan=z='min(zoom+0.24,10)':x='(iw/2-(iw/zoom/2))':y='ih/2-(ih/zoom/2)'


but I need the dot to appear in the top left of the frame. I have tried any number of combinations of zooms and 'shifts' and the best I could come up with was :


zoompan=z='min(zoom+0.14,10)':x='(iw/2-(iw/zoom/2))+(728/zoom)':y='ih/2-(ih/zoom/2)+(308/zoom)'


BUT for the first 6 frames the dot 'travels' across the frame. No idea why this might be the case. Also the maths(iw/2-(iw/zoom/2)) just doesn't make sense to me to centre the image, I would have thought it would be (iw-(iw*zoom))/2 ?


This works on any 1980x1080 video and I have attached the sample image that I am using along with the full code


ffmpeg -y -i CHORUS_INTRO_VIDEO3.mov -loop 1 -i CentreDot.png -filter_complex "[1:v]zoompan=z='min(zoom+0.14,10)':x='(iw/2-(iw/zoom/2))+(728/zoom)':y='ih/2-(ih/zoom/2)+(308/zoom)':d=150:s=1920x1080[circleOverlay] ;[0:v][circleOverlay]overlay=0:0" -shortest output.mp4



-
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 ?..


-
How to create a script on a Raspberry to run ffmpeg at boot and restart itself if/when ffmpeg fails ?
5 février 2021, par MyceliumI'm using a Raspberry Pi Zero to stream to YouTube using FFMPEG. It works great so far and now I'd like to set it up to run the stream/FFMPEG daily and automatically from 6am to 7pm and restart itself in case it fails.


I've heard/read of people doing so with Python, but I haven't been able to find examples to try. I've never used Python (or any other) before, I'm a complete beginner. All I know is how/where to place the script file to make it run at boot.


Could anyone point me in the right direction on how to achieve this ? The FFMPEG command is as follows :


v4l2-ctl --set-fmt-video=width=1280,height=720,pixelformat=4 
v4l2-ctl --set-ctrl=rotate=180
v4l2-ctl --overlay=1
v4l2-ctl -p 30
v4l2-ctl --set-ctrl=video_bitrate=2000000
ffmpeg -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -i /dev/zero -f h264 -framerate 30 -i /dev/video0 -vcodec copy -acodec aac -ab 128k -g 60 -f flv -r 30 rtmp://a.rtmp.youtube.com/live2/SECRET-KEY