ciphor / ffmpeg4ios

ffmpeg library migrated onto iOS
Other
82 stars 27 forks source link

how to use ffmpeg4ios in xcode? #1

Open vasudeivendran opened 12 years ago

vasudeivendran commented 12 years ago

hi ciphor,

  i want to use ffmpeg in my project . while surff in net i got ur code .i need following help from you
  1. how you built for ios ?
  2. how can i use ffmpeg4ios in my xcode project ?
ciphor commented 12 years ago
  1. run ./build_armv7 to build it for ios.
  2. read the sample at samples/rtsp_player, which is a simple video player which demonstrates how to use ffmpeg4ios.
vasudeivendran commented 12 years ago

thanks for reply . that ./build_armv7 throws some errors . then i have changed some option it was works fine .Thanks once again. am beginner for command line work .plz give some advice to start writing script file my own.

ezrover commented 12 years ago

hi, i tried to compile with the latest XCODE 4.3.1 and i get the following errors. Why did you hardcode your directory path's into your script?

/Users/Nader/Dropbox/Proj.Mac/Libraries/ffmpeg4ios Naders-iMac:ffmpeg4ios Nader$ ./build_armv7 rm: No match. Makefile:236: /home/wl/source/ffmpeg-0.7/tests/fate.mak: No such file or directory Makefile:237: /home/wl/source/ffmpeg-0.7/tests/fate2.mak: No such file or directory Makefile:239: /home/wl/source/ffmpeg-0.7/tests/fate/aac.mak: No such file or directory Makefile:240: /home/wl/source/ffmpeg-0.7/tests/fate/als.mak: No such file or directory Makefile:241: /home/wl/source/ffmpeg-0.7/tests/fate/fft.mak: No such file or directory Makefile:242: /home/wl/source/ffmpeg-0.7/tests/fate/h264.mak: No such file or directory Makefile:243: /home/wl/source/ffmpeg-0.7/tests/fate/mp3.mak: No such file or directory Makefile:244: /home/wl/source/ffmpeg-0.7/tests/fate/vorbis.mak: No such file or directory Makefile:245: /home/wl/source/ffmpeg-0.7/tests/fate/vp8.mak: No such file or directory make: * No rule to make target `/home/wl/source/ffmpeg-0.7/tests/fate/vp8.mak'. Stop. ./configure: Permission denied. Makefile:236: /home/wl/source/ffmpeg-0.7/tests/fate.mak: No such file or directory Makefile:237: /home/wl/source/ffmpeg-0.7/tests/fate2.mak: No such file or directory Makefile:239: /home/wl/source/ffmpeg-0.7/tests/fate/aac.mak: No such file or directory Makefile:240: /home/wl/source/ffmpeg-0.7/tests/fate/als.mak: No such file or directory Makefile:241: /home/wl/source/ffmpeg-0.7/tests/fate/fft.mak: No such file or directory Makefile:242: /home/wl/source/ffmpeg-0.7/tests/fate/h264.mak: No such file or directory Makefile:243: /home/wl/source/ffmpeg-0.7/tests/fate/mp3.mak: No such file or directory Makefile:244: /home/wl/source/ffmpeg-0.7/tests/fate/vorbis.mak: No such file or directory Makefile:245: /home/wl/source/ffmpeg-0.7/tests/fate/vp8.mak: No such file or directory make: * No rule to make target`/home/wl/source/ffmpeg-0.7/tests/fate/vp8.mak'. Stop. mv: rename libavcodec/libavcodec.a to armv7/libavcodec.a: No such file or directory mv: rename libavdevice/libavdevice.a to armv7/libavdevice.a: No such file or directory mv: rename libavformat/libavformat.a to armv7/libavformat.a: No such file or directory mv: rename libavutil/libavutil.a to armv7/libavutil.a: No such file or directory mv: rename libswscale/libswscale.a to armv7/libswscale.a: No such file or directory rm: No match. cp: No match.

Ivsucram commented 12 years ago

I have the same error than @ezrover so what I tried to do is follow this tutorial : https://care2achieve.wordpress.com/tag/ffmpeg4ios/