Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Playlist with multi audio tracks #1570

Open
kousthub97 opened this issue Mar 7, 2025 · 0 comments
Open

Playlist with multi audio tracks #1570

kousthub97 opened this issue Mar 7, 2025 · 0 comments

Comments

@kousthub97
Copy link

Hello,

I am creating a playlist with multiple MP4 files having different number of audio tracks in each file.
Lets consider
1st file is having one audio and one video tracks
2nd file having only video
3rd file having two audio and one video tracks

So using silence filter where there is no audio stream with below JSON file.

{
  "discontinuity": true,
  "playlistType": "vod",
  "durations": [
    60000,
    1125,
    120000
  ],
  "sequences": [
    {
      "clips": [
        {
          "type": "source",
          "path": "/asset1.mp4",
          "tracks": "v1"
        },
        {
          "type": "source",
          "path": "/asset2_withoutaudio.mp4",
          "tracks": "v1"
        },
        {
          "type": "source",
          "path": "/asset3.mp4",
          "tracks": "v1"
        }
      ]
    },
    {
      "clips": [
        {
	  "type": "source",
          "path": "/asset1.mp4",
          "tracks": "a1"
        },
        {
          "type": "silence"
        },
        {
          "type": "source",
          "path": "/asset3.mp4",
          "tracks": "a1"
        }
      ],
      "language": "eng"
    },
    {
      "clips": [
        {
          "type": "silence"
        },
        {
          "type": "silence"
        },
        {
          "type": "source",
          "path": "/asset3.mp4",
          "tracks": "a2"
        }
      ],
      "language": "deu"
    }
  ]
}

Configuration file

 {

                        vod dash;
                        #vod_bootstrap_segment_durations 2000;
                        #vod_segment_duration 4000;
                        #vod_dash_manifest_format segmenttimeline;
                        vod_manifest_duration_policy min;

                        secure_token_types application/vnd.apple.mpegurl application/dash+xml text/xml;
                        vod_dash_absolute_manifest_urls off;
                        vod_manifest_segment_durations_mode accurate;
                        vod_align_segments_to_key_frames on;

                        add_header Access-Control-Allow-Headers "Origin,Range,Accept-Encoding,Referer,Cache-Control";
                        add_header Access-Control-Expose-Headers "Server,Content-Length,Content-Range,Date";
                        add_header Access-Control-Allow-Methods "GET, HEAD, OPTIONS";
                        add_header Access-Control-Allow-Origin "*";
                }

When making request to fragment-1-f3-a2-x3.m4s it was giving 404 with below error.

2025/03/07 14:42:09 [debug] 81966#81966: *3 silence_generator_parse: parsed silence source
2025/03/07 14:42:09 [error] 81966#81966: *3 ngx_http_vod_validate_streams: no matching streams were found, probably invalid segment index while sending to client,

But if try for fragment-1-f2-a1-x3.m4s it gives 200 response.

Please suggest my configuration in correct or need any changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant