Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error broadcasting #2

Closed
johanndiedrick opened this issue Mar 28, 2014 · 11 comments
Closed

Error broadcasting #2

johanndiedrick opened this issue Mar 28, 2014 · 11 comments

Comments

@johanndiedrick
Copy link

When trying to broadcast with the default KFSecrets.h Client ID and Client Secret, I get this error:

2014-03-28 11:44:14.765 KFDemo[23974:60b] codec not found: h264
Parsing...
Parsed protocol: 0
Parsed host : live31.us-va.zencoder.io
Parsed app : live

This is after I hit the "Broadcast" button, then the "Start" button. The video comes up fine on the device.

After letting the app run for a few minutes, I get this error:

RTMP_Connect0, failed to connect socket. 60 (Operation timed out)
2014-03-28 11:45:29:968 KFDemo[23974:60b] Error preparing for writing: Error Domain=org.ffmpeg.FFmpeg Code=-1313558101 "Unknown error occurred" UserInfo=0x166a0090 {kFFmpegErrorCode=-1313558101, NSLocalizedDescription=Unknown error occurred}
(lldb)

Trying with my own Client ID and Secret, I get this error:

2014-03-28 11:49:02.936 KFDemo[23998:60b] codec not found: h264
Parsing...
Parsed protocol: 0
Parsed host : live31.us-va.zencoder.io
Parsed app : live

I get the same "Operation timed out" error with this as well after a minute or two.

RTMP_Connect0, failed to connect socket. 60 (Operation timed out)
2014-03-28 11:50:18:141 KFDemo[23998:60b] Error preparing for writing: Error Domain=org.ffmpeg.FFmpeg Code=-1313558101 "Unknown error occurred" UserInfo=0x1758aa00 {kFFmpegErrorCode=-1313558101, NSLocalizedDescription=Unknown error occurred}
(lldb)

Let me know what you think!

@chrisballinger
Copy link
Member

Ah this is still hard-coded to use RTMP mode which we are going to push back for the 1.1.x branch. I'll sort this out today!

@johanndiedrick
Copy link
Author

Cool, thanks! Could you leave a comment when this is updated?

@chrisballinger
Copy link
Member

Okay I've updated the SDK to fix that problem. It's still very rough around the edges, but the basic functionality is there. For now it might be best to use the submodule version of the podspec because I'm going to be doing some major development in the next two weeks before shipping our stable release.

@johanndiedrick
Copy link
Author

Ok cool. How do I go about doing that? Should I download the repo?

@chrisballinger
Copy link
Member

Fork the repo then try this:

$ git clone git@github.com:yourfork/kickflip-ios-example.git
$ cd kickflip-ios-example
$ git submodule update --init
$ pod repo update kickflip
$ pod
$ open Kickflip.xcworkspace

@johanndiedrick
Copy link
Author

Thanks! I just tried a clean build (deleted my repo, forked it and then re-installed with the instructions above) but I get the following new errors:

fatal error: file '/Users/johanndiedrick/Documents/iOS/kickflip/kickflip-ios-example/Pods/Headers/FFmpeg-iOS/libavutil/time.h' has been modified since the precompiled header '/Users/johanndiedrick/Library/Developer/Xcode/DerivedData/ModuleCache/1K77AWNH1I9SN/CoreFoundation.pcm' was built
note: after modifying system headers, please delete the module cache at '/Users/johanndiedrick/Library/Developer/Xcode/DerivedData/ModuleCache/1K77AWNH1I9SN'
1 error generated.

fatal error: file '/Users/johanndiedrick/Documents/iOS/kickflip/kickflip-ios-example/Pods/Headers/FFmpeg-iOS/libavutil/time.h' has been modified since the precompiled header '/Users/johanndiedrick/Library/Developer/Xcode/DerivedData/ModuleCache/1K77AWNH1I9SN/CoreFoundation.pcm' was built
note: after modifying system headers, please delete the module cache at '/Users/johanndiedrick/Library/Developer/Xcode/DerivedData/ModuleCache/1K77AWNH1I9SN'
1 error generated.

///

Here's my install in case I missed something...

