On Thursday, 6 October 2022 05:39:59 BST Dale wrote:
Howdy,Perhaps I'm missing something ...
This may not exist. If not, oh well. Sometimes when I'm moving files
with Dolphin, I need a added feature. I tend to use split panes when I
copy or move files. Quite often, I want to move files from one location
to another and the new file use the same name as the old file I'm
replacing. What I*wish* I could do, move the file from one pane to the
other and drag the new file on top of the old file and it replace it
with the name of the old file. As it is now, I have to bring up
properties, select the name of the file, while not including the
extension, and copy it, then close that window and open properties on
the new file, highlight the old name, paste new name, close window, copy
new file over and either delete old file or tell it to overwrite the
file. Sometimes it has a different extension and I have to delete
instead.
It would be a lot faster if I could just drag it on top of file I want
to replace and either it be configured to use name of old file for new
file or me select in a pop up what I want to do. Basically, move and
drop instead of all the properties, copy, repeat with paste on new file
and then move and maybe delete a file as well. I went to the services
window and looked for anything I could add but I didn't see anything
that would do what I describe but it could be a hidden feature of one
that isn't obvious.
Has anyone ever seen something that does this? While I use dolphin, I
may could use another tool if it has this feature.
Thanks.
Dale
😄 😄
If the old file has the*same* name as the new file, the file manager will warn you and ask you if you want to rename the new file so as it does not overwrite the old file, or if you want to replace the old file.
On 06/10/2022 08:33, Michael wrote:
On Thursday, 6 October 2022 05:39:59 BST Dale wrote:
Howdy,
This may not exist. If not, oh well. Sometimes when I'm moving files
with Dolphin, I need a added feature. I tend to use split panes when I
copy or move files. Quite often, I want to move files from one location >> to another and the new file use the same name as the old file I'm
replacing. What I*wish* I could do, move the file from one pane to the >> other and drag the new file on top of the old file and it replace it
with the name of the old file. As it is now, I have to bring up
properties, select the name of the file, while not including the
extension, and copy it, then close that window and open properties on
the new file, highlight the old name, paste new name, close window, copy >> new file over and either delete old file or tell it to overwrite the
file. Sometimes it has a different extension and I have to delete
instead.
It would be a lot faster if I could just drag it on top of file I want
to replace and either it be configured to use name of old file for new
file or me select in a pop up what I want to do. Basically, move and
drop instead of all the properties, copy, repeat with paste on new file
and then move and maybe delete a file as well. I went to the services
window and looked for anything I could add but I didn't see anything
that would do what I describe but it could be a hidden feature of one
that isn't obvious.
Has anyone ever seen something that does this? While I use dolphin, I
may could use another tool if it has this feature.
Thanks.
Dale
😄 😄
Perhaps I'm missing something ...
If the old file has the*same* name as the new file, the file manager will warn you and ask you if you want to rename the new file so as it does not overwrite the old file, or if you want to replace the old file.
This made me think. Some times the old tools are the best - maybe I
ought to switch from Dolphin to Midnight Commander for my use case, and
maybe you should too.
Okay, it doesn't do exactly what you want, but the dance you want to do
it will make it a lot easier ...
Cheers,
Wol
Howdy,
This may not exist. If not, oh well. Sometimes when I'm moving files
with Dolphin, I need a added feature. I tend to use split panes when I
copy or move files. Quite often, I want to move files from one location
to another and the new file use the same name as the old file I'm
replacing. What I *wish* I could do, move the file from one pane to the other and drag the new file on top of the old file and it replace it
with the name of the old file. As it is now, I have to bring up
properties, select the name of the file, while not including the
extension, and copy it, then close that window and open properties on
the new file, highlight the old name, paste new name, close window, copy
new file over and either delete old file or tell it to overwrite the
file. Sometimes it has a different extension and I have to delete
instead.
It would be a lot faster if I could just drag it on top of file I want
to replace and either it be configured to use name of old file for new
file or me select in a pop up what I want to do. Basically, move and
drop instead of all the properties, copy, repeat with paste on new file
and then move and maybe delete a file as well. I went to the services
window and looked for anything I could add but I didn't see anything
that would do what I describe but it could be a hidden feature of one
that isn't obvious.
Has anyone ever seen something that does this? While I use dolphin, I
may could use another tool if it has this feature.
Thanks.
Dale
:-) :-)
Howdy,
This may not exist. If not, oh well. Sometimes when I'm moving files
with Dolphin, I need a added feature. I tend to use split panes when I
copy or move files. Quite often, I want to move files from one location
to another and the new file use the same name as the old file I'm
replacing. What I *wish* I could do, move the file from one pane to the other and drag the new file on top of the old file and it replace it
with the name of the old file. As it is now, I have to bring up
properties, select the name of the file, while not including the
extension, and copy it, then close that window and open properties on
the new file, highlight the old name, paste new name, close window, copy
new file over and either delete old file or tell it to overwrite the
file. Sometimes it has a different extension and I have to delete
instead.
It would be a lot faster if I could just drag it on top of file I want
to replace and either it be configured to use name of old file for new
file or me select in a pop up what I want to do. Basically, move and
drop instead of all the properties, copy, repeat with paste on new file
and then move and maybe delete a file as well. I went to the services
window and looked for anything I could add but I didn't see anything
that would do what I describe but it could be a hidden feature of one
that isn't obvious.
Has anyone ever seen something that does this? While I use dolphin, I
may could use another tool if it has this feature.
This is probably a case of Dolphin not being a good tool, unless it
has a built-in command-line?
$ mv newfile oldfile
will overwrite the old file in place with the new file with the name
of the old file.
I know there are many file managers with a built-in terminal, so maybe
others have similar possible solutions. I saw someone mention midnight commander which I believe is one.
And if you like Bash brace expansions; this one is sometimes quicker,
than tab-completion and removing characters:
$ mv file.txt{,.bak}
file.txt.bak
$ mv file.txt,{bak,img}
file.txt.img
$ mv file.txt{img,}
file.txt
-Ramon
On 06/10/2022 14:45, Neil Bothwick wrote:
This is probably a case of Dolphin not being a good tool, unless itAnd tab-completion makes this a lot quicker than renaming files in a
has a built-in command-line?
$ mv newfile oldfile
will overwrite the old file in place with the new file with the name
of the old file.
file manager.
On Thu, 6 Oct 2022 10:10:52 +0200, Arve Barsnes wrote:
This is probably a case of Dolphin not being a good tool, unless itAnd tab-completion makes this a lot quicker than renaming files in a file manager.
has a built-in command-line?
$ mv newfile oldfile
will overwrite the old file in place with the new file with the name
of the old file.
I know there are many file managers with a built-in terminal, so maybeOr you could use a drop-down terminal like Yakuake to give a terminal on demand, whatever program you are using. Yakuake is for KDE, it wraps
others have similar possible solutions. I saw someone mention midnight
commander which I believe is one.
Konsole, but there are GNOME-ish variants too, I wouldn't be without it.
Neil Bothwick wrote:
On Thu, 6 Oct 2022 10:10:52 +0200, Arve Barsnes wrote:This is a option I haven't thought of. The mv command is a good
This is probably a case of Dolphin not being a good tool, unless itAnd tab-completion makes this a lot quicker than renaming files in a file
has a built-in command-line?
$ mv newfile oldfile
will overwrite the old file in place with the new file with the name
of the old file.
manager.
thought. Next time I have a lot of these to do, I'll try it. It just
may work. Plus, tab completion would be a nice bonus.
I look into Yakuake. I've never heard of it before. It's emerging andI know there are many file managers with a built-in terminal, so maybeOr you could use a drop-down terminal like Yakuake to give a terminal on
others have similar possible solutions. I saw someone mention midnight
commander which I believe is one.
demand, whatever program you are using. Yakuake is for KDE, it wraps
Konsole, but there are GNOME-ish variants too, I wouldn't be without it.
I have to run to town to help a friend.
Thanks.
Dale
:-) :-)
I installed Yakuake and to me, it looks like Konsole but without the
menu part at the top. Other than that, I don't see anything special.
I
kinda wish I had a terminal with dolphin or something. I think there is
a way but right now, I'm getting the job done. I'll look into that
later. Pretty sure it is under the tool menu.
Thanks.
Dale
:-) :-)
On Saturday, 8 October 2022 04:44:56 BST Dale wrote:
I installed Yakuake and to me, it looks like Konsole but without theOnce Yakuake is running, F12 will open it in whichever virtual desktop you happen to be and you can continue your work in the terminal within that desktop. I'm not sure what other benefits it has.
menu part at the top. Other than that, I don't see anything special.
IYes, look at Tools>'Focus Terminal Panel', or Ctrl+Shift+F4. I find this more
kinda wish I had a terminal with dolphin or something. I think there is
a way but right now, I'm getting the job done. I'll look into that
later. Pretty sure it is under the tool menu.
Thanks.
Dale
:-) :-)
useful than Yakuake for my typical use case,[1] or more often I just use Shift+F4 to open a new separate Konsole terminal in the same directory as Dolphin happens to be.
[1] Often I go into a directory which I have already opened in Dolphin and then run a series of commands in a terminal, without needing to refer back to dolphin.
I might add, along with tab completion, I also use the highlight
and middle click on the mouse. A faster way to copy and paste when needed. That's a nifty feature of Konsole.
On 08/10/2022 04:44, Dale wrote:
I might add, along with tab completion, I also use the highlight
and middle click on the mouse. A faster way to copy and paste when
needed. That's a nifty feature of Konsole.
I think that's been part of X since the dinosaurs were around. Try it elsewhere, it works most places, afaik ...
Cheers,
Wol
Once Yakuake is running, F12 will open it in whichever virtual
desktop you happen to be and you can continue your work in the
terminal within that desktop. I'm not sure what other benefits it
has.
I think since I always have Konsole open and ready, it is easier for me
to use it.
On Thu, 6 Oct 2022 at 06:40, Dale <rdalek1967@gmail.com> wrote:
Howdy,
This may not exist. If not, oh well. Sometimes when I'm moving files
with Dolphin, I need a added feature. I tend to use split panes when I copy or move files. Quite often, I want to move files from one location
to another and the new file use the same name as the old file I'm replacing. What I *wish* I could do, move the file from one pane to the other and drag the new file on top of the old file and it replace it
with the name of the old file. As it is now, I have to bring up properties, select the name of the file, while not including the
extension, and copy it, then close that window and open properties on
the new file, highlight the old name, paste new name, close window, copy new file over and either delete old file or tell it to overwrite the
file. Sometimes it has a different extension and I have to delete
instead.
This is probably a case of Dolphin not being a good tool, unless it
has a built-in command-line?
1. Equivalent to your method
- Select old file, F2 (rename), ctrl+c, esc, select new file in other
pane, shift+F6 (move with rename), ctrl+v, enter
I installed Yakuake and to me, it looks like Konsole but without the
menu part at the top. Other than that, I don't see anything special. I kinda wish I had a terminal with dolphin or something. I think there is
a way but right now, I'm getting the job done. I'll look into that
later. Pretty sure it is under the tool menu.
Good idea for most tho. I'm just a odd ball. lol<SNIP>
On Sat, 8 Oct 2022 03:18:30 -0500, Dale wrote:
The key point there is that it opens on the desktop you are using, so ifOnce Yakuake is running, F12 will open it in whichever virtualI think since I always have Konsole open and ready, it is easier for me
desktop you happen to be and you can continue your work in the
terminal within that desktop. I'm not sure what other benefits it
has.
to use it.
you need to refer to the program you are currently using, you have both terminal and program together - that's where I find it useful.
Am Thu, Oct 06, 2022 at 10:10:52AM +0200 schrieb Arve Barsnes:
1. Equivalent to your method
- Select old file, F2 (rename), ctrl+c, esc, select new file in other
pane, shift+F6 (move with rename), ctrl+v, enter
Shift+F6 only moves without rename—only if the destination already
exists.
Good idea for most tho. I'm just a odd ball. lol
On 08/10/2022 04:44, Dale wrote:
I might add, along with tab completion, I also use the highlight
and middle click on the mouse. A faster way to copy and paste when
needed. That's a nifty feature of Konsole.
I think that's been part of X since the dinosaurs were around.
Try it elsewhere, it works most places, afaik ...
This is a option I haven't thought of. The mv command is a good
thought. Next time I have a lot of these to do, I'll try it. It just
may work. Plus, tab completion would be a nice bonus.
Thanks.
Dale
:-) :-)
Well, I ran into a slight problem. This isn't much of a problem with
Linux but I'm not sure how this would work on windoze tho. The problem,
if it is one, is the file extension. Let's say I have a mp4 file that
is the older original file that I intend to replace. If the file I
intend to put in its place is a .mkv file, mv uses the .mp4 extension
because all it cares about is the name of the file, not what it is or
its content. So, I end up with a .mkv file that has a .mp4 extension.
It works here on Linux but not sure about windoze and such.
I looked at the man page and I don't see a way to tell it to retain the extension. I see something about suffix but I don't think that is
related to this. If I just backspace and change the extension, it
basically moves the file and I end up with both the old and new file. I wish I could write code and create a tool for this. :/
Is there a way to work around this problem? It works great except for losing the file extension.
Am Sun, Oct 23, 2022 at 01:35:55AM -0500 schrieb Dale:
Well, I ran into a slight problem. This isn't much of a problem withIt’s not a problem for as long as the application you open the file with does its own detection. I.e. you feed mp4 to mpv, but it recognises by
Linux but I'm not sure how this would work on windoze tho. The problem,
if it is one, is the file extension. Let's say I have a mp4 file that
is the older original file that I intend to replace. If the file I
intend to put in its place is a .mkv file, mv uses the .mp4 extension
because all it cares about is the name of the file, not what it is or
its content. So, I end up with a .mkv file that has a .mp4 extension.
It works here on Linux but not sure about windoze and such.
itself that it’s mp4 and can handle it.
I looked at the man page and I don't see a way to tell it to retain theIf you still want to stick to a terminal solution akin to mv, then there is no way around a little script which wraps mv by extracting the extension and filename base. You could also add some “intelligence” with regards to directories, in order to reduce the amount of effort required to use the command—in case your directories follow some schema or are constant.
extension. I see something about suffix but I don't think that is
related to this. If I just backspace and change the extension, it
basically moves the file and I end up with both the old and new file. I
wish I could write code and create a tool for this. :/
Is there a way to work around this problem? It works great except for
losing the file extension.
#!/usr/bin/sh
[ "$#" -ne "2" ] && exit 1
SRC="$1"
DST="$2"
SRC_EXT="${SRC##*.}"
DST_BASE="${DST%.*}"
# remove destination for the case that the extensions differ
rm "$DST"
mv "$SRC" "${DST_BASE}${SRC_EXT}"
Frank Steinmetzger wrote:
Am Sun, Oct 23, 2022 at 01:35:55AM -0500 schrieb Dale:
Well, I ran into a slight problem. This isn't much of a problem withIt’s not a problem for as long as the application you open the file with does its own detection. I.e. you feed mp4 to mpv, but it recognises by itself that it’s mp4 and can handle it.
Linux but I'm not sure how this would work on windoze tho. The problem, >> if it is one, is the file extension. Let's say I have a mp4 file that
is the older original file that I intend to replace. If the file I
intend to put in its place is a .mkv file, mv uses the .mp4 extension
because all it cares about is the name of the file, not what it is or
its content. So, I end up with a .mkv file that has a .mp4 extension. >> It works here on Linux but not sure about windoze and such.
That is true on Linux. Most linux software could care less what the extension is or if it even has one.
Heck, you could likely change a
.mp4 to .txt and it would open with a video player just by clicking on
it. Thing is, if I share a file with someone who uses windoze, I'm not
sure if it would work the same way. A wrong extension could cause
problems, either not opening at all or crashing something. It's
windoze, one can't expect much. ROFL
I thought about looking to see if there is a way to "scan" a directory
and look at each file and if needed, change the extension to the correct one. Thing is, I couldn't write a fancy script if my life depended on
it. I also looked into using Krename to do it but it refuses to change
a extension. Doing it one file at a time manually puts me back to where
it is easier to change the file the old way. Time consuming but works.
If you still want to stick to a terminal solution akin to mv, then there
is no way around a little script which wraps mv by extracting the
extension and filename base.
Hmmmm. I get a little of that but then I get lost.
Just how does that work and how would I use it?
I think I would save that as a file, make it executable and then run it
with whatever name I give it.
I'm not sure exactly how to tell it what files to move tho. Same as mv maybe?
Currently, I move to the main directory that files are in when I am in Konsole and running as my user, so file permissions don't switch to root.
My process on file organizing goes a little like this. I have a set of videos that go together. When I have a new version of one or more videos,
I place them in a sub-directory until they are named properly or something
so I can move to the main directory. Like this:
Main Directory #Permanent location for files ----- Sub-directory #Temporary location for files needing names changed etc. Once done, they move up to main directory.
A typical command for mv would be like this.
mv sub-directory/<file name of new file> <file name of old file in main directory>
Just trying to follow this and figure out how to use it. ;-) I've said this before, my scripting skills are so small it isn't funny. :/
That is true on Linux. Most linux software could care less what the extension is or if it even has one. Heck, you could likely change a
.mp4 to .txt and it would open with a video player just by clicking on
it. Thing is, if I share a file with someone who uses windoze, I'm not
sure if it would work the same way. A wrong extension could cause
problems, either not opening at all or crashing something. It's
windoze, one can't expect much. ROFL
On 2022-10-23, Dale <rdalek1967@gmail.com> wrote:
That is true on Linux. Most linux software could care less what the extension is or if it even has one. Heck, you could likely change a
.mp4 to .txt and it would open with a video player just by clicking on
it. Thing is, if I share a file with someone who uses windoze, I'm not sure if it would work the same way. A wrong extension could cause problems, either not opening at all or crashing something. It's
windoze, one can't expect much. ROFL
A friend of mine once spent days trying to re-encode a video file into
a format that could be handled by a particular windows app. No matter
what codecs/parameters he tried, the app couldn't open the file. He
finally figured out that the app in question had hard requirements for
the filename suffix, and they chose a somewhat non-nstandard extension
for that container format.
It turned out that any of the codec/parameter combinations would have
been fine, it was just the filename that was causing the problem.
If you still want to stick to a terminal solution akin to mv, then there is no way around a little script which wraps mv by extracting the extension and
filename base. You could also add some “intelligence” with regards to directories, in order to reduce the amount of effort required to use the command—in case your directories follow some schema or are constant.
#!/usr/bin/sh
[ "$#" -ne "2" ] && exit 1
SRC="$1"
DST="$2"
SRC_EXT="${SRC##*.}"
DST_BASE="${DST%.*}"
# remove destination for the case that the extensions differ
rm "$DST"
mv "$SRC" "${DST_BASE}${SRC_EXT}"
I finally got a chance to try this. I saved it and made it executable.
It runs but gave me this error.
dmv torrent/video_name-old-place.mp4 video-name-new-place.mp4
bash: /bin/dmv: /usr/bin/sh: bad interpreter: No such file or directory dale@fireball ~/Desktop/Crypt/Series $
My scripting skills are minimal at best. Still, I kinda got what your script was doing. Those who have known me for a while understand how miraculous that is. ROFL I did some googling. It seems to not be able to find the 'shebang' part. Sure enough, sh isn't located in /usr/bin here. It's in /bin tho. I edited that line so it can find it. When I tried it, it worked but noticed another problem. […]
I added a little . on that last line before the extension bit. I'm a
happy camper.
Am Sun, Oct 23, 2022 at 01:35:55AM -0500 schrieb Dale:
Well, I ran into a slight problem. This isn't much of a problem withIt’s not a problem for as long as the application you open the file with does its own detection. I.e. you feed mp4 to mpv, but it recognises by
Linux but I'm not sure how this would work on windoze tho. The problem,
if it is one, is the file extension. Let's say I have a mp4 file that
is the older original file that I intend to replace. If the file I
intend to put in its place is a .mkv file, mv uses the .mp4 extension
because all it cares about is the name of the file, not what it is or
its content. So, I end up with a .mkv file that has a .mp4 extension.
It works here on Linux but not sure about windoze and such.
itself that it’s mp4 and can handle it.
I looked at the man page and I don't see a way to tell it to retain theIf you still want to stick to a terminal solution akin to mv, then there is no way around a little script which wraps mv by extracting the extension and filename base. You could also add some “intelligence” with regards to directories, in order to reduce the amount of effort required to use the command—in case your directories follow some schema or are constant.
extension. I see something about suffix but I don't think that is
related to this. If I just backspace and change the extension, it
basically moves the file and I end up with both the old and new file. I
wish I could write code and create a tool for this. :/
Is there a way to work around this problem? It works great except for
losing the file extension.
#!/usr/bin/sh
[ "$#" -ne "2" ] && exit 1
SRC="$1"
DST="$2"
SRC_EXT="${SRC##*.}"
DST_BASE="${DST%.*}"
# remove destination for the case that the extensions differ
rm "$DST"
mv "$SRC" "${DST_BASE}${SRC_EXT}"
Am Tue, Nov 22, 2022 at 03:59:27AM -0600 schrieb Dale:
Well, it would have been boring to provide you with a turn-key solution. ;-) Congrats on getting it working. In my Arch setup, sh is in /usr/bin. A flexible solution is to use #!/usr/bin/env sh, which looks the command up before executing it.If you still want to stick to a terminal solution akin to mv, then there is >>> no way around a little script which wraps mv by extracting the extension andI finally got a chance to try this. I saved it and made it executable. >> It runs but gave me this error.
filename base. You could also add some “intelligence” with regards to >>> directories, in order to reduce the amount of effort required to use the >>> command—in case your directories follow some schema or are constant.
#!/usr/bin/sh
[ "$#" -ne "2" ] && exit 1
SRC="$1"
DST="$2"
SRC_EXT="${SRC##*.}"
DST_BASE="${DST%.*}"
# remove destination for the case that the extensions differ
rm "$DST"
mv "$SRC" "${DST_BASE}${SRC_EXT}"
dmv torrent/video_name-old-place.mp4 video-name-new-place.mp4
bash: /bin/dmv: /usr/bin/sh: bad interpreter: No such file or directory
dale@fireball ~/Desktop/Crypt/Series $
My scripting skills are minimal at best. Still, I kinda got what your
script was doing. Those who have known me for a while understand how
miraculous that is. ROFL I did some googling. It seems to not be able >> to find the 'shebang' part. Sure enough, sh isn't located in /usr/bin
here. It's in /bin tho. I edited that line so it can find it. When I >> tried it, it worked but noticed another problem. […]
I added a little . on that last line before the extension bit. I'm aGive me a nudge if you want the more luxurious version with interactive selection of the overwrite destination. I think I already started a
happy camper.
prototype somewhere, but can’t find it right now.
My scripting skills are minimal at best. Still, I kinda got what your
script was doing. Those who have known me for a while understand how
miraculous that is. ROFL I did some googling. It seems to not be able >> to find the 'shebang' part. Sure enough, sh isn't located in /usr/bin
here. It's in /bin tho. I edited that line so it can find it. When I >> tried it, it worked but noticed another problem. […]
Well, it would have been boring to provide you with a turn-key solution. 😉 Congrats on getting it working. In my Arch setup, sh is in /usr/bin. A flexible solution is to use #!/usr/bin/env sh, which looks the command up before executing it.
Frank Steinmetzger wrote:
I added a little . on that last line before the extension bit. I'm aGive me a nudge if you want the more luxurious version with interactive selection of the overwrite destination. I think I already started a prototype somewhere, but can’t find it right now.
happy camper.
Feel free to share. Even if I don't use it, someone else may find it
and make good use of it.
Frank Steinmetzger wrote:
There ya goo. As I suspected, I already wrote most of it in October right away, I only couldnt find the file until now. I just had to fix the same bugs as in the first script (and some more in the additional parts :D ), and put some more grease into the interal logic and output strings.
I saved it and then tried to figure it out. I got lost. I see the commented sections which kinda help I guess but still got lost.
What does it try to do in simple terms? Or, how would I use it may be a better question?
I been using the other script and it is coming in very handy. It saves
me quite a bit of time.
There ya goo. As I suspected, I already wrote most of it in October right away, I only couldnt find the file until now. I just had to fix the same bugs as in the first script (and some more in the additional parts :D ),
and put some more grease into the interal logic and output strings.
What does it try to do in simple terms? Or, how would I use it may be a >> better question?Look at my mail from 23.10., it has a textual description (the one with the file tree): it basically wraps the old script over all files.
You have a directory 'A' with videos and a subdirectory 'A/temp' with new videos. Start the script in A and it will go through all files in A/temp and
ask you what to do with each – skip (do nothing), keep (move to A without renaming), or overwrite a certain file in A (keeping the extension), which is
the same as the old script.
OK. I think I get it. It's kinda like dispatch-conf except it is for files not lines in a file. No 'merge' option tho. Kinda hard to merge a video. lol
I may try that sometime. I may copy the files to a different location
just in case I screw up something. It won't be the real files so no harm
if I botch it.
P. S. Now I'm trying to figure out how to change the resolution of all videos in a directory. Usually going from 1080p to 720p. If you have a script for that, awesome.
I'm currently using handbrake and it works but there may be a better way.
Am Wed, Nov 23, 2022 at 06:16:12AM -0600 schrieb Dale:
Always have a backup. ;-)OK. I think I get it. It's kinda like dispatch-conf except it is forWhat does it try to do in simple terms? Or, how would I use it may be a >>>> better question?Look at my mail from 23.10., it has a textual description (the one with the >>> file tree): it basically wraps the old script over all files.
You have a directory 'A' with videos and a subdirectory 'A/temp' with new >>> videos. Start the script in A and it will go through all files in A/temp and
ask you what to do with each – skip (do nothing), keep (move to A without >>> renaming), or overwrite a certain file in A (keeping the extension), which is
the same as the old script.
files not lines in a file. No 'merge' option tho. Kinda hard to merge a
video. lol
I may try that sometime. I may copy the files to a different location
just in case I screw up something. It won't be the real files so no harm
if I botch it.
I deny any responsibility for data loss. :-P
If you want to try it before doing real stuff: you could comment the two lines where it says 'mv -f' and 'rm -f'. Then it won’t do anything, but there are still progress messages being printed.
P. S. Now I'm trying to figure out how to change the resolution of allI use ffmpeg for all my encoding stuff, and have been using wrapper scripts for years now to make things easier. However, none of them has resized yet. It’s not difficult to configure, but the wrapper needs much more logic. As in: find out the current resolution, see if it is actually larger, then calculate the new resolution while keeping the aspect intact and so on.
videos in a directory. Usually going from 1080p to 720p. If you have a >> script for that, awesome.
I'm currently using handbrake and it works but there may be a better way.I know handbrake by name, have been aware of it for many a year, but never used it. In my Windows days I used VirtualDub for my editing stuff, and on Linux I’ve always used commandline tools, beginning with mencoder back in the day.
Frank Steinmetzger wrote:
Am Wed, Nov 23, 2022 at 06:16:12AM -0600 schrieb Dale:
P. S. Now I'm trying to figure out how to change the resolution of all
videos in a directory. Usually going from 1080p to 720p. If you have a >> script for that, awesome.
I use ffmpeg for all my encoding stuff, and have been using wrapper
scripts
for years now to make things easier. However, none of them has resized
yet.
It’s not difficult to configure, but the wrapper needs much more logic. As
in: find out the current resolution, see if it is actually larger, then calculate the new resolution while keeping the aspect intact and so on.
I found commands for it but not a way to process lots of videos. Right
now, I use the queue feature of handbrake. I set up a preset to make it
the same each time. I set it to 720p and about 3MB data rate. Should
be OK for my 32" TV.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 302 |
Nodes: | 16 (0 / 16) |
Uptime: | 96:58:34 |
Calls: | 6,764 |
Calls today: | 2 |
Files: | 12,295 |
Messages: | 5,376,370 |
Posted today: | 1 |