20230720在ubuntu22.04系统下载+解密+合并ts切片的步骤(STEP-BY-STEP版本)

news2024/11/27 9:49:00

20230720在ubuntu22.04系统下载+解密+合并ts切片的步骤(STEP-BY-STEP版本)
2023/7/20 23:06


https://app1ce7glfm1187.h5.xiaoeknow.com/v2/course/alive/l_64af6130e4b03e4b54da1681?type=2&app_id=app1cE7gLFM1187&pro_id=term_645c69388953e_Nhew9A&available=true&share_user_id=u_5e59118832c25_IrOax1kylJ&share_type=5&scene=%E5%88%86%E4%BA%AB&share_scene=1&entry=2&entry_type=2002

2023-07-15 1530逆势增长:新一代企业经营者的能力构建-高手知路.ts


1、通过猫抓获取ts切片的真实路径:

 

https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750.m3u8?sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh&time=1689864706616&uuid=u_6165733764809_rUxpVMZk1O
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=0&end=108479&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=108480&end=216399&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh

https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=216400&end=320559&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=320560&end=424911&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=424912&end=529631&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=529632&end=633791&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=633792&end=742655&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=742656&end=848703&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=848704&end=956431&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=956432&end=1062847&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=1062848&end=1169455&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=1169456&end=1273055&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=1273056&end=1382287&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=1382288&end=1487199&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=1487200&end=1593423&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=1593424&end=1696831&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=1696832&end=1802495&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh


2、使用python脚本将下载的ts切片顺序命名,方便将来的/下一步合并:
(暂时最高支持6000个ts切片,如果有需要/更多可以更改循坏的终点值)
001.ts-999.ts
1000.ts-6000.ts

Z:\zip\20230715\delete-jin6.py
#with open("5060_XhZCF6k4srMrcrGX_24481610.m3u8") as f:
#with open("5060_tZ8MCtBms2EFQi76_85905257.m3u8") as f:
#with open("5060_BHDBEMAMThXAMkzC_83736491.m3u8") as f:
#with open("5060_6f4aaa46b800eb11g_65368069.m3u8") as f:
#with open("playlist_eof.m3u8") as f:
#with open("playlist.f3.m3u8") as f:
with open("v.f146750.m3u8") as f:
#with open("v.f421220.m3u8") as f:
#with open("v.f146750.m3u8") as f:
    lines = f.readlines()

for line in lines:
    #if line[0] == 'h':
    #if line[0] == 'p':
    if line[0] == 'v':

    #if line[0] == '1':
    #if line[0] == '2':
    #if line[0] == '3':
    #if line[0] == '4':
    #if line[0] == '5':
    #if line[0] == '6':
    #if line[0] == '7':
    #if line[0] == '8':
    #if line[0] == '9':
        #print(line.rstrip())
        print("https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/"+line.rstrip())
        #print(line.rstrip())

rootroot@rootroot-X99-Turbo:~/zip/20230715$ 
rootroot@rootroot-X99-Turbo:~/zip/20230715$ python
python            python2           python2.7         python2.7-config  python2-config    python3           python3.6         python3.6m        python3m          python-config     
rootroot@rootroot-X99-Turbo:~/zip/20230715$ python3 delete-jin6.py > 1574.txt
rootroot@rootroot-X99-Turbo:~/zip/20230715$ 


原理:
(一)将原始的m3u8处理为真实的下载链接:【】
原始:m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:2
#EXT-X-MEDIA-SEQUENCE:0
#EXT-X-KEY:METHOD=AES-128,URI="https://app.xiaoe-tech.com/get_video_key.php?edk=CiC4VtGs01Wqn9bzplV30xTHXBpeJ584cjeCi2paoN1uuxCO08TAChiaoOvUBCokYjRhNjFiNTgtMmVhNy00OWYxLTgwZGMtZTE0NTIyODc5YWIy&fileId=3270835010715022023&keySource=VodBuildInKMS",IV=0x00000000000000000000000000000000
#EXTINF:2.000000,
v.f146750_0.ts?start=0&end=108479&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
#EXTINF:2.000000,
v.f146750_0.ts?start=108480&end=216399&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
#EXTINF:2.000000,


(二)从猫抓中拷贝的部分真实路径:
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750.m3u8?sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh&time=1689864706616&uuid=u_6165733764809_rUxpVMZk1O
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=0&end=108479&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=108480&end=216399&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh


(三)将m3u8中以v开头的行真实链接和从猫抓中拷贝的部分真实路径【头】合并!:1574.txt
将字符串合并得到:最终的真实的下载链接:
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=0&end=108479&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh
https://btt-vod.xiaoeknow.com/9764a7a5vodtransgzp1252524126/d362ace83270835010715022023/drm/v.f146750_0.ts?start=108480&end=216399&type=mpegts&sign=5766b75a00b62cece0007a8dcf49d6cd&t=64b9f2c3&us=ZviMNiFKSh


3、下载加密的ts视频切片:
Z:\zip\ts1574.py
import requests
from multiprocessing import Pool

def mission(url,n):
    headers = {"User-Agent":"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36"}
    print('*****')
    response=requests.get(url,headers=headers)
    print('-----')
    #f=open("./1/%03d.ts"%n,"wb")
    f=open("./1574/%03d.ts"%n,"wb")
    f.write(response.content)      
    f.close()
    print("%03d.ts OK..."%n)


if __name__ == "__main__":
    #f = open("f:\\p1\\1574.txt")
    #f = open("g:\\1575\\1574.txt")
    #f = open("1574.txt")
    f = open("1574.txt")
    
    pool=Pool(20)  
    #for n in range(1,1574):
    #for n in range(1,2000):
    #for n in range(1,4000):
    for n in range(1,6000):
        line = f.readline()
        #pool.apply_async(mission,(line,n))
        pool.apply_async(mission,(line.rstrip(),n))
    pool.close()
    pool.join()
    
    print('\n 2022/9/13 23:01-finish')
    print(n)

rootroot@rootroot-X99-Turbo:~/zip$ ll
total 956
drwxrwxr-x  4 rootroot rootroot   4096 7月  20 23:22 ./
drwxr-xr-x 42 rootroot rootroot   4096 7月  20 22:50 ../
drwxrwxr-x  2 rootroot rootroot   4096 7月  20 23:19 1574/
-rwxrw-r--  1 rootroot rootroot 946492 7月  20 23:18 1574.txt*
drwxrwxr-x  2 rootroot rootroot   4096 7月  20 23:20 20230715/
-rwx------  1 rootroot rootroot   1189 7月  20 22:58 get_video_key.mhtml*
-rwx------  1 rootroot rootroot     16 7月  20 23:00 get_video_key.php*
-rwx------  1 rootroot rootroot    985 7月  20 23:21 ts1574.py*
rootroot@rootroot-X99-Turbo:~/zip$ 
rootroot@rootroot-X99-Turbo:~/zip$ 
rootroot@rootroot-X99-Turbo:~/zip$ python3 ts1574.py 


下载完成:
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
*****
-----
4467.ts OK...
-----
4466.ts OK...
-----
-----
4468.ts OK...
4471.ts OK...
-----
4469.ts OK...
-----
4473.ts OK...
-----
4472.ts OK...
-----
-----
4449.ts OK...
4474.ts OK...
-----
4407.ts OK...
-----
4465.ts OK...

 2022/9/13 23:01-finish
5999
rootroot@rootroot-X99-Turbo:~/zip$ 


4、生成通过openssl以AES-128加密模式解密ts切片的脚本并解密ts切片:
rootroot@rootroot-X99-Turbo:~/zip$ 
rootroot@rootroot-X99-Turbo:~/zip$ 
rootroot@rootroot-X99-Turbo:~/zip$ tar zcvf 1574a.tar.gz 1574
rootroot@rootroot-X99-Turbo:~/zip$ 
rootroot@rootroot-X99-Turbo:~/zip$ zip -r 1574b.zip 1574


Z:\zip\write.py
# openssl aes-128-cbc -d -in 001.ts -out 001xx.ts  -nosalt -iv 00000000000000000000000000000000 -K 34961199b37742b8b9174b6102af4a9c
for n in range(1,6000):
    #print("https://btt-vod.xiaoeknow.com/522ff1e0vodcq1252524126/da99c7ef3270835010800009264/"+line.rstrip())
    #print("openssl aes-128-cbc -d -in 000.ts -out 000xx.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e"+line.rstrip())
    #print("openssl aes-128-cbc -d -in 000.ts -out 000xx.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e")
    #f=open("./1574/%03d.ts"%n,"wb")
    #print("openssl aes-128-cbc -d -in %03d.ts -out 000xx.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e"%n)
    #print("openssl aes-128-cbc -d -in %03d.ts -out xx/%03d.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e"%n, %n)
    #print("openssl aes-128-cbc -d -in %03d.ts -out xx/%03d.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e"%n%n)
    #print("openssl aes-128-cbc -d -in %03d.ts -out xx/%03d.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e"%n%n)
    #print("{} + {} = {}".format(1,2,3))
    #print("openssl aes-128-cbc -d -in {%03d}.ts -out xx/{%03d}.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e".format(n, n))
    #print("openssl aes-128-cbc -d -in {}.ts -out xx/{}.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e".format(n, n))
    #'{value:0>6d}'.format(value=6666)
    print("openssl aes-128-cbc -d -in {:0>3d}.ts -out xx/{:0>3d}.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e".format(n, n))
    
Z:\zip\1574\write.py