geofront:kickflip johanndiedrick$ git clone https://github.com/jdiedrick/kickflip-ios-example.git
Cloning into 'kickflip-ios-example'...
remote: Counting objects: 50, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 50 (delta 13), reused 50 (delta 13)
Unpacking objects: 100% (50/50), done.
geofront:kickflip johanndiedrick$ cd kickflip-ios-example
geofront:kickflip-ios-example johanndiedrick$ git submodule update --init
Submodule 'Submodules/kickflip-ios-sdk' (git@github.com:Kickflip/kickflip-ios-sdk.git) registered for path 'Submodules/kickflip-ios-sdk'
Cloning into 'Submodules/kickflip-ios-sdk'...
remote: Reusing existing pack: 488, done.
remote: Counting objects: 19, done.
remote: Compressing objects: 100% (17/17), done.
remote: Total 507 (delta 6), reused 0 (delta 0)
Receiving objects: 100% (507/507), 189.83 KiB, done.
Resolving deltas: 100% (275/275), done.
Submodule path 'Submodules/kickflip-ios-sdk': checked out 'd2b9eba803325b5fed055fe480842aea739f4521'
geofront:kickflip-ios-example johanndiedrick$ pod repo update kickflip
Updating spec repo kickflip
Already up-to-date.
geofront:kickflip-ios-example johanndiedrick$ pod
Analyzing dependencies
Fetching podspec for Kickflip from Submodules/kickflip-ios-sdk/Kickflip.podspec
Downloading dependencies
Installing AFNetworking (1.3.3)
Installing AFOAuth2Client (0.1.2)
Installing AWSiOSSDK (1.7.1)
Installing CocoaLumberjack (1.8.1)
Installing FFmpeg-iOS (2.2)
Installing FFmpegWrapper (1.0)
Using Kickflip (0.9)
Installing OWS3Client (1.0)
Installing SSKeychain (1.2.1)
Generating Pods project
Integrating client project
geofront:kickflip-ios-example johanndiedrick$ open Kickflip.xcworkspace

and some screen shots from xcode:

screen shot 2014-03-28 at 6 34 04 pm

screen shot 2014-03-28 at 6 34 09 pm

screen shot 2014-03-28 at 6 34 13 pm

screen shot 2014-03-28 at 6 34 15 pm

@chrisballinger
Copy link
Member

Huh thats weird, do any of these answers help?
http://stackoverflow.com/questions/18547895/cant-get-rid-of-apple-llvm-5-0-error

This might do the trick:

$ rm -rf ~/Library/Developer/Xcode/DerivedData/ModuleCache/*

@johanndiedrick
Copy link
Author

Cool that worked. Xcode just needed a clean as well :)

Almost there! After hitting start, I get this message:

2014-03-28 19:12:28.046 KFDemo[24262:60b] codec not found: h264
[mpegts @ 0x173e9600] muxrate VBR, pcr every 3 pkts, sdt every 200, pat/pmt every 40 pkts

After a few seconds I get my stream URL link, but it doesn't seem to work. My browser tries to download a .m3u8 file...

Here's the output in the console:

2014-03-28 19:13:05:729 KFDemo[24262:60b] Stream is ready at URL: http://ch-test-29c466b1-cc55-49ad-8c91-9b4558d1af8e.s3.amazonaws.com/ch-test-29c466b1-cc55-49ad-8c91-9b4558d1af8e-nlz2or/bfe0ed3a-7634-41cb-8f73-5992a376ae96/index.m3u8

@johanndiedrick
Copy link
Author

So I tried sharing the link via text message and I got the right URL:

https://api.kickflip.io/bfe0ed3a-7634-41cb-8f73-5992a376ae96

Chrome barked at me about being sure I wanted to visit the site (yellow warning screen, screenshot to come if I can get someone to replicate it):

The video looks ok, although it seems to be stuck in landscape mode (my phone is now oriented in portrait):

screen shot 2014-03-28 at 7 21 32 pm

@chrisballinger
Copy link
Member

Awesome, congrats on getting it to work!

We still need to get a proper SSL cert for that domain which is why you see
the warning in Chrome but we'll have that sorted out shortly.

For the time being we only support landscape mode because otherwise it
displays poorly on desktops and TVs, but that may be configurable down the
road.

As far as the direct m3u8 link, that one for playing in the default iOS
media player and should work if you open it in mobile Safari.

Thanks for trying it out, there is a lot of more functionality and
polish on the way. We're excited to see what you can build!

On Friday, March 28, 2014, Johann Diedrick notifications@github.com wrote:

So I tried sharing the link via text message and I got the right URL:

https://api.kickflip.io/bfe0ed3a-7634-41cb-8f73-5992a376ae96

Chrome barked at me about being sure I wanted to visit the site (yellow
warning screen, screenshot to come if I can get someone to replicate it):

The video looks ok, although it seems to be stuck in landscape mode (my
phone is now oriented in portrait):

[image: screen shot 2014-03-28 at 7 21 32 pm]https://cloud.githubusercontent.com/assets/1254169/2556304/0600d5d0-b6d0-11e3-8b8a-2b2ad0eca108.png


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-38978220
.

@chrisballinger
Copy link
Member

Updated the SDK quite a bit since you've last seen it, check it out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants