Skip to content

Instantly share code, notes, and snippets.

View leocxy's full-sized avatar

Leo Chen leocxy

  • Pocket Square
  • Auckland
  • 20:37 (UTC +12:00)
View GitHub Profile
@leocxy
leocxy / gist:ca44873b478374574d77dd89a9ca83e8
Created October 1, 2022 08:17
Download the MPEG2-TS files and combine all of them to MP4 file
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
# @Project : programming
# @File : mpeg2_download_and_combine.py
# @Author : Leo Chen <leo.dev@qq.com>
# @Date : 2022/9/29 20:19
"""
import os
from concurrent.futures import ThreadPoolExecutor