openssl aes-128-cbc -d -in 5993.ts -out xx/5993.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e
openssl aes-128-cbc -d -in 5994.ts -out xx/5994.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e
openssl aes-128-cbc -d -in 5995.ts -out xx/5995.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e
openssl aes-128-cbc -d -in 5996.ts -out xx/5996.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e
openssl aes-128-cbc -d -in 5997.ts -out xx/5997.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e
openssl aes-128-cbc -d -in 5998.ts -out xx/5998.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e
openssl aes-128-cbc -d -in 5999.ts -out xx/5999.ts  -nosalt -iv 00000000000000000000000000000000 -K 0b53fbec72cb3a6d4d9c8efbc23a025e
rootroot@rootroot-X99-Turbo:~/zip/1574$ 
rootroot@rootroot-X99-Turbo:~/zip/1574$ 
rootroot@rootroot-X99-Turbo:~/zip/1574$ python3 write.py  > d.sh
rootroot@rootroot-X99-Turbo:~/zip/1574$ 
rootroot@rootroot-X99-Turbo:~/zip/1574$ ll *.sh
-rw-rw-r-- 1 rootroot rootroot 795869 7月  20 23:35 d.sh
rootroot@rootroot-X99-Turbo:~/zip/1574$ 
rootroot@rootroot-X99-Turbo:~/zip/1574$ 
rootroot@rootroot-X99-Turbo:~/zip/1574$ mkdir xx
rootroot@rootroot-X99-Turbo:~/zip/1574$ 
rootroot@rootroot-X99-Turbo:~/zip/1574$ chmod 777 d.sh 
rootroot@rootroot-X99-Turbo:~/zip/1574$ 
rootroot@rootroot-X99-Turbo:~/zip/1574$ ./d.sh 


Can't open 5991.ts for reading, No such file or directory
140665070301632:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:72:fopen('5991.ts','rb')
140665070301632:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:79:
Can't open 5992.ts for reading, No such file or directory
140342320579008:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:72:fopen('5992.ts','rb')
140342320579008:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:79:
Can't open 5993.ts for reading, No such file or directory
139706634469824:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:72:fopen('5993.ts','rb')
139706634469824:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:79:
Can't open 5994.ts for reading, No such file or directory
139682247717312:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:72:fopen('5994.ts','rb')
139682247717312:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:79:
Can't open 5995.ts for reading, No such file or directory
139717017141696:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:72:fopen('5995.ts','rb')
139717017141696:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:79:
Can't open 5996.ts for reading, No such file or directory
140535645848000:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:72:fopen('5996.ts','rb')
140535645848000:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:79:
Can't open 5997.ts for reading, No such file or directory
140257752392128:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:72:fopen('5997.ts','rb')
140257752392128:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:79:
Can't open 5998.ts for reading, No such file or directory
140266685661632:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:72:fopen('5998.ts','rb')
140266685661632:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:79:
Can't open 5999.ts for reading, No such file or directory
139956075958720:error:02001002:system library:fopen:No such file or directory:../crypto/bio/bss_file.c:72:fopen('5999.ts','rb')
139956075958720:error:2006D080:BIO routines:BIO_new_file:no such file:../crypto/bio/bss_file.c:79:
rootroot@rootroot-X99-Turbo:~/zip/1574$ 

5、合并切片:
Z:\zip\12jia.py

temp = ""
url = "ffmpeg -i \"concat:"

#for n in range(1,10):
for n in range(1,999):
    #temp = "./1574/xx/%03d.ts"%n
    temp = "%03d.ts|"%n
    url = url + temp
    #print(temp)
    #print(url)

temp = "%03d.ts"%(n+1)
url = url + temp

    
temp = "\" -c copy output1.ts"
url = url + temp

f=open("./1574/xx/1.sh","w")
f.write(url)
f.close()


temp = ""
url = "ffmpeg -i \"concat:"

#for n in range(1,10):
for n in range(1000,2000):
    #temp = "./1574/xx/%03d.ts"%n
    temp = "%03d.ts|"%n
    url = url + temp
    #print(temp)
    #print(url)

temp = "%04d.ts"%(n+1)
url = url + temp

    
temp = "\" -c copy output2.ts"
url = url + temp

f=open("./1574/xx/2.sh","w")
f.write(url)
f.close()


temp = ""
url = "ffmpeg -i \"concat:"

#for n in range(1,10):
for n in range(2001,3000):
    #temp = "./1574/xx/%03d.ts"%n
    temp = "%03d.ts|"%n
    url = url + temp
    #print(temp)
    #print(url)

temp = "%04d.ts"%(n+1)
url = url + temp

    
temp = "\" -c copy output3.ts"
url = url + temp

f=open("./1574/xx/3.sh","w")
f.write(url)
f.close()


temp = ""
url = "ffmpeg -i \"concat:"

#for n in range(1,10):
#for n in range(3001,3389):
for n in range(3001,4000):
    #temp = "./1574/xx/%03d.ts"%n
    temp = "%03d.ts|"%n
    url = url + temp
    #print(temp)
    #print(url)

temp = "%04d.ts"%(n+1)
url = url + temp

    
temp = "\" -c copy output4.ts"
url = url + temp

f=open("./1574/xx/4.sh","w")
f.write(url)
f.close()


temp = ""
url = "ffmpeg -i \"concat:"

#for n in range(1,10):
for n in range(4001,5000):
    #temp = "./1574/xx/%03d.ts"%n
    temp = "%03d.ts|"%n
    url = url + temp
    #print(temp)
    #print(url)

temp = "%04d.ts"%(n+1)
url = url + temp

    
temp = "\" -c copy output5.ts"
url = url + temp

f=open("./1574/xx/5.sh","w")
f.write(url)
f.close()

temp = ""
url = "ffmpeg -i \"concat:"

#for n in range(1,10):
for n in range(5001,6000):
    #temp = "./1574/xx/%03d.ts"%n
    temp = "%03d.ts|"%n
    url = url + temp
    #print(temp)
    #print(url)

temp = "%04d.ts"%(n+1)
url = url + temp

    
temp = "\" -c copy output6.ts"
url = url + temp

f=open("./1574/xx/6.sh","w")
f.write(url)
f.close()


temp = ""
url = "ffmpeg -i \"concat:"

#for n in range(1,10):
for n in range(6001,7000):
    #temp = "./1574/xx/%04d.ts"%n
    temp = "%03d.ts|"%n
    url = url + temp
    #print(temp)
    #print(url)

temp = "%04d.ts"%(n+1)
url = url + temp

    
temp = "\" -c copy output7.ts"
url = url + temp

f=open("./1574/xx/7.sh","w")
f.write(url)
f.close()


temp = ""
url = "ffmpeg -i \"concat:"

#for n in range(1,10):
for n in range(7001,8000):
    #temp = "./1574/xx/%04d.ts"%n
    temp = "%03d.ts|"%n
    url = url + temp
    #print(temp)
    #print(url)

temp = "%04d.ts"%(n+1)
url = url + temp

    
temp = "\" -c copy output8.ts"
url = url + temp

f=open("./1574/xx/8.sh","w")
f.write(url)
f.close()

temp = ""
url = "ffmpeg -i \"concat:"

#for n in range(1,10):
for n in range(8001,9000):
    #temp = "./1574/xx/%04d.ts"%n
    temp = "%03d.ts|"%n
    url = url + temp
    #print(temp)
    #print(url)

temp = "%04d.ts"%(n+1)
url = url + temp

    
temp = "\" -c copy output9.ts"
url = url + temp

f=open("./1574/xx/9.sh","w")
f.write(url)
f.close()


temp = ""
url = "ffmpeg -i \"concat:"

#for n in range(1,10):
for n in range(9001,10000):
    #temp = "./1574/xx/%03d.ts"%n
    temp = "%04d.ts|"%n
    url = url + temp
    #print(temp)
    #print(url)

temp = "%04d.ts"%(n+1)
url = url + temp

    
temp = "\" -c copy output10.ts"
url = url + temp

f=open("./1574/xx/10.sh","w")
f.write(url)
f.close()


temp = ""
url = "ffmpeg -i \"concat:"

#for n in range(1,10):
for n in range(10001,11000):
    #temp = "./1574/xx/%03d.ts"%n
    temp = "%03d.ts|"%n
    url = url + temp
    #print(temp)
    #print(url)

temp = "%04d.ts"%(n+1)
url = url + temp

    
temp = "\" -c copy output11.ts"
url = url + temp

f=open("./1574/xx/11.sh","w")
f.write(url)
f.close()

temp = ""
url = "ffmpeg -i \"concat:"

#for n in range(1,10):
for n in range(11001,12000):
    #temp = "./1574/xx/%05d.ts"%n
    temp = "%03d.ts|"%n
    url = url + temp
    #print(temp)
    #print(url)

temp = "%05d.ts"%(n+1)
url = url + temp

    
temp = "\" -c copy output12.ts"
url = url + temp

f=open("./1574/xx/12.sh","w")
f.write(url)
f.close()

