Comments (26)
Ok, I figured out that the change needs to happen in pkg/ffmpeg/encoder_scene_preview_chunk.go. I added the same parameter I found in another module as extra argument to function ScenePreviewVideoChunk:
"-max_muxing_queue_size", "1024", // https://trac.ffmpeg.org/ticket/6375
I rebuilt stash with the docker container and now everything runs fine locally. I cannot push the update to github, so I ask one of the devs to make this change please.
from stash.
@rudi123github did you still get this issue or can it be closed?
from stash.
I fixed this in my local build but the change should go into the development branch.
from stash.
If you file a PR it can get reviewed / worked on. As far as I'm aware this app is far from 1.0 status but whatever works.
from stash.
Okay, I just figured out how to do that. The PR is there now.
from stash.
I am still getting errors when trying to generate preview images.
Since my filename contains spaces, I am not sure if it should be quoted.
Can anyone confirm it works with spaces?
Also the -max_muxing_queue_size 1024
is missing.
msg="ffmpeg error when running command </usr/bin/ffmpeg -v quiet -ss 1562 -y -i /data/MyVideo [x264].mp4 -vframes 1 -q:v 1 -vf scale=160:-1 -f image2 /generated/tmp/thumbnail071.jpg>"
from stash.
Hello, this is a different function. Can you please run this from a terminal:
/usr/bin/ffmpeg -ss 1562 -y -i "/data/MyVideo [x264].mp4" -vframes 1 -q:v 1 -vf scale=160:-1 -f image2 /generated/tmp/thumbnail071.jpg
and post the output here?
from stash.
If I encapsulate the filename with "
it works, otherwise I get errors.
from stash.
@Leopere : I pulled the latest docker image but I am still getting the error above? Could it be that my PR ist not included in the docker build?
from stash.
@ExceptionalError looks like everything I merged was built I wonder why its not working as prescribed. For good measure I've rebuilt it one more time just in case it didn't work properly the last time but I doubt that anything will change.
from stash.
Something changed, there are now quotes but somehow they get escaped:
/usr/bin/ffmpeg -v quiet -ss 2320 -y -i \"/data/MyVideo [x264].mp4\" -vframes 1 -q:v 1 -vf scale=160:-1 -f image2 /generated/tmp/thumbnail080.jpg
from stash.
I have tried some more fixes in #131 - what do you think?
from stash.
I wonder if this is really related to spaces. I have many files with spaces in their names and all of these work without problems (I am on Linux). I think it must be a different character. Does your fixes version work for you?
from stash.
I think it must be a different character
Could you try renaming one of your files like this [MyTag] MyFilename (09.10.2019) [x264].mkv
and see if you get errors, too?
from stash.
@ExceptionalError on linux at least spaces and your naming scheme works fine. The quoted part changes you did to 117 though broke that . #131 breaks the screenshot generation in the linux build also
from stash.
Having this error with the most recent linux build, is this a different issue or is this still unfixed?
ERRO[0354] ffmpeg error when running command </usr/bin/ffmpeg -v quiet -ss 49.612 -y -i /home/jack/Applications/stash/videos/vid.mp4 -vframes 1 -q:v 5 -vf scale=320:-1 -f image2 screenshots/650b216cccc90fdb9bfeeab412c6c06c.thumb.jpg>
ERRO[0354] ffmpeg error when running command </usr/bin/ffmpeg -v quiet -ss 49.612 -y -i /home/jack/Applications/stash/videos/vid.mp4 -vframes 1 -q:v 2 -vf scale=1280:-1 -f image2 screenshots/650b216cccc90fdb9bfeeab412c6c06c.jpg>
from stash.
@bnkai : Thanks for the feedback. Any idea how to proceed?
When executing manually in Docker (with quotes) I can generate the previews successfully.
I changed #131 so it outputs the ffmpeg error message, too - maybe that's a start.
from stash.
@jpegsarebad you can try executing the command manually to see if that produces an error
e.g.
usr/bin/ffmpeg -v quiet -ss 49.612 -y -i /home/jack/Applications/stash/videos/vid.mp4 -vframes 1 -q:v 5 -vf scale=320:-1 -f image2 thumb.jpg
doing that at least we can get a hint if something's wrong with the video file or with the invocation of ffmpeg through stash
@ExceptionalError is the error for all the files or just some specific? you say you used docker, if you use the plain linux binary then instead of docker do you get the same errors? i haven't used the docker but as i said the linux binary doesn't have any problem with spaces or special characters like ( [ + in the filename
from stash.
@bnkai Yes, running the command manually works with no errors and produces the image correctly.
from stash.
@bnkai I get the error message for all my files. When executing the command in the docker image manually, it runs successfully.
Imho #131 needs to be merged so there is at least the error message in the log.
from stash.
All of a sudden it started working, having changed nothing as far as I can remember. But the videos that had already been entered without sprites did not have them, even after running 'generate.' To solve this, I deleted the database and started anew. When I added my videos back in, the error came back.
Now, when using 'generate' I get the following error:
INFO[0941] [generator] generating sprite image for /videos/Nia Nacci and Honey Gold - Do I Know You?.mp4
ERRO[0952] error generating sprite: open vtt/f1f8cc3153dea5f75ca2582cb4d1bf51_sprite.jpg: no such file or directory
EDIT: working again, but only vtts and previews, not any sprites.
from stash.
@ExceptionalError #131 is just waiting on confirmation from @WithoutPants and @bnkai to verify that there's nothing broken in the PR.
from stash.
@ExceptionalError if the error is for all the files have you checked that the folders you use for the metadata files have the right permissions or access rights ?
For #131 a simple extra print doesn't break anything but have you tried that ? i don't have an easy way to force an error just to check that....
from stash.
@jpegsarebad the only think i can think off is also maybe there might be someting wrong with the permissions. have you checked that all the metadata directories are ok?
afaik the sprite images are created in the tmp directory and then concatenated to a single image file in the meta vtt folder
from stash.
Whilst the log output it still not in the current docker build, I mounted the "/generated" folder with the docker compose file and everything seems to be working fine now.
Maybe the folder structure inside the container is not properly created?
from stash.
Since we merged that PR I'm going to close this but feel free to continue the conversation or start a new issue if theres any further discussion to be had.
from stash.
Related Issues (20)
- Enhancing Routing for Iranian Users in Stash
- [RFC] Using UI settings in pluginName.yml HOT 2
- [Bug Report] Warped image aspect ratios in lightbox on iOS/Safari
- [Feature] Track last time scene is displayed in scene list (card/thumb/wall) view and allow filter/sort by this value
- [Bug Report] Markers after splitting a scene are missing from scene Markers edit menu and no markers on newly created scene from split
- [Feature] Adding Profiles ( Users ) HOT 2
- [Feature] Option to associate an O-Event with specific performers in a scene HOT 1
- [Feature] [Definitive] Multiple image support for all objects using corresponding user-defined image attributes
- [Bug Report] groups not added in bulk scene update HOT 2
- [Feature] min/max slider for The Handy
- [RFC] Endpoint in plugins HOT 3
- [Feature] Ability to limit Auto Tag to only tag performers (or studios/tags) in Tagger view
- [Bug Report] develop v0.26.2-56-g6a5dc4e7 filters nullified
- [Bug Report] Gifs in zip are images vs video
- [Feature] Don't access all files in a gallery zip during a clean
- [Feature] Mark an actress or studio as curated HOT 1
- [Bug Report] Firefox has no tag box in tagger view HOT 2
- [Feature] Rename Scenes Tab to Videos HOT 2
- [Feature] Plugin Services available in Stash->Services tab
- [Bug Report] Rounding errors in performer weight field HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stash.