胡斌

add 1.0.7 windows version

read recordinfo.txt,transcode ,and save recordinfo_out.txt
in previous version,all the audio an video are merged to one ts,
in this version,there are maybe serveral ts,if the video file or audio file is not continuous
... ... @@ -22,7 +22,7 @@ merge_av uid_284176605_20171127113703805.txt
964.640 284176605_20171127115308444.webm info width=320 height=240 rotation=0
2770.511 284176605_20171127115308444.webm close
2780.447 284176605_20171127113703805.aac close
1.0.6之前版本:
merge_av读入上述内容,解析后依次执行如下命令,最终生成dest.ts文件,是合成后是音视频文件,(各临时文件缺省删除,可以添加-k 参数保留,如merge_av uid_284176605_20171127113703805.txt -k)
这些命令可以通过 "merge_av uid_284176605_20171127113703805.txt -p"输出查看(-p就是只打印命令,不执行) :
;获取视频视频时长
... ... @@ -65,6 +65,23 @@ copy /B 0.ts + /B 1.ts + /B 2.ts + /B 3.ts + /B 4.ts + /B 5.ts + /B 6.ts + /B 7
cat 0.ts 1.ts 2.ts 3.ts 4.ts 5.ts 6.ts 7.ts 8.ts> m.ts ;linux
ffmpeg -y -i m.ts -acodec copy -vcodec copy dest.ts
1.0.7 读入uid_322641689_20171226123032334.txt,把其中
0.000 322641689_20171226123032334.aac create
0.861 322641689_20171226123033194.webm create
0.861 322641689_20171226123033194.webm info width=320 height=240 rotation=0
44.875 322641689_20171226123032334.aac close
45.178 322641689_20171226123117511.aac create
108.525 322641689_20171226123117511.aac close
109.926 322641689_20171226123033194.webm close
115.278 322641689_20171226123227612.aac create
115.675 322641689_20171226123228008.webm create
115.677 322641689_20171226123228008.webm info width=320 height=240 rotation=0
1669.684 322641689_20171226123228008.webm close
1684.435 322641689_20171226123227612.aac close
生成uid_322641689_20171226123032334_out.txt,其中内容如下,每一行依次为开始时间,时长,合成的ts文件名。
0.000 108.610 322641689_20171226_0.ts
115.278 1569.190 322641689_20171226_1.ts
调用ffmpeg时,视频编码参数是: -vcodec libx264 -level 3.1 -preset veryfast -g 100 -r 20 -bf 0 -vsync cfr
音频编码参数是: -acodec copy
... ...
不能预览此文件类型