
Recherche avancée
Autres articles (71)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...) -
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)
Sur d’autres sites (5991)
-
Fixing audio/video out of sync when editing recorded broadcast
27 décembre 2019, par sbaI have recorded broadcast-ed material using a DVB-T tuner.
That produces several TS files per recording (most likely to keep filesize within FAT32 limitations).
I have concatenated each recording into a single TS file using :
ffmpeg.exe -f concat -i $filelist -c copy -y $outputfile
From there, I need to perform edits to remove commercials, strip extra stuff from the start and end, and optionally extract each episode into a separate file.
I own Pinnacle Studio 23 Ultimate, that doesn’t support TS as input so I’m converting TS to MP4 using something like :
ffmpeg -y -i foo.ts -crf 18 -ac 2 -r 25 -c:v libx265 -ar 48000 -b:a 192k -c:a aac -aspect 16:9 bar.mp4
(I’ve tried several ways/options, including using HandBrake for that conversion).
What happens is that in the resulting edited material, audio and video are out of sync. Can be in the whole file, or only in some sections.
This could be linked to glitches (missing frames...) in the original recording.
But when I play the original single-file TS, or the MP4 version, in any player such as VLC, audio and video are properly aligned. So these players are able to deal with the aforementioned glitches and "re-align" the audio and video streams.
How can I "rewrite" the whole input file in such a way that audio and video are "fully synchronized" so that editing will be possible ?
Thanks in advance for your help.
-
play m3u8 video from laravel storage
21 janvier 2020, par JennsenMy question is the same as how to play m3u8 videos from laravel storage but this one did not get answers.
If I play the video from the public folder it does it without problems.
but if I want to play it from storage this doesn’t work.
public function watch(Request $request, Episode $episode)
{
$video = Storage::disk('videos')->get($episode->video);
return new Response($video, 200, ['Content-Type' => 'application/x-mpegURL', 'isHls' => true]);
}this is the definition of my disk in config/filesystems.php
'videos' => [
'driver' => 'local',
'root' => storage_path('app/videos'),
'url' => env('APP_URL').'/storage',
'visibility' => 'public',
],this is my conversion code (job)
*/
public function handle()
{
$path = $this->episode->id . '.m3u8';
$lowBitrate = (new X264 ('aac'))->setKiloBitrate(500)->setVideoCodec('libx264');
$midBitrate = (new X264 ('aac'))->setKiloBitrate(1000)->setVideoCodec('libx264');
$highBitrate = (new X264 ('aac'))->setKiloBitrate(3000)->setVideoCodec('libx264');
FFMpeg::fromDisk('tmp')->open($this->episode->video)
->exportForHLS()
->dontSortFormats()
->setSegmentLength(10)
->toDisk('local')
->addFormat($lowBitrate, function($media) {
$media->addFilter(function ($filters) {
$filters->resize(new \FFMpeg\Coordinate\Dimension(640, 480));
});
})
->addFormat($midBitrate, function($media) {
$media->addFilter(function ($filters) {
$filters->resize(new \FFMpeg\Coordinate\Dimension(1280, 960));
});
})
->addFormat($highBitrate, function($media) {
$media->addFilter(function ($filters) {
$filters->resize(new \FFMpeg\Coordinate\Dimension(1280, 960));
});
})
->save($path);
$this->episode->update([
'video' => $path,
]);
FFMpeg::cleanupTemporaryFiles();
} -
FFMPEG : Converting chapter points when converting PAL to NTSC
26 février 2020, par koberulzI have a batch file converting my PAL TV series DVDs to the correct NTSC frame rates :
for %%F in (*.mkv) do (
echo A = LWLibAvVideoSource("%%F"^) > script.avs
echo B = LWLibAvAudioSource("%%F"^) >> script.avs
echo AudioDub(A,B^) >> script.avs
echo AssumeFPS(24000,1001,sync_audio=true^) >> script.avs
echo ResampleAudio(48000^) >> script.avs
ffmpeg\ffmpeg.exe -i script.avs -aspect 16:9 -acodec ac3 -vcodec libx264 -preset slow -qp 16 "Output\%%F"
del "%%F.lwi"
del script.avs
)
pauseBut this removes the chapter points. I’m assuming map_chapters, if I figured out how to use it, would just shift in the chapters at the old PAL timestamps, so they wouldn’t match up to the correct times in the actual NTSC video ? Is there a way to get the chapters in the right spots other than manually opening each episode, finding the equivalent points, and manually creating each chapter ?