# FFMPEG publish Desktop Screen and play with IOS devices

**URL:** <https://community.wowza.com/t/ffmpeg-publish-desktop-screen-and-play-with-ios-devices/38778>\
**Category:** Wowza Streaming Engine\
**Created:** [August 11, 2012, 6:12am UTC](https://community.wowza.com/t/ffmpeg-publish-desktop-screen-and-play-with-ios-devices/38778 "2012-08-11T06:12:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philipp\_Seeser](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@Philipp\_Seeser](https://community.wowza.com/u/Philipp_Seeser)\
**Post date:** [August 11, 2012, 6:12am UTC](https://community.wowza.com/t/ffmpeg-publish-desktop-screen-and-play-with-ios-devices/38778/1 "2012-08-11T06:12:09Z")

</div>

Hi,

i use the following command to publish my desktop screen to wowza. I use the Example Application LiveVideoStreaming for this case.

```auto
ffmpeg -f x11grab -s `xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -i :0.0 -vcodec libx264 -b 300k -r 25 -g 48 -f flv "rtmp://myadress:1935/live/desktop"

```

It works great when i open VLC and play: rtsp://myadress:1935/live/desktop

Now when I try to open the stream with an IOS Device or Apple Quicktime nothing happens. Quicktime says “Loading movie…” and iOS returns after 1 seconds saying unable to open the stream

[http://myaddress:1935/live/desktop/playlist.m3u8](http://myaddress:1935/live/desktop/playlist.m3u8)

Any idea?

The output from wowza:

> INFO session connect-pending 91.34.109.122 -
> 
> INFO session connect 91.34.109.122 -
> 
> INFO stream create - -
> 
> INFO stream publish desktop -
> 
> INFO server comment - LiveStreamPacketizerSanJose.endChunkTS[live/_definst_/desktop]: Add chunk: id:6 a/v/k:0/241/5 duration:9800
> 
> INFO server comment - LiveStreamPacketizerCupertino.endChunkTS[live/_definst_/desktop]: Add chunk: id:6 mode:TS a/v/k:0/240/5 duration:9800
> 
> INFO cupertino connect 1359404638 -
> 
> INFO stream create desktop -
> 
> INFO stream play desktop -
> 
> INFO server comment - LiveStreamPacketizerSanJose.endChunkTS[live/_definst_/desktop]: Add chunk: id:7 a/v/k:0/241/5 duration:9880
> 
> INFO server comment - LiveStreamPacketizerCupertino.endChunkTS[live/_definst_/desktop]: Add chunk: id:7 mode:TS a/v/k:0/240/5 duration:9880
> 
> INFO server comment - LiveStreamPacketizerSanJose.endChunkTS[live/_definst_/desktop]: Add chunk: id:8 a/v/k:0/241/5 duration:10480
> 
> INFO server comment - LiveStreamPacketizerCupertino.endChunkTS[live/_definst_/desktop]: Add chunk: id:8 mode:TS a/v/k:0/240/5 duration:10480

---

<div class="post-metadata">

**Author:** ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)\
**Post date:** [August 11, 2012, 6:29pm UTC](https://community.wowza.com/t/ffmpeg-publish-desktop-screen-and-play-with-ios-devices/38778/2 "2012-08-11T18:29:19Z")

</div>

No error msgs? I don’t see it disconnecting. You can post the output of ffprobe -show\_streams rtsp://myadress:1935/live/desktop

Can you play via the rtmp URL in the Wowza LiveVideStreaming example?

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [August 12, 2012, 11:57am UTC](https://community.wowza.com/t/ffmpeg-publish-desktop-screen-and-play-with-ios-devices/38778/3 "2012-08-12T11:57:32Z")

</div>

The video is using High Profile. You want Baseline Profile, Level 3

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [August 13, 2012, 11:21am UTC](https://community.wowza.com/t/ffmpeg-publish-desktop-screen-and-play-with-ios-devices/38778/4 "2012-08-13T11:21:24Z")

</div>

Great, glad it’s working. Thanks for the update

Richard

---

<div class="post-metadata">

**Author:** ![Philipp\_Seeser](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@Philipp\_Seeser](https://community.wowza.com/u/Philipp_Seeser)\
**Post date:** [August 11, 2012, 11:40pm UTC](https://community.wowza.com/t/ffmpeg-publish-desktop-screen-and-play-with-ios-devices/38778/5 "2012-08-11T23:40:07Z")

</div>

> No error msgs? I don’t see it disconnecting. You can post the output of ffprobe -show\_streams rtsp://myadress:1935/live/desktop
> 
> Can you play via the rtmp URL in the Wowza LiveVideStreaming example?

Here is the ffprobe output:

> [rtsp @ 0xa8b0620] Estimating duration from bitrate, this may be inaccurate
> 
> Input #0, rtsp, from ‘rtsp://myadress:1935/live/desktop’:
> 
> Metadata:
> 
> title : desktop
> 
> Duration: N/A, start: 0.022018, bitrate: N/A
> 
> Stream #0:0: Audio: aac, 44100 Hz, stereo, s16
> 
> Stream #0:1: Video: h264 (High 4:4:4 Predictive), yuv420p, 728x438, 24 tbr, 90k tbn, 180k tbc
> 
> [STREAM]
> 
> index=0
> 
> codec\_name=aac
> 
> codec\_long\_name=AAC (Advanced Audio Coding)
> 
> profile=unknown
> 
> codec\_type=audio
> 
> codec\_time\_base=1/44100
> 
> codec\_tag\_string=[0][0][0][0]
> 
> codec\_tag=0x0000
> 
> sample\_fmt=s16
> 
> sample\_rate=44100
> 
> channels=2
> 
> bits\_per\_sample=0
> 
> id=N/A
> 
> r\_frame\_rate=0/0
> 
> avg\_frame\_rate=0/0
> 
> time\_base=1/44100
> 
> start\_time=0.022018
> 
> duration=N/A
> 
> bit\_rate=N/A
> 
> nb\_frames=N/A
> 
> nb\_read\_frames=N/A
> 
> nb\_read\_packets=N/A
> 
> [/STREAM]
> 
> [STREAM]
> 
> index=1
> 
> codec\_name=h264
> 
> codec\_long\_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
> 
> profile=High 4:4:4 Predictive
> 
> codec\_type=video
> 
> codec\_time\_base=1/180000
> 
> codec\_tag\_string=[0][0][0][0]
> 
> codec\_tag=0x0000
> 
> width=728
> 
> height=438
> 
> has\_b\_frames=2
> 
> sample\_aspect\_ratio=0:1
> 
> display\_aspect\_ratio=0:1
> 
> pix\_fmt=yuv420p
> 
> level=30
> 
> timecode=N/A
> 
> is\_avc=0
> 
> nal\_length\_size=0
> 
> id=N/A
> 
> r\_frame\_rate=24/1
> 
> avg\_frame\_rate=0/0
> 
> time\_base=1/90000
> 
> start\_time=0.304000
> 
> duration=N/A
> 
> bit\_rate=N/A
> 
> nb\_frames=N/A
> 
> nb\_read\_frames=N/A
> 
> nb\_read\_packets=N/A
> 
> [/STREAM]
> 
> My iPhone just says: “The operation could not be completed”. There’s a disconnect for the cuppertino device after 20 seconds (maybe a timeout).
> 
> Any idea?

---

<div class="post-metadata">

**Author:** ![Philipp\_Seeser](https://avatars.discourse-cdn.com/v4/letter/p/85e7bf/32.png) [@Philipp\_Seeser](https://community.wowza.com/u/Philipp_Seeser)\
**Post date:** [August 12, 2012, 10:58pm UTC](https://community.wowza.com/t/ffmpeg-publish-desktop-screen-and-play-with-ios-devices/38778/6 "2012-08-12T22:58:34Z")

</div>

> The video is using High Profile. You want Baseline Profile, Level 3
> 
> Richard

Thanks Richard,

now it works!