rootroot@rootroot-X99-Turbo:~/zip$ 
rootroot@rootroot-X99-Turbo:~/zip$ ll
total 969404
drwxrwxr-x  4 rootroot rootroot      4096 7月  20 23:39 ./
drwxr-xr-x 42 rootroot rootroot      4096 7月  20 23:23 ../
-rwx------  1 rootroot rootroot      4356 7月  20 23:41 12jia.py*
drwxrwxr-x  3 rootroot rootroot    118784 7月  20 23:36 1574/
-rwxrw-r--  1 rootroot rootroot 495755501 7月  20 23:29 1574a.tar.gz*
-rwxrw-r--  1 rootroot rootroot 495797425 7月  20 23:31 1574b.zip*
-rwxrw-r--  1 rootroot rootroot    946492 7月  20 23:18 1574.txt*
drwxrwxr-x  2 rootroot rootroot      4096 7月  20 23:20 20230715/
-rwx------  1 rootroot rootroot      1189 7月  20 22:58 get_video_key.mhtml*
-rwx------  1 rootroot rootroot        16 7月  20 23:00 get_video_key.php*
-rwx------  1 rootroot rootroot       985 7月  20 23:21 ts1574.py*
-rwx------  1 rootroot rootroot      1750 7月  19 20:34 write.py*
rootroot@rootroot-X99-Turbo:~/zip$ 
rootroot@rootroot-X99-Turbo:~/zip$ 
rootroot@rootroot-X99-Turbo:~/zip$ python3 12jia.py 
rootroot@rootroot-X99-Turbo:~/zip$ 

