News:

--

Main Menu

Recent posts

#91
Avidemux-French / Re: Problème de JobList avec L...
Last post by Zapata - March 27, 2024, 09:19:23 AM
Juste une petite précision/correction, j'utilise plus précisément XUBUNTU 22.04
#92
Avidemux-French / Problème de JobList avec Linux...
Last post by Zapata - March 27, 2024, 08:57:28 AM
Bonjour, je voudrais poser 2 questions :

1. Sous Linux / Ubuntu 22.04, j'ai souvent un blocage/plantage au bout du 2ème ou 3ème fichier lorsque je fais une Job List ( j'utilise la dernière version AppImage à priori ).

2. a) Quel que soit le système d'exploitation, j'observe souvent un problème de qualité quand je cherche à encoder en X264 depuis un DVD, essentiellement lorsque le film est ENTRELACE (voir ce sujet), même après avoir appliqué le filtre YADIF adapté ( en cherchant les caractéristiques du film avec MediaInfo ).
b) J'ai pourtant augmenté le débit par rapport à ce que disais dans un message précédent ( je commence à 1500-1550 kbps pour monter jusqu'à 1800 kbps voire 2000 ).


Auriez-vous des idées de réponses à me proposer. Merci et bonne journée à vous !
#93
Unix-Like (Linux/Bsd/...) / Re: Avidemux freezes screen on...
Last post by teaadmirer - March 27, 2024, 12:21:04 AM
Ok. It works now. I don't know if updates fixed it or what, but I had another program not working and installing lib32-nvidia-utils made it work (it was a 32-bit).
#94
Main version 2.6 / Re: Scripting help
Last post by bobdeyoung - March 26, 2024, 09:02:29 PM
Quote from: eumagga0x2a on March 26, 2024, 08:55:20 PMThe following script will add 1s fade-in and 3s fade-out for a selection of at least 4 seconds duration:

adm = Avidemux()
ed = Editor()
gui = Gui()

if not adm.isFileOpen():
    gui.displayError("1s fade-in + 3s fade-out", "No video loaded")
    return

# require at least 4 seconds to be selected
if (adm.markerA < 0):
    adm.markerA = 0
if (adm.markerB < 0):
    adm.markerB = 0
if (adm.markerB > ed.getVideoDuration()):
    adm.markerB = ed.getVideoDuration()
if (adm.markerB - adm.markerA < 4 * 1000 * 1000):
    gui.displayError("1s fade-in + 3s fade-out", "Selection too short, must be at least 4 seconds")
    return

fadeInDuration = 1000 # in ms
fadeOutDuration = 3 * 1000 # in ms

fadeInStart = int(adm.markerA / 1000)
fadeOutStart = int((adm.markerB - 3 * 1000 * 1000) / 1000)

adm.addVideoFilter("fadeToBlack", "startFade=" + str(fadeInStart), "endFade=" + str(fadeInStart + fadeInDuration), "inOut=True", "toBlack=True")
adm.addVideoFilter("fadeToBlack", "startFade=" + str(fadeOutStart), "endFade=" + str(fadeOutStart + fadeOutDuration), "inOut=False", "toBlack=True")
gui.displayInfo("Done", "Fade-in and fade-out added. Select video codec other than \"Copy\" to re-encode video")

Save it as a text file with ".py" as extension. Place it e.g. into %appdata%\avidemux\custom directory to be listed in the "Custom" menu upon restart of Avidemux. You should update to the latest 2.8.2 nightly, I don't think that isFileOpen() method had been added to pyAvidemux class already in 2.8.1. In any case, you must switch from copy mode to an encoder to use filters.

Thanks.  See my reply above...I was trying to avoid having to re-encode.
#95
Main version 2.6 / Re: Scripting help
Last post by bobdeyoung - March 26, 2024, 09:01:22 PM
Quote from: sark on March 26, 2024, 08:42:56 PMYou must encode to apply a filter.
Select an encoder from the drop down list (commonly Mpeg4 AVC (x264) and the Filter button will become active.
There is an option to do exactly as you require.

OK, thank you!  I was trying to avoid re-encoding, but it makes sense that you would need to do that.  Unless there is some advantage to using Avidemux to encode, I will just use my primary encoding software (TMPGEnc Video Mastering Works 7) to do that.  What I am trying to accomplish in the end is to cut a few short video clips out of my 90 minute source video and have start/end fades on those shorter clips. 
#96
Main version 2.6 / Re: Scripting help
Last post by eumagga0x2a - March 26, 2024, 08:55:20 PM
The following script will add 1s fade-in and 3s fade-out for a selection of at least 4 seconds duration:

adm = Avidemux()
ed = Editor()
gui = Gui()

if not adm.isFileOpen():
    gui.displayError("1s fade-in + 3s fade-out", "No video loaded")
    return

# require at least 4 seconds to be selected
if (adm.markerA < 0):
    adm.markerA = 0
if (adm.markerB < 0):
    adm.markerB = 0
if (adm.markerB > ed.getVideoDuration()):
    adm.markerB = ed.getVideoDuration()
if (adm.markerB - adm.markerA < 4 * 1000 * 1000):
    gui.displayError("1s fade-in + 3s fade-out", "Selection too short, must be at least 4 seconds")
    return

fadeInDuration = 1000 # in ms
fadeOutDuration = 3 * 1000 # in ms

fadeInStart = int(adm.markerA / 1000)
fadeOutStart = int((adm.markerB - 3 * 1000 * 1000) / 1000)

adm.addVideoFilter("fadeToBlack", "startFade=" + str(fadeInStart), "endFade=" + str(fadeInStart + fadeInDuration), "inOut=True", "toBlack=True")
adm.addVideoFilter("fadeToBlack", "startFade=" + str(fadeOutStart), "endFade=" + str(fadeOutStart + fadeOutDuration), "inOut=False", "toBlack=True")
gui.displayInfo("Done", "Fade-in and fade-out added. Select video codec other than \"Copy\" to re-encode video")

Save it as a text file with ".py" as extension. Place it e.g. into %appdata%\avidemux\custom directory to be listed in the "Custom" menu upon restart of Avidemux. You should update to the latest 2.8.2 nightly, I don't think that isFileOpen() method had been added to pyAvidemux class already in 2.8.1. In any case, you must switch from copy mode to an encoder to use filters.
#97
Main version 2.6 / Re: Scripting help
Last post by sark - March 26, 2024, 08:42:56 PM
You must encode to apply a filter.
Select an encoder from the drop down list (commonly Mpeg4 AVC (x264) and the Filter button will become active.
There is an option to do exactly as you require.
#98
Main version 2.6 / Scripting help
Last post by bobdeyoung - March 26, 2024, 08:05:07 PM
Version 2.8.1 under Windows 11

Can someone assist me with how you go about creating and executing a script?  I see the Tools > Scripting Shell option but not sure what it does. Specifically, I would like to be able to add a 1 second "Fade-In" and a 3 second "Fade-Out to black" to a video being cut from a longer video.

Thanks!

EDIT:  Now I see that there is a Video > Filters menu option but it is grayed out.  That may be just what I need from reading other posts about fades.  How do I enable it and/or add filters?
#99
Avidemux-French / Re: impossible d'afficher la f...
Last post by sark - March 26, 2024, 12:34:59 PM
@ > eumagga

Quote from: eumagga0x2a on March 26, 2024, 11:24:09 AM"Taille du fichier: 756 Octets".
Missed bytes (instead of megabytes) in the translation. Lav58.29.100 indicated an older version.
Your french is clearly much better than mine  ;)
#100
Avidemux-French / Re: impossible d'afficher la f...
Last post by eumagga0x2a - March 26, 2024, 11:24:09 AM
Bonjour,

"Taille du fichier: 756 Octets". Ce fichier est effectivement vide. Vous avez probablement reçu un message d'erreur lors de l'exportation de la vidéo.

Il est bon de savoir que le problème est résolu dans la dernière version du développeur ("nightly").