facebookresearch / facebookresearch/AugLy
Error Videogear error
- Dominant language
- Python
- Stars
- 5.1k
- Forks
- 312
- PR merge metrics
- No merged PRs in 30d
Description
## 🐛 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](https://localhost:8080/#) 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
Contributor guide
Research direction
Start by reproducing the augly.video.trim call in Google Colab with the listed installation commands and inspect the traceback in vidgear/gears/writegear.py. Compare the trim entry point and installed AugLy, Python, FFmpeg, and VidGear-related versions. Done means identifying the compatibility or invocation issue and confirming that video trimming completes without the WriteGear assertion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- audio-video-rtc
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100