gpt4 book ai didi

FFmpeg 打开 key 信息文件 - 无法为输出文件写入 header

转载 作者:行者123 更新时间:2023-12-04 23:03:07 24 4
gpt4 key购买 nike

我想要带键的 muxer mp4 到 m3u8。
当我将所有文件放在同一个目录中时,我可以做到这一点。

  • 文件 480.mp4.key
  • 文件视频 480.mp4
  • 文件 hls 信息的名称为:“480.mp4.keyinfo”

  • 当我运行命令 ffmpeg -i 480.mp4 -hls_time 10 -hls_key_info_file 480.mp4.keyinfo output.mp4.m3u8一切正常运行。
    但是,当我将文件“480.mp4.key”和文件“480.mp4.keyinfo”移动到另一个目录(如 /usr/local/WowzaStreamingEngine/keys/auto_scan/testhh/2/123/480.mp4.keyinfo)时遇到问题。
    我还更改了文件 keyinfo 中的 key 目录
    之后我跑
    ffmpeg -i 480.mp4 -hls_time 10 -hls_key_info_file 480.mp4.keyinfo output.mp4.m3u8 ffmpeg -i output/testhh/2/123/480.mp4 -hls_time 10 -hls_key_info_file /usr/local/WowzaStreamingEngine/keys/auto_scan/testhh/2/123/480.mp4.keyinfo output/testhh/2/123/480.mp4.m3u8
    但我收到一个错误:
     error opening key info file /usr/local/WowzaStreamingEngine/keys/auto_scan//testhh/2/123/output/testhh/2/123/480.mp4.keyinfo
    Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory
    Error initializing output stream 0:0 --

    最佳答案

    使用 .txt扩大
    例如

    -hls_key_info_file key_info.txt

    关于FFmpeg 打开 key 信息文件 - 无法为输出文件写入 header ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42812500/

    24 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com