[FFmpeg-user] av_interleaved_write_frame - operation not permitted

Baptiste Coudurier baptiste at ffmpeg.org
Sat Apr 30 03:50:47 CEST 2011


Hi John,

On 04/29/2011 07:59 AM, John Klimek wrote:
> I'm trying to stream some video to my iPhone (using FFmpeg and an open
> source HTTP segmenter) and FFmpeg is giving an error:
> 
> av_interleaved_write_frame(): Operation not permitted
> 
> I've done some research and it seems like this appears because of
> invalid timestamps but I'm a bit confused because this file does
> playback in every media player just fine.
> 
> The script I'm using (iStreamdev) to execute FFmpeg starts up like this:
> 
> (trap "rm -f ./ffmpeg.pid; rm -f ./fifo" EXIT HUP INT TERM ABRT; \
>  $FFMPEGPREFIX | $FFPATH -i "$STREAM" -deinterlace -f mpegts -acodec
> libmp3lame -ab $ARATE -ac 2 -s $XY -vcodec libx264 -b $VRATE -flags
> +loop \
>  -cmp \+chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5
> -trellis 1 -refs 1 -coder 0 -me_range 16  -keyint_min 25 \
>  -sc_threshold 40 -i_qfactor 0.71 -bt $VRATE -maxrate $VRATE -bufsize
> $VRATE -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 \
>  -qmin 10 -qmax 51 -qdiff 4 -level 30  -g 30 -async 2 -threads 4 -
> 2>$FFMPEGLOG 1>./fifo) &

Use -preset when encoding with libx264.
-async 1 should be enough.

-- 
Baptiste COUDURIER
Key fingerprint       8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                        http://www.ffmpeg.org


More information about the ffmpeg-user mailing list