I specify “-ss n -t 5 -autoexit -nodisp” but ffplay does not exit

Multi tool use
Multi tool use











up vote
0
down vote

favorite












The long version of what is going on...



YouTube recommended a video "The Laws of Human Nature Audiobook" and its 3 videos 11hours+11hours+6.5 hours long. I combined the 3 using ffmpeg.



Using Audacity I combed thru the file looking for the beginning of chapters taking note of the offsets. I intend to use these offsets with a lua script to play individual chapters... here is that script



--[[
Name: The_Laws.lua
Author: Smertrios
Date: November 18, 2018
Purpose: seek to chapters in "The Laws of Nature Audiobook.mp3"
--]]

local arg={...} --arg[1] = chapter number to play...

local book={
[0]={0, "00:00:00 introduction the laws of human nature by robert green"},
{2404, "00:40:04 chapter 1 master your emotional self the law of irrationality"},
{7895, "02:11:35 chapter 2 transform self love into empathy the law of narcissism"},
{13533, "03:45:33 chapter 3 see thru peoples masks the law of role playing"},
{18890, "05:14:50 chapter 4 determine the strength of peoples character the law of compulsive behavior"},
{23874, "06:37:54 chapter 5 become an elusive object of desire the law of covetousness"},
{27047, "07:30:47 chapter 6 elevate your perspective the law of short sightedness"},
{30825, "08:33:45 chapter 7 soften peoples resistance by confirming their self opinion the law of defensivness"},
{36107, "10:01:47 chapter 8 change your circumstances by changing your attitude the law of self sabotage"},
{41069, "11:24:29 chapter 9 confront your darkside the law of repression"},
{46582, "12:56:22 chapter 10 beware the fragile ego the law of envy"},
{51855, "14:24:15 chapter 11 know your limits the law of gradiosity"},
{57043, "15:50:43 chapter 12 reconnect to the masculine or feminine within you the law of gender rigidity"},
{63247, "17:34:07 chapter 13 advance with a sense of purpose the law of aimlessness"},
{69088, "19:11:28 chapter 14 resist the downward pull of the group the law of conformity"},
{77052, "21:24:12 chapter 15 make them want to follow you the law of fickleness"},
{83034, "23:03:54 chapter 16 see the hostility behind the friendly fascade the law of aggression"},
{90539, "25:08:59 chapter 17 seize the historical moment the law of generational myopia"},
{98111, "27:15:11 chapter 18 meditate on our common mortality the law of death denial"},
{102419, "28:26:59 the end"},
}

local offset=tonumber(arg[1])
local seekpos=book[offset][1]
local duration=book[offset+1][1]-seekpos
local cmd=[[reset && ffplay -ss ]]..seekpos..[[ -t ]]..duration..[[ -autoexit -nodisp -af "volume=0.5,atempo=2.0,atempo=1.5" -i "The Laws of Human Nature Audiobook.mp3"]]
os.execute(cmd)


An example command line execute by the script above for chapter 1 would be...



lua The_Laws.lua 1


which in effect executes...



reset && ffplay -ss 2404 -t 5491 -autoexit -nodisp -af "volume=0.5,atempo=2.0,atempo=1.5" -i "The Laws of Human Nature Audiobook.mp3"


Its seeks to the position for chapter 1 and plays the chapter but then doesn't exit (however the sound does stop). How do I use ffplay and make it exit? Maybe this is a bug?










share|improve this question
























  • Works here. Which version of ffplay? Try with different files and shorter duration.
    – Gyan
    Nov 19 at 11:26










  • I made a small .mp3 file saying the numbers 1-10 at 1 second intervals to test the -t option and it works but with the audiobook file it does not. Maybe the size of the file (480+mb) and over 28 hours reveals a bug?
    – Smertrios
    Nov 19 at 14:14










  • Please show the console output from your ffplay command.
    – slhck
    Nov 19 at 19:49










  • I have no idea what is different but now it exits after about 20 seconds past the stop time its like its scanning the entire file before exit. I guess I made a mistake I do not know why it kept going for hours the first time and then these 20 seconds delays made me think it was still happening. Sorry all thanks for looking but it appears I am the bug =/
    – Smertrios
    Nov 19 at 20:25












  • Note that in order to notify users you have to write @slhck. No worries about the issue, you may delete the question if it's not a problem anymore.
    – slhck
    Nov 21 at 12:08















up vote
0
down vote

favorite












The long version of what is going on...



YouTube recommended a video "The Laws of Human Nature Audiobook" and its 3 videos 11hours+11hours+6.5 hours long. I combined the 3 using ffmpeg.



Using Audacity I combed thru the file looking for the beginning of chapters taking note of the offsets. I intend to use these offsets with a lua script to play individual chapters... here is that script



--[[
Name: The_Laws.lua
Author: Smertrios
Date: November 18, 2018
Purpose: seek to chapters in "The Laws of Nature Audiobook.mp3"
--]]

local arg={...} --arg[1] = chapter number to play...

local book={
[0]={0, "00:00:00 introduction the laws of human nature by robert green"},
{2404, "00:40:04 chapter 1 master your emotional self the law of irrationality"},
{7895, "02:11:35 chapter 2 transform self love into empathy the law of narcissism"},
{13533, "03:45:33 chapter 3 see thru peoples masks the law of role playing"},
{18890, "05:14:50 chapter 4 determine the strength of peoples character the law of compulsive behavior"},
{23874, "06:37:54 chapter 5 become an elusive object of desire the law of covetousness"},
{27047, "07:30:47 chapter 6 elevate your perspective the law of short sightedness"},
{30825, "08:33:45 chapter 7 soften peoples resistance by confirming their self opinion the law of defensivness"},
{36107, "10:01:47 chapter 8 change your circumstances by changing your attitude the law of self sabotage"},
{41069, "11:24:29 chapter 9 confront your darkside the law of repression"},
{46582, "12:56:22 chapter 10 beware the fragile ego the law of envy"},
{51855, "14:24:15 chapter 11 know your limits the law of gradiosity"},
{57043, "15:50:43 chapter 12 reconnect to the masculine or feminine within you the law of gender rigidity"},
{63247, "17:34:07 chapter 13 advance with a sense of purpose the law of aimlessness"},
{69088, "19:11:28 chapter 14 resist the downward pull of the group the law of conformity"},
{77052, "21:24:12 chapter 15 make them want to follow you the law of fickleness"},
{83034, "23:03:54 chapter 16 see the hostility behind the friendly fascade the law of aggression"},
{90539, "25:08:59 chapter 17 seize the historical moment the law of generational myopia"},
{98111, "27:15:11 chapter 18 meditate on our common mortality the law of death denial"},
{102419, "28:26:59 the end"},
}

local offset=tonumber(arg[1])
local seekpos=book[offset][1]
local duration=book[offset+1][1]-seekpos
local cmd=[[reset && ffplay -ss ]]..seekpos..[[ -t ]]..duration..[[ -autoexit -nodisp -af "volume=0.5,atempo=2.0,atempo=1.5" -i "The Laws of Human Nature Audiobook.mp3"]]
os.execute(cmd)


An example command line execute by the script above for chapter 1 would be...



lua The_Laws.lua 1


which in effect executes...



reset && ffplay -ss 2404 -t 5491 -autoexit -nodisp -af "volume=0.5,atempo=2.0,atempo=1.5" -i "The Laws of Human Nature Audiobook.mp3"


Its seeks to the position for chapter 1 and plays the chapter but then doesn't exit (however the sound does stop). How do I use ffplay and make it exit? Maybe this is a bug?










share|improve this question
























  • Works here. Which version of ffplay? Try with different files and shorter duration.
    – Gyan
    Nov 19 at 11:26










  • I made a small .mp3 file saying the numbers 1-10 at 1 second intervals to test the -t option and it works but with the audiobook file it does not. Maybe the size of the file (480+mb) and over 28 hours reveals a bug?
    – Smertrios
    Nov 19 at 14:14










  • Please show the console output from your ffplay command.
    – slhck
    Nov 19 at 19:49










  • I have no idea what is different but now it exits after about 20 seconds past the stop time its like its scanning the entire file before exit. I guess I made a mistake I do not know why it kept going for hours the first time and then these 20 seconds delays made me think it was still happening. Sorry all thanks for looking but it appears I am the bug =/
    – Smertrios
    Nov 19 at 20:25












  • Note that in order to notify users you have to write @slhck. No worries about the issue, you may delete the question if it's not a problem anymore.
    – slhck
    Nov 21 at 12:08













up vote
0
down vote

favorite









up vote
0
down vote

favorite











The long version of what is going on...



YouTube recommended a video "The Laws of Human Nature Audiobook" and its 3 videos 11hours+11hours+6.5 hours long. I combined the 3 using ffmpeg.



Using Audacity I combed thru the file looking for the beginning of chapters taking note of the offsets. I intend to use these offsets with a lua script to play individual chapters... here is that script



--[[
Name: The_Laws.lua
Author: Smertrios
Date: November 18, 2018
Purpose: seek to chapters in "The Laws of Nature Audiobook.mp3"
--]]

local arg={...} --arg[1] = chapter number to play...

local book={
[0]={0, "00:00:00 introduction the laws of human nature by robert green"},
{2404, "00:40:04 chapter 1 master your emotional self the law of irrationality"},
{7895, "02:11:35 chapter 2 transform self love into empathy the law of narcissism"},
{13533, "03:45:33 chapter 3 see thru peoples masks the law of role playing"},
{18890, "05:14:50 chapter 4 determine the strength of peoples character the law of compulsive behavior"},
{23874, "06:37:54 chapter 5 become an elusive object of desire the law of covetousness"},
{27047, "07:30:47 chapter 6 elevate your perspective the law of short sightedness"},
{30825, "08:33:45 chapter 7 soften peoples resistance by confirming their self opinion the law of defensivness"},
{36107, "10:01:47 chapter 8 change your circumstances by changing your attitude the law of self sabotage"},
{41069, "11:24:29 chapter 9 confront your darkside the law of repression"},
{46582, "12:56:22 chapter 10 beware the fragile ego the law of envy"},
{51855, "14:24:15 chapter 11 know your limits the law of gradiosity"},
{57043, "15:50:43 chapter 12 reconnect to the masculine or feminine within you the law of gender rigidity"},
{63247, "17:34:07 chapter 13 advance with a sense of purpose the law of aimlessness"},
{69088, "19:11:28 chapter 14 resist the downward pull of the group the law of conformity"},
{77052, "21:24:12 chapter 15 make them want to follow you the law of fickleness"},
{83034, "23:03:54 chapter 16 see the hostility behind the friendly fascade the law of aggression"},
{90539, "25:08:59 chapter 17 seize the historical moment the law of generational myopia"},
{98111, "27:15:11 chapter 18 meditate on our common mortality the law of death denial"},
{102419, "28:26:59 the end"},
}

local offset=tonumber(arg[1])
local seekpos=book[offset][1]
local duration=book[offset+1][1]-seekpos
local cmd=[[reset && ffplay -ss ]]..seekpos..[[ -t ]]..duration..[[ -autoexit -nodisp -af "volume=0.5,atempo=2.0,atempo=1.5" -i "The Laws of Human Nature Audiobook.mp3"]]
os.execute(cmd)


An example command line execute by the script above for chapter 1 would be...



lua The_Laws.lua 1


which in effect executes...



reset && ffplay -ss 2404 -t 5491 -autoexit -nodisp -af "volume=0.5,atempo=2.0,atempo=1.5" -i "The Laws of Human Nature Audiobook.mp3"


Its seeks to the position for chapter 1 and plays the chapter but then doesn't exit (however the sound does stop). How do I use ffplay and make it exit? Maybe this is a bug?










