Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
Main version 2.6 / Re: Partial filter and set A B markeser
« Last post by eumagga0x2a on April 26, 2017, 03:26:37 PM »
What is missing is a convenient time chooser with video preview for all filters and purposes. Still, the markers A and B in % of the total video duration could be used as the default initial values.
22
Main version 2.6 / Re: Partial filter and set A B markeser
« Last post by p3trus on April 26, 2017, 03:05:15 PM »
...fyi, I've made an approach to this using scripting: apply partial filters based on [A B] markers

But a built-in method without the scipt restrictions & flaws would be still warmly welcomed! :)
23
Documentation & Tips / [script] apply partial filters based on [A B] markers
« Last post by p3trus on April 26, 2017, 03:02:06 PM »
Hi there,

I coded a tiny script to help you adding partial filters; just set up the range where the filter should be applied with the [A & B] markers and run the script.
(Please note that B is is inclusive contrary to ADMs normal behaviour!)



Standard behaviour is to reset the markers afterwards (ie whole video selected again), but you can untick that checkbox (or change the code if you never want it)

Right now, only my four 'favorites' are included: Fade in/ out from/ to black, Replace by solid black & DeLogo as a partial filter.
But you can add any other (which ADM allows to be partial) yourself, see inline comments; or ask me to add it ;)

Attention! Due to a bug in ADM use the script only once per session, otherwise ADM will crash.
If you need it a second time, either on the same video or a new one, you have to close & restart ADM (save your work in progress project script first, if needed).
I hope the bug will get extinguished soon ^^

Code: [Select]
#PY
# adds partial filters based on [A B] markers


# basic setup
adm=Avidemux()
gui=Gui()

# helper function to forge the comand to add a filter
def add_filter(f, a, b):
    c = filters[f]
    out = [c['name'],
           c['a'] + '=' + str(a),
           c['b'] + '=' + str(b)
    ]
    out.extend(c['opt'])
    adm.addVideoFilter(*out)

# get marker positions (typecast since // seems broken)
ts_a = int(adm.markerA / 1000)
ts_b = int(adm.markerB / 1000)

# since I wanted to have a custom area as preset for the delogo filter (1/3 of video dimensions)
# I set up those options separately
delogo_opt = ["filterName=mpdelogo2",
    "xoff=0", "yoff=0",
    "lw=" + str(int(adm.getWidth() / 3)),
    "lh=" + str(int(adm.getHeight() / 3)),
    "band=4", "show=False"
]

### filter list - extend to your needs ###
#       desc:   shows up in the menu
#       name:   the actual filter name
#       a, b:   parameter names for start and end frames
#       opt:    additional parameters for the filter
#  >>   take the values from a saved project with your desired filter

filters = [
    {'desc': 'Fade in from black', 'name': 'fadeToBlack', 'a': 'startFade', 'b': 'endFade',
    'opt': ["inOut=True", "toBlack=True"]},
   
    {'desc': 'Fade out to black', 'name': 'fadeToBlack', 'a': 'startFade', 'b': 'endFade',
    'opt': ["inOut=False", "toBlack=True"]},
   
    {'desc': 'Black', 'name': 'black', 'a': 'startBlack', 'b': 'endBlack', 'opt': []},
   
    {'desc': 'DeLogo', 'name': 'partial', 'a': 'startBlack', 'b': 'endBlack',
    'opt': delogo_opt}
]

mnu_filters = DFMenu("Filter to add:")
for filt in filters:
    mnu_filters.addItem(filt['desc'])
   
toggle_reset = DFToggle("Reset markers afterwards")
toggle_reset.value = True

dlg = DialogFactory("Partial filter helper")
dlg.addControl(mnu_filters)
dlg.addControl(toggle_reset)

res=dlg.show()
if res == 1:
    filt = mnu_filters.index
    add_filter(filt, ts_a, ts_b)
    if toggle_reset.value:
        adm.markerA = 0
        adm.markerB = Editor().getVideoDuration()

