
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (100)
-
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 -
Création définitive du canal
12 mars 2010, parLorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
A la validation, vous recevez un email vous invitant donc à créer votre canal.
Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)
Sur d’autres sites (9123)
-
Writing multithreaded video and audio packets with FFmpeg
27 février 2017, par Robert JonesI couldn’t find any information on the way
av_interleaved_write_frame
deals with video and audio packets.I have multiple audio and video packets coming from 2 threads. Each thread calls a
write_video_frame
orwrite_audio_frame
, locks a mutex, initialize an AVPacket and writes data to an .avi file.Initialization of AVCodecContext and AVFOrmatContext is ok.
— Edit 1 —
Audio and video are coming from an external source (microphone and camera) and are captured as raw data without any compression (even for video).
I use h264 to encode video and no compression for Audio (PCM).Audio captured is : 16bits, 44100khz, stereo
Video captured is 25FPS
Question :
1) Is it a problem if I write multiple video packets at once (let’s say 25 packets/sec) and just one audio packet/sec.
Answer : Apparently not, the function
av_interleaved_write_frame
should be able to manage that kind of data as soon as pts and dts is well managedThis means I call
av_interleaved_write_frame
25 times for video writing and just 1 for audio writing per second. Could this be a problem ? If it is how can I deal with this scenario ?2) How can I manage pts and dts in this case ? It seems to be a problem in my application since I cannot correctly render the .avi file. Can I use real time stamps for both video and audio ?
Answer : The best thing to do here is to use the timestamp given when capturing audio / video as pts and dts for this kind of application. So these are not exactly real time stamps (from wall clock) but media capture timestamps.
Thank you for your precious advices.
-
Is there a way to detect if a video is of poor quality with ffmpeg ? [on hold]
29 avril 2015, par Daniela CarrascoI am working on a project where I am tracking the amount of time someone spends looking at a video.
There are some videos in the mix that lag horribly and so it makes it seem as if the person is looking for longer than they actually are because the image is frozen with their eyes still looking at it, even though in real time, they aren’t looking.
I thought that using frames per second would help me detect this but it seems to be inconsistent. I am using VCode and FFmpeg as well as FFprobe to try and figure this out.
-
ffmpeg copy stream preserving FPS
10 mars 2017, par James TaylorI have a stream that I know is outputting at a certain frame rate (30 FPS). I want to use ffmpeg to make a copy of this stream and save it to disk.
I have the following command :
ffmpeg -i http://input/ -c copy -map 0 \
-f segment -strftime 1 -segment_time 900 \
-segment_atclocktime 1 -segment_format mp4 %Y-%m-%d_%H-%M-%S.mp4But when I run the command, I see the following :
frame= 32 fps=3.9 q=-1.0 Lsize=N/A time=00:00:01.27 bitrate=N/A
Where it appears the FPS is hovers around 4.0 FPS and
time
moves slower than real time.I tried added
-re
(copy the rate of the input stream) and-r 30
(manually set the rate to 30 FPS) flag specified before the input file, but it didn’t seem to work.I also read a similar question here using
-framerate 30
, but that option doesn’t exist in the man pages and is anInvalid option
.Any help would be greatly appreciated !
So I let the modified command (removing the flags
-c copy -map 0
) run for exactly 5 minutes. Runningffprobe
yields :Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '2017-03-10_01-09-12.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.2.100
Duration: 00:00:15.43, start: 0.066016, bitrate: 13416 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 1024x768, 13414 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandlerAgain, this only produces 15 seconds of video and I can’t seem to get a 1:1 relationship between the input stream of 30 FPS and an output stream also in 30 FPS in real time. Playing the video yields something that’s sped up.