Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
ffmpeg : how to convert iphone4 720p video into similar quality Flash video ?
5 septembre 2011, par SajeeWhat are the proper arguments to ffmpeg to covert an iphone4 720p video into the similar quality Flash video?
I tried the following which resulted in a low quality Flash video:
ffmpeg movie.mov movie.flv
What are the right switches?
-
How to get a loading return value
5 septembre 2011, par anthonypliuI am trying to create a loading progress bar for my function:
private string ConvertToFLV(string phyicalFilePath) { if (Path.GetExtension(phyicalFilePath).Equals(".flv")) return phyicalFilePath; var argument = string.Format(@"-i ""{0}"" -vcodec flv -f flv -r 29.97 -s 320x240 -aspect 4:3 -b 300k -g 160 -cmp dct -subcmp dct -mbd 2 -flags +aic+cbp+mv0+mv4 -trellis 1 -ac 1 -ar 22050 -ab 56k ""{1}""", phyicalFilePath, Path.ChangeExtension(phyicalFilePath, "flv")); // var argument = string.Format("-i {0} -crf 35.0 -vcodec libx264 -acodec libfaac -ar 48000 -ab 128k -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads 0 {1}", phyicalFilePath, Path.ChangeExtension(phyicalFilePath, "mp4")); File.Delete(Path.ChangeExtension(phyicalFilePath, "flv")); ProcessStartInfo process = new ProcessStartInfo(ffmpegPhysicalPath, argument); Process proc = new Process(); proc.StartInfo = process; proc.Start(); proc.WaitForExit(); return Path.ChangeExtension(phyicalFilePath, "flv"); }
Whent he command "proc.WaitForExit()" is invoked, I want to be able to return some type of load percentage. In the frontend I just have a gif loading image, but I want to be able to show progress on this, is there a way to do this?
-
How to convert YUV420SP to YUV420P using ffmpeg sws_scale or other efficient method ?
3 septembre 2011, par limitfanThanks in advance. Any suggestion will be appreciated.
-
Raw audio stream of Android device mic to libgsm_ms file
2 septembre 2011, par MANNI'm capturing audio stream from the android device mic, which I want to convert into libgsm_ms encoded file but without saving it into a file or converting it into some xyz format (time and cpu utilization issue) and then reconvert it into libgsm_ms standard. Please let me know how to achieve this? Is it possible to feed this stream directly to ffmpeg?
-
pyffmpeg segmentation fault on osx
1er septembre 2011, par gokI am having trouble installing and using pyffmpeg in OSX. (Snow Leopard)
I tried different versions. Only configuration that seems to install is Python2.6, Cython 0.13 and pyffmpeg 2.0. (Python, ffmpeg and cython is installed with MacPorts and pyffmpeg with setup.py)
But with that when I try to open a file
stream=pyffmpeg.VideoStream() stream.open(filepath)
it gives this error:
Traceback (most recent call last): File "test.py", line 24, in test stream.open(filepath) File "pyffmpeg.pyx", line 2467, in pyffmpeg.VideoStream.open (pyffmpeg.c:16607) File "pyffmpeg.pyx", line 1920, in pyffmpeg.FFMpegReader.open (pyffmpeg.c:11361) IOError: Unable to open file test.mp4 (url_fopen) Segmentation fault
Any idea what's wrong?