0

I have 100 videos extracted in the form of .MP4, and I have to save each video in each New Folder respectively with the folder name as the video name itself but without .MP4 extension.

Finally I'll get 100 videos saved in 100 folders. This is a very time consuming process if I do manually by creating a folder and cut/copy the 1st out of 100 videos and paste it in the New Folder and then rename the folder with the video name. Similarly for 100 videos.

So, is there any Python program to do it very quickly and automatically through some code?

Samarth
  • 13
  • 1
  • 3
  • Welcome to StackOverflow. Your question does not meet the guidelines of Stackoverflow, as this is not a programming question but rather general and more a request for a software recommendation. This can definitly be done with Python, with a little bit of learning. If you are interested in programming it yourself, I can post you a few starting points – FloLie Jun 07 '21 at 16:13
  • Yes please, I am interested in programming it myself. Any resources or important points that you have, please share it. Thank you! – Samarth Jun 07 '21 at 17:54
  • I added an answer with links that should point you in the right direction. CHeers – FloLie Jun 08 '21 at 08:52
  • Thanks a lot !! I'll go through all the links and learn the concepts. – Samarth Jun 08 '21 at 14:13
  • Great. If you need anything you can get back to me or the great community in general – FloLie Jun 08 '21 at 17:49

1 Answers1

0

Here are links to all the subproblems, I think you will encounter:

  1. Find and list all files in a directory (all your videos) Files in directory

  2. Create a directory with Python (create your subfolders) Create Folder

  3. Move a file to another folder (move the videos) Move files

  4. Iterate over files in directory (your movies) Iterate through files in directory

COMMENT:

I do know, that just posting links is not an appreciated way of answering questions on SO, however, the question is asked rather general with no prior programming experience. I therefore don't want to discourage the attempt to start programming, and provide some guidance this way.

FloLie
  • 1,820
  • 1
  • 7
  • 19