[FFmpeg-user] How to ffprobe the stream generated by ffmpeg
xiong xu
xu.xiong.cn at gmail.com
Wed Aug 26 03:59:47 CEST 2015
Hi,
I want analysis RTP H264 params with ffprobe.
But ffprobe complain about "Unable to receive RTP payload type 122
without an SDP file describing it".
Can someone help?
-Xiong
Here's the ffprobe log:
D:\tools\ffmpeg-20150818-git-737aa90-win64-static\bin>ffprobe
-show_streams rtp://10.17.41.163:45900
ffprobe version N-74462-g737aa90 Copyright (c) 2007-2015 the FFmpeg developers
built with gcc 4.9.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libdcadec
--enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc
--enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus
--enable-librtmp --enable-libschroedinger --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs
--enable-libxvid --enable-lzma --enable-decklink --enable-zlib
libavutil 54. 30.100 / 54. 30.100
libavcodec 56. 57.100 / 56. 57.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 34.100 / 5. 34.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[rtp @ 0000000004f2bf60] Unable to receive RTP payload type 122
without an SDP file describing it
Input #0, rtp, from 'rtp://10.17.41.163:45900':
Duration: N/A, bitrate: N/A
Here's the ffmpeg log generating RTP stream:
pi at raspberrypi ~/p2p-sip/src $ ffmpeg -f video4linux2 -i /dev/video0
-vcodec h264 -b 90000 -payload_type 122 -s 320*240 -r 20 -profile:v
baseline -level 1.2 -f rtp rtp://10.17.41.163:45900
ffmpeg version N-74455-g3afca32 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.6 (Debian 4.6.3-14+rpi1)
configuration: --arch=armel --target-os=linux --enable-gpl
--enable-libx264 --enable-nonfree
libavutil 54. 30.100 / 54. 30.100
libavcodec 56. 57.100 / 56. 57.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 33.100 / 5. 33.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 1440553547.642477, bitrate: 752025 kb/s
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p,
1920x1088, 752025 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
Please use -b:a or -b:v, -b is ambiguous
[libx264 @ 0x289efc0] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x289efc0] profile Constrained Baseline, level 1.2
Output #0, rtp, to 'rtp://10.17.41.163:45900':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: h264 (libx264), yuv420p, 320x240, q=-1--1, 90
kb/s, 20 fps, 90k tbn, 20 tbc
Metadata:
encoder : Lavc56.57.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
c=IN IP4 10.17.41.163
t=0 0
a=tool:libavformat 56.40.101
m=video 45900 RTP/AVP 122
b=AS:90
a=rtpmap:122 H264/90000
a=fmtp:122 packetization-mode=1
Press [q] to stop, [?] for help
Past duration 0.653969 too large
frame=14219 fps= 20 q=-1.0 Lsize= 7989kB time=00:11:50.95 bitrate=
92.1kbits/s dup=9814 drop=22
video:7815kB audio:0kB subtitle:0kB other streams:0kB global
headers:0kB muxing overhead: 2.227252%
More information about the ffmpeg-user
mailing list