How to remove 1 2 file in a directory?

Hi-tech electronic and computer equipment and Internet. Better use of electricity, help with the work and specifications, equipment selection. Presentations fixtures and plans. Waves and electromagnetic pollution.
Christophe
Moderator
Moderator
posts: 79361
Registration: 10/02/03, 14:06
Location: Greenhouse planet
x 11060

How to remove 1 2 file in a directory?




by Christophe » 11/06/16, 16:27

I'm doing a TimeLaps since 3 weeks my kittens (see bistro / the miracle-of-the-life-of-my-seat-of-delivery-pussy-t14734.html ) at the 1 frame-by-minute period (my gopro is no better and I do not have any other hardware to do it), which makes 60 * 24 = 1440 images per day and 25 images seconds that gives almost 1 minutes a movie a day, it's a little too much ...

So I would like to delete 1 image on 2 (see 2 on 3) in the directory of photos and this in chronological order obviously because I do not want the timelaps lasts in fine too long ... (15 minutes for 45 days it would be nice to keep 1 image on 3)

I did not find anything soft looking, does anyone know a known or a method under linux or windows? (I think linux command line I could get there ... not yet searched on that side but if there is an easier solution I take)
0 x
izentrop
Econologue expert
Econologue expert
posts: 13716
Registration: 17/03/14, 23:42
Location: picardie
x 1525
Contact :

Re: How to remove 1 file on 2 in a directory?




by izentrop » 11/06/16, 16:39

And speed up the video to editing? but I guess that's not the solution you're looking for :|
0 x
Christophe
Moderator
Moderator
posts: 79361
Registration: 10/02/03, 14:06
Location: Greenhouse planet
x 11060

Re: How to remove 1 file on 2 in a directory?




by Christophe » 11/06/16, 16:49

I thought about playing framerate, but:

a) 75 fps I want to try: but youtube and dailymotion support it? I do not believe...

b) it is not only the temporal aspect of the video, there is also its weight and the video processing ... For the moment I have more than 4 GB of photos already (under) resized in 1080 of high ... before resizing it was 30 Go ... : Cheesy:

And this is only the 22 April 3 June ... my PC is not going to know how to process a video so heavy, and I'm not talking about the upload that may take me 1 month continuous bandwidth :D :D I would like to stay in FullHD anyway, if not technically possible, I would do a resize pass (in FullHD, I do not intend to treat the whole sequence of a sudden of course)

In short better try to delete 2 files on 3 source ... see more ... 1 photo every 10 minutes for example, to see the growth of small ...

ps: I resized the images by directory with "Light Image Resizer 4" a good little free software!
0 x
izentrop
Econologue expert
Econologue expert
posts: 13716
Registration: 17/03/14, 23:42
Location: picardie
x 1525
Contact :

Re: How to remove 1 file on 2 in a directory?




by izentrop » 11/06/16, 17:01

To lighten the photos I use Photofiltre
It has a damn "tool / automation" batch module. Photos recompressed in 60 instead of 90 save a lot of weight without losing quality (/3.4).
With Movie maker, you do what you want, it is at the time of publishing that it creates the youtube compatible file.
0 x
Christophe
Moderator
Moderator
posts: 79361
Registration: 10/02/03, 14:06
Location: Greenhouse planet
x 11060

Re: How to remove 1 file on 2 in a directory?




by Christophe » 11/06/16, 17:37

Light Image Resizer does the same thing, I switched to 80% ... each photo is between 150 and 250 ko in 1080 which is reasonable ... but it's still too heavy at 1 image per minute ... over a long period...

I also work with Movie Maker but beyond 2 Go loaded images it reams from oar ... (I yet 6Go RAM ... not to row ... lol you talk)

I searched on the command rm of linux, there is not this possibility ... I continue to search ... :-(

I test the soft GoPro Studio, I had never installed, but I have a gopro from 2012 ... ^^
0 x
User avatar
Philippe Schutt
Econologue expert
Econologue expert
posts: 1611
Registration: 25/12/05, 18:03
Location: Alsace
x 33

Re: How to remove 1 file on 2 in a directory?




by Philippe Schutt » 11/06/16, 18:05

In command line linux, you converted to batch resize.
To erase or move I think you have to go through a script
0 x
Christophe
Moderator
Moderator
posts: 79361
Registration: 10/02/03, 14:06
Location: Greenhouse planet
x 11060

Re: How to remove 1 file on 2 in a directory?




by Christophe » 11/06/16, 18:18

Batch resizing is done with image resizer ... the trouble is to delete X images on Y because even resizing it is too heavy :(

Yes, after 1h of unsuccessful searches there (or so it is that I did not type the right keywords ... even in English) ... I think the script remains the last option ... I'm still looking for a little if I find I tell you ... maybe Gopro Studio is less heavy than Movie Maker and offers this option? To have...
0 x
Christophe
Moderator
Moderator
posts: 79361
Registration: 10/02/03, 14:06
Location: Greenhouse planet
x 11060

Re: How to remove 1 file on 2 in a directory?




by Christophe » 11/06/16, 19:39

Find!!

Use the good old DOS method! : Cheesy:

run -> cmd
go to the images directory
to do a del * x.jpg

With x which varies from 0 to 8 to keep only the images which, for example, end with 9 to have only one image all the 10 minutes in my case (since the photos are numbered incrementally ...)

To remove 1 on 2, do the same thing with x = 2, 4, 6, 8 and 0 ...

After we can further refine the filtering by passing x to 2 digits ...
0 x
izentrop
Econologue expert
Econologue expert
posts: 13716
Registration: 17/03/14, 23:42
Location: picardie
x 1525
Contact :

Re: How to remove 1 file on 2 in a directory?




by izentrop » 11/06/16, 20:38

Alternatively, make partial videos and concatenate them with FFMPEG from the command line or through Winff.
There is also software like Freemake video converter that can make video slideshows.
0 x
Christophe
Moderator
Moderator
posts: 79361
Registration: 10/02/03, 14:06
Location: Greenhouse planet
x 11060

Re: How to remove 1 file on 2 in a directory?




by Christophe » 11/06/16, 20:43

Yes, but that would not have solved the heaviness of the source images ...

There I have a solution, I hope that the result will be worth the candle :)
0 x

 


  • Similar topics
    Replies
    views
    Last message

Back to "Electricity, electronics and computers: Hi-tech, Internet, DIY, lighting, materials, and new"

Who is online ?

Users browsing this forum : No registered users and 247 guests