Solved

convert .mp4 to .webm

Posted on 2013-12-23
6
483 Views
Last Modified: 2015-04-22
Hello:

The newest Android phones that output .mp4 videos when converted to .webm the video flips upside down. Is there a way to tell a regular .mp4 video and a .mp4 video taken from an Android phone?

Dan
0
Comment
Question by:RecipeDan
  • 3
  • 2
6 Comments
 
LVL 70

Expert Comment

by:Merete
ID: 39737240
Hi Dan,
What media player are you using?
Upside down video playback can be caused by several things.
why use> .webm
A valid WebM file can only contain VP8 video and Vorbis audio in a .webm container
http://www.webmproject.org/about/faq/
Try Gspot~> Is there a way to tell a regular .mp4 video and a .mp4 video taken from an Android phone?
GSpot establishes what video and audio codecs are required to play any video. Shows framerate, duration, aspect ratio, bitrates, structure info, and more. Supports AVI, MPG, VOB, DVD, VCD, SVCD, MP4, FLV, MOV, QT, RM, SWF, WMV, ASF.
http://www.videohelp.com/tools/GSpot
Borrowed answer I sourced from here
Android Camera recording video but plays upside down
Motorola phones have problem in playing the video which is recorded in portrait mode.
In order to overcome the rotation of the video, the best solution I have adopted was to upload the video to the server and run ffmpeg on using the command ffmpeg -i input.mp4 -c:v mpeg4 -c:a copy -c:s copy -vf "transpose=2" output.mp4

ffmpeg
http://www.videohelp.com/tools?toolsearch=ffmpeg&submit=Search&convert=&s=&orderby=Name&hits=50
0
 
LVL 1

Author Comment

by:RecipeDan
ID: 39738306
I created my own video player in HTML5. I took a video using my Samsung Note 3 and when I converted it to .webm using FFMPEG it converted ok but flipped upside down. When I tested another .mp4 video that I downloaded from the web it converted ok with no issues.

I am familiar with the issues with phones and trying to convert the video into different formats.

I am trying to figure out if someone uploaded a video, how would I know if it was taken with a phone, camcorder, or something else?
0
 
LVL 70

Accepted Solution

by:
Merete earned 500 total points
ID: 39739745
Hi RecipeDan
And Merry christmas,
With regards to your personal programmed media player I can't determin how or what compression language you use
I created my own video player in HTML5
may be of assistance
If you want to add video to your site, the easy way is to upload it to YouTube or a similar service. CMS systems like WordPress have JavaScript solutions to make it all compatible.
But what if you don’t want to use YouTube? If you’re making your own CMS or web application, you can try HTML5 Video.
http://www.thescriptiest.com/2011/12/html5-video-whats-the-deal/
I am trying to figure out if someone uploaded a video, how would I know if it was taken with a phone, camcorder, or something else?
Unless the video camera has enabled to show the metadata I don't think it's possible to get that information>>What camera was used?
I don't know how to I should say incase there is some expert out there that does have an understanding how cameras write background information to the video, with pictures it is possible.
Could also be a big security risk/

Have you tried right click the picture -> properties -> summary -> advanced. There is general/extended EXIF data there.
Or an application that can read the EXIF information embedded in an image.
For that there are many available, including some web browser add-ins.
IrfanView  and if you install its add-ins you can hit "i" to find a button to display EXIF information.
Exif Viewer add on for firefox
https://addons.mozilla.org/en-US/firefox/addon/exif-viewer/
0
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 1

Author Closing Comment

by:RecipeDan
ID: 39740504
Thank you for your assistance.
0
 
LVL 70

Expert Comment

by:Merete
ID: 39742856
Glad to have helped thankyou
0
 

Expert Comment

by:Charlene Figer
ID: 40737468
There is another way to solve your issue.

First get a tool to rotate your source MP4 files and then convert MP4 to WebM format.

To accomplish the above two tasks, personally recommend a detailed guide here.

The guide introduces a powerful tool to convert MP4 to WebM.  The tool mentioned in the guide also has the feature of rotating video.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about a problem I had getting the GPS LocationListener working.
If your app took Google’s lash recently, here are the 5 most likely reasons.
Viewers will learn how to create a new project within Adobe Encore and the basic layout of the software.
This video is in connection to the article "The case of a missing mobile phone (https://www.experts-exchange.com/articles/28474/The-Case-of-a-Missing-Mobile-Phone.html)". It will help one to understand clearly the steps to track a lost android phone.

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now