[FFmpeg-user] Command line to create mpeg ( or anything ) from testsrc

Jim Shupert jshupert at pps-inc.com
Fri Jan 6 21:30:33 CET 2012


you may wish to review the docs
i think you will have greater success w something like

C:\bin>ffmpeg -i Path/mySrcFile -s 720x480 -vcodec mpeg2video -acodec mp2 path/myOutFile.mpg
( the above does not specify data rate )

-i is how you declare the input , -vf  for filters

C:\bin>ffmpeg -h
C:\bin>ffmpeg -formats





On 1/6/2012 3:07 PM, Roger Berk wrote:
> It almost works with the following, but it produces an error complaining about no input file....
> This produces an empty test.mpg.....
>
> C:\bin>ffmpeg -vf testsrc=duration=10:size=1280x720:rate=30 -vcodec mpeg2video test.mpg
>
> File 'test.mpg' already exists. Overwrite ? [y/N] y
> At least one input file must be specified
>
>
>
> ________________________________________
> From: ffmpeg-user-bounces at ffmpeg.org [ffmpeg-user-bounces at ffmpeg.org] on behalf of Roger Berk [RBerk at CreativeTechnology.com]
> Sent: Friday, January 06, 2012 2:53 PM
> To: FFmpeg user questions and RTFMs
> Subject: Re: [FFmpeg-user] Command line to create mpeg ( or anything ) from testsrc
>
> C:\bin>ffmpeg -i testsrc=duration=10:size=1280x720:rate=30 -vcodec mpeg2video test.mpg
>
> produces the error:
>
> testsrc=duration=10:size=1280x720:rate=30: No such file or directory
>
> I have tried many other combinations, with various errors.
>
>
>
> Any Ideas ?
>
>
> ________________________________________
> From: ffmpeg-user-bounces at ffmpeg.org [ffmpeg-user-bounces at ffmpeg.org] on behalf of Stefano Sabatini [stefasab at gmail.com]
> Sent: Friday, January 06, 2012 2:26 PM
> To: FFmpeg user questions and RTFMs
> Subject: Re: [FFmpeg-user] Command line to create mpeg ( or anything ) from testsrc
>
> On date Friday 2012-01-06 19:13:14 +0000, Roger Berk encoded:
>> Hello,
>>
>> Can someone direct me how to use the ffmpeg,exe command line to
>> record the testsrc source filter into an mpeg, h264 or other format
>> video file ?
>>
>> ffplay -f lavfi testsrc=duration=10:size=1280x720:rate=30 will play the test pattern to the screen.
> ffmpeg -i lavfi testsrc=... OUTPUT
> --
> ffmpeg-user random tip #8
> Multimedia related stuff web site promo:
> http://wiki.multimedia.cx/
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
>


More information about the ffmpeg-user mailing list