Re: [LAU] [OT] a sorting problem with AVSynthesis and mencoder

From: Mark Constable <markc@email-addr-hidden>
Date: Tue Nov 27 2007 - 16:48:32 EET

On 2007-11-28 12:44 am, Dave Phillips wrote:
> ...
> mencoder -ovc lavc -lavcopts vcodec=mpeg4:vme=1:keyint=30:vbitrate=1000
> -vf scale=800:600 -noskip -mf type=tga:fps=30 -o avs-001.avi mf://*.tga
> ...
> So, my question is, how do I get mencoder to read the TGA files by their
> time of creation ? That should do the trick, yes ? Otherwise I have to
> separate the single digit files from the double digit files and so
> forth, then I have to create and join separate AVIs. Not terribly
> difficult, just really annoying and time-consuming.
>
> Any suggestions ? Any mencoder users out there ?

Probably not quite the best answer but here is a oneliner workaround...

for i in *.tga;do mv $i $(printf "%05d.tga\n" $(echo $i|cut -d. -f1));done

--markc
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Tue Nov 27 20:15:02 2007

This archive was generated by hypermail 2.1.8 : Tue Nov 27 2007 - 20:15:02 EET