Timeline for How to add a afade effect to a complex filter (In this case volume)?
Current License: CC BY-SA 4.0
20 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 5, 2023 at 13:09 | comment | added | Nobunaji | It's done @MarianD. Here is a link to the new question : video.stackexchange.com/questions/36556/… | |
Jun 5, 2023 at 13:06 | vote | accept | Nobunaji | ||
Jun 5, 2023 at 13:04 | comment | added | MarianD | Nobunaji, 1. Yes, your expression seems better than mine. — 2. Please consider accepting my answer, if it is useful for you (click on the check mark near its start). — 3. Your edited part is another question, please let us at first finish the original one. Put the edited part in the form of another, new question, please. | |
Jun 5, 2023 at 9:30 | comment | added | Nobunaji | @БаярГончикжапов Can any of you two tell me what is wrong with the edited section of my original question ? | |
Jun 5, 2023 at 8:08 | comment | added | Nobunaji |
@MarianD Why in your expression you put if(lt(t\,4),1,if(lt(t\,5),1-0.85/(5-4)*(t-4),0.15)) and not if(lt(t, 4), 1), if(lt(t, 5), 1-0.85/(5-4)*(t-4),0.15)) ? This makes more sense to me than to have one if inside of another.
|
|
Jun 4, 2023 at 18:27 | history | edited | MarianD | CC BY-SA 4.0 |
deleted 27 characters in body
|
Jun 4, 2023 at 13:33 | history | edited | MarianD | CC BY-SA 4.0 |
added 42 characters in body
|
Jun 4, 2023 at 13:23 | history | edited | MarianD | CC BY-SA 4.0 |
added 89 characters in body
|
Jun 4, 2023 at 13:15 | history | edited | MarianD | CC BY-SA 4.0 |
added 174 characters in body
|
Jun 3, 2023 at 14:34 | comment | added | MarianD | @БаярГончикжапов, nice, you are a smart man – why not to put it as another answer and gain some reputation points? | |
Jun 3, 2023 at 4:17 | comment | added | Баяр Гончикжапов |
finally: ffmpeg -f lavfi -i "aevalsrc=sin(440*2*PI*t)" -af " volume='if(lt(t,4)+between(t,10,14)+gt(t,20),1, if(between(t,4,5),1-0.85*(t-4), if(between(t,9,10),0.15+0.85*(t-9), if(between(t,14,15),1-0.85*(t-14), if(between(t,19,20),0.15+0.85*(t-19), 0.15)))))':eval=frame " -b:a 320k -t 23 -y /tmp/out.mp3
|
|
Jun 2, 2023 at 22:55 | history | edited | MarianD | CC BY-SA 4.0 |
added 613 characters in body
|
Jun 2, 2023 at 22:47 | history | edited | MarianD | CC BY-SA 4.0 |
added 613 characters in body
|
Jun 2, 2023 at 22:44 | comment | added | MarianD | @Nobunaji, I extended my answer to show you how to progressively build the expression for your particular need. | |
Jun 2, 2023 at 22:42 | history | edited | MarianD | CC BY-SA 4.0 |
added 613 characters in body
|
Jun 2, 2023 at 7:37 | comment | added | Nobunaji |
Hi. Thank you for your answer @MarianD. From your question i came up with this function to decrease the volume : 1 - [ (1 - percentage) / ( stop - start) ] * ( time - start) And this is for the linearly increasing the volume : 1 - [ (1 - percentage) / (stop - start) ] * (stop - time) My question is now : I want the volume to decrease to 15% over 1s then stay at the same level between 2 times and finally increase back up to 100% over 1s. How would i go about doing that ?
|
|
Jun 1, 2023 at 19:09 | history | edited | MarianD | CC BY-SA 4.0 |
added 11 characters in body
|
Jun 1, 2023 at 19:02 | history | edited | MarianD | CC BY-SA 4.0 |
added 11 characters in body
|
Jun 1, 2023 at 18:54 | history | edited | MarianD | CC BY-SA 4.0 |
added 11 characters in body
|
Jun 1, 2023 at 18:48 | history | answered | MarianD | CC BY-SA 4.0 |