创建多个剪辑时,FFMPEG记录不一致


0

我注意到FFMPEG在负责从同一源文件生成多个剪辑时产生的进度输出是不一致的。这导致我的Web GUI中的进度系统出错。

问题似乎是在制作剪辑时,“time =”列似乎保持在同一时间。我可以毫无问题地创建剪辑,我只想知道在创建剪辑时记录似乎正在播放的内容。我用-t和-to测试了这个。

这是我用来创建剪辑的命令:

ffmpeg -i F:/Transcoder/processing_temp/task_00000000421/LB000001_amazon_031116105010.mp4 -ss 00:00:10.000 -to 00:01:10.000 F:/Transcoder/processing_temp/task_00000000421/conform/s1_LB000001_amazon_031116105010.mp4 -ss 00:02:00.000 -to 00:07:00.000 F:/Transcoder/processing_temp/task_00000000421/conform/s2_LB000001_amazon_031116105010.mp4 -ss 00:07:00.000 -to 00:12:00.000 F:/Transcoder/processing_temp/task_00000000421/conform/s3_LB000001_amazon_031116105010.mp4 -ss 00:09:00.000 -to 00:11:00.000 F:/Transcoder/processing_temp/task_00000000421/conform/s4_LB000001_amazon_031116105010.mp4 2> F:/Transcoder/logs/transcode_logs/c_00000000421.txt

这里有些例子:

它很好,但在生成最终剪辑时,它似乎只是输出:

frame= 1500 fps= 16 q=28.0 q=28.0 q=28.0 q=28.0 size=    3057kB time=00:04:59.94 bitrate=  83.5kbits/s speed=3.23x    
frame= 1500 fps= 16 q=28.0 q=28.0 q=28.0 q=28.0 size=    3057kB time=00:04:59.94 bitrate=  83.5kbits/s speed=3.22x    
frame= 1500 fps= 16 q=28.0 q=28.0 q=28.0 q=28.0 size=    3057kB time=00:04:59.94 bitrate=  83.5kbits/s speed= 3.2x    
frame= 1500 fps= 16 q=28.0 q=28.0 q=28.0 q=28.0 size=    3057kB time=00:04:59.94 bitrate=  83.5kbits/s speed=3.18x    
frame= 1500 fps= 16 q=28.0 q=28.0 q=28.0 q=28.0 size=    3057kB time=00:04:59.94 bitrate=  83.5kbits/s speed=3.16x    
frame= 1500 fps= 16 q=28.0 q=28.0 q=28.0 q=28.0 size=    3057kB time=00:04:59.94 bitrate=  83.5kbits/s speed=3.15x    
frame= 1500 fps= 16 q=28.0 q=28.0 q=28.0 q=28.0 size=    3057kB time=00:04:59.94 bitrate=  83.5kbits/s speed=3.13x    
frame= 1500 fps= 16 q=28.0 q=28.0 q=28.0 q=28.0 size=    3057kB time=00:04:59.94 bitrate=  83.5kbits/s speed=3.11x    
frame= 1500 fps= 15 q=28.0 q=28.0 q=28.0 q=28.0 size=    3057kB time=00:04:59.94 bitrate=  83.5kbits/s speed= 3.1x    
frame= 1500 fps= 15 q=-1.0 Lq=-1.0 q=-1.0 q=-1.0 size=    3173kB time=00:05:00.01 bitrate=  86.6kbits/s speed=3.08x 

它在达到100行之前time=00:05:00.000(所请求剪辑的结尾)执行此操作并且任务结束。

将此输出与标准转码进行比较,您可以看到time =迭代正如您所期望的那样。

这是一个例子:

