# Discussion on how to clip meaningful parts of YouTube Videos

**URL:** <https://metastudio.org/t/discussion-on-how-to-clip-meaningful-parts-of-youtube-videos/14072>\
**Category:** STEM Chat\
**Created:** [November 23, 2022, 3:14am UTC](https://metastudio.org/t/discussion-on-how-to-clip-meaningful-parts-of-youtube-videos/14072 "2022-11-23T03:14:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![piyush\_02](https://metastudio.org/letter_avatar_proxy/v4/letter/p/f475e1/32.png) [@piyush\_02](https://metastudio.org/u/piyush_02)\
**Post date:** [November 23, 2022, 3:14am UTC](https://metastudio.org/t/discussion-on-how-to-clip-meaningful-parts-of-youtube-videos/14072/1 "2022-11-23T03:14:38Z")

</div>

I’m thinking of an idea: to develop a software program that takes a podcast that is 1 hour long and trims it automatically. Then, creates Youtube Shorts, i.e., small duration clips from the long video through machine learning and AI I am guessing; I’m not so good at programming.  
Would love to have a meaningful discussion on this idea and possible steps to come up with a possible software…

---

<div class="post-metadata">

**Author:** ![GN](https://metastudio.org/user_avatar/metastudio.org/gn/32/671_2.png) [@GN](https://metastudio.org/u/GN)\
**Post date:** [December 16, 2022, 4:12am UTC](https://metastudio.org/t/discussion-on-how-to-clip-meaningful-parts-of-youtube-videos/14072/2 "2022-12-16T04:12:33Z")

</div>

I cannot help how to do this project, but I know of one multi-media library application where you can upload video clips or long videos, annotate them, tag them, and then perform a search on the videos. The result of the search is a new video that will collect the clips from multiple videos, long and short. Though this process is not automated, it helps you to figure out the algorithm and the techniques as well as the Python libraries used to build this feature.

The application is called pandora, written in Python.

[http://pan.do/ra](http://pan.do/ra)

An implementation of this software can be seen in two massive video libraries:

[https://pad.ma](https://pad.ma)

and

[https://indiancine.ma/](https://indiancine.ma/)

---

<div class="post-metadata">

**Author:** ![jtd](https://metastudio.org/user_avatar/metastudio.org/jtd/32/244_2.png) [@jtd](https://metastudio.org/u/jtd)\
**Post date:** [December 18, 2022, 7:25am UTC](https://metastudio.org/t/discussion-on-how-to-clip-meaningful-parts-of-youtube-videos/14072/3 "2022-12-18T07:25:46Z")

</div>

Not sure what is the goal, but ffmpeg allows one to clip any video, separate a/v, change the codec etc.  
ffmpeg -ss -t -i -acodec \<audio codec to use, "copy " keyword will use same codec as source\> -vcodec \<video codec to use, "copy " keyword will use same codec as source\>

Here is a typical command I use very regularly  
ffmpeg -ss 452 ffmpeg -ss 452 -t 146 -i some-youtube-video.mp4 -acodec copy -vcodec copy /tmp/NoJunkYoutubeVideo.mp4

vlc too has innumerable cli parameters to do the above, as well as ability to extract a clip using the VLC GUI .

ffmpeg cheat sheet.

> <https://gist.github.com/steven2358/ba153c642fe2bb1e47485962df07c730>
