-
-
Notifications
You must be signed in to change notification settings - Fork 281
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
stops processing multiple files on pysubs2.exceptions.UnknownFPSError #176
Comments
Hmm... for this command:
I don't think ffsubsync is smart enough to figure out the correspondence between references and inputs if multiple references are specified like that. I think the best you can hope for with the current code is syncing multiple inputs against a single reference -- anything fancier requires a wrapper around ffsubsync at the moment. Regarding the pysubs2 error, can you file an issue against that repo? Contributors there would probably be better equipped get a fix out. |
the glob
let me focus on
when syncing multiple subs, one broken sub should not stop the whole process |
@milahu I tried pushing a fix for this but haven't had a chance to properly test it -- would you be willing to try this out since you have an example where syncing should continue if something fails when trying to sync multiple? To test, you would need to install from master, which you can do by running the following:
|
7fd1885 (ffsubsync.nix) still stops at cat >bad.sub <<EOF
{2}{3}hello world
EOF
cat >good.sub <<EOF
{1}{1}25
{2}{3}hello world
EOF
# generate audio
espeak -w audio.wav "hello world"
# generate empty video, mux with audio
ffmpeg -t 3 -s 640x480 -f rawvideo -pix_fmt rgb24 -r 25 -i /dev/zero -i audio.wav -y video.mp4
md5sum good.sub
# 5964c0de6c837c24876fb4785023df06 good.sub
ffs --overwrite-input video.mp4 -i bad.sub good.sub
md5sum good.sub
# 5964c0de6c837c24876fb4785023df06 good.sub
# -> no change |
Sorry for the very late response -- got very busy at work. For the example you sent, it looks like we're only running it on one case -- what happens if we run on multiple case where, if run individually, the first fails but subsequent ones succeed? |
what? there are two input subs:
https://github.com/milahu/ffsubsync-stops-processing-multiple-files |
Ah I forgot how my own tool works (i.e. forgot that |
better : ) now my next case is failing
expected: this should fail *early* because all input files have an unsupported output format this case fails as expected
|
multiple bugs here
expected:
{1}{1}25.0
etc (not from first line)problematic subtitle file
The text was updated successfully, but these errors were encountered: