xat / castnow

commandline chromecast player
MIT License
3.81k stars 243 forks source link

How to properly pass ffmpeg options? #245

Open tkossak opened 5 years ago

tkossak commented 5 years ago

I have a video file with audio codec that causes no audio on TV when casting through castnow. When I convert the audio with ffmpeg it works fine (both audio and video):

ffmpeg -i sample.mkv -vcodec copy -acodec vorbis -ac 2 -strict -2 -f mp4 -movflags frag_keyframe+faststart - | castnow -

But then the castnow shortcut keys don't work. How can I convert above command to castnow options? I tried:

castnow ./sample.mkv --ffmpeg-vcodec copy --ffmpeg-acodec vorbis --ffmpeg-ac 2 --ffmpeg-strict -2 --ffmpeg-f mp4 --ffmpeg-movflags frag_keyframe+faststart

And it plays but with no sound.

ZakariasBW commented 5 years ago

try with:

castnow ./sample.mkv --tomp4 --ffmpeg-vcodec copy --ffmpeg-acodec vorbis --ffmpeg-ac 2 --ffmpeg-strict experimental --ffmpeg-f mp4 --ffmpeg-movflags frag_keyframe+faststart

--tomp4 is needed to use the transcoding plugin. note: seeking is disabled when transcoding hope this helps

tkossak commented 5 years ago

I can't even verify it because castnow stopped working (stuck on "Loading...."). Thank you anyway. I think I'll stick to chrome extension for casting my files to chromecast. This project seems to be abandoned...

sarbuckle commented 5 years ago

A simpler command for this problem of no audio with castnow would look something like. castnow --tomp4 --ffmpeg-c:a ac3