
Recherche avancée
Médias (1)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
Autres articles (60)
-
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Pas question de marché, de cloud etc...
10 avril 2011Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
sur le web 2.0 et dans les entreprises qui en vivent.
Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)
Sur d’autres sites (8872)
-
How can I learn the effective quality of the h264_nvenc encoder ?
24 septembre 2020, par pfdint2I seek to ascertain the end-product quality of various cq ("constant quality") values for the h264_nvenc video encoder.


To use the h264_nvenc encoder through ffmpeg and with a target quality, I follow the instructions in Nvidia's documentation, last paragraph of the linked anchor.


I specify a Variable Bit Rate rate control mode (rc=vbr_hq) and a target quality (cq=
). This should be enough to test various values of cq. The story should end there. 

HOWEVER, that only outputs the same perfect quality video of extremely large size for any cq value. (Using cq=1, cq=20, and cq=51 all output a file with the same hash.)


Per documentation, I can also specify a maxBitRate (maxrate=
). If I don't specify a maxrate, the documentation indicates : 



If maxBitRate is not specified, the encoder will use as many bits as needed to achieve the target quality.




But that's not the behavior I'm observing. I'm seeing the encoder use as many bits as possible, not as many bits as needed. The resultant video has an overall bitrate of 100Mb/s. Double the source video.


If I do set a maxrate, it is observed by the encoder. But if I have to set the bitrate correctly for every cq value, what is the point of the cq value ? I would just set cq=1 and test various bitrates, which would then only be applicable to a specific video.


Is there some warning or output that notes that the bitrate was insufficient to reach the target quality that I'm not seeing ? That would at least allow me to brute force this.


Or am I misunderstanding the relationship between these settings ?


-
FFmpeg export frames listed in file (including duplicates)
5 novembre 2020, par Arnis GustinsProblem


I have a list of frames that I want to extract from some video file.
The list might look like this :


1,6,6,10,15,20,20,25,25,50



In reality there are thousands of frames.


How do I extract these frames into images or video in efficient way ?


What I have tried


- 

- Using FFmpeg select filter. I could create huge string from file like
select=eq(\n,1)+eq(\n,6)+...
but the problem is that I cannot export duplicates this way. Also I am not sure about the performance. - Exporting all frames to folder, then copying relevant frames to another folder. This is the current solution, which is painfully slow and takes a lot of storage.
- Using python and opencv. I could use
cv.VideoCapture
functionality to read frame by frame and save the ones I need. The problem is that before the extraction, I need to change framerate of the video to some constant framerate (very important). That's why ffmpeg is preferred, because I could add fps filter to filterchain. I know that it's possible to read frames with opencv by using ffmpeg backend, but I couldn't find how to change the framerate beforehand. Reencoding the video before is not preferred as it wastes time and possibly decreases video quality. - Write a new ffmpeg filter. While I am not in close relationship with C or ffmpeg API, I tried editing fps filter to drop frames that are not in the list. This kind of worked but I couldn't solve the problem with duplicating frames. I wonder if that's possible to do and if I should continue trying with this approach. Having ffmpeg filter would be probably the best option.










- Using FFmpeg select filter. I could create huge string from file like
-
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.