hzeller / gmrender-resurrect

Resource efficient UPnP/DLNA renderer, optimal for Raspberry Pi, CuBox or a general MediaServer. Fork of GMediaRenderer to add some features to make it usable.
GNU General Public License v2.0
832 stars 202 forks source link

Fail Validation for Music APP #231

Open fn1232 opened 3 years ago

fn1232 commented 3 years ago

Music APP need verify Registering support Message,such as Play FLAC need dmr return Registering support for 'audio/flac' . but gmrender-resurrect just only return Registering support for 'audio/x-flac', could you help me?

mill1000 commented 3 years ago

You can manually register support for a mime type with the --mime-filter argument. Like so

gmediarender --mime-filter +audio/flac
fn1232 commented 3 years ago

You can manually register support for a mime type with the --mime-filter argument. Like so

gmediarender --mime-filter +audio/flac

Thank you very much.It's managed. And I use gmediarender build hifi system,Could you give me some argument suggestion? Thank you:)

mill1000 commented 3 years ago

The other options I run with my HiFi are these:

--mime-filter audio --gstout-buffer-duration=0

The first limits the MIME types that are advertised to be audio only since it's headless. The second is to address this issue: https://github.com/hzeller/gmrender-resurrect/issues/182

fn1232 commented 3 years ago

Thank you so much for your suggestion,I will try it.:)

fn1232 commented 3 years ago

If I want make this two --mime-filter config,what should I do? gmediarender --mime-filter +audio/flac --mime-filter audio
inoperative.

mill1000 commented 3 years ago

Use a comma to separate the arguments like so

--mime-filter audio,+audio/flac
fn1232 commented 3 years ago

Thank you so much.The problem below is ok.But new problem is coming when I play DSD there is an error: ERROR [2021-02-09 12:46:26.525476 | gstreamer] avdemux_dsf0: Error: Internal data stream error. (Debug: gstavdemux.c(1597): gst_ffmpegdemux_loop (): /GstPlayBin:play/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/avdemux_dsf:avdemux_dsf0: streaming stopped, reason error (-5)) Could you help me?

fn1232 commented 3 years ago

I make this gst-play-1.0 --audiosink='alsasink device=hw:2,0' --volume=-1 /root/1.dsf is ok But I use dlna make error

mill1000 commented 3 years ago

Another user reported issues with DSD here: #213

They weren't even able to play the DSD file locally with gst-play-1.0 so you've already made more progress then them.

My version of gst-libav (1.10.4) predates the addition of DSD support so I'm afraid I won't be of much use.

fn1232 commented 3 years ago

Another user reported issues with DSD here: #213

They weren't even able to play the DSD file locally with gst-play-1.0 so you've already made more progress then them.

My version of gst-libav (1.10.4) predates the addition of DSD support so I'm afraid I won't be of much use.

Thanks for your reply,that post forum I have read,ffmpeg -decoders | grep DSD result is same as your result.I find that if minimserver transcode to dopwav,it can play well. I use squeezelie can recieve and play native.because dop can't play dsd128+ so I want native dsd dlna surport.Could you give me some suggestion?

mill1000 commented 3 years ago

You could try enabling debug messages with the GST_DEBUG environment variable for both gst-play-1.0 and gmrenderer and compare the messages when trying to play your DSD files.

That might provide some clues as to why your DSD files fail.

fn1232 commented 3 years ago

You could try enabling debug messages with the GST_DEBUG environment variable for both gst-play-1.0 and gmrenderer and compare the messages when trying to play your DSD files.

That might provide some clues as to why your DSD files fail.

OK,I will try it,when I come back. Thank you very much.

fn1232 commented 3 years ago

When I Play dsf message is:

INFO [2021-02-20 01:41:49.173828 | transport] TransportState: PLAYING INFO [2021-02-20 01:41:49.173908 | transport] CurrentTransportActions: PAUSE,STOP,SEEK INFO [2021-02-20 01:41:49.173947 | transport] CurrentTrack: 1 INFO [2021-02-20 01:41:49.173982 | transport] CurrentTrackURI: http://192.168.9.223:9790/minimserver/*/opera/*e6*96*b0*e5*8a*a0*e5*8d*b7/Music/DSD/JAZZ/B*20FONE*20*20*e7*bb*8f*e5*85*b8*e7*9b*98*e6*bc*94*e5*a5*8f*e7*88*b5*e5*a3*ab*20*e8*90*a8*e5*85*8b*e6*96*af*20*e9*92*a2*e7*90*b4*20*e5*a4*a7*e6*8f*90*e7*90*b4*20*e9*bc*93*20SACD/01*20-*20SCOTT*20HAMILTON*20-*20EVERYTHING*20HAPPENS*20TO*20ME.dsf INFO [2021-02-20 01:41:49.174025 | transport] CurrentTrackMetaData: EVERYTHING HAPPENS TO ME</dc:title>SCOTT HAMILTON</dc:creator>2016-01-11T00:00:00Z</dc:date>SCOTT HAMILTON</upnp:artist>SCOTT HAMILTON</upnp:actor>SCOTT HAMILTON</upnp:author>BALLADS FOR AUDIOPHILES</upnp:album>Jazz</upnp:genre>1</upnp:originalTrackNumber>http://192.168.9.223:9790/minimserver/*/opera/*e6*96*b0*e5*8a*a0*e5*8d*b7/Music/DSD/JAZZ/B*20FONE*20*20*e7*bb*8f*e5*85*b8*e7*9b*98*e6*bc*94*e5*a5*8f*e7*88*b5*e5*a3*ab*20*e8*90*a8*e5*85*8b*e6*96*af*20*e9*92*a2*e7*90*b4*20*e5*a4*a7*e6*8f*90*e7*90*b4*20*e9*bc*93*20SACD/01*20-*20SCOTT*20HAMILTON*20-*20EVERYTHING*20HAPPENS*20TO*20ME.dsfobject.item.audioItem.musicTrack</upnp:class> INFO [2021-02-20 01:41:49.174260 | transport] LastChange: <?xml version="1.0"?>

ERROR [2021-02-20 01:41:49.566713 | gstreamer] avdemux_dsf0: Error: Internal data stream error. (Debug: gstavdemux.c(1597): gst_ffmpegdemux_loop (): /GstPlayBin:play/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/avdemux_dsf:avdemux_dsf0: streaming stopped, reason error (-5)) Could you give some suggestion?

mill1000 commented 3 years ago

I'm confident it's a Gstreamer issues not a gmrender-resurrect issue as I showed here: https://github.com/hzeller/gmrender-resurrect/issues/213#issuecomment-781578852