Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Video to FLV code in php
18 janvier 2012, par freelanceinphpI am looking for efficient and easy to implement code which work for media file to flv conversion.
Please give me some referral sites or links.
-
How to use FFMPEG on wowza to encode Live rtmp streams ?
17 janvier 2012, par arashagaI am looking for a source to explain how to use FFmpeg with wowza to transcode live rtmp to http. Does anyone know anything about it or know where to point me to get some info?
Thank you all,
-
Catch if the Java proccess crashed
17 janvier 2012, par VSheyanovI run java process to convert video using ffmpeg.exe.
Runtime rt = Runtime.getRuntime(); String cmd = FFMPEGFULLPATH + " -y -i " + '"' + mpeg4File + '"' + " -vcodec libx264 -vsync 2 " + '"' + H264file + '"'; Process pr = rt.exec(cmd); ThreadedTranscoderIO errorHandler = new ThreadedTranscoderIO(pr.getErrorStream(), "Error Stream"); errorHandler.start(); ThreadedTranscoderIO inputHandler = new ThreadedTranscoderIO(pr.getInputStream(), "Output Stream"); inputHandler.start(); try { pr.waitFor(); } catch (InterruptedException e) { LiveApplication.logger.info("Some shit happens during convertation 2 "); throw new IOException("UseTranscoderBlocking - Run_FFMPEG - process interrupted " + e); }
But when the process started, sometimes especially with big files, but not always i get this windows message:
This happens only on Windows server 2008 and didn't happened on Windows 7.
I have 2 questions:
- Why this process fails?
- Can I catch this fail in Java, close this window and continue thread execution (maybe I'll restart this proccess).
Thanks!
-
Can't Stream Ogg From ffmpeg Through stdout
16 janvier 2012, par dave mankoffTo get the the crux of it, why does the first command work, but the second command does not. They produce slightly differently sized files with different contents:
ffmpeg -i test.wav -f ogg -acodec libvorbis test.a.ogg ffmpeg -i test.wav -f ogg -acodec libvorbis - > test.b.ogg
test.a.ogg will play properly and has no problems. test.b.ogg starts in the middle of the source audio and has stops and gaps in the audio. It also does not report the length of the track.
I want to transcode source files on the fly into ogg for a program I am writing and I am trying to pipe the stdout from ffmpeg into my program. Putting the results into an intermediary file will kill performance since the transcoding is supposed to happen on demand.
-
Compressed SWF format not supported
16 janvier 2012, par CodedMonkeyWhen trying to convert a .swf file to .flv in ffmpeg, I get this error. Is there any way to decompress or bypass this error in ffmpeg, or is there any other command line video conversion tool that can do this conversion for me with a compressed .swf?