Convert video into audio iphone8/9/2023 OutFileName = os.path.splitext(inputFileName) '.mp4' #DEFAULT_ARGS = '-y -f mp4 -vcodec libxvid -acodec libfaac'ĭef _init_(self, width, height, duration):ĭevices = [device('ipod', 320, 240), device('iphone', 480, 320),ĭef getOutputFileName(inputFileName, outDir): #DEFAULT_ARGS = '-f mp4 -y -vcodec mpeg4 -vtag xvid -maxrate 1000k -mbd 2 -qmin 3 -qmax 5 -g 300 -bf 0 -acodec libfaac -ac 2 -r 30000/1001 -flags mv4 -trellis 2 -cmp 2 -subcmp 2' It is careful about maintaining the proper aspect ratio.ĭEFAULT_ARGS = '-f mp4 -y -vcodec libxvid -maxrate 1000k -mbd 2 -qmin 3 -qmax 5 -g 300 -bf 0 -acodec libfaac -ac 2 -flags mv4 -trellis 2 -cmp 2 -subcmp 2' # This program converts video files to mp4, suitable to be played on an iPod # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # WITHOUT ANY WARRANTY without even the implied warranty of # This program is distributed in the hope that it will be useful, but # the GNU General Public License as published by the Free Software It converts files to mp4.īecause of SO rules here the complete source code: #!/usr/bin/python If so, does anyone know how to force it to reencode the audio to the proper format? My suspicion is that it has something to do with the audio encoding. Video:92kB audio:32kB global headers:1kB muxing overhead 2.620892% Using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE Stream #0.1: Audio: nellymoser, 44100 Hz, mono, s16 Skipping flv packet: type 18, size 164, flags 0 Ra -enable-libspeex -enable-libmp3lame -enable-libopenjpeg -enable-libxvid. Nable-avisynth -enable-gpl -enable-zlib -enable-bzlib -enable-libgsm -enablĮ-libfaac -enable-libfaad -enable-pthreads -enable-libvorbis -enable-libtheo Here's the ffmpeg output from one such file: D:\ffmpeg>encode.bat d:\temp\recording.flv d:\temp\out.m4vįFmpeg version SVN-r18709, Copyright (c) 2000-2009 Fabrice Bellard, et al.Ĭonfiguration: -enable-memalign-hack -prefix=/mingw -cross-prefix=i686-ming But with some input files it won't work for older iphone versions (3G and iPod touch). The videos also seem to play fine on my iphone 3GS. This always outputs an mp4 file, and I can always play it on my PC. I'm using the following batch script with ffmpeg: offįfmpeg.exe -i %1 -s qvga -acodec libfaac -ar 22050 -ab 128k -vcodec libx264 -threads 0 -f ipod %2 I need to convert videos for use in both a flash player and the iphone/ipod touch.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |