Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
FFMPEG conversion to MXF [closed]
16 février 2012, par MFBI have to wrap an MPEG2 video file in an MXF container and convert the audio in the process. I have the MXF wrapping working but it won't convert the audio stream (which needs to be 16bit, 48kHz Linear PCM).
Here's what I'm trying:
ffmpeg -i input.mpg -map 0:0 -map 0:1 -vcodec copy -f mpeg2video -acodec pcm_s16le -ar 48000 -ac 2 output.mxf
Results:
ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers built on Jan 30 2012 17:49:23 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3) configuration: *{snipped}* runtime-cpudetect libavutil 51. 34.101 / 51. 34.101 libavcodec 53. 60.100 / 53. 60.100 libavformat 53. 31.100 / 53. 31.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 60.100 / 2. 60.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg @ 0x10201ae00] max_analyze_duration 5000000 reached at 5000000 Input #0, mpeg, from '/Volumes/Extra/test.mpg': Duration: 00:00:59.97, start: 0.192911, bitrate: 6513 kb/s Stream #0:0[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 12000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Output #0, mpeg2video, to 'video.mxf': Metadata: encoder : Lavf53.31.100 Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 16:15 DAR 4:3], q=2-31, 12000 kb/s, 25 fps, 90k tbn, 25 tbc Stream mapping: Stream #0:1 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 1500 fps= 0 q=-1.0 Lsize= 43949kB time=00:00:59.96 bitrate=6004.6kbits/s video:43949kB audio:0kB global headers:0kB muxing overhead 0.000000%
The video plays fine as the MXF, but there is no audio stream at all. Any help would be great.
-
how to convert and capture with ffmpeg
16 février 2012, par Wai YanI want to upload a video.Uploaded video will be capture two images at 10% and 50% time length. And if uploaded video is not flv, want to convert to flv. How to know uploaded video is flv or not flv. How to convert? Now I am using php and ffmpeg. Please someone answer me.I am beginner for php, ffmpeg and english language. I founded many questions in this website about ffmpeg.But I can't found need answer. If this question is duplicate question,forgive me.
-
ffmpeg : access h264.h
16 février 2012, par Drew CI installed ffmpeg because it is required by an C++ project I am working on that deals with h264 decoding. I can see that the h264.h file is in the ffmpeg project files, but the line
#include
in my project results inh264.h> error: libavcodec/h264.h: No such file or directory
at compile time. How can I ensure the h264 library is installed and visible to my project? -
ffmpg : generate very small size video out of pictures
15 février 2012, par jfasUsing JPEG pictures, I'd like to generate a video with the smallest possible size. In the ffmpeg doc, it says one can use a 1 fps frame rate. Is it possible to go below that to have a even smaller video file size (like 1 new picture displayed every 2-3secs?)
-
What parameters are required to use x264 via ffmpeg ?
15 février 2012, par nightWatcheri have an AVI file, i have decoded it into Raw form first, now i want to encode it in .h264 format. I am using libavcodec.dll and libavformat.dll. The point is when i try to open the codec from avcodec_open(AVCodecContext,AVCodec) It doesnot open. Am i missing some parameters that i need to specify for execution of this method for the lib x264? Any help will be deeply appreciated. Thanks