Skip to content

Instantly share code, notes, and snippets.

@AlphaAtlas
Last active November 15, 2019 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AlphaAtlas/195d7df97a1794e6e9c72d95458648f7 to your computer and use it in GitHub Desktop.
Save AlphaAtlas/195d7df97a1794e6e9c72d95458648f7 to your computer and use it in GitHub Desktop.
Binking
#Run on https://colab.research.google.com/ for free!
import os, tempfile, shutil, sys
%cd /
#mount gdrive
googpath = os.path.abspath(os.path.join("gdrive", "My Drive"))
if not os.path.isdir(googpath):
from google.colab import drive
drive.mount('/gdrive')
#!/bin/bash -c "$(curl -sL https://git.io/vokNn)"
!sudo dpkg --add-architecture i386
!wget -nc https://dl.winehq.org/wine-builds/winehq.key
!sudo apt-key add winehq.key
!sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
!sudo apt update
!sudo apt install --install-recommends winehq-stable xvfb
%cd /
%cd "/gdrive/My Drive/RADVideo"
#!Xvfb :0 -screen 0 1024x768x16 & DISPLAY=:0
!xvfb-run wine Binkc.exe ../PNGs/?.jpeg*1-34 outtest.bik /v100 /d0 /m2.0 /l-1 /o /p8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment