Jump to content

Chromecast and AC3 passthrought


eraser8

Recommended Posts

  • 3 weeks later...

Also there should be no need to do a full transcode if it's a mkv, just change the container to mp4 and directcopy the video and audio stream.

Link to comment
Share on other sites

CBers

Also there should be no need to do a full transcode if it's a mkv, just change the container to mp4 and directcopy the video and audio stream.

Do you mean convert, or just change the extension?

Link to comment
Share on other sites

ffmpeg -i input.mkv -vcodec copy -acodec copy out.mp4

 

This is done within seconds and you have a file chromecast can read, if the video and audio content is a format chromecast reads.

  • Like 1
Link to comment
Share on other sites

everything i've read points to ref=4 as the max. what can i refer to that indicates 5?

 

http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels

 

1,280×720@68.3 (9 ref)

1,920×1,080@30.1 (4 ref)

2,048×1,024@30.0 (4 ref)

 

Note that on cropped media, such as 1920x800 high@L4.1 - CC should handle 5 ref just fine because it's within the buffer limits of the specs.

Link to comment
Share on other sites

  • 2 years later...

Spot on KRA and the math proves it:-

 

maximum ref = MaxDPB * 1024 / ( FrameWidth * FrameHeight * 1.5)

                      = 12288 * 1024 / (1920 * 800 * 1.5)

                        = 5 (rounded down to the nearest integer)

 

Maybe the Chromecast takes a naive approach to decide whether or not to play a video. Something along the lines of, if the height is greater than 720 and the number of references is greater than 4 don't even attempt playback.

 

everything i've read points to ref=4 as the max. what can i refer to that indicates 5?

 

https://en.wikibooks.org/wiki/MeGUI/x264_Settings#ref

Link to comment
Share on other sites

@@OddbOd, we actually don't restrict on refframes anymore for chromecast. What we now is try to play, and if it fails we automatically switch to transcoding.

Link to comment
Share on other sites

@@Luke, that is hilarious, I suggested exactly the same technique be implemented in the unofficial Samsung client (last paragraph of https://emby.media/community/index.php?/topic/31627-framerate-check-causes-playback-failure-or-unwanted-transcoding/?p=304099)and was ignored.

 

We have it in our official Samsung app as well.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...