-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade ffmpeg #1246
base: pod_V4
Are you sure you want to change the base?
Upgrade ffmpeg #1246
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Je pense qu'il faudrait aussi remplacer les "vsync" qu'on trouve dans "FFMPEG_CREATE_THUMBNAIL", "FFMPEG_CREATE_OVERVIEW" et "FFMPEG_DRESSING_OUTPUT" dans ce fichier There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok je vais regarder. |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -94,9 +94,11 @@ def get_sub_cmd(height_presentation_video, height_presenter_video, presenter): | |
# -vsync 0 outputVideo.mp4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Il reste encore un |
||
subcmd = ( | ||
" -filter_complex " | ||
+ '"[0:v]scale=-2:%(height)s[pres];[1:v]scale=-2:%(sh)s[pip];' | ||
+ '"[0:v]bwdif=mode=send_field:parity=auto:deint=all[presdeint];' | ||
+ '[1:v]bwdif=mode=send_field:parity=auto:deint=all[pipdeint];' | ||
+ '[presdeint]scale=-2:%(height)s[pres];[pipdeint]scale=-2:%(sh)s[pip];' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ca fait beaucoup de lignes en plus ^^. Tu saurais expliquer à un néophite le changement ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. J'ai seulement suivi les propositions issues du Backlog. Je ne suis pas un spécialiste sur ffmpeg mais je peux creuser. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Si tu peux creuser ce serait pas mal merci. Je suis pas fan de pousser des modifs si personne ne sait ce qu'elle font ^^. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tu sais qui est à l'origine de ces modifs ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. C'est Ulysseus, mais il me semble qu'il me disait avoir juste fait du "bidouillage" sur FFMPEG, c'est pourquoi j'ai préféré le confier à une personne s'y connaissant un minimum en encodage ^^. |
||
% {"height": height, "sh": height / 4} | ||
+ '[pres][pip]overlay=W-w-10:H-h-10:shortest=1" -vsync 0 ' | ||
+ '[pres][pip]overlay=W-w-10:H-h-10:shortest=1" -fps_mode passthrough ' | ||
) | ||
if presenter == "piph": | ||
# trouver la bonne hauteur en fonction de la video de presentation | ||
|
@@ -111,9 +113,11 @@ def get_sub_cmd(height_presentation_video, height_presenter_video, presenter): | |
# -vsync 0 outputVideo.mp4 | ||
subcmd = ( | ||
" -filter_complex " | ||
+ '"[0:v]scale=-2:%(height)s[pres];[1:v]scale=-2:%(sh)s[pip];' | ||
+ '"[0:v]bwdif=mode=send_field:parity=auto:deint=all[presdeint];' | ||
+ '[1:v]bwdif=mode=send_field:parity=auto:deint=all[pipdeint];' | ||
+ '[presdeint]scale=-2:%(height)s[pres];[pipdeint]scale=-2:%(sh)s[pip];' | ||
% {"height": height, "sh": height / 4} | ||
+ '[pres][pip]overlay=W-w-10:10:shortest=1" -vsync 0 ' | ||
+ '[pres][pip]overlay=W-w-10:10:shortest=1" -fps_mode passthrough ' | ||
) | ||
if presenter == "mid": | ||
height = min_height if (min_height % 2) == 0 else min_height + 1 | ||
|
@@ -122,9 +126,11 @@ def get_sub_cmd(height_presentation_video, height_presenter_video, presenter): | |
# outputVideo.mp4 | ||
subcmd = ( | ||
" -filter_complex " | ||
+ '"[0:v]scale=-2:%(height)s[left];[1:v]scale=-2:%(height)s[right];' | ||
+ '"[0:v]bwdif=mode=send_field:parity=auto:deint=all[presdeint];' | ||
+ '[1:v]bwdif=mode=send_field:parity=auto:deint=all[pipdeint];' | ||
+ '[presdeint]scale=-2:%(height)s[left];[pipdeint]scale=-2:%(height)s[right];' | ||
% {"height": height} | ||
+ '[left][right]hstack" -vsync 0 ' | ||
+ '[left][right]hstack" -fps_mode passthrough ' | ||
) | ||
|
||
return subcmd | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Juste pour comprendre, ca signifie que
vsync 0
etvsync vfr
étaient équivalents ?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
non voilà l'explication de notre ami ChatGPT
-vsync 0 : Pour préserver exactement les horodatages d'entrée dans la sortie, utile dans les scénarios de remuxage ou d'encodage spécifique.
-vsync vfr : Lors de l'encodage pour des fréquences d'images variables ou si la chronologie des images d'entrée doit être respectée, mais la sortie ne nécessite pas des intervalles d'images fixes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
du coup, est-ce judicieux de remplacer "vsync 0" et "vsync vfr" par "fps_mode passthrough", ou y aurait-t-il un autre fps_mode plus adapté ?