some live streams can not be opened
Hello everyone, I'm using ffmpeg with librtmp from rtmpdump project, it's great! I have discovered that rtmpdump can not open some live streams which flvstreamer can open correctly. <code> $ ./rtmpdump -v -r rtmp://fms5.visionip.tv/live/RT_3.flv RTMPDump v2.2e (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL WARNING: You haven't specified an output file (-o filename), using stdout Connecting ... INFO: Connected... $ </code> <code> $ ./flvstreamer -v -r rtmp://fms5.visionip.tv/live/RT_3.flv | ffmpeg -i - FLVStreamer v2.1c1 (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL Connecting ... FFmpeg version SVN-r23514, Copyright (c) 2000-2010 the FFmpeg developers built on Jun 7 2010 21:11:44 with gcc 4.3.4 configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-static --enable-shared --cc=x86_64-pc-linux-gnu-gcc --disable-debug --disable-optimizations --enable-librtmp --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libxvid --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-x11grab --enable-libopenjpeg --disable-vdpau --disable-vaapi --disable-altivec --cpu=host --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-avfilter-lavf --disable-stripping --enable-hardcoded-tables --disable-doc libavutil 50.18. 0 / 50.18. 0 libavcodec 52.74. 1 / 52.74. 1 libavformat 52.68. 0 / 52.68. 0 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.20. 0 / 1.20. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 Starting Live Stream Metadata: author copyright description keywords rating title presetname Custom creationdate Fri May 07 10:50:34 2010 videodevice Osprey-450e Video Device 1B framerate 25.00 width 640.00 height 480.00 videocodecid avc1 videodatarate 900.00 avclevel 31.00 avcprofile 66.00 videokeyframe_frequency5.00 audiodevice Osprey-450e Audio Device 1B audiosamplerate 44100.00 audiochannels 2.00 audioinputvolume 75.00 audiocodecid .mp3 audiodatarate 96.00 26.525 kB / 0.66 sec[flv @ 0x63f470]invalid stream 108.335 kB / 2.00 sec[flv @ 0x63f470]Estimating duration from bitrate, this may be inaccurate Input #0, flv, from 'pipe:': Duration: N/A, start: 0.000000, bitrate: 96 kb/s Stream #0.0: Video: h264, yuv420p, 640x480 [PAR 1:1 DAR 4:3], 25 tbr, 1k tbn, 50 tbc Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 96 kb/s At least one output file must be specified Caught signal: 13, cleaning up, just a second... ERROR: Download: Failed writing, exiting! $ </code> Mikhail.
14.06.2010 19:04, Mikhail I. Izmestev wrote:
Hello everyone,
I'm using ffmpeg with librtmp from rtmpdump project, it's great!
I have discovered that rtmpdump can not open some live streams which flvstreamer can open correctly.
<code> $ ./rtmpdump -v -r rtmp://fms5.visionip.tv/live/RT_3.flv RTMPDump v2.2e (c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL WARNING: You haven't specified an output file (-o filename), using stdout Connecting ... INFO: Connected... $ </code>
Ok, problem that RTMP_ParsePlaypath return incorrect result when input playpath contains extension. In result we receive '\0' at end of resulted playpath and server can't find this playpath. Attached patch resolve this problem. Mikhail.
participants (1)
-
Mikhail I. Izmestev