gpt4 book ai didi

audio - 将视频的格式复制到另一个

转载 作者:行者123 更新时间:2023-12-03 01:42:02 25 4
gpt4 key购买 nike

假设我有:

  • video1.avi,可以在电视的USB媒体输入上完美播放(声音和图像)
  • 电视机无法识别的
  • video2.avi:“无法读取此格式”

  • 我尝试了很多解决方案,例如:
    ffmpeg -i video2.avi -codec:a libmp3lame -q:a 0 -ac 2 -ar 48000 -joint_stereo 0^
    -codec:v libxvid -q:v 25 video2_reencoded.avi

    当我将 video1.avivideo2_reencoded.aviMediaInfo进行比较时,它们在大多数方面看起来都很相似,即 ,但最终电视将无法播放video2_reencoded.avi

    ffmpeg是否可以在video1.avi上复制video2.avi的所有规范(声音编码属性,视频编码属性,图像大小,容器类型等)?

    附录:这三个视频的MediaInfo输出。在此特定示例中, video2.avivideo2_reencoded.avi起作用一半:图像正常,但声音不正常。在我尝试过的其他视频示例中, video2.avivideo2_reencoded.avi完全是“无法阅读”的。
    video1.avi(即正在工作)
    Format                                   : AVI
    Format/Info : Audio Video Interleave
    File size : 352 MiB
    Duration : 51 min 22 s
    Overall bit rate : 959 kb/s
    Writing application : VirtualDubMod 1.5.10.3 | ... || (build 2550/release)
    Writing library : VirtualDubMod build 2550/release

    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings : BVOP1
    Format settings, BVOP : 1
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (MPEG)
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 51 min 22 s
    Bit rate : 821 kb/s
    Width : 720 pixels
    Height : 400 pixels
    Display aspect ratio : 16:9
    Frame rate : 25.000 FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.114
    Stream size : 302 MiB (86%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)

    Audio
    ID : 1
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Codec ID : 55
    Codec ID/Hint : MP3
    Duration : 51 min 22 s
    Bit rate mode : Constant
    Bit rate : 128 kb/s
    Channel(s) : 2 channels
    Sampling rate : 48.0 kHz
    Compression mode : Lossy
    Stream size : 47.0 MiB (13%)
    Alignment : Aligned on interleaves
    Interleave, duration : 40 ms (1.00 video frame)
    Interleave, preload duration : 504 ms
    Writing library : LAME3.99r
    Encoding settings : -m s -V 4 -q 2 -lowpass 17 -b 128
    video2.avi(即无效)
    Format                                   : AVI
    Format/Info : Audio Video Interleave
    File size : 1.37 GiB
    Duration : 2 h 12 min
    Overall bit rate : 1 478 kb/s
    Writing application : VirtualDubMod 1.5.10.2 Fr | ... || (build 2540/release)
    Writing library : VirtualDubMod build 2540/release

    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings : BVOP1
    Format settings, BVOP : 1
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Muxing mode : Packed bitstream
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 2 h 12 min
    Bit rate : 1 084 kb/s
    Width : 624 pixels
    Height : 368 pixels
    Display aspect ratio : 5:3
    Frame rate : 25.000 FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.189
    Stream size : 1.00 GiB (73%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)

    Audio
    ID : 1
    Format : AC-3
    Format/Info : Audio Coding 3
    Codec ID : 2000
    Duration : 2 h 12 min
    Bit rate mode : Constant
    Bit rate : 384 kb/s
    Channel(s) : 6 channels
    Sampling rate : 48.0 kHz
    Compression mode : Lossy
    Stream size : 364 MiB (26%)
    Alignment : Split accross interleaves
    Interleave, duration : 40 ms (1.00 video frame)
    Interleave, preload duration : 512 ms
    video2_reencoded.avi(即无效,已重新编码但仍无效)
    Format                                   : AVI
    Format/Info : Audio Video Interleave
    Format profile : OpenDML
    File size : 1.13 GiB
    Duration : 2 h 12 min
    Overall bit rate : 1 227 kb/s
    Writing application : Lavf57.26.100

    Video
    ID : 0
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings : BVOP1
    Format settings, BVOP : 1
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Default (H.263)
    Muxing mode : Packed bitstream
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 2 h 12 min
    Bit rate : 1 084 kb/s
    Width : 624 pixels
    Height : 368 pixels
    Display aspect ratio : 5:3
    Frame rate : 25.000 FPS
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.189
    Stream size : 1.00 GiB (88%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)

    Audio
    ID : 1
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Codec ID : 55
    Codec ID/Hint : MP3
    Duration : 2 h 12 min
    Bit rate mode : Constant
    Bit rate : 128 kb/s
    Channel(s) : 2 channels
    Sampling rate : 48.0 kHz
    Compression mode : Lossy
    Stream size : 120 MiB (10%)
    Alignment : Aligned on interleaves
    Interleave, duration : 24 ms (0.60 video frame)

    最佳答案

    抱歉,很抱歉,没有可用的此类工具。当前,您可以朝着这个方向最好地复制h264编码参数。

    关于audio - 将视频的格式复制到另一个,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46675126/

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