我有一个文件,其中包含包装在UDP/IP数据包中的一系列RTP数据包。我想将此文件转换为WAV或AU文件,并被告知ffmpeg可能能够完成此工作。然而,该工具的行为并不像我所期望的那样。出于某种原因,它期待一个SDP文件,但我没有这样的文件,我想知道为什么需要它,因为RTP数据包似乎包含足够的信息来进行转换。此外,它报告了错误的有效负载类型。
有什么想法吗?下面是我尝试过的。输入文件alaw.rtp中的RTP数据包只有有效负载类型8(A)和72 (RTCP相关),所以我不知道105类型的有效负载来自何处。
$ ffmpeg -f rtp -i alaw.rtp alaw.au
...
[rtp @ 0x9dbdfe0] Unsupported RTP version packet received
Last message repeated 89 times
[rtp @ 0x9dbdfe0] Unable to receive RTP payload type 105 without an SDP file describing it
[rtp @ 0x9dbdfe0] Estimating duration from bitrate, this may be inaccurate
Input #0, rtp, from 'alaw.rtp':
Duration: N/A, bitrate: N/A
File 'alaw.au' already exists. Overwrite ? [y/N] y
Output #0, au, to 'alaw.au':
Output file #0 does not contain any stream这是我用过的ffmpeg版本
ffmpeg version 0.10.6-6:0.10.6-0ubuntu0jon1~lucid2
built on Nov 12 2012 15:20:22 with gcc 4.4.3发布于 2014-10-14 11:17:08
如果您的意图是听到.pcap文件中的声音,您可以按照以下步骤操作。
安装Wireshark:
注意:确保安装了最新版本的Wireshark。
https://stackoverflow.com/questions/14017573
复制相似问题