Skip to content
This repository has been archived by the owner on Dec 23, 2022. It is now read-only.

element type mismatch 1 != 0 #4

Closed
Erkalos opened this issue Oct 21, 2015 · 9 comments
Closed

element type mismatch 1 != 0 #4

Erkalos opened this issue Oct 21, 2015 · 9 comments
Labels

Comments

@Erkalos
Copy link

Erkalos commented Oct 21, 2015

Hi,

I have a message error when i encode and after the encode, the files are disappeared.
Erreur :
[aac @ 0x7f898c0b3f00] element type mismatch 1 != 0

The video : -link removed by FallingSnow-
Screen of error : http://prntscr.com/8tmgue

The command use to do this : ./h265ize -n fr -q 19 -d h265 Ushio.to.Tora.S01E01.VOSTFR.1080p.WEBRip.x264-HORiZON.mkv

Thanks.
Regards.

@FallingSnow
Copy link
Owner

Unfortunately these are exceptions thrown by handbrake. h265ize has no connection to that error. Unless the encoding doesn't turn out how you expect handbrake's exceptions are pretty safe to ignore. I would assume this error is caused by the previous encoder used to create Ushio.to.Tora.S01E01.VOSTFR.1080p.WEBRip.x264-HORiZON.mkv not meeting the aac specification.

Anyway, I would encode about 10%, end the process, and check if the audio is ok. If it's good and you don't find any problems, I would just ignore the error. Scratch that. If you end the process it will delete the encode. You should be able to find the encoding-in-progress-#####.mkv in your /tmp directory. Just copy that somewhere and try playing it.

If you do find a problem with the audio, you might not be able to use handbrake.

I'll see if I can get your video to work. I'll respond within the next day.

@Erkalos
Copy link
Author

Erkalos commented Oct 21, 2015

Thanks for your answers quick :)
I've already done many times the encode but every times the encoded files are missing : no in temporary repertories or destination final.
So if you have a idea where they can be ?
In the destination repertory (h265), the repertory is created but it is also empty. :/

@Erkalos
Copy link
Author

Erkalos commented Oct 21, 2015

more details : http://prntscr.com/8tsrl6
nothing in /tmp

Error 127 : http://stackoverflow.com/questions/4828083/ffmpeg-php-error-code-127, http://stackoverflow.com/questions/7239380/phps-exec-not-executing-command-for-ffmpeg

In the script you use /bin/ffmpeg and for me is not here but here /usr/bin/ffmpeg.
I try that and tell you if it works

Now another error : http://prntscr.com/8ttj84
error 1...

@FallingSnow
Copy link
Owner

This is very strange. I h265ized your video and it worked flawlessly, same command and everything. Even got french subs on default :D. Just as a note; your should get more aggressive with your quality because you're only going to see a drop of 552MB to 487MB. Try 20 rather than 19.

What distro are you running?
Can you run ./h265ize -n fr -q 19 -d h265 -v --debug Ushio.to.Tora.S01E01.VOSTFR.1080p.WEBRip.x264-HORiZON.mkv and paste the log?
Also while the encode is running can you give me the output of ls -la $HOME/h265

Make sure your handbrake and ffmpeg are up to date too please.

Edit: here's my log btw

root@sparling ~ # ./h265ize -n fr -q 19 -d h265 Ushio.to.Tora.S01E01.VOSTFR.1080p.WEBRip.x264-HORiZON.mkv
./h265ize: line 18: defaults: option[heaudio]=0: must use subscript when assigning associative array
[h265ize]: Output destination "h265" does not exist. Would you like to create it? [y/N]:
y
[h265ize]: Finding videos...

