ffprobe output video: png


ffprobe is telling me that my video file is a png.

[png_pipe @ 0x7f9ece003c00] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, png_pipe, from '1.ts':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Video: png, rgb24(pc), 1x1 [SAR 3779:3779 DAR 1:1], 25 tbr, 25 tbn, 25 tbc

enter image description here

I'm a little bit confused, as it plays fine as a ts or mpeg file. But when I run ffmpeg -y -i in.ts -acodec copy -vcodec copy out.mp4 the command completes fine, but I end up with a file that can't be played. I get an alert that says "The operation could not be completed" from Quicktime, and I can't open it in Chrome or Firefox either so I know it's not an issue with Quicktime.

So, this probably has to do with the video being a png video. I always thought that png was a format for images only, but here I am. Can someone give me some info on this, and how can I convert it to an mp4?


Answers:


I had the same issue, it could be a stream masqueraded with a PNG header.

I used dd to strip the 1st 8 bytes off and ffprobe detected the correct format.

dd if=1.ts of=fixed/1.ts ibs=8 skip=1