Log in

View Full Version : Encoded 264 files


koliva
1st March 2010, 13:17
Hi again,

After my last question, I am now able to encode my pictures as 264 file. The question is, how can I play this movie by using mdeia player or bsplayer? Do I have to decode and see it?

If I try to open it by bsplayer it gives error:

BS.Player cannot play the media file.
You don't have necessary codec installed, file may damaged or not media file.

roozhou
1st March 2010, 13:22
You need a source filter to demux 264 stream. Try MainConcept MPEG Splitter.

koliva
1st March 2010, 13:41
You need a source filter to demux 264 stream. Try MainConcept MPEG Splitter.

Could you please clarify it for me? I didnt understand anything or what to do. Thanks.

CWR03
1st March 2010, 14:06
Install ffdshow, then it should play in any media player.

koliva
1st March 2010, 14:13
Install ffdshow, then it should play in any media player.

I have already installed it but it isn't working.
Perhaps, I couldn't explain my situation. I am encoding my data by JM.16.2 reference software. As an output, I have xxx.264 file. This file is not working. Any help?

Limit
1st March 2010, 14:53
You should try to mux this raw stream into a container like mkv or mp4 (search for mkvmerge / mp4box to do this).

A better solution would be using x264 to encode the video. In that case you could use its integrated mkv/mp4 muxer.

koliva
1st March 2010, 15:03
You should try to mux this raw stream into a container like mkv or mp4 (search for mkvmerge / mp4box to do this).

A better solution would be using x264 to encode the video. In that case you could use its integrated mkv/mp4 muxer.

So, why can't I splay this file itself? It is an encoded file and it has all the information it need to be played. What do I need a container? What does it do?

Keiyakusha
1st March 2010, 15:10
So, why can't I splay this file itself? It is an encoded file and it has all the information it need to be played. What do I need a container? What does it do?

.264 file doesn't meant to be played by itself. However it is possible with some source filters. For info about containers :search:

Midzuki
1st March 2010, 15:59
MPlayer supports "raw" H264 streams. :)

roozhou
2nd March 2010, 03:10
@koliva
In order to play any video in a Directshow-based media player(MPC and BS.Player are within this scope), you need a parser/splitter to recognize and demux the file plus a decoder to decode the video stream. Most players do not contain a raw H264 stream parser while H264 decoders are nowadays shipped with almost every player thanks to ffmpeg. So that's why H264 in mp4 or mkv can be played by BSPlayer but raw .264 file cannot.

AFAIK there is no open-source directshow filter that supports demuxing of raw h264 stream. That's why I recommend MainConcept MPEG Splitter, which is shipped with many software that uses MainConcept SDK.

Midzuki
2nd March 2010, 17:44
@ koliva:

it seems your current build of the "JM Reference Encoder" is not producing compliant/playable elementary streams. Here goes the link to a very-short H264 elementary stream which is happily "swallowed" :) by MPlayer r28311:

http://cid-5acf098e0ebae8d5.skydrive.live.com/self.aspx/.Public/barbarella.264

P.S.: It was encoded with x264 v.1471, of course. ;)