A:
I'm using MediaInfo to extract subtitles. You can download the proper language and subtitles file and merge them by creating a single file.
Here's a script I created to extract the subtitle from mediainfo output:
#!/usr/bin/env bash
for i in $(cat MediaInfo.log); do
url=`echo $i | sed -n '3p'`
to_get=`echo $i | sed -n '7p'`
cat $url >./${to_get}-${i}.srt
done
You can play your video with
ffplay "${1}" -vf subtitles=./${to_get}-${i}.srt
Q:
how to turn off "hand moving" in unity by touching or dragging
I don't want my mouse to be dragged by my hands when I touch/drag my mouse.
I'm guessing I need to set some variables?
When I touch my mouse, I want my mouse to move up, then to the right, then back down, then to the left, then back down.
This is how I'm doing it at the moment.
public class : MonoBehaviour
{
//A function that listens for touch events.
void OnTouchDown(TouchEventType e)
{
//An if statement that checks if the left mouse button is pressed down
if (e.rawType == TouchEventType.TouchDown)
{
//Moves the mouse to the left, and down
Application.mouse.SetPosition(Application.mouse.GetPosition() - new Vector2(e.position.x, e.position.y));
Application.mouse.SetPosition(Application.mouse.GetPosition() + new Vector2(e.position.x, e.position.y));
}
}
//A function that listens for mouse events.
void OnMouseDrag(MouseEventType e) be359ba680
Related links:
Comments