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

Update crop_video.py #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gulabsanaparveen
Copy link

FIX FILE CREATION

System: Ubuntu

In write_video_ffmpeg method when file name contains : which is given in representation of time example: _Mci9oyb5V2E-00:00:06.000-00:00:06.589.mp4, the output video file doesn't get created

The following command will run but will not be able to create file

cmd = [ffmpeg, "-f", "concat", "-safe", "0", "-i", list_fn, "-q:v", "1", "-r", str(fps), '-y', '-crf', '20', '-pix_fmt', 'yuv420p', target_path] pipe = subprocess.run(cmd, stdout = subprocess.PIPE, stderr = subprocess.STDOUT)

This fix will enable the file creation

FIX FILE CREATION

System: Ubuntu

In write_video_ffmpeg method when file name contains : which is given in representation of time example: _Mci9oyb5V2E-00:00:06.000-00:00:06.589.mp4, the output video file doesn't get created

The following command will run but will not be able to create file

cmd = [ffmpeg, "-f", "concat", "-safe", "0", "-i", list_fn, "-q:v", "1", "-r", str(fps), '-y', '-crf', '20', '-pix_fmt', 'yuv420p', target_path]
pipe = subprocess.run(cmd, stdout = subprocess.PIPE, stderr = subprocess.STDOUT)

This fix will enable the file creation
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

Successfully merging this pull request may close these issues.

1 participant