Log in

View Full Version : How to play x265 bitstream?


asdf013cv
9th May 2018, 17:44
I get some test sequences from http://ultravideo.cs.tut.fi/#testsequences.

Right now, I want to see the output file of x265.
From http://x265.readthedocs.io/en/latest/cli.html#cmdoption-output, the format of the output file is a raw bitstream.
However, it seems like I need a container to wrap it so that I can play the video. (Am I right?)
If so, how do I do this in my computer? (arch linux)
Or, can anyone give me some concepts or workflow about it?
Thanks a lot.

sneaker_ger
9th May 2018, 21:22
Some players (e.g. mpv (https://mpv.io/) and ffplay) can play "raw" HEVC/H.265 bitstreams but if you want to seek (in contrast to just watch linearly from start to end) it can become problematic because the raw bitstream doesn't have any index. Seeking might work to some extend but the results can be erratic (inaccurate seeking, artifacts, not work at all).

If you have trouble seeking you can remux using mkvmerge. E.G.: mkvmerge -o "output.mkv" "input.265". Or you directly encode into an mkv or mp4 container using ffmpeg (it has integrated libx265).

asdf013cv
10th May 2018, 05:00
Thanks a lot!
I use ffplay to play my bitstream, and it works. :)