Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
ffmpeg sound going out of sync with -concat
12 septembre 2011, par mushuI'm having a problem with the concat command of ffmpeg where the sound of the concatenated video goes out of synch. The effects of this seem to be even worse in VLC and Quicktime Player than Windows Media Player (to my suprise).
My code is: Where capturePaths is a python list of paths to various video files to be concatenated. All the files are avi.
concatStr = "" for path in capturePaths: concatStr += path + '|' concatStr = concatStr[:-1] os.system( ffmpeg + ''' -i concat:"''' + concatStr + '''" -sameq -r 24 -ar 48000 -y ''' + outputPath )
Any ideas, examples, solutions?
-
Reply of FFMPEG conversion with AudioRecord on Android
12 septembre 2011, par MatteoTaken this ffmpeg command :
ffmpeg -i filein -ac 1 -ar 11025 -f s16le
I have to record from the mic in Android a raw file of the same type that that command releases.
I am recording with AudioRecord and the following parameters :
Frequency 11025, CHANNEL_IN_MONO, ENCODING_PCM_16BIT
I get the data into a buffer of short, then I convert it into a buffer of ByteBuffer, with LITTLE_ENDIAN as order, shouldnt it be enough ?
Thank you.
-
General ffmpeg command for encoding all formats to FLV [migrated]
12 septembre 2011, par AdamI am creating a video sharing/tube site and I'm in need of a single good general purpose ffmpeg command to use to transcode any video that's uploaded by my users.
I'm surprised more people haven't published good examples of a good general ffmpeg command for converting to flv format. By general, I mean being able to specify an input file in any format (wmv, avi, webm, etc.) and produce an FLV file that has great quality.
I am looking for a single ffmpeg command that can:
- Produce great looking video for the web (no artifacts, maintain original quality etc.)
- But also reduce file size to make it web friendly
I realize these are competing requirements and I would consider video quality to be the priority when it comes to a tradeoff but at the same time, I know you can have great quality and still reduce the file size of the original file dramatically.
I would have used MP4 with H264 but the patent stuff scares me and I don't want to pay for that so I'm stuck with FLV.
-
What is the difference between ffmpeg -thread and ffmpeg-mt ?
11 septembre 2011, par Saptarshi BiswasPost
ffmpeg-mt
's merge withffmpeg
...March 21, 2011
Today FFmpeg-mt, the multithreaded decoding branch, has been merged into FFmpeg. This has been a long awaited merge, and we would like to thank Alexander Strange for his patience and hard work.
... what is to be expected of
ffmpeg -thread
usage? Is this an under-the-hood transition or areffmpeg
users supposed to move their code toffmpeg-mt
to leverage multi-cores? -
Getting an error when I use live555+ffmpeg to play rtsp (h.264 )
11 septembre 2011, par moonvanThis is the debug info .I am a beginner for this. Can you tell me what the error mean?
Sending request: OPTIONS rtsp://218.204.223.237:554/live/1/66251FC11353191F/e7ooqwcfbqjoo80j.sdp RTSP/1.0 CSeq: 1 User-Agent: LIVE555 Streaming Media v2010.04.09 Received OPTIONS response: RTSP/1.0 200 OK Server: PVSS/0.0.1 (Build/20100101; Platform/Win32; Darwin; ) Cseq: 1 Public: DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE, OPTIONS, ANNOUNCE, RECORD Sending request: DESCRIBE rtsp://218.204.223.237:554/live/1/66251FC11353191F/e7ooqwcfbqjoo80j.sdp RTSP/1.0 CSeq: 2 Accept: application/sdp User-Agent: LIVE555 Streaming Media v2010.04.09 Received DESCRIBE response: RTSP/1.0 200 OK Server: PVSS/0.0.1 (Build/20100101; Platform/Win32; Darwin; ) Cseq: 2 Content-length: 413 Date: Sun, 11 Sep 2011 13:41:27 GMT Expires: Sun, 11 Sep 2011 13:41:27 GMT Content-Type: application/sdp x-Accept-Retransmit: our-retransmit x-Accept-Dynamic-Rate: 1 Content-Base: rtsp://218.204.223.237:554/live/1/66251FC11353191F/e7ooqwcfbqjoo80j.sdp/ Need to read 413 extra bytes Read 413 extra bytes: v=0 o=- 1 1 IN IP4 0.0.0.0 s=RTSP Session i=Jabsco Stream(JCO-jy9757acx1eve7nm-a104aea23c1e17bbc776656f5069bbf7) c=IN IP4 218.204.223.237 t=0 0 a=range:npt=now- a=control:* m=video 0 RTP/AVP 96 b=AS:200 a=rtpmap:96 MP4V-ES/90000 a=fmtp:96 profile-level-id=1;config=000001b001000001b509000001010000012000844ea628582120a21f;decode_buf=115200 a=framerate:15 a=framesize:96 352-288 a=control:trackID=1 2011-09-11 21:41:28.344 rtsp[3568:ef03] getSDP: --> v=0 o=- 1 1 IN IP4 0.0.0.0 s=RTSP Session i=Jabsco Stream(JCO-jy9757acx1eve7nm-a104aea23c1e17bbc776656f5069bbf7) c=IN IP4 218.204.223.237 t=0 0 a=range:npt=now- a=control:* m=video 0 RTP/AVP 96 b=AS:200 a=rtpmap:96 MP4V-ES/90000 a=fmtp:96 profile-level-id=1;config=000001b001000001b509000001010000012000844ea628582120a21f;decode_buf=115200 a=framerate:15 a=framesize:96 352-288 a=control:trackID=1 Sending request: SETUP rtsp://218.204.223.237:554/live/1/66251FC11353191F/e7ooqwcfbqjoo80j.sdp/trackID=1 RTSP/1.0 CSeq: 3 Transport: RTP/AVP/TCP;unicast;interleaved=0-1 User-Agent: LIVE555 Streaming Media v2010.04.09 Received SETUP response: RTSP/1.0 200 OK Server: PVSS/0.0.1 (Build/20100101; Platform/Win32; Darwin; ) Cseq: 3 Session: 30185030182557 Date: Sun, 11 Sep 2011 13:41:27 GMT Expires: Sun, 11 Sep 2011 13:41:27 GMT Transport: RTP/AVP/TCP;unicast;interleaved=0-1 2011-09-11 21:41:28.495 rtsp[3568:ef03] RTP 2011-09-11 21:41:28.496 rtsp[3568:ef03] MP4V-ES 2011-09-11 21:41:28.497 rtsp[3568:ef03] video 2011-09-11 21:41:28.498 rtsp[3568:ef03] 0 2011-09-11 21:41:28.499 rtsp[3568:ef03] 0 Sending request: PLAY rtsp://218.204.223.237:554/live/1/66251FC11353191F/e7ooqwcfbqjoo80j.sdp/ RTSP/1.0 CSeq: 4 Session: 30185030182557 Range: npt=0.000- User-Agent: LIVE555 Streaming Media v2010.04.09 Received PLAY response: RTSP/1.0 200 OK Server: PVSS/0.0.1 (Build/20100101; Platform/Win32; Darwin; ) Cseq: 4 Session: 30185030182557 RTP-Info: url=rtsp://218.204.223.237:554/live/1/66251FC11353191F/e7ooqwcfbqjoo80j.sdp/trackID=1;seq=0;rtptime=0 2011-09-11 21:41:28.650 rtsp[3568:ef03] error: --> liveMedia4 2011-09-11 21:41:28.886 rtsp[3568:ef03] Packet size===>8782 [h264 @ 0x7859800]non-existing PPS 0 referenced [h264 @ 0x7859800]decode_slice_header error [h264 @ 0x7859800]no frame! 2011-09-11 21:41:28.886 rtsp[3568:ef03] Res value===>-1 2011-09-11 21:41:28.887 rtsp[3568:ef03] frame data===>107521264 2011-09-11 21:41:28.888 rtsp[3568:ef03] Failed to decode frame 2011-09-11 21:41:28.921 rtsp[3568:ef03] 2011-09-11 13:41:14 +0000 2011-09-11 21:41:28.922 rtsp[3568:ef03] Packet size===>1459 [h264 @ 0x688fc00]no frame! 2011-09-11 21:41:28.922 rtsp[3568:ef03] Res value===>-1 2011-09-11 21:41:28.923 rtsp[3568:ef03] frame data===>102427408 2011-09-11 21:41:28.923 rtsp[3568:ef03] Failed to decode frame 2011-09-11 21:41:28.951 rtsp[3568:ef03] 2011-09-11 13:41:14 +0000 2011-09-11 21:41:28.952 rtsp[3568:ef03] Packet size===>1258 2011-09-11 21:41:28.952 rtsp[3568:ef03] Res value===>-1 2011-09-11 21:41:28.953 rtsp[3568:ef03] frame data===>102426080 2011-09-11 21:41:28.953 rtsp[3568:ef03] Failed to decode frame 2011-09-11 21:41:28.976 rtsp[3568:ef03] 2011-09-11 13:41:14 +0000 2011-09-11 21:41:28.977 rtsp[3568:ef03] Packet size===>2731 Last message repeated 1 times [h264 @ 0x705ce00]no frame! 2011-09-11 21:41:28.977 rtsp[3568:ef03] Res value===>-1 2011-09-11 21:41:28.978 rtsp[3568:ef03] frame data===>105438976 2011-09-11 21:41:28.979 rtsp[3568:ef03] Failed to decode frame 2011-09-11 21:41:29.002 rtsp[3568:ef03] 2011-09-11 13:41:14 +0000 2011-09-11 21:41:29.012 rtsp[3568:ef03] Packet size===>8782 [h264 @ 0x705ce00]non-existing PPS 0 referenced [h264 @ 0x705ce00]decode_slice_header error [h264 @ 0x705ce00]no frame! 2011-09-11 21:41:29.013 rtsp[3568:ef03] Res value===>-1 2011-09-11 21:41:29.014 rtsp[3568:ef03] frame data===>105438976 2011-09-11 21:41:29.014 rtsp[3568:ef03] Failed to decode frame 2011-09-11 21:41:29.043 rtsp[3568:ef03] 2011-09-11 13:41:15 +0000 2011-09-11 21:41:29.044 rtsp[3568:ef03] Packet size===>1459 [h264 @ 0xb04f000]no frame! 2011-09-11 21:41:29.044 rtsp[3568:ef03] Res value===>-1 2011-09-11 21:41:29.045 rtsp[3568:ef03] frame data===>178793376 2011-09-11 21:41:29.045 rtsp[3568:ef03] Failed to decode frame 2011-09-11 21:41:29.072 rtsp[3568:ef03] 2011-09-11 13:41:15 +0000 2011-09-11 21:41:29.073 rtsp[3568:ef03] Packet size===>1258 [h264 @ 0x705ce00]no frame! 2011-09-11 21:41:29.074 rtsp[3568:ef03] Res value===>-1 2011-09-11 21:41:29.074 rtsp[3568:ef03] frame data===>105438976 2011-09-11 21:41:29.075 rtsp[3568:ef03] Failed to decode frame 2011-09-11 21:41:29.099 rtsp[3568:ef03] 2011-09-11 13:41:15 +0000 2011-09-11 21:41:29.100 rtsp[3568:ef03] Packet size===>2731 2011-09-11 21:41:29.101 rtsp[3568:ef03] Res value===>-1 2011-09-11 21:41:29.101 rtsp[3568:ef03] frame data===>105438976 2011-09-11 21:41:29.102 rtsp[3568:ef03] Failed to decode frame 2011-09-11 21:41:29.125 rtsp[3568:ef03] 2011-09-11 13:41:15 +0000 2011-09-11 21:41:29.126 rtsp[3568:ef03] Packet size===>1224 Last message repeated 1 times