
Recherche avancée
Autres articles (90)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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 (...)
Sur d’autres sites (8377)
-
ffmpeg : add per-stream input option drop_changed
15 mars, par Gyan Doshiffmpeg : add per-stream input option drop_changed
This is a replacement in ffmpeg for the deprecated avcodec flag AV_CODEC_FLAG_DROPCHANGED.
This option is meant to be used when the filtergraph should not be
reinited upon input parameter changes as that leads to loss of state
in the filtergraph potentially leading to broken or aborted output,
e.g. inserting of silence with first_pts specified in aresample.Generally useful to avoid corrupted yet decodable packets in live
streaming inputs.This option when enabled takes precedence over reinit_filters
-
FFMPEG merge continous input stream with intermittent input stream without waiting
18 mai 2024, par gian848396My goal is to take two audio inputs and merge them. The below works for this, however, I want a continuous output stream even when only one of the two inputs are being streamed into FFmpeg. The below only produces an output when the stdin pipe input is receiving audio.


Here I have an FFmpeg child process where one input is a stream from the device's microphone, the other comes from wav audio buffers sent to the server in clips by a client.


@Injectable()
export class AppService {
 ffmpegProcess: ChildProcessWithoutNullStreams;

 constructor() {
 this.start();
 }

 start() {
 this.ffmpegProcess = spawn(ffmpegPath, [
 '-f', 'avfoundation', // mac os media devices
 '-i', ':1', // mac os microphone input
 '-f', 'wav',
 '-i', 'pipe:', // stdin input source
 '-codec:a', 'aac',
 '-b:a', '128k',
 // '-ab', '32k',
 '-f', 'hls',
 '-hls_time', '4', // Segment duration (in seconds)
 '-hls_list_size', '3', // Number of HLS segments to keep in playlist
 '-hls_flags', 'delete_segments', // Automatically delete old segments
 '-filter_complex', 'amerge=inputs=2',
 'public/output.m3u8' // HLS playlist file name
 ]);
 }
}




Here I'm piping wav audio buffers posted to the server and streamed as the stdin source to the FFMepg process, to be merged into the output.


@Controller()
export class AppController {
 constructor(
 private readonly appService: AppService,
 ) { }

 @Post('broadcast')
 @UseInterceptors(FileInterceptor('audio_data'))
 uploadFile(@UploadedFile() file: Express.Multer.File) {
 console.log(file);
 Readable.from(file.buffer).pipe(this.appService.ffmpegProcess.stdin);
 }
}



I've considered trying to pass in a null stream for the stdin when no submitted wav audio is present though I'm spinning my wheels. How can I produce a continuous output while only one of the two inputs are streaming, and while both are streaming ?


-
avfilter/vf_scale : add optional "ref" input
24 avril 2024, par Niklas Haasavfilter/vf_scale : add optional "ref" input
This is automatically enabled if the width/height expressions reference
any ref_* variable. This will ultimately serve as a more principled
replacement for the fundamentally broken scale2ref.See-Also : https://trac.ffmpeg.org/ticket/10795