rootroot@rootroot-X99-Turbo:~/zip/1574/xx$ 
rootroot@rootroot-X99-Turbo:~/zip/1574/xx$ ./5.sh 
ffmpeg version 3.4.11-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
[NULL @ 0x55c8b621a8c0] Opening 'concat:4001.ts|4002.ts|4003.ts|4004.ts|4005.ts|4006.ts|4007.ts|4008.ts|4009.ts|4010.ts|4011.ts|4012.ts|4013.ts|4014.ts|4015.ts|4016.ts|4017.ts|4018.ts|4019.ts|4020.ts|4021.ts|4022.ts|4023.ts|4024.ts|4025.ts|4026.ts|4027.ts|4028.ts|4029.ts|4030.ts|4031.ts|4032.ts|4033.ts|4034.ts|4035.ts|4036.ts|4037.ts|4038.ts|4039.ts|4040.ts|4041.ts|4042.ts|4043.ts|4044.ts|4045.ts|4046.ts|4047.ts|4048.ts|4049.ts|4050.ts|4051.ts|4052.ts|4053.ts|4054.ts|4055.ts|4056.ts|4057.ts|4058.ts|4059.ts|4060.ts|4061.ts|4062.ts|4063.ts|4064.ts|4065.ts|4066.ts|4067.ts|4068.ts|4069.ts|4070.ts|4071.ts|4072.ts|4073.ts|4074.ts|4075.ts|4076.ts|4077.ts|4078.ts|4079.ts|4080.ts|4081.ts|4082.ts|4083.ts|4084.ts|4085.ts|4086.ts|4087.ts|4088.ts|4089.ts|4090.ts|4091.ts|4092.ts|4093.ts|4094.ts|4095.ts|4096.ts|4097.ts|4098.ts|4099.ts|4100.ts|4101.ts|4102.ts|4103.ts|4104.ts|4105.ts|4106.ts|4107.ts|4108.ts|4109.ts|4110.ts|4111.ts|4112.ts|4113.ts|4114.ts|4115.ts|4116.ts|4117.ts|4118.ts|4119.ts|4120.ts|4121.ts|4122.ts|4123.ts|4124.ts|4125.ts|4126.ts|4127.ts|4128.ts|4129.ts|4130.ts|4131.ts|4132.ts|4133.ts|4134.ts|4135.ts|4136.ts|4137.ts|4138.ts|4139.ts|4140.ts|4141.ts|4142.ts|4143.ts|4144.ts|4145.ts|4146.ts|4147.ts|4148.ts|4149.ts|4150.ts|4151.ts|4152.ts|4153.ts|4154.ts|4155.ts|4156.ts|4157.ts|4158.ts|4159.ts|4160.ts|4161.ts|4162.ts|4163.ts|4164.ts|4165.ts|4166.ts|4167.ts|4168.ts|4169.ts|4170.ts|4171.ts|4172.ts|4173.ts|4174.ts|4175.ts|4176.ts|4177.ts|4178.ts|4179.ts|4180.ts|4181.ts|4182.ts|4183.ts|4184.ts|4185.ts|4186.ts|4187.ts|4188.ts|4189.ts|4190.ts|4191.ts|4192.ts|4193.ts|4194.ts|4195.ts|4196.ts|4197.ts|4198.ts|4199.ts|4200.ts|4201.ts|4202.ts|4203.ts|4204.ts|4205.ts|4206.ts|4207.ts|4208.ts|4209.ts|4210.ts|4211.ts|4212.ts|4213.ts|4214.ts|4215.ts|4216.ts|4217.ts|4218.ts|4219.ts|4220.ts|4221.ts|4222.ts|4223.ts|4224.ts|4225.ts|4226.ts|4227.ts|4228.ts|4229.ts|4230.ts|4231.ts|4232.ts|4233.ts|4234.ts|4235.ts|4236.ts|4237.ts|4238.ts|4239.ts|4240.ts|4241.ts|4242.ts|4243.ts|4244.ts|4245.ts|4246.ts|4247.ts|4248.ts|4249.ts|4250.ts|4251.ts|4252.ts|4253.ts|4254.ts|4255.ts|4256.ts|4257.ts|4258.ts|4259.ts|4260.ts|4261.ts|4262.ts|4263.ts|4264.ts|4265.ts|4266.ts|4267.ts|4268.ts|4269.ts|4270.ts|4271.ts|4272.ts|4273.ts|4274.ts|4275.ts|4276.ts|4277.ts|4278.ts|4279.ts|4280.ts|4281.ts|4282.ts|4283.ts|4284.ts|4285.ts|4286.ts|4287.ts|4288.ts|4289.ts|4290.ts|4291.ts|4292.ts|4293.ts|4294.ts|4295.ts|4296.ts|4297.ts|4298.ts|4299.ts|4300.ts|4301.ts|4302.ts|4303.ts|4304.ts|4305.ts|4306.ts|4307.ts|4308.ts|4309.ts|4310.ts|4311.ts|4312.ts|4313.ts|4314.ts|4315.ts|4316.ts|4317.ts|4318.ts|4319.ts|4320.ts|4321.ts|4322.ts|4323.ts|4324.ts|4325.ts|4326.ts|4327.ts|4328.ts|4329.ts|4330.ts|4331.ts|4332.ts|4333.ts|4334.ts|4335.ts|4336.ts|4337.ts|4338.ts|4339.ts|4340.ts|4341.ts|4342.ts|4343.ts|4344.ts|4345.ts|4346.ts|4347.ts|4348.ts|4349.ts|4350.ts|4351.ts|4352.ts|4353.ts|4354.ts|4355.ts|4356.ts|4357.ts|4358.ts|4359.ts|4360.ts|4361.ts|4362.ts|4363.ts|4364.ts|4365.ts|4366.ts|4367.ts|4368.ts|4369.ts|4370.ts|4371.ts|4372.ts|4373.ts|4374.ts|4375.ts|4376.ts|4377.ts|4378.ts|4379.ts|4380.ts|4381.ts|4382.ts|4383.ts|4384.ts|4385.ts|4386.ts|4387.ts|4388.ts|4389.ts|4390.ts|4391.ts|4392.ts|4393.ts|4394.ts|4395.ts|4396.ts|4397.ts|4398.ts|4399.ts|4400.ts|4401.ts|4402.ts|4403.ts|4404.ts|4405.ts|4406.ts|4407.ts|4408.ts|4409.ts|4410.ts|4411.ts|4412.ts|4413.ts|4414.ts|4415.ts|4416.ts|4417.ts|4418.ts|4419.ts|4420.ts|4421.ts|4422.ts|4423.ts|4424.ts|4425.ts|4426.ts|4427.ts|4428.ts|4429.ts|4430.ts|4431.ts|4432.ts|4433.ts|4434.ts|4435.ts|4436.ts|4437.ts|4438.ts|4439.ts|4440.ts|4441.ts|4442.ts|4443.ts|4444.ts|4445.ts|4446.ts|4447.ts|4448.ts|4449.ts|4450.ts|4451.ts|4452.ts|4453.ts|4454.ts|4455.ts|4456.ts|4457.ts|4458.ts|4459.ts|4460.ts|4461.ts|4462.ts|4463.ts|4464.ts|4465.ts|4466.ts|4467.ts|4468.ts|4469.ts|4470.ts|4471.ts|4472.ts|4473.ts|4474.ts|4475.ts|4476.ts|4477.ts|4478.ts|4479.ts|4480.ts|4481.ts|4482.ts|4483.ts|4484.ts|4485.ts|4486.ts|4487.ts|4488.ts|4489.ts|4490.ts|4491.ts|4492.ts|4493.ts|4494.ts|4495.ts|4496.ts|4497.ts|4498.ts|4499.ts|4500.ts|4501.ts|4502.ts|4503.ts|4504.ts|4505.ts|4506.ts|4507.ts|4508.ts|4509.ts|4510.ts|4511.ts|4512.ts|4513.ts|4514.ts|4515.ts|4516.ts|4517.ts|4518.ts|4519.ts|4520.ts|4521.ts|4522.ts|4523.ts|4524.ts|4525.ts|4526.ts|4527.ts|4528.ts|4529.ts|4530.ts|4531.ts|4532.ts|4533.ts|4534.ts|4535.ts|4536.ts|4537.ts|4538.ts|4539.ts|4540.ts|4541.ts|4542.ts|4543.ts|4544.ts|4545.ts|4546.ts|4547.ts|4548.ts|4549.ts|4550.ts|4551.ts|4552.ts|4553.ts|4554.ts|4555.ts|4556.ts|4557.ts|4558.ts|4559.ts|4560.ts|4561.ts|4562.ts|4563.ts|4564.ts|4565.ts|4566.ts|4567.ts|4568.ts|4569.ts|4570.ts|4571.ts|4572.ts|4573.ts|4574.ts|4575.ts|4576.ts|4577.ts|4578.ts|4579.ts|4580.ts|4581.ts|4582.ts|4583.ts|4584.ts|4585.ts|4586.ts|4587.ts|4588.ts|4589.ts|4590.ts|4591.ts|4592.ts|4593.ts|4594.ts|4595.ts|4596.ts|4597.ts|4598.ts|4599.ts|4600.ts|4601.ts|4602.ts|4603.ts|4604.ts|4605.ts|4606.ts|4607.ts|4608.ts|4609.ts|4610.ts|4611.ts|4612.ts|4613.ts|4614.ts|4615.ts|4616.ts|4617.ts|4618.ts|4619.ts|4620.ts|4621.ts|4622.ts|4623.ts|4624.ts|4625.ts|4626.ts|4627.ts|4628.ts|4629.ts|4630.ts|4631.ts|4632.ts|4633.ts|4634.ts|4635.ts|4636.ts|4637.ts|4638.ts|4639.ts|4640.ts|4641.ts|4642.ts|4643.ts|4644.ts|4645.ts|4646.ts|4647.ts|4648.ts|4649.ts|4650.ts|4651.ts|4652.ts|4653.ts|4654.ts|4655.ts|4656.ts|4657.ts|4658.ts|4659.ts|4660.ts|4661.ts|4662.ts|4663.ts|4664.ts|4665.ts|4666.ts|4667.ts|4668.ts|4669.ts|4670.ts|4671.ts|4672.ts|4673.ts|4674.ts|4675.ts|4676.ts|4677.ts|4678.ts|4679.ts|4680.ts|4681.ts|4682.ts|4683.ts|4684.ts|4685.ts|4686.ts|4687.ts|4688.ts|4689.ts|4690.ts|4691.ts|4692.ts|4693.ts|4694.ts|4695.ts|4696.ts|4697.ts|4698.ts|4699.ts|4700.ts|4701.ts|4702.ts|4703.ts|4704.ts|4705.ts|4706.ts|4707.ts|4708.ts|4709.ts|4710.ts|4711.ts|4712.ts|4713.ts|4714.ts|4715.ts|4716.ts|4717.ts|4718.ts|4719.ts|4720.ts|4721.ts|4722.ts|4723.ts|4724.ts|4725.ts|4726.ts|4727.ts|4728.ts|4729.ts|4730.ts|4731.ts|4732.ts|4733.ts|4734.ts|4735.ts|4736.ts|4737.ts|4738.ts|4739.ts|4740.ts|4741.ts|4742.ts|4743.ts|4744.ts|4745.ts|4746.ts|4747.ts|4748.ts|4749.ts|4750.ts|4751.ts|4752.ts|4753.ts|4754.ts|4755.ts|4756.ts|4757.ts|4758.ts|4759.ts|4760.ts|4761.ts|4762.ts|4763.ts|4764.ts|4765.ts|4766.ts|4767.ts|4768.ts|4769.ts|4770.ts|4771.ts|4772.ts|4773.ts|4774.ts|4775.ts|4776.ts|4777.ts|4778.ts|4779.ts|4780.ts|4781.ts|4782.ts|4783.ts|4784.ts|4785.ts|4786.ts|4787.ts|4788.ts|4789.ts|4790.ts|4791.ts|4792.ts|4793.ts|4794.ts|4795.ts|4796.ts|4797.ts|4798.ts|4799.ts|4800.ts|4801.ts|4802.ts|4803.ts|4804.ts|4805.ts|4806.ts|4807.ts|4808.ts|4809.ts|4810.ts|4811.ts|4812.ts|4813.ts|4814.ts|4815.ts|4816.ts|4817.ts|4818.ts|4819.ts|4820.ts|4821.ts|4822.ts|4823.ts|4824.ts|4825.ts|4826.ts|4827.ts|4828.ts|4829.ts|4830.ts|4831.ts|4832.ts|4833.ts|4834.ts|4835.ts|4836.ts|4837.ts|4838.ts|4839.ts|4840.ts|4841.ts|4842.ts|4843.ts|4844.ts|4845.ts|4846.ts|4847.ts|4848.ts|4849.ts|4850.ts|4851.ts|4852.ts|4853.ts|4854.ts|4855.ts|4856.ts|4857.ts|4858.ts|4859.ts|4860.ts|4861.ts|4862.ts|4863.ts|4864.ts|4865.ts|4866.ts|4867.ts|4868.ts|4869.ts|4870.ts|4871.ts|4872.ts|4873.ts|4874.ts|4875.ts|4876.ts|4877.ts|4878.ts|4879.ts|4880.ts|4881.ts|4882.ts|4883.ts|4884.ts|4885.ts|4886.ts|4887.ts|4888.ts|4889.ts|4890.ts|4891.ts|4892.ts|4893.ts|4894.ts|4895.ts|4896.ts|4897.ts|4898.ts|4899.ts|4900.ts|4901.ts|4902.ts|4903.ts|4904.ts|4905.ts|4906.ts|4907.ts|4908.ts|4909.ts|4910.ts|4911.ts|4912.ts|4913.ts|4914.ts|4915.ts|4916.ts|4917.ts|4918.ts|4919.ts|4920.ts|4921.ts|4922.ts|4923.ts|4924.ts|4925.ts|4926.ts|4927.ts|4928.ts|4929.ts|4930.ts|4931.ts|4932.ts|4933.ts|4934.ts|4935.ts|4936.ts|4937.ts|4938.ts|4939.ts|4940.ts|4941.ts|4942.ts|4943.ts|4944.ts|4945.ts|4946.ts|4947.ts|4948.ts|4949.ts|4950.ts|4951.ts|4952.ts|4953.ts|4954.ts|4955.ts|4956.ts|4957.ts|4958.ts|4959.ts|4960.ts|4961.ts|4962.ts|4963.ts|4964.ts|4965.ts|4966.ts|4967.ts|4968.ts|4969.ts|4970.ts|4971.ts|4972.ts|4973.ts|4974.ts|4975.ts|4976.ts|4977.ts|4978.ts|4979.ts|4980.ts|4981.ts|4982.ts|4983.ts|4984.ts|4985.ts|4986.ts|4987.ts|4988.ts|4989.ts|4990.ts|4991.ts|4992.ts|4993.ts|4994.ts|4995.ts|4996.ts|4997.ts|4998.ts|4999.ts|5000.ts' for reading
concat:4001.ts|4002.ts|4003.ts|4004.ts|4005.ts|4006.ts|4007.ts|4008.ts|4009.ts|4010.ts|4011.ts|4012.ts|4013.ts|4014.ts|4015.ts|4016.ts|4017.ts|4018.ts|4019.ts|4020.ts|4021.ts|4022.ts|4023.ts|4024.ts|4025.ts|4026.ts|4027.ts|4028.ts|4029.ts|4030.ts|4031.ts|4032.ts|4033.ts|4034.ts|4035.ts|4036.ts|4037.ts|4038.ts|4039.ts|4040.ts|4041.ts|4042.ts|4043.ts|4044.ts|4045.ts|4046.ts|4047.ts|4048.ts|4049.ts|4050.ts|4051.ts|4052.ts|4053.ts|4054.ts|4055.ts|4056.ts|4057.ts|4058.ts|4059.ts|4060.ts|4061.ts|4062.ts|4063.ts|4064.ts|4065.ts|4066.ts|4067.ts|4068.ts|4069.ts|4070.ts|4071.ts|4072.ts|4073.ts|4074.ts|4075.ts|4076.ts|4077.ts|4078.ts|4079.ts|4080.ts|4081.ts|4082.ts|4083.ts|4084.ts|4085.ts|4086.ts|4087.ts|4088.ts|4089.ts|4090.ts|4091.ts|4092.ts|4093.ts|4094.ts|4095.ts|4096.ts|4097.ts|4098.ts|4099.ts|4100.ts|4101.ts|4102.ts|4103.ts|4104.ts|4105.ts|4106.ts|4107.ts|4108.ts|4109.ts|4110.ts|4111.ts|4112.ts|4113.ts|4114.ts|4115.ts|4116.ts|4117.ts|4118.ts|4119.ts|4120.ts|4121.ts|4122.ts|4123.ts|4124.ts|4125.ts|4126.ts|4127.ts|4128.ts|4129.ts|4130.ts|4131.ts|4132.ts|4133.ts|4134.ts|4135.ts|4136.ts|4137.ts|4138.ts|4139.ts|4140.ts|4141.ts|4142.ts|4143.ts|4144.ts|4145.ts|4146.ts|4147.ts|4148.ts|4149.ts|4150.ts|4151.ts|4152.ts|4153.ts|4154.ts|4155.ts|4156.ts|4157.ts|4158.ts|4159.ts|4160.ts|4161.ts|4162.ts|4163.ts|4164.ts|4165.ts|4166.ts|4167.ts|4168.ts|4169.ts|4170.ts|4171.ts|4172.ts|4173.ts|4174.ts|4175.ts|4176.ts|4177.ts|4178.ts|4179.ts|4180.ts|4181.ts|4182.ts|4183.ts|4184.ts|4185.ts|4186.ts|4187.ts|4188.ts|4189.ts|4190.ts|4191.ts|4192.ts|4193.ts|4194.ts|4195.ts|4196.ts|4197.ts|4198.ts|4199.ts|4200.ts|4201.ts|4202.ts|4203.ts|4204.ts|4205.ts|4206.ts|4207.ts|4208.ts|4209.ts|4210.ts|4211.ts|4212.ts|4213.ts|4214.ts|4215.ts|4216.ts|4217.ts|4218.ts|4219.ts|4220.ts|4221.ts|4222.ts|4223.ts|4224.ts|4225.ts|4226.ts|4227.ts|4228.ts|4229.ts|4230.ts|4231.ts|4232.ts|4233.ts|4234.ts|4235.ts|4236.ts|4237.ts|4238.ts|4239.ts|4240.ts|4241.ts|4242.ts|4243.ts|4244.ts|4245.ts|4246.ts|4247.ts|4248.ts|4249.ts|4250.ts|4251.ts|4252.ts|4253.ts|4254.ts|4255.ts|4256.ts|4257.ts|4258.ts|4259.ts|4260.ts|4261.ts|4262.ts|4263.ts|4264.ts|4265.ts|4266.ts|4267.ts|4268.ts|4269.ts|4270.ts|4271.ts|4272.ts|4273.ts|4274.ts|4275.ts|4276.ts|4277.ts|4278.ts|4279.ts|4280.ts|4281.ts|4282.ts|4283.ts|4284.ts|4285.ts|4286.ts|4287.ts|4288.ts|4289.ts|4290.ts|4291.ts|4292.ts|4293.ts|4294.ts|4295.ts|4296.ts|4297.ts|4298.ts|4299.ts|4300.ts|4301.ts|4302.ts|4303.ts|4304.ts|4305.ts|4306.ts|4307.ts|4308.ts|4309.ts|4310.ts|4311.ts|4312.ts|4313.ts|4314.ts|4315.ts|4316.ts|4317.ts|4318.ts|4319.ts|4320.ts|4321.ts|4322.ts|4323.ts|4324.ts|4325.ts|4326.ts|4327.ts|4328.ts|4329.ts|4330.ts|4331.ts|4332.ts|4333.ts|4334.ts|4335.ts|4336.ts|4337.ts|4338.ts|4339.ts|4340.ts|4341.ts|4342.ts|4343.ts|4344.ts|4345.ts|4346.ts|4347.ts|4348.ts|4349.ts|4350.ts|4351.ts|4352.ts|4353.ts|4354.ts|4355.ts|4356.ts|4357.ts|4358.ts|4359.ts|4360.ts|4361.ts|4362.ts|4363.ts|4364.ts|4365.ts|4366.ts|4367.ts|4368.ts|4369.ts|4370.ts|4371.ts|4372.ts|4373.ts|4374.ts|4375.ts|4376.ts|4377.ts|4378.ts|4379.ts|4380.ts|4381.ts|4382.ts|4383.ts|4384.ts|4385.ts|4386.ts|4387.ts|4388.ts|4389.ts|4390.ts|4391.ts|4392.ts|4393.ts|4394.ts|4395.ts|4396.ts|4397.ts|4398.ts|4399.ts|4400.ts|4401.ts|4402.ts|4403.ts|4404.ts|4405.ts|4406.ts|4407.ts|4408.ts|4409.ts|4410.ts|4411.ts|4412.ts|4413.ts|4414.ts|4415.ts|4416.ts|4417.ts|4418.ts|4419.ts|4420.ts|4421.ts|4422.ts|4423.ts|4424.ts|4425.ts|4426.ts|4427.ts|4428.ts|4429.ts|4430.ts|4431.ts|4432.ts|4433.ts|4434.ts|4435.ts|4436.ts|4437.ts|4438.ts|4439.ts|4440.ts|4441.ts|4442.ts|4443.ts|4444.ts|4445.ts|4446.ts|4447.ts|4448.ts|4449.ts|4450.ts|4451.ts|4452.ts|4453.ts|4454.ts|4455.ts|4456.ts|4457.ts|4458.ts|4459.ts|4460.ts|4461.ts|4462.ts|4463.ts|4464.ts|4465.ts|4466.ts|4467.ts|4468.ts|4469.ts|4470.ts|4471.ts|4472.ts|4473.ts|4474.ts|4475.ts|4476.ts|4477.ts|4478.ts|4479.ts|4480.ts|4481.ts|4482.ts|4483.ts|4484.ts|4485.ts|4486.ts|4487.ts|4488.ts|4489.ts|4490.ts|4491.ts|4492.ts|4493.ts|4494.ts|4495.ts|4496.ts|4497.ts|4498.ts|4499.ts|4500.ts|4501.ts|4502.ts|4503.ts|4504.ts|4505.ts|4506.ts|4507.ts|4508.ts|4509.ts|4510.ts|4511.ts|4512.ts|4513.ts|4514.ts|4515.ts|4516.ts|4517.ts|4518.ts|4519.ts|4520.ts|4521.ts|4522.ts|4523.ts|4524.ts|4525.ts|4526.ts|4527.ts|4528.ts|4529.ts|4530.ts|4531.ts|4532.ts|4533.ts|4534.ts|4535.ts|4536.ts|4537.ts|4538.ts|4539.ts|4540.ts|4541.ts|4542.ts|4543.ts|4544.ts|4545.ts|4546.ts|4547.ts|4548.ts|4549.ts|4550.ts|4551.ts|4552.ts|4553.ts|4554.ts|4555.ts|4556.ts|4557.ts|4558.ts|4559.ts|4560.ts|4561.ts|4562.ts|4563.ts|4564.ts|4565.ts|4566.ts|4567.ts|4568.ts|4569.ts|4570.ts|4571.ts|4572.ts|4573.ts|4574.ts|4575.ts|4576.ts|4577.ts|4578.ts|4579.ts|4580.ts|4581.ts|4582.ts|4583.ts|4584.ts|4585.ts|4586.ts|4587.ts|4588.ts|4589.ts|4590.ts|4591.ts|4592.ts|4593.ts|4594.ts|4595.ts|4596.ts|4597.ts|4598.ts|4599.ts|4600.ts|4601.ts|4602.ts|4603.ts|4604.ts|4605.ts|4606.ts|4607.ts|4608.ts|4609.ts|4610.ts|4611.ts|4612.ts|4613.ts|4614.ts|4615.ts|4616.ts|4617.ts|4618.ts|4619.ts|4620.ts|4621.ts|4622.ts|4623.ts|4624.ts|4625.ts|4626.ts|4627.ts|4628.ts|4629.ts|4630.ts|4631.ts|4632.ts|4633.ts|4634.ts|4635.ts|4636.ts|4637.ts|4638.ts|4639.ts|4640.ts|4641.ts|4642.ts|4643.ts|4644.ts|4645.ts|4646.ts|4647.ts|4648.ts|4649.ts|4650.ts|4651.ts|4652.ts|4653.ts|4654.ts|4655.ts|4656.ts|4657.ts|4658.ts|4659.ts|4660.ts|4661.ts|4662.ts|4663.ts|4664.ts|4665.ts|4666.ts|4667.ts|4668.ts|4669.ts|4670.ts|4671.ts|4672.ts|4673.ts|4674.ts|4675.ts|4676.ts|4677.ts|4678.ts|4679.ts|4680.ts|4681.ts|4682.ts|4683.ts|4684.ts|4685.ts|4686.ts|4687.ts|4688.ts|4689.ts|4690.ts|4691.ts|4692.ts|4693.ts|4694.ts|4695.ts|4696.ts|4697.ts|4698.ts|4699.ts|4700.ts|4701.ts|4702.ts|4703.ts|4704.ts|4705.ts|4706.ts|4707.ts|4708.ts|4709.ts|4710.ts|4711.ts|4712.ts|4713.ts|4714.ts|4715.ts|4716.ts|4717.ts|4718.ts|4719.ts|4720.ts|4721.ts|4722.ts|4723.ts|4724.ts|4725.ts|4726.ts|4727.ts|4728.ts|4729.ts|4730.ts|4731.ts|4732.ts|4733.ts|4734.ts|4735.ts|4736.ts|4737.ts|4738.ts|4739.ts|4740.ts|4741.ts|4742.ts|4743.ts|4744.ts|4745.ts|4746.ts|4747.ts|4748.ts|4749.ts|4750.ts|4751.ts|4752.ts|4753.ts|4754.ts|4755.ts|4756.ts|4757.ts|4758.ts|4759.ts|4760.ts|4761.ts|4762.ts|4763.ts|4764.ts|4765.ts|4766.ts|4767.ts|4768.ts|4769.ts|4770.ts|4771.ts|4772.ts|4773.ts|4774.ts|4775.ts|4776.ts|4777.ts|4778.ts|4779.ts|4780.ts|4781.ts|4782.ts|4783.ts|4784.ts|4785.ts|4786.ts|4787.ts|4788.ts|4789.ts|4790.ts|4791.ts|4792.ts|4793.ts|4794.ts|4795.ts|4796.ts|4797.ts|4798.ts|4799.ts|4800.ts|4801.ts|4802.ts|4803.ts|4804.ts|4805.ts|4806.ts|4807.ts|4808.ts|4809.ts|4810.ts|4811.ts|4812.ts|4813.ts|4814.ts|4815.ts|4816.ts|4817.ts|4818.ts|4819.ts|4820.ts|4821.ts|4822.ts|4823.ts|4824.ts|4825.ts|4826.ts|4827.ts|4828.ts|4829.ts|4830.ts|4831.ts|4832.ts|4833.ts|4834.ts|4835.ts|4836.ts|4837.ts|4838.ts|4839.ts|4840.ts|4841.ts|4842.ts|4843.ts|4844.ts|4845.ts|4846.ts|4847.ts|4848.ts|4849.ts|4850.ts|4851.ts|4852.ts|4853.ts|4854.ts|4855.ts|4856.ts|4857.ts|4858.ts|4859.ts|4860.ts|4861.ts|4862.ts|4863.ts|4864.ts|4865.ts|4866.ts|4867.ts|4868.ts|4869.ts|4870.ts|4871.ts|4872.ts|4873.ts|4874.ts|4875.ts|4876.ts|4877.ts|4878.ts|4879.ts|4880.ts|4881.ts|4882.ts|4883.ts|4884.ts|4885.ts|4886.ts|4887.ts|4888.ts|4889.ts|4890.ts|4891.ts|4892.ts|4893.ts|4894.ts|4895.ts|4896.ts|4897.ts|4898.ts|4899.ts|4900.ts|4901.ts|4902.ts|4903.ts|4904.ts|4905.ts|4906.ts|4907.ts|4908.ts|4909.ts|4910.ts|4911.ts|4912.ts|4913.ts|4914.ts|4915.ts|4916.ts|4917.ts|4918.ts|4919.ts|4920.ts|4921.ts|4922.ts|4923.ts|4924.ts|4925.ts|4926.ts|4927.ts|4928.ts|4929.ts|4930.ts|4931.ts|4932.ts|4933.ts|4934.ts|4935.ts|4936.ts|4937.ts|4938.ts|4939.ts|4940.ts|4941.ts|4942.ts|4943.ts|4944.ts|4945.ts|4946.ts|4947.ts|4948.ts|4949.ts|4950.ts|4951.ts|4952.ts|4953.ts|4954.ts|4955.ts|4956.ts|4957.ts|4958.ts|4959.ts|4960.ts|4961.ts|4962.ts|4963.ts|4964.ts|4965.ts|4966.ts|4967.ts|4968.ts|4969.ts|4970.ts|4971.ts|4972.ts|4973.ts|4974.ts|4975.ts|4976.ts|4977.ts|4978.ts|4979.ts|4980.ts|4981.ts|4982.ts|4983.ts|4984.ts|4985.ts|4986.ts|4987.ts|4988.ts|4989.ts|4990.ts|4991.ts|4992.ts|4993.ts|4994.ts|4995.ts|4996.ts|4997.ts|4998.ts|4999.ts|5000.ts: No such file or directory
rootroot@rootroot-X99-Turbo:~/zip/1574/xx$ 
rootroot@rootroot-X99-Turbo:~/zip/1574/xx$ 
rootroot@rootroot-X99-Turbo:~/zip/1574/xx$ ./5.sh 
ffmpeg version 3.4.11-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
[NULL @ 0x5585e0c978c0] Opening 'concat:4001.ts|4002.ts|4003.ts|4004.ts|4005.ts|4006.ts|4007.ts|4008.ts|4009.ts|4010.ts|4011.ts|4012.ts|4013.ts|4014.ts|4015.ts|4016.ts|4017.ts|4018.ts|4019.ts|4020.ts|4021.ts|4022.ts|4023.ts|4024.ts|4025.ts|4026.ts|4027.ts|4028.ts|4029.ts|4030.ts|4031.ts|4032.ts|4033.ts|4034.ts|4035.ts|4036.ts|4037.ts|4038.ts|4039.ts|4040.ts|4041.ts|4042.ts|4043.ts|4044.ts|4045.ts|4046.ts|4047.ts|4048.ts|4049.ts|4050.ts|4051.ts|4052.ts|4053.ts|4054.ts|4055.ts|4056.ts|4057.ts|4058.ts|4059.ts|4060.ts|4061.ts|4062.ts|4063.ts|4064.ts|4065.ts|4066.ts|4067.ts|4068.ts|4069.ts|4070.ts|4071.ts|4072.ts|4073.ts|4074.ts|4075.ts|4076.ts|4077.ts|4078.ts|4079.ts|4080.ts|4081.ts|4082.ts|4083.ts|4084.ts|4085.ts|4086.ts|4087.ts|4088.ts|4089.ts|4090.ts|4091.ts|4092.ts|4093.ts|4094.ts|4095.ts|4096.ts|4097.ts|4098.ts|4099.ts|4100.ts|4101.ts|4102.ts|4103.ts|4104.ts|4105.ts|4106.ts|4107.ts|4108.ts|4109.ts|4110.ts|4111.ts|4112.ts|4113.ts|4114.ts|4115.ts|4116.ts|4117.ts|4118.ts|4119.ts|4120.ts|4121.ts|4122.ts|4123.ts|4124.ts|4125.ts|4126.ts|4127.ts|4128.ts|4129.ts|4130.ts|4131.ts|4132.ts|4133.ts|4134.ts|4135.ts|4136.ts|4137.ts|4138.ts|4139.ts|4140.ts|4141.ts|4142.ts|4143.ts|4144.ts|4145.ts|4146.ts|4147.ts|4148.ts|4149.ts|4150.ts|4151.ts|4152.ts|4153.ts|4154.ts|4155.ts|4156.ts|4157.ts|4158.ts|4159.ts|4160.ts|4161.ts|4162.ts|4163.ts|4164.ts|4165.ts|4166.ts|4167.ts|4168.ts|4169.ts|4170.ts|4171.ts|4172.ts|4173.ts|4174.ts|4175.ts|4176.ts|4177.ts|4178.ts|4179.ts|4180.ts|4181.ts|4182.ts|4183.ts|4184.ts|4185.ts|4186.ts|4187.ts|4188.ts|4189.ts|4190.ts|4191.ts|4192.ts|4193.ts|4194.ts|4195.ts|4196.ts|4197.ts|4198.ts|4199.ts|4200.ts|4201.ts|4202.ts|4203.ts|4204.ts|4205.ts|4206.ts|4207.ts|4208.ts|4209.ts|4210.ts|4211.ts|4212.ts|4213.ts|4214.ts|4215.ts|4216.ts|4217.ts|4218.ts|4219.ts|4220.ts|4221.ts|4222.ts|4223.ts|4224.ts|4225.ts|4226.ts|4227.ts|4228.ts|4229.ts|4230.ts|4231.ts|4232.ts|4233.ts|4234.ts|4235.ts|4236.ts|4237.ts|4238.ts|4239.ts|4240.ts|4241.ts|4242.ts|4243.ts|4244.ts|4245.ts|4246.ts|4247.ts|4248.ts|4249.ts|4250.ts|4251.ts|4252.ts|4253.ts|4254.ts|4255.ts|4256.ts|4257.ts|4258.ts|4259.ts|4260.ts|4261.ts|4262.ts|4263.ts|4264.ts|4265.ts|4266.ts|4267.ts|4268.ts|4269.ts|4270.ts|4271.ts|4272.ts|4273.ts|4274.ts|4275.ts|4276.ts|4277.ts|4278.ts|4279.ts|4280.ts|4281.ts|4282.ts|4283.ts|4284.ts|4285.ts|4286.ts|4287.ts|4288.ts|4289.ts|4290.ts|4291.ts|4292.ts|4293.ts|4294.ts|4295.ts|4296.ts|4297.ts|4298.ts|4299.ts|4300.ts|4301.ts|4302.ts|4303.ts|4304.ts|4305.ts|4306.ts|4307.ts|4308.ts|4309.ts|4310.ts|4311.ts|4312.ts|4313.ts|4314.ts|4315.ts|4316.ts|4317.ts|4318.ts|4319.ts|4320.ts|4321.ts|4322.ts|4323.ts|4324.ts|4325.ts|4326.ts|4327.ts|4328.ts|4329.ts|4330.ts|4331.ts|4332.ts|4333.ts|4334.ts|4335.ts|4336.ts|4337.ts|4338.ts|4339.ts|4340.ts|4341.ts|4342.ts|4343.ts|4344.ts|4345.ts|4346.ts|4347.ts|4348.ts|4349.ts|4350.ts|4351.ts|4352.ts|4353.ts|4354.ts|4355.ts|4356.ts|4357.ts|4358.ts|4359.ts|4360.ts|4361.ts|4362.ts|4363.ts|4364.ts|4365.ts|4366.ts|4367.ts|4368.ts|4369.ts|4370.ts|4371.ts|4372.ts|4373.ts|4374.ts|4375.ts|4376.ts|4377.ts|4378.ts|4379.ts|4380.ts|4381.ts|4382.ts|4383.ts|4384.ts|4385.ts|4386.ts|4387.ts|4388.ts|4389.ts|4390.ts|4391.ts|4392.ts|4393.ts|4394.ts|4395.ts|4396.ts|4397.ts|4398.ts|4399.ts|4400.ts|4401.ts|4402.ts|4403.ts|4404.ts|4405.ts|4406.ts|4407.ts|4408.ts|4409.ts|4410.ts|4411.ts|4412.ts|4413.ts|4414.ts|4415.ts|4416.ts|4417.ts|4418.ts|4419.ts|4420.ts|4421.ts|4422.ts|4423.ts|4424.ts|4425.ts|4426.ts|4427.ts|4428.ts|4429.ts|4430.ts|4431.ts|4432.ts|4433.ts|4434.ts|4435.ts|4436.ts|4437.ts|4438.ts|4439.ts|4440.ts|4441.ts|4442.ts|4443.ts|4444.ts|4445.ts|4446.ts|4447.ts|4448.ts|4449.ts|4450.ts|4451.ts|4452.ts|4453.ts|4454.ts|4455.ts|4456.ts|4457.ts|4458.ts|4459.ts|4460.ts|4461.ts|4462.ts|4463.ts|4464.ts|4465.ts|4466.ts|4467.ts|4468.ts|4469.ts|4470.ts|4471.ts|4472.ts|4473.ts|4474.ts' for reading
Input #0, mpegts, from 'concat:4001.ts|4002.ts|4003.ts|4004.ts|4005.ts|4006.ts|4007.ts|4008.ts|4009.ts|4010.ts|4011.ts|4012.ts|4013.ts|4014.ts|4015.ts|4016.ts|4017.ts|4018.ts|4019.ts|4020.ts|4021.ts|4022.ts|4023.ts|4024.ts|4025.ts|4026.ts|4027.ts|4028.ts|4029.ts|4030.ts|4031.ts|4032.ts|4033.ts|4034.ts|4035.ts|4036.ts|4037.ts|4038.ts|4039.ts|4040.ts|4041.ts|4042.ts|4043.ts|4044.ts|4045.ts|4046.ts|4047.ts|4048.ts|4049.ts|4050.ts|4051.ts|4052.ts|4053.ts|4054.ts|4055.ts|4056.ts|4057.ts|4058.ts|4059.ts|4060.ts|4061.ts|4062.ts|4063.ts|4064.ts|4065.ts|4066.ts|4067.ts|4068.ts|4069.ts|4070.ts|4071.ts|4072.ts|4073.ts|4074.ts|4075.ts|4076.ts|4077.ts|4078.ts|4079.ts|4080.ts|4081.ts|4082.ts|4083.ts|4084.ts|4085.ts|4086.ts|4087.ts|4088.ts|4089.ts|4090.ts|4091.ts|4092.ts|4093.ts|4094.ts|4095.ts|4096.ts|4097.ts|4098.ts|4099.ts|4100.ts|4101.ts|4102.ts|4103.ts|4104.ts|4105.ts|4106.ts|4107.ts|4108.ts|4109.ts|4110.ts|4111.ts|4112.ts|4113.ts|4114.ts|4115.ts|4116.ts|4117.ts|4118.ts|4119.ts|4120.ts|4121.ts|4122.ts|4123.ts|4124.ts|4125.ts|4126.ts|4127.ts|4128.ts|4129.ts|4130.ts|4131.ts|4132.ts|4133.ts|4134.ts|4135.ts|4136.ts|4137.ts|4138.ts|4139.ts|4140.ts|4141.ts|4142.ts|4143.ts|4144.ts|4145.ts|4146.ts|4147.ts|4148.ts|4149.ts|4150.ts|4151.ts|4152.ts|4153.ts|4154.ts|4155.ts|4156.ts|4157.ts|4158.ts|4159.ts|4160.ts|4161.ts|4162.ts|4163.ts|4164.ts|4165.ts|4166.ts|4167.ts|4168.ts|4169.ts|4170.ts|4171.ts|4172.ts|4173.ts|4174.ts|4175.ts|4176.ts|4177.ts|4178.ts|4179.ts|4180.ts|4181.ts|4182.ts|4183.ts|4184.ts|4185.ts|4186.ts|4187.ts|4188.ts|4189.ts|4190.ts|4191.ts|4192.ts|4193.ts|4194.ts|4195.ts|4196.ts|4197.ts|4198.ts|4199.ts|4200.ts|4201.ts|4202.ts|4203.ts|4204.ts|4205.ts|4206.ts|4207.ts|4208.ts|4209.ts|4210.ts|4211.ts|4212.ts|4213.ts|4214.ts|4215.ts|4216.ts|4217.ts|4218.ts|4219.ts|4220.ts|4221.ts|4222.ts|4223.ts|4224.ts|4225.ts|4226.ts|4227.ts|4228.ts|4229.ts|4230.ts|4231.ts|4232.ts|4233.ts|4234.ts|4235.ts|4236.ts|4237.ts|4238.ts|4239.ts|4240.ts|4241.ts|4242.ts|4243.ts|4244.ts|4245.ts|4246.ts|4247.ts|4248.ts|4249.ts|4250.ts|4251.ts|4252.ts|4253.ts|4254.ts|4255.ts|4256.ts|4257.ts|4258.ts|4259.ts|4260.ts|4261.ts|4262.ts|4263.ts|4264.ts|4265.ts|4266.ts|4267.ts|4268.ts|4269.ts|4270.ts|4271.ts|4272.ts|4273.ts|4274.ts|4275.ts|4276.ts|4277.ts|4278.ts|4279.ts|4280.ts|4281.ts|4282.ts|4283.ts|4284.ts|4285.ts|4286.ts|4287.ts|4288.ts|4289.ts|4290.ts|4291.ts|4292.ts|4293.ts|4294.ts|4295.ts|4296.ts|4297.ts|4298.ts|4299.ts|4300.ts|4301.ts|4302.ts|4303.ts|4304.ts|4305.ts|4306.ts|4307.ts|4308.ts|4309.ts|4310.ts|4311.ts|4312.ts|4313.ts|4314.ts|4315.ts|4316.ts|4317.ts|4318.ts|4319.ts|4320.ts|4321.ts|4322.ts|4323.ts|4324.ts|4325.ts|4326.ts|4327.ts|4328.ts|4329.ts|4330.ts|4331.ts|4332.ts|4333.ts|4334.ts|4335.ts|4336.ts|4337.ts|4338.ts|4339.ts|4340.ts|4341.ts|4342.ts|4343.ts|4344.ts|4345.ts|4346.ts|4347.ts|4348.ts|4349.ts|4350.ts|4351.ts|4352.ts|4353.ts|4354.ts|4355.ts|4356.ts|4357.ts|4358.ts|4359.ts|4360.ts|4361.ts|4362.ts|4363.ts|4364.ts|4365.ts|4366.ts|4367.ts|4368.ts|4369.ts|4370.ts|4371.ts|4372.ts|4373.ts|4374.ts|4375.ts|4376.ts|4377.ts|4378.ts|4379.ts|4380.ts|4381.ts|4382.ts|4383.ts|4384.ts|4385.ts|4386.ts|4387.ts|4388.ts|4389.ts|4390.ts|4391.ts|4392.ts|4393.ts|4394.ts|4395.ts|4396.ts|4397.ts|4398.ts|4399.ts|4400.ts|4401.ts|4402.ts|4403.ts|4404.ts|4405.ts|4406.ts|4407.ts|4408.ts|4409.ts|4410.ts|4411.ts|4412.ts|4413.ts|4414.ts|4415.ts|4416.ts|4417.ts|4418.ts|4419.ts|4420.ts|4421.ts|4422.ts|4423.ts|4424.ts|4425.ts|4426.ts|4427.ts|4428.ts|4429.ts|4430.ts|4431.ts|4432.ts|4433.ts|4434.ts|4435.ts|4436.ts|4437.ts|4438.ts|4439.ts|4440.ts|4441.ts|4442.ts|4443.ts|4444.ts|4445.ts|4446.ts|4447.ts|4448.ts|4449.ts|4450.ts|4451.ts|4452.ts|4453.ts|4454.ts|4455.ts|4456.ts|4457.ts|4458.ts|4459.ts|4460.ts|4461.ts|4462.ts|4463.ts|4464.ts|4465.ts|4466.ts|4467.ts|4468.ts|4469.ts|4470.ts|4471.ts|4472.ts|4473.ts|4474.ts':
  Duration: 00:15:47.84, start: 8001.401322, bitrate: 376 kb/s
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
    Stream #0:1[0x101](und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 32000 Hz, mono, fltp, 108 kb/s
