Anime4000 / IFME

Powerful x265 GUI Encoder
https://x265.github.io/
GNU General Public License v2.0
249 stars 54 forks source link

x265 crashes with IFME 7.3 #129

Closed L0Lock closed 6 years ago

L0Lock commented 7 years ago

Hello again ! 😄 Since the 7.3 update, x265 randomly crashes sometimes during the encoding process, no matter what file is encoded or the encoding %. With that error in the console :

av_internkeaved_write_frame(): Broken pipe.64kb/s eta 0:32:30
Error writing trailer of pipe:: Broken pipe

Google told me it's a ffmpeg issue, so i tried to download the latest version, then an older one, but no success.

Thanks for your help.

Anime4000 commented 7 years ago

IFME using nightly builds rather than stable builds. You can get latest plugin package here https://sourceforge.net/projects/ifme/files/plugin/

if still don't have auto update like before

L0Lock commented 7 years ago

I'll try this asap. Thanks for your fast reply.

L0Lock commented 7 years ago

Still crashes :'(

Anime4000 commented 7 years ago

@L0Lock try use stable builds of x265 and FFmpeg? both of them I use nightly builds

L0Lock commented 7 years ago

I try "ffmpeg 3.3.2" and "x265 2.4+13 Stable" now, I'll come back at the end of the job. Hope it'll work.

L0Lock commented 7 years ago

Ok, i end up with a mkv file with audio and subtitles only, video tracks seems to be missing. No error in the console. I notice that the files I downloaded doesn"t have the same names as those in the plugin folder. Maybe I have something to do with that ?

Anime4000 commented 7 years ago

better replace x265 files inside plugin folder. did you try copy command-line that IFME print? and test using cmd?

Anime4000 commented 7 years ago

can you try with IFME 7.4?

L0Lock commented 7 years ago

This new release comes out at the right time, I just got an awfully heavy anime to encode properly. Like average 1GB per 20min episode... I'll come back asap after encoding this.

L0Lock commented 7 years ago

Ok, the first video encoding just finished, didn't crashed, but i got this error instead :

ifme [info]: Run command: "C:\AppInstl\Internet Friendly Media Encoder\plugin\ffmpeg64\ffmpeg" -hide_banner -v error -stats -i "..\video0000_jpn.mp4" -i "..\audio0000_jpn.m4a" -i "..\audio0001_jpn.m4a" -i "..\subtitle0000_fre.ass" -i "..\subtitle0001_fre.ass" -attach "ROSARIO-ITALIC.OTF" -attach "TRAGICBU.TTF" -attach "augie.ttf" -attach "Blokletters-Viltstift_1.ttf" -attach "ROSARIO-BOLDITALIC.OTF" -vcodec copy -acodec copy -scodec copy -map_metadata -1 -map_chapters -1 -metadata application="Internet Friendly Media Encoder v7.4 ('Endless Sky')" -metadata version="IFME v7.4 amd64 windows" -metadata:s:0 language=jpn -metadata:s:1 language=jpn -metadata:s:2 language=jpn -metadata:s:3 language=fre -metadata:s:4 language=fre -metadata:s:5 mimetype="application/vnd.ms-opentype" -metadata:s:6 mimetype="application/x-truetype-font" -metadata:s:7 mimetype="application/x-truetype-font" -metadata:s:8 mimetype="application/x-truetype-font" -metadata:s:9 mimetype="application/vnd.ms-opentype" -y "G:\encode\out\Clannad\Clannad 01 VostFr.mkv"
[matroska @ 00000000027cda00] Attachment stream 3 has no mimetype tag and it cannot be deduced from the codec id.
av_interleaved_write_frame(): Invalid argument
Error writing trailer of G:\encode\out\Clannad\Clannad 01 VostFr.mkv: Invalid argument
frame=    1 fps=0.0 q=-1.0 Lsize=       5kB time=00:00:06.73 bitrate=   5.5kbits/s speed= 498x
ifme [erro]: Damn! Video encoder make a mistake! Not my fault!

Also, i noticed hundreds of yellow Error parsing slice header: byte_align not found at end of header ! right after that :

ifme [info]: Run command: "C:\AppInstl\Internet Friendly Media Encoder\plugin\mp4box\mp4box" -add "video0000_jpn.h265#video:lang=jpn" -new "video0000_jpn.mp4"
HEVC import - frame size 1920 x 1080 at 23.976 FPS

In the output folder, i have an almost empty and unreadable mkv file, next to a "videoname.raw" folder containing, i guess, all the raw streams and attachments supposend to be merged in the mkv file. I guess i just have to do something with mkvtoolnix or something ?

Edit : it just crashed, same "broken pipe" errors. :'(

Anime4000 commented 7 years ago

"broken pipe" error happen during x265 encoding. is it right? I working on 7.5 because of this issue, adding back mkvmerge.

ifme been using nightly update for x265, error can be unpredicted either missing pts or unfinished end frame, you can replace with stable release x265, see how it goes.

L0Lock commented 7 years ago

Yup it's right. I tried stable x265, still fails at merging. :'(

Anime4000 commented 6 years ago

for this kind of issue, if Mkvtoolnix fail, IFME will try copy raw file to output path. need mkvtoolnix return error code so that can trigger copy raw.

if there any other muxer except FFmpeg, make thing easy, since FFmpeg can't add attachment into mkv.

However, try it on version 7.6. this issue remain open

L0Lock commented 6 years ago

Hello again.

During the last few days I've been doing reencoding of about ~100 japanimes and movies files with IFME 7.6 and all of them have been well processed without error nor crash.

I think it's safe to say for now that the problem is solved.

And, for the sake of boasting, here are some stats :

dkm7jmp 1 79ek7ov 1 oilhijt 1

My HDD thanks you !

Anime4000 commented 6 years ago

I can safely close this issue 😄

mikelimtw commented 6 years ago

@Anime4000 I'm using the lastest 7.7 build of IFME and I am getting this error also. So whatever you did between 7.6 and 7.7 it got broken again.

Anime4000 commented 6 years ago

x265 crash?