If a user is experiencing an issue using the iphone_streaming task/preset (see snippet of the full error read out below), this error is easily resolved by setting the audio_sample_rate.
Apple recommends the audio_sample_rate is set to 22050, however, it could potentially be set to: 8000, 11025, 16000, 22050, 32000, 44100, 48000.
Encoder error: FFmpeg version SVN-r21449, Copyright (c) 2000-2010 Fabrice Bellard, et al. built on Feb 3 2010 06:48:05 with gcc 4.4.0 20090514 (Red Hat 4.4.0-6) configuration: –prefix=/usr/local/ffmpeg/21449 –enable-shared –enable-gpl –enable-version3 –enable-nonfree –disable-ffserver –enable-postproc –enable-pthreads –enable-memalign-hack –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libfaac –enable-libfaad –enable-libgsm –enable-libmp3lame –enable-libvorbis –enable-libx264 –enable-libxvid libavutil 50. 7. 0 / 50. 7. 0 libavcodec 52.48. 0 / 52.48. 0 libavformat 52.47. 0 / 52.47. 0 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0. 9. 0 / 0. 9. 0 libpostproc 51. 2. 0 / 51. 2. 0 [mpeg @ 0x806b3e0]MAX_READ_SIZE:5000000 reached Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (25/1) Input #0, mpeg, from ‘/mnt/vhosts/default/code/tmp/source_1506155’: Duration: 00:03:33.19, start: 0.164600, bitrate: 15775 kb/s Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720×480 [PAR 32:27 DAR 16:9], 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, 2 channels, s16, 384 kb/s [mp3 @ 0x8074560]sample rate not set Output #0, mp3, to ‘/mnt/vhosts/default/code/tmp/converted_6272009.mp3’: Stream #0.0: Audio: libmp3lame, 2 channels, s16, 64 kb/s Stream mapping: Stream #0.1 -> #0.0 Could not write header for output file #0 (incorrect codec parameters ?) Encoder error: FFmpeg version SVN-….
…