Некоторые клипы разбиваются на аудио фрагменты без видео
badan-cloud opened this issue · 0 comments
badan-cloud commented
Добрый день. Благодарю за отличный продукт.
Стал замечать что некоторые клипы разбиваются на звуковые клипы без видео. Например (домен подменён):
curl https://stream.mydomain.co/hls/atto/13317_video_v2.mp4/index.m3u8
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-ALLOW-CACHE:YES
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:10.000,
https://stream.mydomain.co/hls/atto/13317_video_v2.mp4/seg-1-a1.ts
#EXTINF:10.000,
https://stream.mydomain.co/hls/atto/13317_video_v2.mp4/seg-2-a1.ts
#EXTINF:10.000,
https://stream.mydomain.co/hls/atto/13317_video_v2.mp4/seg-3-a1.ts
#EXTINF:10.000,
https://stream.mydomain.co/hls/atto/13317_video_v2.mp4/seg-4-a1.ts
#EXTINF:10.000,
https://stream.mydomain.co/hls/atto/13317_video_v2.mp4/seg-5-a1.ts
#EXTINF:7.562,
https://stream.mydomain.co/hls/atto/13317_video_v2.mp4/seg-6-a1.ts
#EXT-X-ENDLIST
Есть какой-то шанс что вопрос может решаться настройками, или проблема гораздо глубже? Установка стандартная, remote.
А вот пример клипа который разбивается на видео-аудио сегменты, как и должно быть:
curl https://stream.mydomain.co/hls/atto/766.mp4/index.m3u8
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXT-X-ALLOW-CACHE:YES
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:10.000,
https://stream.mydomain.co/hls/atto/766.mp4/seg-1-v1-a1.ts
#EXTINF:6.277,
https://stream.mydomain.co/hls/atto/766.mp4/seg-2-v1-a1.ts
#EXT-X-ENDLIST
Вот ffprobe клипа которому не получается получить видео:
ffprobe -i 13317_video_v2.mp4 -show_packets 2>&1
ffprobe version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2007-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladsp
a --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-lib
gme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --
enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable
-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec
61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '13317_video_v2.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
title : This was not on my 2023 bingo card
artist : Bullish Studio
date : 20230614
encoder : Lavf61.1.100
comment : https://www.youtube.com/watch?v=fVBe7ZSd174
description : A tobacco company pivoting to an ESG shock was not on my 2023 bingo card
synopsis : A tobacco company pivoting to an ESG shock was not on my 2023 bingo card
Duration: 00:00:57.54, start: 0.000000, bitrate: 890 kb/s
Stream #0:0(und): Video: vp9 (Profile 0) (vp09 / 0x39307076), yuv420p(tv, bt709), 1080x1920, 757 kb/s, 23.98 fps, 23.98 tbr, 16k tbn, 16k tbc (default)
Metadata:
handler_name : ISO Media file produced by Google Inc. Created on: 08/30/2024.
vendor_id : [0][0][0][0]
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
handler_name : ISO Media file produced by Google Inc.
vendor_id : [0][0][0][0]
[PACKET]
codec_type=audio
stream_index=1
pts=-1024
pts_time=-0.023220
dts=-1024
dts_time=-0.023220
duration=1024
duration_time=0.023220
...
А вот ffprobe клипу с которым всё нормально:
ffprobe -i 1025.mp4 -show_packets 2>&1
ffprobe version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2007-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1025.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2022-02-02T01:00:29.000000Z
Duration: 00:11:02.91, start: 0.000000, bitrate: 1614 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 1483 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
creation_time : 2022-02-02T01:00:29.000000Z
handler_name : ISO Media file produced by Google Inc. Created on: 02/01/2022.
vendor_id : [0][0][0][0]
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 127 kb/s (default)
Metadata:
creation_time : 2022-02-02T01:00:29.000000Z
handler_name : ISO Media file produced by Google Inc. Created on: 02/01/2022.
vendor_id : [0][0][0][0]
[PACKET]
codec_type=video
stream_index=0
pts=0
pts_time=0.000000
dts=-512
dts_time=-0.033333
duration=512
duration_time=0.033333
size=274
pos=314260
flags=K_
[/PACKET]
...