share|improve this question















The long version of what is going on...



YouTube recommended a video "The Laws of Human Nature Audiobook" and its 3 videos 11hours+11hours+6.5 hours long. I combined the 3 using ffmpeg.



Using Audacity I combed thru the file looking for the beginning of chapters taking note of the offsets. I intend to use these offsets with a lua script to play individual chapters... here is that script



--[[
Name: The_Laws.lua
Author: Smertrios
Date: November 18, 2018
Purpose: seek to chapters in "The Laws of Nature Audiobook.mp3"
--]]

local arg={...} --arg[1] = chapter number to play...

local book={
[0]={0, "00:00:00 introduction the laws of human nature by robert green"},
{2404, "00:40:04 chapter 1 master your emotional self the law of irrationality"},
{7895, "02:11:35 chapter 2 transform self love into empathy the law of narcissism"},
{13533, "03:45:33 chapter 3 see thru peoples masks the law of role playing"},
{18890, "05:14:50 chapter 4 determine the strength of peoples character the law of compulsive behavior"},
{23874, "06:37:54 chapter 5 become an elusive object of desire the law of covetousness"},
{27047, "07:30:47 chapter 6 elevate your perspective the law of short sightedness"},
{30825, "08:33:45 chapter 7 soften peoples resistance by confirming their self opinion the law of defensivness"},
{36107, "10:01:47 chapter 8 change your circumstances by changing your attitude the law of self sabotage"},
{41069, "11:24:29 chapter 9 confront your darkside the law of repression"},
{46582, "12:56:22 chapter 10 beware the fragile ego the law of envy"},
{51855, "14:24:15 chapter 11 know your limits the law of gradiosity"},
{57043, "15:50:43 chapter 12 reconnect to the masculine or feminine within you the law of gender rigidity"},
{63247, "17:34:07 chapter 13 advance with a sense of purpose the law of aimlessness"},
{69088, "19:11:28 chapter 14 resist the downward pull of the group the law of conformity"},
{77052, "21:24:12 chapter 15 make them want to follow you the law of fickleness"},
{83034, "23:03:54 chapter 16 see the hostility behind the friendly fascade the law of aggression"},
{90539, "25:08:59 chapter 17 seize the historical moment the law of generational myopia"},
{98111, "27:15:11 chapter 18 meditate on our common mortality the law of death denial"},
{102419, "28:26:59 the end"},
}

local offset=tonumber(arg[1])
local seekpos=book[offset][1]
local duration=book[offset+1][1]-seekpos
local cmd=[[reset && ffplay -ss ]]..seekpos..[[ -t ]]..duration..[[ -autoexit -nodisp -af "volume=0.5,atempo=2.0,atempo=1.5" -i "The Laws of Human Nature Audiobook.mp3"]]
os.execute(cmd)


An example command line execute by the script above for chapter 1 would be...



lua The_Laws.lua 1


which in effect executes...



reset && ffplay -ss 2404 -t 5491 -autoexit -nodisp -af "volume=0.5,atempo=2.0,atempo=1.5" -i "The Laws of Human Nature Audiobook.mp3"


Its seeks to the position for chapter 1 and plays the chapter but then doesn't exit (however the sound does stop). How do I use ffplay and make it exit? Maybe this is a bug?







ffmpeg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 19 at 17:54

























asked Nov 19 at 10:24









Smertrios

11




