[FFmpeg-user] Dies without message when streaming

k b bernicesurprise at gmail.com
Mon Sep 12 12:52:07 CEST 2011


Progress; no luck with ffserver, but I do have streaming via crtmpserver (
http://www.rtmpd.com/) working! This looks like the perfect option for
people who want to stream video to embedded flash players. So far, I've only
got it working for a prerecorded file, though.

So this works fine:

ffmpeg -i "testfile.avi" -re -vcodec libx264 -vpre default -vpre baseline -b
500000 -s 320x180 -strict experimental -g 25 -me_method zero -acodec aac -ab
96000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -f mpegts udp://
127.0.0.1:10000?pkt_size=1316

But this doesn't:

ffmpeg -f video4linux2 -i /dev/video0 -re -vcodec libx264 -vpre default
-vpre baseline -b 500000 -s 320x180 -strict experimental -g 25 -me_method
zero -acodec aac -ab 96000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -f mpegts
udp://127.0.0.1:10000?pkt_size=1316

ffmpeg gives this error:

[mpegts @ 0x71d2c0]st:0 error, non monotone timestamps 1 >= 1
av_interleaved_write_frame(): Operation not permitted
ioctl(VIDIOC_QBUF)

I've tried experimenting, but haven't been able to come up with anything
that doesn't fail for either ffmpeg or crtmpserver. Any idea how to fix the
av_interleaved_write_frame error?

bs


More information about the ffmpeg-user mailing list