nschlia / ffmpegfs

FUSE-based transcoding filesystem with video support from many formats to FLAC, MP4, TS, WebM, OGG, MP3, HLS, and others.
https://nschlia.github.io/ffmpegfs/
GNU General Public License v3.0
198 stars 14 forks source link

H265 decoding does not work #33

Closed nschlia closed 4 years ago

nschlia commented 5 years ago

Log shows these errors:

2019-05-28 19:24:58 ERROR  : [hevc @ 0x7f883812a100] Duplicate POC in a sequence: 4.
2019-05-28 19:24:58 WARNING: [hevc @ 0x7f883812a100] Error parsing NAL unit #0.
2019-05-28 19:24:58 ERROR  : [/home/norbert/test/in/autocopy/Accept & Orchestra - Stalingrad (H265 AAC).mp4] Could not send packet to decoder (error 'Invalid data found when processing input').
2019-05-28 19:24:58 ERROR  : [/home/norbert/test/in/autocopy/Accept & Orchestra - Stalingrad (H265 AAC).mp4] Could not decode frame (error 'Invalid data found when processing input').
2019-05-28 19:24:58 DEBUG  : [/home/norbert/test/out/Accept & Orchestra - Stalingrad (H265 AAC).webm] File transcode complete, releasing buffer early: Size 0.
2019-05-28 19:24:58 DEBUG  : [/home/norbert/test/in/autocopy/Accept & Orchestra - Stalingrad (H265 AAC).mp4] Decoder thread is running.
2019-05-28 19:24:58 WARNING: 1 video frames left in buffer and not written to target file!
2019-05-28 19:24:58 ERROR  : [/home/norbert/test/out/Accept & Orchestra - Stalingrad (H265 AAC).webm] Transcoding exited with error.
2019-05-28 19:24:58 ERROR  : [/home/norbert/test/out/Accept & Orchestra - Stalingrad (H265 AAC).webm] System error: (5) Input/output error
2019-05-28 19:24:58 ERROR  : [/home/norbert/test/out/Accept & Orchestra - Stalingrad (H265 AAC).webm] FFMpeg error: (-1094995529) Invalid data found when processing input
nschlia commented 4 years ago

Seems to be fixed now, problem no longer exists. Probably an FFmpeg API bug.

kaydxh commented 2 years ago

@nschlia Hi, do you fix the problem. I decode h264 by gpu is ok, but h265 is error. avcodec_send_packet return error , error message: Invalid data found when processing input. Do you know how to slove it? Thanks!

nschlia commented 2 years ago

Could you provide me a short example of a H265 that does not decode? Could you please also run ffmpegfs with log_maxlevel=TRACE and provide the output? I could check what is going wrong.

kaydxh commented 2 years ago

@nschlia Thanks, I have sloved it.

nschlia commented 2 years ago

Great. Would you tell me how? What was the problem? Anything I should fix here?

kaydxh commented 2 years ago

Sorry, it could be a misuse of ffmepg api。 You do not need to do anything。

nschlia commented 2 years ago

OK. Thanks! :)