subik hosting platform family and friend web hostingSerious Problems with this site:

How to create working media files for Sony Bravia TV’s media player using ffmpeg

You just bought a new Bravia TV’s (KDL-xxEXxxx) or discovered there is a built-in media player. Then you might suffer as I did in the difficulty to create the right video media file format. According to the specifications the new Bravia series supports the following video and audio formats on a FAT32 or exFAT formatted usb device:

  • AVCHD („.mts“ or „.m2ts“)
  • MP4 (AVC) („.mp4“)
  • MP4 (MPEG4) („.mp4“)
  • MPEG1 („.mpg“)
  • MPEG2 („.mpg“)
  • DivX („.divx“ oder „.avi“)
  • WMV („.wmv“ oder „.asf“)
  • MP3 („.mp3“)
  • WAV („.wav“)
  • WMA („.wma“)

But it’s not as easy as it seems. There are many compatibility problems as the media player is picky what to play. Here some tips to create the right video files for your device and two ffmpeg-examples with settings your TV will absolutely play:

  1. The media player doesn’t support mpeg4/DVIX with 720p. Use mpeg4/XVID instead!
  2. If you want multiple audio tracks in your video use the .avi container!
  3. Use ac3 or mp3 audio tracks!
For example you have downloaded a .mkv video and “ffmpeg -i input.mkv” shows the following:

Stream #0.0: Video: h264 (High), yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn, 47.95 tbc (default)
Stream #0.1(ger): Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s (default)
Stream #0.2(eng): Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s

You will get the best result if you compress it into the mpeg4/XVID-format with two mp3-tracks in an .avi container:

ffmpeg -i input.mkv -map 0:0 -vcodec mpeg4 -vtag XVID -b 4000k -aspect 16:9 \
-map 0:1 -acodec libmp3lame -ab 320k output.avi \
-map 0:2 -acodec libmp3lame -ab 320k -ac 2 -newaudio

I wasn’t able to get XVID working with ac3 audio tracks but if you only need one audio track you can create a mpeg4/.mp4 file:

ffmpeg -i input.mkv -map 0:0 -vcodec mpeg4 -b 4000k -aspect 16:9 \
-map 0:1 -acodec ac3 -ab 320k output.mp4

I hope these suggestions will save you from shelling out for another seperate media box!

please leave a note with your experience, timely. Public comments are closed after a few days to prevent spam.

Ed: Applause for the first post of Sebastian on this blog. I rewrote the piece I did work on the english, not the topic. Tremendous start, keep the articles coming!

One Response Subscribe to comments

  1. admin

    note to myself: I need to display the author field in the template …

    Aug 02, 2012 @ 3:30 pm