Page 1 of 1

[indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0! decavcodecvWork: avcodec_open failed

Posted: Sun May 20, 2018 2:07 pm
by dawesc
Description of problem or question:
Trying to transcode ts stream to mp4 consistently getting this error:

Code: Select all

[indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0!
[17:28:17] decavcodecvWork: avcodec_open failed
Steps to reproduce the problem (If Applicable):
Try to transcode one of these TS streams
/usr/local/bin/HandBrakeCLI --preset-import-file "/mnt/PlexRecordings/preset.json" -i "/mnt/PlexRecordings/TV/Coronation Street (1960)/Season 2018/Coronation Street (1960) - 2018-05-16 12 30 00 - Episode 05-16.ts" -o "/mnt/PlexRecordings/BackupMP2/Coronation Street (1960) - 2018-05-16 12 30 00 - Episode 05-16.ts.2843.mp4" --preset "Super HQ 1080p30 Surround MP3" --decomb bob

HandBrake version (e.g., 1.0.0):
1.1.0

Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Freenas running 11.1-STABLE

HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

[07:04:28] hb_init: starting libhb thread
[07:04:28] thread 80d807000 started ("libhb")
HandBrake 1.1.0 (2018052000) - FreeBSD x86_64 - https://handbrake.fr
8 CPUs detected
Opening /mnt/PlexRecordings/TV/Coronation Street (1960)/Season 2018/Coronation Street (1960) - 2018-05-16 12 30 00 - Episode 05-16.ts...
[07:04:28] CPU: Intel(R) Core(TM) i7-4770K CPU @ 3.50GHz
[07:04:28]  - Intel microarchitecture Haswell
[07:04:28]  - logical processor count: 8
[07:04:28] hb_scan: path=/mnt/PlexRecordings/TV/Coronation Street (1960)/Season 2018/Coronation Street (1960) - 2018-05-16 12 30 00 - Episode 05-16.ts, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /mnt/PlexRecordings/TV/Coronation Street (1960)/Season 2018/Coronation Street (1960) - 2018-05-16 12 30 00 - Episode 05-16.ts
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[07:04:28] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
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
[07:04:28] dvd: not a dvd - trying as a stream/file instead
[07:04:28] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[07:04:28] Found the following PIDS
[07:04:28]     Video PIDS : 
[07:04:28]       0x100 type H.264 (0x1b) (PCR)
[07:04:28]     Audio PIDS : 
[07:04:28]       0x101 type LATM AAC (0x11)
[07:04:28]     Subtitle PIDS : 
[07:04:28]     Other PIDS : 
[07:04:28] stream id 0x101 (type 0x11 substream 0x0) audio 0x101
[07:04:28] scan: decoding previews for title 1
[07:04:28] file is MPEG Transport Stream with 188 byte packets offset 0 bytes
[indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0!
[07:04:28] decavcodecvWork: avcodec_open failed
[indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0!
[07:04:28] decavcodecvWork: avcodec_open failed
[indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0!
[07:04:28] decavcodecvWork: avcodec_open failed
[qdmc @ 0x80dd4a600] extradata missing or truncated
[07:04:28] no info on audio type 131072/0x15032 for id 0x101
[indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0!
[07:04:28] decavcodecvWork: avcodec_open failed
[indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0!
.
.
.

[07:04:31] decavcodecvWork: avcodec_open failed
[indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0!
[07:04:31] decavcodecvWork: avcodec_open failed
[indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0!
[07:04:31] decavcodecvWork: avcodec_open failed
[indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0!
[07:04:31] decavcodecvWork: avcodec_open failed
[indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0!
[07:04:31] decavcodecvWork: avcodec_open failed
[07:04:31] hb_ts_stream_decode - eof
[07:04:31] Warning: Could not read data for preview 1, skipped
[07:04:31] stream: 44179 good frames, 0 errors (0%)
[07:04:31] libhb: scan thread found 0 valid title(s)
No title found.
HandBrake has exited.



Re: [indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0! decavcodecvWork: avcodec_open failed

Posted: Sun May 20, 2018 5:54 pm
by dawesc
The full activity log can be found at:
https://www.dropbox.com/s/oxjnbcjjnp50w ... e.txt?dl=0

Re: [indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0! decavcodecvWork: avcodec_open failed

Posted: Sun May 20, 2018 6:59 pm
by s55
Looks like either the file has corrupt/invalid header information, Or there is a decoder bug in libav.
You might try running the file through a stream repair first.

It looks like libav is trying to use the indeo3 decoder which seems wrong.

If stream repair doesn't work, I'm afraid there is no workaround. You won't be able to encode this file with HandBrake for the time being. You might try ffmpeg directly.

Re: [indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0! decavcodecvWork: avcodec_open failed

Posted: Tue May 29, 2018 2:47 pm
by dawesc
That's a shame thanks! I will try to run under ASAN which might reveal some clues as it's happening with every stream i record at the moment (it was working great until some dependent lib got updated on my FreeBSD machine :-) ) thanks a lot for your advice

Re: [indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0! decavcodecvWork: avcodec_open failed

Posted: Wed May 30, 2018 8:39 am
by BradleyS
We just switched from Libav to FFmpeg 4.0 on git master, so this may be fixed. However, I have not yet tested on FreeBSD and the build dependencies in the documentation will be out of date until I do. You will need speex and lzma packages.

Re: [indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0! decavcodecvWork: avcodec_open failed

Posted: Wed May 30, 2018 8:47 am
by dawesc
oh wicked ok thanks! I'll hit that then!

Re: [indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0! decavcodecvWork: avcodec_open failed

Posted: Wed May 30, 2018 9:08 pm
by dawesc
oooooo it's looking promising; just to let you know therefore that this both fixes that issue and also works on FreeBSD well!!! thanks a lot!

Re: [indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0! decavcodecvWork: avcodec_open failed

Posted: Wed May 30, 2018 9:33 pm
by dawesc
Ok yep totally 100% successful and even handling files that were resulting in error -11 previously, many thanks for all your hard work

Re: [indeo3 @ 0x80dd4a100] Invalid picture dimensions: 0 x 0! decavcodecvWork: avcodec_open failed

Posted: Thu May 31, 2018 5:12 am
by BradleyS
Great! :D