Hasseb device : RTSP input with ffmpeg

200 views
Skip to first unread message

Yannick Barbeaux

unread,
Jun 19, 2020, 7:54:01 PM6/19/20
to Audio over IP
Has anyone ever managed to read a RTSP/RTP stream from an Hasseb device with ffmpeg ?
It works without issue with VLC or rtpdump + sox but ffmpeg gets the SDP then fails with a time out when reading the RTP stream (I did try to increase the time out) :

$ ffmpeg -y -re -loglevel debug -rtsp_transport udp_multicast -allowed_media_types audio -i "rtsp://10.1.4.13:554/by-name/AES67-stream%20(on%20hasseb-AoE-F8-82)" -vn -f s16le -ar 48000 -ac 2 -c:a pcm_s16le out.raw
(...)
(...)
[tcp @ 0x55801d14c500] Successfully connected to 10.1.4.13 port 554                                                                                                                                                                                                               
[rtsp @ 0x55801d14a0c0] SDP:                                                                                                                                                                                                                                                      
v=0                                                                                                                                                                                                                                                                               
o=- 250948897804 0 IN IP4 10.1.4.13                                                                                                                                                                                                                                               
s=AES67-stream (on hasseb-AoE-F8-82) streamed by "hasseb"                                                                                                                                                                                                                         
t=0 0                                                                                                                                                                                                                                                                             
a=clock-domain:PTPv2 0                                                                                                                                                                                                                                                            
a=recvonly                                                                                                                                                                                                                                                                        
m=audio 5004 RTP/AVP 98                                                                                                                                                                                                                                                           
c=IN IP4 239.133.197.77/255                                                                                                                                                                                                                                                       
a=rtpmap:98 L24/48000/2                                                                                                                                                                                                                                                           
a=sync-time:0                                                                                                                                                                                                                                                                     
a=framecount:48                                                                                                                                                                                                                                                                   
a=source-filter: incl IN IP4 239.133.197.77 10.1.4.13                                                                                                                                                                                                                             
a=ts-refclk:ptp=IEEE1588-2008:00-10-4b-ff-fe-2e-f8-82:domain-nmbr=0                                                                                                                                                                                                               
a=mediaclk:direct=0                                                                                                                                                                                                                                                               
a=ptime:1
(...)
[rtsp @ 0x55801d14a0c0] hello state=0
Failed to parse interval end specification ''   --> I DO NOT THINK THIS IS THE ISSUE
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, rtsp, from 'rtsp://10.1.4.13:554/by-name/AES67-stream%20(on%20hasseb-AoE-F8-82)':
  Metadata:
    title           : AES67-stream (on hasseb-AoE-F8-82) streamed by "hasseb"
  Duration: N/A, bitrate: 2304 kb/s
    Stream #0:0, 0, 1/48000: Audio: pcm_s24be, 48000 Hz, stereo, s32 (24 bit), 2304 kb/s
Successfully opened the file.
(...)
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s24be (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
rtsp://10.1.4.13:554/by-name/AES67-stream%20(on%20hasseb-AoE-F8-82): Connection timed out
(...)
Output #0, s16le, to 'out.raw':
  Metadata:
    title           : AES67-stream (on hasseb-AoE-F8-82) streamed by "hasseb"
    encoder         : Lavf58.20.100
    Stream #0:0, 0, 1/48000: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
    Metadata:
      encoder         : Lavc58.35.100 pcm_s16le
[out_0_0 @ 0x55801d18cd00] EOF on sink link out_0_0:default.
No more output streams to write to, finishing.peed=   0x
size=       0kB time=00:00:00.00 bitrate=N/A speed=   0x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Input file #0 (rtsp://10.1.4.13:554/by-name/AES67-stream%20(on%20hasseb-AoE-F8-82)):
  Input stream #0:0 (audio): 0 packets read (0 bytes); 0 frames decoded (0 samples);
  Total: 0 packets (0 bytes) demuxed
Output file #0 (out.raw):
  Output stream #0:0 (audio): 0 frames encoded (0 samples); 0 packets muxed (0 bytes);
  Total: 0 packets (0 bytes) muxed
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
0 frames successfully decoded, 0 decoding errors

(complete uncut output attached)

Thanks,

Yannick
ffmpeg-fullOutput.log
Reply all
Reply to author
Forward
0 new messages