Re: using ffmpeg command line with python's subprocess module

2013-12-10 Thread Andreas Perstinger
iMath wrote: >we don't have permission to use the temporary file while it has not >been closed,but when the file is closed , it will be destroyed by >default(delete=True),but once we set delete=False,then we couldn't >depend on the convenience of letting the temporary file automatically >delete it

Re: using ffmpeg command line with python's subprocess module

2013-12-09 Thread iMath
在 2013年12月6日星期五UTC+8下午10时59分43秒,Chris Angelico写道: > On Sat, Dec 7, 2013 at 1:54 AM, iMath wrote: > > > fp=tempfile.NamedTemporaryFile(delete=False) > > > fp.write(("file '"+fileName1+"'\n").encode('utf-8')) > > > fp.write(("file '"+fileName2+"'\n").encode('utf-8')) > > > > > > >

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread Gregory Ewing
rusi wrote: On Friday, December 6, 2013 10:11:04 PM UTC+5:30, MRAB wrote: You're exaggerating. It's more like 500 years ago. :-) I was going to say the same until I noticed the "the way people think English was spoken..." That makes it unarguable -- surely there are some people who (wrongly)

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread rusi
On Friday, December 6, 2013 10:11:04 PM UTC+5:30, MRAB wrote: > On 06/12/2013 15:34, Steven D'Aprano wrote: > > On Fri, 06 Dec 2013 06:52:48 -0800, iMath wrote: > >> yes ,I am a native Chinese speaker.I always post question by Google > >> Group not through email ,is there something wrong with it ?

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread rusi
On Friday, December 6, 2013 9:55:54 PM UTC+5:30, Mark Lawrence wrote: > On 06/12/2013 16:19, rusi wrote: > > So someone please update that page! > This is a community so why don't you? Ok done (at least a first draft) I was under the impression that anyone could not edit -- https://mail.python.

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread MRAB
On 06/12/2013 15:34, Steven D'Aprano wrote: On Fri, 06 Dec 2013 06:52:48 -0800, iMath wrote: yes ,I am a native Chinese speaker.I always post question by Google Group not through email ,is there something wrong with it ? your english is a little strange to me . Mark is writing in fake old-En

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread Mark Lawrence
On 06/12/2013 16:19, rusi wrote: On Friday, December 6, 2013 9:23:47 PM UTC+5:30, Mark Lawrence wrote: On 06/12/2013 15:34, Steven D'Aprano wrote: (if I remember correctly) I think Mark also sometimes posts a link to managing Google Groups. You do, and here it is https://wiki.python.org

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread rusi
On Friday, December 6, 2013 9:23:47 PM UTC+5:30, Mark Lawrence wrote: > On 06/12/2013 15:34, Steven D'Aprano wrote: > > (if I remember correctly) I think Mark also > > > sometimes posts a link to managing Google Groups. > > > > > You do, and here it is https://wiki.python.org/moin/GoogleGroupsP

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread Mark Lawrence
On 06/12/2013 15:34, Steven D'Aprano wrote: (if I remember correctly) I think Mark also sometimes posts a link to managing Google Groups. You do, and here it is https://wiki.python.org/moin/GoogleGroupsPython -- My fellow Pythonistas, ask not what our language can do for you, ask what you ca

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread Steven D'Aprano
On Fri, 06 Dec 2013 06:52:48 -0800, iMath wrote: > yes ,I am a native Chinese speaker.I always post question by Google > Group not through email ,is there something wrong with it ? your > english is a little strange to me . Mark is writing in fake old-English style, the way people think English

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread rusi
On Friday, December 6, 2013 8:42:02 PM UTC+5:30, Mark Lawrence wrote: > The English I used was archaic, please ignore it :) "Archaic" is almost archaic "Old" is ever-young :D -- https://mail.python.org/mailman/listinfo/python-list

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread rusi
On Friday, December 6, 2013 8:22:48 PM UTC+5:30, iMath wrote: > 在 2013年12月6日星期五UTC+8下午5时23分59秒,Mark Lawrence写道: > > On 06/12/2013 06:23, iMath wrote: > > Dearest iMath, wouldst thou be kind enough to partake of obtaining some > > type of email client that dost not sendeth double spaced data into t

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread Mark Lawrence
On 06/12/2013 14:52, iMath wrote: 在 2013年12月6日星期五UTC+8下午5时23分59秒,Mark Lawrence写道: On 06/12/2013 06:23, iMath wrote: Dearest iMath, wouldst thou be kind enough to partake of obtaining some type of email client that dost not sendeth double spaced data into this most illustrious of mailing lis

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread Chris Angelico
On Sat, Dec 7, 2013 at 1:54 AM, iMath wrote: > fp=tempfile.NamedTemporaryFile(delete=False) > fp.write(("file '"+fileName1+"'\n").encode('utf-8')) > fp.write(("file '"+fileName2+"'\n").encode('utf-8')) > > > subprocess.call(['ffmpeg', '-f', 'concat','-i',fp.name, '-c', 'copy', >

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread iMath
在 2013年12月4日星期三UTC+8下午6时51分49秒,Chris Angelico写道: > On Wed, Dec 4, 2013 at 8:38 PM, Andreas Perstinger > wrote: > > > "fp" is a file object, but subprocess expects a list of strings as > > > its first argument. > > > > More fundamentally: The subprocess's arguments must include the *name* >

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread iMath
在 2013年12月6日星期五UTC+8下午5时23分59秒,Mark Lawrence写道: > On 06/12/2013 06:23, iMath wrote: > > > > Dearest iMath, wouldst thou be kind enough to partake of obtaining some > > type of email client that dost not sendeth double spaced data into this > > most illustrious of mailing lists/newsgroups. T

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread Ned Batchelder
On 12/6/13 4:23 AM, Mark Lawrence wrote: On 06/12/2013 06:23, iMath wrote: Dearest iMath, wouldst thou be kind enough to partake of obtaining some type of email client that dost not sendeth double spaced data into this most illustrious of mailing lists/newsgroups. Thanking thee for thine partic

Re: using ffmpeg command line with python's subprocess module

2013-12-06 Thread Mark Lawrence
On 06/12/2013 06:23, iMath wrote: Dearest iMath, wouldst thou be kind enough to partake of obtaining some type of email client that dost not sendeth double spaced data into this most illustrious of mailing lists/newsgroups. Thanking thee for thine participation in my most humble of requests.

Re: using ffmpeg command line with python's subprocess module

2013-12-05 Thread iMath
在 2013年12月4日星期三UTC+8下午5时38分27秒,Andreas Perstinger写道: > iMath wrote: > > >I use the following code to do the test ,but error occurred ,it > > >prompts system cannot find specified files ,but the files are indeed > > >exists there ,any help ? > > > > > >with tempfile.TemporaryFile() as fp: > >

Re: using ffmpeg command line with python's subprocess module

2013-12-04 Thread Chris Angelico
On Wed, Dec 4, 2013 at 8:38 PM, Andreas Perstinger wrote: > "fp" is a file object, but subprocess expects a list of strings as > its first argument. More fundamentally: The subprocess's arguments must include the *name* of the file. This means you can't use TemporaryFile at all, as it's not guara

Re: using ffmpeg command line with python's subprocess module

2013-12-04 Thread Andreas Perstinger
iMath wrote: >I use the following code to do the test ,but error occurred ,it >prompts system cannot find specified files ,but the files are indeed >exists there ,any help ? > >with tempfile.TemporaryFile() as fp: >fp.write(("file '"+'a1.mp3'+"'\n").encode('utf-8')) >fp.write(("file '"+'a2

Re: using ffmpeg command line with python's subprocess module

2013-12-03 Thread iMath
在 2013年12月3日星期二UTC+8上午9时42分11秒,rusi写道: > On Tuesday, December 3, 2013 6:45:42 AM UTC+5:30, iMath wrote: > > > so is there any way to create a temporary file by Python here ? > > > > http://docs.python.org/2/library/tempfile.html I use the following code to do the test ,but error occurred ,it pr

Re: using ffmpeg command line with python's subprocess module

2013-12-03 Thread iMath
在 2013年12月3日星期二UTC+8上午9时42分11秒,rusi写道: > On Tuesday, December 3, 2013 6:45:42 AM UTC+5:30, iMath wrote: > > > so is there any way to create a temporary file by Python here ? > > > > http://docs.python.org/2/library/tempfile.html I use the following code to do the test ,but error occurred ,it pr

Re: using ffmpeg command line with python's subprocess module

2013-12-03 Thread iMath
在 2013年12月3日星期二UTC+8下午5时33分09秒,Alain Ketterlin写道: > Ben Finney writes: > > > > > Chris Angelico writes: > > > > > >> On Mon, Dec 2, 2013 at 10:34 PM, iMath wrote: > > >> > ffmpeg -f concat -i <(for f in ./*.wav; do echo "file '$f'"; done) -c > >> > copy output.wav > > >> > ffmpeg -f conc

Re: using ffmpeg command line with python's subprocess module

2013-12-03 Thread Alain Ketterlin
Ben Finney writes: > Chris Angelico writes: > >> On Mon, Dec 2, 2013 at 10:34 PM, iMath wrote: >> > ffmpeg -f concat -i <(for f in ./*.wav; do echo "file '$f'"; done) -c copy >> > output.wav >> > ffmpeg -f concat -i <(printf "file '%s'\n" ./*.wav) -c copy output.wav >> > ffmpeg -f concat -i <(

Re: using ffmpeg command line with python's subprocess module

2013-12-02 Thread rusi
On Tuesday, December 3, 2013 6:45:42 AM UTC+5:30, iMath wrote: > so is there any way to create a temporary file by Python here ? http://docs.python.org/2/library/tempfile.html -- https://mail.python.org/mailman/listinfo/python-list

Re: using ffmpeg command line with python's subprocess module

2013-12-02 Thread iMath
在 2013年12月3日星期二UTC+8上午5时19分21秒,Ben Finney写道: > Chris Angelico writes: > > > > > On Mon, Dec 2, 2013 at 10:34 PM, iMath wrote: > > > > ffmpeg -f concat -i <(for f in ./*.wav; do echo "file '$f'"; done) -c > > > copy output.wav > > > > ffmpeg -f concat -i <(printf "file '%s'\n" ./*.wav) -c co

Re: using ffmpeg command line with python's subprocess module

2013-12-02 Thread Chris Angelico
On Tue, Dec 3, 2013 at 8:19 AM, Ben Finney wrote: > Chris Angelico writes: > >> On Mon, Dec 2, 2013 at 10:34 PM, iMath wrote: >> > ffmpeg -f concat -i <(for f in ./*.wav; do echo "file '$f'"; done) -c copy >> > output.wav >> > ffmpeg -f concat -i <(printf "file '%s'\n" ./*.wav) -c copy output.w

Re: using ffmpeg command line with python's subprocess module

2013-12-02 Thread Ben Finney
Chris Angelico writes: > On Mon, Dec 2, 2013 at 10:34 PM, iMath wrote: > > ffmpeg -f concat -i <(for f in ./*.wav; do echo "file '$f'"; done) -c copy > > output.wav > > ffmpeg -f concat -i <(printf "file '%s'\n" ./*.wav) -c copy output.wav > > ffmpeg -f concat -i <(find . -name '*.wav' -printf

Re: using ffmpeg command line with python's subprocess module

2013-12-02 Thread Chris Angelico
On Mon, Dec 2, 2013 at 10:34 PM, iMath wrote: > I have few wav files that I can use either of the following command line > mentioned here > https://trac.ffmpeg.org/wiki/How%20to%20concatenate%20%28join,%20merge%29%20media%20files > to concatenate > > > ffmpeg -f concat -i <(for f in ./*.wav; do