小樱 发表于 2020/4/30 07:58

ShanaEncoder ffmpeg声音画面不同步报错分析,日本ts录制音频视频文件修复

日志报错如下,修复方法等待补充

分析,其中一有段时间损坏报错,播放过程会产生卡顿暂停情况,此时播放器→一下就好了,转码后输出声音画面不同步和这个有关系
这种问题就是视频文件本身有损坏引起的,修复方法未知
这里有一份群友分享的方法可以参考下:https://bbs.itzmx.com/thread-96251-1-1.html

测试文件
https://cloud.189.cn/t/Jre6fyf6JFfu(访问码:gt7y)


>> 编码开始时间: 2020/4/30 7:56:54

* 输入文件名: EastMovie.In.The.Name.Of.The.Shooting.Star.2008.HDTV.1080i.H264-CZW.ts

@ 0000021f6ba539c0] SPS unavailable in decode_picture_timing
non-existing PPS 0 referenced
SPS unavailable in decode_picture_timing
non-existing PPS 0 referenced
decode_slice_header error
no frame!
SPS unavailable in decode_picture_timing
non-existing PPS 0 referenced
SPS unavailable in decode_picture_timing
non-existing PPS 0 referenced
decode_slice_header error
no frame!
Invalid timestamps stream=0, pts=377996400, dts=378000000, size=1471
SPS unavailable in decode_picture_timing
non-existing PPS 0 referenced
SPS unavailable in decode_picture_timing
non-existing PPS 0 referenced
decode_slice_header error
no frame!
Invalid timestamps stream=0, pts=378000000, dts=378003600, size=1507
SPS unavailable in decode_picture_timing
non-existing PPS 0 referenced
SPS unavailable in decode_picture_timing
non-existing PPS 0 referenced
decode_slice_header error
no frame!
SPS unavailable in decode_picture_timing
non-existing PPS 0 referenced
SPS unavailable in decode_picture_timing
non-existing PPS 0 referenced
decode_slice_header error
no frame!
SPS unavailable in decode_picture_timing
non-existing PPS 0 referenced
SPS unavailable in decode_picture_timing
non-existing PPS 0 referenced
SPS unavailable in decode_picture_timing
non-existing PPS 0 referenced
decode_slice_header error
no frame!
SPS unavailable in decode_picture_timing
non-existing PPS 0 referenced
decode_slice_header error
no frame!
Invalid timestamps stream=0, pts=378021600, dts=378025200, size=15544
Increasing reorder buffer to 2
Invalid timestamps stream=0, pts=378032400, dts=378036000, size=21681
Invalid timestamps stream=0, pts=378057600, dts=378061200, size=18069
Invalid timestamps stream=0, pts=378075600, dts=378079200, size=10206
Invalid timestamps stream=0, pts=378079200, dts=378082800, size=10657
Invalid timestamps stream=0, pts=378097200, dts=378100800, size=6797
Invalid timestamps stream=0, pts=378100800, dts=378104400, size=10949
Invalid timestamps stream=0, pts=378115200, dts=378118800, size=9643
Invalid timestamps stream=0, pts=378118800, dts=378122400, size=9741
Invalid timestamps stream=0, pts=378136800, dts=378140400, size=7732
Invalid timestamps stream=0, pts=378140400, dts=378144000, size=7905
Invalid timestamps stream=0, pts=378154800, dts=378158400, size=8477
Invalid timestamps stream=0, pts=378158400, dts=378162000, size=4098
Invalid timestamps stream=0, pts=378169200, dts=378172800, size=6037
Invalid timestamps stream=0, pts=378187200, dts=378190800, size=6783
Invalid timestamps stream=0, pts=378190800, dts=378194400, size=6226
Invalid timestamps stream=0, pts=378208800, dts=378212400, size=4115
Invalid timestamps stream=0, pts=378212400, dts=378216000, size=4296
Invalid timestamps stream=0, pts=378230400, dts=378234000, size=4715
Invalid timestamps stream=0, pts=378234000, dts=378237600, size=7077
Invalid timestamps stream=0, pts=378252000, dts=378255600, size=5968
Invalid timestamps stream=0, pts=378255600, dts=378259200, size=5479
Invalid timestamps stream=0, pts=378273600, dts=378277200, size=7228
Invalid timestamps stream=0, pts=378277200, dts=378280800, size=4257
Invalid timestamps stream=0, pts=378295200, dts=378298800, size=5210
Invalid timestamps stream=0, pts=378298800, dts=378302400, size=4420
Invalid timestamps stream=0, pts=378316800, dts=378320400, size=7585
Invalid timestamps stream=0, pts=378320400, dts=378324000, size=10557
Invalid timestamps stream=0, pts=378338400, dts=378342000, size=3973
Invalid timestamps stream=0, pts=378352800, dts=378356400, size=4220
Invalid timestamps stream=0, pts=378356400, dts=378360000, size=4375
Invalid timestamps stream=0, pts=378367200, dts=378370800, size=7846
Invalid timestamps stream=0, pts=378370800, dts=378374400, size=10608
Invalid timestamps stream=0, pts=378388800, dts=378392400, size=4404
Invalid timestamps stream=0, pts=378392400, dts=378396000, size=4560
Invalid timestamps stream=0, pts=378410400, dts=378414000, size=6898
Invalid timestamps stream=0, pts=378414000, dts=378417600, size=8845
Invalid timestamps stream=0, pts=378432000, dts=378435600, size=3962
Invalid timestamps stream=0, pts=378435600, dts=378439200, size=4253
Invalid timestamps stream=0, pts=378453600, dts=378457200, size=4150
Only '-vf scale=640:360:flags=bicubic,pad=640:360:0:0,setsar=1/1' read, ignoring remaining -vf options: Use ',' to separate filters
Only '-af aresample=48000:resampler=soxr' read, ignoring remaining -af options: Use ',' to separate filters
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (mp2 (native) -> aac (libfdk_aac))
Invalid timestamps stream=0, pts=377996400, dts=378000000, size=1471
Invalid timestamps stream=0, pts=378000000, dts=378003600, size=1507
Invalid timestamps stream=0, pts=378021600, dts=378025200, size=15544
Invalid timestamps stream=0, pts=378032400, dts=378036000, size=21681
Invalid timestamps stream=0, pts=378057600, dts=378061200, size=18069
Invalid timestamps stream=0, pts=378075600, dts=378079200, size=10206
using SAR=1/1
using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
profile Progressive High, level 3.0, 4:2:0, 8-bit
264 - core 157 r2969 d4099dd - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=2 psy=0 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=11 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=10 rc=crf mbtree=1 crf=21.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=2:1.00
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Invalid timestamps stream=0, pts=378079200, dts=378082800, size=10657
Invalid timestamps stream=0, pts=378097200, dts=378100800, size=6797
Invalid timestamps stream=0, pts=378100800, dts=378104400, size=10949
………………………………
number of reference frames (0+5) exceeds max (4; probably corrupt input), discarding one


搜了一圈没搜到片源文件时间戳出错导致时长不对如何修复文件相关的解决办法,后续联系ffmpeg官方技术支持,提供了一个参数让其尝试解决该问题,针对拥有错误信息的ts文件有帮助
可以试试ffmpeg的参数,ShanaEncoder 按f8加入 -async 1 进行测试一下试试,由于天翼云盘的服务器硬盘坏了导致源文件丢失已经无法下载到测试ts文件,有同类ts异常片源文件的可以进行测试一下ffmpeg官方提供的实验性参数

只爱小玉 发表于 2020/4/30 19:59

看起来很不错哦,收藏之~~~
谢谢LZ啦!!!

不可名 发表于 2020/4/30 23:48

{:3051:}
页: [1]
查看完整版本: ShanaEncoder ffmpeg声音画面不同步报错分析,日本ts录制音频视频文件修复