-
Notifications
You must be signed in to change notification settings - Fork 66
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
Joining files together, "safe", and relative filenames #457
Comments
Hi @brainwane, thanks so much for flagging this! You're totally right - I just checked this too. As you say, it's not working currently with the explicit reference to the current directory - to get that to work you need the I know the current recipe worked in the past, I wonder when that changed 🤔 - certainly more recently than the date of that TRAC ticket! What the recipe should say is: to use just the filenames (can be quoted or not - edit, depending on what they contain), and probably add a note about having to run the command from the directory in which the files and list Is updating the recipe something that you'd like to take on, @brainwane? Happy to assist if necessary |
Thanks for the explanation @kfrn and for the fix in #458 (I had been assuming the indentation was meaningful but it looks like it was not). And thank you for your work on the tool!
Raises a question re: which versions of ffmpeg to support, which I've filed as #459.
So, it sounds like the recipe should advise people: if possible, run the command from the same directory where the files and the Thanks for the context!
I am not going to take this on, but thanks for the offer of help @kfrn. |
Thanks for flagging this, as mentioned in #459, it looks like this changed came about last August FFmpeg/FFmpeg@46fb395 . I might attempt a fix now but my ffmprovisr skillz are rusty :) |
Hey good find, @kieranjol! I was getting ready for work so didn't want to start digging 😅 |
join files recipe - remove './' from example, fixes #457
Thank you again for ffmprovisr!
I suggest we change the "join files together" recipe so the filenames don't have the initial
./
because that seems to read as unsafe to ffmpeg.Today I consulted this recipe and tried:
ffmpeg -f concat -i list.txt -c copy gift.mp4
The contents of
list.txt
had relative filenames, as suggested in the recipe:But I got the error
Unsafe file name './1.mp4'
. Thank you for the link in that recipe to https://trac.ffmpeg.org/wiki/Concatenate -- that plus this StackOverflow thread led me to add-safe 0
into the command, and it worked.I was trying to figure out what I had done wrong, and looked at the link you'd provided regarding relative vs. absolute paths plus this Trac ticket. It looks like maybe it prefers NOT to have the
./
at the start of the filename, so I changed the lines inlist.txt
toand ran
ffmpeg -f concat -i list.txt -c copy gift2.mp4
and it seemed to work fine.I'm using ffmpeg 4.3.4 on Debian buster.
The text was updated successfully, but these errors were encountered: