Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
iFrameExtractor EXC_BAD_ACCESS
3 novembre 2013, par Destiny DawnWhen using the iFrameExtractor for iOS I have been getting the "EXC_BAD_ACCESS(code=1,address=0x8) error on this line:
- (AVPacket*)readPacket { if (_currentPacket.size > 0 || _inBuffer) return &_currentPacket; NSMutableData *packetData = [audioPacketQueue objectAtIndex:0]; _packet = [packetData mutableBytes]; // NSLog(@"got audio stream"); **if (_packet->dts != AV_NOPTS_VALUE) {** _packet->dts += av_rescale_q(0, AV_TIME_BASE_Q, _audioStream->time_base); } if (_packet->pts != AV_NOPTS_VALUE) { _packet->pts += av_rescale_q(0, AV_TIME_BASE_Q, _audioStream->time_base); } // NSLog(@"ready with audio"); [audioPacketQueueLock lock]; audioPacketQueueSize -= _packet->size; [audioPacketQueue removeObjectAtIndex:0]; [audioPacketQueueLock unlock]; _currentPacket = *(_packet); return &_currentPacket; }
-
Get frame rate of a video on Android
2 novembre 2013, par Gonzalo SoleraI would like to get the frame-rate of a video on Android. How could I achieve that?? I´m using ffmpeg statically in my app and I could invoke a command but I don´t know how to get the output... Any idea? Thanks!
-
Ffmpeg file not found
2 novembre 2013, par Andre Sanckeni have installed ffmpeg successfull on my Debain Squeeze. This is my structure.
httpdocs - video_convert - testvideo.flv test.php
In my php file i have the following code:
exec("ffmpeg -i video_convert/testvideo.flv -sameq -ar 22050 testmp4.mp4");
This is generating the file "testmp4.mp4". But the file has 0 Bytes. When i test it with ssh, it says "file not found".
The flv files are recorded with "sorensen and speex". When i type "ffmpeg -codecs" the speex is not in the list.
But when i convert the video file to jpg or png, the file is produced without errors.
Can someone help me?
Andre
-
How to create video with border in android
2 novembre 2013, par Dinesh RajWant to add border to video like this
i already tried using ffmpeg not working correctly
"ffmpeg -i input.avi -vf pad=w:h:x:y:black output.avi"
"w" is the width of your border, "h" is the height of your border, and "x" and "y" are the border's origin coordinates.
can anyone suggest the width,height,x and y value please
-
With ffmpeg's image to movie feature, is it possible to pass in frames over a period of time versus all at once ?
2 novembre 2013, par Zack YoshyaroFor the purpose of making a time lapse recording of desktop activity, it is possible so "stream" the frame list to ffmpeg over time, rather than all at once in the beginning.
Currently, it is a two step process.
save individual snapshots to disc
im = ImageGrab.grab()
im.save("frame_%s.jpg" % count, 'jpg')compile those snapshots with ffmpeg via
ffmpeg -r 1 -pattern_type glob -i '*.jpg' -c:v libx264 out.mp4
It would be nice if there were a way to merge the two steps so that I'm not flooding my hard drive with thousands of individual snapshots. Is it possible to do this?