Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Mjpeg recording with FFMPEG preserving time information
14 septembre 2012, par Muhammad Adeel ZahidI am recording the MJPEG video from an IP camera and saving it to a file but the problem is that file's duration is way smaller than the actual recording time. Its around 9 seconds video for 2 minutes recording. I tried following commands in order
ffmpeg -f mjpeg -r 8 -i http://c-cam.uchicago.edu/mjpg/video.mjpg -vcodec mpeg4 -b 1000000 -r 8 video_file.avi
Then I omitted the most of the flags and tried like this
ffmpeg -f mjpeg -i http://c-cam.uchicago.edu/mjpg/video.mjpg video_file.avi
But the problem is that the duration of recorded file is 9 seconds where as the actual recording time is around 2 minutes. I finally tried setpts filter that is supposed to insert the timestamps. The command is as follows
ffmpeg -f mjpeg -i http://c-cam.uchicago.edu/mjpg/video.mjpg -vf "setpts=1*PTS" video_file.avi
But result was still the same. Recording time was way more than video duration. How can I add presentational time stamps when recording from mjpeg source using ffmpeg?
-
cvCaptureFromFile always returns NULL, Visual Studio 2005
14 septembre 2012, par user1671173I've got a problem with the cvCaptureFromFile function. It always returns NULL. I've done some research on the internet and I've added PATH to ffmpeg's "bin" directory.
But it's still the same. So I've tried to open the desired file withffplay.exe
. It returns an error which says "Invalid data found when processing an input". It is a "mjpg" file, which should be played with ffmpeg. Then I tried the same with some "mpg" file.
Now the message is "no such file or directory" which is not true, because the file is in the place. What else should I do? The files all right with Media-Player and VLC player. Please help! -
flv from vlc to ffmpeg live video error when no sound temporarily
14 septembre 2012, par dvchWhen we get live stream from vlc to ffmpeg , wherever there is sometimes 5-6 second no sound part of video , then ffmpeg is dead with this log
flv @ 0x8b426d0]illegal ac vlc code at 4x6
[flv @ 0x8b426d0]Error at MB: 142
[flv @ 0x8b426d0]concealing 257 DC, 257 AC, 257 MV errors
[mpegts @ 0x8b44e50]dts < pcr, TS is invalid
Is there anyway to avoid this problem ?
-
Enabling MP4 demuxer in FFmpeg configure command
13 septembre 2012, par geekowlI want to enable MP4 muxing and demuxing, H264 decoding and MJPEG encoding and disable everything else in FFmpeg configure command.
I know that I can use
--disable-everything
option and enable the needed components. When I list the demuxers and decoders using--list-demuxers
and--list-decoders
options, I do not see MP4 demuxer or decoder. I do see MP4 muxer in the muxers list.What option should I use to enable MP4 demuxer in FFmpeg configure command?
Thank you in advance for your help.
-
FF-MPEG Running Commands through Jni
13 septembre 2012, par Ravi K. SharmaI read and followed all instructions http://bambuser.com/opensource but i am puzzled around how to generate ffmpeg .so file using cygwin and ndk-r7 ? I appreciate if Some one could provide me better links/Solution to integrate FFPMEG for my Android Application.
I switched to ubuntu, now i am able to build it and got .so files. Could some one help me on how can i change ffmpeg.c file's main function and use it directly from jni to run ffmpeg commands.
Thanks in Advance.