-
Notifications
You must be signed in to change notification settings - Fork 31
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
--sub-source results in Error: Failed to write subtitle stream # frame: Invalid argument. #109
Comments
Thank you for letting me know the issue. I've found out that it is required to insert "pgs_frame_merge" bitstream filter to avoid this error. However, currently the bitstream filter is not included in the ffmpeg dlls, therefore I need to update ffmpeg and rebuild the dlls. Unfortunately, it might take time, as when updating the dlls, I need to test much more compared to ordinary updates. |
no problem, workaround is fine for me - take all the time you need and tell me if you need help with testing something - atm. I'm creating a lot of CI/CD test cases for Intel GPU driver / ffmpeg / qsvenc and some automation scripts |
pgs_frame_merge bsfを適用することで解消するため、これを自動適用するようにする。ただし、これにはlibavcodec.dllの更新が必要。
Thanks. The fix for this issue is now in the code but currently disabled, I'll update ffmpeg dlls once I've gone through tests to make sure the app works fine with the new dlls. |
QSVEnc 7.30 updates ffmpeg libs and now PGS subtitles file can be muxed in with --sub-source. Thanks again for reporting this issue. |
Hello rigaya, I have good news and bad news after testing the 7.30 release. good news: bad news: btw. there is a little typo in the https://github.com/rigaya/QSVEnc/blob/master/QSVEncC_Options.en.md#--sub-source-stringintparam1value1 for --sub-source example section: Example2: --sub-source "<sub_file>":disposition=default;metadata=language=jpn otherwise you get a command line error same goes for https://github.com/rigaya/QSVEnc/blob/master/QSVEncC_Options.en.md#--master-display-string-or-copy-hevc-av1 Example1: --master-display G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,1) |
Thank you, I made another fix with QSVEnc 7.33 fixing the problem with the subtitle. |
re-test with 7.33 successful --sub-source now works without any error and the output is correct fabulous work!!! Thank you very much |
Hello @rigaya
I tried adding an external PGS subtitle to the encoding process using the --sub-source option but it will always result to the following error message and the qsvenc aborts:
workaround: remux the input mkv file and the subtitle with MKVToolNix/mkvmerge into a new mkv file, then qsvenc runs without any error and the resulting file is correct incl. the subtitle and all the other specified options for that subtitle stream
The text was updated successfully, but these errors were encountered: