Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Cocoa app with ffmpeg dylibs crashes on Mac OSX 10.5 (but not 10.6 or 10.7)
30 décembre 2011, par simon.dI've built a Cocoa project in Xcode that integrates the ffmpeg dylibs. It runs fine on Mac OSX 10.6 and 10.7 but it crashes on 10.5. I'm compiling on 10.6. Any suggestions? Thanks!
Here's how I've compiled it:
./configure --disable-static --enable-shared --disable-outdev=sdl --enable-runtime-cpudetect --disable-bzlib --disable-libfreetype --disable-libopenjpeg --enable-zlib --arch=x86_64 --sysroot=/Developer/SDKs/MacOSX10.6.sdk --extra-cflags="-isysroot /Developer/SDKs/MacOSX10.6.sdk -DMACOSX_DEPLOYMENT_TARGET=10.5 -mmacosx-version-min=10.5"
Here's the crash report:
Process: MyApp [27963] Path: /Applications/MyApp.app/Contents/MacOS/MyApp Identifier: com.mycompany.MyApp Version: ??? (???) Code Type: X86-64 (Native) Parent Process: launchd [66] Interval Since Last Report: 123326 sec Crashes Since Last Report: 2 Per-App Interval Since Last Report: 0 sec Per-App Crashes Since Last Report: 2 Date/Time: 2011-11-06 15:29:51.154 -0500 OS Version: Mac OS X 10.5.8 (9L31a) Report Version: 6 Anonymous UUID: D86EA304-DCDA-4855-9124-69FE8C5BDE1B Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000002, 0x0000000000000000 Crashed Thread: 0 Dyld Error Message: Library not loaded: @rpath/libavcodec.dylib Referenced from: /Applications/MyApp.app/Contents/MacOS/../Frameworks/MyEngine.framework/Versions/A/MyEngine Reason: no suitable image found. Did find: /Applications/MyApp.app/Contents/Frameworks/MyEngine.framework/Versions/A/Libraries/libavcodec.dylib: unknown required load command 0x80000022
-
FFmpeg doesn't work in Rails 3 app with Apache and Passenger in GoDaddy CentOS
29 décembre 2011, par pablo89I try to upload a .mp4 video file, and it works; I made a Bash script that calls ffmpeg in order to get the thumbs of the video. It works fine in localhost, but when I uploaded the project to a dedicated server in GoDaddy with CentOS it doesn't work, it doesn't create the thumbnails, and it shows no error. The Rails App is running under Apache with Passenger. I have tried everything, even I gave 0777 permissions to the action and to the Bash script, but nothing, it doesn't show any error, but it doesn't work.
This is the action in Rails (as you can see, I use the commands system and exec):
def create if !params[:video][:video].nil? videoName = params[:video][:video].original_filename.gsub(/\s/,'_') @video = Video.new({:title => params[:video][:title], :video => "/worshipvideos/#{videoName}"}) else @video = Video.new({:title => params[:video][:title]}) end if !params[:video][:video].nil? tmp = params[:video][:video].tempfile file = File.join("public/worshipvideos", videoName) FileUtils.cp tmp.path, file FileUtils.rm tmp end respond_to do |format| if @video.save if !params[:video][:video].nil? logger.debug "./createVideoPics.sh '#{videoName}'" fork do system("./createVideoPics.sh '#{videoName}'") #exec("./createVideoPics.sh '#{videoName}'") end @video.update_attribute("pic1", "worship_pics/#{videoName}_1.jpg") @video.update_attribute("pic2", "worship_pics/#{videoName}_2.jpg") @video.update_attribute("pic3", "worship_pics/#{videoName}_3.jpg") end format.html { redirect_to @video, notice: 'Video was successfully created.' } format.json { render json: @video, status: :created, location: @video } else format.html { render action: "new" } format.json { render json: @video.errors, status: :unprocessable_entity } end end end
This is the script in Bash:
#!/bin/bash chmod 0777 "public/worshipvideos/$1" ffmpeg -i "public/worshipvideos/$1" -an -ss 00:00:20 -r 1 -vframes 1 -f mjpeg -y "app/assets/images/worship_pics/${1}_1.jpg" ffmpeg -i "public/worshipvideos/$1" -an -ss 00:00:40 -r 1 -vframes 1 -f mjpeg -y "app/assets/images/worship_pics/${1}_2.jpg" ffmpeg -i "public/worshipvideos/$1" -an -ss 00:01:00 -r 1 -vframes 1 -f mjpeg -y "app/assets/images/worship_pics/${1}_3.jpg" echo "End of making thumbs"
If I try to make the command in terminal ./createVideoPics.sh "abc.mp4" it works, it makes the thumbs; it only doesn't work inside the Rails App.
What do you think would be the problem? thanks in advance
-
FFMPeg : how to establish a mms connection on the iPhone ?
29 décembre 2011, par WinstonI'd like to use ffmpeg to connect to a live stream, using the
mms://
protocol and afterwards decode the WMA file to play on the iPhone.Which one of the following function should I use? And how do I use it?
1)
MMSContext
http://ffmpeg.org/doxygen/trunk/structMMSContext.htmlor
2)
URLContext
http://ffmpeg.org/doxygen/trunk/structURLContext.html -
ffmpeg raw input
29 décembre 2011, par Pedro Henrique Cavallieri FranI have this ffmpeg command:
ffmpeg -i testing.m4a -acodec pcm_s16le -f rawvideo tentative.raw
I'd like to know the command to convert tentative.raw back to testing.m4a.
Thanks,
Pedro Franceschi
-
png's to ffmpeg conversion` [closed]
28 décembre 2011, par JohandkI have a bunch of png images that I want to feed through ffmpeg to create a animation.
Anybody have some guidelines or ideas as to how I can achieve this?