0
I have converted my source.flv
video into target.mp4
(h.264 format) by using following command:
ffmpeg -i source.flv -r 25 -b:a 128k -strict -2 -c:v libx264 -preset slow -s 320x240 -b:v 768k -ar 44100 -c:a aac target.mp4;
The target.mp4
video is playing in my computer browser's but it's not playing on the iPhone / iPad when I host my video on an Amazon EC2 instance.
The same target.mp4
video is playing in my computer browser's as well as the iPhone / iPad when I host it some place else.
QuickTime shows the following error when I try opening the video from the EC2 instance:
QuickTime
BYTE_RANGE_ERROR_MESSAGE
i have contacted Amazon development support and waiting for their reply. Until their reply come, i am also doing some google search and found "qt-faststart". Is it useful in my case(i,e progressive downloading in iPhone/iPad) ?? – Shishir Mudliyar – 2012-11-27T06:42:59.927
While not entirely related to your issues, using
– slhck – 2012-11-27T06:47:20.680qt-faststart
to move themoov
atom to the beginning of your MP4 files is definitely encouraged for all kinds of streaming. See: Understanding the MPEG-4 movie atom | Adobe Developer ConnectionThe following are the headers from EC2 instance that we observed through liveheaders in firefox.
[GET /tmp/race.mp4 HTTP/1.1 Host: xxx.com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20100101 Firefox/16.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Connection: keep-alive ]
[HTTP/1.1 200 OK Server: Apache/2.2.15 (CentOS) Etag: "1e15b2-4cf6375252c50" Accept-Ranges: bytes Content-Length: 1971634 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: video/mp4] – Shishir Mudliyar – 2012-11-29T05:58:53.797
And also not getting comprehensive reply from amazon support team , i am working with amazon support to get the appropriate solution – Shishir Mudliyar – 2012-11-29T06:03:49.597
Well, that merely tells you that the server will allow
Accept-Ranges: bytes
, so yeah, it must be blocked along the way. – slhck – 2012-11-29T06:04:09.020