Closed pawanvivekananda closed 6 years ago
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fa8a6000000] stream 0, offset 0xa8: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fa8a6000000] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none(bt709), 560x320, 465 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Ffmpeg seems unable to find codec information in your stream. Maybe try passing the input format and codec.
@pawanvivekananda to output mp4 as a stream you'll need to add the flags for fast start:
.outputOptions([
'-movflags frag_keyframe+empty_moov',
'-movflags +faststart'
])
.toFormat('mp4')
The problem is probably with how MP4 container is arranged. This answer helped me: https://stackoverflow.com/a/40028894/4027465
@rhodgkins gave the correct answer I think, reopen if needed.
Version information
Code to reproduce
(note: if the problem only happens with some inputs, include a link to such an input file)
Expected results
Observed results
Checklist