I'm having problem to re-stream H264 with RTP format. Below is the command line params and output. ./ffmpeg -i rtmp://flashmedia.nic.in:80/live/dd1 -vcodec copy -an -f rtp rtp:localhost:9000 ffmpeg version git-N-29571-g7d70d19, Copyright (c) 2000-2011 the FFmpeg developers built on May 3 2011 00:51:01 with gcc 4.2.1 (Apple Inc. build 5664) configuration: --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-nonfree --enable-gpl libavutil 51. 2. 0 / 51. 2. 0 libavcodec 53. 3. 0 / 53. 3. 0 libavformat 53. 0. 3 / 53. 0. 3 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 4. 0 / 2. 4. 0 libswscale 0. 14. 0 / 0. 14. 0 [flv @ 0x101012400] Estimating duration from bitrate, this may be inaccurate Input #0, flv, from 'rtmp://flashmedia.nic.in:80/live/dd1': Duration: N/A, start: 0.000000, bitrate: 64 kb/s Stream #0.0: Video: h264 (Baseline), yuv420p, 400x300 [PAR 1:1 DAR 4:3], 24 tbr, 1k tbn, 48 tbc Stream #0.1: Audio: mp3, 22050 Hz, stereo, s16, 64 kb/s Output #0, rtp, to 'rtp:localhost:9000': Metadata: encoder : Lavf53.0.3 Stream #0.0: Video: libx264, yuv420p, 400x300 [PAR 1:1 DAR 4:3], q=2-31, 90k tbn, 24 tbc Stream mapping: Stream #0.0 -> #0.0 SDP: v=0 o=- 0 0 IN IP6 ::1 s=No Name c=IN IP6 ::1 t=0 0 a=tool:libavformat 53.0.3 m=video 9000 RTP/AVP 96 a=rtpmap:96 H264/90000 a=fmtp:96 packetization-mode=1; sprop-parameter-sets=Z0KAH5ZSAyE/3gKhAAADAAEAAAMAMOBgAVXAABGMP8Y4wMACq4AAIxh/jHDtChUk,aMuNSA== Press [q] to stop encoding frame= 1540 fps= 27 q=-1.0 size= 6kB time=59.14 bitrate= 0.8kbits/s When I play the sdp file printed above I've got following: ./ffplay ./test.sdp -debug 5 ffplay version git-N-29571-g7d70d19, Copyright (c) 2003-2011 the FFmpeg developers built on May 3 2011 00:51:01 with gcc 4.2.1 (Apple Inc. build 5664) configuration: --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-nonfree --enable-gpl libavutil 51. 2. 0 / 51. 2. 0 libavcodec 53. 3. 0 / 53. 3. 0 libavformat 53. 0. 3 / 53. 0. 3 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 4. 0 / 2. 4. 0 libswscale 0. 14. 0 / 0. 14. 0 [NULL @ 0x10203b200] Format sdp probed with size=2048 and score=50 [sdp @ 0x10203b200] video codec set to: h264 [NULL @ 0x101863e00] RTP Packetization Mode: 1 [NULL @ 0x101863e00] Extradata set to 0x10102af80 (size: 58)!Unsupported bit depth: 0 [sdp @ 0x10203b200] Could not find codec parameters (Video: h264) [sdp @ 0x10203b200] Estimating duration from bitrate, this may be inaccurate ./test.sdp: could not find codec parameters I've tried to transcode the stream to mpeg4 and it's working, but with h264 it doesn't work. Am I missing anything? Thanks in advance mahmut
I am trying to encode a set of pgm files and stream them out to ffserver using the following command listed below. I start ffserver, and when I run the ffmpeg command, it starts to do the encoding but eventually takes a segmentation fault. It is producing an ffmpeg warning that I don't understand [libx264 @ 0xad2ffc0] VBV buffer (655360) > level limit (300000) ffmpeg -r 1 -i frame_%05d.pgm -vcodec libx264 -y -threads 0 -b 230k -vpre slow http://condor1:8090/feed1.ffm The output of the ffmpeg run is Input #0, image2, from 'frame_%05d.pgm': Duration: 00:00:24.00, start: 0.000000, bitrate: N/A Stream #0.0: Video: pgm, gray, 3332x332, 1 fps, 1 tbr, 1 tbn, 1 tbc [buffer @ 0xad2c0f0] w:3332 h:332 pixfmt:gray [scale @ 0xad2c4d0] w:3332 h:332 fmt:gray -> w:3344 h:336 fmt:yuv420p flags:0xa0000004 [libx264 @ 0xad2ffc0] VBV buffer (655360) > level limit (300000) [libx264 @ 0xad2ffc0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0xad2ffc0] profile High, level 5.1 Output #0, ffm, to 'http://condor1:8090/feed1.ffm': Metadata: encoder : Lavf52.103.0 Stream #0.0: Video: libx264, yuv420p, 3344x336, q=3-69, 18 kb/s, 1000k tbn, 1 tbc Stream mapping: Stream #0.0 -> #0.0 And the bt for the core dump is 0x0000003aac27275e in free () from /lib64/libc.so.6 #1 0x0000003fcf6a08b5 in avformat_free_context (s=0xad25cd0) at libavformat/utils.c:2599 #2 0x000000000040511c in av_bitstream_filter_filter () #3 0x000000000040aac8 in av_bitstream_filter_filter () #4 0x0000003aac21d994 in __libc_start_main () from /lib64/libc.so.6 #5 0x0000000000404a09 in av_bitstream_filter_filter () #6 0x00007fff392c3f18 in ?? () #7 0x0000000000000000 in ?? () My ffserver.config file looks as follows: (there are lots of things commented out here) # Port on which the server is listening. You must select a different # port from your standard HTTP web server if it is running on the same # computer. Port 8090 RTSPPort 5454 # Address on which the server is bound. Only useful if you have # several network interfaces. BindAddress 0.0.0.0 # Number of simultaneous HTTP connections that can be handled. It has # to be defined *before* the MaxClients parameter, since it defines the # MaxClients maximum limit. MaxHTTPConnections 2000 # Number of simultaneous requests that can be handled. Since FFServer # is very fast, it is more likely that you will want to leave this high # and use MaxBandwidth, below. MaxClients 1000 # This the maximum amount of kbit/sec that you are prepared to # consume when streaming to clients. MaxBandwidth 1000000 # Access log file (uses standard Apache log file format) # '-' is the standard output. CustomLog - # Suppress that if you want to launch ffserver as a daemon. NoDaemon <Feed feed1.ffm> File /tmp/feed1.ffm FileMaxSize 5M </Feed> <Stream test.asf> # the source feed Feed feed1.ffm # the output stream format - ASF #Format asf Format mp4 #VideoCodec msmpeg4 VideoCodec libx264 AVPresetVideo slow # this must match the ffmpeg -r argument VideoFrameRate 1 # generally leave this is a large number VideoBufferSize 80000 # another quality tweak #VideoBitRate 200 VideoBitRate 18 # quality ranges - 1-31 (1 = best, 31 = worst) #VideoQMin 1 #VideoQMax 5 #VideoQMin 0 #VideoQMax 69 #VideoSize 352x288 #VideoSize 3332x332 VideoSize 3344x336 # This sets how many seconds in past to start PreRoll 0 #we have no audio Noaudio </Stream> <Stream stat.html> Format status # Only allow local people to get the status #FaviconURL http://pond1.gladstonefamily.net:8080/favicon.ico </Stream> If anyone has ideas on why this is happening, I would appreciate some advice. Thanks, Arnie
participants (2)
-
Arnie Bearak -
Mahmut Akcay