Guest User

Untitled

a guest
Aug 20th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. I have to convert files updloaded by users to both mp4 and web8. I'm running into problems with vertical (portrait mode) videos.
  2.  
  3. For example, Using ffprobe shows that my input.mp4 file is (1280*720, with a rotate 90), The video was shot vertically using android, and plays sideways in VLC, like the following diagram
  4.  
  5. -------
  6. | o-< |
  7. -------
  8.  
  9. So i applied the following transpose:
  10. ffmpeg -i input.mp4 -vf transpose=1 intermediate.mp4
  11.  
  12. The resulting video plays vertically in VLC (it looks fine)
  13. ffprobe shows (width:720, height:1280, aspect ratio 9:16)
  14.  
  15. If i had to take this intermediate.mp4 file and convert is into 640*360, to play in the web, what do i have to do?
  16. I assume black bars need to be added to the side so that the video doesn't get stretched...how do i do this?
Advertisement
Add Comment
Please, Sign In to add comment