将 H.264 媒体文件转换为 mp4
Conversion of H.264 media file to mp4
我有一个原始的 h264 文件,我想将其转换为 mp4 格式,以便我可以在任何视频中播放它们 player.But 我在使用 ffmpeg 执行此任务时遇到很多错误。
我使用以下命令行转换为 mp4。
ffmpeg -f h264 -i input.264 -vcodec output.mp4
以下是我得到的错误。
missing picture in access unit with size 3273224
no frame
decoding for stream 0 failed
could not find codec parameters for stream 0
当我使用 ffprobe input.264
进行探测时,出现了这些错误。
Missing picture in access unit with size 3273224
No start code found
Error splitting the input into NAL units
decoding for stream 0 failed
could not find codec parameters for stream 0
我检查了该站点中的其他类似问题,但找不到 solution.I 已将文件添加到 http://s000.tinyupload.com/index.php?file_id=81246308569166574331
看看视频。
您的比特流文件包含损坏的数据(根本没有数据,所有字节都为零)。只需在您最喜欢的十六进制编辑器中查看它,或者像这样使用 hexdump
:
hexdump -C seq1_cam09_20150114_063257_500.264
给出以下输出:
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
0031f200 00 00 00 00 00 00 00 00 |........|
0031f208
这就是您收到 No start code found
消息的原因,因为没有 NAL 单元(通常以 00 00 01
开头)。
我有一个原始的 h264 文件,我想将其转换为 mp4 格式,以便我可以在任何视频中播放它们 player.But 我在使用 ffmpeg 执行此任务时遇到很多错误。 我使用以下命令行转换为 mp4。
ffmpeg -f h264 -i input.264 -vcodec output.mp4
以下是我得到的错误。
missing picture in access unit with size 3273224
no frame
decoding for stream 0 failed
could not find codec parameters for stream 0
当我使用 ffprobe input.264
进行探测时,出现了这些错误。
Missing picture in access unit with size 3273224
No start code found
Error splitting the input into NAL units
decoding for stream 0 failed
could not find codec parameters for stream 0
我检查了该站点中的其他类似问题,但找不到 solution.I 已将文件添加到 http://s000.tinyupload.com/index.php?file_id=81246308569166574331
看看视频。
您的比特流文件包含损坏的数据(根本没有数据,所有字节都为零)。只需在您最喜欢的十六进制编辑器中查看它,或者像这样使用 hexdump
:
hexdump -C seq1_cam09_20150114_063257_500.264
给出以下输出:
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
0031f200 00 00 00 00 00 00 00 00 |........|
0031f208
这就是您收到 No start code found
消息的原因,因为没有 NAL 单元(通常以 00 00 01
开头)。