Uploading a large AVCHD video file to facebook - facebook

What is the best way to upload a ~700MB of AVCHD (1080p, 50fps) video file to facebook to get the best performance?
Uploading it the regular way gets video and audio out of sync, and the video appears "stuttering"...
Maybe convert it to so some sort of format?
Thanks!

user handbrake (http://handbrake.fr) to convert it into mp4 format (the normal preset).

Related

What are Facebook Messenger audio message formats?

I'm using Facebook Messenger to send an audio file to my bot. The webhook call that Facebook sends me includes a URL, which is the audio file and when I download it it's in .mp4 format (weird, since it's supposed to be audio not video).
I didn't find any documentation as to why it's .mp4, and whether there is the option to get a different format from Facebook. Anyone knows anything about this?
Wikipedia, as found by searching for "mpeg 4 audio" using Google
MPEG-4 Part 14 or MP4 is a digital multimedia container format most
commonly used to store video and audio, but it can also be used to
store other data such as subtitles and still images.
I can confirm this is the case as I've pulled one of these files down as well.

Converting video to .mp4 format within the app before uploading to server

Can u help me in this issue ? I am recording videos through my appliction.Is it posiible to record the video in the mp4 format or otherwise i need to convert it to .mp4 format recording it in default format before uploading it to the server? Is there any possibilities to convert the video to .mp4 format through coding, if possible please post a sample for it.
See Using FFMPEG library with iPhone SDK for video encoding

how to convert data to mp4 format

in my apps im able downloaded a short video file from my server using NSURLConnection but the data i received is in data format which cannot be played using MPMoviePlayerViewController. My question is: it is possible to convert NSdata to mp4 file? and how do i play it using MPMoviePlayerViewController. would really appreciate some code snippets cos i'm at a lost. Thanks in advance.
Look at AVAssetWriter. This allows you to encode image frames and audio into a MOV or MP4 file using hardware-accelerated methods where possible.

Playing .flv files on iphone

I have a webservice returning .flv file, it has to be played in iphone application, how do i play a .flv (flash file) in iphone?
Does anyone has faced this scenario? Programmatically is it possible to convert to some format and play in iphone?
Thanks.
IPhone doesn't and judging by the Apple official statements won't ever (or at least in the forseeable future) support flash content.
Converting the content to another format on the server side should be easy to do and would allow content playback on an iDevice.
SInce the video is probably already h.264 encoded inside the FLV container, you may want to try FLV Extract on the server to avoid recompression:
http://www.videohelp.com/tools/FLV_Extract
Basically you just need to run it once for each of the videos on the server and keep the results around.
I would recommend setting up your webservice to use something like ffmpeg ( http://www.ffmpeg.org/ ) to convert the .flv file to an mp4 file which can be played directly from the iPhone's web browser.
Pioto and Josaih are on the right track in suggesting that you should convert the video server-side using a tool like FFMpeg. As far as I know there is zero support for flv in any part of iOS, so you'd be unable to transcode it locally. Even if you could, it would make your users angry, since transcoding is a resource-intensive process that would kill their battery life and take a significant amount of time.
So, your solution is to transcode your videos to h.264 server-side. However, I'd caution against transcoding from flv->h.264 if there are any other options available. If you have the original, uncompressed (or at least less-compressed) source video available, you'll get higher-quality video by transcoding that to h.264. Each time lossy compression (eg, squeeze or h.264) is used on a file, you lose some information and quality. If you've ever seen a 3rd or 4th generation copy of a VHS tape, you can understand what I'm getting at.
Once you have a h.264 formatted video, you can play it on iOS. Not sure about the exact details of this.
You may be able to use ffmpeg or something on your server to transcode it to H.264. I'm not so sure you would really want to do that transcoding on the phone. Given Apple's current stance on Flash, this is probably your best option.
For FLV files, what I do is I upload them on Google Drive and watch them from Google Drive app.

Flv file set thumbnail from frame

I have many videos in .flv and .mp4 formats. I store then in one Windows folder and re-name after downloading so that it becomes easy to find one that I want to play.
It would be best if I can create thumbnail from one of the frames of video file.
Is there a program/utility in which I can open the .flv or .mp4 file, play, pause and take the screen/frame and set it as thumbnail of that file?
I did my best to find it on internet but failed hence thought to reach out to Gurus.
Thanks in advance,
Jay
I think ffmpeg and mencoder can do this