[administrator@fedora ffmpeg]$ ./ffmpeg -i rtsp://10.0.2.5/MediaInput/h264 -vbsf h264_mp4toannexb -vb 4096000 -r 30 -vcodec copy -acodec mp2 -y -v 5 -r 30 -f mpegts testout.ts FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers built on Mar 28 2011 08:34:35 with gcc 4.5.1 20100924 (Red Hat 4.5.1-4) configuration: --prefix=/home/administrator/prog/ffmpeg/ --enable-gpl --enable-version3 --enable-nonfree libavutil 50. 40. 0 / 50. 40. 0 libavcodec 52.115. 0 / 52.115. 0 libavformat 52.103. 0 / 52.103. 0 libavdevice 52. 3. 0 / 52. 3. 0 libavfilter 1. 76. 0 / 1. 76. 0 libswscale 0. 13. 0 / 0. 13. 0 [rtsp @ 0x8c1e600] Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: 29.97 (30000/1001) -> 14.99 (30000/2002) Input #0, rtsp, from 'rtsp://10.0.2.5/MediaInput/h264': Metadata: title : Media Presentation Duration: N/A, start: 0.033733, bitrate: N/A Stream #0.0: Video: h264 (High), yuvj420p, 1280x720 [PAR 1:1 DAR 16:9], 14.99 fps, 14.99 tbr, 90k tbn, 29.97 tbc Stream #0.1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s [NULL @ 0x8c26a40] Requested sampling rate unsupported using closest supported (16000) [mpegts @ 0x8c23a30] muxrate VBR, pcr every 1 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to 'testout.ts': Metadata: title : Media Presentation encoder : Lavf52.103.0 Stream #0.0: Video: [0][0][0][0] / 0x0000, yuvj420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 90k tbn, 14.99 tbc Stream #0.1: Audio: mp2, 16000 Hz, 1 channels, s16, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press ctrl-c to stop encoding h264_mp4toannexb failed for stream 0, codec copy: Invalid data found when processing input [mpegts @ 0x8c23a30] h264 bitstream malformated, no startcode found, use -vbsf h264_mp4toannexb av_interleaved_write_frame(): Operation not permitted