frame=16519 fps=210 q=28.0 size=   54023kB time=00:11:01.02 bitrate= 669.5kbits/s dup=2 drop=0 speed=8.42x    
frame=16628 fps=211 q=28.0 size=   54290kB time=00:11:05.39 bitrate= 668.4kbits/s dup=2 drop=0 speed=8.42x    
frame=16753 fps=211 q=28.0 size=   54602kB time=00:11:10.37 bitrate= 667.2kbits/s dup=2 drop=0 speed=8.43x    
frame=16871 fps=211 q=28.0 size=   54915kB time=00:11:15.10 bitrate= 666.4kbits/s dup=2 drop=0 speed=8.44x    
frame=16963 fps=211 q=28.0 size=   55293kB time=00:11:18.79 bitrate= 667.3kbits/s dup=2 drop=0 speed=8.43x    
frame=17062 fps=211 q=25.0 size=   55653kB time=00:11:22.74 bitrate= 667.8kbits/s dup=2 drop=0 speed=8.43x    
frame=17174 fps=211 q=28.0 size=   56007kB time=00:11:27.24 bitrate= 667.6kbits/s dup=2 drop=0 speed=8.43x    
frame=17276 fps=211 q=28.0 size=   56347kB time=00:11:31.34 bitrate= 667.7kbits/s dup=2 drop=0 speed=8.43x    
frame=17357 fps=210 q=28.0 size=   56763kB time=00:11:34.56 bitrate= 669.5kbits/s dup=2 drop=0 speed=8.42x    
frame=17458 fps=210 q=28.0 size=   57180kB time=00:11:38.59 bitrate= 670.5kbits/s dup=2 drop=0 speed=8.41x    
frame=17552 fps=210 q=28.0 size=   57541kB time=00:11:42.34 bitrate= 671.1kbits/s dup=2 drop=0 speed=8.41x    
frame=17659 fps=210 q=28.0 size=   57926kB time=00:11:46.61 bitrate= 671.5kbits/s dup=2 drop=0 speed=8.41x    
frame=17756 fps=210 q=28.0 size=   58253kB time=00:11:50.51 bitrate= 671.6kbits/s dup=2 drop=0 speed=8.41x    
frame=17903 fps=211 q=28.0 size=   58566kB time=00:11:56.40 bitrate= 669.7kbits/s dup=2 drop=0 speed=8.43x    
frame=17983 fps=210 q=28.0 size=   59032kB time=00:11:59.58 bitrate= 672.0kbits/s dup=2 drop=0 speed=8.41x    
frame=18051 fps=210 q=28.0 size=   59517kB time=00:12:02.31 bitrate= 675.0kbits/s dup=2 drop=0 speed=8.39x    
frame=18135 fps=210 q=28.0 size=   59944kB time=00:12:05.64 bitrate= 676.7kbits/s dup=2 drop=0 speed=8.38x    
frame=18231 fps=209 q=28.0 size=   60307kB time=00:12:09.52 bitrate= 677.2kbits/s dup=2 drop=0 speed=8.38x    
frame=18314 fps=209 q=28.0 size=   60589kB time=00:12:12.85 bitrate= 677.3kbits/s dup=2 drop=0 speed=8.37x    
frame=18405 fps=209 q=28.0 size=   60998kB time=00:12:16.48 bitrate= 678.5kbits/s dup=2 drop=0 speed=8.36x    
frame=18490 fps=209 q=28.0 size=   61401kB time=00:12:19.85 bitrate= 679.9kbits/s dup=2 drop=0 speed=8.35x    
frame=18579 fps=209 q=28.0 size=   61668kB time=00:12:23.43 bitrate= 679.5kbits/s dup=2 drop=0 speed=8.35x    
frame=18650 fps=208 q=28.0 size=   62048kB time=00:12:26.27 bitrate= 681.1kbits/s dup=2 drop=0 speed=8.33x    
frame=18751 fps=208 q=28.0 size=   62446kB time=00:12:30.32 bitrate= 681.8kbits/s dup=2 drop=0 speed=8.33x    
frame=18855 fps=208 q=28.0 size=   62802kB time=00:12:34.44 bitrate= 681.9kbits/s dup=2 drop=0 speed=8.33x    
frame=18972 fps=208 q=28.0 size=   63088kB time=00:12:39.18 bitrate= 680.8kbits/s dup=2 drop=0 speed=8.34x    
frame=19091 fps=209 q=28.0 size=   63385kB time=00:12:43.93 bitrate= 679.7kbits/s dup=2 drop=0 speed=8.34x    
frame=19209 fps=209 q=28.0 size=   63709kB time=00:12:48.65 bitrate= 679.0kbits/s dup=2 drop=0 speed=8.35x    
frame=19317 fps=209 q=28.0 size=   63979kB time=00:12:52.94 bitrate= 678.1kbits/s dup=2 drop=0 speed=8.35x    
frame=19417 fps=209 q=28.0 size=   64387kB time=00:12:56.97 bitrate= 678.9kbits/s dup=2 drop=0 speed=8.35x    
frame=19502 fps=208 q=-1.0 Lsize=   65344kB time=00:13:00.08 bitrate= 686.2kbits/s dup=2 drop=0 speed=8.33x

有没有人遇到过这个?


ss输入名称后应用时,FFmpeg将所有帧解码到该入点并丢弃它们。在此搜索操作期间,时间指示器不会改变。
Gyan 2016年

那么这是否意味着我必须在每个-ss之后包含-i和源文件字符串?
Lewis909年

所以这样做的时间=就像你期望的那样进展,但是现在所有的剪辑都是从第一个开始的。
Lewis909年
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.