Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
parser not found for codec wmav2
5 décembre 2011, par HashCoderI am getting a warning when I run the below command.
Warning: [asf @ 01C787A0] parser not found for codec wmav2, packets or times may be inval id.
I am using the latest ffmpeg.exe, did I miss any parameters. Any suggestions please.
ffmpeg -i Assets\Logitech_webcam_on_PC.wmv -sameq -f swf -y -an -s 640x360 MySlide.swf ffmpeg version N-35295-gb55dd10, Copyright (c) 2000-2011 the FFmpeg developers built on Nov 30 2011 00:52:52 with gcc 4.6.2 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger - -enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable- libxvid --enable-zlib libavutil 51. 29. 1 / 51. 29. 1 libavcodec 53. 39. 1 / 53. 39. 1 libavformat 53. 22. 0 / 53. 22. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 50. 0 / 2. 50. 0 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 [asf @ 01C787A0] parser not found for codec wmav2, packets or times may be inval id. Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000 /1) -> 0.08 (1/12) Input #0, asf, from 'Assets\Logitech_webcam_on_PC.wmv': Metadata: WMFSDKVersion : 11.0.5721.5265 WMFSDKNeeded : 0.0.0.0000 IsVBR : 1 VBR Peak : 50500.0000 Buffer Average : 66550.0000 Duration: 00:00:36.22, start: 0.000000, bitrate: 497 kb/s Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 32000 Hz, 1 channels, s16, 20 kb/s Stream #0:1(eng): Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 320x180, 422 kb/ s, 0.08 tbr, 1k tbn, 1k tbc [buffer @ 02AA9760] w:320 h:180 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: [scale @ 02AA9A80] w:320 h:180 fmt:yuv420p -> w:640 h:360 fmt:yuv420p flags:0x4 Output #0, swf, to 'MySlide.swf': Metadata: WMFSDKVersion : 11.0.5721.5265 WMFSDKNeeded : 0.0.0.0000 IsVBR : 1 VBR Peak : 50500.0000 Buffer Average : 66550.0000 encoder : Lavf53.22.0 Stream #0:0(eng): Video: flv1, yuv420p, 640x360, q=2-31, 200 kb/s, 90k tbn, 0.08 tbc Stream mapping: Stream #0:1 -> #0:0 (wmv2 -> flv) Press [q] to stop, [?] for help frame= 4 fps= 0 q=0.0 size= 97kB time=00:00:48.00 bitrate= 16.6kbits/s frame= 5 fps= 0 q=0.0 Lsize= 111kB time=00:01:00.00 bitrate= 15.2kbits/ s dup=0 drop=599 video:111kB audio:0kB global headers:0kB muxing overhead 0.128646%
-
How to enable different components of FFMPEG ?
3 décembre 2011, par Richard77I've found this C# wrapper code around FFMPEG. I'm using ASP.NET MVC3 and C#. When trying to get it work, I'm getting the following error:
RawOutput "ffmpeg version N-34906-g4e7b3ef, Copyright (c) 2000-2011 the FFmpeg developers built on Nov 16 2011 12:35:07 with gcc 4.6.2 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib libavutil 51. 25. 0 / 51. 25. 0 libavcodec 53. 34. 0 / 53. 34. 0 libavformat 53. 20. 0 / 53. 20. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 48. 1 / 2. 48. 1 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 [wmv3 @ 002BFA00] Extra data: 8 bits left, value: 0 [asf @ 002B8A80] parser not found for codec wmav2, packets or times may be invalid. Seems stream 1 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 30.00 (30/1) Input #0, asf, from 'C:\\FfMpeg\\Videos\\Original\\Video1.wmv': Metadata: WMFSDKVersion : 11.0.6002.18049 WMFSDKNeeded : 0.0.0.0000 IsVBR : 0 Duration: 00:00:41.80, start: 0.000000, bitrate: 888 kb/s Stream #0:0(eng): Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, 2 channels, s16, 64 kb/s Stream #0:1(eng): Video: wmv3 (Main) (WMV3 / 0x33564D57), yuv420p, 320x240, 786 kb/s, 30 tbr, 1k tbn, 1k tbc Incompatible pixel format 'yuv420p' for codec 'mjpeg', auto-selecting format 'yuvj420p' [buffer @ 031D8DA0] w:320 h:240 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: [buffersink @ 031D8FA0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 03106C20] w:320 h:240 fmt:yuv420p -> w:320 h:240 fmt:yuvj420p flags:0x4 [wmv3 @ 002BFA00] Extra data: 8 bits left, value: 0 Output #0, image2, to '87334ed0-2bcf-4be5-82ae-9089c14e0323.jpg': Metadata: WMFSDKVersion : 11.0.6002.18049 WMFSDKNeeded : 0.0.0.0000 IsVBR : 0 encoder : Lavf53.20.0 Stream #0:0(eng): Video: mjpeg, yuvj420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 30 tbc Stream mapping: Stream #0:1 -> #0:0 (wmv3 -> mjpeg) Press [q] to stop, [?] for help [image2 @ 03107920] Could not open file : 87334ed0-2bcf-4be5-82ae-9089c14e0323.jpg av_interleaved_write_frame(): Input/output error " string
I'm absolutely new to FFMPEG, so I don't know where to start to solve the above probleme.
EDIT
public ActionResult Convert() { Converter _converter = new Converter(@"C:\FfMpeg\ffmpeg.exe"); OutputPackage oo = _converter.ConvertToFLV(@"C:\FfMpeg\Videos\Original\Video1.wmv"); FileStream outStream = System.IO.File.OpenWrite(@"C:\FfMpeg\Videos\Converted\Video1.flv"); oo.VideoStream.WriteTo(outStream); outStream.Flush(); outStream.Close(); oo.PreviewImage.Save(@"C:\FfMpeg\Videos\Thumbnail\Thumbnail1.jpg"); return RedirectToAction("WatchMovie"); }
Thanks for helping
-
Video encoding from a file which is being creating from another recorder program
3 décembre 2011, par John Smithwell, this is an extreme question. There's a screen capturer program which records video to a file (only this program can record from the target application!) and I would like to stream it with FFmpeg by UPD/TCP. The question is how to encode a file what is being writing. Sadly that program creates big file and not seems to be accept any way to change encodings.
-
Convert Video to f4v & m4p using FFMPEG [closed]
3 décembre 2011, par Tayyab TariqI would like to convert a video in any given format (say xvid) to a f4v & m4p using ffmpeg. Can someone describe the step by step process?
-
Theatrical quality ffmpeg/x264 encoding of a high-motion 1080p video
2 décembre 2011, par IanI've been struggling with encoding videos using FFMPEG and x264. The output stutters when played back in Quicktime, while in VLC it shows a lot of compression artifacts at the same places Quicktime stutters. So it seems like Quicktime is stuttering because it's trying to suppress the corruption/artifacts.
The videos have a lot of random motion in them, including frames where 75% of the pixels will change at a random interval (the video is software generated so it's truly pseudo-random). The compression seems to be choking in these places where it's likely detecting a "scene cut" incorrectly. It also seems to choke at regular intervals where I guess it's doing a keyframe.
I've based my encoding preset off of the x264-hq preset that comes with FFMPEG. I've tried turning off scene cut detection, and playing with the
keyint
/g
andkeyint_min
options. Settingg
to 1 makes it work, but blows out the filesize. I've tried the lossless presets, but they won't playback at all in Quicktime. Oddly, I haven't had any problems when working with a lower-resolution test video (1440x810).Here's the preset I have right now, which works, but yields a file that's approximately 60% larger than the (non-working) hq preset yields. Is there any way to improve upon this? The filesize doesn't matter much, I just want something that will playback anywhere and be very high quality.
coder=1 flags=+loop cmp=+chroma partitions=+parti8x8+parti4x4+partp8x8+partp4x4+partb8x8 me_method=umh subq=8 me_range=16 g=1 keyint_min=1 sc_threshold=0 i_qfactor=0.71 b_strategy=1crf=20 qcomp=0.6 qmin=20 qmax=51 qdiff=4 bf=16 refs=4 trellis=1 flags2=+dct8x8+wpred+bpyramid+mixed_refs wpredp=2
Here's the command:
ffmpeg \ -r 60 -i "frame-%06d.tiff" \ -vcodec libx264 -vpre my_preset \ -threads 0 \ -r 60 -an -f out.mp4