keredson / gnomecast

Chromecast local files from Linux - supports MKV, subtitles, 5.1 sound and 4K!
GNU General Public License v3.0
1.43k stars 50 forks source link

No audio #136

Open slumbergod opened 4 years ago

slumbergod commented 4 years ago

Almost everything plays as it should but sometimes I come across a title where there is no audio. Today's viewing is one such example.

From VLC report: Type: Audio Codec: A52 Audio (aka AC3) (a52 ) Channels: 3F2M/LFE Sample rate: 48000 Hz Bits per sample: 32

Is there a way to force the audio to be encoded to mp3 so it plays without problems? Usually, I use handbrake and re-encode video and audio but that is a hassle.

EDIT: after this sound wouldn't play I moved to a different video. It did its transcoding but this time I had sound and no video. It turned out that the file was not x264 as it was labelled but actually x265. So another question: why does an x265 get transcoded to an "acceptable" format for streaming yet still have no video?

keredson commented 4 years ago

different chromecasts support just x264 or x264 and x265, but i have no known way to query, so i've just been blacklisting devices that can't play x265. what device do you have? does it support 4k?

slumbergod commented 4 years ago

No, we don't have the 4K version. Our chromecast is a couple of years old. Maybe a solution is to add an option to force re-encoding of all audio and video and make it an option the user can set. These days when I have to manually re-encode a video to work I just choose old formats (like mp3 for audio and one of the web settings in handbrake). Then gnomecast has no problems at all.