Skip to content
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

Error Videogear error #242

Open
revathij opened this issue Feb 18, 2023 · 2 comments
Open

Error Videogear error #242

revathij opened this issue Feb 18, 2023 · 2 comments

Comments

@revathij
Copy link

revathij commented Feb 18, 2023

🐛 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

@OYOOOWINO
Copy link

OYOOOWINO commented Jul 22, 2023

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.

@jbitton
Copy link
Contributor

jbitton commented Oct 26, 2023

Hi @revathij and @OYOOOWINO -- so sorry for the delay in addressing this -- trying to fix this in this PR: #248. Aiming to merge it ASAP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants