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.mfbz.cn/a/45857.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

C# List 详解七

目录 42.Sort() 43.ToArray() 44.ToString() 45.TrimExcess() 46.TrueForAll(Predicate) C# List 详解一 1.Add(T),2.AddRange(IEnumerable),3.AsReadOnly(),4.BinarySearch(T), C# List 详解二 5.Cl…

TEE GP(Global Platform)认证规范

TEE之GP(Global Platform)认证汇总 一、GP认证规范库 二、TEE GP认证规范文档 如果需要TEE对应的GP认证规范文档,请按照下方选择框选择TEE,然后Search,共查询到31个相关规范文档。 参考: GlobalPlatform Certification - Global…

[回馈]ASP.NET Core MVC开发实战之商城系统(一)

经过一段时间的准备,新的一期【ASP.NET Core MVC开发实战之商城系统】已经开始,今天着重讲解布局设计,环境搭建,系统配置,及首页商品类型,banner条,友情链接等功能的开发。 首页布局设计 首页是…

工程安全监测无线振弦采集仪在建筑物中的应用

工程安全监测无线振弦采集仪在建筑物中的应用 工程安全监测无线振弦采集仪是一种用于建筑物结构安全监测的设备,它采用了无线传输技术,具有实时性强、数据精度高等优点,被广泛应用于建筑物结构的实时监测和预警。下面将从设备的特点、应用场…

(原创)自定义DialogFragment以及解决其内存泄漏问题

前言 日常开发中,dialog是常见的功能,我们时常需要弹出来一些弹框提示用户 今天就定义了一个方便的dialog基类BaseSimpleDialogFragment, 支持快速地显示一个dialog 主要功能有: initAnimation:设置入场和出场动画 ge…

【C进阶】指针进阶(1)_二次复习版

目录 1. 字符指针 1.1常量字符串的修改 加上const解决问题 打印常量字符串 1.2数组存放的字符串 1.3例题:数组创建与常量池的区别 2. 指针数组 2.1字符指针数组 2.2整型指针数组 2.3使用3个一维数组,模拟实现一个二维数组 2.4例题: 3.数组指针 3.1 数组指针的定义…

同步网盘使用中的五大突出优势

同步网盘是一种流行的云存储解决方案,它可以将您本地计算机上的文件与云端存储空间同步,以保证文件的备份和访问。那么,同步网盘使用中的突出优势是什么呢?下面就为您详细介绍。 一、数据备份 同步网盘最大的优势之一就是可以自动…

错误解决:Failed to create Spark client for Spark session

错误解决:Failed to create Spark client for Spark session "Failed to create Spark client for Spark session"的错误通常表示无法为Spark会话创建Spark客户端。这可能是由于以下一些常见问题导致的: Spark配置错误:请检查Spar…

智慧园区楼宇合集:数字孪生管控系统

智慧园区是指将物联网、大数据、人工智能等技术应用于传统建筑和基础设施,以实现对园区的全面监控、管理和服务的一种建筑形态。通过将园区内设备、设施和系统联网,实现数据的传输、共享和响应,提高园区的管理效率和运营效益,为居…

ubuntu开机自启动

ubuntu开机自启动 1、建一个test.sh脚本,并写入 #!/bin/sh gnome-terminal -x bash -c ‘cd /home/文件路径/;python3 main.py’ exit 0 2、:wq!保存 3、创建rc-local.service文件(sudo vim /etc/systemd/system/rc-local.service)&#xf…

一次线上OOM问题的个人复盘

我们一个java服务上线后,偶尔会发生内存OOM(Out Of Memory)问题,但由于OOM导致服务不响应请求,健康检查多次不通过,最后部署平台kill了java进程,这导致定位这次OOM问题也变得困难起来。 最终,在多次review代…

shell实现数据库分库分表备份

#!/bin/bash2 3 backup/backup/db #存放数据库的位置4 nodatabasesinformation_schema|mycat|performance_schema|sys|mysql #要过滤的数据库5 6 mysql -uroot -predhat -e "show databases" -N | egrep -v "${nodatabases}" > dbname #将数据库存放在…

跨境出海企业,如何防范恶意退货欺诈

很多出海企业遭遇到过恶意退货事件。 2021年,某跨境商家在海外电商平台运营超过13年。有一次,有个海外买家买了一台二手的数码摄像机。在买家收到货后,却声称商品备在使用了45分钟之后便自动关机,且不能继续充电。该商家很肯定产…

裁员 10%,暴跌 14%,这家 IT 独角兽正在被抛弃!

流量一跌再跌,Stack Overflow 简直被狠狠地上了一课! 3 月份 Stack Overflow 的流量下降了近 14%。该公司的 CEO 压力空前,甚至昨天决定裁员 10%! 平均每月下降6%,上月直接跌了近14% 开发人员越来越多地从 AI 聊天机器…

Audio2Face

1:下载链接。 Omniverse Enterprise 许可和定价 | NVIDIA 2:安装。 audio2face ue插件 教程: 1:【青松微课堂】Audio2Face数字人工作流:软件的下载安装与UI介绍 【青松微课堂】Audio2Face数字人工作流:软件的下载安装与UI介绍_…

C++类——Vector容器的模拟实现

目录 一.vector类的成员变量: 二.Vector类的初始化方式: 三.vector的基本成员函数 四.vector类的增删查改: 指针失效问题: insert(): 代码解析: erase(): 代码解析: 所以erase()函数的正确写法:…

苹果iOS 16.6 RC发布:或为iPhone X/8系列养老版本

今天苹果向iPhone用户推送了iOS 16.6 RC更新(内部版本号:20G75),这是时隔两个月的首次更新。 按照惯例RC版基本不会有什么问题,会在最近一段时间内直接变成正式版,向所有用户推送。 需要注意的是,鉴于iOS 17正式版即将…

Linux系列---【Ubuntu 20.04安装KVM】

Ubuntu 20.04安装KVM 一、安装kvm 1.安装kvm sudo apt install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils 2. 将当前用户添加至libvirt 、 kvm组 sudo adduser $USER libvirt sudo adduser $USER kvm 3.验证安装 virsh list --all 4.启动libvert sudo syst…

el-select和el-checkBox实现下拉菜单全选功能

el-select 和 el-checkbox 实现下拉菜单全选功能 示例代码&#xff1a; <el-selectpopper-class"select-container"v-model"ids"placeholder"请选择目标":multiple-limit"20"multiplefilterablecollapse-tagsclass"wd400&qu…

自动驾驶数据标注有哪些?

自动驾驶汽车&#xff1a;人工智能(AI)的焦点 人工智能驱动汽车解决方案的市场规模预计到 2025年将增长十倍以上&#xff0c;提升车内体验的商机领域以及 AI 模型的无偏见训练数据的重要性。在本篇中&#xff0c;我们将介绍车外体验的关键组成部分&#xff0c;以及自动驾驶数据…
最新文章