Output #0, mpegts, to 'output5.ts':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
    Stream #0:1(und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 32000 Hz, mono, fltp, 108 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=28432 fps=0.0 q=-1.0 Lsize=   42574kB time=00:15:47.80 bitrate= 368.0kbits/s speed=3.07e+03x    
video:22826kB audio:12583kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 20.237259%
rootroot@rootroot-X99-Turbo:~/zip/1574/xx$ ffmpeg -i "concat:output1.ts|output2.ts|output3.ts|output4.ts|output5.ts" -c copy output.ts^C
rootroot@rootroot-X99-Turbo:~/zip/1574/xx$ 
rootroot@rootroot-X99-Turbo:~/zip/1574/xx$ 
rootroot@rootroot-X99-Turbo:~/zip/1574/xx$ ffmpeg -i "concat:output1.ts|output2.ts|output3.ts|output4.ts|output5.ts" -c copy output.ts
ffmpeg version 3.4.11-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, mpegts, from 'concat:output1.ts|output2.ts|output3.ts|output4.ts|output5.ts':
  Duration: 00:15:47.80, start: 1.401322, bitrate: 4134 kb/s
  Program 1 
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn, 60 tbc
    Stream #0:1[0x101](und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 32000 Hz, mono, fltp, 100 kb/s
