AugLy icon indicating copy to clipboard operation
AugLy copied to clipboard

Error Videogear error

Open revathij opened this issue 3 years ago • 2 comments

🐛 Bug

To Reproduce

Steps to reproduce the behavior:

Executed the below lines and got the following error !pip install augly[all] !sudo apt-get install python3-magic

!sudo add-apt-repository ppa:jonathonf/ffmpeg-4 !apt install ffmpeg

from IPython.display import display, HTML from base64 import b64encode

def display_video(path): mp4 = open(path, "rb").read() data_url = "data:video/mp4;base64," + b64encode(mp4).decode() display( HTML( """ """ % data_url ) )

import os import augly.utils as utils import augly.video as vidaugs

input_video = "/content/gdrive/MyDrive/wasl/covidwords/case/original/case1.mp4" input_vid_path = "/content/gdrive/MyDrive/wasl/covidwords/case/original/case1.mp4" out_vid_path = "/content/gdrive/MyDrive/wasl/covidwords/case/original/aug_case1.mp4"

vidaugs.trim(input_video, output_path=input_vid_path, start=0, end=3) display_video(input_vid_path)

How getting the below error:

/usr/local/lib/python3.8/dist-packages/vidgear/gears/writegear.py in init(self, output, compression_mode, custom_ffmpeg, logging, **output_params) 99 100 # check if user not using depreciated output_filename parameter --> 101 assert ( 102 not "output_filename" in output_params 103 ), "[WriteGear:ERROR] :: The output_filename parameter has been renamed to output. Refer Docs for more info."

AssertionError: [WriteGear:ERROR] :: The output_filename parameter has been renamed to output. Refer Docs for more info.

Environment

  • AugLy Version (e.g., 0.1.2): 1.0.0
  • OS (e.g., Linux): in google Colab
  • How you installed AugLy (pip install augly, clone & pip install -e AugLy): above
  • Python version:
  • Other relevant packages (Tensorflow, etc):

Additional context

revathij avatar Feb 18 '23 13:02 revathij

Hello, I am also getting the same error. Did you get it fixed? Screenshot 2023-07-22 at 23 43 33 I am getting the error above still new to Augly and have no clear idea of what is happening. Any pointers in a direction to help resolve this is appreciated.

Born-Winga avatar Jul 22 '23 20:07 Born-Winga

Hi @revathij and @OYOOOWINO -- so sorry for the delay in addressing this -- trying to fix this in this PR: https://github.com/facebookresearch/AugLy/pull/248. Aiming to merge it ASAP

jbitton avatar Oct 26 '23 21:10 jbitton