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

Video is absent (H.264), Ionic 2 #193

Closed
bushev opened this issue Jul 18, 2016 · 21 comments
Closed

Video is absent (H.264), Ionic 2 #193

bushev opened this issue Jul 18, 2016 · 21 comments

Comments

@bushev
Copy link

bushev commented Jul 18, 2016

I'm trying to get work Ionic 2 application on iOS. Stream comes from Raspberry pi (gStreamer + Janus WebRTC gateway)

Application is a streaming application with the following logic:

  1. Create connection to RPi using Janus WebRTC gateway
  2. Obtain stream and create video tag with src: URL.createObjectURL(stream)

I'm getting WebRTC support by the following plugin: https://github.com/eface2face/cordova-plugin-iosrtc

Streaming works great in FireFox browser by ionic serve --platform=ios command.

Streaming is NOT works inside iOS emulator and on a real device. I just got a green rectangle instead of stream, like on the picture below:

7935075e-4d25-11e6-88ac-88124d9d2881

gStreamer command:

raspivid --verbose --nopreview --width 640 --height 480 --framerate 15 --bitrate 1000000 --profile main --timeout 0 -o - | 
gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! udpsink host=127.0.0.1 port=8004

Janus config:

[gst-rpwc]
type = rtp
id = 1
description = RPWC H264 test streaming
audio = no
video = yes
videoport = 8004
videopt = 96
videortpmap = H264/90000
videofmtp = profile-level-id=4D401F\;packetization-mode=1

I have googled a similar problem (http://stackoverflow.com/questions/21120717/h-264-video-wont-play-on-ios).

They say iOS safari support Main profile with AVC level 3.1. I'm tried this proposal but it doesn't help me too..

I'm also tried the following "pairs" (profile-level-id + profile) without success:

"42e028 + baseline"  
"640028 + hight"

No any errors in console. Traffic for the app is also OK (~100kbps). But I see green square instead of image..

@ibc
Copy link
Collaborator

ibc commented Jul 18, 2016

This is not a specific bug report but a usage problem. Please use the mailing list, but don't expect others to check your whole code and thirdy party libraries.

@ibc ibc closed this as completed Jul 18, 2016
@saghul
Copy link
Collaborator

saghul commented Jul 18, 2016

@ibc the tutorial uses H264, which might actually be the problem here. @bushev what version of the plugin are you using?

@bushev
Copy link
Author

bushev commented Jul 18, 2016

@saghul I use latest version: 3.1.0

I also suspect that is can be some encoding related problem.. I have described my case here more detailed: http://stackoverflow.com/questions/38447053/embed-h264-stream-using-html5-video-tag-on-ios

I have updated this topic as well.

@saghul
Copy link
Collaborator

saghul commented Jul 19, 2016

@bushev I'm afraid you might have ran into #170

@bushev
Copy link
Author

bushev commented Jul 19, 2016

@saghul I just tested 2.2.4 with the same result..

@bushev
Copy link
Author

bushev commented Jul 19, 2016

@ibc So, I suspect that cordova-plugin-iosrtc is not fully support H.264 streams. What do you think?

@ibc
Copy link
Collaborator

ibc commented Jul 20, 2016

Honestly I've no idea. This is something related to libwebrtc that will be suddenly and magically fixed.

@saghul
Copy link
Collaborator

saghul commented Jul 20, 2016

Since H264 works in Chrome I guess there is something we are not doing right somewhere. So far nobody has found the cause though :-(

@murillo128
Copy link
Contributor

murillo128 commented Jul 20, 2016 via email

@saghul
Copy link
Collaborator

saghul commented Jul 20, 2016

Good point! It did work at some point, albeit with a very low FPS, IIRC.

@murillo128
Copy link
Contributor

FWIW
https://groups.google.com/d/msgid/discuss-webrtc/51da720d-4e44-4152-8294-ebe2c34f999d%40googlegroups.com?utm_medium=email&utm_source=footer

El 20/7/2016 21:04, "Saúl Ibarra Corretgé" notifications@github.com
escribió:

Good point! It did work at some point, albeit with a very low FPS, IIRC.


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#193 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABBW889RSp0p0H73v2J7zfUbvtLm2UN6ks5qXg68gaJpZM4JO8cp
.

@saghul
Copy link
Collaborator

saghul commented Jul 22, 2016

Looks like we're not alone!

@x3mall1986
Copy link

x3mall1986 commented Jul 26, 2016

Have the same problem. Revision libWebRTC 13524
img_3509

@charllie
Copy link

any news?

@antoniotuzzi
Copy link

Any news ? ;)

@saghul
Copy link
Collaborator

saghul commented Sep 6, 2016

I'm afraid not.

@menelike

This comment was marked as off-topic.

@saghul
Copy link
Collaborator

saghul commented Sep 19, 2016

Thanks for the heads up, I'll add a note to #170, hopefully I can give it a shot in the upcoming weeks.

@saghul saghul mentioned this issue Sep 19, 2016
@sezerkorkmaz
Copy link

any news?

@saghul
Copy link
Collaborator

saghul commented Jan 18, 2017

Alas, no.

@krishnaclouds
Copy link

Any Solution? Facing black video problem even in Android too!!

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

10 participants