Output #0, mpegts, to 'output.ts':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc
    Stream #0:1(und): Audio: aac (LC) ([15][0][0][0] / 0x000F), 32000 Hz, mono, fltp, 100 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=268432 fps=98380 q=-1.0 Lsize=  478387kB time=02:29:07.80 bitrate= 438.0kbits/s speed=3.28e+03x    
video:286668kB audio:118784kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 17.988695%
rootroot@rootroot-X99-Turbo:~/zip/1574/xx$ 


参考资料:
https://www.cnblogs.com/faberbeta/p/ffmpeg001.html
Linux 下使用 ffmpeg 大批量合并 ts 文件, mp4切割文件为m3u8


https://blog.csdn.net/oncealong/article/details/82785642
hls视频的加解密示例


https://blog.csdn.net/nizhengjia888/article/details/78041945
解密HLS中的AES加密


https://blog.csdn.net/oncealong/article/details/82785447
使用openssl命令加解密 aes-128-cbc的简单示例


https://blog.csdn.net/ddddfang/article/details/92838200
xxd命令


https://blog.csdn.net/y534560449/article/details/116531326
!!!!使用 FFmpeg 生成 ts 切片并使用 AES-128 加密


https://blog.csdn.net/beyond706/article/details/111772810
!!!!使用openssl m3u8解密 EXT-X-KEY:METHOD=AES-128,URI=xxx


