[FFmpeg-user] output h264 stream fail when ffmpeg dostreamcopy retrun

Soho Soho123 soho123.2012 at gmail.com
Thu Mar 21 13:42:32 CET 2013

hi all,

I got a big trouble when I try to output a h264 stream.
after trace the code flow of ffmpeg,
I see function static void do_streamcopy() will return in the case

  if ((!ost->frame_number && !(pkt->flags & AV_PKT_FLAG_KEY)) &&

then no anyting output for feed.

When I use vlc to connect ffserver, then nothing to output , because
the feed is empty
Does anyone have ideas?

my ffserver.conf :
<Stream test.asf>
Feed feed1.ffm
Format asf
AVOptionVideo flags +global_header
VideoSize 640x480
VideoFrameRate 10
VideoCodec libx264
command line of ffmpeg:

ffmpeg  -loglevel debug -f video4linux2 -r 10 -s 640x480 -input_format
h264 -i /dev/video1 -vcodec copy http://localhost:8090/feed1.ffm

More information about the ffmpeg-user mailing list