Try this:
$galleryData = array_map(function($a) {return $a['file'];},$input['gallery']);
If there are other keys, try this variant:
$allowedKeys = array("name","comment","youtube");
$galleryData = array_map(function($a) use ($allowedKeys) {
return array_intersect_key($a['file'],array_flip($allowedKeys));
},$input['gallery']);
Taking into consideration your update, there's no longer such a shortcut. Try this:
$galleryData = array_map(function($a) {
return array(
"comment"=>$a['comment'],
"name"=>$a['file']['name'],
"youtube"=>$a['file']['youtube']
);
},$input['gallery']);