https://blog.csdn.net/u014470361/article/details/90705336
ubuntu16.04安装ffmpeg最新版


https://blog.csdn.net/huangjingshui/article/details/75003771
如何查看openssl版本号

openssl version
openssl version -a

python 字符串 合并 截取

https://blog.csdn.net/weixin_48057068/article/details/112222179
Python入门基础篇 No.18 —— 字符串_format格式化_数字格式化

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/781849.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

人类机器人编程的心理机制(一)

\qquad 本文中的人类机器人编程(Human Robot Programming)意指“基于创伤的脑控(trauma-based mind control, T.B.M.C)”或“基于创伤的编程(trauma-based programming)”,文中用英文缩写“T.B.M.C”指代。T.B.M.C的操纵主体是施加编程的个人或机构,文中…

个人博客系统(三)

在个人博客系统(二)中介绍了注册页面和登录页面,这两个页面比较简单,最重要的一个问题是验证码的实现,具体详情可见:http://t.csdn.cn/EyVjz​​​​​​ 接下来,本博客主要介绍的是添加博客页面和修改博客页面。 1 添加博客页面 该页面如图所示: 首先判断文章标题是…

AcWing算法提高课笔记

目录 Level2 1.动态规划——从集合角度考虑DP问题 1.1 数字三角形模型 1.1.1摘花生 1.1.2最低通行费 1.1.3方格取数 1.1.4传纸条 1.2 最长上升子序列模型 1.2.1怪盗基德的滑翔翼 1.2.2登山 1.2.3合唱队形 1.2.4好友城市 1.2.5最大上升子序列和 1.2.6拦截导弹 1.2…

