bakape / thumbnailer

Go media thumbnailer
MIT License
152 stars 36 forks source link

ffmpeg: Invalid data found when processing input #58

Closed Chiiruno closed 4 years ago

Chiiruno commented 4 years ago

Happens with vp9 webm encoded with -threads 16 -row-mt 1

[libvpx-vp9 @ 0x7f784c3d7800] Failed to decode frame: Bitstream not supported by this decoder
[libvpx-vp9 @ 0x7f784c3d7800] Additional information: Unsupported bitstream profile

Probably need to upgrade to ffmpeg 4.

bakape commented 4 years ago

Yes, upgrade FFmpeg.

On Mon, 11 Nov 2019, 09:50 チルノ, notifications@github.com wrote:

Happens with vp9 webm encoded with -threads 16 -row-mt 1

[libvpx-vp9 @ 0x7f784c3d7800] Failed to decode frame: Bitstream not supported by this decoder [libvpx-vp9 @ 0x7f784c3d7800] Additional information: Unsupported bitstream profile

Probably need to upgrade to ffmpeg 4.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/bakape/thumbnailer/issues/58?email_source=notifications&email_token=AB347MGP3MG2VZJE2CMCCQTQTEFETA5CNFSM4JLR2JIKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HYKVXOQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB347MCXIDUJFUR3KHHLL2LQTEFETANCNFSM4JLR2JIA .

Chiiruno commented 4 years ago

@bakape I was wondering, why not just use https://github.com/dirkvdb/ffmpegthumbnailer for videos?

Chiiruno commented 4 years ago

Hm, can't output as webp, and I imagine it's non-trivial to get the image data itself to do that in thumbnailer.

Chiiruno commented 4 years ago

Not a bug, it's just that debian buster has an older version of libvpx. Is there a way to work around this in thumbnailer?

Chiiruno commented 4 years ago

Also, this has nothing to do with row-mt most likely, it seems to happen with vp9 video streams converted from h.265.

bakape commented 4 years ago
  1. apt build-dep ffmpeg libvpx
  2. Compile and install fresher libvpx
  3. Compile and install fresher ffmpeg
  4. go clean --cache
  5. Rebuild project
Chiiruno commented 4 years ago

That worked, we should probably add to the readme a minimum version for them. https://chromium.googlesource.com/webm/libvpx/+/refs/tags/v1.8.1 https://github.com/FFmpeg/FFmpeg/releases/tag/n4.2.1