Answers.Body: <p>Assuming your editor can rotate videos, use</p>
  
  <pre><code>ffmpeg -i "recording6.mp4" -vf "transpose=1" -vcodec dnxhd -r 60 -b:v 36M "recording6.mov"
  </code></pre>
  
  <p>This will rotate the video, so the 1080x1920 video becomes 1920x1080.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-03T08:59:02.820Z
Answers.Text: Hey thanks for your suggestion. Ffmpeg was quite happy to do that conversion, but both Premiere and After Effects (CC with all updates installed) failed to import the newly created file. They both work with other DNxHD files in a quicktime container, so it's probably not a codec issue
Answers.UserDisplayName: setagana
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-03T10:02:28.367Z
Answers.Text: What does `ffprobe` say for the created file?
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-03T10:46:46.803Z
Answers.Text: Not used ffprobe before, so hopefully this is the output you need:  
    
      Metadata:  
          major_brand: qt  
          minor_version: 512  
          compatible_brands: qt  
          encoder: Lavf57.34.103  
      Duration: 00:00:25.48, start: 0.000000, bitrate: 90437 kb/s  
          Stream #0:0(eng): Video: dnxhd (AVdn / 0x6E645641), yuv422p(tv, bt709/unkown/unknown), 1920x1080, 90439 kb/s, 60 fps, 60tbr, 15360 tbp (default)  
      Metadata:  
          handler_name: DataHandler  
          encoder : Lavc57.38.100 dnxhd
Answers.UserDisplayName: setagana
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-03T11:53:26.580Z
Answers.Text: I just ran my command on a rotated MP4 I had, and the MOV opened fine in Premiere CC 2015.2 - 9.2.0 (41) and AE CC 2015.2 13.7.0 124 - does your converted file play ok in VLC or QT?
Answers.UserDisplayName: Gyan
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-05-03T12:45:29.153Z
Answers.Text: I am an idiot, I was trying to import one of the failed files from Friday in Premiere. The new file created with the transpose filter works perfectly!
Answers.UserDisplayName: setagana
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-29T15:25:34.163Z
Answers.LastActivityDate: 2016-04-29T15:25:34.163Z
Answers.UserDisplayName: Gyan
Body: <p>I used the Android SDK to record some steps for a tutorial video and am having some difficulty working with the footage. First of all, it's of a variable framerate and secondly it's in 1080:1920 - vertical 1080p.</p>
  
  <p>I had hoped to use ffmpeg to transcode to DNxHD but I can't find the right video filter (scale? hflip?) to squeeze it into a resolution that DNxHD supports while retaining the aspect ratio.</p>
  
  <p>I've tried:</p>
  
  <pre><code>ffmpeg -i "recording6.mp4" -vf "scale=-1:1080" -vcodec dnxhd -r 60 -b:v 36M "recording6_DNxHD.mov"
  
  ffmpeg -i "recording6.mp4" -vf "scale=1920:1080" -vcodec dnxhd -r 60 -b:v 36M "recording6_DNxHD.mov"
  
  ffmpeg -i "recording6.mp4" -vf hflip -vcodec dnxhd -r 60 -b:v 36M "recording6_DNxHD.mov"
  
  ffmpeg -i "recording6.mp4" -vf vflip -vcodec dnxhd -r 60 -b:v 36M "recording6_DNxHD.mov"
  </code></pre>
  
  <p>The first fails because of an unsupported resolution, the second works but changes the aspect ratio, and the third and fourth also fail due to unsupported resolutions.</p>
  
  <p>I realize there are other codecs which are more forgiving than dnxhd in terms of resolution, but I really don't want to lose any detail at this step. So if anyone knows of one which is similarly visually-lossless I'm open to trying it.</p>
  
  <p>Any help you can offer would be much appreciated.</p>
  
Tags: <ffmpeg><transcoding>
Title: Transcoding vertical video to an intermediate codec
UserDisplayName: setagana
ThreadText: # Transcoding vertical video to an intermediate codec
  
  (Asked by: username_0 on 2016-04-29)
  
  I used the Android SDK to record some steps for a tutorial video and am having some difficulty working with the footage. First of all, it's of a variable framerate and secondly it's in 1080:1920 - vertical 1080p.
  
  I had hoped to use ffmpeg to transcode to DNxHD but I can't find the right video filter (scale? hflip?) to squeeze it into a resolution that DNxHD supports while retaining the aspect ratio.
  
  I've tried:
  
  ```
  ffmpeg -i "recording6.mp4" -vf "scale=-1:1080" -vcodec dnxhd -r 60 -b:v 36M "recording6_DNxHD.mov"
  
  ffmpeg -i "recording6.mp4" -vf "scale=1920:1080" -vcodec dnxhd -r 60 -b:v 36M "recording6_DNxHD.mov"
  
  ffmpeg -i "recording6.mp4" -vf hflip -vcodec dnxhd -r 60 -b:v 36M "recording6_DNxHD.mov"
  
  ffmpeg -i "recording6.mp4" -vf vflip -vcodec dnxhd -r 60 -b:v 36M "recording6_DNxHD.mov"
  
  ```
  
  The first fails because of an unsupported resolution, the second works but changes the aspect ratio, and the third and fourth also fail due to unsupported resolutions.
  
  I realize there are other codecs which are more forgiving than dnxhd in terms of resolution, but I really don't want to lose any detail at this step. So if anyone knows of one which is similarly visually-lossless I'm open to trying it.
  
  Any help you can offer would be much appreciated.
  
  **Tags:** ffmpeg, transcoding
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-04-29. Score: 1 | Accepted answer
  
  Assuming your editor can rotate videos, use
  
  ```
  ffmpeg -i "recording6.mp4" -vf "transpose=1" -vcodec dnxhd -r 60 -b:v 36M "recording6.mov"
  
  ```
  
  This will rotate the video, so the 1080x1920 video becomes 1920x1080.
  
  > **Comments:**
  > **username_0**: Hey thanks for your suggestion. Ffmpeg was quite happy to do that conversion, but both Premiere and After Effects (CC with all updates installed) failed to import the newly created file. They both work with other DNxHD files in a quicktime container, so it's probably not a codec issue  
  > **username_1**: What does `ffprobe` say for the created file?  
  > **username_0**: Not used ffprobe before, so hopefully this is the output you need:          Metadata:           major_brand: qt           minor_version: 512           compatible_brands: qt           encoder: Lavf57.34.103       Duration: 00:00:25.48, start: 0.000000, bitrate: 90437 kb/s           Stream #0:0(eng): Video: dnxhd (AVdn / 0x6E645641), yuv422p(tv, bt709/unkown/unknown), 1920x1080, 90439 kb/s, 60 fps, 60tbr, 15360 tbp (default)       Metadata:           handler_name: DataHandler           encoder : Lavc57.38.100 dnxhd  
  > **username_1**: I just ran my command on a rotated MP4 I had, and the MOV opened fine in Premiere CC 2015.2 - 9.2.0 (41) and AE CC 2015.2 13.7.0 124 - does your converted file play ok in VLC or QT?  
  > **username_0**: I am an idiot, I was trying to import one of the failed files from Friday in Premiere. The new file created with the transpose filter works perfectly!  
  
  ---
  
  