How to add a MOOV atom in a mp4 video file

前端 未结 8 1542
礼貌的吻别
礼貌的吻别 2020-12-24 06:04

I am working on live device to server streaming in android. I am able to send data in bytes on server but when i play that file during recording on server VLC

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-24 06:21

    In my case ffmpeg wouldn't even let me recreate the container using:

    ffmpeg -i video.mp4 -c copy out.mp4
    

    It failed with the same corrupted STCO atom error.

    I was able to fix this problem by opening up the video file in avidemux and re-exporting the video without encoding.

    Then ffmpeg could read this file without problems.

提交回复
热议问题