English 中文(简体)
iPod、iPad iPad 的 MP4 视频播放不当
原标题:FFMPEG: MP4 videos are not playing properly in iPhone, iPod, iPad
  • 时间:2012-05-23 07:16:47
  •  标签:
  • ffmpeg

我将视频从m4v、flv转换为 MP4, 用于 iPhone、iPod、iPad。

我使用以下命令转换这些视频

ffmpeg -y -i video_1336500693.m4v -vcodec libx264 -vpre slow -vpre ipod640 -b 250k -bt 50k -acodec libfaac -ab 56k -ac 2 -s 480x320 video_1336500693.mp4

此 mp4 文件的视频部分运行正常, 但音频不正常 。 我正为此使用 HTML 5 。

音频头8至10秒有效,但音频后不起作用,奇怪的是,如果我往前跳或往后跳,音频工作就会发生故障。

有没有人能说明出了什么问题?

最佳回答

命令略微修改完成此任务 。 我添加了 < code> - ar 48000 , 它有效

ffmpeg -y -i video_1336500693.m4v -vcodec libx264 -vpre slow -vpre ipod640 -b 250k -bt 50k -acodec libfaac -ac 2 -ar 48000 -ab 64k -s 480x320 video_1336500693.mp4

问题回答

暂无回答




相关问题
Encode an Array of Images into a movie file? (iPhone)

My app takes time-lapse photos, and also records audio to go with it. The problem is, I have absolutely no idea how to go about turning it into a .mov/.mpeg file (I am new to this type of iPhone ...

How to use FFmpeg

I m trying to extract frames from a video and I ve picked ffmpeg ( tell me if you know something better ) for this task. I ve downloaded its source and don t know how to use it ?? how can I compile it?...

stitching videos together using ffmpeg on the command line

Does anybody know how to stitch two (or more) videos together using ffmpeg (or another cli)? This is assuming that all the videos are in the same format and the video format being used allows for ...

Using FFmpeg or wrapper to get mp3 from mp4 in C#

I m trying to extract an mp3 from a flash compatible mp4 file and have so far found FFMpeg and a bunch of different wrappers that all claim to be able to do the job. Ideally, I d like to not have to ...

Convert a video to MP4 (H.264/AAC) with ffmpeg

If I don t make a mistake, Safari currently need MP4 (H.264/AAC) video encoded for the HTML5 <video> element. So I tried to convert a video to this format with ffmpeg. However when I enter the ...

calculating filesize of a response?

im tryingto code a script to do dynamic transcoding of video and audio (likely just audio for now) and streaming to mobile devices, currently im using the script posted elsewhere on here (How do you ...

C# and FFmpeg preferably without shell commands?

I d like to be able to use FFmpeg to convert a video file from within my C# program. I know I can just call a shell command, but is there a better way? The issue with invoking a command via the ...

convert movie file to bitmap files with DirectShow

I want to convert movie files like AVI, MOV etc. to Bitmap-Files, like JPEG, JPEG2000, TIFF etc. Is it possible to realize that with DirectX / DirectShow? Is AVCodec from ffmpeg the much more better ...

热门标签