castnow icon indicating copy to clipboard operation
castnow copied to clipboard

How to properly pass ffmpeg options?

Open tkossak opened this issue 6 years ago • 3 comments

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.

tkossak avatar May 13 '19 11:05 tkossak

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

ZakariasBW avatar Jun 14 '19 23:06 ZakariasBW

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...

tkossak avatar Jun 19 '19 09:06 tkossak

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

sarbuckle avatar Nov 27 '19 10:11 sarbuckle