
Recherche avancée
Autres articles (95)
-
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 -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (14228)
-
Fix edge case where ontimeout() does not fire when SM2 fails to init while using SM2_DEFER / lazy-loading
19 mai 2012, par Scott Schiller+ script/Copy of soundmanager2.js + script/basic/soundmanager2-basic-jsmin.js + script/basic/soundmanager2-basic-nodebug-jsmin.js + script/basic/soundmanager2-basic-nodebug.js + script/basic/soundmanager2-basic.js m script/soundmanager2-jsmin.js m script/soundmanager2-nodebug-jsmin.js m (...)
-
combine video and audio .webm files based on wallclock times
30 juillet 2021, par ZachI have a node server recording webrtc streams as separate video/audio files via ffmpeg.
I'm running ffmpeg via node's


child_process.spawn('ffmpeg', commandArgs);



Unfortunately, when I try to combine video and audio files later on, I don't know when ffmpeg created the first frame of each file, resulting in out of sync faces and voices :(


Here's my command line args for piping the stream into ffmpeg


'-loglevel',
 'debug',
 '-reorder_queue_size',
 '0',
 '-protocol_whitelist',
 'pipe,udp,rtp',
 '-fflags',
 '+genpts',
 '-f',
 'sdp',
 '-i',
 'pipe:0',
 '-map',
 '0:v:0',
 '-c:v',
 'copy',
 '-use_wallclock_as_timestamps',
 '1',
 '-timestamps',
 'mono2abs',
 '-flags',
 '+global_header',
 './recordings/video_1627600996166.webm'



I was thinking that it might be possible to set the timestamps of packets to the linux's clock times, and tried a bunch of flags (-timestamps abs, -timestamps mono2abs, -use_wallclock_as_timestamps 1) but nothing seemed to change the result in the file. (I also have tried moving the time commands all around).


packet|codec_type=video|stream_index=0|pts=0|pts_time=0.000000|dts=0|dts_time=0.000000|duration=N/A|duration_time=N/A|convergence_duration=N/A|convergence_duration_time=N/A|size=14568|pos=552|flags=K_



Time always starts at 0.


Any help figuring out how to get accurate times from my recorded audio/video .webm files so I can accurately combine them would be amazing.


Thanks so much :)


-
Why my log printed many times using c api of ffmpeg decoder v2.8 which should be printed once when the callback return value is 1
30 juillet 2019, par user10960024Documentation said when the callback functor interrupt_cb return 1, the blocking operation will be aborted. However, my program echo the log many times which should be printed only once log before it quit. How can I fix it ?
AVFormatContext* formatContext = libffmpeg::avformat_alloc_context();
formatContext->interrupt_callback.callback = interrupt_cb;
formatContext->interrupt_callback.opaque = formatContext;
int interrupt_cb(void *ctx)
{
if (...)
{
LOG(WARNING) << "decoder timeout!"; // it print many times
return 1;
}
return 0;
}I expect the output would be printed only once.