
Recherche avancée
Autres articles (64)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
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 -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...)
Sur d’autres sites (8560)
-
lavc/libopenh264enc : Add qmin/qmax support
29 avril 2020, par Linjie Fulavc/libopenh264enc : Add qmin/qmax support
Clip iMinQp/iMaxQp to (1, 51) for user specified qp range.
If not set, leave iMinQp/iMaxQp untouched and use the values (0, 51)
initialized in FillDefault(), and the QP range would be adjusted to the
defaults inside libopenh264 library according to the iUsageType, (12, 42)
for iUsageType == CAMERA_VIDEO_REAL_TIME which is default.<https://github.com/cisco/openh264/blob/master/codec/encoder/core/src/encoder_ext.cpp#L375> ;
Signed-off-by : Linjie Fu <linjie.fu@intel.com>
Signed-off-by : Martin Storsjö <martin@martin.st> -
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 ?

-
Speed advantage in combining FFmpeg filters ?
4 mai 2020, par lach_codesI'm currently using five separate FFmpeg processes to do the following :



- 

- trim & crop Vid B
- scale Vid B to height of Vid A
- combine Vid B & Vid A
- add a fade-in/fade-out to Combined Vid
- add an overlay to fade in/out vid













I have them all set to ultrafast but it still takes a long time - about 40 seconds when each video is 10 seconds long.



I initially explored combining some of the filters but couldn't get it working in the timeframe I had available. I also wasn't sure if the time spent figuring out how to combine all the filters would pay off in a faster processing time.



Any thoughts/insights from you brilliant FFmpeg gurus ? Would this speed up processing, and if so, should I combine all the commands together or are there some I should combine and others I should leave separate ?



Here are my current commands, all of which are working :



// trimming 200ms off begining of vid B + cropping frame (note that I have previously retrieved dimensions and duration of both videos with ffprobe)
1. `ffmpeg -i vidB.mov -ss 200 -t ${vidB.duration} -async 1 -filter:v "crop=iw:${vidB.croppedHeight}:0:${vidB.offset}" -preset ultrafast -c:a copy croppedVidB.mov`

// scale Vid B up to Vid A's height
2. `ffmpeg -i croppedVidB.mov -vf scale=-2:${vidA.height} vidBScaled.mov`

// combine videos
3. `ffmpeg -i vidA.mov -i vidBScaled.mov -filter_complex "[0:v][1:v] hstack=inputs=2[v]; [0:a][1:a]amix[a]" -map "[v]" -map "[a]" -preset ultrafast -ac 2 combined.mov`

// add fade in & out
4. `ffmpeg -i combined.mov -sseof -1 -copyts -i combined.mov -filter_complex "[1]fade=out:0:30[t];[0][t]overlay,fade=in:0:30[v]; anullsrc,atrim=0:1[at];[0][at]acrossfade=d=1,afade=d=1[a]" -map "[v]" -map "[a]" -c:v libx264 -crf 22 -preset ultrafast -shortest fadeInOut.mov`

// add overlay
5. `ffmpeg -i fadeInOut.mov -i overlay.png -filter_complex overlay=W-w-10:H-h-10 -codec:a copy -preset ultrafast -async 1 overlay.mov`




Thanks in advance for your thoughts !