llm-jhy


Namellm-jhy JSON
Version 0.0.1 PyPI version JSON
download
home_pagehttps://github.com/chunleili/cut_video
SummaryEasily cut the video by moviepy
upload_time2024-07-30 06:13:41
maintainerNone
docs_urlNone
authorjhy
requires_pythonNone
licenseMIT
keywords python moviepy cut video
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## 介绍
使用python来剪辑视频!

借助moviepy这个库

github repo: 

[https://github.com/chunleili/cut_video](https://github.com/chunleili/cut_video)

## 安装
你可以使用
```
pip install cut_video
```
来下载。(推荐,因为还会在你系统内安装同名的命令行工具)


或者直接clone这个repo

## 用法
在当前文件夹下

1. 你需要提供mp4视频: full.mp4

2. 你需要在to_erase.json中输入需要剪辑去掉的部分

例如
```json
[   ["0:22", "1:14"],
    ["1:25", "1:30"],
    ["2:13", "2:25"]
]
```

代表我想要去掉0:22-1:14, 1:25-1:30 和2:13-2:25 这三个时间片段, 保留剩下的。

结果在 final.mp4当中

假如你使用pip的方式安装,只需要运行
```
cut_video
```
即可

## 其他运行方式
你还可以运行python脚本的方式来运行

```
python cut_video.py
```

或者如果你安装了jupyter,也可以运行ipython脚本

```
cut_video.ipynb
```

## 视频教程

请见视频教程

https://www.bilibili.com/video/BV1xG4y137WJ/

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/chunleili/cut_video",
    "name": "llm-jhy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "python, moviepy, cut video",
    "author": "jhy",
    "author_email": "2538134102@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/10/c6/00d56fc5d5e11a0fbb16f6a20837bd58789c76ddc0d2e23ba40e941b104d/llm_jhy-0.0.1.tar.gz",
    "platform": null,
    "description": "## \u4ecb\u7ecd\r\n\u4f7f\u7528python\u6765\u526a\u8f91\u89c6\u9891\uff01\r\n\r\n\u501f\u52a9moviepy\u8fd9\u4e2a\u5e93\r\n\r\ngithub repo: \r\n\r\n[https://github.com/chunleili/cut_video](https://github.com/chunleili/cut_video)\r\n\r\n## \u5b89\u88c5\r\n\u4f60\u53ef\u4ee5\u4f7f\u7528\r\n```\r\npip install cut_video\r\n```\r\n\u6765\u4e0b\u8f7d\u3002\uff08\u63a8\u8350\uff0c\u56e0\u4e3a\u8fd8\u4f1a\u5728\u4f60\u7cfb\u7edf\u5185\u5b89\u88c5\u540c\u540d\u7684\u547d\u4ee4\u884c\u5de5\u5177\uff09\r\n\r\n\r\n\u6216\u8005\u76f4\u63a5clone\u8fd9\u4e2arepo\r\n\r\n## \u7528\u6cd5\r\n\u5728\u5f53\u524d\u6587\u4ef6\u5939\u4e0b\r\n\r\n1. \u4f60\u9700\u8981\u63d0\u4f9bmp4\u89c6\u9891: full.mp4\r\n\r\n2. \u4f60\u9700\u8981\u5728to_erase.json\u4e2d\u8f93\u5165\u9700\u8981\u526a\u8f91\u53bb\u6389\u7684\u90e8\u5206\r\n\r\n\u4f8b\u5982\r\n```json\r\n[   [\"0:22\", \"1:14\"],\r\n    [\"1:25\", \"1:30\"],\r\n    [\"2:13\", \"2:25\"]\r\n]\r\n```\r\n\r\n\u4ee3\u8868\u6211\u60f3\u8981\u53bb\u63890:22-1:14, 1:25-1:30 \u548c2:13-2:25 \u8fd9\u4e09\u4e2a\u65f6\u95f4\u7247\u6bb5, \u4fdd\u7559\u5269\u4e0b\u7684\u3002\r\n\r\n\u7ed3\u679c\u5728 final.mp4\u5f53\u4e2d\r\n\r\n\u5047\u5982\u4f60\u4f7f\u7528pip\u7684\u65b9\u5f0f\u5b89\u88c5\uff0c\u53ea\u9700\u8981\u8fd0\u884c\r\n```\r\ncut_video\r\n```\r\n\u5373\u53ef\r\n\r\n## \u5176\u4ed6\u8fd0\u884c\u65b9\u5f0f\r\n\u4f60\u8fd8\u53ef\u4ee5\u8fd0\u884cpython\u811a\u672c\u7684\u65b9\u5f0f\u6765\u8fd0\u884c\r\n\r\n```\r\npython cut_video.py\r\n```\r\n\r\n\u6216\u8005\u5982\u679c\u4f60\u5b89\u88c5\u4e86jupyter\uff0c\u4e5f\u53ef\u4ee5\u8fd0\u884cipython\u811a\u672c\r\n\r\n```\r\ncut_video.ipynb\r\n```\r\n\r\n## \u89c6\u9891\u6559\u7a0b\r\n\r\n\u8bf7\u89c1\u89c6\u9891\u6559\u7a0b\r\n\r\nhttps://www.bilibili.com/video/BV1xG4y137WJ/\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Easily cut the video by moviepy",
    "version": "0.0.1",
    "project_urls": {
        "Homepage": "https://github.com/chunleili/cut_video"
    },
    "split_keywords": [
        "python",
        " moviepy",
        " cut video"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b2c6b8b1c95ede1c4ba362f48b49e3ed999dbe749028554eeb6472e603f25cd1",
                "md5": "58fa7e45965a8a5c36bd2fb11b08a132",
                "sha256": "cdf477333c5354e90edcc9f713676a525e386cc31af7c6973c3a11b487f287bd"
            },
            "downloads": -1,
            "filename": "llm_jhy-0.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "58fa7e45965a8a5c36bd2fb11b08a132",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6069,
            "upload_time": "2024-07-30T06:13:40",
            "upload_time_iso_8601": "2024-07-30T06:13:40.282084Z",
            "url": "https://files.pythonhosted.org/packages/b2/c6/b8b1c95ede1c4ba362f48b49e3ed999dbe749028554eeb6472e603f25cd1/llm_jhy-0.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "10c600d56fc5d5e11a0fbb16f6a20837bd58789c76ddc0d2e23ba40e941b104d",
                "md5": "c40e3237753937e3ffd519e439fa4f3c",
                "sha256": "a0aa00e0da210df56fd8f61d34e252f76013bb0d0e3aa18c9f8de4d84d121aed"
            },
            "downloads": -1,
            "filename": "llm_jhy-0.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c40e3237753937e3ffd519e439fa4f3c",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4373,
            "upload_time": "2024-07-30T06:13:41",
            "upload_time_iso_8601": "2024-07-30T06:13:41.920257Z",
            "url": "https://files.pythonhosted.org/packages/10/c6/00d56fc5d5e11a0fbb16f6a20837bd58789c76ddc0d2e23ba40e941b104d/llm_jhy-0.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-07-30 06:13:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "chunleili",
    "github_project": "cut_video",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "llm-jhy"
}
        
jhy
Elapsed time: 8.06585s