Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Converting .mp4 to .webm with FFMPEG
24 septembre 2012, par DAVYMAny chance someone can help me make this a 2 or 3 pass command:
Using "FFmpeg Win64 Static build by Kyle Schwarz, compiled on: Sep 19 2012 16:31:43" in the Command Prompt of Windows7(x64). I am a newbie to FFMPEG and trying to convert videos for my website from .mp4 to .webm (videos edited and mixed in AdobePremiereProCS6 where then encoded into .mp4 from .mts Canon HXG10 recordings). Original video file is 1080p quality.
c:\ff/ffmpeg -i c:\ff/xxx.mp4 -codec:v libvpx -quality good -cpu-used 0 -b:v 7000k -qmin 10 -qmax 42 -maxrate 500k -bufsize 1500k -threads 8 -vf scale=-1:1080 -codec:a libvorbis -b:a 192k -f webm c:\ff/xxx.webm
-
Convert swf file to mp4 file using FFMPEG [migrated]
24 septembre 2012, par user1624004I now want to show an html5 video on a html page.
Now I have an sample.swf file, I want to convert it to .mp4 or .ogg or .webm file.
I have tried:
ffmpeg -i sample.swf sample.mp4
But I got this error:
[swf @ 0000000001feef40] Could not find codec parameters for stream 0 (Audio: pcm_s16le, 5512 Hz, 1 channels, 88 kb/s): unspecified sample format Consider increasing the value for the 'analyzeduration' and 'probesize' options [swf @ 0000000001feef40] Estimating duration from bitrate, this may be inaccurate Guessed Channel Layout for Input Stream #0.0 : mono Input #0, swf, from 'sample.swf': Duration: N/A, bitrate: N/A Stream #0:0: Audio: pcm_s16le, 5512 Hz, mono, 88 kb/s Stream #0:1: Video: mjpeg, yuvj444p, 1024x768 [SAR 100:100 DAR 4:3], 16 fps, 16 tbr, 16 tbn File 'sample.mp4' already exists. Overwrite ? [y/N] y Invalid sample format '(null)' Error opening filters!
-
"invalid, non monotonically increasing dts" error while writing streams to file with ffmpeg
24 septembre 2012, par NoviceAndNoviceI was finally able to write video stream packets to a file using the function
av_interleaved_write_frame(outputContext, &packet);
But after a short period of time I got this error:
Application provided invalid, non monotonically increasing dts to muxer in stream 0: *numberX* >= *numberY*
Does anybody have any idea, what's causing this and how to fix it?
-
capturing video/audio on windows
24 septembre 2012, par nasiajaiI would like to capture video/audio on Windows.
Someone says it's not supported to capture audio on Windows using FFmpeg.
Please, give me some SDK options to capture video/audio on windows.
If possible, It will be very appreciated if you would point me some of tutorials.
Thank you.
-
Convert wma stream to mp3 stream with C# and ffmpeg
24 septembre 2012, par user1363468Is it possible to convert a wma stream to an mp3 stream real time?
I have tried doing something like this but not having any luck:
WebRequest request = WebRequest.Create(wmaUrl); HttpWebResponse response = (HttpWebResponse)request.GetResponse(); int block = 32768; byte[] buffer = new byte[block]; Process p = new Process(); p.StartInfo.UseShellExecute = false; p.StartInfo.ErrorDialog = false; p.StartInfo.RedirectStandardInput = true; p.StartInfo.RedirectStandardOutput = true; p.StartInfo.RedirectStandardError = true; p.StartInfo.FileName = "c:\\ffmpeg.exe"; p.StartInfo.Arguments = "-i - -y -vn -acodec libspeex -ac 1 -ar 16000 -f mp3 "; StringBuilder output = new StringBuilder(); p.OutputDataReceived += (sender, e) => { if (e.Data != null) { output.AppendLine(e.Data); //eventually replace this with response.write code for a web request } }; p.Start(); StreamWriter ffmpegInput = p.StandardInput; p.BeginOutputReadLine(); using (Stream dataStream = response.GetResponseStream()) { int read = dataStream.Read(buffer, 0, block); while (read > 0) { ffmpegInput.Write(buffer); ffmpegInput.Flush(); read = dataStream.Read(buffer, 0, block); } } ffmpegInput.Close(); var getErrors = p.StandardError.ReadToEnd();
Just wondering if what I am trying to do is even possible (Convert byte blocks of wma to byte blocks of mp3). Open to any other possible C# solutions if they exist.
Thanks