Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8112723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:36:07+00:00 2026-06-06T02:36:07+00:00

My initial task was to find a segmenter for Windows that will split a

  • 0

My initial task was to find a segmenter for Windows that will split a h264\aac video file without changing its codecs and make it playable through HLS.

The best way that worked for me is to use ffmpeg like this:

ffmpeg -i encoded.mp4 -c copy -map 0 -vbsf h264_mp4toannexb -flags -global_header -f segment -segment_time 10 -segment_format mpegts stream%d.ts

Now, this splits the file more or less correctly, although mediastreamvalidator threw a couple of warnings, still I was able to play the video.

But, here’s the tricky part: ffmpeg cannot create .m3u8 files for you. Which is not a problem, unless you need to create a variant playlist file what I do need.
So now I need to either find or write an app for Windows that imitates varianplaylistcreator

So let’s say you have the same video encoded for each different bandwidth: 64, 150, 300, 500, 800, 1200 and 2400. Now after you segment each video, you’d probably like to put those segments into separate folders including playlist files for each rendition.

Now we can create a variant playlist file where we list all the rendtions with instructions on what bandwidth server automatically should switch serving different rendition.

Typically variant playlist look like this:

#EXTM3U
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=512376
500/500k_512x384_x264_372_quicktime_128.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=68795
64/64k_256x192_x264_32_quicktime_32.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=155580
150/150k_256x192_x264_118_quicktime_32.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=308895
300/300k_512x384_x264_172_quicktime_128.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=811310
800/800k_512x384_x264_672_quicktime_128.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1210182
1200/1200k_1024x768_x264_1072_quicktime_128.m3u8
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=2408106
2400/2400k_1024x768_x264_2272_quicktime_128.m3u8

Notice the BANDWITH attribute values. These I suspect are values calculated by varinatplaylistcreator.

And I don’t know how it does that. I guess somehow it takes average bitrate of videos(segments) for each rendtion and based on that does that.

So my question is: how those get calculated.
Or maybe someone already created a tool that can run on Windows and create varinant playlists.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T02:36:09+00:00Added an answer on June 6, 2026 at 2:36 am

    FFmpeg can report the bitrate of the ts stream. Use the ffprobe tool and you’ll get output like this:

    Input #0, mpegts, from 'foo.ts':
      Duration: 00:04:50.87, start: 2.000011, bitrate: 10381 kb/s
      Program 1
        Stream #0.0[0x810]: Video: h264 (High), yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    

    The bitrate is being given in kilobits per second, so multiply it by 1024 and you’ll have the value you need for the BANDWIDTH tag.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Initial description: My application handles some events and do some task related to that
I have a rake task that populates some initial data in my rails app.
Initial tests indicate that GDI+ (writing in VB.NET) is not fast enough for my
We're in the initial stages of a large project, and have decided that some
I am doing some initial testing for a Rails app which will be deployed
The Chronometer widget initial text is 00:00 but when I start the Chronometer its
HI I have made a maintenance package in that have used shrink database task
My initial task was to install mod_perl 2.0.6 + Apache 2.2.22. The process stopped
I have an application that can import an XML file through this terminal command
Is there a 'standard' way to specify that a task continuation should run on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.