How to connect Firefox to Chrome to transfer h264 via WebRTC?

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I try to connect Firefox 45 to Chrome 51dev to transfer h264 video. Firefox to Firefox and Chrome to Chrome works perfectly. But Firefox to Chrome transfers vp8 video even though I set the priority h264.

To set the codec priority I used this link: https://miguelpdl.github.io/WebRTC-codelab/session06/lab/html/step03.html

On the answer side remote description contains:

m=video 53100 UDP/TLS/RTP/SAVPF 107 100 101 116 117 96 97 99 98
...
a=rtpmap:107 H264/90000
a=rtpmap:100 VP8/90000
a=rtpmap:101 VP9/90000
a=rtpmap:116 red/90000
a=rtpmap:117 ulpfec/90000
a=rtpmap:96 rtx/90000
a=rtpmap:97 rtx/90000
a=rtpmap:99 rtx/90000
a=rtpmap:98 rtx/90000

But local description contains only:

m=video 9 UDP/TLS/RTP/SAVPF 100
...
a=rtpmap:100 VP8/90000

Can I connect Firefox to Chrome to transfer h264?

profilepic.png
manpreet 2 years ago

Chrome does not yet support H.264. For proof, see this fiddle which removes the VP8 codec.

 

The fiddle lets you cut'n'paste offer/answers to make a connection between two tabs or browsers, but for now, just paste the offer into a text editor and look at it:

 

You'll find that Firefox offers H.264 to spec:

 

a=rtpmap:126 H264/90000

a=rtpmap:97 H264/90000    

whereas Chrome offers VP8 only, in spite of us just having removed it:

 

a=rtpmap:100 VP8/90000

So when you say it works from Chrome to Chrome, I think you're really seeing VP8.

 

They are apparently working H.264 though.

 

Update: Apparently H.264 support is behind a flag in Chrome 50. Enable it with:

 

chrome://flags/#enable-webrtc-h264-with-openh264-ffmpeg


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.