[FFmpeg-trac] #5774(undetermined:new): Streaming from multicast on tvOS fails (Apple TV)
FFmpeg
trac at avcodec.org
Thu Aug 11 16:54:16 EEST 2016
#5774: Streaming from multicast on tvOS fails (Apple TV)
-------------------------------------+-------------------------------------
Reporter: David2X | Type: defect
Status: new | Priority: normal
Component: | Version: git-
undetermined | master
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
Following command FAILS on tvOS (but exactly same code works on iOS):
{{{
avformat_open_input(&pFormatCtx, sdpString, NULL, &opts)
where sdpString is
"data:text/plain;charset=utf-8,v=0\r\no=- 0 0 IN IP4
235.255.255.245\r\nc=IN IP4 235.255.255.245\r\nm=video 8008 RTP/AVP
26\r\na=source-filter: incl IN IP4 235.255.255.245 192.168.68.94\r\no=- 0
0 IN IP4 235.255.255.245\r\nc=IN IP4 235.255.255.245\r\nm=audio 8006
RTP/AVP 0\r\na=source-filter: incl IN IP4 235.255.255.245 192.168.68.94"
}}}
From log
{{{
[data @ 0x128351300] No default whitelist set
[data @ 0x128351300] Content-type: text/plain
[data @ 0x128351300] Ignoring option 'charset=utf-8'
[sdp @ 0x102089800] Format sdp probed with size=2048 and score=50
[rtp @ 0x128351df0] No default whitelist set
[udp @ 0x1283520b0] No default whitelist set
setsockopt(MCAST_JOIN_SOURCE_GROUP): Can't assign requested address
}}}
How to reproduce:
{{{
- Compile FFMPEG for tvOS using this build script:
https://github.com/kewlbear/FFmpeg-iOS-build-script/blob/master/build-
ffmpeg-tvos.sh
- Link with tvOS project
- Run following commands on Apple TV
avcodec_register_all();
av_register_all();
avformat_network_init();
AVDictionary *opts = 0;
pFormatCtx = avformat_alloc_context();
avformat_open_input(&pFormatCtx, sdpString , NULL, &opts)
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5774>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list