SELECT 
  video_id, 
  product_id 
FROM 
  cscart_ab__video_gallery 
WHERE 
  product_id IN (
    2512, 2511, 2524, 2514, 2519, 2592, 2593, 
    2510, 2594, 2521, 2513, 2522
  )

Query time 0.00033

JSON explain

{
  "query_block": {
    "select_id": 1,
    "table": {
      "table_name": "cscart_ab__video_gallery",
      "access_type": "range",
      "possible_keys": ["product_id"],
      "key": "product_id",
      "key_length": "3",
      "used_key_parts": ["product_id"],
      "rows": 12,
      "filtered": 100,
      "attached_condition": "cscart_ab__video_gallery.product_id in (2512,2511,2524,2514,2519,2592,2593,2510,2594,2521,2513,2522)",
      "using_index": true
    }
  }
}

Result

video_id product_id
75 2510
70 2511
69 2512
77 2513
72 2514
79 2519
80 2521
78 2522
71 2524
73 2592
74 2593
76 2594