
Recherche avancée
Autres articles (60)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (7237)
-
Audio/video out of sync after Google Cloud Transcoding
18 mai 2021, par Renov JungI have been using Google Cloud Transcoding to convert video into HLS.
There are only few videos out of audio sync after the transcoding.
The Audio is behind +1 2 seconds.
The jobConfig looks no problem to me. So, I have no idea how to solve it or even what is causing the trouble from jobConfig setting.


jobConfig :


job: {
 inputUri: 'gs://' + BUCKET_NAME + '/' + inputPath,
 outputUri: 'gs://' + BUCKET_NAME + '/videos/' + outputName + '/',
 templateId: 'preset/web-hd',
 config: {
 elementaryStreams: [
 {
 key: 'video-stream0',
 videoStream: {
 codec: 'h264',
 widthPixels: 360,
 bitrateBps: 1000000,
 frameRate: 60,
 },
 },
 {
 key: 'video-stream1',
 videoStream: {
 codec: 'h264',
 widthPixels: 720,
 bitrateBps: 2000000,
 frameRate: 60,
 },
 },
 {
 key: 'audio-stream0',
 audioStream: {
 codec: 'aac',
 bitrateBps: 64000,
 },
 },
 ],
 muxStreams: [
 {
 key: 'hls_540p',
 container: 'ts',
 segmentSettings: {
 "individualSegments": true
 },
 elementaryStreams: ['video-stream0', 'audio-stream0'],
 },
 {
 key: 'hls2_720p',
 container: 'ts',
 segmentSettings: {
 "individualSegments": true
 },
 elementaryStreams: ['video-stream1', 'audio-stream0'],
 },
 ],
 manifests: [
 {
 "type": "HLS",
 "muxStreams": [
 "hls_540p", "hls2_720p"
 ]
 },
 ],
 },
 },



Before transcoding video :


- 

- https://storage.googleapis.com/greyd/video/1621244451071_7aa8b5358afe8c5690e3bf8e67c69a52.mp4




After transcoding video :




-
How to create Animation video from Images like Google photos ?
21 mars 2017, par AhmedI am working on a mobile application to create a video/animation of multiple images.
I have used server side tools like ffmpeg and whammy, what are other server side or mobile open source tools that i can use ? -
Create hls stream in Google Cloud Functions (ffmpeg)
3 novembre 2018, par MarkusI tried for several hours with no good outcome.
I want to create an hls stream (from a mp4 video) with the help of google cloud functions.
This is what i have come up with so far :
const remoteReadStream = myBucket.file(vidPath).createReadStream();
const remoteWriteStream = myBucket.file(vidPath.replace('.mp4', '.m3u8')).createWriteStream();
var proc = ffmpeg()
.input(remoteReadStream)
// Base url
// include all the segments in the list
.addOption('-hls_time',4)
.addOption('-c:a aac')
.addOption('-ar 48000')
.addOption('-c:v h264')
.addOption('-profile:v main')
.addOption('-crf 20')
.addOption('-sc_threshold 0')
.addOption('-g 48')
.addOption('-keyint_min 48')
.addOption('-hls_playlist_type vod')
.addOption('-b:v 800k')
.addOption('-maxrate 856k')
.addOption('-bufsize 1200k')
.addOption('-b:a 96k')
.addOption('-hls_segment_filename', 'this_is_not_working_%03d.ts')
*tried gs://.../videos/$03d.ts' as well as other paths...
.outputOptions('-f hls')
.on('progress', function(progress) {
var processing_str = 'Processing:' + progress.percent + '% done';
console.log(processing_str);
})
.on('end', function() {
console.log('file has been ffmpeg succesfully');
})
.on('error', (err, stdout, stderr) => {
console.error('An error occured during encoding', err.message);
console.error('stdout:', stdout);
console.error('stderr:', stderr);
})
.pipe(remoteWriteStream, { end: true });This will give me the m3u8 file but the header files (ts files) will not be created, cause of the failure of saving them. The m3u8 file is saved, because it is a stream.
Opening ’xxx.ts’ for writing Could not write header for output file #0 (incorrect codec parameters ?)
I want to save them in the same folder, but I cannot access it by the bucket.
Does anyone know, how to ’create’ multiple files (give the excact path of my bucket) in the ffmpeg configuration ?Maybe saving them as a stream would be the answer, but i have no clue how to pass that stream (.createWriteStream() ;) as an argument.
Thanks in advance