11












  • Works here. Which version of ffplay? Try with different files and shorter duration.
    – Gyan
    Nov 19 at 11:26










  • I made a small .mp3 file saying the numbers 1-10 at 1 second intervals to test the -t option and it works but with the audiobook file it does not. Maybe the size of the file (480+mb) and over 28 hours reveals a bug?
    – Smertrios
    Nov 19 at 14:14










  • Please show the console output from your ffplay command.
    – slhck
    Nov 19 at 19:49










  • I have no idea what is different but now it exits after about 20 seconds past the stop time its like its scanning the entire file before exit. I guess I made a mistake I do not know why it kept going for hours the first time and then these 20 seconds delays made me think it was still happening. Sorry all thanks for looking but it appears I am the bug =/
    – Smertrios
    Nov 19 at 20:25












  • Note that in order to notify users you have to write @slhck. No worries about the issue, you may delete the question if it's not a problem anymore.
    – slhck
    Nov 21 at 12:08


















  • Works here. Which version of ffplay? Try with different files and shorter duration.
    – Gyan
    Nov 19 at 11:26










  • I made a small .mp3 file saying the numbers 1-10 at 1 second intervals to test the -t option and it works but with the audiobook file it does not. Maybe the size of the file (480+mb) and over 28 hours reveals a bug?
    – Smertrios
    Nov 19 at 14:14










  • Please show the console output from your ffplay command.
    – slhck
    Nov 19 at 19:49










  • I have no idea what is different but now it exits after about 20 seconds past the stop time its like its scanning the entire file before exit. I guess I made a mistake I do not know why it kept going for hours the first time and then these 20 seconds delays made me think it was still happening. Sorry all thanks for looking but it appears I am the bug =/
    – Smertrios
    Nov 19 at 20:25












  • Note that in order to notify users you have to write @slhck. No worries about the issue, you may delete the question if it's not a problem anymore.
    – slhck
    Nov 21 at 12:08
















Works here. Which version of ffplay? Try with different files and shorter duration.
– Gyan
Nov 19 at 11:26




Works here. Which version of ffplay? Try with different files and shorter duration.
– Gyan
Nov 19 at 11:26












I made a small .mp3 file saying the numbers 1-10 at 1 second intervals to test the -t option and it works but with the audiobook file it does not. Maybe the size of the file (480+mb) and over 28 hours reveals a bug?
– Smertrios
Nov 19 at 14:14




I made a small .mp3 file saying the numbers 1-10 at 1 second intervals to test the -t option and it works but with the audiobook file it does not. Maybe the size of the file (480+mb) and over 28 hours reveals a bug?
– Smertrios
Nov 19 at 14:14












Please show the console output from your ffplay command.
– slhck
Nov 19 at 19:49




Please show the console output from your ffplay command.
– slhck
Nov 19 at 19:49












I have no idea what is different but now it exits after about 20 seconds past the stop time its like its scanning the entire file before exit. I guess I made a mistake I do not know why it kept going for hours the first time and then these 20 seconds delays made me think it was still happening. Sorry all thanks for looking but it appears I am the bug =/
– Smertrios
Nov 19 at 20:25






I have no idea what is different but now it exits after about 20 seconds past the stop time its like its scanning the entire file before exit. I guess I made a mistake I do not know why it kept going for hours the first time and then these 20 seconds delays made me think it was still happening. Sorry all thanks for looking but it appears I am the bug =/
– Smertrios
Nov 19 at 20:25














Note that in order to notify users you have to write @slhck. No worries about the issue, you may delete the question if it's not a problem anymore.
– slhck
Nov 21 at 12:08




Note that in order to notify users you have to write @slhck. No worries about the issue, you may delete the question if it's not a problem anymore.
– slhck
Nov 21 at 12:08















active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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',
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%2fsuperuser.com%2fquestions%2f1376657%2fi-specify-ss-n-t-5-autoexit-nodisp-but-ffplay-does-not-exit%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • 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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2fsuperuser.com%2fquestions%2f1376657%2fi-specify-ss-n-t-5-autoexit-nodisp-but-ffplay-does-not-exit%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







R,SeEdJZTXd4E0JYBWE64qepuh
Yz,hXA,qENh3Dumi,PffnQ0cL,4k0,7CoJswUhG5fAU,vW4XnaYVnOeMWTQw,S3zhaqARp3Vt2BUdezDYeEcgbrfbcNk0xi Uq,H0s

Popular posts from this blog

Plaza Victoria

Puebla de Zaragoza

Change location of user folders through cmd or PowerShell?