How to create a m3u8 Byte-Range playlist without creating a new fileHow to create byte-range m3u8 playlist for HLS?HTTP Live streaming iOS not refreshing the index .m3u8 filePlaying m3u8 Files with HTML Video TagHow to create byte-range m3u8 playlist for HLS?Download m3u8 playlist and merge into one C#FFMPEG HLS stream for Android and IOSHow to get live m3u8 files rather than DVR m3u8 files of YouTube live streams?hls.js in chrome using vue doesnt update m3u8 playlistHow to create a Master Playlist for HLS using a Java wrapper library for FFMPEGhow to create an http live stream ( broadcast ) from a segmented mp4 without sound defects
What does “the session was packed” mean in this context?
Why doesn't using multiple commands with a || or && conditional work?
Method Does Not Exist error message
Can compressed videos be decoded back to their uncompresed original format?
Why do bosons tend to occupy the same state?
How does a predictive coding aid in lossless compression?
Detention in 1997
Ambiguity in the definition of entropy
Personal Teleportation: From Rags to Riches
How can I deal with my CEO asking me to hire someone with a higher salary than me, a co-founder?
Extract rows of a table, that include less than x NULLs
Cursor Replacement for Newbies
Why didn't Miles's spider sense work before?
What's the in-universe reasoning behind sorcerers needing material components?
Assassin's bullet with mercury
ssTTsSTtRrriinInnnnNNNIiinngg
One verb to replace 'be a member of' a club
Why would the Red Woman birth a shadow if she worshipped the Lord of the Light?
Is it logically or scientifically possible to artificially send energy to the body?
Alternative to sending password over mail?
Why can't we play rap on piano?
Why no variance term in Bayesian logistic regression?
GFCI outlets - can they be repaired? Are they really needed at the end of a circuit?
In 'Revenger,' what does 'cove' come from?
How to create a m3u8 Byte-Range playlist without creating a new file
How to create byte-range m3u8 playlist for HLS?HTTP Live streaming iOS not refreshing the index .m3u8 filePlaying m3u8 Files with HTML Video TagHow to create byte-range m3u8 playlist for HLS?Download m3u8 playlist and merge into one C#FFMPEG HLS stream for Android and IOSHow to get live m3u8 files rather than DVR m3u8 files of YouTube live streams?hls.js in chrome using vue doesnt update m3u8 playlistHow to create a Master Playlist for HLS using a Java wrapper library for FFMPEGhow to create an http live stream ( broadcast ) from a segmented mp4 without sound defects
I've found some nice related questions,such as this one How to create byte-range m3u8 playlist for HLS? but the best answer, that provide us this ffmpeg command ffmpeg -i sample.ts -hls_time 20 -hls_flags single_file out.m3u8
creates a new .ts file to use in the m3u8. In my application we need to create the m3u8 file, but we want it to be faster than the solution provided, it was unworkable for us. I think that the provided solution is a little slow 'cause it has to create a new file, do you guys know a solution that uses a already existing encoded ts file?
ffmpeg hls m3u8
add a comment |
I've found some nice related questions,such as this one How to create byte-range m3u8 playlist for HLS? but the best answer, that provide us this ffmpeg command ffmpeg -i sample.ts -hls_time 20 -hls_flags single_file out.m3u8
creates a new .ts file to use in the m3u8. In my application we need to create the m3u8 file, but we want it to be faster than the solution provided, it was unworkable for us. I think that the provided solution is a little slow 'cause it has to create a new file, do you guys know a solution that uses a already existing encoded ts file?
ffmpeg hls m3u8
This appeases to be an X Y question as It is HIGHLY unlikely file creation is a bottleneck. What exactly is too slow?
– szatmary
Mar 9 at 2:01
First, thanks for the reply. It took 30 seconds to create the .m3u8 file, but created the .ts file since the beginning and worked on it till the end (1min and 7 seconds), when it reached 30 seconds, both files were modified dinamically till the end of the execution. I used a 40MB .ts file with 50 seconds of video on it.
– Rodrigo Valença
Mar 9 at 2:54
If you give ios an m3u8 with only one file in a live manifest, it will error out. So ffmpeg will not write the manifest until there is enough video to make it a legal playlist.
– szatmary
Mar 9 at 2:59
ok, man, I'm sorry, just noticed an error that i did trying to explain my problem. I think that the problem is the processing of the new file. I want a command that uses a already existing file, so, there'll be no need to write a new ts file (the new file created in the ffmpeg command had 69mb, the original one had 40mb). So, if there is a command that creates a m3u8 byteranged file based on a existing ts file, it'll be perfect for me
– Rodrigo Valença
Mar 10 at 1:19
add a comment |
I've found some nice related questions,such as this one How to create byte-range m3u8 playlist for HLS? but the best answer, that provide us this ffmpeg command ffmpeg -i sample.ts -hls_time 20 -hls_flags single_file out.m3u8
creates a new .ts file to use in the m3u8. In my application we need to create the m3u8 file, but we want it to be faster than the solution provided, it was unworkable for us. I think that the provided solution is a little slow 'cause it has to create a new file, do you guys know a solution that uses a already existing encoded ts file?
ffmpeg hls m3u8
I've found some nice related questions,such as this one How to create byte-range m3u8 playlist for HLS? but the best answer, that provide us this ffmpeg command ffmpeg -i sample.ts -hls_time 20 -hls_flags single_file out.m3u8
creates a new .ts file to use in the m3u8. In my application we need to create the m3u8 file, but we want it to be faster than the solution provided, it was unworkable for us. I think that the provided solution is a little slow 'cause it has to create a new file, do you guys know a solution that uses a already existing encoded ts file?
ffmpeg hls m3u8
ffmpeg hls m3u8
asked Mar 8 at 22:22
Rodrigo ValençaRodrigo Valença
1
1
This appeases to be an X Y question as It is HIGHLY unlikely file creation is a bottleneck. What exactly is too slow?
– szatmary
Mar 9 at 2:01
First, thanks for the reply. It took 30 seconds to create the .m3u8 file, but created the .ts file since the beginning and worked on it till the end (1min and 7 seconds), when it reached 30 seconds, both files were modified dinamically till the end of the execution. I used a 40MB .ts file with 50 seconds of video on it.
– Rodrigo Valença
Mar 9 at 2:54
If you give ios an m3u8 with only one file in a live manifest, it will error out. So ffmpeg will not write the manifest until there is enough video to make it a legal playlist.
– szatmary
Mar 9 at 2:59
ok, man, I'm sorry, just noticed an error that i did trying to explain my problem. I think that the problem is the processing of the new file. I want a command that uses a already existing file, so, there'll be no need to write a new ts file (the new file created in the ffmpeg command had 69mb, the original one had 40mb). So, if there is a command that creates a m3u8 byteranged file based on a existing ts file, it'll be perfect for me
– Rodrigo Valença
Mar 10 at 1:19
add a comment |
This appeases to be an X Y question as It is HIGHLY unlikely file creation is a bottleneck. What exactly is too slow?
– szatmary
Mar 9 at 2:01
First, thanks for the reply. It took 30 seconds to create the .m3u8 file, but created the .ts file since the beginning and worked on it till the end (1min and 7 seconds), when it reached 30 seconds, both files were modified dinamically till the end of the execution. I used a 40MB .ts file with 50 seconds of video on it.
– Rodrigo Valença
Mar 9 at 2:54
If you give ios an m3u8 with only one file in a live manifest, it will error out. So ffmpeg will not write the manifest until there is enough video to make it a legal playlist.
– szatmary
Mar 9 at 2:59
ok, man, I'm sorry, just noticed an error that i did trying to explain my problem. I think that the problem is the processing of the new file. I want a command that uses a already existing file, so, there'll be no need to write a new ts file (the new file created in the ffmpeg command had 69mb, the original one had 40mb). So, if there is a command that creates a m3u8 byteranged file based on a existing ts file, it'll be perfect for me
– Rodrigo Valença
Mar 10 at 1:19
This appeases to be an X Y question as It is HIGHLY unlikely file creation is a bottleneck. What exactly is too slow?
– szatmary
Mar 9 at 2:01
This appeases to be an X Y question as It is HIGHLY unlikely file creation is a bottleneck. What exactly is too slow?
– szatmary
Mar 9 at 2:01
First, thanks for the reply. It took 30 seconds to create the .m3u8 file, but created the .ts file since the beginning and worked on it till the end (1min and 7 seconds), when it reached 30 seconds, both files were modified dinamically till the end of the execution. I used a 40MB .ts file with 50 seconds of video on it.
– Rodrigo Valença
Mar 9 at 2:54
First, thanks for the reply. It took 30 seconds to create the .m3u8 file, but created the .ts file since the beginning and worked on it till the end (1min and 7 seconds), when it reached 30 seconds, both files were modified dinamically till the end of the execution. I used a 40MB .ts file with 50 seconds of video on it.
– Rodrigo Valença
Mar 9 at 2:54
If you give ios an m3u8 with only one file in a live manifest, it will error out. So ffmpeg will not write the manifest until there is enough video to make it a legal playlist.
– szatmary
Mar 9 at 2:59
If you give ios an m3u8 with only one file in a live manifest, it will error out. So ffmpeg will not write the manifest until there is enough video to make it a legal playlist.
– szatmary
Mar 9 at 2:59
ok, man, I'm sorry, just noticed an error that i did trying to explain my problem. I think that the problem is the processing of the new file. I want a command that uses a already existing file, so, there'll be no need to write a new ts file (the new file created in the ffmpeg command had 69mb, the original one had 40mb). So, if there is a command that creates a m3u8 byteranged file based on a existing ts file, it'll be perfect for me
– Rodrigo Valença
Mar 10 at 1:19
ok, man, I'm sorry, just noticed an error that i did trying to explain my problem. I think that the problem is the processing of the new file. I want a command that uses a already existing file, so, there'll be no need to write a new ts file (the new file created in the ffmpeg command had 69mb, the original one had 40mb). So, if there is a command that creates a m3u8 byteranged file based on a existing ts file, it'll be perfect for me
– Rodrigo Valença
Mar 10 at 1:19
add a comment |
1 Answer
1
active
oldest
votes
Your command is slow because it re-encodes the whole input video. Just add -c copy
option. Since the input is already a .ts file, there's no need to re-encode it.
Thank you, sir! It's exactly what i wanted, the command ran in 0.2 seconds when I added `-c copy'!
– Rodrigo Valença
Mar 28 at 1:37
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55071817%2fhow-to-create-a-m3u8-byte-range-playlist-without-creating-a-new-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Your command is slow because it re-encodes the whole input video. Just add -c copy
option. Since the input is already a .ts file, there's no need to re-encode it.
Thank you, sir! It's exactly what i wanted, the command ran in 0.2 seconds when I added `-c copy'!
– Rodrigo Valença
Mar 28 at 1:37
add a comment |
Your command is slow because it re-encodes the whole input video. Just add -c copy
option. Since the input is already a .ts file, there's no need to re-encode it.
Thank you, sir! It's exactly what i wanted, the command ran in 0.2 seconds when I added `-c copy'!
– Rodrigo Valença
Mar 28 at 1:37
add a comment |
Your command is slow because it re-encodes the whole input video. Just add -c copy
option. Since the input is already a .ts file, there's no need to re-encode it.
Your command is slow because it re-encodes the whole input video. Just add -c copy
option. Since the input is already a .ts file, there's no need to re-encode it.
answered Mar 20 at 15:38
TacazaTacaza
169211
169211
Thank you, sir! It's exactly what i wanted, the command ran in 0.2 seconds when I added `-c copy'!
– Rodrigo Valença
Mar 28 at 1:37
add a comment |
Thank you, sir! It's exactly what i wanted, the command ran in 0.2 seconds when I added `-c copy'!
– Rodrigo Valença
Mar 28 at 1:37
Thank you, sir! It's exactly what i wanted, the command ran in 0.2 seconds when I added `-c copy'!
– Rodrigo Valença
Mar 28 at 1:37
Thank you, sir! It's exactly what i wanted, the command ran in 0.2 seconds when I added `-c copy'!
– Rodrigo Valença
Mar 28 at 1:37
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55071817%2fhow-to-create-a-m3u8-byte-range-playlist-without-creating-a-new-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
This appeases to be an X Y question as It is HIGHLY unlikely file creation is a bottleneck. What exactly is too slow?
– szatmary
Mar 9 at 2:01
First, thanks for the reply. It took 30 seconds to create the .m3u8 file, but created the .ts file since the beginning and worked on it till the end (1min and 7 seconds), when it reached 30 seconds, both files were modified dinamically till the end of the execution. I used a 40MB .ts file with 50 seconds of video on it.
– Rodrigo Valença
Mar 9 at 2:54
If you give ios an m3u8 with only one file in a live manifest, it will error out. So ffmpeg will not write the manifest until there is enough video to make it a legal playlist.
– szatmary
Mar 9 at 2:59
ok, man, I'm sorry, just noticed an error that i did trying to explain my problem. I think that the problem is the processing of the new file. I want a command that uses a already existing file, so, there'll be no need to write a new ts file (the new file created in the ffmpeg command had 69mb, the original one had 40mb). So, if there is a command that creates a m3u8 byteranged file based on a existing ts file, it'll be perfect for me
– Rodrigo Valença
Mar 10 at 1:19