The invention discloses an all-format media player capable of supporting hardware decoding for digital STB (
Set Top Box), wherein a hardware decoding interface and a hardware decoding
chip which is connected with the hardware decoding interface are arranged between a
package format analysis module and an output module; when the hardware decoding manner is needed, demultiplexed PES data or ES data are transmitted to the hardware decoding
chip through the hardware decoding interface and decoded into audio / video data. The all-format media player disclosed by the invention has the advantages of coexisting
software / hardware decoding, supporting
hardware acceleration, supporting various types of channels, having excellent expansibility on
software, having excellent generality on source codes and capably
transplanting on different hardware platforms. The all-format media player can play media files stored in a local storage medium and
network media files, supports the playing of the media files in full
package format, and further reads and plays the media files in an
external storage medium. According to the all-format media player disclosed by the invention, the disadvantages that the media files in several specific formats only can be played by the present
digital television terminal can be effectively solved, therefore the resources are saved, and superior high-definition video playing effect can further be provided to users.