Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

convert .mp4 to .webm

Posted on 2013-12-23
6
Medium Priority
?
499 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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
Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

 
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

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

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

A short article about problems I had with the new location API and permissions in Marshmallow
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
Viewers will learn the basics of using Ableton Live's advanced sampler instrument, Sampler. Load new Sampler into an empty MIDI track: Select a sample and drop it into sample window in Sampler: Adjust pitch if necessary with Root Key setting: …
Viewers will learn how to create and use Simpler instruments in Ableton Live. Load new Simpler into an empty MIDI track: Select a sample and drop it into sample window in Simpler: If sample is not pitched at C3, adjust tuning with Transpose para…

715 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