
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (41)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (6034)
-
PHP ffmpeg - save mp4 as H.264 in Baseline profile
2 mai 2020, par PikabooI'm trying to play a mp4 file in android but it's not working.



According to Android VideoView Cannot play video mp4



the file needs to be
H.264 in Baseline
.


I don't know what the hell this means.



This is the PHP code I'm using to create mp4 :



$videoname = str_replace('.gif', '.mp4', $picname);
$ffmpeg = FFMpeg\FFMpeg::create(array(
 'ffmpeg.binaries' => 'ffmpeg/bin/ffmpeg.exe',
 'ffprobe.binaries' => 'ffmpeg/bin/ffprobe.exe',
 'timeout' => 6600, // The timeout for the underlying process
 'ffmpeg.threads' => 12, // The number of threads that FFMpeg should use
), $logger);

$video = $ffmpeg->open('memes/' . $folder . '/' . $picname);
$video
 ->save(new \FFMpeg\Format\Video\X264(), 'memes/' . $folder . '/' . $videoname);




How can I set it to be
H.264 in Baseline
profile ?

-
How can i use ffmpeg to add voice note to another mp3 at specific time , let everything play without reducing the original mp3
29 juin 2020, par Adike maduabuchiI have used some code which does not give me what I want, I used PHP shell to execute the code


$var = 'ffmpeg -y -i ' . $voice_note_tag . ' -i ' . $original_music_path . ' -filter_complex "[0]asplit[a][b]; [a]atrim=duration=' . $time_come_vioce . ',volume=\'1-max(0*(t-1),0)\':eval=frame[pre]; [b]atrim=start=' . $time_come_vioce . ',asetpts=PTS-STARTPTS[song]; [song][1]amix=inputs=2:duration=first:dropout_transition=2[post]; [pre][post]concat=n=2:v=0:a=1[mixed]" -map "[mixed]" ' . $output . ' 2>&1';
 shell_exec($var);



-
ffmpeg convert image sequence into h264 Constrained Baseline
18 juillet 2020, par Bernhard BodenstorferWhen I convert a 352×640 image or sequence into a video, I successfully use the command


ffmpeg -r 1/10 -i 0_%02d.bmp -vcodec libx264 -vf fps=29.68 -metadata:s:v:0 rotate=270 -y 00_video.mp4



Unfortunately, the mobile device to show the video only supports Constrained Baseline profile. So I try to add the option
-profile:v baseline
and ffmpeg fails and tells me :



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




I also tried
fps=25
and no rotation flag in the metadata and some but obviously not infinitely many changes of image format and size ; all these attempts yield the same error.

Any ideas what I could do ? I use ffmpeg version 4.2.4.