
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (107)
-
La gestion des forums
3 novembre 2011, parSi les forums sont activés sur le site, les administrateurs ont la possibilité de les gérer depuis l’interface d’administration ou depuis l’article même dans le bloc de modification de l’article qui se trouve dans la navigation de la page.
Accès à l’interface de modération des messages
Lorsqu’il est identifié sur le site, l’administrateur peut procéder de deux manières pour gérer les forums.
S’il souhaite modifier (modérer, déclarer comme SPAM un message) les forums d’un article particulier, il a à sa (...) -
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 ;
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)
Sur d’autres sites (11089)
-
How to synchronize audio and video in FFMPEG/C++
4 juillet 2016, par rlnunesI’m receiving 2 streams (an audio and a video) with timestamps from other PCs in my network.
I’m able to record the video and the audio to separated files (mp4 and aac) with no problems.
Now I’m trying to put the 2 streams together into a mp4 file, I’ve created 2 queues, one for audio packets and another for video packets and trying to sync them like this :void * muxer(void * param) {
QPair completePacketAudio;
QPair completePacketVideo;
AVPacket pkt;
int vts = 0;
int ats = 0;
while(threadMuxRun) {
contextMutex.lock();
if(audioPacketQueue.isEmpty() && videoPacketQueue.isEmpty()) {
contextMutex.unlock();
Sleep(0);
continue;
} else if(audioPacketQueue.isEmpty()) {
completePacketVideo = videoPacketQueue.head();
pkt = videoPacketQueue.dequeue().first;
pkt.pts = vts;
vts++;
std::cout << "video ts:" << pkt.pts << std::endl;
av_packet_rescale_ts(&pkt, video_st.st->time_base, video_st.enc->time_base);
} else if(videoPacketQueue.isEmpty()) {
completePacketAudio = audioPacketQueue.head();
pkt = audioPacketQueue.dequeue().first;
pkt.pts = ats;
ats++;
std::cout << "audio ts:" << pkt.pts << std::endl;
av_packet_rescale_ts(&pkt, audio_st.st->time_base, audio_st.enc->time_base);
} else {
completePacketAudio = audioPacketQueue.head();
completePacketVideo = videoPacketQueue.head();
if(completePacketVideo.second < completePacketAudio.second)
{
pkt = completePacketVideo.first;
pkt.pts = vts;
vts++;
videoPacketQueue.dequeue();
std::cout << "video ts:" << pkt.pts << std::endl;
av_packet_rescale_ts(&pkt, video_st.st->time_base, video_st.enc->time_base);
} else {
audioPacketQueue.dequeue();
pkt = completePacketAudio.first;
pkt.pts = ats;
ats++;
std::cout << "audio ts:" << pkt.pts << std::endl;
av_packet_rescale_ts(&pkt, audio_st.st->time_base, audio_st.enc->time_base);
}
}
av_interleaved_write_frame(outputContext, &pkt);
av_free_packet(&pkt);
contextMutex.unlock();
}
return NULL;
}my videos is about 10% faster than the audio, and the audio timing is correct (it has 2 minutes when I record for 2 minutes, but the video has just 1:48).
If someone can give a tip, thanks in advance.
-
poster adjustment after getting it from video
30 juin 2016, par JassI am capturing poster from this video https://www.youtube.com/watch?v=wg-kEWsL6Xc using following code. Video can be any, I am just giving example.
shell_exec('ffmpeg -y -itsoffset -4 -i "'.base_path().'/assets/videos/'.$file_name.'.mp4" -vcodec mjpeg -vframes 1 -an -f rawvideo -filter:v scale=1170:ih*1170/iw "'.base_path().'/assets/videos/thumbnail/'.$file_name.'.jpg"')
Width = 1170px,
Height= 300px (as it is background image so it does not matter)
But I am facing adjustment problem. Following are my current views
First : Head is cutting, here I am using css property background : url(’completepath’) center no-repeat ;
Second : Showing black portion on top of head. This is the original image that I am getting from ffmpeg code.
My Question : But I need image like in you tube, you can notice that in all videos we can see top portion of humans without being cutting even black portion is well adjusted.
Currently I am downloading and testing with youtube videos but in actual job seekers will make their own videos using android/iphone or any camera and will upload on our site.
so how i can overcome this issue means show image with proper human face and body ?
thanks in advance.
-
creating mp4 url from m3u8 url from ffmpeg
17 mai 2016, par user3440716I have a m3u8 url :
http://esioslive6-i.akamaihd.net/hls/live/202874/AL_P_ESP1_INTER_ENG/playlist_1000.m3u8
and i am trying to convert this link to mp4 in url form.
what i am trying :
ffmpeg -i http://esioslive6-i.akamaihd.net/hls/live/202874/AL_P_ESP1_INTER_ENG/playlist_1000.m3u8 -c copy -bsf:a aac_adtstoasc http://esioslive6-i.akamaihd.net/hls/live/202874/AL_P_ESP1_INTER_ENG/output.mp4
is it possible ?
code which i am trying :
<?php
$i = "ffmpeg -i http://esioslive6-i.akamaihd.net/hls/live/202874/AL_P_ESP1_INTER_ENG/playlist_1000.m3u8 -c copy -bsf:a aac_adtstoasc http://esioslive6-i.akamaihd.net/hls/live/202874/AL_P_ESP1_INTER_ENG/output.mp4";
?>
<video controls="controls" tabindex="0" autoplay="autoplay" loop="loop">
<source src="<?php">></source></video>I am new and I also saw this post FFMPEG mp4 from http live streaming m3u8 file ? but i dont understand why something is not happening.