Giter VIP home page Giter VIP logo

Comments (4)

TheAMM avatar TheAMM commented on June 5, 2024

Post a log (there should be some in the thumbnail directory) or provide a sample file. There's not much for me to go on, here.

from mpv_thumbnail_script.

laichiaheng avatar laichiaheng commented on June 5, 2024

thumbnail_prefer_mpv=no.zip
thumbnail_prefer_mpv=yes.zip

[auto_profiles] Applying profile aspect<2.35 
Playing: Samsung Chasing The Light Demo.ts
[ffmpeg/demuxer] mpegts: start time for stream 1 is not set in estimate_timings_from_pts
[ffmpeg/demuxer] mpegts: Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels): unspecified sample format
[ffmpeg/demuxer] Consider increasing the value for the 'analyzeduration' and 'probesize' options
 (+) Video --vid=1 (hevc 3840x2160 59.940fps)
 (+) Audio --aid=1 (aac)
mesa: for the -simplifycfg-sink-common option: may only occur zero or one times!
mesa: for the -global-isel-abort option: may only occur zero or one times!
[ffmpeg] AVHWFramesContext: Failed to create surface: 2 (resource allocation failed).
[ffmpeg] AVHWFramesContext: Unable to allocate a surface from internal buffer pool.
[auto_profiles] Applying profile UHD 60 
Using hardware decoding (vaapi).
AO: [pulse] 48000Hz stereo 2ch float
VO: [gpu] 3840x2160 vaapi[p010]
[auto_profiles] Applying profile HDR 60 
AV: 00:00:08 / 00:01:34 (10%) A-V:  0.006 DS: 1.000/1


Exiting... (Quit)

from mpv_thumbnail_script.

TheAMM avatar TheAMM commented on June 5, 2024

Using ffmpeg with the script is deprecated,
If the thumbnail generation fails, the sub-process logs should've been in the thumbnail directory, but seems like they don't actually error out. Put mpv_keep_logs=yes in your config and try again (clear out the existing thumbnails so it'll re-run the commands), then link one of the logfiles.
The log you pasted looks to be the stdout from the main process, which complains about hardware decoding not working. This should not happen with the sub-mpvs, because hardware decoding is explicitly disabled for them (assuming you are using the latest script release).

from mpv_thumbnail_script.

TheAMM avatar TheAMM commented on June 5, 2024

I ended up downloading the file myself and seeing what's up. The HDR part is irrelevant; the problem is the container (or a bad mux), which results in broken seeks.
Try it yourself: mpv --pause --start 30 "Samsung Chasing The Light Demo.ts"
The script requires the file to be properly seekable; broken input is broken input.

You can fix the file with ffmpeg -i "Samsung Chasing The Light Demo.ts" -c copy remuxed.mkv or such. This can be thumbnailed.

from mpv_thumbnail_script.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.