получить результат сегмент ffmpeg python - PullRequest
0 голосов
/ 11 апреля 2020
import ffmpeg

try:
    out= (ffmpeg
                .input("https://............./playlist.m3u8")
                .output('out%03d.ts', map='0', f='segment' , segment_list='playlist.m3u8' , segment_list_flags='+live' , segment_time='10' )
                .run_async(pipe_stdout=True ,pipe_stdin=True)
               )
except ffmpeg.Error as e:
    print(e.stderr)
    print("error")

Результат в PowerShell

[segment @ 0000020ff2cdf040] Opening 'playlist2.m3u8.tmp' for writingd=1.08x
[segment @ 0000020ff2c8e300] Opening 'out016.ts' for writing
[https @ 0000020ff22d7fc0] Opening '....../live-channels/smil:irinn/chunklist_b307200_slFa.m3u8for reading
[hls @ 0000020ff1c7c5c0] Skip ('#EXT-X-VERSION:3')
[hls @ 0000020ff1c7c5c0] Skip ('#EXT-X-ALLOW-CACHE:NO')

как получить журнал печати потока результатов в python или count Открытие 'out * .ts' для записи?

Ссылка FFmpeg Python

...