[h265ize]: Processing Ushio.to.Tora.S01E01.VOSTFR.1080p.WEBRip.x264-HORiZON.mkv...
--------------------------------------------------------------------------------
[h265ize]: Subtitle title was empty. Subtitle title changed to French.
[h265ize]: Handbraking... -----------------------------------------------------
[11:40:26] hb_init: starting libhb thread
[11:40:26] thread 7fb4eaa7e700 started ("libhb")
HandBrake 0.10.2-800-9546038-master (2015090601) - Linux x86_64 - https://handbrake.fr
8 CPUs detected
Opening Ushio.to.Tora.S01E01.VOSTFR.1080p.WEBRip.x264-HORiZON.mkv...
[11:40:26] CPU: Intel(R) Xeon(R) CPU           E5410  @ 2.33GHz
[11:40:26]  - logical processor count: 8
[11:40:26] hb_scan: path=Ushio.to.Tora.S01E01.VOSTFR.1080p.WEBRip.x264-HORiZON.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:251: failed opening UDF image Ushio.to.Tora.S01E01.VOSTFR.1080p.WEBRip.x264-HORiZON.mkv
disc.c:332: error opening file BDMV/index.bdmv
disc.c:332: error opening file BDMV/BACKUP/index.bdmv
[11:40:26] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[11:40:26] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'Ushio.to.Tora.S01E01.VOSTFR.1080p.WEBRip.x264-HORiZON.mkv':
  Metadata:
    title           : Ushio.to.Tora.S01E01.VOSTFR.1080p.WEBRip.x264-HORiZON
  Duration: 00:23:40.16, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 23.98 fps, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS             : 3102058
      BPS-eng         : 3102058
      DURATION        : 00:23:40.129000000
      DURATION-eng    : 00:23:40.129000000
      NUMBER_OF_FRAMES: 34049
      NUMBER_OF_FRAMES-eng: 34049
      NUMBER_OF_BYTES : 550665459
      NUMBER_OF_BYTES-eng: 550665459
      _STATISTICS_WRITING_APP: mkvmerge v7.9.0 ('Birds') 32bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.9.0 ('Birds') 32bit
      _STATISTICS_WRITING_DATE_UTC: 2015-10-16 18:13:31
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-16 18:13:31
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0.1: Audio: aac, 96000 Hz, stereo, fltp (default)
    Metadata:
      BPS             : 160000
      BPS-eng         : 160000
      DURATION        : 00:23:40.160000000
      DURATION-eng    : 00:23:40.160000000
      NUMBER_OF_FRAMES: 66570
      NUMBER_OF_FRAMES-eng: 66570
      NUMBER_OF_BYTES : 28403200
      NUMBER_OF_BYTES-eng: 28403200
      _STATISTICS_WRITING_APP: mkvmerge v7.9.0 ('Birds') 32bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.9.0 ('Birds') 32bit
      _STATISTICS_WRITING_DATE_UTC: 2015-10-16 18:13:31
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-16 18:13:31
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0.2(fre): Subtitle: ass (default)
    Metadata:
      BPS             : 101
      BPS-eng         : 101
      DURATION        : 00:23:37.800000000
      DURATION-eng    : 00:23:37.800000000
      NUMBER_OF_FRAMES: 309
      NUMBER_OF_FRAMES-eng: 309
      NUMBER_OF_BYTES : 17936
      NUMBER_OF_BYTES-eng: 17936
      _STATISTICS_WRITING_APP: mkvmerge v7.9.0 ('Birds') 32bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v7.9.0 ('Birds') 32bit
      _STATISTICS_WRITING_DATE_UTC: 2015-10-16 18:13:31
      _STATISTICS_WRITING_DATE_UTC-eng: 2015-10-16 18:13:31
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
[11:40:26] scan: decoding previews for title 1
[11:40:26] scan: audio 0x1: aac, rate=96000Hz, bitrate=1 Unknown (AAC) (2.0 ch)
Scanning title 1 of 1, preview 50, 100.00 %[11:40:30] scan: 50 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[11:40:30] libhb: scan thread found 1 valid title(s)
+ Using preset: Normal
+ title 1:
  + stream: Ushio.to.Tora.S01E01.VOSTFR.1080p.WEBRip.x264-HORiZON.mkv
  + duration: 00:23:40
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 0/0/0/0
  + support opencl: no
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:23:40
  + audio tracks:
    + 1, Unknown (AAC) (2.0 ch) (iso639-2: und)
  + subtitle tracks:
    + 1, French (iso639-2: fra) (Text)(SSA)
