kaltura / nginx-vod-module

NGINX-based MP4 Repackager
GNU Affero General Public License v3.0
1.96k stars 431 forks source link

400 Bad Request, ngx_http_vod_validate_streams: no matching streams were found #1524

Open fbiceo opened 1 month ago

fbiceo commented 1 month ago

Hi,

Thanks for your great job! In fact, I already search old posts that also mention same problem, but I still have no idea why it comes this error, so I need your help to know what's wrong, thanks in advance.

here is mediainfo information, what's I'm going to do is streaming audio only mp4 file, but I get 400 Bad Request, ngx_http_vod_validate_streams: no matching streams were found, is it possible to solve this problem?

General
Complete name                            : music.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 1
Codec ID                                 : mp41 (iso8/isom/mp41/dash/cmfc)
File size                                : 7.92 MiB
Duration                                 : 3 min 26 s
Overall bit rate mode                    : Constant
Overall bit rate                         : 322 kb/s
Encoded date                             : 2024-04-29 14:23:36 UTC
Tagged date                              : 2024-04-29 14:23:36 UTC

Audio
ID                                       : 1
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 3 min 26 s
Bit rate mode                            : Constant
Bit rate                                 : 320 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Frame rate                               : 43.066 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 7.88 MiB (99%)
Encoded date                             : 2024-04-29 14:23:36 UTC
Tagged date                              : 2024-04-29 14:23:36 UTC
Conformance errors                       : 1
 Crosscheck                              : Yes
  CMAF                                   : Yes
   channelConfiguration                  : CMAF does not permit USAC UsacConfig channelConfigurationIndex 0, permitted values are 1 and 2
erankor commented 1 month ago

The MP4 is probably a fragmented MP4, which is not supported. You will need to repackage it to a regular MP4 - ffmpeg -i input.mp4 -c copy -y output.mp4