V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
JustinMsc
V2EX  ›  外包

付费二次开发 ffmpeg,将 dash 流中的 data:image/png;base64 格式的字幕,压缩进视频。

  •  
  •   JustinMsc · 2021-10-14 10:06:49 +08:00 · 878 次点击
    这是一个创建于 1128 天前的主题,其中的信息可能已经有所发展或是发生改变。
    需求:
    修改 ffmpeg dash 模块,识别 dash 流中的 base64 格式的 png 字幕,将其压缩到视频内部。
    预算:5K-10K

    有没有大佬接啊?
    -------------------------------------------------------------------------------------------------------------------------

    媒体详细信息如下:

    Stream #0:4: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
    Metadata:
    variant_bitrate : 1500000
    id : 162/video-cif-stream-5
    Stream #0:5(kor): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp (default)
    Metadata:
    variant_bitrate : 1024000
    id : 80/video-cif-stream-1
    Stream #0:6(may): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp (default)
    Metadata:
    variant_bitrate : 1024000
    id : 82/video-cif-stream-1
    Stream #0:7(chi): Audio: aac (HE-AAC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp (default)
    Metadata:
    variant_bitrate : 1024000
    id : 83/video-cif-stream-1
    Stream #0:8(may): Data: none (stpp / 0x70707473) (default)
    Metadata:
    id : subtitle/smptett_frag_bitmap_may_profile_0_video-cif-stream-1
    Stream #0:9(chi): Data: none (stpp / 0x70707473) (default)
    Metadata:
    id : subtitle/smptett_frag_bitmap_chi_profile_0_video-cif-stream-1
    Stream #0:10(eng): Data: none (stpp / 0x70707473) (default)
    Metadata:
    id : subtitle/smptett_frag_bitmap_eng_profile_0_video-cif-stream-1


    -------------------------------------------------------------------------------------------------------------------------

    字幕是 base64 格式的 png 图片

    data:image/png;base64,iVBORw0KGgoAAAANSUhEUgA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+fPmydw2ceifd3EfGAAAA8JPRAhoAAICI2GvbfKy692Tl72DORZZl5wxdx/HwdR4R07IsYzabxWw2i7quo67reHh4ODpxnufPWk9vNpu9tdt9TuPyZ19HxP2xe/rV0u066VnTNSb9Pxx7J+tzKrEBAAD4uQiAAQAA6LSB4k1DxQtaFI+u2wazEbELbmezWUR8PT/37u6uX837TAqNkxQcD9e95tlfek//2UbGdHsDAACAcwmAAQAAeA/WETFN4W0Kf4uiiLIsYzKZRFVVezcURRGTyWQv/I3YBcC9s3ZvHnhfQgUvAAAAtyYABgAA4E1rW1OvIyK2221UVRUfP37sfi+Korv6hp8jIpbL5TAoFsACAADwQxEAAwAA8K6sVquYTCbPQt+xwLcvhb+96t8I5+gCAADwg/n1tTcAAAAAp3z48CH9OY2I+Pz5c/zzzz/x5cuXiIj4/fffR++r6zo+f/4cVVXFYrHoxrcWEfHX09PT399s4wAAAPCd/fLaGwAAAIBzZFk2jYh5e3XyPO/O++3bbDbD836TdezCX9W/AAAA/HAEwAAAALwbbQicguDpFVOsI2LRNM3iphsDAACAN0IADAAAwLtzRRCs6hcAAICfggAYAACAd6sXBJ8i+AUAAOCn8H8NQ0RrvD597gAAAABJRU5ErkJggg==
    1 条回复    2021-10-14 11:02:18 +08:00
    wangsilence
        1
    wangsilence  
       2021-10-14 11:02:18 +08:00
    wxbase64: d2FuZ3NpbGVuY2Vf
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5513 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 49ms · UTC 06:56 · PVG 14:56 · LAX 22:56 · JFK 01:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.