MySQL下载与安装

MySQL下载与安装 一、下载 地址:https://dev.mysql.com/downloads/mysql/ 当前最新是8.0版本,我选择上一个最新的mysql-5.7.24-winx64.zip 二、安装 MySQL安装文件分两种 .msi和.zip ,.msi需要安装 zip格式是自己解压,解压缩之后…

Openlayers实战:extent介绍及实际应用

Openlayers中,extent是重要的属性,它主要目的是圈定边界。setExtent方法可以设定边界的值;fit()方法可以适配狂口的位置。 效果图 源代码 /* * @Author: 大剑师兰特(xiaozhuanlan),还是大剑师兰特(CSDN) * @此源代码版权归大剑师兰特所有,可供学习或商业项目中借鉴,…

关于Idea/DataGrip下载的插件在那个文件夹

不止Idea和DataGrip,只要是JET BRAINS家的产品都实用。 路径:C:\Users\windows登录账户\AppData\Roaming\JetBrains\DataGrip2021.3\plugins 如果要找其他软件的插件,就在JetBrains目录下找到相对应的软件,点进去后就是插件。 针…

瑞吉外卖开发笔记 七(Linux)

为什么要学Linux ? 企业用人要求个人发展要求 学习后能干什么? Linux简介 不同应用领域的主流操作系统 桌面操作系统 Windows (用户数量最多)Mac OS(操作体验好,办公人士首选)Linux(用户数量少) 服务器操作系统 UN…

Python Flask构建微信小程序订餐系统 (十一)

🔥 已经删除的会员不允许进行编辑昵称 🔥 🔥 已经删除的会员要隐藏掉会员信息的编辑按钮 🔥 🔥 创建商品表 food 🔥 CREATE TABLE `food` (`id` int(11) unsigned NOT NULL AUTO_INCREMENT,`cat_id` int(11) NOT NULL DEFAULT 0 COMMENT 分类id,`name` varchar…

springboot集成logback按日志级别按天保存

演示结果 集成logback后项目启动控制台不会有日志输出 生成的日志文件路径windows上是默认D盘,linux上可自定义 代码实现 pom.xml <dependency><groupId>ch.qos.logback</groupId>

[DASCTF 2023 0X401七月暑期挑战赛] crypto

密码只有3道题&#xff0c;最后一道被卡了&#xff0c;赛后在师傅一点点提示下完成。 ezRSA 题目很短&#xff0c;分两个RSA一个用小写表示一个用大写表示&#xff0c;小写n用大写加密&#xff0c;大写的给出了P和Q>>16的提示。 from Crypto.Util.number import * from…

EMC学习笔记(十九)EMC常用元件简单介绍

EMC常用元件简单介绍 1.共模电感2.磁珠3.滤波电容器 1.共模电感 由于 EMC 所面临解决问题大多是共模干扰&#xff0c;因此共模电感也是我们常用的有力元件之一&#xff01;这里就给大家简单介绍一下共模电感的原理以及使用情况。 共模电感是一个以铁氧体为磁芯的共模干扰抑制…

C语言每日一题:3.错误的集合

题目链接&#xff1a;点击 思路一 1.1.排序遍历拿到我们重复的数值的同时去遍历数组一遍,求和重复的数字只加入一遍,和设置为sum1&#xff1b; 2.求没有消失的和&#xff0c;等差数列求和公式(1n)*n/2&#xff0c;定义为sum2&#xff1b; 3.sum2-sum1就是消失的数值。 这个方法…

【git】零基础学习git(持续更新中)

文章目录 前言git安装LinuxWindows git配置创建版本库将文件添加到版本库一次添加一个文件一次添加多个文件 查看git状态查看修改的差异查看历史记录当前版本 回退回退到上一个版本回退到某个版本如果关闭当前窗口如果关闭了当前窗口 工作区与版本库关系查看工作区和版本库里面…

记录一下trackformer的安装过程

项目地址 1、创建python环境&#xff0c;并激活 conda create -n TF python3.8 -y conda activate TF2、进入trackformer中&#xff0c;并且运行setup.py cd Desktop/MOT/trackformer/ python setup.py install3、下载pytorch pytorch官方安装法 # CUDA 11.1 pip install …

虚拟机ip地址总是改变的完美解决

在连接虚拟机进行操作时&#xff0c;第一次成功连接到虚拟机&#xff0c;但是关闭虚拟机后&#xff0c;第二天发现怎么都连接不上该虚拟机了&#xff0c;结果查询虚拟机的ip地址发现ip地址发生了改变&#xff0c;那么怎么才能让虚拟机的ip地址固定不变呢&#xff1f; 具体操作…

【vue2+element ui】添加修改共用表单的下拉框回显问题分析以及解决方案(附共用表单代码)

目录 简介问题复原问题分析共用表单代码分享 简介 本人前端水平不佳&#xff0c;本文分享在编写个人项目前端代码的时候遇到的回显问题的解决办法&#xff0c;仅供参考。 问题复原 首先展示表单中的问题代码&#xff0c;本次前端的设计是添加和修改操作共用表单&#xff0c;…

物通博联5G+工业互联网解决方案助力打造5G智能工厂

面对来自成本和市场等压力挑战&#xff0c;工业企业正通过数字化升级提升效益降低成本&#xff0c;拓展发展空间。 随着科技的不断发展&#xff0c;5G技术已经成为了全球关注的焦点。5G技术的高速度、低延迟和大连接特性为各行各业带来了巨大的变革机遇。工业和信息化部有关负…

PYQT 读取摄像头显示视频(Qtimer的方式 )

建立界面 使用qtdesigner设计一个基本的播放视频界面 使用PYUIC生成对应代码文件&#xff0c;如下&#xff1a; # -*- coding: utf-8 -*-# Form implementation generated from reading ui file Test_UI.ui # # Created by: PyQt5 UI code generator 5.15.9 # # WARNING: An…

【iOS】多界面传值

文章目录 前言一、属性传值二、协议传值三、block传值四、KVO传值五、KVO的自动触发与手动触发六、通知传值总结 前言 在写网易云音乐以及3GShare包括后面的学生管理系统时&#xff0c;用到许多界面传值方法&#xff0c;特撰写博客记录目前学过的几种多界面传值方法 一、属性…

Zabbix-server监控mysql及httpd服务

目录 一、Zabbix监控mysql数据库 1、为server.Zabbix.com添加服务模板 2、创建mysql服务图形 二、server.zabbix.com服务器操作 编辑chk_mysql.sh脚本 三、server.Zabbix.com测试 四、查看web效果 五、Zabbix监控apache&#xff08;httpd服务&#xff09; 安装master 六、…