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













0















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?










share|improve this question






















  • 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















0















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?










share|improve this question






















  • 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













0












0








0








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?










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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












1 Answer
1






active

oldest

votes


















0














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.






share|improve this answer























  • 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












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
);



);













draft saved

draft discarded


















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









0














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.






share|improve this answer























  • 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
















0














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.






share|improve this answer























  • 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














0












0








0







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.






share|improve this answer













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.







share|improve this answer












share|improve this answer



share|improve this answer










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


















  • 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




















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Identity Server 4 is not redirecting to Angular app after login2019 Community Moderator ElectionIdentity Server 4 and dockerIdentityserver implicit flow unauthorized_clientIdentityServer Hybrid Flow - Access Token is null after user successful loginIdentity Server to MVC client : Page Redirect After loginLogin with Steam OpenId(oidc-client-js)Identity Server 4+.NET Core 2.0 + IdentityIdentityServer4 post-login redirect not working in Edge browserCall to IdentityServer4 generates System.NullReferenceException: Object reference not set to an instance of an objectIdentityServer4 without HTTPS not workingHow to get Authorization code from identity server without login form

2005 Ahvaz unrest Contents Background Causes Casualties Aftermath See also References Navigation menue"At Least 10 Are Killed by Bombs in Iran""Iran"Archived"Arab-Iranians in Iran to make April 15 'Day of Fury'"State of Mind, State of Order: Reactions to Ethnic Unrest in the Islamic Republic of Iran.10.1111/j.1754-9469.2008.00028.x"Iran hangs Arab separatists"Iran Overview from ArchivedConstitution of the Islamic Republic of Iran"Tehran puzzled by forged 'riots' letter""Iran and its minorities: Down in the second class""Iran: Handling Of Ahvaz Unrest Could End With Televised Confessions""Bombings Rock Iran Ahead of Election""Five die in Iran ethnic clashes""Iran: Need for restraint as anniversary of unrest in Khuzestan approaches"Archived"Iranian Sunni protesters killed in clashes with security forces"Archived

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme