[FFmpeg-user] pcmu and mp4 not recognized in rtmp input

Madovsky infos at madovsky.org
Wed Feb 6 03:42:34 CET 2013


Assuming a rtmp live stream in flv with audio pcmu/pcma codec and video H264 codec

ffmpeg -i "rtmp://server/app/mp4:live1 live=1" output.flv result:
=======
ffmpeg version N-49621-g68dfe53 Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb  5 2013 20:04:30 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7)
  configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 91.100 / 54. 91.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 35.101 /  3. 35.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
rtmp server sent error
[flv @ 0x32b6fc0] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from "rtmp://server/app/mp4:live1 live=1" 
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 10 tbr, 1k tbn, 20 tbc
Output #0, flv, to 'output.flv':
  Metadata:
    encoder         : Lavf54.61.104
    Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 1k tbn, 10 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> flv)
Press [q] to stop, [?] for help
[h264 @ 0x32a2b00] concealing 57 DC, 57 AC, 57 MV errors in I frame
frame=    2 fps=0.0 q=2.0 Lsize=      21kB time=00:00:00.20 bitrate= 856.8kbits/s dup=0 drop=42
video:21kB audio:0kB subtitle:0 global headers:0kB muxing overhead 1.152302%


ffmpeg -i "rtmp://server/app/mp4:live1 live=1" -c copy output.flv result:
=======
ffmpeg version N-49621-g68dfe53 Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb  5 2013 20:04:30 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7)
  configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 91.100 / 54. 91.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 35.101 /  3. 35.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
rtmp server sent error
[flv @ 0x29c1fc0] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from "rtmp://server/app/mp4:live1 live=1"
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 10 tbr, 1k tbn, 20 tbc
Output #0, flv, to 'output.flv':
  Metadata:
    encoder         : Lavf54.61.104
    Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 1k tbn, 1k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=   46 fps=0.0 q=-1.0 Lsize=     128kB time=00:00:00.00 bitrate=1045424.0kbits/s
video:126kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.936153%



ffmpeg -f flv -i "rtmp://server/app/mp4:live1 live=1" output.flv result:
=========
ffmpeg version N-49621-g68dfe53 Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb  5 2013 20:04:30 with gcc 4.3.2 (GCC) 20081105 (Red Hat 4.3.2-7)
  configuration: --enable-static --enable-gpl --enable-nonfree --enable-libfaac --enable-libx264 --enable-pthreads --enable-postproc --enable-libspeex --enable-librtmp --enable-runtime-cpudetect --enable-libfreetype
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 91.100 / 54. 91.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 35.101 /  3. 35.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
rtmp server sent error
[flv @ 0x2d06fc0] Estimating duration from bitrate, this may be inaccurate
Input #0, flv, from '"rtmp://server/app/mp4:live1 live=1":
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: h264 (Baseline), yuv420p, 320x240 [SAR 1:1 DAR 4:3], 10 tbr, 1k tbn, 20 tbc
Output #0, flv, to 'output.flv':
  Metadata:
    encoder         : Lavf54.61.104
    Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 320x240 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 1k tbn, 10 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> flv)
Press [q] to stop, [?] for help
frame=   64 fps=0.0 q=8.3 Lsize=     252kB time=00:00:06.50 bitrate= 317.6kbits/s dup=0 drop=63
video:251kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.481290%
=========

with speex everything is working even if the output container
must be flv for flash live mp4 input (should it be mp4 ?)

thanks

Franck


More information about the ffmpeg-user mailing list