Hello,
I am new here, looking for some help with xnview 2.35.
I have saved a video as: 9155 jpg files and i want to change about 3625 pictures. After that i will make a new video from it.
I can't seem to find anything to change the pictures at once, because i want them all changed by one and the same picture and they are not in the same order. If i have to do this one by one it takes to much effort, then i will dismiss that task.
Is there any way to do that? or maybe a script to do that?
Replacing pictures
Moderator: xnview
-
Magistermagic
- Posts: 3
- Joined: Thu Jul 28, 2016 11:42 pm
Re: Replacing pictures
i already saved the video as *.jpg files. The 3625 jpg's that i want to change are in a different map now and i want them all changed with 1 particulary picture. After that i will remake a video with all the correct files.
Re: Replacing pictures
Let's pretend your exported video frames have the following name pattern:
Running the following batch file…
Overwrite the 3625 frames in X:\export\ with their counterparts in X:\temp\.
- X:\export\frame_0001.jpg
- X:\export\frame_0002.jpg
- …
- X:\export\frame_9155.jpg
Running the following batch file…
… will leave you with a set of 9155 identical copies of frame.jpg.[color=green]X:\temp\replicate.bat[/color] wrote:Code: Select all
@echo off for /l %%i in (1,1,9155) do call :docopy %%i goto end :docopy set numero=000%1 set numero=%numero:~-4% copy frame.jpg frame_%numero%.jpg :end
Overwrite the 3625 frames in X:\export\ with their counterparts in X:\temp\.
Re: Replacing pictures
This is an unusual request, and it isn't clear whether the files to be changed are consecutively numbered or not, which might be a consideration for some possible solutions. I can see several possible approaches.Magistermagic wrote:I have saved a video as: 9155 jpg files and i want to change about 3625 pictures. After that i will make a new video from it.
I can't seem to find anything to change the pictures at once, because i want them all changed by one and the same picture and they are not in the same order. If i have to do this one by one it takes to much effort, then i will dismiss that task.
Is there any way to do that? or maybe a script to do that?
But hold fire chaps...
I think this can actually be done very easily using XnView software
Solution: use Batch convert to watermark the images in the folder of images to be changed with the replacement image:
For example, using XnConvert:
As the pixel dimensions of the video frames will all be the same, the desired image is in effect substituted for the original images.
You do not have the required permissions to view the files attached to this post.
Re: Replacing pictures
cday wrote:Solution: use Batch convert to watermark the images in the folder of images to be changed with the replacement image:
-
Magistermagic
- Posts: 3
- Joined: Thu Jul 28, 2016 11:42 pm
Re: Replacing pictures
nice, this worked, especially because they where not equal numbered !!!
Thank you very much !!!
Thank you very much !!!