4 ms·
Ask HN: Video format for Web and Mobile?
I'm starting a new start-up and one of the requirements is to be able to show video on the website and various mobile handsets (iphone and droid to start).
I haven't been able to come up with a good strategy at handling this particular part of the requirement. Seems like there isn't really any straight answer, so I guess I'm looking for what have others done to minimize the 'pain in the ass' factor with video right now.
- brk 16y agoBased on going through something similar myself right now... If you don't have to show live video (ie: just video clips), your best bet is probably to convert the video to a number of different formats and/or sizes when it is uploaded, then detect device type from the request info and then serve the appropriate video stream/size.
- evo_9 16y agoYeah that's sort of where I'm leaning too. I thought maybe YouTube might be another way to go but I didn't see a way to make the videos private but still available via a custom Ui (mobile/web).
- Rust 16y agoWith my last client, we found that the proper encoding of a video to h.264 would work equally well as a Flash streaming file, iPhone/iPod/iPad video link, Android video link, and <video> tag source (in browsers that support h.264 - use OGG for Firefox). Realistically, given the different resolution, something like 480x360 (4:3) for mobile devices and 720x480 for browsers is fine for standard definition video.
- evo_9 16y agoThanks, that's a great suggestion. I always get tripped up with the 'container' versus the underlying codec. Edit: thinking about this further, what container did you use that works on everything? Mp4?