[11:40:30] 1 job(s) to process
[11:40:30] starting job
[11:40:30] Auto Passthru: allowed codecs are AAC, AC3, E-AC3, TrueHD, DTS, DTS-HD, MP3, FLAC
[11:40:30] Auto Passthru: fallback is AC3
[11:40:30] Auto Passthru: using AAC Passthru for track 1
[11:40:30] sync: expecting 34049 video frames
[11:40:30] job configuration:
[11:40:30]  * source
[11:40:30]    + Ushio.to.Tora.S01E01.VOSTFR.1080p.WEBRip.x264-HORiZON.mkv
[11:40:30]    + title 1, chapter(s) 1 to 1
[11:40:30]    + container: matroska,webm
[11:40:30]  * destination
[11:40:30]    + /mnt/os/encoding-in-process-31583.mkv
[11:40:30]    + container: Matroska (libavformat)
[11:40:30]  * video track
[11:40:30]    + decoder: h264
[11:40:30]    + filters
[11:40:30]      + Framerate Shaper (0)
[11:40:30]        + frame rate: same as source (around 23.976 fps)
[11:40:30]      + Crop and Scale (1920:1080:0:0:0:0)
[11:40:30]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1920 * 1080
[11:40:30]    + Output geometry
[11:40:30]      + storage dimensions: 1920 x 1080
[11:40:30]      + pixel aspect ratio: 1 : 1
[11:40:30]      + display dimensions: 1920 x 1080
[11:40:30]    + encoder: H.265 (libx265)
[11:40:30]      + preset:  fast
[11:40:30]      + profile: main
[11:40:30]      + quality: 19.00 (RF)
[11:40:30]  * subtitle track 1, French (track 0, id 0x2) Text [SSA] -> Passthrough
[11:40:30]  * audio track 1
[11:40:30]    + decoder: Unknown (AAC) (2.0 ch) (track 1, id 0x1)
[11:40:30]      + samplerate: 96000 Hz
[11:40:30]    + AAC Passthru
[11:40:30] reader: first SCR 0 id 0x0 DTS 0
x265 [info]: HEVC encoder version 1.7
x265 [info]: build info [Linux][GCC 5.2.0][64 bit] 8bpp
x265 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1 Cache64
x265 [info]: Main profile, Level-4 (Main tier)
x265 [info]: Thread pool created using 8 threads
x265 [info]: frame threads / pool features       : 3 / wpp(17 rows)
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge         : hex / 57 / 2 / 2
x265 [info]: Keyframe min / max / scenecut       : 24 / 240 / 40
x265 [info]: Lookahead / bframes / badapt        : 15 / 4 / 0
x265 [info]: b-pyramid / weightp / weightb / refs: 1 / 1 / 0 / 2
x265 [info]: AQ: mode / str / qg-size / cu-tree  : 1 / 1.0 / 64 / 1
x265 [info]: Rate Control / qCompress            : CRF-19.0 / 0.60
x265 [info]: tools: rd=2 psy-rd=0.30 signhide tmvp fast-intra
x265 [info]: tools: strong-intra-smoothing deblock sao
Encoding: task 1 of 1, 99.82 % (18.52 fps, avg 8.44 fps, ETA 00h00m08s)[12:47:36] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (21.86 fps, avg 8.45 fps, ETA 00h00m02s)[12:47:40] work: average encoding speed for job is 8.449755 fps
Encoding: task 1 of 1, 100.00 % (21.86 fps, avg 8.45 fps, ETA 00h00m02s)[12:47:40] sync: got 34049 frames, 34049 expected
[12:47:40] render: lost time: 0 (0 frames)
[12:47:40] render: gained time: 0 (0 frames) (0 not accounted for)
[12:47:40] h264-decoder done: 34049 frames, 0 decoder errors, 0 drops
x265 [info]: frame I:   1328, Avg QP:15.95  kb/s: 12007.90
x265 [info]: frame P:   7710, Avg QP:17.39  kb/s: 5823.48
x265 [info]: frame B:  25011, Avg QP:23.61  kb/s: 1263.11
x265 [info]: global :  34049, Avg QP:21.90  kb/s: 2714.83
x265 [info]: Weighted P-Frames: Y:1.1% UV:0.9%
x265 [info]: consecutive B-frames: 27.5% 2.6% 2.1% 1.3% 66.5%
[12:47:40] aac-decoder done: 0 frames, 0 decoder errors, 0 drops
[12:47:40] mux: track 0, 34049 frames, 482066099 bytes, 2715.54 kbps, fifo 2048
[12:47:40] mux: track 1, 66570 frames, 28403200 bytes, 160.00 kbps, fifo 4096
[12:47:40] mux: track 2, 309 frames, 18245 bytes, 0.10 kbps, fifo 32
[12:47:40] libhb: work result = 0

Encode done!

HandBrake has exited.
[h265ize]: Handbraking Complete -----------------------------------------------
[h265ize]: Setting subtitle names...
[aac @ 0x55f319f2da00] element type mismatch 1 != 0
[h265ize]: Ushio.to.Tora.S01E01.VOSTFR.1080p.WEBRip.x264-HORiZON encoded successfully.
[h265ize]: Completed!

@Erkalos
Copy link
Author

Erkalos commented Oct 21, 2015

Strange, I think i have all dependencies ... I use this script in containers docker with debian lastest, do you thinks it could be a problem ?
I don't known why I have this error :x

ll :
http://prntscr.com/8ttx0p

@FallingSnow
Copy link
Owner

What your last error says is there is no subtitle in the finished handbrake encoding. Please make sure you handbrake is up to date. Can you give me the output of HandBrakeCLI --version as well?

@Erkalos
Copy link
Author

Erkalos commented Oct 22, 2015

I use docker and I thinks it's the cause of my issue :
apt-get update
apt-get install wget git bc handbrake-cli ffmpeg
cd root
wget https://raw.githubusercontent.com/FallingSnow/h265ize/master/h265ize
chmod +x h265ize

./h265ize -q 20 -n fr Ushio.to.Tora.S01E01.VOSTFR.1080p.WEBRip.x264-HORiZON.mkv
[h265ize]: Finding videos...
find: `file': No such file or directory

[h265ize]: No video files found.

To start the container :
docker run -ti --name test ubuntu:15.10

@Erkalos
Copy link
Author

Erkalos commented Oct 24, 2015

Can you try to run you script inside a container ?

@FallingSnow
Copy link
Owner

Unfortunately I can't. Would you be able to temporarily give me access to one to debug your situation?

@Erkalos Erkalos closed this as completed Nov 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants