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

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.mzph.cn/news/5797.shtml

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

相关文章

论文工具——ChatGPT结合PlotNeuralNet快速出神经网络深度学习模型图

文章目录 引言正文PlotNeuralNet安装使用使用python进行编辑使用latex进行编辑 样例利用chatGPT使用chatGPT生成Latex代码利用chatGPT生成对应的python代码 总结引用 引言 介绍如何安装PlotNeuralNet工具,并结合chatGPT减少学习成本,快速出图。将按照软…

前端Web实战:从零打造一个类Visio的流程图拓扑图绘图工具

前言 大家好,本系列从Web前端实战的角度,给大家分享介绍如何从零打造一个自己专属的绘图工具,实现流程图、拓扑图、脑图等类Visio的绘图工具。 你将收获 免费好用、专属自己的绘图工具前端项目实战学习如何从0搭建一个前端项目等基础框架项…

java学习(二):反射

系列文章目录 https://editor.csdn.net/md/?articleId131757340 文章目录 系列文章目录参考【1】注解1. 什么是注解2. 内置注解3. 元注解4.自定义注解 【2】反射--基本概念一、反射的基本概念1. 为什么要用反射?2. 什么是反射?3. 用和不用反射的区别&a…

代码随想录-回溯(组合问题)|ACM模式

目录 前言: 77.组合 题目描述: 输入输出示例: 思路和想法: 216. 组合总和 III 题目描述: 输入输出示例: 思路和想法: 17. 电话号码的字母组合 题目描述: 输入输出描述&a…

MyBatis的多表操作

1 MyBatis的多表操作 1.1 多表模型介绍 我们之前学习的都是基于单表操作的,而实际开发中,随着业务难度的加深,肯定需要多表操作的。 多表模型分类 一对一:在任意一方建立外键,关联对方的主键。 一对多:在…

实用便捷!一站式BI系统推荐

在企业数字化转型过程中,BI系统可以建立业务、数据的双驱引擎,形成业务、数据的互补作用,通过建立数字化技术架构,明确企业的战略定位和业务目标,从而支撑实现这个目标。而一站式BI系统,则是指可以轻松从数…

【MySQL】SQL性能分析 (七)

🚗MySQL学习第七站~ 🚩本文已收录至专栏:MySQL通关路 ❤️文末附全文思维导图,感谢各位点赞收藏支持~ 假如我们需要对SQL进行优化,我们就必须对他足够的了解,比如 对哪一类SQL进行优化(增删改查…

基于物联网网关的工业数据可视化平台有什么功能?

随着数字化浪潮的不断发展,工业数据的价值越来越重要。在企业利用数据的过程中,数据可视化是数字化系统中十分重要的一部分。然而,工厂多种设备、多种协议影响到系统的搭建使得企业无法获得全面的数据视图,也无法对整个生产流程进…

OJ练习第142题——路径总和 II

113. 路径总和 II 力扣链接:113. 路径总和 II 题目描述 给你二叉树的根节点 root 和一个整数目标和 targetSum ,找出所有 从根节点到叶子节点 路径总和等于给定目标和的路径。 叶子节点 是指没有子节点的节点。 示例 Java代码(深度优先搜…

六边形架构

六边形架构 微服务系统架构微服务定义微服务系统设计 传统分层架构六边形架构参考资料 微服务系统架构 需求描述做什么的问题,架构描述怎么做的问题(描述组成系统的各部件及其之间的关系) 微服务定义 下面的定义来自周志明老师的 凤凰架构 微服务是一种通过多个小型…

【Linux】 由“进程”过渡到“线程” -- 什么是线程(thread)?

知识引入初识线程1.什么叫做进程?2.什么叫做线程?3.如何看待我们之前学习的进程? 理解线程创建线程函数调用1.线程一旦被创建,几乎所有资源都是被线程所共享的2.与进程之间切换相比,线程的切换 初识线程总结&#xff1…

使用 Docker 快速上手中文版 LLaMA2 开源大模型

本篇文章,我们聊聊如何使用 Docker 容器快速上手朋友团队出品的中文版 LLaMA2 开源大模型,国内第一个真正开源,可以运行、下载、私有部署,并且支持商业使用。 写在前面 感慨于昨天 Meta LLaMA2 模型开放下载之后,Git…

操作系统练习:进程间通信(共享内存方式)

说明 本文是《操作系统概念(第九版)》3.4节“进程间通信”的练习。 进程间通信主要由两种模型: 共享内存消息传递 本文使用共享内存的方式实现进程间的通信 创建消息生产者 创建生产者的主要操作包括: 定义共享内存的大小、名称,以及通…

netty知识集锦2

粘包半包 粘包半包解决方案, 1短链接,它的消息边界是从链接建立到链接断开 2.定长解码器:服务器端选最大长度的消息作为定长,客户端不足补齐,缺点造成浪费 netty协议设计与解析 Message编码解码

AWS IAM介绍

前言 AWS是世界上最大的云服务提供商,它提供了很多组件供消费者使用,其中进行访问控制的组件叫做IAM(Identity and Access Management), 用来进行身份验证和对AWS资源的访问控制。 功能 IAM的功能总结来看,主要分两种&#xff1…

《零基础入门学习Python》第060讲:论一只爬虫的自我修养8:正则表达式4

有了前面几节课的准备,我们这一次终于可以真刀真枪的干一场大的了,但是呢,在进行实战之前,我们还要讲讲正则表达式的实用方法和扩展语法,然后再来实战,大家多把持一会啊。 我们先来翻一下文档:…

openGauss学习笔记-17 openGauss 简单数据管理-表达式

文章目录 openGauss学习笔记-17 openGauss 简单数据管理-表达式17.1 简单表达式17.2 条件表达式17.3 子查询表达式17.4 数组表达式17.5 行表达式 openGauss学习笔记-17 openGauss 简单数据管理-表达式 表达式类似一个公式,我们可以将其应用在查询语句中&#xff0c…

25 MFC 数据库

文章目录 导入ADO库 导入ADO库 #import "C:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename("EOF","rsEOF")void CADODlg::OnBnClickedBtnQuery() {//导入ADO库::CoInitialize(NULL);//初始化COM库_ConnectionPtr pCo…

《面试1v1》如何提高远程用户的吞吐量

🍅 作者简介:王哥,CSDN2022博客总榜Top100🏆、博客专家💪 🍅 技术交流:定期更新Java硬核干货,不定期送书活动 🍅 王哥多年工作总结:Java学习路线总结&#xf…

Flutter动画库:animations(路由过渡动画或者页面切换动画)

animations animations 是一个 Flutter 库,它提供了一组用于创建动画效果的工具和组件。这个库的核心重点是路由过渡动画或者页面切换动画 地址 https://pub-web.flutter-io.cn/packages/animations 安装 flutter pub add animations看了下官方文档和官方例子&a…