몇 개의 프레임이 누락된 일부 비디오 파일이 있습니다. 비디오 플레이어에서 재생하고 프레임별로 진행하거나 모든 프레임을 추출한 다음 ffpeg
출력 이미지를 확인하여 이를 확인할 수 있습니다.
ffmpeg -loglevel trace -i myfile.mp4 myframes/frame%5d.png
추출이 끝나면 다음과 같은 것을 볼 수 있습니다.
frame= 2260 fps= 24 q=-0.0 Lsize=N/A time=00:01:15.33 bitrate=N/A dup=74 drop=0 speed=0.812x
video:2714746kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (myfile.mp4):
Input stream #0:0 (video): 2221 packets read (57126959 bytes); 2186 frames decoded;
Total: 2221 packets (57126959 bytes) demuxed
Output file #0 (myframes/frame%5d.png):
Output stream #0:0 (video): 2260 frames encoded; 2260 packets muxed (2779899741 bytes);
Total: 2260 packets (2779899741 bytes) muxed
2186 frames successfully decoded, 0 decoding errors
dup=74
74개의 중복된 프레임이 있다는 것을 의미하는 것을 볼 수 있습니다 . *** 1 dup!
출력 로그에는 74줄도 포함되어 있습니다 . 그러나 해당 프레임에 대한 정보는 없습니다. 중복된 프레임의 프레임 번호(또는 시간)를 어떻게 알 수 있나요? 그리고 다중화되는 패킷의 총 개수가 이미 정확할 때(2186 + 74 = 2260) 왜 2221개 패킷만 역다중화되고 있습니까?