Skip to content
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

Add Python bindings using SIP #1082

Merged
merged 1 commit into from
May 24, 2018
Merged

Conversation

aronbierbaum
Copy link
Contributor

Pull is still in progress, but wanted to get something up to gauge interest and get initial feedback.

from PyQt5 import QtWidgets
import QtAV

app = QtWidgets.QApplication([])

renderer = QtAV.VideoOutput()
renderer.widget().show()

player = QtAV.AVPlayer()
player.setRenderer(renderer)
player.play(r"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4")

app.exec_()

Remaining Tasks/Open Questions

  • Add bindings for the remainder of the API.
  • Allow limiting the bindings to a subset of the API. The idea is to limit the size of the Python module. This may end up not being useful if the size difference isn't too dramatic.
  • Port a few more of the examples from C to Python.

@aronbierbaum aronbierbaum force-pushed the python_bindings branch 3 times, most recently from 12e17b4 to 79795f1 Compare May 15, 2018 17:24
@wang-bin wang-bin merged commit 7793e94 into wang-bin:master May 24, 2018
@wang-bin
Copy link
Owner

Thanks. I don't use python, but it might be useful for others

@aronbierbaum aronbierbaum deleted the python_bindings branch July 12, 2018 19:32
@yinguoxiangyi
Copy link

Pull is still in progress, but wanted to get something up to gauge interest and get initial feedback.

from PyQt5 import QtWidgets
import QtAV

app = QtWidgets.QApplication([])

renderer = QtAV.VideoOutput()
renderer.widget().show()

player = QtAV.AVPlayer()
player.setRenderer(renderer)
player.play(r"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4")

app.exec_()

Remaining Tasks/Open Questions

  • Add bindings for the remainder of the API.
  • Allow limiting the bindings to a subset of the API. The idea is to limit the size of the Python module. This may end up not being useful if the size difference isn't too dramatic.
  • Port a few more of the examples from C to Python.

could you please tell how to use the configure,py and .sip files to build pyd packages ? I use the order "python configure.py --qtav-base-dir=D:\work\temp\QtAV\src\QtAV --sip D:\work\temp\QtAV\python\sip\QtAV" ,but error " Error: 'D:\work\temp\QtAV\python\sip\QtAV -V' did not generate any output." occured. It would be very helpful to know the correct order to build python packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants