안녕하세요.
4K mpegts 파일을 단순 다이렉트스트림카피로 원하는 부분만 잘라내려 했는데 아래와 같은 오류가 발생합니다.
혹시 4k영상은 카피가 안되는건가 싶어서 다른 코덱 설정해서 인코딩을 하려 해도 동일한 오류가 발생하네요..
워낙 긴 영상에 소장하고싶은 부분은 일부분이라 잘라내고 싶은데 뭐가 문제인걸까요;;;
[info] ShanaEncoder v5.3.1.0
[info] FFmpeg v2022.02.02.187
[info] AMD Radeon(TM) Graphics
[info] NVIDIA GeForce RTX 3060 Laptop GPU
==================================================
>> 작업 시작시간: 2022-03-28 오후 1:02:57
* 인코딩 시작: 파일명.ts
[hevc @ 000001cef888e780] SPS 0 does not exist.
[hevc @ 000001cef888e780] PPS id out of range: 0
[hevc @ 000001cef888e780] SPS 0 does not exist.
[hevc @ 000001cef888e780] PPS id out of range: 0
[hevc @ 000001cef888e780] Error parsing NAL unit #3.
[mpegts @ 000001cef888a500] PES packet size mismatch
[mpegts @ 000001cef888a500] Packet corrupt (stream = 0, dts = 492722969).
[mpegts @ 000001cef888a500] PES packet size mismatch
[mpegts @ 000001cef888a500] Packet corrupt (stream = 1, dts = 492352245).
[mpegts @ 000001cef888a500] PES packet size mismatch
[mpegts @ 000001cef888a500] Packet corrupt (stream = 1, dts = 492352245).
[mpegts @ 000001cef888a500] PES packet size mismatch
[mpegts @ 000001cef888a500] Packet corrupt (stream = 1, dts = 492352245).
[mpegts @ 000001cef888a500] PES packet size mismatch
[mpegts @ 000001cef888a500] Packet corrupt (stream = 1, dts = 492352245).
[mpegts @ 000001cef888a500] PES packet size mismatch
[mpegts @ 000001cef888a500] Packet corrupt (stream = 0, dts = 492722969).
[mpegts @ 000001cef888a500] PES packet size mismatch
[mpegts @ 000001cef888a500] Packet corrupt (stream = 1, dts = 492352245).
[mpegts @ 000001cef888a500] PES packet size mismatch
[mpegts @ 000001cef888a500] Packet corrupt (stream = 0, dts = 492722969).
[mpegts @ 000001cef888a500] PES packet size mismatch
[mpegts @ 000001cef888a500] Packet corrupt (stream = 1, dts = 492352245).
[mp4 @ 000001cef999e440] Could not find tag for codec aac_latm in stream #1, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:1 --
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
* 인코딩 오류가 발생했습니다.
>> 속도 0x 진행 시간 00:00:00
==================================================
PES 패킷 사이즈 문제네요. > https://stackoverflow.com/questions/54700786/how-do-i-fix-the-pes-packet-size-mismatch-error-in-ffmpeg
이것 참고 하시면 될것 같습니다.