-
Notifications
You must be signed in to change notification settings - Fork 407
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 splitting video (ffmpeg returned 1) ' occurs while using 'split_video_ffmpeg' #392
Comments
Hi @Breakthrough, thanks for your great work! Can you help me?😭 |
@MqLeet in v0.6.1 I added You can override the default ffmpeg arguments by setting the Can you remove the |
@MqLeet thank you for sharing the sample, that was really helpful. Running through
I was able to rework the set of mappings from Initially I thought the video mapping would need to be Open items before closing:
|
Hi @Breakthrough , after removing "-map 0" , bug fixed! Thanks for your great work! |
Keeping this issue open until the items in the previous comment are resolved. I think changing these options should be considered in order to improve compatibility out-of-the-box, but still want to verify the new mapping I've proposed. |
A single stream is likely the most common use case, so I will choose that for a default. |
Change default stream mapping so that only a single video stream is selected. This should reduce ffmpeg command failures when an unrecognized or unsupported stream is present in the video. Fixes #392.
@yongyongdown try setting |
It looks like you are using a very old version of ffmpeg which is probably why the default arguments aren't working. What version of PySceneDetect are you using? Can you also try with a newer version of ffmpeg? |
On Ubuntu, you need to switch channels from stable (ffmpeg 4.3 ~2020) to latest/edge |
Description:
Here is my spliting code:
Command:
I run the
python python scene_detect.py
in command lineOutput:
And I got the error like this:
How can I solve it?
Environment:
System Info
OS Linux-3.10.0-957.el7.x86_64-x86_64-with-glibc2.17
Python 3.9.18
Packages
av 12.0.4
click 8.1.7
cv2 4.9.0
moviepy Not Installed
numpy 1.26.4
platformdirs 4.2.0
scenedetect 0.6.3
tqdm 4.66.2
Tools
ffmpeg 9c33b2f
mkvmerge Not Installed
Media/Files:
Video link: https://cdn.openai.com/sora/videos/tokyo-walk.mp4
The text was updated successfully, but these errors were encountered: