wideo jest obracane podczas przesyłania na YouTube, Android

Próbuję przesłać film z karty SD na YouTube za pomocą Androida. Używam interfejsu API Google do przesyłania YouTube. Przesyłanie wideo powiodło się, ale obrót o 180 stopni. Używam następującego kodu -

YouTubeService service = new YouTubeService(Strings.YOUTUBE_CLIENT_ID,Strings.YOUTUBE_DEV_ID);
try{
    service.setUserCredentials("[email protected]", "ag23sjafaar");
} catch (AuthenticationException ex){
    Log.e("AuthenticationError",":"+ex.getMessage());
    return;
}

File videoFile = new File(Strings.VIDEO_PATH);
if(!videoFile.exists()){
    Log.e("FileUploadErr","FileNotFound");
    return;
}

String mimeType = "video/*";
String videoTitle = name;
VideoEntry newEntry = new VideoEntry();
YouTubeMediaGroup mg = newEntry.getOrCreateMediaGroup();
mg.addCategory(new MediaCategory(YouTubeNamespace.CATEGORY_SCHEME,"Travel"));
mg.setTitle(new MediaTitle());
mg.getTitle().setPlainTextContent(videoTitle);
mg.setKeywords(new MediaKeywords());
mg.getKeywords().addKeyword("Travel");
mg.setDescription(new MediaDescription());
mg.getDescription().setPlainTextContent(videoTitle);
MediaFileSource ms = new MediaFileSource(videoFile,mimeType);
newEntry.setMediaSource(ms);
try{
    VideoEntry createdEntry = service.insert(new URL(Strings.YOUTUBE_VIDEO_UPLOAD_URL), newEntry);      
} catch(ServiceException se){
    Log.e("UploadVideo",":" + se.getMessage());         
} catch (MalformedURLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
} catch (IOException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
}

Aktualizacja: Jeśli przeglądam wideo z karty SD i przesyłam na youtube za pomocą emulatora. To działa dobrze.

questionAnswers(0)

yourAnswerToTheQuestion