Skip to content

Handling HLS format errors #26

Open
@pythonsan

Description

@pythonsan

Hello, I encountered an error when using this tool to process files in hls format with the following message.

(base) ➜   ffmpeg -i video.mp4 -f hls -master_pl_name replay.m3u8 -c:a aac -ab 192k \
  -var_stream_map "a:0,agroup:aud v:0,agroup:aud" \
  -hls_playlist_type vod -hls_list_size 0 -hls_time 10 vs%v/out.m3u8

(base) ➜   audiowmark hls-prepare vs0 vs0prep out.m3u8 video.mp4
AAC Bitrate:  55000 (detected)
Segments:     7
audiowmark: hls: ff_decode failed: Format not recognised.

At the same time, I executed the test script in the source directory and it prompted the same error, is there something wrong with my operation? Or is HLS not supported?

-> test/hls-test.sh
...
...
...
==== audiowmark hls-prepare hls-test-dir.30950/as0 hls-test-dir.30950/as0prep out.m3u8 hls-test-dir.30950/test-input.wav ====
audiowmark: failed to load audio master: hls-test-dir.30950/test-input.wav
./hls-test.sh: failed to run audiowmark hls-prepare hls-test-dir.30950/as0 hls-test-dir.30950/as0prep out.m3u8 hls-test-dir.30950/test-input.wav

MacOS 10.15.7, ffmpeg version 5.0

ffmpeg version 5.0 Copyright (c) 2000-2022 the FFmpeg developers
  built with Apple clang version 12.0.0 (clang-1200.0.32.29)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/5.0 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray 

--enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf 

--enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass 
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg 
--disable-libjack --disable-indev=jack --enable-videotoolbox

audiowmark build from git source - newest
video.mp4 info:

h264 1920x1080 25fps 1024Kbps, aac 44.1Khz, 2ch, 32Kpbs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions