0

I obtained this video from directly reading the memory of a hardware encoder. The encoder supposedly produces a HEVC (H.265) or H.264 video stream, but I can't accurately play or convert the file with ffplay or ffmpeg.

Given the information below, is this something I might be able to play correctly? Is it incomplete data, and something more may be needed to reconstruct the video?

Link to the file I'm trying to play.

This is what ffmplay is producing when trying to play the file. It's possible to view the outlines of the actual recorded objects. Seems like information about the pixels that change? That would be something to be expected from a H264 or H265 stream...

ffplay -f rawvideo -video_size 1920x1088 -framerate 5 -pixel_format yuv420p stream.bin

enter image description here

And this is a sample of the actual recorded footage, for comparison purposes:

enter image description here

When I try to play it using ffplay, no arguments:

$ ffplay stream.bin
[NULL @ 00000183f45bee20] [IMGUTILS @ 0000001b95bfef00] Picture size 1280x5222400 is invalid
[bin @ 00000183f45ac600] Failed to open codec in avformat_find_stream_info
[bintext @ 00000183f45bee20] [IMGUTILS @ 0000001b95bfedd0] Picture size 0x0 is invalid
[bintext @ 00000183f45bee20] video_get_buffer: image parameters invalid
[bintext @ 00000183f45bee20] get_buffer() failed
[bintext @ 00000183f45bee20] reget_buffer() failed
[bin @ 00000183f45ac600] Stream #0: not enough frames to estimate rate; consider increasing probesize
[bin @ 00000183f45ac600] decoding for stream 0 failed
[bin @ 00000183f45ac600] Could not find codec parameters for stream 0 (Video: bintext, pal8): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, bin, from '238F.bin':
  Duration: N/A, bitrate: N/A
25 tbn, 25 tbc0: Video: bintext, pal8, 25 tbr,     nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0
[bintext @ 00000183f45bf7c0] [IMGUTILS @ 0000001b95dff340] Picture size 0x0 is invalid
[bintext @ 00000183f45bf7c0] video_get_buffer: image parameters invalid
[bintext @ 00000183f45bf7c0] get_buffer() failed
[bintext @ 00000183f45bf7c0] reget_buffer() failed
    nan M-V:    nan fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0

Trying to force H265 and H264:

$ ffplay -f hevc stream.bin
[hevc @ 00000130c4fe6e60] Invalid NAL unit 0, skipping.  0B f=0/0
[hevc @ 00000130c4fe6e60] Invalid NAL unit 0, skipping.  0B f=0/0
    Last message repeated 5 times
    Last message repeated 5 times
Invalid NAL unit 8, skipping. nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0
[hevc @ 00000130c4fe6e60] Invalid NAL unit 0, skipping.
    Last message repeated 1 times
[hevc @ 00000130c4fe6e60] Invalid NAL unit 0, skipping.  0B f=0/0
    Last message repeated 1 times
    Last message repeated 1 times
Invalid NAL unit 24, skipping.nan    :  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0
[hevc @ 00000130c4fe6e60] Invalid NAL unit 0, skipping.
    Last message repeated 2 times
[hevc @ 00000130c4fe6e60] Invalid NAL unit 0, skipping.  0B f=0/0
    Last message repeated 4 times
    Last message repeated 4 times
[hevc @ 00000130c4fe6e60] missing picture in access unit 0B f=0/0
(...)
$ ffplay -f h264 stream.bin
[h264 @ 0000022a70567080] non-existing PPS 1 referenced  0B f=0/0
[h264 @ 0000022a70567080] data partitioning is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[h264 @ 0000022a70567080] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[h264 @ 0000022a70567080] slice type 22 too large at 1
[h264 @ 0000022a70567080] decode_slice_header error
[h264 @ 0000022a70567080] non-existing PPS 2 referenced
[h264 @ 0000022a70567080] decode_slice_header error
[h264 @ 0000022a70567080] no frame!
[h264 @ 0000022a70567080] non-existing PPS 2 referenced
    Last message repeated 1 times
[h264 @ 0000022a70567080] decode_slice_header error
[h264 @ 0000022a70567080] no frame!
[h264 @ 0000022a70567080] non-existing PPS 0 referenced  0B f=0/0
    Last message repeated 1 times
[h264 @ 0000022a70567080] decode_slice_header error
(...)

EDIT

There's another dump I'd like you to take a look at: link to file.

ffplay -f rawvideo -video_size 1920x1088 -framerate 5 -pixel_format yuyv422 -vf scale=320:-1 0x239F.bin

enter image description here

And the correct image, for reference:

enter image description here

  • 1
    The file is definitely not h264 or h.265. It is an uncompressed format of some kind. – SlimSCSI Mar 12 at 2:41
  • Ueah, this is raw raster. You'll need the correct frame size and pixel format.. – Gyan Mar 12 at 6:00
  • @SlimSCSI, Gyan, I edited the question to add a new file, that seems to have another format. Would you mind taking a look? Thank you. – Telmo Marques Mar 12 at 10:23

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.