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

Cannot connect Android AOSP to miraclecast #526

Open
qhuyduong opened this issue Dec 13, 2024 · 3 comments
Open

Cannot connect Android AOSP to miraclecast #526

qhuyduong opened this issue Dec 13, 2024 · 3 comments

Comments

@qhuyduong
Copy link

qhuyduong commented Dec 13, 2024

Hello,

I am trying to cast from a device running AOSP Android 13 to miraclecast running on Raspberry Pi.

Miraclecast can be detected. However when I select Miraclecast in Android, the connection is torn down immediately.

Does anyone have any idea?

Here are the log files:

journal.log
sink.log
wifid.log

@albfan
Copy link
Owner

albfan commented Dec 13, 2024

Looks like you didn't install gstreamer (gst-launch-1.0 is use as default reproducer)

Dec 13 16:10:32 raspberrypi miracle-sinkctl-gst[5625]: [13/12/24 - 16:10:32.013.319] DEBUG: player command: miracle-gst -d 3 -a -p 7236 -r 1280x720 (launch_player() in /home/pi/miraclecast/src/ctl/sinkctl.c:552)
Dec 13 16:10:32 raspberrypi miracle-sinkctl-gst[5625]: running: /usr/bin/gst-launch-1.0 -v --gst-debug=3 udpsrc port=7236 caps="application/x-rtp, media=video" ! rtpjitterbuffer latency=100 ! rtpmp2tdepay ! tsdemux name=demuxer demuxer. ! queue max-size-buffers=0 max-size-time=0 ! h264parse ! avdec_h264 ! videoconvert ! autovideosink demuxer. ! queue max-size-buffers=0 max-size-time=0 ! aacparse ! avdec_aac ! audioconvert ! audioresample ! autoaudiosink
Dec 13 16:10:32 raspberrypi miracle-sinkctl-gst[5625]: /usr/local/bin/miracle-gst: line 100: /usr/bin/gst-launch-1.0: No such file or directory

See you can configure different viewer (like vlc) check wiki

@qhuyduong
Copy link
Author

qhuyduong commented Dec 13, 2024

@albfan I am using vlc. The setup is working flawlessly with another Android phone.

Btw, I notice the source send a TEARDOWN immediately after PLAY.

 (sink_setup_fn() in /home/pi/miraclecast/src/ctl/ctl-sink.c:176)

DEBUG: OUTGOING: PLAY rtsp://255.255.255.255/wfd1.0/streamid=0 RTSP/1.0
Session: 0000000a
CSeq: 3


 (sink_setup_fn() in /home/pi/miraclecast/src/ctl/ctl-sink.c:205)

DEBUG: INCOMING: RTSP/1.0 200 OK
CSeq: 3
Date: Fri, Dec 13 2024 08:46:43 GMT


 (sink_req_fn() in /home/pi/miraclecast/src/ctl/ctl-sink.c:28)

DEBUG: INCOMING: SET_PARAMETER rtsp://localhost/wfd1.0 RTSP/1.0
CSeq: 4
Session: 0000000a
Content-Length: 30
Content-Type: text/parameters

wfd_trigger_method: TEARDOWN

 (sink_handle() in /home/pi/miraclecast/src/ctl/ctl-sink.c:365)

@albfan
Copy link
Owner

albfan commented Dec 13, 2024

If you enable log with date time, you can correlate the error. (What fails in journal.log at the moment stream is stopped)

Although you mention you use vlc, those logs show miracle-sink stating miracle-gst (a script that uses gstreamer) failing to start It, so ir stops the streaming

Share your setup if you think that might help

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