Usage: save that code as .py file (eg autopartial.py) in either
  • the custom script folder (Help > Advanced > Open Apllication Data Folder)
  • the Auto scripts folder (\plugins\autoScripts in ADM's application folder)
  • just anywhere & run it by File > Project Script > Run Project...

Please note that you can only add filters, not change an existing one, since there is no script access to the current filter list (at least I haven't found one).

If you have any problems or just find it useful, let me know! ;)
24
Main version 2.6 / [bug] using GUIs in scripts
« Last post by p3trus on April 26, 2017, 01:13:51 PM »
Hi there,

I noticed that the use of Gui() / DialogFactory elements is somewhat broken and tends to crash ADM.

Steps to reproduce:
  • load a video
  • run a script displaying a GUI (eg one of the auto scripts in the Auto menu)
  • either apply the script (OK) or Cancel the dialog - doesn't matter.
    That first run works without any errors after ADM has been [re]started freshly.
    • 100% crash: Try to run the same or another script using a GUI a second time
    • ~40% crash: Load a new video or project file by either the appropiate File menu entry or using the Recent menu
      (I haven't found out exactly in which case this happens; but for a 100% reproduction use the first method)

Seems the clean-up for dialogs is failing; I also tried to assign None to my gui variable at the end of the script, but that doesn't help either.

And another (minor) issue: When closing a script GUI by clicking the X top right, the following error message pops up:
TinyPy:Exception
 Exception :(_tp_dict_get) KeyError: exit

...seems that way of dismissing a dialog is not handled.

Hope you can find & eliminate that bug soon - I just made script that might need several runs for different tasks, and having to save a new project & restart ADM after every step somehow perverts the time-saving function of the script ;)

/edit: happens both with 2.6.19 (x64) and r170425_win64Qt5_4 on Win 7 x64
25
Should be quick & easy:

When saving a project file (File > Project Script > Save As Project), the default filename is <video_filename>.* - one has to change that .* into .py manually every time, otherwise saving doesn't work (at least not in windoze)

tl/dr: Please give project files a .py extension by default

Thanks!
26
Main version 2.6 / Re: Crash when muxing AAC
« Last post by Blues on April 26, 2017, 11:53:12 AM »
Audio file.

Avidemux loads it, but crashes when I try to mux it.
27
Avidemux-French / Re: Erreur avidemux v2.6.19 Exception filter
« Last post by the_ferret on April 26, 2017, 10:46:27 AM »
J'ai pris celui-ci "avidemux_2.7.0_r170426_win64.exe" et le problème est pareil.
C'est quoi la différence entre les deux versions ?

Ps: Mon System est bien en 64 bits.
28
Avidemux-French / Re: Erreur avidemux v2.6.19 Exception filter
« Last post by eumagga0x2a on April 26, 2017, 08:27:54 AM »
Quote
1- Pouvez vous essayer avec une nightly
(http://www.avidemux.org/nighty/win32 ou win64)

Le lien que vous indiquez est mort [...]

Ç'étais une faute de frappe: http://avidemux.org/nightly/win32/ ou http://avidemux.org/nightly/win64/.
29
Avidemux-French / Re: Erreur avidemux v2.6.19 Exception filter
« Last post by the_ferret on April 26, 2017, 07:29:12 AM »
Quote
1- Pouvez vous essayer avec une nightly
(http://www.avidemux.org/nighty/win32 ou win64)

Bonjour,
Le lien que vous indiquez est mort et je n'arrive pas à trouver ailleur, dautant plus que je ne sais pas à quoi sert ce fichier..  lol


Quote
2- La découpe se fait sur des keyframes ?
Précisez moi comment le savoir svp car je ne connais pas trop ce logiciel.

Ps: Oui je sas je suis un boulet.  '^^

30
Main version 2.6 / Re: appmenu-qt
« Last post by eumagga0x2a on April 26, 2017, 06:44:47 AM »
So we still need appmenu-qt on ubuntu 16.04.2 unity compiz

"We" need neither Unity compiz plugin nor appmenu-qt ;)

Quote
upcoming Ubuntu 18.04 LTS will ditch Unity 8 and ship with GNOME desktop. (2018/04)

Ubuntu GNOME ships Ubuntu with gnome-shell as the default shell for GNOME since a couple of years already.

Quote
Any idea how this will influence avidemux?

One way less to screw Avidemux.
Pages: 1 2 [3] 4 5 ... 10