Index: impressive.py
--- impressive.py.orig
+++ impressive.py
@@ -1059,9 +1059,9 @@ def StopMPlayer():
     # first, ask politely
     try:
         if Platform.use_omxplayer and VideoPlaying:
-            MPlayerProcess.stdin.write('q')
+            MPlayerProcess.stdin.write('q'.encode())
         else:
-            MPlayerProcess.stdin.write('quit\n')
+            MPlayerProcess.stdin.write('quit\n'.encode())
         MPlayerProcess.stdin.flush()
         for i in range(10):
             if MPlayerProcess.poll() is None:
@@ -5576,7 +5576,7 @@ class VideoActions(BaseDisplayActions):
         cmd = omxplayer_cmd if Platform.use_omxplayer else (mplayer_cmd + '\n')
         if not cmd: return
         try:
-            MPlayerProcess.stdin.write(cmd)
+            MPlayerProcess.stdin.write(cmd.encode())
             MPlayerProcess.stdin.flush()
         except:
             StopMPlayer()
