Git Product home page Git Product logo

Comments (16)

rom1v avatar rom1v commented on May 23, 2024 1

Remove -Idummy here to see if there is a problem with VLC:

%VLC% -Idummy --demux rawaud --network-caching=0 --play-and-exit tcp://localhost:%SNDCPY_PORT%

from sndcpy.

rom1v avatar rom1v commented on May 23, 2024 1

Have tried multiple apps, all nothing.

Did you try youtube and VLC for Android? They are known to forward audio correctly.

from sndcpy.

Tyr808 avatar Tyr808 commented on May 23, 2024 1

Just updated my device from a Xiaomi Mi Mix 2 to a Pixel 4a. Mi Mix 2 was on LineageOS 17 (android 10), Pixel 4a is on official android 11. Audio works with pixel 4a, with my same FFmpeg configuration, still doesn't work on my Mi Mix 2. It could be a limitation of the hardware or a software bug, not sure. @rom1v , if there is a way I can run a detailed log for you if you'd like to compare, let me know, I'd be happy to help.

from sndcpy.

Tyr808 avatar Tyr808 commented on May 23, 2024

Having the same problem, tried removing the -Idummy flag and VLC is indeed opening, it's connecting to a stream, CTRL+M isn't showing any errors or messages, but there is no audio. Have tried multiple apps, all nothing.

from sndcpy.

Tyr808 avatar Tyr808 commented on May 23, 2024

Have tried multiple apps, all nothing.

Did you try youtube and VLC for Android? They are known to forward audio correctly.

Nothing from either YouTube or VLC unfortunately. Everything seems to be running on Android properly as far as I can tell, I've got a Mi Mix 2 (chiron) on Lineage OS 17.1 which is an Android 10 rom. Any kind of detailed log I could gather to help troubleshoot this either on the PC or Android side of things?

P.S. for what it's worth, srccpy is working perfectly fine via USB, it's just the sndcpy part I'm struggling with

P.P.S. for the sake of science, I tried the ffplay suggestion another user had in a different thread and modified the batch file to use that instead. It LOOKS like it's doing stuff and configured properly, but I'm also not that experienced with ffplay and not a dev, more of a "power user" that is decent enough at troubleshooting and testing variables. I included a screenshot of the command prompt window I was using for this to see if it helps anything. I still wasn't actually hearing anything on my PC and I did of course make sure I was using the default audio device and that other applications were capable of outputting audio. I could hear audio from the phone speaker, but nothing coming through the PC. I'm wondering if there is simply some bug or limitation on my phone that is preventing the audio
image

from sndcpy.

Dinesh08 avatar Dinesh08 commented on May 23, 2024

I am getting sound from other streaming apps except from VLC when i try to play from local audio/video, tried to remove -Idummy flag still same, using from device Realme 3 Pro... logs from terminal and i see no errors either

Waiting for device...
Success
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.rom1v.sndcpy/.MainActivity }
Press Enter once audio capture is authorized on the device to start playing...
VLC media player 3.0.9.2 Vetinari (revision 3.0.9.2-0-gd4c1aefe4d)
[00005640132028b0] dummy interface: using the dummy interface module...

from sndcpy.

janlely avatar janlely commented on May 23, 2024

VLC seems playing, but no sound on the computer
Screenshot from 2020-09-05 14-08-42

from sndcpy.

Dinesh08 avatar Dinesh08 commented on May 23, 2024

VLC seems playing, but no sound on the computer
Screenshot from 2020-09-05 14-08-42

Are u able to hear from YT and other streaming apps?

from sndcpy.

ShiverZm avatar ShiverZm commented on May 23, 2024

i met the same as janlely ,

from sndcpy.

rom1v avatar rom1v commented on May 23, 2024

@Tyr808 Thank you for your help.

However, sndcpy just uses the Playback capture API provided by the system.

The fact that it works on some devices or for some apps but not on others is an implementation issue of this API (by the device system), so there's nothing sndcpy could fix.

from sndcpy.

evansmosomi avatar evansmosomi commented on May 23, 2024
  • I guess it works for Android 11 and forward. I had the same challenges using Android 10 and previous versions.
  • Taking out the -Idummy in the .bat file helped too.
  • Ensure you are using the correct installation files: especially WINDOWS users, the adb is necessary!
  • In Android studio, it's easier to have only one device at a time running!

from sndcpy.

evansmosomi avatar evansmosomi commented on May 23, 2024

Just updated my device from a Xiaomi Mi Mix 2 to a Pixel 4a. Mi Mix 2 was on LineageOS 17 (android 10), Pixel 4a is on official android 11. Audio works with pixel 4a, with my same FFmpeg configuration, still doesn't work on my Mi Mix 2. It could be a limitation of the hardware or a software bug, not sure. @rom1v , if there is a way I can run a detailed log for you if you'd like to compare, let me know, I'd be happy to help.

@Tyr808 do you have the link to the modified batch file with ffplay?

from sndcpy.

Ajnus avatar Ajnus commented on May 23, 2024

removing -Idummy and CHANGING VLC path to it's x86 folder ("C:\Program Files (x86)\VideoLAN\VLC\vlc.exe", and yes the default Program Files folder opened it as well, but not with sndcpy) did it for me.

And still Android Pie (9.0) here.

from sndcpy.

rom1v avatar rom1v commented on May 23, 2024

And still Android Pie (9.0) here.

Don't even try.

The Android device requires at least Android 10.

https://github.com/rom1v/sndcpy#requirements

from sndcpy.

Ajnus avatar Ajnus commented on May 23, 2024

And still Android Pie (9.0) here.

Don't even try.

The Android device requires at least Android 10.

https://github.com/rom1v/sndcpy#requirements

Indeed, I updated it.

from sndcpy.

tomannyanomaly avatar tomannyanomaly commented on May 23, 2024

can i ask something
what's the problem of this error? I new on this and idk how to fix it
Cuplikan layar 2023-09-23 201507

from sndcpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.