-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
QP file output #388
Comments
Thanks, this falls under some of the other open issues to expand on output formats. I think we should add a new command like I would imagine the command to look something like |
Thanks, do you have any ETA? |
Unfortunately no ETA at this time, but in v0.6.3 you can now generate a list of cuts as frame numbers instead of timecodes with a config file. To do this, you can add the following to a config file:
And then use the list-scenes command to generate a CSV file, the first row will be the frames that you need to add
You might be able to wrangle that into a QP file with some bash magic or write a small Python script. If you're using the Python API, the |
Excel can do magic tricks ;) |
Tried your release, sorry for the delay. It works ok but the generated CSV is not properly "standard". I mean: looking at the file, we have a first part with Timecode list and a second part with Scene Number, that are CSV formatted in a really different way each other. Please, write two files so that I can directly import the Scene number and frame in Excel. When you will have time (if you want to ease my CSV file "postprocessing" :) ), simply output a file with a column of plain scene start frames, almost such as the example I did in the first post. |
@tormento if you use the The start frame column should align with the cut points you need for I frames. |
@tormento one thing I'm not totally clear on is how this works with input seeking. Do the frame numbers refer to the encoded output frame numbers, or the frame numbers of the input? For example, if we use start seeking, does the QP need to still start from frame 0, or should it be shifted? |
The QP file tells the encoder (x264/x265) where to force a specific type of frame. In our case, to have a clean scene cut, we need The CSV that PySceneDetect is shifted by 1, compared to encoder convention (wheree first frame is 0), so you need to take the (Start Frame-1) to have the appropriate position. P.S: I think that the |
@tormento Thanks, I should have that working now as a new Invoking it as
Let me know what you think :) |
Will try ASAP. |
Works perfectly, same result as my manual csv to qp conversion. Thank you! You saved me a lot of work! |
* [cli] Add new `save-qp` command (#388) * [cli] Ensure `save-qp` command shifts frame numbers and add tests
x265 (and other software) accepts a .qp file to force a frame type to be applied to a certain frame.
An example is:
to have proper scene change cuts.
Here you can find the syntax.
It can be derived by chapters but it's almost of no use when wanting a clean cut frame per each scene.
Would you mind to add that kind of output?
The text was updated successfully, but these errors were encountered: