From zhangweiwu at realss.com Wed Feb 1 02:10:21 2012 From: zhangweiwu at realss.com (Zhang Weiwu) Date: Wed, 01 Feb 2012 09:10:21 +0800 Subject: [FFmpeg-user] worth to bother? create a set of test video clips for mobile devices In-Reply-To: <4F2823B1.2060800@fischer.name> References: <4F27A206.9020602@realss.com> <4F2823B1.2060800@fischer.name> Message-ID: <4F2890FD.3050002@realss.com> ? 2012?02?01? 01:24, Markus Fischer ??: > I'd love to see such information. Thanks for informing. I'll do this tiny project shortly later. > One thing I realized: quality is subjective; True, but -qscale is a bit objective and a starting point:) > Btw, I wouldn't be much concerned about any Google PR things unless your > primary intention is to make money off of it. > No, not for money. It's an investment of personal time for the public benefit. But wouldn't any investment strive for efficiency? But you are right to not to concern it much, it's not necessary to start it with marketing, and there is always a chance to move the information elsewhere after published. Best regards. From kennethjjgibson at gmail.com Wed Feb 1 02:46:23 2012 From: kennethjjgibson at gmail.com (killkenny64) Date: Tue, 31 Jan 2012 17:46:23 -0800 (PST) Subject: [FFmpeg-user] Alter YUV values of AVFrames Message-ID: <1328060783365-4346567.post@n4.nabble.com> I'm trying to apply an effect to a video by altering the YUV values using FFMpeg programmatically in C. Let's say I want to increase the luminescence of each pixel of each frame by 100. I tried just altering the first frame of a video stream. I decoded the frame, added 100 to each Y value in the AVFrame->data[0], encoded the frame again and saved it into the video. However when I play the video back, it is not only the first frame that has been altered, but the first 30 frames. Why are the other frames effected when I only change the AVFrame->data of the first frame? I tried again by changing all the Y, U and V values in AVFrame->data to 0 for only the first frame. When I play back the video, it starts off completely green like expected, after the first frame the video stays green for 30 frames. I can see the other frames start to come slowly through the green for 30 frames and then suddenly the green disappears and the video plays as normal. Why is it not just the first frame that is green? My method is as follows: Video Stream | | *(Get a frame)* | v AVPacket (encoded data) | | *(Decode the frame)* | v AVFrame (raw data) --------------------------------------------------> AVFrame (raw data) *(Edit AVFrame->data values)* | | *(encode frame)* | V AVPacket (encoded data) | | *(save frame)* | V Video Stream Am I doing something obviously wrong? How can I change just one frame without effecting the others? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Alter-YUV-values-of-AVFrames-tp4346567p4346567.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From zhangweiwu at realss.com Wed Feb 1 03:24:47 2012 From: zhangweiwu at realss.com (Zhang Weiwu) Date: Wed, 01 Feb 2012 10:24:47 +0800 Subject: [FFmpeg-user] Can H263+ be in .3gp container? In-Reply-To: References: <4F266A8D.40302@realss.com> <4F268663.9060905@realss.com> <4F26A650.3020508@fischer.name> <4F274C55.1090207@realss.com> <4F27C955.3010709@realss.com> Message-ID: <4F28A26F.8020208@realss.com> ? 2012?01?31? 19:39, Carl Eugen Hoyos ??: > Or did you only mean that FFmpeg does contain an encoder for H.263+ with no > connection to which formats it can be muxed into? Yes, it is this case. Your words serve as a good footnote of the table. From liranz at audish.com Wed Feb 1 11:15:14 2012 From: liranz at audish.com (Liran Zvibel) Date: Wed, 1 Feb 2012 12:15:14 +0200 Subject: [FFmpeg-user] Choosing between experimental libavcodec aac or faac encoders Message-ID: Hello, I use ffmpeg as part of automated and batch jobs processes converting video files to mp4 with H.264 and AAC. Quality and processing times are important to me, though I currently do not wish to use AAC+. My random tests show that the libavcodec aac encoder that comes with ffmpeg is more time efficient, and has about the same quality. Around the 0.7-0.8 releases of ffmpeg (up until 0.8.4, I think) I had several occasions that on my random tests ffmpeg with libavcodec would get stuck (which for my automated and batch jobs is even worse than a crash). I chose to use libfaac back then, and did not get back to it until now I'm upgrading to ffmpeg 0.10. I redid these random checks now, and was not able to have it get stuck on the files, and again it was consistently quicker than libfaac. I noted that I still must pass "-strict experimental" to use that coded. I would like to know which codec most of you are using, and whether you feel that the libavcodec one is stable enough to be usable in production environments. Thank you very much! Liran Zvibel From cehoyos at ag.or.at Wed Feb 1 11:30:16 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 1 Feb 2012 10:30:16 +0000 (UTC) Subject: [FFmpeg-user] Choosing between experimental libavcodec aac or faac encoders References: Message-ID: Liran Zvibel audish.com> writes: > Around the 0.7-0.8 releases of ffmpeg (up until 0.8.4, I think) I had > several occasions that on my random tests ffmpeg with libavcodec would get > stuck (which for my automated and batch jobs is even worse than a crash). Did you report those problems? If not, a report (of such a serious bug) for an old version that clearly explains the problems are not reproducible with current git master is very welcome! Carl Eugen From cehoyos at ag.or.at Wed Feb 1 11:31:40 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 1 Feb 2012 10:31:40 +0000 (UTC) Subject: [FFmpeg-user] Alter YUV values of AVFrames References: <1328060783365-4346567.post@n4.nabble.com> Message-ID: killkenny64 gmail.com> writes: > I tried just altering the first frame of a video stream. I decoded the > frame, added 100 to each Y value in the AVFrame->data[0], encoded the frame > again and saved it into the video. > > However when I play the video back, it is not only the first frame that has > been altered, but the first 30 frames. Sounds as if the codec the original video was encoded with used a gop-size of 30. Try rawvideo or an intra-only codec (or try forcing a gop-size of 1). Carl Eugen From cehoyos at ag.or.at Wed Feb 1 11:37:26 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 1 Feb 2012 10:37:26 +0000 (UTC) Subject: [FFmpeg-user] swopping channels in a 5.1 layout References: <20120129135830.GA14634@leki> <20120129154358.GB14634@leki> Message-ID: Youri Feenstra gmail.com> writes: > Sorry, but I'm using Windows. When I use "amovie=C:\file.mkv" I get > several errors refering to "C:file.mkv" (without the backslashes). Shouldn't you use two backslashes? c:\\file.mkv (I am just guessing.) Carl Eugen From liranz at audish.com Wed Feb 1 12:33:23 2012 From: liranz at audish.com (Liran Zvibel) Date: Wed, 1 Feb 2012 13:33:23 +0200 Subject: [FFmpeg-user] Choosing between experimental libavcodec aac or faac encoders In-Reply-To: References: Message-ID: <5502A4E8-CDC0-4295-94B7-9474D40519AD@audish.com> On 1 Feb 2012, at 12:30, Carl Eugen Hoyos wrote: > >> Around the 0.7-0.8 releases of ffmpeg (up until 0.8.4, I think) I had >> several occasions that on my random tests ffmpeg with libavcodec would get >> stuck (which for my automated and batch jobs is even worse than a crash). > > Did you report those problems? I did not file a bug report. I can try to recreate that environment, but it's not going to be easy. My question is about the current state, though, of 0.10 -- Which AAC codec people use? The libfaac or the "experimental" libavcodec. AFAIK, AAC is the current "mainstream" acodec on the internet, and I would like to understand what the recommended coded is. If I did not have to add "-strict -experimental" I would pick the ffmpeg implementation, and this is the reason I'm asking. Regards, Liran. From ubitux at gmail.com Wed Feb 1 13:20:26 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Wed, 1 Feb 2012 13:20:26 +0100 Subject: [FFmpeg-user] swopping channels in a 5.1 layout In-Reply-To: References: <20120129135830.GA14634@leki> <20120129154358.GB14634@leki> Message-ID: <20120201122026.GZ18321@leki> On Wed, Feb 01, 2012 at 10:37:26AM +0000, Carl Eugen Hoyos wrote: > Youri Feenstra gmail.com> writes: > > > Sorry, but I'm using Windows. When I use "amovie=C:\file.mkv" I get > > several errors refering to "C:file.mkv" (without the backslashes). > > Shouldn't you use two backslashes? > c:\\file.mkv > (I am just guessing.) > Actually, I think ':' has to be escaped; it's an argument separator (you can amovie=file.mkv:si=2 to select stream index 2 for example). -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From tim.nicholson at bbc.co.uk Wed Feb 1 13:31:36 2012 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Wed, 01 Feb 2012 12:31:36 +0000 Subject: [FFmpeg-user] adding -ss and -t loses the audio stream on the output In-Reply-To: References: <4F1EE0B4.5090905@bbc.co.uk> Message-ID: <4F2930A8.40509@bbc.co.uk> On 24/01/2012 20:05, Carl Eugen Hoyos wrote: > Tim Nicholson bbc.co.uk> writes: > >> So I have a command line to make two versions of a file that works >> perfectly until I add in "-ss time -t duration". Then although >> everything seems to work as normal, and the created files are the right >> duration they lack the audio stream > > Is this also reproducible with a shorter command line (without filters)? > Are external libraries (x264, faac) necessary to reproduce the problem? > I get the same result when changing the ouput to dvvideo/pcm16 and with only the lavi filter for doing the audio mapping. If I remove the lavi filter I get the audio so it seems to be that which is causing the problem. -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From ubitux at gmail.com Wed Feb 1 13:35:37 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Wed, 1 Feb 2012 13:35:37 +0100 Subject: [FFmpeg-user] adding -ss and -t loses the audio stream on the output In-Reply-To: <4F2930A8.40509@bbc.co.uk> References: <4F1EE0B4.5090905@bbc.co.uk> <4F2930A8.40509@bbc.co.uk> Message-ID: <20120201123537.GC18321@leki> On Wed, Feb 01, 2012 at 12:31:36PM +0000, Tim Nicholson wrote: > On 24/01/2012 20:05, Carl Eugen Hoyos wrote: > >Tim Nicholson bbc.co.uk> writes: > > > >>So I have a command line to make two versions of a file that works > >>perfectly until I add in "-ss time -t duration". Then although > >>everything seems to work as normal, and the created files are the right > >>duration they lack the audio stream > > > >Is this also reproducible with a shorter command line (without filters)? > >Are external libraries (x264, faac) necessary to reproduce the problem? > > > > I get the same result when changing the ouput to dvvideo/pcm16 and > with only the lavi filter for doing the audio mapping. > > If I remove the lavi filter I get the audio so it seems to be that > which is causing the problem. > I have some pending patches to fix this issue in some filters. I'll push them in a day or two. [...] -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From de.techno at gmail.com Wed Feb 1 08:13:44 2012 From: de.techno at gmail.com (dE .) Date: Wed, 01 Feb 2012 12:43:44 +0530 Subject: [FFmpeg-user] worth to bother? create a set of test video clips for mobile devices In-Reply-To: <4F27A206.9020602@realss.com> References: <4F27A206.9020602@realss.com> Message-ID: <4F28E628.1000704@gmail.com> On 01/31/12 13:40, Zhang Weiwu wrote: > Hello. I've been testing a few mobile phone to figure out for each phone > with what parameter ffmpeg can produce highest-quality playable video. > The result will be a table of mobile phones and ffmpeg parameters. > > I just think, since I wish to produce the test clips anyway, why not > publish all test clips on a website so that others can download them and > use them to aid their testing on their mobile phones? I can imagine > needing to produce a matrix of clips at different qscale, framerate and > bitrate. > > So my questions: > > 1. Did someone already do this? Then I can just grab the result. > 2. If nobody did it before, publishing my little work on my personal > homepage cannot help as many as could by publishing it on a website > with higher PR (Google Page-rank), so which site can I ask for > permission to add this content (offer others to download these > clips)? ffmpeg homepage? A wiki? a developer's site? > > > Best regards > Zhang Weiwu > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user delogics.blogspot.com -- a small contribution. From practical experience, almost all mobile devices support mpeg4 with most modern devices using vtag as xvid. Audio varies, but Samsung plays aac (maybe they bought the license). I'll also experiment with my Pioneer DVD player. From tim.nicholson at bbc.co.uk Wed Feb 1 14:39:38 2012 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Wed, 01 Feb 2012 13:39:38 +0000 Subject: [FFmpeg-user] Forcing interlaced handling Message-ID: <4F29409A.2030309@bbc.co.uk> I have some V210 files and in both .mov and .mxf wrapper do not seem to have any interlace flag settings, although I know them to be -tff. I wish to convert them to dvvideo, however the fieldorder=bff filter only works if the source material is flagged as tff, which it is not. I have tried various things, including using fieldorder=tff, fieldorder=bff so that the first filter does nothing but sets the flag, so that the second filter does what is required, but this failed. I have also tried using -top before the input file, but this too did nothing, as did using a scale filter with scale=iw:ih:1. Does anybody have an idea how to force tff interlace handling? -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From mike.scheutzow at alcatel-lucent.com Wed Feb 1 14:59:19 2012 From: mike.scheutzow at alcatel-lucent.com (Mike Scheutzow) Date: Wed, 01 Feb 2012 08:59:19 -0500 Subject: [FFmpeg-user] Alter YUV values of AVFrames In-Reply-To: <1328060783365-4346567.post@n4.nabble.com> References: <1328060783365-4346567.post@n4.nabble.com> Message-ID: <4F294537.2020501@alcatel-lucent.com> killkenny64 wrote: > I'm trying to apply an effect to a video by altering the YUV values using > FFMpeg programmatically in C. > > ... > > Why are the other frames effected when I only change the AVFrame->data of > the first frame? > > I tried again by changing all the Y, U and V values in AVFrame->data to 0 > for only the first frame. > You must treat the AVFrame as read-only. AVFrame->data often points to the actual reference frame memory used internally by the decoder. You must make a deep copy of AVFrame->data before modifying it, and pass that to the next step. Mike Scheutzow From tim.nicholson at bbc.co.uk Wed Feb 1 16:17:34 2012 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Wed, 01 Feb 2012 15:17:34 +0000 Subject: [FFmpeg-user] adding -ss and -t loses the audio stream on the output In-Reply-To: <20120201123537.GC18321@leki> References: <4F1EE0B4.5090905@bbc.co.uk> <4F2930A8.40509@bbc.co.uk> <20120201123537.GC18321@leki> Message-ID: <4F29578E.6020303@bbc.co.uk> On 01/02/2012 12:35, Cl?ment B?sch wrote: > On Wed, Feb 01, 2012 at 12:31:36PM +0000, Tim Nicholson wrote: >> On 24/01/2012 20:05, Carl Eugen Hoyos wrote: >>> Tim Nicholson bbc.co.uk> writes: >>> >>>> So I have a command line to make two versions of a file that works >>>> perfectly until I add in "-ss time -t duration". Then although >>>> everything seems to work as normal, and the created files are the right >>>> duration they lack the audio stream >>> >>> Is this also reproducible with a shorter command line (without filters)? >>> Are external libraries (x264, faac) necessary to reproduce the problem? >>> >> >> I get the same result when changing the ouput to dvvideo/pcm16 and >> with only the lavi filter for doing the audio mapping. >> >> If I remove the lavi filter I get the audio so it seems to be that >> which is causing the problem. >> > > I have some pending patches to fix this issue in some filters. I'll push > them in a day or two. Thanks Cl?ment, I saw you proposals after making my original post here and wondered if they might be related. -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From jnashicq at googlemail.com Wed Feb 1 11:53:11 2012 From: jnashicq at googlemail.com (Anton Litvinov) Date: Wed, 1 Feb 2012 13:53:11 +0300 Subject: [FFmpeg-user] [anomaly] double CPU consumption when encoding from online source Message-ID: Hi Profiler report reveals that it takes _exactly_ twice as much (x2) cpu-time to encode video from webcam compared to file (copy of original stream from webcam). When encoding from ip-camera: perf record -o perf.data1 ffmpeg -t 60 -f mjpeg -r 25 -i ' http://192.168.1.32/cgi/mjpg/mjpg.cgi' -r 25 -b 500k -vcodec flv -f flv -y output.flv # Events: 23K cycles # # Overhead Samples Command Shared Object Symbol # ........ .......... ............. ..................... ......................................... # 30.10% 7250 ffmpeg libavcodec.so.53.6.0 [.] 0x416b43 23.66% 5476 ffmpeg libswscale.so.2.0.0 [.] 0x169e4 10.86% 2512 ffmpeg libavcodec.so.53.6.0 [.] ff_mjpeg_decode_sos 9.69% 2219 ffmpeg libc-2.13.so [.] 0x820e4 4.41% 1014 ffmpeg libavcodec.so.53.6.0 [.] ff_estimate_p_frame_motion 4.15% 951 ffmpeg [kernel.kallsyms] [k] 0xffffffff81031dba 3.52% 428 ffmpeg libavcodec.so.53.6.0 [.] 0x461685 2.80% 635 ffmpeg libavcodec.so.53.6.0 [.] ff_fdct_sse2 2.05% 464 ffmpeg libavcodec.so.53.6.0 [.] ff_epzs_motion_search 1.63% 372 ffmpeg libavcodec.so.53.6.0 [.] h263_encode_mb 1.13% 257 ffmpeg libavcodec.so.53.6.0 [.] MPV_decode_mb 0.98% 227 ffmpeg libavcodec.so.53.6.0 [.] ff_simple_idct_put_mmx 0.76% 175 ffmpeg libavcodec.so.53.6.0 [.] ff_put_pixels_clamped_mmx 0.57% 135 ffmpeg libavcodec.so.53.6.0 [.] ff_mjpeg_find_marker 0.42% 100 ffmpeg libavcodec.so.53.6.0 [.] 0xc380b 0.42% 85 ffmpeg libavcodec.so.53.6.0 [.] 0x279c83 0.27% 35 ffmpeg libavcodec.so.53.6.0 [.] 0x305e94 0.25% 55 ffmpeg libavcodec.so.53.6.0 [.] ff_h263_update_motion_val 0.19% 43 ffmpeg libavcodec.so.53.6.0 [.] init_vlc_sparse 0.18% 44 ffmpeg libavcodec.so.53.6.0 [.] ff_get_best_fcode 0.12% 27 ffmpeg libavcodec.so.53.6.0 [.] ff_add_pixels_clamped_mmx 0.12% 28 ffmpeg libavformat.so.53.3.0 [.] 0xa4841 0.10% 25 ffmpeg libavcodec.so.53.6.0 [.] MPV_encode_picture 0.10% 21 ffmpeg ffmpeg [.] 0x4ddc 0.08% 5 ffmpeg ld-2.13.so [.] 0x5683 0.07% 18 ffmpeg libavcodec.so.53.6.0 [.] ff_fix_long_mvs 0.07% 13 ffmpeg libavcodec.so.53.6.0 [.] ff_h263_encode_motion 0.06% 10 ffmpeg libavcodec.so.53.6.0 [.] 0x2893f5 0.06% 13 ffmpeg libavcodec.so.53.6.0 [.] ff_simple_idct_add_mmx 0.05% 11 ffmpeg libavutil.so.51.7.0 [.] av_image_copy_plane 0.05% 12 ffmpeg libavcodec.so.53.6.0 [.] ff_mjpeg_decode_dht 0.05% 10 ffmpeg libavfilter.so.2.4.0 [.] avfilter_poll_frame When encoding from file (dump of the same MJPEG stream from camera): ffmpeg -t 60 -f mjpeg -i 'http://192.168.1.32/cgi/mjpg/mjpg.cgi' -vcodec copy -y output.avi perf record -o perf.data2 ffmpeg -vstats -i output.avi -rtbufsize 5000000 -r 25 -b 500k -vcodec flv -f flv -y output2.flv # Events: 14K cycles # # Overhead Samples Command Shared Object Symbol # ........ .......... ............. ..................... .............................. # 25.63% 3581 ffmpeg libavcodec.so.53.6.0 [.] 0x45dc5c 24.40% 1632 ffmpeg libswscale.so.2.0.0 [.] 0x25519 10.58% 1485 ffmpeg libavcodec.so.53.6.0 [.] ff_mjpeg_decode_sos 9.91% 1400 ffmpeg [kernel.kallsyms] [k] 0xffffffff81031dba 7.94% 1120 ffmpeg libc-2.13.so [.] 0x820e4 5.20% 447 ffmpeg libavcodec.so.53.6.0 [.] 0x3061f5 4.04% 565 ffmpeg libavcodec.so.53.6.0 [.] ff_estimate_p_frame_motion 2.57% 361 ffmpeg libavcodec.so.53.6.0 [.] ff_fdct_sse2 1.79% 252 ffmpeg libavcodec.so.53.6.0 [.] ff_epzs_motion_search 1.65% 232 ffmpeg libavcodec.so.53.6.0 [.] h263_encode_mb 1.32% 184 ffmpeg libavcodec.so.53.6.0 [.] ff_simple_idct_put_mmx 1.03% 145 ffmpeg libavcodec.so.53.6.0 [.] MPV_decode_mb 0.76% 106 ffmpeg libavcodec.so.53.6.0 [.] ff_put_pixels_clamped_mmx 0.57% 80 ffmpeg libavcodec.so.53.6.0 [.] ff_mjpeg_find_marker 0.29% 41 ffmpeg libavcodec.so.53.6.0 [.] 0x416af3 0.21% 29 ffmpeg libavcodec.so.53.6.0 [.] init_vlc_sparse 0.17% 24 ffmpeg libavcodec.so.53.6.0 [.] MPV_encode_picture 0.17% 24 ffmpeg libavcodec.so.53.6.0 [.] ff_h263_update_motion_val 0.16% 23 ffmpeg libavcodec.so.53.6.0 [.] ff_get_best_fcode 0.11% 16 ffmpeg ffmpeg [.] 0x4f01 0.11% 15 ffmpeg libavformat.so.53.3.0 [.] 0x3d298 0.10% 14 ffmpeg libavutil.so.51.7.0 [.] av_image_copy_plane 0.10% 14 ffmpeg libavcodec.so.53.6.0 [.] ff_add_pixels_clamped_mmx 0.07% 10 ffmpeg libavcodec.so.53.6.0 [.] ff_fix_long_mvs 0.06% 8 ffmpeg libavcodec.so.53.6.0 [.] h263_pred_motion 0.05% 5 ffmpeg ld-2.13.so [.] 0x8e6f 0.05% 7 ffmpeg libc-2.13.so [.] cfree 0.04% 6 ffmpeg libavcodec.so.53.6.0 [.] ff_mjpeg_build_huffman_codes 0.04% 6 ffmpeg libavcodec.so.53.6.0 [.] ff_init_block_index 0.04% 5 ffmpeg libm-2.13.so [.] 0xe79e 0.04% 5 ffmpeg libavcodec.so.53.6.0 [.] MPV_frame_end 0.04% 5 ffmpeg libavcodec.so.53.6.0 [.] ff_rate_estimate_qscale Pay attention to the column "samples". Surprisingly, but win32 build has no this anomaly and consumes allmost x2 less cpu when encoding from webcam (taking into account, that tasmgr shows cpu consumtion divided by number of cores). The resulting file are the same. I tried different versions, static linking, but it didn't help. ffmpeg version 0.7.3-4:0.7.3-0ubuntu0.11.10.1 Linux 3.0.0-15-generic #26-Ubuntu SMP Fri Jan 20 17:23:00 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux From lou at lrcd.com Wed Feb 1 20:28:56 2012 From: lou at lrcd.com (Lou) Date: Wed, 1 Feb 2012 10:28:56 -0900 Subject: [FFmpeg-user] Choosing between experimental libavcodec aac or faac encoders In-Reply-To: References: Message-ID: <20120201102856.5fcbc76a@lrcd.com> On Wed, 1 Feb 2012 12:15:14 +0200 Liran Zvibel wrote: > Hello, > > I use ffmpeg as part of automated and batch jobs processes converting video > files to mp4 with H.264 and AAC. > Quality and processing times are important to me, though I currently do not > wish to use AAC+. > > My random tests show that the libavcodec aac encoder that comes with ffmpeg > is more time efficient, and has about the same quality. > > Around the 0.7-0.8 releases of ffmpeg (up until 0.8.4, I think) I had > several occasions that on my random tests ffmpeg with libavcodec would get > stuck (which for my automated and batch jobs is even worse than a crash). > > I chose to use libfaac back then, and did not get back to it until now I'm > upgrading to ffmpeg 0.10. > > I redid these random checks now, and was not able to have it get stuck on > the files, and again it was consistently quicker than libfaac. > > I noted that I still must pass "-strict experimental" to use that coded. > > I would like to know which codec most of you are using, and whether you > feel that the libavcodec one is stable enough to be usable in production > environments. > > Thank you very much! > > Liran Zvibel FFmpeg also supports another AAC encoder: libvo-aacenc. http://sourceforge.net/projects/opencore-amr/files/vo-aacenc/ However I believe it can only use -b:a (-ab) and not -q:a (-aq), but I may be wrong. It requires "--enable-libvo-aacenc --enable-version3" in your configure. From kennethjjgibson at gmail.com Wed Feb 1 22:43:24 2012 From: kennethjjgibson at gmail.com (killkenny64) Date: Wed, 1 Feb 2012 13:43:24 -0800 (PST) Subject: [FFmpeg-user] Alter YUV values of AVFrames In-Reply-To: References: <1328060783365-4346567.post@n4.nabble.com> Message-ID: <1328132604319-4349568.post@n4.nabble.com> Carl Eugen Hoyos wrote > > Sounds as if the codec the original video was encoded with used a gop-size > of 30. > > Try rawvideo or an intra-only codec (or try forcing a gop-size of 1). > Thanks for the help, this make a lot of sense. The original video has a GOP size of 12, and that was what it was being re-encoded as. I tried changing to AVCodecContext->gop_size to 0 which, according to the documentation, is for intra_only. (I tried setting it to 1 also as you suggested) This hasn't worked, although there may be other things contributing to the problem. However, I am a little skeptical that setting the gop_size to 0 is doing what I thought it would. Shouldn't this make all the frames I-frames, with no B or P frames? I ask because I encoded 3 videos of different gop_sizes and the sizes of the resulting videos were: gop_size = 30 video size = 4.3mb gop_size = 15 video size = 4.4mb gop_size = 0 video size = 4.6mb I would have imaged that the size of the video with gop_size=0 would be a lot bigger, but this might have something to do with the fact that the video was only very short. So my questions are: Is there another setting that is required to make all the frames I-frames? Is this possible? Is there any way of seeing what type of frames (I, P, B) an encoded video has? Cheers -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Alter-YUV-values-of-AVFrames-tp4346567p4349568.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From mark at richardsemail.net Wed Feb 1 23:03:58 2012 From: mark at richardsemail.net (Mark Richards) Date: Wed, 1 Feb 2012 15:03:58 -0700 Subject: [FFmpeg-user] XDCAM HD 1080i60 35mb/s VBR Message-ID: <017501cce12d$66fdd1b0$34f97510$@RichardsEmail.Net> Is it possible to create a "XDCAM HD 1080i60 35mb/s VBR" file using ffmpeg ? If so, what would the parameters be? I've tried searching on line for an answer, but can't find one. Thanks, Mark From cacealma2000 at yahoo.com Wed Feb 1 23:21:52 2012 From: cacealma2000 at yahoo.com (catalin) Date: Wed, 1 Feb 2012 14:21:52 -0800 (PST) Subject: [FFmpeg-user] How can I find the keyframe information for a mp4 video ? Message-ID: <1328134912052-4349687.post@n4.nabble.com> Hello, I need a way to test if ffmpeg inserted the keyframes at the interval requested using the -g parameter. The problem is no matter what value I use for -g in my encoding command, even -g 1, the flash player I use acts the same when I try to jump to different parts of the video, it will jump a few seconds before or after the moment I actually choose. And I need a way to track down what is wrong. So how can I find the keyframe information for a mp4 video ? Can be ffmpeg or another program.. Thank you, Catalin -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-can-I-find-the-keyframe-information-for-a-mp4-video-tp4349687p4349687.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From michael.rampe at gmail.com Wed Feb 1 23:37:08 2012 From: michael.rampe at gmail.com (FFmichael) Date: Wed, 1 Feb 2012 14:37:08 -0800 (PST) Subject: [FFmpeg-user] How can I find the keyframe information for a mp4 video ? In-Reply-To: <1328134912052-4349687.post@n4.nabble.com> References: <1328134912052-4349687.post@n4.nabble.com> Message-ID: <1328135828353-4349754.post@n4.nabble.com> catalin wrote > > > So how can I find the keyframe information for a mp4 video ? Can be ffmpeg > or another program.. > > FFprobe (which is included with FFmpeg). Use the recently added to trunk "show frames" option. FFmichael -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-can-I-find-the-keyframe-information-for-a-mp4-video-tp4349687p4349754.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From kennethjjgibson at gmail.com Wed Feb 1 23:37:28 2012 From: kennethjjgibson at gmail.com (killkenny64) Date: Wed, 1 Feb 2012 14:37:28 -0800 (PST) Subject: [FFmpeg-user] Alter YUV values of AVFrames In-Reply-To: <4F294537.2020501@alcatel-lucent.com> References: <1328060783365-4346567.post@n4.nabble.com> <4F294537.2020501@alcatel-lucent.com> Message-ID: <1328135848920-4349757.post@n4.nabble.com> Mike Scheutzow-3 wrote > > You must treat the AVFrame as read-only. AVFrame->data often points to > the actual reference frame memory used internally by the decoder. > > You must make a deep copy of AVFrame->data before modifying it, and pass > that to the next step. > Thanks for the help, I can see now how problems could arise by changing the AVFrame->data. Is there any chance you could give me a hint or two or point me toward some help on making a deep copy of the AVFrame->data? I'm not a big C person so I'm swimming in the deep end here. Thanks =) -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Alter-YUV-values-of-AVFrames-tp4346567p4349757.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From liranz at audish.com Wed Feb 1 23:41:59 2012 From: liranz at audish.com (Liran Zvibel) Date: Thu, 2 Feb 2012 00:41:59 +0200 Subject: [FFmpeg-user] Choosing between experimental libavcodec aac or faac encoders In-Reply-To: <20120201102856.5fcbc76a@lrcd.com> References: <20120201102856.5fcbc76a@lrcd.com> Message-ID: On 1 Feb 2012, at 21:28, Lou wrote: > > FFmpeg also supports another AAC encoder: libvo-aacenc. > http://sourceforge.net/projects/opencore-amr/files/vo-aacenc/ > So do you RECOMMEND the libvo-aacenc over libfaac or the livavcodec aac? Which one of the three is the "common practice"? Thanks, Liran From cehoyos at ag.or.at Wed Feb 1 23:57:57 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 1 Feb 2012 22:57:57 +0000 (UTC) Subject: [FFmpeg-user] Choosing between experimental libavcodec aac or faac encoders References: <20120201102856.5fcbc76a@lrcd.com> Message-ID: Liran Zvibel audish.com> writes: > > FFmpeg also supports another AAC encoder: libvo-aacenc. > > http://sourceforge.net/projects/opencore-amr/files/vo-aacenc/ > > > So do you RECOMMEND the libvo-aacenc over libfaac or the livavcodec aac? > > Which one of the three is the "common practice"? That mostly depends on your needs (including your license restrictions, i.e. if you want to distribute FFmpeg binaries). Native and libfaac more or less support multichannel, libvo-aacenc and native are free software. There is a forth aac encoder, libaacplus. Carl Eugen From cehoyos at ag.or.at Thu Feb 2 00:03:17 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 1 Feb 2012 23:03:17 +0000 (UTC) Subject: [FFmpeg-user] [anomaly] double CPU consumption when encoding from online source References: Message-ID: Anton Litvinov googlemail.com> writes: > ffmpeg version 0.7.3-4:0.7.3-0ubuntu0.11.10.1 This is an intentionally broken version of FFmpeg with many regressions, some of them security relevant. It is therefore unsupported, see http://ffmpeg.org/download.html for supported versions. Carl Eugen From michael.rampe at gmail.com Thu Feb 2 00:07:31 2012 From: michael.rampe at gmail.com (FFmichael) Date: Wed, 1 Feb 2012 15:07:31 -0800 (PST) Subject: [FFmpeg-user] cellauto example Message-ID: <1328137651424-4349849.post@n4.nabble.com> I am trying to experiment with the new cellauto filer but am having trouble getting a usable filter chain. Do I need a nullsink or testsrc or something else to enable it to work? Does anyone have an example of a working full command line for cellauto generation? FFmichael -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/cellauto-example-tp4349849p4349849.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From 103730258b at gmail.com Thu Feb 2 00:10:41 2012 From: 103730258b at gmail.com (maujhsn) Date: Wed, 1 Feb 2012 15:10:41 -0800 Subject: [FFmpeg-user] Use of the timestamp command! Message-ID: Can someone produce the "timestamp" command in ffmpeg to include date & time! Please just give i.e with output.avi The manuals version is to confusing! From ubitux at gmail.com Thu Feb 2 00:24:41 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 2 Feb 2012 00:24:41 +0100 Subject: [FFmpeg-user] cellauto example In-Reply-To: <1328137651424-4349849.post@n4.nabble.com> References: <1328137651424-4349849.post@n4.nabble.com> Message-ID: <20120201232441.GI27039@leki> On Wed, Feb 01, 2012 at 03:07:31PM -0800, FFmichael wrote: > I am trying to experiment with the new cellauto filer but am having trouble > getting a usable filter chain. > Do I need a nullsink or testsrc or something else to enable it to work? > > Does anyone have an example of a working full command line for cellauto > generation? > ffplay -f lavfi cellauto=f=/etc/hosts ? [...] -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From lou at lrcd.com Thu Feb 2 00:30:07 2012 From: lou at lrcd.com (Lou) Date: Wed, 1 Feb 2012 14:30:07 -0900 Subject: [FFmpeg-user] [anomaly] double CPU consumption when encoding from online source In-Reply-To: References: Message-ID: <20120201143007.588020db@lrcd.com> On Wed, 1 Feb 2012 23:03:17 +0000 (UTC) Carl Eugen Hoyos wrote: > Anton Litvinov googlemail.com> writes: > > > ffmpeg version 0.7.3-4:0.7.3-0ubuntu0.11.10.1 > > This is an intentionally broken version of FFmpeg with many regressions, > some of them security relevant. > It is therefore unsupported, see http://ffmpeg.org/download.html for > supported versions. > > Carl Eugen Additionally, for instructions suitable for your distro see: HOWTO: Install and use the latest FFmpeg and x264 on Ubuntu http://ubuntuforums.org/showthread.php?t=786095 From stefasab at gmail.com Thu Feb 2 00:34:46 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Thu, 2 Feb 2012 00:34:46 +0100 Subject: [FFmpeg-user] Forcing interlaced handling In-Reply-To: <4F29409A.2030309@bbc.co.uk> References: <4F29409A.2030309@bbc.co.uk> Message-ID: <20120201233445.GC5397@arborea> On date Wednesday 2012-02-01 13:39:38 +0000, Tim Nicholson encoded: > I have some V210 files and in both .mov and .mxf wrapper do not seem > to have any interlace flag settings, although I know them to be > -tff. > > I wish to convert them to dvvideo, however the fieldorder=bff filter > only works if the source material is flagged as tff, which it is > not. > > I have tried various things, including using fieldorder=tff, > fieldorder=bff so that the first filter does nothing but sets the > flag, so that the second filter does what is required, but this > failed. > > I have also tried using -top before the input file, but this too did > nothing, as did using a scale filter with scale=iw:ih:1. Looks like -top is ignored on input. > > Does anybody have an idea how to force tff interlace handling? Uhm... try with the attached patch and tell if it works for you. -- ffmpeg-user random tip #11 One minute of video silence with ffmpeg: ffmpeg -t 60 -s qcif -f rawvideo -pix_fmt rgb24 -r 25 -i /dev/zero \ -y silence.mpeg -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-lavfi-add-setfield-filter.patch Type: text/x-diff Size: 4858 bytes Desc: not available URL: From michael.rampe at gmail.com Thu Feb 2 00:40:39 2012 From: michael.rampe at gmail.com (FFmichael) Date: Wed, 1 Feb 2012 15:40:39 -0800 (PST) Subject: [FFmpeg-user] cellauto example In-Reply-To: <20120201232441.GI27039@leki> References: <1328137651424-4349849.post@n4.nabble.com> <20120201232441.GI27039@leki> Message-ID: <1328139639446-4349950.post@n4.nabble.com> Cl?ment B?sch wrote > > On Wed, Feb 01, 2012 at 03:07:31PM -0800, FFmichael wrote: >> I am trying to experiment with the new cellauto filer but am having >> trouble >> getting a usable filter chain. >> Do I need a nullsink or testsrc or something else to enable it to work? >> >> Does anyone have an example of a working full command line for cellauto >> generation? >> > > ffplay -f lavfi cellauto=f=/etc/hosts ? > > Thanks but I meant FFmpeg not FFplay to generate a file not necessarily on the fly.... FFmichael -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/cellauto-example-tp4349849p4349950.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ubitux at gmail.com Thu Feb 2 00:45:15 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 2 Feb 2012 00:45:15 +0100 Subject: [FFmpeg-user] cellauto example In-Reply-To: <1328139639446-4349950.post@n4.nabble.com> References: <1328137651424-4349849.post@n4.nabble.com> <20120201232441.GI27039@leki> <1328139639446-4349950.post@n4.nabble.com> Message-ID: <20120201234515.GJ27039@leki> On Wed, Feb 01, 2012 at 03:40:39PM -0800, FFmichael wrote: > > Cl?ment B?sch wrote > > > > On Wed, Feb 01, 2012 at 03:07:31PM -0800, FFmichael wrote: > >> I am trying to experiment with the new cellauto filer but am having > >> trouble > >> getting a usable filter chain. > >> Do I need a nullsink or testsrc or something else to enable it to work? > >> > >> Does anyone have an example of a working full command line for cellauto > >> generation? > >> > > > > ffplay -f lavfi cellauto=f=/etc/hosts ? > > > > > > Thanks but I meant FFmpeg not FFplay to generate a file not necessarily on > the fly.... > Then ffmpeg -f lavfi -i cellauto=f=/etc/hosts -t 10 out.mpg maybe? [...] -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From michael.rampe at gmail.com Thu Feb 2 00:51:55 2012 From: michael.rampe at gmail.com (FFmichael) Date: Wed, 1 Feb 2012 15:51:55 -0800 (PST) Subject: [FFmpeg-user] cellauto example In-Reply-To: <20120201234515.GJ27039@leki> References: <1328137651424-4349849.post@n4.nabble.com> <20120201232441.GI27039@leki> <1328139639446-4349950.post@n4.nabble.com> <20120201234515.GJ27039@leki> Message-ID: <1328140315032-4349986.post@n4.nabble.com> Cl?ment B?sch wrote > > On Wed, Feb 01, 2012 at 03:40:39PM -0800, FFmichael wrote: >> >> Cl?ment B?sch wrote >> > >> > On Wed, Feb 01, 2012 at 03:07:31PM -0800, FFmichael wrote: >> >> I am trying to experiment with the new cellauto filer but am having >> >> trouble >> >> getting a usable filter chain. >> >> Do I need a nullsink or testsrc or something else to enable it to >> work? >> >> >> >> Does anyone have an example of a working full command line for >> cellauto >> >> generation? >> >> >> > >> > ffplay -f lavfi cellauto=f=/etc/hosts ? >> > >> > >> >> Thanks but I meant FFmpeg not FFplay to generate a file not necessarily >> on >> the fly.... >> > > Then ffmpeg -f lavfi -i cellauto=f=/etc/hosts -t 10 out.mpg maybe? > > On the right track but "-f lavfi" causes failure..... ffmpeg version N-37402-gc673671 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 1 2012 08:15:40 with gcc 4.2.1 (Apple Inc. build 5664) configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --enable-nonfree --mandir=/opt/local/share/man --enable-shared --enable-pthreads --disable-indevs --enable-libfreetype --cc=/usr/bin/gcc-4.2 --arch=x86_64 libavutil 51. 36.100 / 51. 36.100 libavcodec 54. 0.102 / 54. 0.102 libavformat 54. 0.100 / 54. 0.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 Unknown input format: 'lavfi' FFmichael -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/cellauto-example-tp4349849p4349986.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From andy.ritchie at gmail.com Thu Feb 2 00:56:16 2012 From: andy.ritchie at gmail.com (Andy Ritchie) Date: Wed, 1 Feb 2012 15:56:16 -0800 Subject: [FFmpeg-user] second request - using "blackframe" filter to skip encoding of dark images Message-ID: I figured out how to list black frames during video encoding, but I don't know how I can drop those frames. Can ffmpeg do this using filters and/or expressions? This is my commandline (it lists blackframes during encoding) ffmpeg -f image2 -i vids\frame_%%d.jpg -vf blackframe=100:84 -an -r 10 -s svga -sameq vids\%1_%timestamp%.mp4 Thanks for your time, -- Andy From michael.rampe at gmail.com Thu Feb 2 01:09:51 2012 From: michael.rampe at gmail.com (FFmichael) Date: Wed, 1 Feb 2012 16:09:51 -0800 (PST) Subject: [FFmpeg-user] cellauto example In-Reply-To: <1328140315032-4349986.post@n4.nabble.com> References: <1328137651424-4349849.post@n4.nabble.com> <20120201232441.GI27039@leki> <1328139639446-4349950.post@n4.nabble.com> <20120201234515.GJ27039@leki> <1328140315032-4349986.post@n4.nabble.com> Message-ID: <1328141391131-4350042.post@n4.nabble.com> FFmichael wrote > > > Cl?ment B?sch wrote >> >> On Wed, Feb 01, 2012 at 03:40:39PM -0800, FFmichael wrote: >>> >>> Cl?ment B?sch wrote >>> > >>> > On Wed, Feb 01, 2012 at 03:07:31PM -0800, FFmichael wrote: >>> >> I am trying to experiment with the new cellauto filer but am having >>> >> trouble >>> >> getting a usable filter chain. >>> >> Do I need a nullsink or testsrc or something else to enable it to >>> work? >>> >> >>> >> Does anyone have an example of a working full command line for >>> cellauto >>> >> generation? >>> >> >>> > >>> > ffplay -f lavfi cellauto=f=/etc/hosts ? >>> > >>> > >>> >>> Thanks but I meant FFmpeg not FFplay to generate a file not necessarily >>> on >>> the fly.... >>> >> >> Then ffmpeg -f lavfi -i cellauto=f=/etc/hosts -t 10 out.mpg maybe? >> >> > > On the right track but "-f lavfi" causes failure..... > > This works as a workaround: ffmpeg -i fluid8.mov -vf "cellauto=p=@:s=1024x576:full=0:rule=18 [cell];[in][cell] overlay [out]" -c:v libx264 -b:v 1000k -y cellauto.mp4 but relies on the input video length/size etc..... FFmichael -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/cellauto-example-tp4349849p4350042.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ubitux at gmail.com Thu Feb 2 01:15:39 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 2 Feb 2012 01:15:39 +0100 Subject: [FFmpeg-user] cellauto example In-Reply-To: <1328140315032-4349986.post@n4.nabble.com> References: <1328137651424-4349849.post@n4.nabble.com> <20120201232441.GI27039@leki> <1328139639446-4349950.post@n4.nabble.com> <20120201234515.GJ27039@leki> <1328140315032-4349986.post@n4.nabble.com> Message-ID: <20120202001539.GA27947@leki> On Wed, Feb 01, 2012 at 03:51:55PM -0800, FFmichael wrote: > > Cl?ment B?sch wrote > > > > On Wed, Feb 01, 2012 at 03:40:39PM -0800, FFmichael wrote: > >> > >> Cl?ment B?sch wrote > >> > > >> > On Wed, Feb 01, 2012 at 03:07:31PM -0800, FFmichael wrote: > >> >> I am trying to experiment with the new cellauto filer but am having > >> >> trouble > >> >> getting a usable filter chain. > >> >> Do I need a nullsink or testsrc or something else to enable it to > >> work? > >> >> > >> >> Does anyone have an example of a working full command line for > >> cellauto > >> >> generation? > >> >> > >> > > >> > ffplay -f lavfi cellauto=f=/etc/hosts ? > >> > > >> > > >> > >> Thanks but I meant FFmpeg not FFplay to generate a file not necessarily > >> on > >> the fly.... > >> > > > > Then ffmpeg -f lavfi -i cellauto=f=/etc/hosts -t 10 out.mpg maybe? > > > > > > On the right track but "-f lavfi" causes failure..... > > ffmpeg version N-37402-gc673671 Copyright (c) 2000-2012 the FFmpeg > developers > built on Feb 1 2012 08:15:40 with gcc 4.2.1 (Apple Inc. build 5664) > configuration: --prefix=/opt/local --enable-gpl --enable-postproc > --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis > --enable-libtheora --enable-libdirac --enable-libschroedinger > --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx > --enable-libspeex --enable-nonfree --mandir=/opt/local/share/man > --enable-shared --enable-pthreads --disable-indevs --enable-libfreetype > --cc=/usr/bin/gcc-4.2 --arch=x86_64 > libavutil 51. 36.100 / 51. 36.100 > libavcodec 54. 0.102 / 54. 0.102 > libavformat 54. 0.100 / 54. 0.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 > Unknown input format: 'lavfi' > Remove --disable-indevs; lavfi is a filter "device". [...] -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From michael.rampe at gmail.com Thu Feb 2 01:24:25 2012 From: michael.rampe at gmail.com (FFmichael) Date: Wed, 1 Feb 2012 16:24:25 -0800 (PST) Subject: [FFmpeg-user] cellauto example In-Reply-To: <20120202001539.GA27947@leki> References: <1328137651424-4349849.post@n4.nabble.com> <20120201232441.GI27039@leki> <1328139639446-4349950.post@n4.nabble.com> <20120201234515.GJ27039@leki> <1328140315032-4349986.post@n4.nabble.com> <20120202001539.GA27947@leki> Message-ID: <1328142265647-4350063.post@n4.nabble.com> Cl?ment B?sch wrote > > >> On the right track but "-f lavfi" causes failure..... >> >> ffmpeg version N-37402-gc673671 Copyright (c) 2000-2012 the FFmpeg >> developers >> built on Feb 1 2012 08:15:40 with gcc 4.2.1 (Apple Inc. build 5664) >> configuration: --prefix=/opt/local --enable-gpl --enable-postproc >> --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis >> --enable-libtheora --enable-libdirac --enable-libschroedinger >> --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx >> --enable-libspeex --enable-nonfree --mandir=/opt/local/share/man >> --enable-shared --enable-pthreads --disable-indevs --enable-libfreetype >> --cc=/usr/bin/gcc-4.2 --arch=x86_64 >> libavutil 51. 36.100 / 51. 36.100 >> libavcodec 54. 0.102 / 54. 0.102 >> libavformat 54. 0.100 / 54. 0.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 >> Unknown input format: 'lavfi' >> > > Remove --disable-indevs; lavfi is a filter "device". > > Doh. Thanks a bunch. You learn something new every day;-) FFmichael -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/cellauto-example-tp4349849p4350063.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From kennethjjgibson at gmail.com Thu Feb 2 02:08:28 2012 From: kennethjjgibson at gmail.com (killkenny64) Date: Wed, 1 Feb 2012 17:08:28 -0800 (PST) Subject: [FFmpeg-user] Alter YUV values of AVFrames In-Reply-To: <1328135848920-4349757.post@n4.nabble.com> References: <1328060783365-4346567.post@n4.nabble.com> <4F294537.2020501@alcatel-lucent.com> <1328135848920-4349757.post@n4.nabble.com> Message-ID: <1328144908620-4350177.post@n4.nabble.com> killkenny64 wrote > > > Mike Scheutzow-3 wrote >> >> You must treat the AVFrame as read-only. AVFrame->data often points to >> the actual reference frame memory used internally by the decoder. >> >> You must make a deep copy of AVFrame->data before modifying it, and pass >> that to the next step. >> > > Thanks for the help, I can see now how problems could arise by changing > the AVFrame->data. > > Is there any chance you could give me a hint or two or point me toward > some help on making a deep copy of the AVFrame->data? I'm not a big C > person so I'm swimming in the deep end here. > > Thanks =) > I have now resolved this issue. The problem was as Mike Scheutzow-3 suggested. I was not treating the AVFrame->data as read only. I made a deep copy of the data, changed it, encoded it and I can now alter the individual frames. (Even with a gop_size of 12) Thank you so much for the help! I would still be on this problem otherwise! (Also learned a lot about GOP which helped me in my project as well so ty) -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Alter-YUV-values-of-AVFrames-tp4346567p4350177.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From zhangweiwu at realss.com Thu Feb 2 02:19:42 2012 From: zhangweiwu at realss.com (Zhang Weiwu) Date: Thu, 02 Feb 2012 09:19:42 +0800 Subject: [FFmpeg-user] worth to bother? create a set of test video clips for mobile devices In-Reply-To: <4F27A206.9020602@realss.com> References: <4F27A206.9020602@realss.com> Message-ID: <4F29E4AE.1010106@realss.com> ? 2012?01?31? 16:10, Zhang Weiwu ??: > I just think, since I wish to produce the test clips anyway, why not > publish all test clips on a website so that others can download them and > use them to aid their testing on their mobile phones? I can imagine > needing to produce a matrix of clips at different qscale, framerate and > bitrate. Hello all. As promised I made a script for this test, using ffmpeg from debian-multimedia.org instead of the shipped version. Consider the video variables, there are the following: 1. VBR or CBR 2. framerate 3. frame-size 4. quality (qscale) or bitrate Limited mpeg4 tests show the last variable is not relevant to device tests: I produced different clips at different -qscale and -b. It's hard to tell the CPU usage of one from other, they are all very similar. So I only produced matrix of the first 3 variables. It's very easy to use: just place it in some directory and run "make" there (only gnumake tested). The script produces 74 test clips in a new directory hierarchy like this: ./cases/ ./cases/VBS/ ./cases/CBS/ ./cases/VBS/15fps/ ./cases/VBS/25fps/ ./cases/CBS/15fps/ ./cases/CBS/25fps/ A tester should enter the 'cases' directory, play back one of the test video clip, and depend on the result, choose a sub-directory to enter, and play the clips there; depending on the result, choose a subdirectory to enter again, this 3-rd level has all the rest of test clips. Took me a whole fine day! It's the very first Makefile script I ever wrote, so I am sure it is far from perfect. But I'd like to have a chance of getting it commented before I further polish it so that I know I am on the right track. Thanks. The premature script is in the attachment, it worked for me. Zhang Weiwu -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Makefile URL: From kennethjjgibson at gmail.com Thu Feb 2 02:37:35 2012 From: kennethjjgibson at gmail.com (killkenny64) Date: Wed, 1 Feb 2012 17:37:35 -0800 (PST) Subject: [FFmpeg-user] Watermarking video in FFmpeg programmatically Message-ID: <1328146655150-4350226.post@n4.nabble.com> Hi, Does anyone know of any examples of watermarking a video programmatically with FFmpeg? Or is anyone able to point me in the right direction? Cheers, -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Watermarking-video-in-FFmpeg-programmatically-tp4350226p4350226.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ubitux at gmail.com Thu Feb 2 02:47:16 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 2 Feb 2012 02:47:16 +0100 Subject: [FFmpeg-user] Watermarking video in FFmpeg programmatically In-Reply-To: <1328146655150-4350226.post@n4.nabble.com> References: <1328146655150-4350226.post@n4.nabble.com> Message-ID: <20120202014716.GE27947@leki> On Wed, Feb 01, 2012 at 05:37:35PM -0800, killkenny64 wrote: > Hi, > > Does anyone know of any examples of watermarking a video programmatically > with FFmpeg? > Or is anyone able to point me in the right direction? > Check doc/examples/filtering.c, it's an example of libavfilter usage with filter_descr="scale=78:24" as filter. [...] -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From deron at pagestream.org Thu Feb 2 06:19:06 2012 From: deron at pagestream.org (Deron) Date: Wed, 01 Feb 2012 22:19:06 -0700 Subject: [FFmpeg-user] Best lossless In-Reply-To: <4F27AD2B.5000503@gmail.com> References: <4F26BC5D.2000303@pagestream.org> <4F27AD2B.5000503@gmail.com> Message-ID: <4F2A1CCA.8090401@pagestream.org> On 1/31/12 1:58 AM, dE . wrote: > On 01/30/12 21:20, Deron wrote: >> What is the best lossless encoding method ffmpeg supports for >> 720p/59.94fps? By best, I mean fewest problems playing and highest >> compression ratio. (I know, that is still hard to measure). Someone >> mentioned jpeg2000 to me (lossless mode of course), but I see little >> mention of it anywhere (not just within ffmpeg). >> >> Thanks, >> >> Deron > x264. It's virtually the best in everyway -- it's the fastest, it also > has a lossless mode; but not sure about reliability of playback. Thanks for the suggestion! I noticed that the presets (fast/max etc) are no longer in the preset contrary to advice from others. Does anyone know the command line for best compression using x264 lossless, or where the presets might have gone? Deron From jnashicq at googlemail.com Thu Feb 2 06:41:33 2012 From: jnashicq at googlemail.com (Anton Litvinov) Date: Thu, 2 Feb 2012 08:41:33 +0300 Subject: [FFmpeg-user] [anomaly] double CPU consumption when encoding from online source In-Reply-To: References: Message-ID: Tried ffmpeg version git-2012-01-30-e149215 Results are the same. 2012/2/2 Carl Eugen Hoyos > Anton Litvinov googlemail.com> writes: > > > ffmpeg version 0.7.3-4:0.7.3-0ubuntu0.11.10.1 > > This is an intentionally broken version of FFmpeg with many regressions, > some of them security relevant. > It is therefore unsupported, see http://ffmpeg.org/download.html for > supported versions. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From zhangweiwu at realss.com Thu Feb 2 07:02:43 2012 From: zhangweiwu at realss.com (Zhang Weiwu) Date: Thu, 02 Feb 2012 14:02:43 +0800 Subject: [FFmpeg-user] worth to bother? create a set of test video clips for mobile devices In-Reply-To: <4F28E628.1000704@gmail.com> References: <4F27A206.9020602@realss.com> <4F28E628.1000704@gmail.com> Message-ID: <4F2A2703.1030300@realss.com> ? 2012?02?01? 15:13, dE . ??: > delogics.blogspot.com -- a small contribution. > Thanks a lot! It's indeed very helpful. Emm. I think perhaps together we could do a tiny little project out of the things we've done. Did you use any script to auto-generate the test files? I guess you didn't, otherwise you would have mentioned. Did you try my tiny piece of test file generator? From lou at lrcd.com Thu Feb 2 09:31:40 2012 From: lou at lrcd.com (Lou) Date: Wed, 1 Feb 2012 23:31:40 -0900 Subject: [FFmpeg-user] Best lossless In-Reply-To: <4F2A1CCA.8090401@pagestream.org> References: <4F26BC5D.2000303@pagestream.org> <4F27AD2B.5000503@gmail.com> <4F2A1CCA.8090401@pagestream.org> Message-ID: <20120201233140.0145176d@lrcd.com> On Wed, 01 Feb 2012 22:19:06 -0700 Deron wrote: > On 1/31/12 1:58 AM, dE . wrote: > > On 01/30/12 21:20, Deron wrote: > >> What is the best lossless encoding method ffmpeg supports for > >> 720p/59.94fps? By best, I mean fewest problems playing and highest > >> compression ratio. (I know, that is still hard to measure). Someone > >> mentioned jpeg2000 to me (lossless mode of course), but I see little > >> mention of it anywhere (not just within ffmpeg). > >> > >> Thanks, > >> > >> Deron > > x264. It's virtually the best in everyway -- it's the fastest, it also > > has a lossless mode; but not sure about reliability of playback. > > Thanks for the suggestion! > > I noticed that the presets (fast/max etc) are no longer in the preset > contrary to advice from others. Does anyone know the command line for > best compression using x264 lossless, or where the presets might have gone? > > Deron The presets are still available, but via libx264 and not through text files that roughly emulated the presets. For lossless: ffmpeg -i input -c:v libx264 -preset veryslow -crf 0 output or ffmpeg -i input -c:v libx264 -preset veryslow -qp 0 output It doesn't matter if you use crf or qp unless you are using 10-bit x264. I'm not sure if the crf value for 10-bit x264 would be different to achieve lossless, but I assume -qp 0 should give you lossless regardless of 8-bit vs 10-bit. From jnashicq at googlemail.com Thu Feb 2 11:59:20 2012 From: jnashicq at googlemail.com (Anton Litvinov) Date: Thu, 2 Feb 2012 14:59:20 +0400 Subject: [FFmpeg-user] [anomaly] double CPU consumption when encoding from online source In-Reply-To: References: Message-ID: Tried ffmpeg from Debian stable, Centos. Issue is still there. 2012/2/2 Anton Litvinov > Tried > ffmpeg version git-2012-01-30-e149215 > Results are the same. > > > > 2012/2/2 Carl Eugen Hoyos > >> Anton Litvinov googlemail.com> writes: >> >> > ffmpeg version 0.7.3-4:0.7.3-0ubuntu0.11.10.1 >> >> This is an intentionally broken version of FFmpeg with many regressions, >> some of them security relevant. >> It is therefore unsupported, see http://ffmpeg.org/download.html for >> supported versions. >> >> Carl Eugen >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > From verem at m1stereo.tv Thu Feb 2 12:06:52 2012 From: verem at m1stereo.tv (Maksym Veremeyenko) Date: Thu, 02 Feb 2012 13:06:52 +0200 Subject: [FFmpeg-user] YUV with alpha channel Message-ID: <4F2A6E4C.9060207@m1stereo.tv> Hi, has anybody success with encoding video from RGB with alpha channel (rgba) into YUV with alpha channel ("AYUV" or "AVUI") with ffmpeg? -- ________________________________________ Maksym Veremeyenko From cehoyos at ag.or.at Thu Feb 2 14:10:50 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 2 Feb 2012 13:10:50 +0000 (UTC) Subject: [FFmpeg-user] YUV with alpha channel References: <4F2A6E4C.9060207@m1stereo.tv> Message-ID: Maksym Veremeyenko m1stereo.tv> writes: > has anybody success with encoding video from RGB with alpha channel > (rgba) into YUV with alpha channel This works fine so far. > ("AYUV" or "AVUI") with ffmpeg? I can probably implement this if you can provide samples and tell me which software supports it. (WMP?) I did not find any reference to "AVUI". Carl Eugen From verem at m1stereo.tv Thu Feb 2 14:23:02 2012 From: verem at m1stereo.tv (Maksym Veremeyenko) Date: Thu, 02 Feb 2012 15:23:02 +0200 Subject: [FFmpeg-user] YUV with alpha channel In-Reply-To: References: <4F2A6E4C.9060207@m1stereo.tv> Message-ID: <4F2A8E36.4010006@m1stereo.tv> 02.02.12 15:10, Carl Eugen Hoyos ???????(??): > Maksym Veremeyenko m1stereo.tv> writes: > >> has anybody success with encoding video from RGB with alpha channel >> (rgba) into YUV with alpha channel > > This works fine so far. could you give me any hint how to convert *rgba* video file into *yuv+alpha* format? > >> ("AYUV" or "AVUI") with ffmpeg? > > I can probably implement this if you can provide samples and tell me > which software supports it. (WMP?) > > I did not find any reference to "AVUI". -- ________________________________________ Maksym Veremeyenko From verem at m1stereo.tv Thu Feb 2 14:24:25 2012 From: verem at m1stereo.tv (Maksym Veremeyenko) Date: Thu, 02 Feb 2012 15:24:25 +0200 Subject: [FFmpeg-user] YUV with alpha channel In-Reply-To: References: <4F2A6E4C.9060207@m1stereo.tv> Message-ID: <4F2A8E89.8040703@m1stereo.tv> 02.02.12 15:10, Carl Eugen Hoyos ???????(??): [...] > I did not find any reference to "AVUI". avformat/isom.c: [...] 74 { CODEC_ID_RAWVIDEO, MKTAG('A', 'V', 'U', 'I') }, /* YUV with alpha-channel (AVID Uncompressed) */ [...] -- ________________________________________ Maksym Veremeyenko From ubitux at gmail.com Thu Feb 2 14:57:12 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Thu, 2 Feb 2012 14:57:12 +0100 Subject: [FFmpeg-user] adding -ss and -t loses the audio stream on the output In-Reply-To: <4F29578E.6020303@bbc.co.uk> References: <4F1EE0B4.5090905@bbc.co.uk> <4F2930A8.40509@bbc.co.uk> <20120201123537.GC18321@leki> <4F29578E.6020303@bbc.co.uk> Message-ID: <20120202135712.GF29335@leki> On Wed, Feb 01, 2012 at 03:17:34PM +0000, Tim Nicholson wrote: > On 01/02/2012 12:35, Cl?ment B?sch wrote: > >On Wed, Feb 01, 2012 at 12:31:36PM +0000, Tim Nicholson wrote: > >>On 24/01/2012 20:05, Carl Eugen Hoyos wrote: > >>>Tim Nicholson bbc.co.uk> writes: > >>> > >>>>So I have a command line to make two versions of a file that works > >>>>perfectly until I add in "-ss time -t duration". Then although > >>>>everything seems to work as normal, and the created files are the right > >>>>duration they lack the audio stream > >>> > >>>Is this also reproducible with a shorter command line (without filters)? > >>>Are external libraries (x264, faac) necessary to reproduce the problem? > >>> > >> > >>I get the same result when changing the ouput to dvvideo/pcm16 and > >>with only the lavi filter for doing the audio mapping. > >> > >>If I remove the lavi filter I get the audio so it seems to be that > >>which is causing the problem. > >> > > > >I have some pending patches to fix this issue in some filters. I'll push > >them in a day or two. > > Thanks Cl?ment, I saw you proposals after making my original post > here and wondered if they might be related. > The patches are now upstream; feel free to raise any regressions or remaining bugs (maybe some other filters are affected). -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From maurice at cmdrkey.com Thu Feb 2 15:16:27 2012 From: maurice at cmdrkey.com (Maurice Randall) Date: Thu, 02 Feb 2012 09:16:27 -0500 (EST) Subject: [FFmpeg-user] Mailing list character sets In-Reply-To: <20120202014716.GE27947@leki> Message-ID: This doesn't pertain to FFMPEG itself, but rather to the mailing list. I run my own email server using Exim4 and I've done a lot of development work on the server setup over the past 10 years and it serves me well. It blocks a great deal of spam. I get maybe one spam per week. This morning, I received a notice from the mailing list that goes like this: "Your membership in the mailing list ffmpeg-user has been disabled due to excessive bounces The last bounce received from you was dated 02-Feb-2012." My server blocked a particular email from the mailing list because it uses an odd character set. Checking the character set is one of the items my server looks at. Email to a mailing list that is in English shouldn't be using an odd character set. When I say odd, I mean odd to an English speaking person or an English related mailing list. I"m sure the character set is not odd to the originator of the email. I checked the reject logs and found the entry where the FFMPEG email was rejected. This is the character set from the email: charset="koi8-u"; This is a Ukranian character set. Now, maybe plain ASCII or UTF-8 or something more normal was used in the body of the email, but the header of the email identified it otherwise and so my server rejected the email. The email would be acceptable if received in a Ukranian speaking country. I will add some code that exempts the FFMPEG mailing list from the character set test. Am I not right that only certain character sets should be used when sending email to this list? -Maurice From h.reindl at thelounge.net Thu Feb 2 15:24:17 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Thu, 02 Feb 2012 15:24:17 +0100 Subject: [FFmpeg-user] Mailing list character sets In-Reply-To: References: Message-ID: <4F2A9C91.5050102@thelounge.net> Am 02.02.2012 15:16, schrieb Maurice Randall: > Am I not right that only certain character sets should be used when sending > email to this list? no, you are NOT right because it is not your decision nor the one of the mailing-list admins to tell people which charset they configure and your server setup is simply broken! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From maurice at cmdrkey.com Thu Feb 2 15:42:07 2012 From: maurice at cmdrkey.com (Maurice Randall) Date: Thu, 02 Feb 2012 09:42:07 -0500 (EST) Subject: [FFmpeg-user] Mailing list character sets In-Reply-To: <4F2A9C91.5050102@thelounge.net> Message-ID: <4b16646f-122c-487b-80d4-77df59b598ca@webmail> > no, you are NOT right because it is not your decision nor the one > of the mailing-list admins to tell people which charset they > configure and your server setup is simply broken! I understand this mailing list is world-wide, but shouldn't it be using a universal character set? After all, aren't all the messages in English? My server setup is not broken. I agree, it would be broken if the same setup was used in certain countries and by other people, but it is not broken for me. I've made an adjustment so that different character sets used in this mailing list aren't rejected any longer. But emails from other sources will be rejected if they do not comply with what my server expects. Example: If someone were to send a message in Chinese to this list, there would be many people who would not be able to read it. No need to make a big fuss over this particular thread. I simply wanted to point out something that I was wondering about. I've taken care of the issue at my end and it shouldn't be a problem any longer, at least not for me. -Maurice From h.reindl at thelounge.net Thu Feb 2 15:52:39 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Thu, 02 Feb 2012 15:52:39 +0100 Subject: [FFmpeg-user] Mailing list character sets In-Reply-To: <4b16646f-122c-487b-80d4-77df59b598ca@webmail> References: <4b16646f-122c-487b-80d4-77df59b598ca@webmail> Message-ID: <4F2AA337.7010507@thelounge.net> Am 02.02.2012 15:42, schrieb Maurice Randall: >> no, you are NOT right because it is not your decision nor the one >> of the mailing-list admins to tell people which charset they >> configure and your server setup is simply broken! > > I understand this mailing list is world-wide, but shouldn't it be using > a universal character set? After all, aren't all the messages in English? and YOU decide that everybody has to set the charset you wish in his mail-client as default because YOU are blocking messages? most charsets are containing the whole ASCII set for english and if somebody lives in a foreign country, writing a mail in english and maybe have a NAME with special chars what should the do - go out and get a new name because ASCII does not support his one and you are rejecting his mails? with this attitude you should consider NOT to maintain mailservers > My server setup is not broken. I agree, it would be broken if the same > setup was used in certain countries and by other people, but it is not > broken for me. if it would not be broken you would not have been written the first mail in this topic -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From maurice at cmdrkey.com Thu Feb 2 15:58:58 2012 From: maurice at cmdrkey.com (Maurice Randall) Date: Thu, 02 Feb 2012 09:58:58 -0500 (EST) Subject: [FFmpeg-user] Mailing list character sets In-Reply-To: <4F2AA337.7010507@thelounge.net> Message-ID: <4c1e1b2f-3f10-48f9-bf3d-311a80716512@webmail> > and YOU decide that everybody has to set the charset you wish > in his mail-client as default because YOU are blocking messages? You should go back and re-read my previous message. I don't decide for anyone but myself. I already said the problem is fixed for me. Just wondering if this is a problem for anyone else. Obviously not. So, no more problem. No need to get all upset over nothing. -Maurice From de.techno at gmail.com Thu Feb 2 10:31:45 2012 From: de.techno at gmail.com (dE .) Date: Thu, 02 Feb 2012 15:01:45 +0530 Subject: [FFmpeg-user] XDCAM HD 1080i60 35mb/s VBR In-Reply-To: <017501cce12d$66fdd1b0$34f97510$@RichardsEmail.Net> References: <017501cce12d$66fdd1b0$34f97510$@RichardsEmail.Net> Message-ID: <4F2A5801.4040305@gmail.com> On 02/02/12 03:33, Mark Richards wrote: > Is it possible to create a "XDCAM HD 1080i60 35mb/s VBR" file using ffmpeg ? > If so, what would the parameters be? I've tried searching on line for an > answer, but can't find one. > > Thanks, > Mark > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user No. Flaw lies in 35mb/s + VBR, both can't be used at once. Also 35mb/s is a VERY high value. From h.reindl at thelounge.net Thu Feb 2 16:02:38 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Thu, 02 Feb 2012 16:02:38 +0100 Subject: [FFmpeg-user] Mailing list character sets In-Reply-To: <4c1e1b2f-3f10-48f9-bf3d-311a80716512@webmail> References: <4c1e1b2f-3f10-48f9-bf3d-311a80716512@webmail> Message-ID: <4F2AA58E.2090105@thelounge.net> Am 02.02.2012 15:58, schrieb Maurice Randall: >> and YOU decide that everybody has to set the charset you wish >> in his mail-client as default because YOU are blocking messages? > > You should go back and re-read my previous message. no need for this you are thinking that if someone writes to a english mailing list he has to use a ascci-charset and not realizing that this is simply not possible because usually a sender has a name and nobody in this world will kill his name in his own mail client so the setting you decided to to is generally useless and one of the examples where amdins making changes without understanding what they are doing -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From maurice at cmdrkey.com Thu Feb 2 16:13:21 2012 From: maurice at cmdrkey.com (Maurice Randall) Date: Thu, 02 Feb 2012 10:13:21 -0500 (EST) Subject: [FFmpeg-user] Mailing list character sets In-Reply-To: <4F2AA58E.2090105@thelounge.net> Message-ID: > so the setting you decided to to is generally useless and one > of the examples where amdins making changes without understanding > what they are doing You are confused. I am not an admin. I don't control the FFMPEG mailing list. I am just a user like you. Mr. Harald, your emails use this: charset=ISO-8859-1 That is one of several character sets my server accepts. That is a very common ACSII based character set. Everyone everywhere will accept and be able to read your messages. Ramble on if you want. I've already fixed my problem. Holy crap. -Maurice From betonpfeiler at googlemail.com Thu Feb 2 16:17:58 2012 From: betonpfeiler at googlemail.com (betonpfeiler) Date: Thu, 02 Feb 2012 16:17:58 +0100 Subject: [FFmpeg-user] XDCAM HD 1080i60 35mb/s VBR In-Reply-To: <017501cce12d$66fdd1b0$34f97510$@RichardsEmail.Net> References: <017501cce12d$66fdd1b0$34f97510$@RichardsEmail.Net> Message-ID: <4F2AA926.4050101@googlemail.com> On 02/01/2012 11:03 PM, Mark Richards wrote: > Is it possible to create a "XDCAM HD 1080i60 35mb/s VBR" file using ffmpeg ? > If so, what would the parameters be? I've tried searching on line for an > answer, but can't find one. > > Thanks, > Mark > Hello, as far as I know, XDCAM is always CBR... You can use FFMBC for this, a possible command line could be: ffmpeg -i -pix_fmt yuv422p -vcodec mpeg2video -flags +ildct+ilme -top 1 -dc 10 -flags2 +ivlc+non_linear_q -qmin 1 -lmin '1*QP2LAMBDA' -vtag xd5c -rc_max_vbv_use 1 -rc_min_vbv_use 1 -b 50000k -minrate 50000k -maxrate 50000k -bufsize 36408333 -bf 2 -aspect 16:9 -acodec pcm_s16be -f mov output.mov -newaudio You have to change the Bitrate from 50000k to 35000k and maybe some mapping for the 8 audiochannels see here for more ffmbc stuff: http://www.itbroadcastanddigitalcinema.com/ffmpeg_howto.html#Encoding_XDCAM-HD-50_FCP Greetings, J From h.reindl at thelounge.net Thu Feb 2 16:24:10 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Thu, 02 Feb 2012 16:24:10 +0100 Subject: [FFmpeg-user] Mailing list character sets In-Reply-To: References: Message-ID: <4F2AAA9A.8010107@thelounge.net> Am 02.02.2012 16:13, schrieb Maurice Randall: >> so the setting you decided to to is generally useless and one >> of the examples where amdins making changes without understanding >> what they are doing > > You are confused. I am not an admin. I don't control the FFMPEG > mailing list. I am just a user like you. i am not confused i know that you are a user but ON YOUR side you are rejecting randomly > Mr. Harald, your emails use this: charset=ISO-8859-1 i know because i am from austria > That is one of several character sets my server accepts. That is a very > common ACSII based character set. Everyone everywhere will accept and be > able to read your messages. i know but this does not change the fact that there are people out there with names which can not be represented in ASCII/ISO-8859-1 and so your default configuration does reject them and it is a joke to think a international maliling list should be configured should do this too > Ramble on if you want. I've already fixed my problem. with one single expection this does not change a dumb configuration for all other senders -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From de.techno at gmail.com Thu Feb 2 11:04:01 2012 From: de.techno at gmail.com (dE .) Date: Thu, 02 Feb 2012 15:34:01 +0530 Subject: [FFmpeg-user] worth to bother? create a set of test video clips for mobile devices In-Reply-To: <4F2A2703.1030300@realss.com> References: <4F27A206.9020602@realss.com> <4F28E628.1000704@gmail.com> <4F2A2703.1030300@realss.com> Message-ID: <4F2A5F91.5080501@gmail.com> On 02/02/12 11:32, Zhang Weiwu wrote: > ? 2012?02?01? 15:13, dE . ??: >> delogics.blogspot.com -- a small contribution. >> > > Thanks a lot! It's indeed very helpful. Emm. I think perhaps together > we could do a tiny little project out of the things we've done. Did > you use any script to auto-generate the test files? I guess you > didn't, otherwise you would have mentioned. Did you try my tiny piece > of test file generator? > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user I think it'll be a better idea to upload test videos and pasting the ffmpeg command line and codec information in different formats instead of making scripts; this way a lot of casual users can also test. Also it'll be a good idea to upload winff presets -- that way absolute novice users will also be able to utilize it. Notice, I'm not a developer and running make results in - make make: Nothing to be done for `help'. I know what's a makefile but don't know how to make one. Although I can make a shell script doing the same. Also this thing now penetrates to more than the ffmpeg mailing list -- we have to make a wiki somewhere. Although I'm busy with my inbox (I get more than 100 mails per day in my inbox (this includes various Debian mailing lists and some from Gentoo forums and various bug reports)) but I'll try to contribute where I can, especially to make new entries in this list. From daverice at mac.com Thu Feb 2 18:25:24 2012 From: daverice at mac.com (Dave Rice) Date: Thu, 02 Feb 2012 12:25:24 -0500 Subject: [FFmpeg-user] pts issues when copying mpeg2video from VOB to QuickTime Message-ID: <18C9D815-2BF9-4AAF-B514-1787E485301F@mac.com> Hi, I'm trying to copy an mpeg2video stream from a VOB file into a QuickTime container. I'm using ffmpeg -i VTS_01_1.VOB -vcodec copy -an VTS.mov Here is my full output: http://pastebin.com/De3FbTzR As the process runs I get many "[mov @ 0x7fa18d005800] pts has no value" messages. Then the resulting QuickTime file has playback issue where the frames are presented out of order making the moving image appear to stutter and jerk. Any advice on getting a proper playback. For this process I need to use QuickTime as my target container. Also I'm using copy because the source mpeg2 contains captioning data that I need to have represented in the output file. Thanks much, Dave Rice From cehoyos at ag.or.at Thu Feb 2 18:49:36 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 2 Feb 2012 17:49:36 +0000 (UTC) Subject: [FFmpeg-user] pts issues when copying mpeg2video from VOB to QuickTime References: <18C9D815-2BF9-4AAF-B514-1787E485301F@mac.com> Message-ID: Dave Rice mac.com> writes: > ffmpeg -i VTS_01_1.VOB -vcodec copy -an VTS.mov > > Here is my full output: http://pastebin.com/De3FbTzR Please always post the complete, uncut console output here on the mailing list, external resources may disappear. Carl Eugen From daverice at mac.com Thu Feb 2 19:20:49 2012 From: daverice at mac.com (Dave Rice) Date: Thu, 02 Feb 2012 13:20:49 -0500 Subject: [FFmpeg-user] pts issues when copying mpeg2video from VOB to QuickTime In-Reply-To: References: <18C9D815-2BF9-4AAF-B514-1787E485301F@mac.com> Message-ID: On Feb 2, 2012, at 12:49 PM, Carl Eugen Hoyos wrote: > Dave Rice mac.com> writes: > >> ffmpeg -i VTS_01_1.VOB -vcodec copy -an VTS.mov >> >> Here is my full output: http://pastebin.com/De3FbTzR > > Please always post the complete, uncut console output here on the > mailing list, external resources may disappear. Good point. As suggested: ffmpeg -i VTS_01_1.VOB -vcodec copy -an VTS.mov ffmpeg version N-33159-gf247f4c Copyright (c) 2000-2012 the FFmpeg developers built on Jan 9 2012 10:20:06 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3) configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid libavutil 51. 34.100 / 51. 34.100 libavcodec 53. 54.100 / 53. 54.100 libavformat 53. 29.100 / 53. 29.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 58.100 / 2. 58.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 51. 2.100 / 51. 2.100 [mpeg @ 0x7fa18c03d800] max_analyze_duration 5000000 reached at 5005000 Input #0, mpeg, from 'VTS_01_1.VOB': Duration: 26:30:43.71, start: 0.280633, bitrate: 78 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 8503 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s Output #0, mov, to 'VTS.mov': Metadata: encoder : Lavf53.29.100 Stream #0:0: Video: mpeg2video (m2v1 / 0x3176326D), yuv420p, 720x480 [SAR 8:9 DAR 4:3], q=2-31, 8503 kb/s, 29.97 fps, 90k tbn, 90k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [mov @ 0x7fa18d005800] pts has no value Last message repeated 271 times pts has no value 0 q=-1.0 size= 15698kB time=00:00:31.43 bitrate=4091.4kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 333 times pts has no value1899 q=-1.0 size= 37646kB time=00:01:13.27 bitrate=4208.9kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 470 times pts has no value2392 q=-1.0 size= 68639kB time=00:02:12.26 bitrate=4251.2kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 387 times pts has no value2506 q=-1.0 size= 94258kB time=00:03:01.04 bitrate=4265.0kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 387 times pts has no value2555 q=-1.0 size= 119833kB time=00:03:49.76 bitrate=4272.6kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 308 times pts has no value2404 q=-1.0 size= 140303kB time=00:04:28.73 bitrate=4276.9kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 341 times pts has no value2385 q=-1.0 size= 162852kB time=00:05:11.71 bitrate=4279.9kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 404 times pts has no value2441 q=-1.0 size= 189467kB time=00:06:02.32 bitrate=4283.7kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 279 times pts has no value2387 q=-1.0 size= 207891kB time=00:06:37.46 bitrate=4284.8kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 342 times pts has no value2372 q=-1.0 size= 230444kB time=00:07:20.40 bitrate=4286.5kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 293 times pts has no value2357 q=-1.0 size= 249896kB time=00:07:57.44 bitrate=4287.7kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 267 times pts has no value2327 q=-1.0 size= 267545kB time=00:08:31.04 bitrate=4288.7kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 329 times pts has no value2334 q=-1.0 size= 289234kB time=00:09:12.38 bitrate=4289.4kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 366 times pts has no value2348 q=-1.0 size= 313369kB time=00:09:58.36 bitrate=4290.2kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 326 times pts has no value2340 q=-1.0 size= 334955kB time=00:10:39.43 bitrate=4291.2kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 324 times pts has no value2342 q=-1.0 size= 356384kB time=00:11:20.27 bitrate=4291.6kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 258 times pts has no value2300 q=-1.0 size= 373513kB time=00:11:52.84 bitrate=4292.4kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 97 times pts has no value2219 q=-1.0 size= 380052kB time=00:12:05.32 bitrate=4292.4kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 106 times pts has no value2135 q=-1.0 size= 387113kB time=00:12:18.77 bitrate=4292.6kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 293 times pts has no value2139 q=-1.0 size= 406507kB time=00:12:55.74 bitrate=4292.8kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 374 times pts has no value2161 q=-1.0 size= 431143kB time=00:13:42.65 bitrate=4293.3kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 620 times pts has no value2266 q=-1.0 size= 472102kB time=00:15:00.59 bitrate=4294.3kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 606 times pts has no value2358 q=-1.0 size= 512026kB time=00:16:16.64 bitrate=4294.8kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 527 times pts has no value2418 q=-1.0 size= 546823kB time=00:17:22.90 bitrate=4295.3kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 591 times pts has no value2493 q=-1.0 size= 585739kB time=00:18:37.04 bitrate=4295.6kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 637 times pts has no value2574 q=-1.0 size= 627748kB time=00:19:57.02 bitrate=4296.1kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 627 times pts has no value2648 q=-1.0 size= 669075kB time=00:21:15.70 bitrate=4296.5kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 632 times pts has no value2719 q=-1.0 size= 710736kB time=00:22:35.08 bitrate=4296.7kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 605 times pts has no value2777 q=-1.0 size= 750621kB time=00:23:51.02 bitrate=4297.0kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 606 times pts has no value2832 q=-1.0 size= 790562kB time=00:25:07.10 bitrate=4297.2kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 605 times pts has no value2883 q=-1.0 size= 830479kB time=00:26:23.14 bitrate=4297.3kbits/s [mov @ 0x7fa18d005800] pts has no value Last message repeated 584 times frame=49520 fps=2936 q=-1.0 Lsize= 861587kB time=00:27:32.25 bitrate=4271.8kbits/s video:861328kB audio:0kB global headers:0kB muxing overhead 0.030140% From forrie at gmail.com Thu Feb 2 00:52:17 2012 From: forrie at gmail.com (Forrest Aldrich) Date: Wed, 01 Feb 2012 18:52:17 -0500 Subject: [FFmpeg-user] configure error report Message-ID: <4F29D031.4070508@gmail.com> I'm working on a process to build ffmpeg from source, using the latest GIT code. This is on RHEL 5.7 x86_64: ERROR: dirac not found If you think configure made a mistake, make sure you are using the latest version from Git. If the latest version fails, report the problem to the ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.log" produced by configure as this will help solving the problem. I brought down the dirac codec and installed it in a standard location: # ls /usr/lib| grep dirac libdirac_decoder.a libdirac_decoder.la libdirac_decoder.so libdirac_decoder.so.0 libdirac_decoder.so.0.1.0 libdirac_encoder.a libdirac_encoder.la libdirac_encoder.so libdirac_encoder.so.0 libdirac_encoder.so.0.1.0 The config.log is attached (config.log.txt). I used an RPM spec file as a template to compile on RHEL5. This may not be correct, tho. Thanks. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: config.log.txt URL: From kennethjjgibson at gmail.com Thu Feb 2 23:18:39 2012 From: kennethjjgibson at gmail.com (killkenny64) Date: Thu, 2 Feb 2012 14:18:39 -0800 (PST) Subject: [FFmpeg-user] Get video duration programmatically for encoding Message-ID: <1328221119131-4353031.post@n4.nabble.com> Hi, I'm trying to figure out the duration of a video that I have decoded so that I can encode it correctly. I noticed some fields in AVFormatContext and AVStream that seem to be useful however I can't seem to make heads nor tails of the values I'm getting. If I look at inputFormatCtx->streams[videoStream]->duration, the value seems to change every time I run my program. I get values like 1220560, 505248, 1333280 etc. inputFormatCtx->streams[videoStream]->time_base is always 1, so I'm not sure how I can use it to calculate the duration. inputFormatCtx->duration at least stays the same each time I run my program but I get the value of 1336792 so I'm unsure how to use this value. I know that I can use the frame rate and the total number of frames to calculate the duration, but I dont know the total number of frames until I've iterated through them all. Any help would be much appreciated, thanks! =) -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Get-video-duration-programmatically-for-encoding-tp4353031p4353031.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From zhangweiwu at realss.com Fri Feb 3 03:02:31 2012 From: zhangweiwu at realss.com (Zhang Weiwu) Date: Fri, 03 Feb 2012 10:02:31 +0800 Subject: [FFmpeg-user] worth to bother? create a set of test video clips for mobile devices In-Reply-To: <4F2A5F91.5080501@gmail.com> References: <4F27A206.9020602@realss.com> <4F28E628.1000704@gmail.com> <4F2A2703.1030300@realss.com> <4F2A5F91.5080501@gmail.com> Message-ID: <4F2B4037.5000603@realss.com> ? 2012?02?02? 18:04, dE . ??: > > Notice, I'm not a developer and running make results in - > > make > make: Nothing to be done for `help'. Sorry, it's $ make test_suit But nevermind, I'll put the resulting clips on the Internet too, a few days later. Best. From lou at lrcd.com Fri Feb 3 03:59:09 2012 From: lou at lrcd.com (Lou) Date: Thu, 2 Feb 2012 17:59:09 -0900 Subject: [FFmpeg-user] configure error report In-Reply-To: <4F29D031.4070508@gmail.com> References: <4F29D031.4070508@gmail.com> Message-ID: <20120202175909.5b889d95@lrcd.com> On Wed, 01 Feb 2012 18:52:17 -0500 Forrest Aldrich wrote: > I'm working on a process to build ffmpeg from source, using the latest > GIT code. > > This is on RHEL 5.7 x86_64: > > ERROR: dirac not found I know this might be an obvious question, but do you even need Dirac support? I believe FFmpeg can decode Dirac natively, so I mean Dirac encoding specifically. > If you think configure made a mistake, make sure you are using the latest > version from Git. If the latest version fails, report the problem to the > ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net. > Include the log file "config.log" produced by configure as this will help > solving the problem. > > I brought down the dirac codec and installed it in a standard location: > > # ls /usr/lib| grep dirac > libdirac_decoder.a > libdirac_decoder.la > libdirac_decoder.so > libdirac_decoder.so.0 > libdirac_decoder.so.0.1.0 > libdirac_encoder.a > libdirac_encoder.la > libdirac_encoder.so > libdirac_encoder.so.0 > libdirac_encoder.so.0.1.0 > > The config.log is attached (config.log.txt). > > I used an RPM spec file as a template to compile on RHEL5. This may > not be correct, tho. This guide may be useful to you and will probably work for RHEL 5.7 although it does not include any libdirac/libschr?dinger specific instructions. Compile FFmpeg on CentOS 6.0 https://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide From stas.oskin at gmail.com Fri Feb 3 05:24:06 2012 From: stas.oskin at gmail.com (Stas Oskin) Date: Fri, 3 Feb 2012 06:24:06 +0200 Subject: [FFmpeg-user] Specifying librtmp params Message-ID: Hi. Did the syntax of specifying params for the librtmp have changed in recent releases? While following form worked for me perfectly in past: ffmpeg -i test.mp4 -fpre flash.ffpreset -s 240x160 -vcodec libx264 -b 64000 -f flv "tcp://127.0.0.1:6666 playpath=streamtest" Now it seems to ignore the playpath param. I do have the librtmp linked normally, as -protocols command lists all the expected librtmp protocols. Any idea? Thanks in advance! From bostjan.strojan at gmail.com Fri Feb 3 09:09:01 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Fri, 3 Feb 2012 09:09:01 +0100 Subject: [FFmpeg-user] crf mode in libvpx Message-ID: Hi, a. Playing around with freshly compiled ffmpeg + libvpx, but can't seem to figure out what would be the valid "quality based" encoding switch for libvpx? (crf/cq mode or however that is called) b. Is internal vorbis encoder usefull? (If yes, same question - how to enable quality based encoding?) Basically I need a valid cli example (additional plus if it makes a good default) :) thanks, b. From tim.nicholson at bbc.co.uk Fri Feb 3 10:03:32 2012 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Fri, 03 Feb 2012 09:03:32 +0000 Subject: [FFmpeg-user] Forcing interlaced handling In-Reply-To: <20120201233445.GC5397@arborea> References: <4F29409A.2030309@bbc.co.uk> <20120201233445.GC5397@arborea> Message-ID: <4F2BA2E4.3040109@bbc.co.uk> On 01/02/12 23:34, Stefano Sabatini wrote: > From feadf458f3dfda9d15ebcb5b1b065495f5ba68a9 Mon Sep 17 00:00:00 2001 > From: Stefano Sabatini > Date: Thu, 2 Feb 2012 00:31:00 +0100 > Subject: [PATCH] lavfi: add setfield filter Wow, thanks. Using:- ffmpeg -i V210-field.ref-1min.mov \ -vf "setfield=1, fieldorder=bff"\ -map 0:v -map 0:a \ -c:v dvvideo -pix_fmt yuv420p \ -c:a pcm_s16le -ar 48k \ -y ./V210-field.ref-1min-out.mov Worked on my short test sample. Now about to try on a longer mxf... -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From cehoyos at ag.or.at Fri Feb 3 10:55:34 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 Feb 2012 09:55:34 +0000 (UTC) Subject: [FFmpeg-user] crf mode in libvpx References: Message-ID: Bo?tjan Strojan gmail.com> writes: > a. Playing around with freshly compiled ffmpeg + libvpx, but can't > seem to figure out what would be the valid "quality based" encoding > switch for libvpx? (crf/cq mode or however that is called) What did you try? Doesn't -qscale / -vq work? (Command line and complete, uncut output missing.) > b. Is internal vorbis encoder usefull? There is no general agreement on this, but some famous large internet company is said to use it. > (If yes, same question - how to enable quality based encoding?) -aq is expected to work but takes unexpected (large) values iirc. Carl Eugen From cehoyos at ag.or.at Fri Feb 3 11:01:25 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 Feb 2012 10:01:25 +0000 (UTC) Subject: [FFmpeg-user] YUV with alpha channel References: <4F2A6E4C.9060207@m1stereo.tv> <4F2A8E89.8040703@m1stereo.tv> Message-ID: Maksym Veremeyenko m1stereo.tv> writes: > > I did not find any reference to "AVUI". > > avformat/isom.c: > [...] > 74 { CODEC_ID_RAWVIDEO, MKTAG('A', 'V', 'U', 'I') }, /* YUV with > alpha-channel (AVID Uncompressed) */ Fixed. Thank you for the report, Carl Eugen From cehoyos at ag.or.at Fri Feb 3 11:03:11 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 Feb 2012 10:03:11 +0000 (UTC) Subject: [FFmpeg-user] YUV with alpha channel References: <4F2A6E4C.9060207@m1stereo.tv> Message-ID: Maksym Veremeyenko m1stereo.tv> writes: > has anybody success with encoding video from RGB with alpha channel > (rgba) into YUV with alpha channel ("AYUV" or "AVUI") with ffmpeg? I have now implemented AYUV locally but I don't know how to test it. If anybody has a sample or can test it, please mail me / answer here. Carl Eugen From cehoyos at ag.or.at Fri Feb 3 11:07:30 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 Feb 2012 10:07:30 +0000 (UTC) Subject: [FFmpeg-user] pts issues when copying mpeg2video from VOB to QuickTime References: <18C9D815-2BF9-4AAF-B514-1787E485301F@mac.com> Message-ID: Dave Rice mac.com> writes: > ffmpeg -i VTS_01_1.VOB -vcodec copy -an VTS.mov Feel free to open a ticket if you can provide a sample. Carl Eugen From cehoyos at ag.or.at Fri Feb 3 11:06:33 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 Feb 2012 10:06:33 +0000 (UTC) Subject: [FFmpeg-user] Mailing list character sets References: <4F2A9C91.5050102@thelounge.net> <4b16646f-122c-487b-80d4-77df59b598ca@webmail> Message-ID: Maurice Randall cmdrkey.com> writes: > Example: If someone were to send a message in Chinese to this list, there > would be many people who would not be able to read it. So what you are saying is that people from China should not send their names to the list, is that correct? Please note that high-jacking threads is considered highly rude here, and in past was sufficient to get you banned from similar mailing lists. Carl Eugen From bartomas at gmail.com Fri Feb 3 11:15:37 2012 From: bartomas at gmail.com (bartom) Date: Fri, 3 Feb 2012 02:15:37 -0800 (PST) Subject: [FFmpeg-user] Burning timecode into mov file Message-ID: <1328264137614-4354188.post@n4.nabble.com> Hi, could anyone tell me the command in ffmpeg to burn the timecode track of a mov file onto the video? (I've installed the latest version of ffmpeg that has support for the ProRes codec). Thank you very much for any hint. Best wishes tomas bar -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Burning-timecode-into-mov-file-tp4354188p4354188.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Fri Feb 3 11:00:28 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 Feb 2012 10:00:28 +0000 (UTC) Subject: [FFmpeg-user] configure error report References: <4F29D031.4070508@gmail.com> Message-ID: Forrest Aldrich gmail.com> writes: > check_pkg_config dirac libdirac_decoder/dirac_parser.h > libdirac_encoder/dirac_encoder.h dirac_decoder_init dirac_encoder_init > ERROR: dirac not found (I believe) since dirac takes strange library configurations, pkg-config is needed to correctly detect it (which normally is very hardly avoided within FFmpeg's configure script). But before re-installing dirac, please ask yourself if you need it: It is known to be extra-slow, if you really need dirac encoding, use libschroedinger. Carl Eugen From ubitux at gmail.com Fri Feb 3 11:33:23 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Fri, 3 Feb 2012 11:33:23 +0100 Subject: [FFmpeg-user] Burning timecode into mov file In-Reply-To: <1328264137614-4354188.post@n4.nabble.com> References: <1328264137614-4354188.post@n4.nabble.com> Message-ID: <20120203103323.GA31477@leki> On Fri, Feb 03, 2012 at 02:15:37AM -0800, bartom wrote: > Hi, > could anyone tell me the command in ffmpeg to burn the timecode track of a > mov file onto the video? Burn the track? If you meant burn the timecode onto the video, see timecode and rate option in drawtext filter: http://ffmpeg.org/libavfilter.html#drawtext If you meant to add a timecode code track in the mov, this is not supported at the moment: http://ffmpeg.org/general.html#Timecode. You can extract the current timecode from the tmcd track with ffprobe though. [...] -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From bostjan.strojan at gmail.com Fri Feb 3 11:38:48 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Fri, 3 Feb 2012 11:38:48 +0100 Subject: [FFmpeg-user] crf mode in libvpx In-Reply-To: References: Message-ID: > What did you try? Doesn't -qscale / -vq work? Thanks, but nope they don't seem to do anything. No errors are reported, i guess switches are just silently ignored. example: ----------------ffmpeg -i /Users/smoke/Desktop/test.mov -strict -2 -acodec vorbis -b:a 64k -qscale 30 -q:v 0 -vcodec libvpx ./Desktop/test.webm ffmpeg version N-37510-g8c48652 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 2 2012 22:02:52 with clang 3.0 (tags/Apple/clang-211.12) configuration: --prefix=/Volumes/tempdisk/sw --enable-gpl --enable-libx264 --enable-libvpx --cc=clang --enable-runtime-cpudetect libavutil 51. 37.100 / 51. 37.100 libavcodec 54. 0.102 / 54. 0.102 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 61.100 / 2. 61.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fd32b81ae00] decoding for stream 2 failed Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/smoke/Desktop/test.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2012-02-01 08:54:28 Duration: 00:00:15.00, start: 0.000000, bitrate: 738837 kb/s Stream #0:0(eng): Video: r10k (R10g / 0x67303152), rgb48le, 1280x720, 737280 kb/s, SAR 1280:1280 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc Metadata: creation_time : 2012-02-01 08:54:28 handler_name : ?Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s Metadata: creation_time : 2012-02-01 08:54:28 handler_name : ?Apple Alias Data Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2012-02-01 08:54:59 handler_name : ?Apple Alias Data Handler timecode : 00:00:00:00 Please use -q:a or -q:v, -qscale is ambiguous Incompatible pixel format 'rgb48le' for codec 'libvpx', auto-selecting format 'yuv420p' [buffer @ 0x105d15d20] w:1280 h:720 pixfmt:rgb48le tb:1/1000000 sar:1280/1280 sws_param: [buffersink @ 0x105d16ec0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x105d172a0] w:1280 h:720 fmt:rgb48le -> w:1280 h:720 fmt:yuv420p flags:0x4 [libvpx @ 0x7fd32b82d000] v1.0.0 Output #0, webm, to './Desktop/test.webm': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2012-02-01 08:54:28 encoder : Lavf54.0.100 Stream #0:0(eng): Video: vp8, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 200 kb/s, 1k tbn, 25 tbc Metadata: creation_time : 2012-02-01 08:54:28 handler_name : ?Apple Alias Data Handler Stream #0:1(eng): Audio: vorbis, 48000 Hz, stereo, s16, 64 kb/s Metadata: creation_time : 2012-02-01 08:54:28 handler_name : ?Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (r10k -> libvpx) Stream #0:1 -> #0:1 (pcm_s16le -> vorbis) Press [q] to stop, [?] for help frame= 22 fps= 0 q=0.0 size= 4kB time=00:00:00.00 bitrate= 0.0kbits/sframe= 28 fps= 27 q=0.0 size= 4kB time=00:00:00.08 bitrate= 358.0kbits/sframe= 39 fps= 25 q=0.0 size= 36kB time=00:00:00.60 bitrate= 487.6kbits/sframe= 50 fps= 23 q=0.0 size= 36kB time=00:00:01.04 bitrate= 281.3kbits/sframe= 59 fps= 22 q=0.0 size= 36kB time=00:00:01.34 bitrate= 217.7kbits/sframe= 60 fps= 19 q=0.0 size= 36kB time=00:00:01.36 bitrate= 214.3kbits/sframe= 64 fps= 17 q=0.frame= 73 fps= 15 q=0.0 size= 157kB time=00:00:01.96 bitrframe= 375 fps= 14 q=0.0 Lsize= 1051kB time=00:00:15.00 bitrate= 574.1kbits/s video:1005kB audio:35kB global headers:3kB muxing overhead 0.765023% (crappy quality, no sound) From verem at m1stereo.tv Fri Feb 3 11:56:15 2012 From: verem at m1stereo.tv (Maksym Veremeyenko) Date: Fri, 03 Feb 2012 12:56:15 +0200 Subject: [FFmpeg-user] YUV with alpha channel In-Reply-To: References: <4F2A6E4C.9060207@m1stereo.tv> Message-ID: <4F2BBD4F.8040908@m1stereo.tv> 03.02.12 12:03, Carl Eugen Hoyos ???????(??): > Maksym Veremeyenko m1stereo.tv> writes: > >> has anybody success with encoding video from RGB with alpha channel >> (rgba) into YUV with alpha channel ("AYUV" or "AVUI") with ffmpeg? > > I have now implemented AYUV locally but I don't know how to test it. > If anybody has a sample or can test it, please mail me / answer here. i have successfully converted my *rgba* video into *yuva420p* with: [root at dev-5 resource]# ffmpeg -i now-main_aut_2011_fullHD.avi -vcodec rawvideo -pix_fmt yuva420p test.nut ffmpeg version N-37489-gde05e41 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 2 2012 18:11:34 with gcc 4.6.2 20111027 (Red Hat 4.6.2-1) configuration: --prefix=/usr/local/enctools --extra-cflags=-I/usr/local/enctools/include --extra-ldflags=-L/usr/local/enctools/lib --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-avfilter --enable-pthreads --enable-bzlib --enable-zlib --enable-libvo-amrwbenc --enable-libfaac --enable-libmp3lame --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-debug --enable-vdpau libavutil 51. 36.100 / 51. 36.100 libavcodec 54. 0.102 / 54. 0.102 libavformat 54. 0.100 / 54. 0.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 Input #0, avi, from 'now-main_aut_2011_fullHD.avi': Duration: 00:00:09.32, start: 0.000000, bitrate: 1658927 kb/s Stream #0:0: Video: rawvideo, bgra, 1920x1080, 25 tbr, 25 tbn, 25 tbc [buffer @ 0x20e1920] w:1920 h:1080 pixfmt:bgra tb:1/1000000 sar:0/1 sws_param: [buffersink @ 0x20dc4e0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x20dcdc0] w:1920 h:1080 fmt:bgra -> w:1920 h:1080 fmt:yuva420p flags:0x4 Output #0, nut, to 'test.nut': Metadata: encoder : Lavf54.0.100 Stream #0:0: Video: rawvideo (Y4[11][8] / 0x80B3459), yuva420p, 1920x1080, q=2-31, 200 kb/s, 25 tbn, 25 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> rawvideo) Press [q] to stop, [?] for help frame= 233 fps= 5 q=0.0 Lsize= 1179569kB time=00:00:09.32 bitrate=1036805.8kbits/s video:1179562kB audio:0kB global headers:0kB muxing overhead 0.000563% also converting png with alpha into the *yuva420p* and back to png saves alpha correctly. but *AVUI* file detects as *uyvy422* [...] Duration: 00:00:09.32, start: 0.000000, bitrate: 345911 kb/s Stream #0:0(eng): Video: rawvideo (AVUI / 0x49555641), uyvy422, 720x576, 345834 kb/s, SAR 768:702 DAR 160:117, 25 fps, 25 tbr, 25 tbn, 25 tbc [...] PS the only *nut* container save properly Y4[11][8] tag. saving *yuva420p* into the *avi* container detected as *yuv420p* -- ________________________________________ Maksym Veremeyenko From tim.nicholson at bbc.co.uk Fri Feb 3 12:02:19 2012 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Fri, 03 Feb 2012 11:02:19 +0000 Subject: [FFmpeg-user] Burning timecode into mov file In-Reply-To: <20120203103323.GA31477@leki> References: <1328264137614-4354188.post@n4.nabble.com> <20120203103323.GA31477@leki> Message-ID: <4F2BBEBB.7010509@bbc.co.uk> On 03/02/12 10:33, Cl?ment B?sch wrote: > On Fri, Feb 03, 2012 at 02:15:37AM -0800, bartom wrote: >> Hi, >> could anyone tell me the command in ffmpeg to burn the timecode track of a >> mov file onto the video? > > Burn the track? If you meant burn the timecode onto the video, see > timecode and rate option in drawtext filter: > http://ffmpeg.org/libavfilter.html#drawtext ...and if that is still unclear there is a worked example at :- https://ffmpeg.org/trac/ffmpeg/wiki/FilteringGuide > > If you meant to add a timecode code track in the mov, this is not > supported at the moment: http://ffmpeg.org/general.html#Timecode. You can > extract the current timecode from the tmcd track with ffprobe though. > > [...] ..at the moment.... How tantalising is that ;) -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From tim.nicholson at bbc.co.uk Fri Feb 3 12:12:31 2012 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Fri, 03 Feb 2012 11:12:31 +0000 Subject: [FFmpeg-user] Forcing interlaced handling In-Reply-To: <4F2BA2E4.3040109@bbc.co.uk> References: <4F29409A.2030309@bbc.co.uk> <20120201233445.GC5397@arborea> <4F2BA2E4.3040109@bbc.co.uk> Message-ID: <4F2BC11F.3060004@bbc.co.uk> On 03/02/12 09:03, Tim Nicholson wrote: > On 01/02/12 23:34, Stefano Sabatini wrote: >> From feadf458f3dfda9d15ebcb5b1b065495f5ba68a9 Mon Sep 17 00:00:00 2001 >> From: Stefano Sabatini >> Date: Thu, 2 Feb 2012 00:31:00 +0100 >> Subject: [PATCH] lavfi: add setfield filter > > Wow, thanks. > > Using:- > > ffmpeg -i V210-field.ref-1min.mov \ > -vf "setfield=1, fieldorder=bff"\ > -map 0:v -map 0:a \ > -c:v dvvideo -pix_fmt yuv420p \ > -c:a pcm_s16le -ar 48k \ > -y ./V210-field.ref-1min-out.mov > > Worked on my short test sample. Now about to try on a longer mxf... > ...and that seems to work OK too.... will this go into current HEAD? -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From cehoyos at ag.or.at Fri Feb 3 12:32:09 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 Feb 2012 11:32:09 +0000 (UTC) Subject: [FFmpeg-user] crf mode in libvpx References: Message-ID: Bo?tjan Strojan gmail.com> writes: > > What did you try? Doesn't -qscale / -vq work? > > Thanks, but nope they don't seem to do anything. No errors are > reported, i guess switches are just silently ignored. Hard to believe... (I tested vorbis before posting my first mail in this thread.) > ffmpeg -i /Users/smoke/Desktop/test.mov -strict -2 > -acodec vorbis -b:a 64k -qscale 30 -q:v 0 -vcodec libvpx > ./Desktop/test.webm [...] > Please use -q:a or -q:v, -qscale is ambiguous While this is unrelated to your problem afaict: Did you try to follow this hint? [...] > (crappy quality, Isn't that what you expect with -qscale 30? > no sound) You unfortunately cut the relevant part of my mail;-( Carl Eugen From cehoyos at ag.or.at Fri Feb 3 12:35:00 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 Feb 2012 11:35:00 +0000 (UTC) Subject: [FFmpeg-user] YUV with alpha channel References: <4F2A6E4C.9060207@m1stereo.tv> <4F2BBD4F.8040908@m1stereo.tv> Message-ID: Maksym Veremeyenko m1stereo.tv> writes: > > I have now implemented AYUV locally but I don't know how to test it. > > If anybody has a sample or can test it, please mail me / answer here. > > i have successfully converted my *rgba* video into *yuva420p* with: Do you have an AYUV sample? Or do you know how to test AYUV? > [root dev-5 resource]# ffmpeg -i now-main_aut_2011_fullHD.avi > -vcodec rawvideo -pix_fmt yuva420p test.nut I would have suggested one of the encoders that support yuva420p... (ffv1, libopenjpeg) Carl Eugen From verem at m1stereo.tv Fri Feb 3 12:46:34 2012 From: verem at m1stereo.tv (Maksym Veremeyenko) Date: Fri, 03 Feb 2012 13:46:34 +0200 Subject: [FFmpeg-user] YUV with alpha channel In-Reply-To: References: <4F2A6E4C.9060207@m1stereo.tv> <4F2BBD4F.8040908@m1stereo.tv> Message-ID: <4F2BC91A.1020407@m1stereo.tv> 03.02.12 13:35, Carl Eugen Hoyos ???????(??): > Maksym Veremeyenko m1stereo.tv> writes: > >>> I have now implemented AYUV locally but I don't know how to test it. >>> If anybody has a sample or can test it, please mail me / answer here. >> >> i have successfully converted my *rgba* video into *yuva420p* with: > > Do you have an AYUV sample? i have an AVUI sample that created with Meridien codec for quicktime: http://downloads.m1stereo.tv/bc46fb2cc0dca7575efd7940c3129b6c/ > Or do you know how to test AYUV? i can test with AE or other Quicktime's compatible product... >> [root dev-5 resource]# ffmpeg -i now-main_aut_2011_fullHD.avi >> -vcodec rawvideo -pix_fmt yuva420p test.nut > > I would have suggested one of the encoders that support yuva420p... > (ffv1, libopenjpeg) i am interesting exactly in uncompressed. -- ________________________________________ Maksym Veremeyenko From cehoyos at ag.or.at Fri Feb 3 12:58:16 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 Feb 2012 11:58:16 +0000 (UTC) Subject: [FFmpeg-user] YUV with alpha channel References: <4F2A6E4C.9060207@m1stereo.tv> <4F2BBD4F.8040908@m1stereo.tv> <4F2BC91A.1020407@m1stereo.tv> Message-ID: Maksym Veremeyenko m1stereo.tv> writes: > > Do you have an AYUV sample? > > i have an AVUI sample that created with Meridien codec for quicktime: > http://downloads.m1stereo.tv/bc46fb2cc0dca7575efd7940c3129b6c/ If there really is a transparency information in this video, then please convert it to V408 or some RGG32 codec and upload. > > Or do you know how to test AYUV? > > i can test with AE or other Quicktime's compatible product... Sample uploaded to http://www.datafilehost.com/download-54d38494.html Please test, Carl Eugen From bostjan.strojan at gmail.com Fri Feb 3 13:09:25 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Fri, 3 Feb 2012 13:09:25 +0100 Subject: [FFmpeg-user] crf mode in libvpx In-Reply-To: References: Message-ID: On Fri, Feb 3, 2012 at 12:32 PM, Carl Eugen Hoyos wrote: > Hard to believe... > (I tested vorbis before posting my first mail in this thread.) maybe my compile behaves. > Isn't that what you expect with -qscale 30? what would you expect from an unknown scale? (nothing really, its just middle number, libvpx range seems to be 0-60, but i guess there must be some "mysterious" ffmpeg mapping going on in the background) > >> no sound) > > You unfortunately cut the relevant part of my mail;-( Well, even if vorbis is working, that would again mean a futille search for a proper quality parameter, so i guess there is no way to win here. oh, maybe i should glue it back? :( From verem at m1stereo.tv Fri Feb 3 13:43:13 2012 From: verem at m1stereo.tv (Maksym Veremeyenko) Date: Fri, 03 Feb 2012 14:43:13 +0200 Subject: [FFmpeg-user] YUV with alpha channel In-Reply-To: References: <4F2A6E4C.9060207@m1stereo.tv> <4F2BBD4F.8040908@m1stereo.tv> <4F2BC91A.1020407@m1stereo.tv> Message-ID: <4F2BD661.60408@m1stereo.tv> 03.02.12 13:58, Carl Eugen Hoyos ???????(??): > Maksym Veremeyenko m1stereo.tv> writes: > >>> Do you have an AYUV sample? >> >> i have an AVUI sample that created with Meridien codec for quicktime: >> http://downloads.m1stereo.tv/bc46fb2cc0dca7575efd7940c3129b6c/ > > If there really is a transparency information in this video, > then please convert it to V408 or some RGG32 codec and upload. i uploaded more samples: *title_bg.mov* - main animation in AVUI fourcc *title_bg_converted_from_avid_meridien_to_gt_animation.mov* the same animation converted into Quicktime Animation *title_bg_converted_from_avid_meridien.png* still frame from source animation *title_bg_converted_from_png_still_image_to_avid_meridien.mov* one frame movie from PNG above into AVUI > >>> Or do you know how to test AYUV? >> >> i can test with AE or other Quicktime's compatible product... > > Sample uploaded to > http://www.datafilehost.com/download-54d38494.html currently only windows media player plays that... i am still trying... -- ________________________________________ Maksym Veremeyenko From cacealma2000 at yahoo.com Fri Feb 3 14:26:20 2012 From: cacealma2000 at yahoo.com (catalin) Date: Fri, 3 Feb 2012 05:26:20 -0800 (PST) Subject: [FFmpeg-user] How can I find the keyframe information for a mp4 video ? In-Reply-To: <1328135828353-4349754.post@n4.nabble.com> References: <1328134912052-4349687.post@n4.nabble.com> <1328135828353-4349754.post@n4.nabble.com> Message-ID: <1328275580468-4354592.post@n4.nabble.com> I have managed to get the info using -vstats_file stats.txt argument when compiling a video and extract the data I'm interested in with awk The problem is that no matter what value I use for -g the keyframes are always the same This is the encoding command I'm using: ffmpeg -i input -s 320x240 -an -pass 1 -vcodec libx264 -vpre medium_firstpass -b 300k -g 4 -threads 0 -y out_pass1.mp4 && ffmpeg -i input -vstats_file stats.txt -pass 2 -vcodec libx264 -vpre medium -b 300k -g 4 -s 320x240 -threads 0 -acodec libfaac -ab 40k output_pass2 This is the keyframe sequence: 16 19 174 301 452 516 588 732 845 1005 1103 1195 1343 1417 1507 1726 I have also edited the preset files to suit my needs (g=25 keyint_min=10): libx264-medium.ffpreset libx264-medium_firstpass.ffpreset Any ideas ? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-can-I-find-the-keyframe-information-for-a-mp4-video-tp4349687p4354592.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From marc at waesche.org Fri Feb 3 14:31:35 2012 From: marc at waesche.org (Marc Waesche) Date: Fri, 03 Feb 2012 14:31:35 +0100 Subject: [FFmpeg-user] no encoding of VP6 flv files Message-ID: <4F2BE1B7.7040205@waesche.org> Hello! I use ffmpeg for merging a video track (flv) and a audio track (mp3) together without new encoding. It runs on a debian linux server. For building a new header I use flvtool2. That works perfect with a flv file encoded with h.264 as video input but does not work with flv files encoded with VP6. I need this to use alpha channel. Is this a bug or is VP6 not provided by ffmpeg? Here is the command line: ffmpeg -i "video.flv" -i "audio.mp3" -vcodec copy -acodec copy "video_and_audio.flv" Best regards Marc From h.reindl at thelounge.net Fri Feb 3 14:36:32 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Fri, 03 Feb 2012 14:36:32 +0100 Subject: [FFmpeg-user] no encoding of VP6 flv files In-Reply-To: <4F2BE1B7.7040205@waesche.org> References: <4F2BE1B7.7040205@waesche.org> Message-ID: <4F2BE2E0.5080903@thelounge.net> Am 03.02.2012 14:31, schrieb Marc Waesche: > Hello! > > I use ffmpeg for merging a video track (flv) and a audio track (mp3) together without new encoding. It runs on a > debian linux server. For building a new header I use flvtool2. That works perfect with a flv file encoded with > h.264 as video input but does not work with flv files encoded with VP6. I need this to use alpha channel. Is this a > bug or is VP6 not provided by ffmpeg? Here is the command line: ffmpeg -i "video.flv" -i "audio.mp3" -vcodec copy > -acodec copy "video_and_audio.flv" [harry at srv-rhsoft:~]$ ffmpeg -codecs | grep VP6 D V D vp6 On2 VP6 D V D vp6a On2 VP6 (Flash version, with alpha channel) D V D vp6f On2 VP6 (Flash version) shows that VP6 is only supported for DECODE, not encode FLV is supported and per definition another codec that H264or VP6 DEVSD flv Flash Video (FLV) / Sorenson Spark / Sorenson H.263 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From de.techno at gmail.com Fri Feb 3 09:13:35 2012 From: de.techno at gmail.com (dE .) Date: Fri, 03 Feb 2012 13:43:35 +0530 Subject: [FFmpeg-user] worth to bother? create a set of test video clips for mobile devices In-Reply-To: <4F2B41C2.10404@realss.com> References: <4F27A206.9020602@realss.com> <4F28E628.1000704@gmail.com> <4F2A2703.1030300@realss.com> <4F2A5F91.5080501@gmail.com> <4F2B41C2.10404@realss.com> Message-ID: <4F2B972F.1030409@gmail.com> On 02/03/12 07:39, Zhang Weiwu wrote: > ? 2012?02?02? 18:04, dE . ??: >> >> Although I'm busy with my inbox (I get more than 100 mails per day in >> my inbox (this includes various Debian mailing lists and some from >> Gentoo forums and various bug reports)) but I'll try to contribute >> where I can, especially to make new entries in this list. > > Dear dE > > If we go on this topic it doesn't fit ffmpeg-user list any more: too > noisy there and with a different focus (we are focusing more on media > and devices than on ffmpeg). > > I'd prose we go on this discussion on news:comp.multimedia for it's > in-topic there and it's quieter. If you don't know how to subscribe > that, I'll simply put a first message-post there and send you > instruction to subscribe so you can follow. It's super simple. > > Since I think I am going to devote some days of time in the long run > on this topic, it worth the effort to subscribe a different place for > discussion. > > Best regards > Zhang Weiwu Discussion in this mailing list is find, but I was proposing a wiki article somewhere about this. Also for the videos, audio combinations needs to be tried too. Popular selections are aac, mp2 and mp3. From de.techno at gmail.com Fri Feb 3 09:17:14 2012 From: de.techno at gmail.com (dE .) Date: Fri, 03 Feb 2012 13:47:14 +0530 Subject: [FFmpeg-user] worth to bother? create a set of test video clips for mobile devices In-Reply-To: <4F2B4037.5000603@realss.com> References: <4F27A206.9020602@realss.com> <4F28E628.1000704@gmail.com> <4F2A2703.1030300@realss.com> <4F2A5F91.5080501@gmail.com> <4F2B4037.5000603@realss.com> Message-ID: <4F2B980A.5000303@gmail.com> On 02/03/12 07:32, Zhang Weiwu wrote: > ? 2012?02?02? 18:04, dE . ??: >> >> Notice, I'm not a developer and running make results in - >> >> make >> make: Nothing to be done for `help'. > > Sorry, it's > > $ make test_suit > > But nevermind, I'll put the resulting clips on the Internet too, a few > days later. > > Best. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Maybe sourceforge will be the right place to start off with this project. From cacealma2000 at yahoo.com Fri Feb 3 14:53:11 2012 From: cacealma2000 at yahoo.com (catalin) Date: Fri, 3 Feb 2012 05:53:11 -0800 (PST) Subject: [FFmpeg-user] How can I find the keyframe information for a mp4 video ? In-Reply-To: <1328275580468-4354592.post@n4.nabble.com> References: <1328134912052-4349687.post@n4.nabble.com> <1328135828353-4349754.post@n4.nabble.com> <1328275580468-4354592.post@n4.nabble.com> Message-ID: <1328277191394-4354658.post@n4.nabble.com> Seems this was a notified bug and was corrected 5 months ago. I guess the ffmpeg version I have on is prior to this being fixed https://ffmpeg.org/trac/ffmpeg/ticket/422 -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-can-I-find-the-keyframe-information-for-a-mp4-video-tp4349687p4354658.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From bartomas at gmail.com Fri Feb 3 15:31:50 2012 From: bartomas at gmail.com (bartom) Date: Fri, 3 Feb 2012 06:31:50 -0800 (PST) Subject: [FFmpeg-user] Burning timecode into mov file In-Reply-To: <20120203103323.GA31477@leki> References: <1328264137614-4354188.post@n4.nabble.com> <20120203103323.GA31477@leki> Message-ID: <1328279510419-4354750.post@n4.nabble.com> Hi, Many thanks for your answers and your help. I tried using ffprobe to extract the timecode stream as you suggest, but ffprobe doesn't seem to be able to decode the timecode stream. I ran the command: ffprobe -show_streams test.mov but I get the message 'Unsupported codec with id 0 for input stream 2' (the timecode stream). Do I need to specify some other option so that ffprobe can decode the timecode stream? Thanks again for any help T. Bar The complete output of my command ffprobe -show_streams test.mov is: ffprobe version N-37402-gc673671 Copyright (c) 2007-2012 the FFmpeg developers built on Feb 3 2012 11:09:54 with gcc 4.6.1 configuration: libavutil 51. 36.100 / 51. 36.100 libavcodec 54. 0.102 / 54. 0.102 libavformat 54. 0.100 / 54. 0.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 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x27f24e0] decoding for stream 2 failed Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-04-26 06:45:13 Duration: 00:42:28.56, start: 0.000000, bitrate: 123586 kb/s Stream #0:0(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32, 1152 kb/s Metadata: creation_time : 2011-04-26 06:45:13 handler_name : ?Linux Alias Data Handler Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, 1 channels, s32, 1152 kb/s Metadata: creation_time : 2011-04-26 06:45:13 handler_name : ?Linux Alias Data Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2011-04-26 06:45:13 handler_name : ?Apple Alias Data Handler timecode : 18:27:15:17 Stream #0:3(eng): Video: prores (apcn / 0x6E637061), yuv422p10le, 1920x1080, 121279 kb/s, 25 fps, 25 tbr, 2500 tbn, 2500 tbc Metadata: creation_time : 2011-04-26 20:25:56 handler_name : ?Apple Alias Data Handler Unsupported codec with id 0 for input stream 2 [STREAM] index=0 codec_name=pcm_s24le codec_long_name=PCM signed 24-bit little-endian codec_type=audio codec_time_base=1/48000 codec_tag_string=in24 codec_tag=0x34326e69 sample_fmt=s32 sample_rate=48000 channels=1 bits_per_sample=24 id=N/A r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/48000 start_time=0.000000 duration=2548.560000 nb_frames=122313600 TAG:creation_time=2011-04-26 06:45:13 TAG:language=eng TAG:handler_name=Linux Alias Data Handler [/STREAM] [STREAM] index=1 codec_name=pcm_s24le codec_long_name=PCM signed 24-bit little-endian codec_type=audio codec_time_base=1/48000 codec_tag_string=in24 codec_tag=0x34326e69 sample_fmt=s32 sample_rate=48000 channels=1 bits_per_sample=24 id=N/A r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/48000 start_time=0.000000 duration=2548.560000 nb_frames=122313600 TAG:creation_time=2011-04-26 06:45:13 TAG:language=eng TAG:handler_name=Linux Alias Data Handler [/STREAM] [STREAM] index=2 codec_name=unknown codec_long_name=unknown codec_type=data codec_time_base=1/25 codec_tag_string=tmcd codec_tag=0x64636d74 id=N/A r_frame_rate=0/0 avg_frame_rate=0/0 time_base=1/2500 start_time=0.000000 duration=2548.560000 nb_frames=1 TAG:creation_time=2011-04-26 06:45:13 TAG:language=eng TAG:handler_name=Apple Alias Data Handler TAG:timecode=18:27:15:17 [/STREAM] [STREAM] index=3 codec_name=prores codec_long_name=ProRes codec_type=video codec_time_base=1/2500 codec_tag_string=apcn codec_tag=0x6e637061 width=1920 height=1080 has_b_frames=0 sample_aspect_ratio=N/A display_aspect_ratio=N/A pix_fmt=yuv422p10le level=-99 timecode=N/A id=N/A r_frame_rate=25/1 avg_frame_rate=25/1 time_base=1/2500 start_time=0.000000 duration=2548.560000 nb_frames=63714 TAG:creation_time=2011-04-26 20:25:56 TAG:language=eng TAG:handler_name=Apple Alias Data Handler [/STREAM] -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Burning-timecode-into-mov-file-tp4354188p4354750.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From zongyao.qu at gmail.com Fri Feb 3 15:33:15 2012 From: zongyao.qu at gmail.com (Zongyao Qu) Date: Fri, 3 Feb 2012 14:33:15 +0000 (UTC) Subject: [FFmpeg-user] the latest ffmpeg seams broke AC3 Decoder in mplayer Message-ID: I am not sure whether the issue lays in mplayer or ffmpeg. but when I roll back ffmpeg to 0.10, it works. I am using Mac OSX 10.7, x86_64. the full log is below. BTW, I think the suspicious place is here ---------------------------------- [AC3 decoder @ 0x100923f50]Value 1606411960.000000 for parameter 'drc_scale' out of range [AC3 decoder @ 0x100923f50]Error setting option drc_scale to value 1606411960. I don't know whether it is OK to report such kind of issue, since it is not a ffmpeg only issue. But I think it is mplayer irrelevant. if it is not OK, please let me know, I will post it to mplayer. Thank you. =============== QZY:x86_64 NILTSH$ ./mplayer -demuxer lavf -v /Volumes/Work/MPX/MediaTest/00101.MTS MPlayer UNKNOWN-4.2.1 (C) 2000-2012 MPlayer Team CPU vendor name: GenuineIntel max cpuid level: 13 CPU: Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz (Family: 6, Model: 42, Stepping: 7) extended cpuid-level: 8 extended cache-info: 16801856 Detected cache-line size is 64 bytes CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1 Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 SSSE3 CMOV get_path('codecs.conf') -> '/Users/NILTSH/.mplayer/codecs.conf' Reading optional codecs config file /Users/NILTSH/.mplayer/codecs.conf: No such file or directory Reading optional codecs config file /usr/local/etc/mplayer/codecs.conf: No such file or directory Using built-in default codecs.conf. init_freetype Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay get_path('fonts') -> '/Users/NILTSH/.mplayer/fonts' Configuration: --codecsdir=codecs --disable-mencoder --disable-gui --disable-apple-remote --disable-unrarexec --disable-pnm --disable-tga --disable-md5sum --disable-quartz --disable-openal --disable-tremor-internal --disable-jpeg --disable-png --disable-yuv4mpeg --disable-faac --disable-faad --disable-tv --disable-libdca --disable-liba52 --disable-libvorbis --disable-theora --disable-qtx --disable-gl --disable-matrixview --disable-x11 --disable-xv --enable-decoder=vda --extra-cflags=-mmacosx-version-min=10.6 --extra-ldflags=-mmacosx-version-min=10.6 -framework CoreFoundation -framework VideoDecodeAcceleration -framework QuartzCore CommandLine: '-demuxer' 'lavf' '-v' '/Volumes/Work/MPX/MediaTest/00101.MTS' Using Darwin accurate timing get_path('input.conf') -> '/Users/NILTSH/.mplayer/input.conf' Reading optional input config file /Users/NILTSH/.mplayer/input.conf: No such file or directory Reading optional input config file /usr/local/etc/mplayer/input.conf: No such file or directory Falling back on default (hardcoded) input config get_path('00101.MTS.conf') -> '/Users/NILTSH/.mplayer/00101.MTS.conf' Playing /Volumes/Work/MPX/MediaTest/00101.MTS. get_path('sub/') -> '/Users/NILTSH/.mplayer/sub/' [file] File size is 9940992 bytes STREAM: [file] /Volumes/Work/MPX/MediaTest/00101.MTS STREAM: Description: File STREAM: Author: Albeu STREAM: Comment: based on the code from ??? (probably Arpi) libavformat version 54.0.100 (internal) Configuration: --enable-gpl --enable-postproc LAVF_check: MPEG-2 transport stream format libavformat file format detected. [mpegts @ 0x100922480]stream=0 stream_type=1b pid=1011 prog_reg_desc=HDMV [mpegts @ 0x100922480]stream=1 stream_type=81 pid=1100 prog_reg_desc=HDMV [mpegts @ 0x100922480]stream=2 stream_type=90 pid=1200 prog_reg_desc=HDMV [ac3 @ 0x10092c160]Unsupported bit depth: 0 [mpegts @ 0x100922480]parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid. [h264 @ 0x10092c160]Increasing reorder buffer to 1 [h264 @ 0x10092c160]no picture ooo [h264 @ 0x10092c160]no picture ooo [h264 @ 0x10092c160]no picture [mpegts @ 0x100922480]Probe buffer size limit 5000000 reached rfps: 59.666667 0.014040 rfps: 59.750000 0.006785 rfps: 59.750000 0.006785 rfps: 59.833333 0.002139 rfps: 59.833333 0.002139 rfps: 59.916667 0.000103 rfps: 59.940060 0.000000 rfps: 59.940060 0.000000 ==> Found video stream: 0 ======= VIDEO Format ====== biSize 500 biWidth 1920 biHeight 1080 biPlanes 0 biBitCount 0 biCompression 875967048='H264' biSizeImage 0 Unknown extra header dump: [0] [0] [0] [1] [9] [10] [0] [0] [0] [1] [27] [64] [0] [2a] [ac] [2c] [a5] [1] [e0] [8] [9f] [97] [1] [10] [0] [0] [3e] [90] [0] [1d] [4c] [e] [4] [0] [0] [63] [2e] [a0] [0] [2] [7a] [c4] [21] [6b] [0] [20] [0] [0] [0] [1] [28] [ee] [3c] [e5] [11] [35] [8] [6e] [8] [8] [40] [3c] [3] [10] [37] [4a] [14] [87] [4] [88] [4] [9c] [18] [60] [6e] [c2] [52] [49] [93] [aa] [c9] [b7] [22] [4b] [9b] [b6] [d8] [82] [8] [11] [13] [8] [c] [18] [34] [68] [d0] [c0] [2c] [2] [4] [8] [20] [40] [7] [c0] [fc] [8] [20] [40] [7] [de] [c0] [0] [0] [0] [1] [28] [5b] [8f] [39] [44] [4d] [42] [1b] [82] [2] [10] [f] [0] [c4] [d] [d2] [85] [21] [c1] [22] [1] [27] [6] [18] [1b] [b5] [c] [8a] [c5] [70] [b6] [7] [88] [3e] [84] [1] [4] [14] [6] [43] [0] [b3] [81] [ab] [e9] [49] [26] [4e] [ab] [26] [dc] [89] [2e] [6e] [db] [62] [8] [20] [44] [4c] [20] [30] [60] [d1] [a3] [43] [0] [b0] [8] [10] [20] [81] [0] [1f] [3] [f0] [20] [81] [0] [1f] [7d] [8] [91] [a2] [72] [79] [2a] [e4] [ad] [c9] [4a] [dc] [d1] [18] [98] [80] [40] [8] [20] [84] [10] [81] [0] [8] [18] [10] [40] [fd] [ff] [c0] [0] [0] [0] [1] [28] [7b] [8f] [3a] [1d] [11] [20] [c2] [96] [8] [2] [2] [0] [4b] [3] [f0] [7d] [41] [68] [20] [12] [20] [1c] [70] [20] [60] [fb] [44] [5] [21] [8c] [39] [c1] [6] [7] [ee] [14] [4] [90] [50] [11] [8] [2] [4e] [6] [af] [a8] [d3] [66] [ba] [4b] [26] [db] [49] [25] [90] [84] [20] [d2] [95] [8e] [21] [0] [81] [6] [22] [41] [c0] [10] [1] [f0] [3f] [3] [8] [64] [1c] [1] [0] [1f] [41] [f8] [3e] [c1] [f8] [3e] [fc] [40] [42] [3b] [19] [c6] [78] [c9] [a7] [8a] [21] [b3] [94] [50] [a2] [1a] [72] [8b] [4] [46] [36] [73] [83] [f] [83] [ef] [ff] [f0] [0] [0] [0] [1] [28] [15] [b8] [c6] [ce] [51] [13] [50] [86] [e0] [80] [84] [3] [c0] [31] [3] [74] [a1] [48] [70] [48] [80] [49] [c1] [86] [6] [ed] [43] [22] [b1] [5c] [2d] [81] [e2] [f] [a1] [0] [41] [5] [1] [90] [c0] [2c] [e0] [6a] [fa] [52] [49] [93] [aa] [c9] [b7] [22] [4b] [9b] [b6] [d8] [82] [8] [11] [13] [8] [c] [18] [34] [68] [d0] [c0] [2c] [2] [4] [8] [20] [40] [7] [c0] [fc] [8] [20] [40] [7] [df] [42] [24] [68] [9c] [9e] [4a] [b9] [2b] [72] [52] [b7] [34] [46] [26] [20] [10] [2] [8] [21] [4] [20] [40] [2] [6] [4] [10] [3f] [7f] [c6] [c0] =========================== [lavf] stream 0: video (h264), -vid 0 ==> Found audio stream: 1 ======= WAVE Format ======= Format Tag: 8192 (0x2000) Channels: 2 Samplerate: 48000 avg byte/sec: 32000 Block align: 1 bits/sample: 0 cbSize: 0 ================================================================= ======= == [lavf] stream 1: audio (ac3), -aid 0 [lavf] stream 2: subtitle (pgssub), -sid 0 LAVF: Program 1 LAVF: 1 audio and 1 video streams found LAVF: build 3539044 VIDEO: [H264] 1920x1080 0bpp 59.940 fps 0.0 kbps ( 0.0 kbyte/s) [V] filefmt:35 fourcc:0x34363248 size:1920x1080 fps:59.940 ftime:=0.0167 Load subtitles in /Volumes/Work/MPX/MediaTest/ get_path('sub/') -> '/Users/NILTSH/.mplayer/sub/' Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family libavcodec version 54.0.102 (internal) Configuration: --enable-gpl --enable-postproc INFO: libavcodec init OK! Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders dec_audio: Allocating 192000 + 131072 = 323072 bytes for output buffer. FFmpeg's libavcodec audio codec [AC3 decoder @ 0x100923f50]Value 1606411960.000000 for parameter 'drc_scale' out of range [AC3 decoder @ 0x100923f50]Error setting option drc_scale to value 1606411960. Could not open codec. ADecoder init failed :( ADecoder init failed :( Requested audio codec family [a52] (afm=liba52) not available. Enable it at compilation. Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF dec_audio: Allocating 8192 bytes for input buffer. dec_audio: Allocating 16384 + 131072 = 147456 bytes for output buffer. hwac3: switched to AC3, 256000 bps, 48000 Hz AUDIO: 48000 Hz, 2 ch, ac3be, 256.0 kbit/16.67% (ratio: 32000->192000) Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF) Building audio filter chain for 48000Hz/2ch/ac3be -> 0Hz/0ch/??... [libaf] Adding filter dummy [dummy] Was reinitialized: 48000Hz/2ch/ac3be [dummy] Was reinitialized: 48000Hz/2ch/ac3be Trying every known audio driver... AO: [coreaudio] init([48000Hz][2ch][ac3be][0]) AO: [coreaudio] got audio output device ID: 34 Name: Built-in Output AO: [coreaudio] supported format: 96000.0Hz 24bit [lpcm][4][8][1][8][2] int LE S AO: [coreaudio] supported format: 88200.0Hz 24bit [lpcm][4][8][1][8][2] int LE S AO: [coreaudio] supported format: 48000.0Hz 24bit [lpcm][4][8][1][8][2] int LE S AO: [coreaudio] supported format: 44100.0Hz 24bit [lpcm][4][8][1][8][2] int LE S AO: [coreaudio] supported format: 96000.0Hz 20bit [lpcm][4][8][1][8][2] int LE S AO: [coreaudio] supported format: 88200.0Hz 20bit [lpcm][4][8][1][8][2] int LE S AO: [coreaudio] supported format: 48000.0Hz 20bit [lpcm][4][8][1][8][2] int LE S AO: [coreaudio] supported format: 44100.0Hz 20bit [lpcm][4][8][1][8][2] int LE S AO: [coreaudio] supported format: 96000.0Hz 16bit [lpcm][12][4][1][4][2] int LE S packed AO: [coreaudio] supported format: 88200.0Hz 16bit [lpcm][12][4][1][4][2] int LE S packed AO: [coreaudio] supported format: 48000.0Hz 16bit [lpcm][12][4][1][4][2] int LE S packed AO: [coreaudio] supported format: 44100.0Hz 16bit [lpcm][12][4][1][4][2] int LE S packed AO: [coreaudio] supported format: 96000.0Hz 32bit [lpcm][9][8][1][8][2] float LE U packed AO: [coreaudio] supported format: 88200.0Hz 32bit [lpcm][9][8][1][8][2] float LE U packed AO: [coreaudio] supported format: 48000.0Hz 32bit [lpcm][9][8][1][8][2] float LE U packed AO: [coreaudio] supported format: 44100.0Hz 32bit [lpcm][9][8][1][8][2] float LE U packed AO: [coreaudio] probe default audio output device about support for digital s/pdif output: 0 AO: [coreaudio] source: 48000.0Hz 16bit [lpcm][14][4][1][4][2] int BE S packed AO: [coreaudio] using 375 chunks of 512 bytes (buffer len 192000 bytes) AO: [coreaudio] 48000Hz 2ch ac3be (2 bytes per sample) AO: Description: Darwin/Mac OS X native audio output AO: Author: Timothy J. Wood & Dan Christiansen & Chris Roccati Building audio filter chain for 48000Hz/2ch/ac3be -> 48000Hz/2ch/ac3be... [dummy] Was reinitialized: 48000Hz/2ch/ac3be [dummy] Was reinitialized: 48000Hz/2ch/ac3be Starting playback... Increasing filtered audio buffer size from 0 to 131072 Unsupported PixelFormat 61 Unsupported PixelFormat 53 Unsupported PixelFormat 81 [ffmpeg] aspect_ratio: 1.777778 VDec: vo config request - 1920 x 1080 (preferred colorspace: Planar YV12) Trying filter chain: vo Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] SwScale params: -1 x -1 (-1=no scaling) Trying filter chain: scale vo VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. VO Config (1920x1080->1920x1080,flags=0,'MPlayer',0x32315659) SwScaler: reducing / aligning filtersize 1 -> 4 SwScaler: reducing / aligning filtersize 1 -> 4 SwScaler: reducing / aligning filtersize 1 -> 1 SwScaler: reducing / aligning filtersize 5 -> 4 [swscaler @ 0x10091edc0]BICUBIC scaler, from yuv420p to yuyv422 using MMX2 [swscaler @ 0x10091edc0]1920x1080 -> 1920x1080 [swscaler @ 0x10091edc0]lum srcW=1920 srcH=1080 dstW=1920 dstH=1080 xInc=65536 yInc=65536 [swscaler @ 0x10091edc0]chr srcW=960 srcH=540 dstW=960 dstH=1080 xInc=65536 yInc=32768 REQ: flags=0x37 req=0x0 VO: [corevideo] 1920x1080 => 1920x1080 Packed YUY2 VO: Description: Mac OS X Core Video VO: Author: Nicolas Plourde [ASPECT] Warning: No suitable new res found! *** [scale] Exporting mp_image_t, 1920x1080x12bpp YUV planar, 3110400 bytes *** [vo] Allocating mp_image_t, 1920x1080x16bpp YUV packed, 4147200 bytes [swscaler @ 0x10091edc0]Warning: data is not aligned! This can lead to a speedloss Fontconfig failed to select a font. Trying without fontconfig... get_path('subfont.ttf') -> '/Users/NILTSH/.mplayer/subfont.ttf' New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. Fontconfig failed to select a font. Trying without fontconfig... get_path('subfont.ttf') -> '/Users/NILTSH/.mplayer/subfont.ttf' New_Face failed. Maybe the font path is wrong. Please supply the text font file (~/.mplayer/subfont.ttf). subtitle font: load_sub_face failed. A: 0.8 V: 0.9 A-V: -0.033 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0 [h264 @ 0x10092c160]Increasing reorder buffer to 1 [h264 @ 0x10092c160]no picture ooo [h264 @ 0x10092c160]no picture ooo [h264 @ 0x10092c160]no picture pts value < previous A: 1.7 V: 0.9 A-V: 0.719 ct: -0.006 0/ 0 ??% ??% ??,?% 3 0 Uninit audio filters... [libaf] Removing filter dummy Uninit audio: hwac3 Uninit video: ffmpeg Exiting... (Quit) From h.reindl at thelounge.net Fri Feb 3 15:38:07 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Fri, 03 Feb 2012 15:38:07 +0100 Subject: [FFmpeg-user] the latest ffmpeg seams broke AC3 Decoder in mplayer In-Reply-To: References: Message-ID: <4F2BF14F.8040508@thelounge.net> i guess mplayer needs to be rebuilt against the new ffmpeg this is naturally because new versions does change the binary ABI Am 03.02.2012 15:33, schrieb Zongyao Qu: > I am not sure whether the issue lays in mplayer or ffmpeg. > > but when I roll back ffmpeg to 0.10, it works. > > I am using Mac OSX 10.7, x86_64. > > the full log is below. > > BTW, I think the suspicious place is here > ---------------------------------- > [AC3 decoder @ 0x100923f50]Value 1606411960.000000 for parameter > 'drc_scale' out of range > [AC3 decoder @ 0x100923f50]Error setting option drc_scale to value > 1606411960. > > I don't know whether it is OK to report such kind of issue, since it is not > a ffmpeg only issue. But I think it is mplayer irrelevant. > > if it is not OK, please let me know, I will post it to mplayer. > Thank you. > =============== > QZY:x86_64 NILTSH$ ./mplayer -demuxer lavf -v > /Volumes/Work/MPX/MediaTest/00101.MTS MPlayer UNKNOWN-4.2.1 (C) > 2000-2012 MPlayer Team > CPU vendor name: GenuineIntel max cpuid level: 13 > CPU: Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz (Family: 6, Model: 42, > Stepping: 7) > extended cpuid-level: 8 > extended cache-info: 16801856 > Detected cache-line size is 64 bytes > CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1 > Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 SSSE3 CMOV > get_path('codecs.conf') -> '/Users/NILTSH/.mplayer/codecs.conf' > Reading optional codecs config file /Users/NILTSH/.mplayer/codecs.conf: > No such file or directory > Reading optional codecs config file /usr/local/etc/mplayer/codecs.conf: > No such file or directory > Using built-in default codecs.conf. > init_freetype > Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay > get_path('fonts') -> '/Users/NILTSH/.mplayer/fonts' > Configuration: --codecsdir=codecs --disable-mencoder --disable-gui > --disable-apple-remote --disable-unrarexec --disable-pnm --disable-tga > --disable-md5sum --disable-quartz --disable-openal > --disable-tremor-internal --disable-jpeg --disable-png > --disable-yuv4mpeg --disable-faac --disable-faad --disable-tv > --disable-libdca --disable-liba52 --disable-libvorbis --disable-theora > --disable-qtx --disable-gl --disable-matrixview --disable-x11 > --disable-xv --enable-decoder=vda > --extra-cflags=-mmacosx-version-min=10.6 > --extra-ldflags=-mmacosx-version-min=10.6 -framework CoreFoundation > -framework VideoDecodeAcceleration -framework QuartzCore > CommandLine: '-demuxer' 'lavf' '-v' > '/Volumes/Work/MPX/MediaTest/00101.MTS' > Using Darwin accurate timing > get_path('input.conf') -> '/Users/NILTSH/.mplayer/input.conf' > Reading optional input config file /Users/NILTSH/.mplayer/input.conf: No > such file or directory > Reading optional input config file /usr/local/etc/mplayer/input.conf: No > such file or directory > Falling back on default (hardcoded) input config > get_path('00101.MTS.conf') -> '/Users/NILTSH/.mplayer/00101.MTS.conf' > > Playing /Volumes/Work/MPX/MediaTest/00101.MTS. > get_path('sub/') -> '/Users/NILTSH/.mplayer/sub/' > [file] File size is 9940992 bytes > STREAM: [file] /Volumes/Work/MPX/MediaTest/00101.MTS > STREAM: Description: File > STREAM: Author: Albeu > STREAM: Comment: based on the code from ??? (probably Arpi) > libavformat version 54.0.100 (internal) > Configuration: --enable-gpl --enable-postproc > LAVF_check: MPEG-2 transport stream format > libavformat file format detected. > [mpegts @ 0x100922480]stream=0 stream_type=1b pid=1011 > prog_reg_desc=HDMV > [mpegts @ 0x100922480]stream=1 stream_type=81 pid=1100 > prog_reg_desc=HDMV > [mpegts @ 0x100922480]stream=2 stream_type=90 pid=1200 > prog_reg_desc=HDMV > [ac3 @ 0x10092c160]Unsupported bit depth: 0 > [mpegts @ 0x100922480]parser not found for codec hdmv_pgs_subtitle, > packets or times may be invalid. > [h264 @ 0x10092c160]Increasing reorder buffer to 1 > [h264 @ 0x10092c160]no picture ooo > [h264 @ 0x10092c160]no picture ooo > [h264 @ 0x10092c160]no picture > [mpegts @ 0x100922480]Probe buffer size limit 5000000 reached > rfps: 59.666667 0.014040 > rfps: 59.750000 0.006785 > rfps: 59.750000 0.006785 > rfps: 59.833333 0.002139 > rfps: 59.833333 0.002139 > rfps: 59.916667 0.000103 > rfps: 59.940060 0.000000 > rfps: 59.940060 0.000000 > ==> Found video stream: 0 > ======= VIDEO Format ====== > biSize 500 > biWidth 1920 > biHeight 1080 > biPlanes 0 > biBitCount 0 > biCompression 875967048='H264' > biSizeImage 0 > Unknown extra header dump: [0] [0] [0] [1] [9] [10] [0] [0] [0] [1] [27] > [64] [0] [2a] [ac] [2c] [a5] [1] [e0] [8] [9f] [97] [1] [10] [0] [0] > [3e] [90] [0] [1d] [4c] [e] [4] [0] [0] [63] [2e] [a0] [0] [2] [7a] [c4] > [21] [6b] [0] [20] [0] [0] [0] [1] [28] [ee] [3c] [e5] [11] [35] [8] > [6e] [8] [8] [40] [3c] [3] [10] [37] [4a] [14] [87] [4] [88] [4] [9c] > [18] [60] [6e] [c2] [52] [49] [93] [aa] [c9] [b7] [22] [4b] [9b] [b6] > [d8] [82] [8] [11] [13] [8] [c] [18] [34] [68] [d0] [c0] [2c] [2] [4] > [8] [20] [40] [7] [c0] [fc] [8] [20] [40] [7] [de] [c0] [0] [0] [0] [1] > [28] [5b] [8f] [39] [44] [4d] [42] [1b] [82] [2] [10] [f] [0] [c4] [d] > [d2] [85] [21] [c1] [22] [1] [27] [6] [18] [1b] [b5] [c] [8a] [c5] [70] > [b6] [7] [88] [3e] [84] [1] [4] [14] [6] [43] [0] [b3] [81] [ab] [e9] > [49] [26] [4e] [ab] [26] [dc] [89] [2e] [6e] [db] [62] [8] [20] [44] > [4c] [20] [30] [60] [d1] [a3] [43] [0] [b0] [8] [10] [20] [81] [0] [1f] > [3] [f0] [20] [81] [0] [1f] [7d] [8] [91] [a2] [72] [79] [2a] [e4] [ad] > [c9] [4a] [dc] [d1] [18] [98] [80] [40] [8] [20] [84] [10] [81] [0] [8] > [18] [10] [40] [fd] [ff] [c0] [0] [0] [0] [1] [28] [7b] [8f] [3a] [1d] > [11] [20] [c2] [96] [8] [2] [2] [0] [4b] [3] [f0] [7d] [41] [68] [20] > [12] [20] [1c] [70] [20] [60] [fb] [44] [5] [21] [8c] [39] [c1] [6] [7] > [ee] [14] [4] [90] [50] [11] [8] [2] [4e] [6] [af] [a8] [d3] [66] [ba] > [4b] [26] [db] [49] [25] [90] [84] [20] [d2] [95] [8e] [21] [0] [81] [6] > [22] [41] [c0] [10] [1] [f0] [3f] [3] [8] [64] [1c] [1] [0] [1f] [41] > [f8] [3e] [c1] [f8] [3e] [fc] [40] [42] [3b] [19] [c6] [78] [c9] [a7] > [8a] [21] [b3] [94] [50] [a2] [1a] [72] [8b] [4] [46] [36] [73] [83] [f] > [83] [ef] [ff] [f0] [0] [0] [0] [1] [28] [15] [b8] [c6] [ce] [51] [13] > [50] [86] [e0] [80] [84] [3] [c0] [31] [3] [74] [a1] [48] [70] [48] [80] > [49] [c1] [86] [6] [ed] [43] [22] [b1] [5c] [2d] [81] [e2] [f] [a1] [0] > [41] [5] [1] [90] [c0] [2c] [e0] [6a] [fa] [52] [49] [93] [aa] [c9] [b7] > [22] [4b] [9b] [b6] [d8] [82] [8] [11] [13] [8] [c] [18] [34] [68] [d0] > [c0] [2c] [2] [4] [8] [20] [40] [7] [c0] [fc] [8] [20] [40] [7] [df] > [42] [24] [68] [9c] [9e] [4a] [b9] [2b] [72] [52] [b7] [34] [46] [26] > [20] [10] [2] [8] [21] [4] [20] [40] [2] [6] [4] [10] [3f] [7f] [c6] > [c0] > =========================== > [lavf] stream 0: video (h264), -vid 0 > ==> Found audio stream: 1 > ======= WAVE Format ======= > Format Tag: 8192 (0x2000) > Channels: 2 > Samplerate: 48000 > avg byte/sec: 32000 > Block align: 1 > bits/sample: 0 > cbSize: 0 > ================================================================= > ======= > == > [lavf] stream 1: audio (ac3), -aid 0 > [lavf] stream 2: subtitle (pgssub), -sid 0 > LAVF: Program 1 > LAVF: 1 audio and 1 video streams found > LAVF: build 3539044 > VIDEO: [H264] 1920x1080 0bpp 59.940 fps 0.0 kbps ( 0.0 kbyte/s) > [V] filefmt:35 fourcc:0x34363248 size:1920x1080 fps:59.940 > ftime:=0.0167 > Load subtitles in /Volumes/Work/MPX/MediaTest/ > get_path('sub/') -> '/Users/NILTSH/.mplayer/sub/' > Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family > libavcodec version 54.0.102 (internal) > Configuration: --enable-gpl --enable-postproc > INFO: libavcodec init OK! > Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264) > Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders > dec_audio: Allocating 192000 + 131072 = 323072 bytes for output buffer. > FFmpeg's libavcodec audio codec > [AC3 decoder @ 0x100923f50]Value 1606411960.000000 for parameter > 'drc_scale' out of range > [AC3 decoder @ 0x100923f50]Error setting option drc_scale to value > 1606411960. > Could not open codec. > ADecoder init failed :( > ADecoder init failed :( > Requested audio codec family [a52] (afm=liba52) not available. > Enable it at compilation. > Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF > dec_audio: Allocating 8192 bytes for input buffer. > dec_audio: Allocating 16384 + 131072 = 147456 bytes for output buffer. > hwac3: switched to AC3, 256000 bps, 48000 Hz > > AUDIO: 48000 Hz, 2 ch, ac3be, 256.0 kbit/16.67% (ratio: 32000->192000) > Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF) > Building audio filter chain for 48000Hz/2ch/ac3be -> 0Hz/0ch/??... > [libaf] Adding filter dummy > [dummy] Was reinitialized: 48000Hz/2ch/ac3be > [dummy] Was reinitialized: 48000Hz/2ch/ac3be > Trying every known audio driver... > AO: [coreaudio] init([48000Hz][2ch][ac3be][0]) > AO: [coreaudio] got audio output device ID: 34 Name: Built-in Output > AO: [coreaudio] supported format: 96000.0Hz 24bit [lpcm][4][8][1][8][2] > int LE S > AO: [coreaudio] supported format: 88200.0Hz 24bit [lpcm][4][8][1][8][2] > int LE S > AO: [coreaudio] supported format: 48000.0Hz 24bit [lpcm][4][8][1][8][2] > int LE S > AO: [coreaudio] supported format: 44100.0Hz 24bit [lpcm][4][8][1][8][2] > int LE S > AO: [coreaudio] supported format: 96000.0Hz 20bit [lpcm][4][8][1][8][2] > int LE S > AO: [coreaudio] supported format: 88200.0Hz 20bit [lpcm][4][8][1][8][2] > int LE S > AO: [coreaudio] supported format: 48000.0Hz 20bit [lpcm][4][8][1][8][2] > int LE S > AO: [coreaudio] supported format: 44100.0Hz 20bit [lpcm][4][8][1][8][2] > int LE S > AO: [coreaudio] supported format: 96000.0Hz 16bit [lpcm][12][4][1][4][2] > int LE S packed > AO: [coreaudio] supported format: 88200.0Hz 16bit [lpcm][12][4][1][4][2] > int LE S packed > AO: [coreaudio] supported format: 48000.0Hz 16bit [lpcm][12][4][1][4][2] > int LE S packed > AO: [coreaudio] supported format: 44100.0Hz 16bit [lpcm][12][4][1][4][2] > int LE S packed > AO: [coreaudio] supported format: 96000.0Hz 32bit [lpcm][9][8][1][8][2] > float LE U packed > AO: [coreaudio] supported format: 88200.0Hz 32bit [lpcm][9][8][1][8][2] > float LE U packed > AO: [coreaudio] supported format: 48000.0Hz 32bit [lpcm][9][8][1][8][2] > float LE U packed > AO: [coreaudio] supported format: 44100.0Hz 32bit [lpcm][9][8][1][8][2] > float LE U packed > AO: [coreaudio] probe default audio output device about support for > digital s/pdif output: 0 > AO: [coreaudio] source: 48000.0Hz 16bit [lpcm][14][4][1][4][2] int BE S > packed > AO: [coreaudio] using 375 chunks of 512 bytes (buffer len 192000 > bytes) > AO: [coreaudio] 48000Hz 2ch ac3be (2 bytes per sample) > AO: Description: Darwin/Mac OS X native audio output > AO: Author: Timothy J. Wood & Dan Christiansen & Chris Roccati > Building audio filter chain for 48000Hz/2ch/ac3be -> > 48000Hz/2ch/ac3be... > [dummy] Was reinitialized: 48000Hz/2ch/ac3be > [dummy] Was reinitialized: 48000Hz/2ch/ac3be > Starting playback... > Increasing filtered audio buffer size from 0 to 131072 > Unsupported PixelFormat 61 > Unsupported PixelFormat 53 > Unsupported PixelFormat 81 > [ffmpeg] aspect_ratio: 1.777778 > VDec: vo config request - 1920 x 1080 (preferred colorspace: Planar > YV12) > Trying filter chain: vo > Could not find matching colorspace - retrying with -vf scale... > Opening video filter: [scale] > SwScale params: -1 x -1 (-1=no scaling) > Trying filter chain: scale vo > VDec: using Planar YV12 as output csp (no 0) > Movie-Aspect is 1.78:1 - prescaling to correct movie aspect. > VO Config (1920x1080->1920x1080,flags=0,'MPlayer',0x32315659) > SwScaler: reducing / aligning filtersize 1 -> 4 > SwScaler: reducing / aligning filtersize 1 -> 4 > SwScaler: reducing / aligning filtersize 1 -> 1 > SwScaler: reducing / aligning filtersize 5 -> 4 > [swscaler @ 0x10091edc0]BICUBIC scaler, from yuv420p to yuyv422 using > MMX2 > [swscaler @ 0x10091edc0]1920x1080 -> 1920x1080 > [swscaler @ 0x10091edc0]lum srcW=1920 srcH=1080 dstW=1920 dstH=1080 > xInc=65536 yInc=65536 > [swscaler @ 0x10091edc0]chr srcW=960 srcH=540 dstW=960 dstH=1080 > xInc=65536 yInc=32768 > REQ: flags=0x37 req=0x0 > VO: [corevideo] 1920x1080 => 1920x1080 Packed YUY2 > VO: Description: Mac OS X Core Video > VO: Author: Nicolas Plourde > [ASPECT] Warning: No suitable new res found! > *** [scale] Exporting mp_image_t, 1920x1080x12bpp YUV planar, 3110400 > bytes > *** [vo] Allocating mp_image_t, 1920x1080x16bpp YUV packed, 4147200 > bytes > [swscaler @ 0x10091edc0]Warning: data is not aligned! This can lead to a > speedloss > Fontconfig failed to select a font. Trying without fontconfig... > get_path('subfont.ttf') -> '/Users/NILTSH/.mplayer/subfont.ttf' > New_Face failed. Maybe the font path is wrong. > Please supply the text font file (~/.mplayer/subfont.ttf). > subtitle font: load_sub_face failed. > Fontconfig failed to select a font. Trying without fontconfig... > get_path('subfont.ttf') -> '/Users/NILTSH/.mplayer/subfont.ttf' > New_Face failed. Maybe the font path is wrong. > Please supply the text font file (~/.mplayer/subfont.ttf). > subtitle font: load_sub_face failed. > A: 0.8 V: 0.9 A-V: -0.033 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0 > [h264 @ 0x10092c160]Increasing reorder buffer to 1 > [h264 @ 0x10092c160]no picture ooo > [h264 @ 0x10092c160]no picture ooo > [h264 @ 0x10092c160]no picture > pts value < previous > A: 1.7 V: 0.9 A-V: 0.719 ct: -0.006 0/ 0 ??% ??% ??,?% 3 0 > Uninit audio filters... > [libaf] Removing filter dummy > Uninit audio: hwac3 > Uninit video: ffmpeg > > Exiting... (Quit) > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user -- Mit besten Gr??en, Reindl Harald the lounge interactive design GmbH A-1060 Vienna, Hofm?hlgasse 17 CTO / software-development / cms-solutions p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40 icq: 154546673, http://www.thelounge.net/ http://www.thelounge.net/signature.asc.what.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From bostjan.strojan at gmail.com Fri Feb 3 15:34:57 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Fri, 3 Feb 2012 15:34:57 +0100 Subject: [FFmpeg-user] crf mode in libvpx In-Reply-To: References: Message-ID: > On Fri, Feb 3, 2012 at 12:32 PM, Carl Eugen Hoyos wrote: >> Hard to believe... >> (I tested vorbis before posting my first mail in this thread.) seems to be some sort of muxing problem: - vlc on osx - no sound or occasional chirp - chromium - horrible video skipping, sound working - mplayerx on osx - playback almost ok, sound and video b. From daverice at mac.com Fri Feb 3 16:14:31 2012 From: daverice at mac.com (Dave Rice) Date: Fri, 03 Feb 2012 10:14:31 -0500 Subject: [FFmpeg-user] pts issues when copying mpeg2video from VOB to QuickTime In-Reply-To: References: <18C9D815-2BF9-4AAF-B514-1787E485301F@mac.com> Message-ID: On Feb 3, 2012, at 5:07 AM, Carl Eugen Hoyos wrote: > Dave Rice mac.com> writes: > >> ffmpeg -i VTS_01_1.VOB -vcodec copy -an VTS.mov > > Feel free to open a ticket if you can provide a sample. Ok, ticket and samples are at http://ffmpeg.org/trac/ffmpeg/ticket/502. Thanks, Dave Rice From cehoyos at ag.or.at Fri Feb 3 16:23:12 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 Feb 2012 15:23:12 +0000 (UTC) Subject: [FFmpeg-user] the latest ffmpeg seams broke AC3 Decoder in mplayer References: Message-ID: Zongyao Qu gmail.com> writes: > I don't know whether it is OK to report such kind of issue, since it is not > a ffmpeg only issue. It is definitely not ok. Please try make distclean && ./configure && make if the problem is still reproducible, please report on mplayer-users. Carl Eugen From tim.nicholson at bbc.co.uk Fri Feb 3 16:30:53 2012 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Fri, 03 Feb 2012 15:30:53 +0000 Subject: [FFmpeg-user] Burning timecode into mov file In-Reply-To: <1328279510419-4354750.post@n4.nabble.com> References: <1328264137614-4354188.post@n4.nabble.com> <20120203103323.GA31477@leki> <1328279510419-4354750.post@n4.nabble.com> Message-ID: <4F2BFDAD.6070904@bbc.co.uk> On 03/02/12 14:31, bartom wrote: > Hi, > Many thanks for your answers and your help. > > I tried using ffprobe to extract the timecode stream as you suggest, but > ffprobe doesn't seem to be able to decode the timecode stream. I ran the > command: > > ffprobe -show_streams test.mov > > but I get the message 'Unsupported codec with id 0 for input stream 2' (the > timecode stream). Do I need to specify some other option so that ffprobe can > decode the timecode stream? No! Look again at your output.... > [....] > Stream #0:2(eng): Data: none (tmcd / 0x64636D74) > Metadata: > creation_time : 2011-04-26 06:45:13 > handler_name : ?Apple Alias Data Handler > timecode : 18:27:15:17 what does that say________/ > [....] and this_______ \ > TAG:timecode=18:27:15:17 > [....] -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From zongyao.qu at gmail.com Fri Feb 3 16:35:04 2012 From: zongyao.qu at gmail.com (Zongyao Qu) Date: Fri, 3 Feb 2012 15:35:04 +0000 (UTC) Subject: [FFmpeg-user] =?utf-8?q?the_latest_ffmpeg_seams_broke_AC3_Decoder?= =?utf-8?q?_in=09mplayer?= References: Message-ID: Carl Eugen Hoyos ag.or.at> writes: > Please try make distclean && ./configure && make > if the problem is still reproducible, please report > on mplayer-users. > I use make distclean every time I make mplayer. This does not make the magic. From tim.nicholson at bbc.co.uk Fri Feb 3 16:41:01 2012 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Fri, 03 Feb 2012 15:41:01 +0000 Subject: [FFmpeg-user] Overlay filter broken by commit 151ecc2aecd81718e2520936dd3c537d7e6fe2fc causes segfault Message-ID: <4F2C000D.8060501@bbc.co.uk> Simple command line:- ffmpeg -i BRD35721202.mxf \ -vf "movie=logo.png [logo]; [in][logo] overlay=6:4 " \ -c:v prores -profile:v 0 \ -an -y ./BRD35721202-dog.mov Fri Feb 3 15:26:05 GMT 2012 Processing main files.... ffmpeg version N-37401-g151ecc2-by_Tim Copyright (c) 2000-2012 the FFmpeg developers built on Feb 3 2012 14:59:35 with gcc 4.6.2 configuration: --extra-version=by_Tim --enable-static --disable-shared --enable-gpl --enable-nonfree --enable-version3 --prefix=/mnt/msds-store-0/tim/ffmpeg-tux/usr/local --libdir=/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/lib64 --enable-runtime-cpudetect --extra-cflags='-static -I/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/include' --extra-ldflags='-static -L/mnt/msds-store-0/tim/ffmpeg-tux/usr/local/lib64' --progs-suffix=-bisect-bad --enable-libfaac --enable-libx264 --enable-libfreetype libavutil 51. 36.100 / 51. 36.100 libavcodec 54. 0.102 / 54. 0.102 libavformat 54. 0.100 / 54. 0.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 [mxf @ 0x1776bc0] could not resolve material track sequence strong ref Input #0, mxf, from 'BRD35721202.mxf': Duration: 00:00:05.72, start: 0.000000, bitrate: 225892 kb/s Stream #0:0: Video: v210, yuv422p10le, 720x576, 25 fps, 25 tbr, 25 tbn, 25 tbc Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s Stream #0:3: Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s Stream #0:4: Audio: pcm_s24le, 48000 Hz, 1 channels, s32, 1152 kb/s [buffer @ 0x17a6de0] w:720 h:576 pixfmt:yuv422p10le tb:1/1000000 sar:0/1 sws_param: Segmentation fault ffmpeg -i BRD35721202.mxf -vf "movie=logo.png [logo]; [in][logo] overlay=6:4 " -c:v prores -profile:v 0 -an -y ./BRD35721202-dog.mov However the same command under the previous (non tracked) commit 97da38c99bf5ad619ea15f2f1b4c050f0f44d11f works fine.... -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From bartomas at gmail.com Fri Feb 3 20:02:02 2012 From: bartomas at gmail.com (bartom) Date: Fri, 3 Feb 2012 11:02:02 -0800 (PST) Subject: [FFmpeg-user] Burning timecode into mov file In-Reply-To: <4F2BFDAD.6070904@bbc.co.uk> References: <1328264137614-4354188.post@n4.nabble.com> <20120203103323.GA31477@leki> <1328279510419-4354750.post@n4.nabble.com> <4F2BFDAD.6070904@bbc.co.uk> Message-ID: <1328295722869-4355495.post@n4.nabble.com> Thanks for your reply and pointing this out. I see now. I ran the command: ffprobe -show_packets test.mov and in the output of this command containing all the packets, there is only a single packet of the timecode stream (all the rest are audio and video packets). This is the packet of the timecode stream: [PACKET] codec_type=data stream_index=2 pts=0 pts_time=0.000000 dts=0 dts_time=0.000000 duration=6371400 duration_time=2548.560000 size=4 pos=39369995192 flags=K [/PACKET] Is this normal, that there is only one packet in the timecode stream? I had a total misconception concerning the timecode track. I thought that for each video frame, the timecode stream has a frame storing a different timecode value. But I suppose I was wrong: each video file has only one value in the timecode track: the TAG:timecode=18:27:15:17 that you pointed out, which is the start timecode, and that's it? Many thanks again. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Burning-timecode-into-mov-file-tp4354188p4355495.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Fri Feb 3 18:41:29 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Fri, 3 Feb 2012 18:41:29 +0100 Subject: [FFmpeg-user] no encoding of VP6 flv files In-Reply-To: <4F2BE1B7.7040205@waesche.org> References: <4F2BE1B7.7040205@waesche.org> Message-ID: <201202031841.29444.cehoyos@ag.or.at> On Friday 03 February 2012 02:31:35 pm Marc Waesche wrote: > I use ffmpeg for merging a video track (flv) and a audio track (mp3) > together without new encoding. It runs on a debian linux server. For > building a new header I use flvtool2. That works perfect with a flv file > encoded with h.264 as video input but does not work with flv files > encoded with VP6. I need this to use alpha channel. Is this a bug or is > VP6 not provided by ffmpeg? Encoding to VP6A (VP6 with transparency support) is not supported but ... > Here is the command line: ffmpeg -i > "video.flv" -i "audio.mp3" -vcodec copy -acodec copy "video_and_audio.flv" ... this command line does not encode anything but only tries to remux. Could you test attached patch? Thank you, Carl Eugen -------------- next part -------------- diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c index 3f034bc..fee22f6 100644 --- a/libavformat/flvenc.c +++ b/libavformat/flvenc.c @@ -39,6 +39,7 @@ static const AVCodecTag flv_video_codec_ids[] = { {CODEC_ID_FLASHSV2, FLV_CODECID_SCREEN2}, {CODEC_ID_VP6F, FLV_CODECID_VP6 }, {CODEC_ID_VP6, FLV_CODECID_VP6 }, + {CODEC_ID_VP6A, FLV_CODECID_VP6A }, {CODEC_ID_H264, FLV_CODECID_H264 }, {CODEC_ID_NONE, 0} }; @@ -407,7 +408,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) // av_log(s, AV_LOG_DEBUG, "type:%d pts: %"PRId64" size:%d\n", enc->codec_type, timestamp, size); if(enc->codec_id == CODEC_ID_VP6 || enc->codec_id == CODEC_ID_VP6F || - enc->codec_id == CODEC_ID_AAC) + enc->codec_id == CODEC_ID_VP6A || enc->codec_id == CODEC_ID_AAC) flags_size= 2; else if(enc->codec_id == CODEC_ID_H264 || enc->codec_id == CODEC_ID_MPEG4) flags_size= 5; @@ -477,7 +478,7 @@ static int flv_write_packet(AVFormatContext *s, AVPacket *pkt) if(flags_size) avio_w8(pb,flags); - if (enc->codec_id == CODEC_ID_VP6) + if (enc->codec_id == CODEC_ID_VP6 || enc->codec_id == CODEC_ID_VP6A) avio_w8(pb,0); if (enc->codec_id == CODEC_ID_VP6F) avio_w8(pb, enc->extradata_size ? enc->extradata[0] : 0); From andreas.web.space at gmail.com Fri Feb 3 14:29:22 2012 From: andreas.web.space at gmail.com (Andre Andre) Date: Fri, 3 Feb 2012 14:29:22 +0100 Subject: [FFmpeg-user] Question about including ffmpeg.exe in a freeware application Message-ID: Hello, I would like to include the file ffmpeg.exe in my application (used to convert videos with CLI) that is freeware. I would like to include the ffmpeg.exe file in the setup package of my application and my question is: can I do this ? Regards, Andreas From bostjan.strojan at gmail.com Fri Feb 3 21:55:20 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Fri, 3 Feb 2012 21:55:20 +0100 Subject: [FFmpeg-user] crf mode in libvpx In-Reply-To: References: Message-ID: 2012/2/3 Bo?tjan Strojan : >> On Fri, Feb 3, 2012 at 12:32 PM, Carl Eugen Hoyos wrote: >>> Hard to believe... >>> (I tested vorbis before posting my first mail in this thread.) > > seems to be some sort of muxing problem: > > - vlc on osx - no sound or occasional chirp > - chromium - horrible video skipping, sound working > - mplayerx on osx - playback almost ok, sound and video p.s. almost certainly something weird with muxing as mkvmerge -o "mkv.webm" "ffmpeg.webm" will make mkv.webm playback fine everywhere. b. From marc at waesche.org Fri Feb 3 23:51:15 2012 From: marc at waesche.org (Marc Waesche) Date: Fri, 03 Feb 2012 23:51:15 +0100 Subject: [FFmpeg-user] no encoding of VP6 flv files In-Reply-To: <201202031841.29444.cehoyos@ag.or.at> References: <4F2BE1B7.7040205@waesche.org> <201202031841.29444.cehoyos@ag.or.at> Message-ID: <4F2C64E3.7010102@waesche.org> > Encoding to VP6A (VP6 with transparency support) is not supported but ... > >> Here is the command line: ffmpeg -i >> "video.flv" -i "audio.mp3" -vcodec copy -acodec copy "video_and_audio.flv" > ... this command line does not encode anything but only tries to remux. > > Could you test attached patch? DAMN!! THAT WORKS!!!! I read about 20 times today that this is impossible! Carl, I will love you, your children and the children of your children for the next 300 years!! This solution was VERY important for my! Other options would have cost much too much server performance and the whole project would have been in danger. Carl, you seem to work for the ffmpeg project. Can I donate $50 for it? Best regards Marc From h.reindl at thelounge.net Sat Feb 4 00:09:04 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 04 Feb 2012 00:09:04 +0100 Subject: [FFmpeg-user] no encoding of VP6 flv files In-Reply-To: <4F2C64E3.7010102@waesche.org> References: <4F2BE1B7.7040205@waesche.org> <201202031841.29444.cehoyos@ag.or.at> <4F2C64E3.7010102@waesche.org> Message-ID: <4F2C6910.2040205@thelounge.net> Am 03.02.2012 23:51, schrieb Marc Waesche: >> Encoding to VP6A (VP6 with transparency support) is not supported but ... >> >>> Here is the command line: ffmpeg -i >>> "video.flv" -i "audio.mp3" -vcodec copy -acodec copy "video_and_audio.flv" >> ... this command line does not encode anything but only tries to remux. >> >> Could you test attached patch? > DAMN!! THAT WORKS!!!! I read about 20 times today that this is impossible! Carl, I will love you, your children and > the children of your children for the next 300 years!! This solution was VERY important for my! Other options would > have cost much too much server performance and the whole project would have been in danger. Carl, you seem to work > for the ffmpeg project. Can I donate $50 for it? gratulations! i never minded this would be possible BTW: what happened shortly that the ffmpeg-development seems to be hyperactive currently (meant as compliment!)? feels like the failed libav-fork released energy/motivation/whatelse in the main project however - only for the fact that Michael and Carl are speaking my native language makes the decision really easy - great work! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From cehoyos at ag.or.at Sat Feb 4 01:43:01 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 4 Feb 2012 00:43:01 +0000 (UTC) Subject: [FFmpeg-user] Question about including ffmpeg.exe in a freeware application References: Message-ID: Andre Andre gmail.com> writes: > I would like to include the file ffmpeg.exe in my application (used to > convert videos with CLI) that is freeware. I would like to include the > ffmpeg.exe file in the setup package of my application and my question is: > can I do this ? Yes. Please read the license that comes with the source code of FFmpeg and follow all needs that are listed there. Some points are below and on http://ffmpeg.org/legal.html If your application does not link against a library based on FFmpeg but only calls the ffmpeg executable, there are no restrictions for your application (you may even forbid reverse engineering), but don't forget to: Tell your users that the installer installs FFmpeg. Tell your users about FFmpeg's license. Tell your users where they find the *exact* source code that was used to compile FFmpeg (that means you have to host a source package) Do not tell your users that you "own" FFmpeg or similar. Carl Eugen From cehoyos at ag.or.at Sat Feb 4 01:44:37 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 4 Feb 2012 00:44:37 +0000 (UTC) Subject: [FFmpeg-user] crf mode in libvpx References: Message-ID: Bo?tjan Strojan gmail.com> writes: > > (I tested vorbis before posting my first mail in this thread.) > > maybe my compile behaves. Please test ffmpeg -i input -q:v 2 -q:a 100 out.webm If you have problems, a *reproducible* bug report is very welcome! Carl Eugen From master at io.ua Sat Feb 4 01:09:22 2012 From: master at io.ua (Andrew Gora) Date: Sat, 4 Feb 2012 02:09:22 +0200 Subject: [FFmpeg-user] Is it possible to add audio without re-encoding? Message-ID: <7830940921.20120204020922@io.ua> Hi, There are 30.000 videos converted to H.264 without audio by mistake. Would you please advice, is it possible to take just audio from original videos and add to the converted ones without re-encoding? BIG thanks in advance, Andrew From lou at lrcd.com Sat Feb 4 02:50:50 2012 From: lou at lrcd.com (Lou) Date: Fri, 3 Feb 2012 16:50:50 -0900 Subject: [FFmpeg-user] Is it possible to add audio without re-encoding? In-Reply-To: <7830940921.20120204020922@io.ua> References: <7830940921.20120204020922@io.ua> Message-ID: <20120203165050.23eaa7b9@lrcd.com> On Sat, 4 Feb 2012 02:09:22 +0200 Andrew Gora wrote: > Hi, > > > There are 30.000 videos converted to H.264 without audio by mistake. > > Would you please advice, is it possible to take just audio from > original videos and add to the converted ones without re-encoding? > > > BIG thanks in advance, > Andrew Yes. This example will take the first video stream from video.mp4 and the first audio stream from audio.mp4 and mux them into out.mp4 without re-encoding. ffmpeg -i video.mp4 -i audio.mp4 -map 0:0 -map 1:1 -c copy out.mp4 You may want to add the "-shortest" option if the durations of the video and audio inputs vary for some reason. The -map option has seen some syntax updates lately. See Changelog for more detailed information. From bostjan.strojan at gmail.com Sat Feb 4 12:48:20 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Sat, 4 Feb 2012 12:48:20 +0100 Subject: [FFmpeg-user] crf mode in libvpx In-Reply-To: References: Message-ID: On Sat, Feb 4, 2012 at 1:44 AM, Carl Eugen Hoyos wrote: > Please test > ffmpeg -i input -q:v 2 -q:a 100 out.webm > > If you have problems, a *reproducible* bug report is very welcome! > > Carl Eugen a. ffmpeg -i input -strict -2 -q:v 2 -q:a 100 out.webm returns file (that plays fine everywhere), but has a bitrate of 359 Kbps - (thats for a 1280x720 25fps input) - which suggests that -q:v 2 was probably ignored. dump: ffmpeg -i /Users/b/Desktop/test.mov -strict -2 -q:v 2 -q:a 100 /Users/b/Desktop/test.webm ffmpeg version N-37510-g8c48652 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 2 2012 22:02:52 with clang 3.0 (tags/Apple/clang-211.12) configuration: --prefix=/Volumes/tempdisk/sw --enable-gpl --enable-libx264 --enable-libvpx --cc=clang --enable-runtime-cpudetect libavutil 51. 37.100 / 51. 37.100 libavcodec 54. 0.102 / 54. 0.102 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 61.100 / 2. 61.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/b/Desktop/test.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2010-10-16 10:48:30 Duration: 00:02:30.44, start: 0.000000, bitrate: 19326 kb/s Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1280x720, 17783 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc Metadata: creation_time : 2010-10-16 10:48:30 handler_name : ?Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: creation_time : 2010-10-16 10:48:30 handler_name : ?Apple Alias Data Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2010-10-16 10:48:41 handler_name : ?Apple Alias Data Handler timecode : 01:00:00:00 Incompatible pixel format 'yuv422p10le' for codec 'libvpx', auto-selecting format 'yuv420p' [buffer @ 0x10d418180] w:1280 h:720 pixfmt:yuv422p10le tb:1/1000000 sar:1/1 sws_param: [buffersink @ 0x10d4183c0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x10d4187c0] w:1280 h:720 fmt:yuv422p10le -> w:1280 h:720 fmt:yuv420p flags:0x4 [libvpx @ 0x7fa9810b3800] v1.0.0 Output #0, webm, to '/Users/b/Desktop/test.webm': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2010-10-16 10:48:30 encoder : Lavf54.0.100 Stream #0:0(eng): Video: vp8, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 200 kb/s, 1k tbn, 25 tbc Metadata: creation_time : 2010-10-16 10:48:30 handler_name : ?Apple Alias Data Handler Stream #0:1(eng): Audio: vorbis, 48000 Hz, 2 channels, s16, 128 kb/s Metadata: creation_time : 2010-10-16 10:48:30 handler_name : ?Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (prores -> libvpx) Stream #0:1 -> #0:1 (pcm_s16le -> vorbis) Press [q] to stop, [?] for help frame= 25 fps= 0 q=0.0 size= 4kB time=00:00:00.04 bitrate= 760.8kbits/s frame= 41 fps= 40 q=0.0 size= 36kB time=00:00:00.68 bitrate= 430.3kbits/s frame= 54 fps= 35 q=0.0 size= 68kB time=00:00:01.20 bitrate= 462.3kbits/s (some lines cut here) frame= 3724 fps= 28 q=0.0 size= 7884kB time=00:02:28.00 bitrate= 436.4kbits/s frame= 3735 fps= 28 q=0.0 size= 7916kB time=00:02:28.44 bitrate= 436.9kbits/s frame= 3750 fps= 28 q=0.0 size= 7948kB time=00:02:29.04 bitrate= 436.9kbits/s frame= 3761 fps= 28 q=0.0 Lsize= 8028kB time=00:02:30.44 bitrate= 437.1kbits/s video:3220kB audio:4729kB global headers:3kB muxing overhead 0.944050% b. ffmpeg -i file.ogg -i file.webm -acodec copy -vcodec copy -f webm out.webm seems to output somehow broken out.webm (everytime), external (oggenc or aotuv oggenc2) or internal vorbis encoder, eternal (vpxenc) or internal vp8 encoder. b. From bostjan.strojan at gmail.com Sat Feb 4 12:53:22 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Sat, 4 Feb 2012 12:53:22 +0100 Subject: [FFmpeg-user] crf mode in libvpx In-Reply-To: References: Message-ID: p.s. This seems to produce valid and hi-quality "quality-based" output, 2-pass cq encode; $ffmpeg -i input -pix_fmt yuv420p -f yuv4mpegpipe - 2>/dev/null | $vp8 -v --good -p 2 --pass=1 --bias-pct=100 --fpf="$files.log" --threads=8 --target-bitrate=55000 --end-usage=cq --cq-level=20 --kf-min-dist=0 --kf-max-dist=100 --auto-alt-ref=1 --lag-in-frames=16 --drop-frame=0 --min-q=0 --max-q=60 - -o output $ffmpeg -i input -pix_fmt yuv420p -f yuv4mpegpipe - 2>/dev/null | $vp8 -v --good -p 2 --pass=2 --bias-pct=100 --fpf="$files.log" --threads=8 --target-bitrate=55000 --end-usage=cq --cq-level=20 --kf-min-dist=0 --kf-max-dist=100 --auto-alt-ref=1 --lag-in-frames=16 --drop-frame=0 --min-q=0 --max-q=60 - -o output (followed by mkvmerge to add separatedly encoded vorbis audio.ogg) From jdxsolutions at gmail.com Sat Feb 4 16:59:12 2012 From: jdxsolutions at gmail.com (John Dexter) Date: Sat, 4 Feb 2012 15:59:12 +0000 Subject: [FFmpeg-user] Building a video on the fly? Message-ID: First post, please be gentle! I'm debating whether I need to use the libraries programatically or can manage with the command-line tool. My app does 3D rendering and the idea is to build a video from the rendered frames. Now I know I can save all frames to individual image files and then build a video, but I'm not sure it will be practical in our case. So I wondered if ffmpeg command-line tools provide any way to build a video "on the fly" - e.g each rendered frame gets saved to a file and ffmpeg is told to add this to an existing video, then the image file is deleted. Since I'm pretty sure video encoding requires looking forwards (and maybe backwards?) several frames it seems a bit of a long shot, but it seems worth checking first. Thanks, John. From de.techno at gmail.com Sat Feb 4 11:53:21 2012 From: de.techno at gmail.com (dE .) Date: Sat, 04 Feb 2012 16:23:21 +0530 Subject: [FFmpeg-user] the latest ffmpeg seams broke AC3 Decoder in mplayer In-Reply-To: References: Message-ID: <4F2D0E21.2070104@gmail.com> On 02/03/12 21:05, Zongyao Qu wrote: > Carl Eugen Hoyos ag.or.at> writes: > >> Please try make distclean&& ./configure&& make >> if the problem is still reproducible, please report >> on mplayer-users. >> > I use make distclean every time I make mplayer. > This does not make the magic. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Does the file play with ffplay? From av at bsbc.nb.ca Sat Feb 4 17:26:33 2012 From: av at bsbc.nb.ca (Anthony Brown) Date: Sat, 04 Feb 2012 12:26:33 -0400 Subject: [FFmpeg-user] Building a video on the fly? In-Reply-To: References: Message-ID: <4F2D5C39.70606@bsbc.nb.ca> On 12-02-04 11:59 AM, John Dexter wrote: > First post, please be gentle! > > I'm debating whether I need to use the libraries programatically or can > manage with the command-line tool. My app does 3D rendering and the idea is > to build a video from the rendered frames. > > Now I know I can save all frames to individual image files and then build a > video, but I'm not sure it will be practical in our case. So I wondered if > ffmpeg command-line tools provide any way to build a video "on the fly" - > e.g each rendered frame gets saved to a file and ffmpeg is told to add this > to an existing video, then the image file is deleted. Since I'm pretty sure > video encoding requires looking forwards (and maybe backwards?) several > frames it seems a bit of a long shot, but it seems worth checking first. The command line tool can certainly convert a folder full of images into a video file, so you could at the very least build the video after all the frames were rendered. For on the fly you might get away with converting each frame into a very short video and then concatenating it to the previous frames, choose a video format that makes this easy to do. -- Anthony Brown Audiovisual coordinator Brunswick Street Baptist Church Telephone: (506)-458-8348 (leave message) Email: av at bsbc.nb.ca -------------- next part -------------- A non-text attachment was scrubbed... Name: av.vcf Type: text/x-vcard Size: 163 bytes Desc: not available URL: From jdxsolutions at gmail.com Sat Feb 4 17:46:14 2012 From: jdxsolutions at gmail.com (John Dexter) Date: Sat, 4 Feb 2012 16:46:14 +0000 Subject: [FFmpeg-user] Building a video on the fly? In-Reply-To: <4F2D5C39.70606@bsbc.nb.ca> References: <4F2D5C39.70606@bsbc.nb.ca> Message-ID: On 4 February 2012 16:26, Anthony Brown wrote: > On 12-02-04 11:59 AM, John Dexter wrote: > >> First post, please be gentle! >> >> I'm debating whether I need to use the libraries programatically or can >> manage with the command-line tool. My app does 3D rendering and the idea >> is >> to build a video from the rendered frames. >> >> Now I know I can save all frames to individual image files and then build >> a >> video, but I'm not sure it will be practical in our case. So I wondered if >> ffmpeg command-line tools provide any way to build a video "on the fly" - >> e.g each rendered frame gets saved to a file and ffmpeg is told to add >> this >> to an existing video, then the image file is deleted. Since I'm pretty >> sure >> video encoding requires looking forwards (and maybe backwards?) several >> frames it seems a bit of a long shot, but it seems worth checking first. >> > > The command line tool can certainly convert a folder full of images into a > video file, so you could at the very least build the video after all the > frames were rendered. For on the fly you might get away with converting > each frame into a very short video and then concatenating it to the > previous frames, choose a video format that makes this easy to do. > > > Is there a way to use ffmpeg in the "give it a folder full of files" way, but where it will sit waiting for new files to appear? So that the video can be constructed 'live' but the algorithms/codecs can still cache multiple frames as they desire. So basically I tell it "build a video from files in this dir", and then my app dumps screenshots into that dir as it runs. Thanks, John From master at io.ua Sat Feb 4 17:47:06 2012 From: master at io.ua (Andrew Gora) Date: Sat, 4 Feb 2012 18:47:06 +0200 Subject: [FFmpeg-user] Is it possible to add audio without re-encoding? Message-ID: <14727337109.20120204184706@io.ua> >> Hi, >> >> >> There are 30.000 videos converted to H.264 without audio by mistake. >> >> Would you please advice, is it possible to take just audio from >> original videos and add to the converted ones without re-encoding? >> >> >> BIG thanks in advance, >> Andrew > > Yes. This example will take the first video stream from video.mp4 and > the first audio stream from audio.mp4 and mux them into out.mp4 without > re-encoding. > > ffmpeg -i video.mp4 -i audio.mp4 -map 0:0 -map 1:1 -c copy out.mp4 > > You may want to add the "-shortest" option if the durations of the > video and audio inputs vary for some reason. The -map option has seen > some syntax updates lately. See Changelog for more detailed information. Thank You! But something goes wrong, and result file is 0 bytes weight. 00030229.mp4 has audio: /usr/local/ffmpeg-0.10/bin/ffmpeg -i /farm-video/img_v/mp4/0003/02/00030229.flv -i /farm-video/img_v/mp4/0003/02/00030229.mp4 -map 0:0 -map 1:1 -c copy -y /farm-video/img_v/mp4/0003/02/00030229_1.flv ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers built on Jan 30 2012 11:57:43 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6) configuration: --prefix=/usr/local/ffmpeg-0.10 --enable-shared --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-nonfree --enable-gpl --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-libfaac --enable-libx264 --enable-avfilter --enable-postproc --enable-version3 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 [flv @ 0xd8f3a0] Stream discovered after head already parsed [flv @ 0xd8f3a0] Could not find codec parameters (Audio: none, 0 channels) Input #0, flv, from '/farm-video/img_v/mp4/0003/02/00030229.flv': Metadata: lasttimestamp : 480 audiosize : 7632317 minor_version : 512 datasize : 47072783 compatible_brands: isomiso2avc1mp41 totalframes : 11998 creation_time : 1970-01-01 00:00:00 hasAudio : true hasCuePoints : false hasKeyframes : true hasMetadata : true hasVideo : true metadatacreator : flvtool++ (Facebook, Motion project, dweatherford) videosize : 38936044 canSeekToEnd : true major_brand : isom encoder : Lavf53.31.100 Duration: 00:07:59.92, start: 0.080000, bitrate: 652 kb/s Stream #0:0: Audio: none, 0 channels Stream #0:1: Video: h264 (Main), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 25 tbr, 1k tbn, 50 tbc Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/farm-video/img_v/mp4/0003/02/00030229.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 1970-01-01 00:00:00 encoder : Lavf52.31.0 Duration: 00:07:59.88, start: 0.000000, bitrate: 997 kb/s Stream #1:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 864 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc Metadata: creation_time : 1970-01-01 00:00:00 handler_name : .VideoHandler Stream #1:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 127 kb/s Metadata: creation_time : 1970-01-01 00:00:00 handler_name : [flv @ 0xf5ef60] sample rate not set Output #0, flv, to '/farm-video/img_v/mp4/0003/02/00030229_1.flv': Metadata: lasttimestamp : 480 audiosize : 7632317 minor_version : 512 datasize : 47072783 compatible_brands: isomiso2avc1mp41 totalframes : 11998 creation_time : 1970-01-01 00:00:00 hasAudio : true hasCuePoints : false hasKeyframes : true hasMetadata : true hasVideo : true metadatacreator : flvtool++ (Facebook, Motion project, dweatherford) videosize : 38936044 canSeekToEnd : true major_brand : isom encoder : Lavf53.31.100 Stream #0:0: Audio: none, 0 channels Stream #0:1(und): Audio: aac, 44100 Hz, stereo, 127 kb/s Metadata: creation_time : 1970-01-01 00:00:00 handler_name : Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:1 -> #0:1 (copy) Could not write header for output file #0 (incorrect codec parameters ?) From nicolas.george at normalesup.org Sat Feb 4 18:17:22 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Sat, 4 Feb 2012 18:17:22 +0100 Subject: [FFmpeg-user] Building a video on the fly? In-Reply-To: References: Message-ID: <20120204171722.GA20718@phare.normalesup.org> Le sextidi 16 pluvi?se, an CCXX, John Dexter a ?crit?: > Now I know I can save all frames to individual image files and then build a > video, but I'm not sure it will be practical in our case. So I wondered if > ffmpeg command-line tools provide any way to build a video "on the fly" - > e.g each rendered frame gets saved to a file and ffmpeg is told to add this > to an existing video, then the image file is deleted. Since I'm pretty sure > video encoding requires looking forwards (and maybe backwards?) several > frames it seems a bit of a long shot, but it seems worth checking first. If your content is constant format and framerate, you can just concatenate the uncompressed frames and obtain a rawvideo steam that the ffmpeg command line tool can handle seamlessly. If the content is not constant, especially with regard to framerate, you need some kind of container format to carry the information, and that makes things more complicated. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From jim.holmstroem at gmail.com Sat Feb 4 19:15:14 2012 From: jim.holmstroem at gmail.com (=?ISO-8859-1?Q?Jim_Holmstr=F6m?=) Date: Sat, 4 Feb 2012 19:15:14 +0100 Subject: [FFmpeg-user] Problems cutting out part of video with ffmpeg Message-ID: Hi guys, I'm having some troubles cutting out a part of video with ffmpeg and have tried asking about it at superuser forum without any luck. http://superuser.com/questions/385303/unable-to-cut-out-part-of-video-with-ffmpeg I'm trying with: ffmpeg -ss 01:58 -t 21 -i row.avi -vcodec copy row_cut.avi and ffmpeg -ss 1 -i row.avi -vcodec copy -t 3 row_cut.avi and getting this output with the latest ffmpeg (with a slight variation since the second one is a shorter cut) ffmpeg version git-2012-02-02-c853124 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 2 2012 23:17:50 with gcc 4.6.1 configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable --libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab libavutil 51. 37.100 / 51. 37.100 libavcodec 54. 0.102 / 54. 0.102 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 61.100 / 2. 61.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, avi, from 'row.avi': Duration: 00:03:13.93, start: 0.000000, bitrate: 46210 kb/s Stream #0:0: Video: rawvideo, pal8, 640x300, 30 tbr, 30 tbn, 30 tbc File 'row_cut.avi' already exists. Overwrite ? [y/N] y Output #0, avi, to 'row_cut.avi': Metadata: ISFT : Lavf54.0.100 Stream #0:0: Video: rawvideo, pal8, 640x300, q=2-31, 30 tbn, 30 tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 631 fps=125 q=-1.0 Lsize= 118334kB time=00:00:21.03 bitrate=46088.4kbits/s video:118312kB audio:0kB global headers:0kB muxing overhead 0.018043% Where I get at least a 21s (or 3s in the second case) video as output and no apparent errors but the video won't play in VLC (ticker rolls but only displays VLC-logo) nor mplayer ("Internal data stream error"). Posted the output file on my homepage http://www.slimjim.name/video/row_cut.avi if you want to check the file and I'm sorry but can't post the input file. Thanks beforehand and ffmpeg rocks! //Jim From lou at lrcd.com Sat Feb 4 20:34:33 2012 From: lou at lrcd.com (Lou) Date: Sat, 4 Feb 2012 10:34:33 -0900 Subject: [FFmpeg-user] Is it possible to add audio without re-encoding? In-Reply-To: <14727337109.20120204184706@io.ua> References: <14727337109.20120204184706@io.ua> Message-ID: <20120204103433.4b4bb194@lrcd.com> Please keep your replies within the relevant thread if possible. On Sat, 4 Feb 2012 18:47:06 +0200 Andrew Gora wrote: > >> Hi, > >> > >> > >> There are 30.000 videos converted to H.264 without audio by mistake. > >> > >> Would you please advice, is it possible to take just audio from > >> original videos and add to the converted ones without re-encoding? > >> > >> > >> BIG thanks in advance, > >> Andrew > > > > Yes. This example will take the first video stream from video.mp4 and > > the first audio stream from audio.mp4 and mux them into out.mp4 without > > re-encoding. > > > > ffmpeg -i video.mp4 -i audio.mp4 -map 0:0 -map 1:1 -c copy out.mp4 > > > > You may want to add the "-shortest" option if the durations of the > > video and audio inputs vary for some reason. The -map option has seen > > some syntax updates lately. See Changelog for more detailed information. > > Thank You! But something goes wrong, and result file is 0 bytes weight. This is because the first stream in 00030229.flv is actually audio, not video. This is not usually the case, but isn't exactly rare. See the stream info below. > 00030229.mp4 has audio: > > /usr/local/ffmpeg-0.10/bin/ffmpeg -i /farm-video/img_v/mp4/0003/02/00030229.flv -i /farm-video/img_v/mp4/0003/02/00030229.mp4 -map 0:0 -map 1:1 -c copy -y /farm-video/img_v/mp4/0003/02/00030229_1.flv > > ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers > built on Jan 30 2012 11:57:43 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6) > configuration: --prefix=/usr/local/ffmpeg-0.10 --enable-shared --enable-pthreads --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-nonfree --enable-gpl --enable-libmp3lame --enable-libxvid --enable-libvorbis --enable-libfaac --enable-libx264 --enable-avfilter --enable-postproc --enable-version3 > 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 > [flv @ 0xd8f3a0] Stream discovered after head already parsed > [flv @ 0xd8f3a0] Could not find codec parameters (Audio: none, 0 channels) > Input #0, flv, from '/farm-video/img_v/mp4/0003/02/00030229.flv': Your first input, 00030229.flv, is called 0 in terms of -map. > Metadata: > lasttimestamp : 480 > audiosize : 7632317 > minor_version : 512 > datasize : 47072783 > compatible_brands: isomiso2avc1mp41 > totalframes : 11998 > creation_time : 1970-01-01 00:00:00 > hasAudio : true > hasCuePoints : false > hasKeyframes : true > hasMetadata : true > hasVideo : true > metadatacreator : flvtool++ (Facebook, Motion project, dweatherford) > videosize : 38936044 > canSeekToEnd : true > major_brand : isom > encoder : Lavf53.31.100 > Duration: 00:07:59.92, start: 0.080000, bitrate: 652 kb/s > Stream #0:0: Audio: none, 0 channels Stream 0:0 is "audio". The 0:0 means "first input file:first stream". > Stream #0:1: Video: h264 (Main), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 25 tbr, 1k tbn, 50 tbc Stream 0:1 is your desired video. > Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/farm-video/img_v/mp4/0003/02/00030229.mp4': > Metadata: > major_brand : isom > minor_version : 512 > compatible_brands: isomiso2avc1mp41 > creation_time : 1970-01-01 00:00:00 > encoder : Lavf52.31.0 > Duration: 00:07:59.88, start: 0.000000, bitrate: 997 kb/s > Stream #1:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 864 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc > Metadata: > creation_time : 1970-01-01 00:00:00 > handler_name : .VideoHandler > Stream #1:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 127 kb/s Stream 1:1 is your desired audio for your second input. > Metadata: > creation_time : 1970-01-01 00:00:00 > handler_name : > [flv @ 0xf5ef60] sample rate not set > Output #0, flv, to '/farm-video/img_v/mp4/0003/02/00030229_1.flv': > Metadata: > lasttimestamp : 480 > audiosize : 7632317 > minor_version : 512 > datasize : 47072783 > compatible_brands: isomiso2avc1mp41 > totalframes : 11998 > creation_time : 1970-01-01 00:00:00 > hasAudio : true > hasCuePoints : false > hasKeyframes : true > hasMetadata : true > hasVideo : true > metadatacreator : flvtool++ (Facebook, Motion project, dweatherford) > videosize : 38936044 > canSeekToEnd : true > major_brand : isom > encoder : Lavf53.31.100 > Stream #0:0: Audio: none, 0 channels > Stream #0:1(und): Audio: aac, 44100 Hz, stereo, 127 kb/s > Metadata: > creation_time : 1970-01-01 00:00:00 > handler_name : > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Stream #1:1 -> #0:1 (copy) > Could not write header for output file #0 (incorrect codec parameters ?) So your command will be: ffmpeg -i video.mp4 -i audio.mp4 -map 0:1 -map 1:1 -c copy out.mp4 From james.darnley at gmail.com Sun Feb 5 00:20:52 2012 From: james.darnley at gmail.com (James Darnley) Date: Sun, 05 Feb 2012 00:20:52 +0100 Subject: [FFmpeg-user] crf mode in libvpx In-Reply-To: References: Message-ID: <4F2DBD54.2050207@gmail.com> On 2012-02-03 09:09, Bo?tjan Strojan wrote: > Hi, > > a. Playing around with freshly compiled ffmpeg + libvpx, but can't > seem to figure out what would be the valid "quality based" encoding > switch for libvpx? (crf/cq mode or however that is called) > b. Is internal vorbis encoder usefull? (If yes, same question - how to > enable quality based encoding?) > > Basically I need a valid cli example (additional plus if it makes a > good default) :) In all your subsequent discussion I haven't seen that you actually tried the option mentioned in the title of this thread, namely crf. Why not? If I read the source correctly, it looks like it should be a straight map to the cq-level option of vpxenc (or what ever its name is). You used --cq-level 20 in your latest email. Have you tried -crf 20 with ffmpeg? From master at io.ua Sun Feb 5 06:13:32 2012 From: master at io.ua (Andrew Gora) Date: Sun, 5 Feb 2012 07:13:32 +0200 Subject: [FFmpeg-user] Is it possible to add audio without re-encoding? Message-ID: <96895765.20120205071332@io.ua> > So your command will be: > ffmpeg -i video.mp4 -i audio.mp4 -map 0:1 -map 1:1 -c copy out.mp4 Thank You a lot! This is working perfectly. From hornetster at hotmail.com Sun Feb 5 09:57:22 2012 From: hornetster at hotmail.com (John Bennett) Date: Sun, 5 Feb 2012 18:57:22 +1000 Subject: [FFmpeg-user] FW: Converting AVI files and creating a DVD In-Reply-To: References: Message-ID: ---------------------------------------- > From: hornetster at hotmail.com > To: ffmpeg-user at ffmpeg.org > Subject: Converting AVI files and creating a DVD > Date: Wed, 18 Jan 2012 17:55:40 +1000 > > > Trying to convert AVI files in Opensuse12.1 x64, kde4.7.2, ffmpeg 0.9.1-1.1 > > ffplay info: > Input #0, avi, from 'FILE0018.AVI': > Metadata: > date : 2009-10-21 > ICRT : 15:52:44 > comment : > Duration: 00:00:11.91, start: 0.000000, bitrate: 12362 kb/s > Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc > Stream #0:1: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 48000 Hz, 2 channels, s16, 384 kb/s > 14.00 A-V: -0.013 fd= 24 aq= 0KB vq= 0KB sq= 0B f=0/0 f=0/0 > > > so I can create a DVD. > They are off a Kogan video camera (read: pretty cheap, generic from SE Asia). Have tried various things to convert/publish and always seem to get a DVD that starts playing OK, but after a minute or 2 starts faltering, won't FF or jump to next chapter etc. > Couple of command lines I have tried: > ffmpeg -i -target pal-dvd -sameq > ffmpeg -i -target pal-dvd > etc (not very inventive... Know next-to-nothing about ffmpeg, but willing to learn!) > Have then tried to author/burn the DVD with kdenlive/devede. > Any help appreciated! > > Thanks, John. > > Has anybody got any suggestions on how I can progress with this? (Please...) Thanks, John. From cehoyos at ag.or.at Sun Feb 5 17:33:36 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 5 Feb 2012 16:33:36 +0000 (UTC) Subject: [FFmpeg-user] Problems cutting out part of video with ffmpeg References: Message-ID: Jim Holmstr?m gmail.com> writes: > ffmpeg -ss 1 -i row.avi -vcodec copy -t 3 row_cut.avi > Stream #0:0: Video: rawvideo, pal8, 640x300, q=2-31, 30 tbn, 30 tbc You cannot use -vcodec copy on pal8 rawvideo (this may be a bug), but you can use -vcodec rawvideo as a work-around. Carl Eugen From cehoyos at ag.or.at Sun Feb 5 17:34:40 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 5 Feb 2012 16:34:40 +0000 (UTC) Subject: [FFmpeg-user] Is it possible to add audio without re-encoding? References: <7830940921.20120204020922@io.ua> <20120203165050.23eaa7b9@lrcd.com> Message-ID: Lou lrcd.com> writes: > > Would you please advice, is it possible to take just audio from > > original videos and add to the converted ones without re-encoding? > > Yes. This example will take the first video stream from video.mp4 and > the first audio stream from audio.mp4 and mux them into out.mp4 without > re-encoding. > > ffmpeg -i video.mp4 -i audio.mp4 -map 0:0 -map 1:1 -c copy out.mp4 (You just found out why we always *have* to ask for complete, uncut console output.) ;-)) Carl Eugen From cehoyos at ag.or.at Sun Feb 5 17:44:01 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 5 Feb 2012 16:44:01 +0000 (UTC) Subject: [FFmpeg-user] no encoding of VP6 flv files References: <4F2BE1B7.7040205@waesche.org> <201202031841.29444.cehoyos@ag.or.at> <4F2C64E3.7010102@waesche.org> Message-ID: Marc Waesche waesche.org> writes: > > Could you test attached patch? > DAMN!! THAT WORKS!!!! I read about 20 times today that this is > impossible! I committed a slightly different version, thank you for testing! If you see any problems, please report them, Carl Eugen From bostjan.strojan at gmail.com Sun Feb 5 20:42:57 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Sun, 5 Feb 2012 20:42:57 +0100 Subject: [FFmpeg-user] crf mode in libvpx In-Reply-To: <4F2DBD54.2050207@gmail.com> References: <4F2DBD54.2050207@gmail.com> Message-ID: On Sun, Feb 5, 2012 at 12:20 AM, James Darnley wrote: > In all your subsequent discussion I haven't seen that you actually tried > the option mentioned in the title of this thread, namely crf. ?Why not? > ?If I read the source correctly, it looks like it should be a straight > map to the cq-level option of vpxenc (or what ever its name is). That was actually the first thing i have tried, here is a retry, dump: ffmpeg -i /Users/b/Desktop/test/test.mov -strict -2 -vcodec libvpx -acodec vorbis -crf 20 /Users/b/Desktop/test/test___.webm ffmpeg version N-37510-g8c48652 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 2 2012 22:02:52 with clang 3.0 (tags/Apple/clang-211.12) configuration: --prefix=/Volumes/tempdisk/sw --enable-gpl --enable-libx264 --enable-libvpx --cc=clang --enable-runtime-cpudetect libavutil 51. 37.100 / 51. 37.100 libavcodec 54. 0.102 / 54. 0.102 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 61.100 / 2. 61.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/b/Desktop/test/test.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2010-10-16 12:44:55 Duration: 00:00:41.80, start: 0.000000, bitrate: 72767 kb/s Stream #0:0(eng): Video: prores (apch / 0x68637061), yuv422p10le, 1280x720, 71215 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc Metadata: creation_time : 2010-10-16 12:44:55 handler_name : ?Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: creation_time : 2010-10-16 12:44:55 handler_name : ?Apple Alias Data Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2010-10-16 12:45:06 handler_name : ?Apple Alias Data Handler timecode : 01:00:00:00 Incompatible pixel format 'yuv422p10le' for codec 'libvpx', auto-selecting format 'yuv420p' [buffer @ 0x10a517360] w:1280 h:720 pixfmt:yuv422p10le tb:1/1000000 sar:1/1 sws_param: [buffersink @ 0x10a518600] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x10a518a20] w:1280 h:720 fmt:yuv422p10le -> w:1280 h:720 fmt:yuv420p flags:0x4 [libvpx @ 0x7fab5a092400] v1.0.0 Output #0, webm, to '/Users/b/Desktop/test/test___.webm': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2010-10-16 12:44:55 encoder : Lavf54.0.100 Stream #0:0(eng): Video: vp8, yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 200 kb/s, 1k tbn, 25 tbc Metadata: creation_time : 2010-10-16 12:44:55 handler_name : ?Apple Alias Data Handler Stream #0:1(eng): Audio: vorbis, 48000 Hz, 2 channels, s16, 128 kb/s Metadata: creation_time : 2010-10-16 12:44:55 handler_name : ?Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (prores -> libvpx) Stream #0:1 -> #0:1 (pcm_s16le -> vorbis) Press [q] to stop, [?] for help frame= 30 fps= 0 q=0.0 size= 4kB time=00:00:00.24 bitrate= 126.8kbits/s frame= 42 fps= 38 q=0.0 size= 4kB time=00:00:00.72 bitrate= 42.3kbits/s frame= 55 fps= 34 q=0.0 size= 36kB time=00:00:01.24 bitrate= 235.9kbits/s frame= 65 fps= 29 q=0.0 size= 56kB time=00:00:01.64 bitrate= 282.2kbits/s frame= 70 fps= 25 q=0.0 size= 62kB time=00:00:01.84 bitrate= 277.3kbits/s lines cut here frame= 1000 fps= 23 q=0.0 size= 1220kB time=00:00:39.04 bitrate= 256.1kbits/s frame= 1010 fps= 23 q=0.0 size= 1250kB time=00:00:39.44 bitrate= 259.7kbits/s frame= 1024 fps= 23 q=0.0 size= 1250kB time=00:00:40.00 bitrate= 256.0kbits/s frame= 1039 fps= 23 q=0.0 size= 1282kB time=00:00:40.60 bitrate= 258.7kbits/s frame= 1045 fps= 22 q=0.0 Lsize= 1327kB time=00:00:41.80 bitrate= 260.1kbits/s video:1228kB audio:75kB global headers:3kB muxing overhead 1.545843% thanks, b. From saikari78 at gmail.com Sun Feb 5 14:49:50 2012 From: saikari78 at gmail.com (saikari) Date: Sun, 5 Feb 2012 05:49:50 -0800 (PST) Subject: [FFmpeg-user] Problem compiling ffmpeg on Ubuntu 11.10 Message-ID: <1328449790178-4358959.post@n4.nabble.com> Hi, I've downloaded the latest version of ffmpeg (with git) and am trying to compile on Ubuntu 11.10 (on a AMD64 architecture). I've run the configure command: ./configure --enable-shared But when I run the make command, I get the follwing error: /usr/bin/ld: libavutil/intfloat_readwrite.o: relocation R_X86_64_PC32 against undefined symbol `ldexp@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value collect2: ld returned 1 exit status make: *** [libavutil/libavutil.so.51] Error 1 Do you know what I should do to solve this error? Thank you very much -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Problem-compiling-ffmpeg-on-Ubuntu-11-10-tp4358959p4358959.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From mgermaine8 at gmail.com Sun Feb 5 21:29:51 2012 From: mgermaine8 at gmail.com (Marvin Germain) Date: Sun, 5 Feb 2012 13:29:51 -0700 Subject: [FFmpeg-user] yasm not found, but is installed in /usr/bin Message-ID: Greetings. I wish to compile ffmpeg on my hp mini because the only pre-built packages for this platform are five years old. configure reports "yasm not found, use --disable-yasm for a crippled build". The bottom of config.log says: yasm --version yasm 0.5.0.1591 Compiled on Aug 23 2007. Copyright (c) 2001-2006 Peter Johnson and other Yasm developers. Run yasm --license for licensing overview and summary. check_yasm pextrd [eax], xmm0, 1 BEGIN /tmp/ffconf.cdwK2425.S 1 pextrd [eax], xmm0, 1 END /tmp/ffconf.cdwK2425.S yasm -f elf -g dwarf2 -o /tmp/ffconf.SNhQ2423.o /tmp/ffconf.cdwK2425.S /tmp/ffconf.cdwK2425.S:1: label or instruction expected at start of line yasm not found, use --disable-yasm for a crippled build So it appears that yasm does exist and was found, but possibly isn't working as expected. How can I test that? The ffmpeg release info is "0.9.1.git". Thanks for any help. Regards, Marvin From cehoyos at ag.or.at Sun Feb 5 21:56:39 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 5 Feb 2012 20:56:39 +0000 (UTC) Subject: [FFmpeg-user] yasm not found, but is installed in /usr/bin References: Message-ID: Marvin Germain gmail.com> writes: > configure reports "yasm not found, use --disable-yasm for a crippled > build". The bottom of config.log says: > yasm --version > yasm 0.5.0.1591 This is too old, please update yasm (or use --disable-yasm). Carl Eugen From cehoyos at ag.or.at Sun Feb 5 21:57:49 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 5 Feb 2012 20:57:49 +0000 (UTC) Subject: [FFmpeg-user] Problem compiling ffmpeg on Ubuntu 11.10 References: <1328449790178-4358959.post@n4.nabble.com> Message-ID: saikari gmail.com> writes: > I've downloaded the latest version of ffmpeg (with git) and am > trying to compile on Ubuntu 11.10 (on a AMD64 architecture). > I've run the configure command: > ./configure --enable-shared > > But when I run the make command, I get the follwing error: Please confirm that you did "make distclean" before running configure. Carl Eugen From mark at mdsh.com Sun Feb 5 22:23:38 2012 From: mark at mdsh.com (Mark Himsley) Date: Sun, 05 Feb 2012 21:23:38 +0000 Subject: [FFmpeg-user] Forcing interlaced handling In-Reply-To: <20120201233445.GC5397@arborea> References: <4F29409A.2030309@bbc.co.uk> <20120201233445.GC5397@arborea> Message-ID: <4F2EF35A.60803@mdsh.com> On 01/02/2012 23:34, Stefano Sabatini wrote: > On date Wednesday 2012-02-01 13:39:38 +0000, Tim Nicholson encoded: >> I have some V210 files and in both .mov and .mxf wrapper do not seem >> to have any interlace flag settings, although I know them to be >> -tff. >> >> I wish to convert them to dvvideo, however the fieldorder=bff filter >> only works if the source material is flagged as tff, which it is >> not. >> >> I have tried various things, including using fieldorder=tff, >> fieldorder=bff so that the first filter does nothing but sets the >> flag, so that the second filter does what is required, but this >> failed. >> > >> I have also tried using -top before the input file, but this too did >> nothing, as did using a scale filter with scale=iw:ih:1. > > Looks like -top is ignored on input. I've asked that before: http://ffmpeg.org/pipermail/ffmpeg-user/2011-May/000835.html I thought Michael said he was pushing a fix for it. http://ffmpeg.org/pipermail/ffmpeg-devel/2011-May/111772.html >> Does anybody have an idea how to force tff interlace handling? > > Uhm... try with the attached patch and tell if it works for you. You've mentioned that before ;-) http://ffmpeg.org/pipermail/ffmpeg-user/2011-May/000869.html -- Mark From kennethjjgibson at gmail.com Mon Feb 6 02:32:51 2012 From: kennethjjgibson at gmail.com (killkenny64) Date: Sun, 5 Feb 2012 17:32:51 -0800 (PST) Subject: [FFmpeg-user] Watermarking video in FFmpeg programmatically In-Reply-To: <20120202014716.GE27947@leki> References: <1328146655150-4350226.post@n4.nabble.com> <20120202014716.GE27947@leki> Message-ID: <1328491971318-4360196.post@n4.nabble.com> Cl?ment B?sch wrote > > > Check doc/examples/filtering.c, it's an example of libavfilter usage with > filter_descr="scale=78:24" as filter. > > [...] > > -- > Cl?ment B. > Thanks, Are there any other examples of the use of libavfilter (programmatically)? filtering.c uses the scale filter; are there other examples using different filters? I'm trying to learn better how to use this library programmatically so that I can eventually add a watermark to a video. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Watermarking-video-in-FFmpeg-programmatically-tp4350226p4360196.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From mgermaine8 at gmail.com Mon Feb 6 06:38:26 2012 From: mgermaine8 at gmail.com (Marvin Germain) Date: Sun, 5 Feb 2012 22:38:26 -0700 Subject: [FFmpeg-user] yasm not found, but is installed in /usr/bin In-Reply-To: References: Message-ID: Thank, Carl for the quick reply. I updated yasm (had to compile from source, just like everything else on this machine) and now all is well. Thanks again. Marvin On Sun, Feb 5, 2012 at 1:56 PM, Carl Eugen Hoyos wrote: > Marvin Germain gmail.com> writes: > > > configure reports "yasm not found, use --disable-yasm for a crippled > > build". The bottom of config.log says: > > yasm --version > > yasm 0.5.0.1591 > > This is too old, please update yasm (or use --disable-yasm). > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From ubitux at gmail.com Mon Feb 6 07:54:31 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Mon, 6 Feb 2012 07:54:31 +0100 Subject: [FFmpeg-user] Watermarking video in FFmpeg programmatically In-Reply-To: <1328491971318-4360196.post@n4.nabble.com> References: <1328146655150-4350226.post@n4.nabble.com> <20120202014716.GE27947@leki> <1328491971318-4360196.post@n4.nabble.com> Message-ID: <20120206065431.GN31477@leki> On Sun, Feb 05, 2012 at 05:32:51PM -0800, killkenny64 wrote: > > Cl?ment B?sch wrote > > > > > > Check doc/examples/filtering.c, it's an example of libavfilter usage with > > filter_descr="scale=78:24" as filter. > > > > [...] > > > > -- > > Cl?ment B. > > > > Thanks, > > Are there any other examples of the use of libavfilter (programmatically)? > filtering.c uses the scale filter; are there other examples using different > filters? > Well, if it's not enough for you, you can look at ffmpeg.c and eventually the lavfi device (libavdevice/lavfi.c). > I'm trying to learn better how to use this library programmatically so that > I can eventually add a watermark to a video. > Look at the code path followed by ffmpeg when using the overlay video filter then. -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From tim.nicholson at bbc.co.uk Mon Feb 6 08:44:56 2012 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 06 Feb 2012 07:44:56 +0000 Subject: [FFmpeg-user] Burning timecode into mov file In-Reply-To: <1328295722869-4355495.post@n4.nabble.com> References: <1328264137614-4354188.post@n4.nabble.com> <20120203103323.GA31477@leki> <1328279510419-4354750.post@n4.nabble.com> <4F2BFDAD.6070904@bbc.co.uk> <1328295722869-4355495.post@n4.nabble.com> Message-ID: <4F2F84F8.1000003@bbc.co.uk> On 03/02/12 19:02, bartom wrote: > Thanks for your reply and pointing this out. I see now. > I ran the command: > > ffprobe -show_packets test.mov > > and in the output of this command containing all the packets, there is only > a single packet of the timecode stream (all the rest are audio and video > packets). [....] This is normal for ffmpeg, which only supports a "first frame" timecode and a rate. In fact some containers (mov, mxf and gxf?) support frame by frame timecode tagging allowing for discontinuities. However there are very few applications that can make use of this, and in particular every NLE I have come across works the same as ffmpeg. -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From tim.nicholson at bbc.co.uk Mon Feb 6 08:48:54 2012 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 06 Feb 2012 07:48:54 +0000 Subject: [FFmpeg-user] FW: Converting AVI files and creating a DVD In-Reply-To: References: Message-ID: <4F2F85E6.9030106@bbc.co.uk> On 05/02/12 08:57, John Bennett wrote: > > > > ---------------------------------------- >> From: hornetster at hotmail.com >> To: ffmpeg-user at ffmpeg.org >> Subject: Converting AVI files and creating a DVD >> Date: Wed, 18 Jan 2012 17:55:40 +1000 >> >> >> Trying to convert AVI files in Opensuse12.1 x64, kde4.7.2, ffmpeg 0.9.1-1.1 >> >> ffplay info: >> Input #0, avi, from 'FILE0018.AVI': >> Metadata: >> date : 2009-10-21 >> ICRT : 15:52:44 >> comment : >> Duration: 00:00:11.91, start: 0.000000, bitrate: 12362 kb/s >> Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc >> Stream #0:1: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 48000 Hz, 2 channels, s16, 384 kb/s >> 14.00 A-V: -0.013 fd= 24 aq= 0KB vq= 0KB sq= 0B f=0/0 f=0/0 >> >> >> so I can create a DVD. >> They are off a Kogan video camera (read: pretty cheap, generic from SE Asia). Have tried various things to convert/publish and always seem to get a DVD that starts playing OK, but after a minute or 2 starts faltering, won't FF or jump to next chapter etc. >> Couple of command lines I have tried: >> ffmpeg -i -target pal-dvd -sameq >> ffmpeg -i -target pal-dvd >> etc (not very inventive... Know next-to-nothing about ffmpeg, but willing to learn!) >> Have then tried to author/burn the DVD with kdenlive/devede. >> Any help appreciated! Try using DVD Styler to author the DVD. This uses ffmpeg for transcoding source material, if required, and does proper indexing so seeking etc sghould work. -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From lytc at vega.com.vn Mon Feb 6 10:06:27 2012 From: lytc at vega.com.vn (Ly Tran Cong) Date: Mon, 6 Feb 2012 16:06:27 +0700 Subject: [FFmpeg-user] How to use global_header, fflags, rtpflags parameter. Message-ID: Hello, Can anyone tell me how to use flags +global_header, fflags +latm, rtpflags +latm Which parameter using with video encode and which parameter using with audio encode. Thanks -- Regards, Tran Ly Vega Corporation 98 Hoang Quoc Viet Str, Hanoi, Vietnam Tel: 84 4 755 4190 Fax: 84 4 755 4190 Mobile: 84 91 487 1115 www.vega.com.vn; www.clip.vn; www.chacha.vn; www.ringring.vn From bostjan.strojan at gmail.com Mon Feb 6 10:53:05 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Mon, 6 Feb 2012 10:53:05 +0100 Subject: [FFmpeg-user] Incompatible pixel format 'uyvy422' for codec 'libx264', auto-selecting format 'yuv420p10le' Message-ID: Hi, while converting some aja captured yuv422 files i'am getting: Incompatible pixel format 'uyvy422' for codec 'libx264', auto-selecting format 'yuv420p10le' (x264 was compiled in 10bit mode) (shouldn't that patch to yuv422 of some sort?) full dump: ---------------------- ffmpeg -i /Users/smoke/Desktop/test.m4a -i /Users/smoke/Desktop/test.mov -map 0:0 -map 1:0 -acodec copy -vcodec libx264 -preset medium -tune film -qp 0 -threads 0 /Users/smoke/Desktop/test.mp4 ffmpeg version N-37571-gbb9c8d9 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 5 2012 21:30:41 with clang 3.0 (tags/Apple/clang-211.12) configuration: --prefix=/Volumes/tempdisk/sw --enable-gpl --enable-libx264 --cc=clang --enable-runtime-cpudetect libavutil 51. 37.100 / 51. 37.100 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 61.100 / 2. 61.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/smoke/Desktop/test.m4a': Metadata: major_brand : M4A minor_version : 0 compatible_brands: M4A mp42isom creation_time : 1917-12-29 03:38:51 Duration: 00:00:36.05, start: 0.000000, bitrate: 115 kb/s Stream #0:0(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 112 kb/s Metadata: creation_time : 1917-12-29 03:38:51 handler_name : [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fc4db841a00] decoding for stream 2 failed Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/smoke/Desktop/test.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-12-22 09:18:01 Duration: 00:00:36.00, start: 0.000000, bitrate: 167436 kb/s Stream #1:0(eng): Video: rawvideo (2vuy / 0x79757632), uyvy422, 720x576, 165888 kb/s, SAR 1024:702 DAR 640:351, 25 fps, 25 tbr, 25 tbn, 25 tbc Metadata: creation_time : 2011-12-22 09:18:01 handler_name : ?Apple Alias Data Handler Stream #1:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s Metadata: creation_time : 2011-12-22 09:18:01 handler_name : ?Apple Alias Data Handler Stream #1:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2011-12-22 09:18:08 handler_name : ?Apple Alias Data Handler timecode : 00:00:00:00 Incompatible pixel format 'uyvy422' for codec 'libx264', auto-selecting format 'yuv420p10le' [buffer @ 0x7fc4db416540] w:720 h:576 pixfmt:uyvy422 tb:1/1000000 sar:1024/702 sws_param: [buffersink @ 0x7fc4db417a20] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x7fc4db417d80] w:720 h:576 fmt:uyvy422 -> w:720 h:576 fmt:yuv420p10le flags:0x4 [libx264 @ 0x7fc4db82d000] using SAR=512/351 [libx264 @ 0x7fc4db82d000] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0x7fc4db82d000] profile High 4:4:4 Predictive, level 3.0, 4:2:0 10-bit [libx264 @ 0x7fc4db82d000] 64 - core 120 r2164 da19765 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:-1:-1 analyse=0x3:0x113 me=hex subme=7 psy=0 mixed_ref=1 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=36 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=0 Output #0, mp4, to '/Users/smoke/Desktop/test.mp4': Metadata: major_brand : M4A minor_version : 0 compatible_brands: M4A mp42isom creation_time : 1917-12-29 03:38:51 encoder : Lavf54.0.100 Stream #0:0(eng): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, stereo, 112 kb/s Metadata: creation_time : 1917-12-29 03:38:51 handler_name : Stream #0:1(eng): Video: h264 (![0][0][0] / 0x0021), yuv420p10le, 720x576 [SAR 512:351 DAR 640:351], q=-1--1, 25 tbn, 25 tbc Metadata: creation_time : 2011-12-22 09:18:01 handler_name : ?Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:0 -> #0:1 (rawvideo -> libx264) Press [q] to stop, [?] for help frame= 61 fps= 0 q=0.0 size= 5365kB time=00:00:00.87 bitrate=50248.7kbits/s frame= 111 fps=109 q=0.0 size= 17880kB time=00:00:02.88 bitrate=50858.6kbits/s frame= 154 fps=100 q=0.0 size= 28650kB time=00:00:04.58 bitrate=51169.4kbits/s frame= 204 fps= 99 q=0.0 size= 42554kB time=00:00:06.59 bitrate=52883.2kbits/s frame= 257 fps=100 q=0.0 size= 56976kB time=00:00:08.70 bitrate=53624.7kbits/s frame= 288 fps= 94 q=0.0 size= 66133kB time=00:00:09.96 bitrate=54393.4kbits/s frame= 353 fps= 98 q=0.0 size= 78346kB time=00:00:12.54 bitrate=51164.5kbits/s frame= 409 fps=100 q=0.0 size= 92317kB time=00:00:14.78 bitrate=51154.2kbits/s frame= 445 fps= 97 q=0.0 size= 100235kB time=00:00:16.23 bitrate=50578.6kbits/s frame= 503 fps= 98 q=0.0 size= 112658kB time=00:00:18.56 bitrate=49725.0kbits/s frame= 556 fps= 99 q=0.0 size= 124009kB time=00:00:20.67 bitrate=49142.7kbits/s frame= 591 fps= 97 q=0.0 size= 130977kB time=00:00:22.08 bitrate=48594.2kbits/s frame= 648 fps= 98 q=0.0 size= 143236kB time=00:00:24.36 bitrate=48168.6kbits/s frame= 684 fps= 96 q=0.0 size= 153127kB time=00:00:25.79 bitrate=48635.9kbits/s frame= 719 fps= 94 q=0.0 size= 161249kB time=00:00:27.20 bitrate=48564.4kbits/s frame= 809 fps= 99 q=0.0 size= 169913kB time=00:00:30.78 bitrate=45215.9kbits/s frame= 900 fps=105 q=-1.0 Lsize= 169939kB time=00:00:35.92 bitrate=38756.6kbits/s video:169422kB audio:496kB global headers:0kB muxing overhead 0.012428% [libx264 @ 0x7fc4db82d000] frame I:35 Avg QP: 0.00 size:251360 [libx264 @ 0x7fc4db82d000] frame P:865 Avg QP: 0.00 size:190393 [libx264 @ 0x7fc4db82d000] mb I I16..4..PCM: 33.0% 27.0% 40.0% 0.0% [libx264 @ 0x7fc4db82d000] mb P I16..4..PCM: 12.0% 25.6% 11.7% 0.0% P16..4: 14.7% 9.0% 8.7% 0.0% 0.0% skip:18.3% [libx264 @ 0x7fc4db82d000] 8x8 transform intra:50.0% inter:64.0% [libx264 @ 0x7fc4db82d000] coded y,uvDC,uvAC intra: 99.1% 95.0% 94.8% inter: 61.6% 56.9% 56.8% [libx264 @ 0x7fc4db82d000] i16 v,h,dc,p: 92% 7% 1% 0% [libx264 @ 0x7fc4db82d000] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 74% 23% 2% 0% 0% 0% 0% 0% 0% [libx264 @ 0x7fc4db82d000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 50% 26% 4% 3% 4% 4% 3% 3% 3% [libx264 @ 0x7fc4db82d000] i8c dc,h,v,p: 5% 25% 70% 0% [libx264 @ 0x7fc4db82d000] Weighted P-Frames: Y:7.9% UV:4.4% [libx264 @ 0x7fc4db82d000] ref P L0: 77.1% 16.3% 6.5% 0.1% [libx264 @ 0x7fc4db82d000] kb/s:38552.80 From saikari78 at gmail.com Mon Feb 6 11:49:35 2012 From: saikari78 at gmail.com (saikari) Date: Mon, 6 Feb 2012 02:49:35 -0800 (PST) Subject: [FFmpeg-user] Problem compiling ffmpeg on Ubuntu 11.10 In-Reply-To: References: <1328449790178-4358959.post@n4.nabble.com> Message-ID: <1328525375166-4360887.post@n4.nabble.com> Thank you very much for your reply. You were right, I hadn't run "make distclean". I run it and it compiled fine. However, now I get a linking error when I try to compile a program with gcc, with the following command line, for instance: gcc -lavformat -lavcodec -lavutil ff1.c For each function, I get an error of the type: ff1.c:(.text+0x10): undefined reference to `av_register_all' collect2: ld returned 1 exit status Thanks a lot for any hint as to what I'm doing wrong. I've checked and the header files have been installed in /usr/local/include and the shared libraries in /user/local/lib. I've declared the header files in my program as: #include #include #include I've tried compiling with the following line: gcc -I/usr/local/include -L/user/local/lib -lavformat -lavcodec -lavutil ff1.c but I get exactly the same errors. Best regards -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Problem-compiling-ffmpeg-on-Ubuntu-11-10-tp4358959p4360887.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From stefasab at gmail.com Mon Feb 6 12:30:04 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Mon, 6 Feb 2012 12:30:04 +0100 Subject: [FFmpeg-user] Forcing interlaced handling In-Reply-To: <4F2BC11F.3060004@bbc.co.uk> References: <4F29409A.2030309@bbc.co.uk> <20120201233445.GC5397@arborea> <4F2BA2E4.3040109@bbc.co.uk> <4F2BC11F.3060004@bbc.co.uk> Message-ID: <20120206113004.GG24715@arborea> On date Friday 2012-02-03 11:12:31 +0000, Tim Nicholson encoded: > On 03/02/12 09:03, Tim Nicholson wrote: > >On 01/02/12 23:34, Stefano Sabatini wrote: > >>From feadf458f3dfda9d15ebcb5b1b065495f5ba68a9 Mon Sep 17 00:00:00 2001 > >>From: Stefano Sabatini > >>Date: Thu, 2 Feb 2012 00:31:00 +0100 > >>Subject: [PATCH] lavfi: add setfield filter > > > >Wow, thanks. > > > >Using:- > > > >ffmpeg -i V210-field.ref-1min.mov \ > >-vf "setfield=1, fieldorder=bff"\ > >-map 0:v -map 0:a \ > >-c:v dvvideo -pix_fmt yuv420p \ > >-c:a pcm_s16le -ar 48k \ > >-y ./V210-field.ref-1min-out.mov > > > >Worked on my short test sample. Now about to try on a longer mxf... > > > > ...and that seems to work OK too.... > > will this go into current HEAD? Hopefully, just sent a patch to ffmpeg-devel. -- ffmpeg-user random tip #12 One minute of video noise with ffmpeg: ffmpeg -t 60 -s qcif -f rawvideo -pix_fmt rgb24 -r 25 -i /dev/urandom \ -y noise.mpeg From hornetster at hotmail.com Mon Feb 6 12:35:18 2012 From: hornetster at hotmail.com (John Bennett) Date: Mon, 6 Feb 2012 21:35:18 +1000 Subject: [FFmpeg-user] FW: Converting AVI files and creating a DVD In-Reply-To: <4F2F85E6.9030106@bbc.co.uk> References: <4F2F85E6.9030106@bbc.co.uk> Message-ID: On Mon, Feb 6, 2012 at 5:48 PM, Tim Nicholson wrote: > > On 05/02/12 08:57, John Bennett wrote: >> >> >> >> >> ---------------------------------------- >>> >>> From: hornetster at hotmail.com >>> To: ffmpeg-user at ffmpeg.org >>> Subject: Converting AVI files and creating a DVD >>> Date: Wed, 18 Jan 2012 17:55:40 +1000 >>> >>> >>> Trying to convert AVI files in Opensuse12.1 x64, kde4.7.2, ffmpeg 0.9.1-1.1 >>> >>> ffplay info: >>> Input #0, avi, from 'FILE0018.AVI': >>> ? Metadata: >>> ? ? date ? ? ? ? ? ?: 2009-10-21 >>> ? ? ICRT ? ? ? ? ? ?: 15:52:44 >>> ? ? comment ? ? ? ? : >>> ? Duration: 00:00:11.91, start: 0.000000, bitrate: 12362 kb/s >>> ? ? Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc >>> ? ? Stream #0:1: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 48000 Hz, 2 channels, s16, 384 kb/s >>> ? 14.00 A-V: -0.013 fd= ?24 aq= ? ?0KB vq= ? ?0KB sq= ? ?0B f=0/0 ? f=0/0 >>> >>> >>> so I can create a DVD. >>> They are off a Kogan video camera (read: pretty cheap, generic from SE Asia). Have tried various things to convert/publish and always seem to get a DVD that starts playing OK, but after a minute or 2 starts faltering, won't FF or jump to next chapter etc. >>> Couple of command lines I have tried: >>> ffmpeg -i ?-target pal-dvd -sameq >>> ffmpeg -i ?-target pal-dvd >>> etc (not very inventive... Know next-to-nothing about ffmpeg, but willing to learn!) >>> Have then tried to author/burn the DVD with kdenlive/devede. >>> Any help appreciated! > > > > Try using DVD Styler to author the DVD. This uses ffmpeg for transcoding source material, if required, and does proper indexing so seeking etc sghould work. > > > -- > Tim > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Thanks for the reply, Tim, really appreciated! But.... when I try using DVDStyler, trying to do a really basic DVD, it either crashes on me totally, or cutting it back even more and running from a terminal, I get: ************************************************************************************* decode_slice_header error no frame! get_buffer() failed (-1 0 (nil)) decode_slice_header error no frame! Input #0, avi, from '/home/bigun/Movies/ErinWed/AVI/FILE0001.AVI': ? Metadata: ??? date??????????? : 2009-10-21 ??? ICRT??????????? : 13:53:08 ??? comment???????? : ? Duration: 00:00:10.81, start: 0.000000, bitrate: 12289 kb/s ??? Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), vda_vld, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc ??? Stream #0:1: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 48000 Hz, 2 channels, s16, 384 kb/s Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt' auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter '(null)' Impossible to convert between the formats supported by the filter 'src' and the filter 'auto-inserted scale 0' Error opening filters! Error transcoding of /home/bigun/Movies/ErinWed/AVI/FILE0001.AVI ************************************************************************************* Any ideas? Thanks, John. From bartomas at gmail.com Mon Feb 6 12:36:32 2012 From: bartomas at gmail.com (bartom) Date: Mon, 6 Feb 2012 03:36:32 -0800 (PST) Subject: [FFmpeg-user] Burning timecode into mov file In-Reply-To: <4F2F84F8.1000003@bbc.co.uk> References: <1328264137614-4354188.post@n4.nabble.com> <20120203103323.GA31477@leki> <1328279510419-4354750.post@n4.nabble.com> <4F2BFDAD.6070904@bbc.co.uk> <1328295722869-4355495.post@n4.nabble.com> <4F2F84F8.1000003@bbc.co.uk> Message-ID: <1328528192397-4360983.post@n4.nabble.com> Ok. Thanks a lot for the clarification. Yes, I'm dealing with mov files that can have discontinuities in the timecode. I have to preserve the discontinuities because they correspond to the real time, that is what I want to burn onto the video. I wanted to avoid using final cut pro, but I guess its the only option. Many thanks again. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Burning-timecode-into-mov-file-tp4354188p4360983.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From wl2776 at gmail.com Mon Feb 6 14:43:00 2012 From: wl2776 at gmail.com (wl2776) Date: Mon, 6 Feb 2012 05:43:00 -0800 (PST) Subject: [FFmpeg-user] How to generate PTS for matroska? (Can't write packet with unknown timestamp) Message-ID: <1328535780339-4361266.post@n4.nabble.com> I have a raw h264 video file, which I need to mux in the mkv container. I write: ffmpeg -y -f h264 -i 0000000291_00000000000000016454.h264 -f srt -i 0000000291_00000000000000016454.srt -vcodec copy -scodec copy 0000000291_00000000000000016454.mkv I get: ffmpeg version N-36036-g493447c, Copyright (c) 2000-2011 the FFmpeg developers built on Dec 22 2011 12:03:43 with gcc 4.4.3 configuration: --enable-gpl --enable-version3 --enable-nonfree libavutil 51. 32. 0 / 51. 32. 0 libavcodec 53. 46. 1 / 53. 46. 1 libavformat 53. 27. 0 / 53. 27. 0 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 53. 0 / 2. 53. 0 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 [h264 @ 0xa363e80] mmco: unref short failure [h264 @ 0xa363e80] Increasing reorder buffer to 1 [h264 @ 0xa363e80] mmco: unref short failure [h264 @ 0xa355ae0] max_analyze_duration 5000000 reached at 5000000 [h264 @ 0xa355ae0] Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (50/2) Input #0, h264, from '0000000291_00000000000000016454.h264': Duration: N/A, bitrate: N/A Stream #0:0: Video: h264 (Main), yuv420p, 704x576 [SAR 12:11 DAR 4:3], 50 fps, 25 tbr, 1200k tbn, 50 tbc [srt @ 0xa35e3a0] Estimating duration from bitrate, this may be inaccurate Input #1, srt, from '0000000291_00000000000000016454.srt': Duration: N/A, bitrate: N/A Stream #1:0: Subtitle: srt Output #0, matroska, to '0000000291_00000000000000016454.mkv': Metadata: encoder : Lavf53.27.0 Stream #0:0: Video: h264, yuv420p, 704x576 [SAR 12:11 DAR 4:3], q=2-31, 50 fps, 1k tbn, 1200k tbc Stream #0:1: Subtitle: srt Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help [matroska @ 0xa35f160] Can't write packet with unknown timestamp av_interleaved_write_frame(): Invalid argument Is there any way to make FFmpeg generate timestamps assuming constant framerate? I tried -fflags genpts and -vf "setpts=N" and -vf "setpts=N/(25*TB)" Nothing helps. If I omit -vcodec copy, FFmpeg reencodes h264 to mpeg4 and saves video. I would very much like to avoid such reencoding. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-generate-PTS-for-matroska-Can-t-write-packet-with-unknown-timestamp-tp4361266p4361266.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From tim.nicholson at bbc.co.uk Mon Feb 6 15:19:40 2012 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Mon, 06 Feb 2012 14:19:40 +0000 Subject: [FFmpeg-user] FW: Converting AVI files and creating a DVD In-Reply-To: References: <4F2F85E6.9030106@bbc.co.uk> Message-ID: <4F2FE17C.8030902@bbc.co.uk> On 06/02/12 11:35, John Bennett wrote: > On Mon, Feb 6, 2012 at 5:48 PM, Tim Nicholson wrote: [...] >> >> >> Try using DVD Styler to author the DVD. This uses ffmpeg for transcoding source material, if required, and does proper indexing so seeking etc sghould work. >> >> >> -- >> Tim > > Thanks for the reply, Tim, really appreciated! > But.... when I try using DVDStyler, trying to do a really basic DVD, > it either crashes on me totally, or cutting it back even more and > running from a terminal, I get: > ************************************************************************************* > > decode_slice_header error > no frame! > get_buffer() failed (-1 0 (nil)) > decode_slice_header error > no frame! > Input #0, avi, from '/home/bigun/Movies/ErinWed/AVI/FILE0001.AVI': > Metadata: > date : 2009-10-21 > ICRT : 13:53:08 > comment : > Duration: 00:00:10.81, start: 0.000000, bitrate: 12289 kb/s > Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), vda_vld, > 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 > tbc > Stream #0:1: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 48000 > Hz, 2 channels, s16, 384 kb/s > Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt' > auto-inserting filter 'auto-inserted scale 0' between the filter 'src' > and the filter '(null)' > Impossible to convert between the formats supported by the filter > 'src' and the filter 'auto-inserted scale 0' > Error opening filters! > Error transcoding of /home/bigun/Movies/ErinWed/AVI/FILE0001.AVI > ************************************************************************************* > Any ideas? > Thanks, John. It looks like there is something "unusual" about your source file. Can you try and make things work with a different file so you can see how it should all go? That might help to narrow things down a bit. -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From bartomas at gmail.com Mon Feb 6 15:54:08 2012 From: bartomas at gmail.com (bartom) Date: Mon, 6 Feb 2012 06:54:08 -0800 (PST) Subject: [FFmpeg-user] No such filter: 'drawtext' error Message-ID: <1328540048505-4361471.post@n4.nabble.com> Hi, I'm trying out a filtering example from https://ffmpeg.org/trac/ffmpeg/wiki/FilteringGuide. I've installed the latest linux build of ffmpeg from https://launchpad.net/~jon-severinsson/+archive/ffmpeg Here is my ffmpeg command and subsequent error message "No such filter: 'drawtext'": ffmpeg -i test.avi -vf "drawtext=fontfile=/usr/share/fonts/truetype/DroidSans.ttf: timecode='09\:57\:00\:00': r=25: x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000000 at 1" -an -y out.avi ffmpeg version N-37402-gc673671 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 1 2012 12:28:01 with gcc 4.4.3 configuration: --enable-gpl --enable-libfaac --enable-nonfree --enable-postproc --enable-version3 libavutil 51. 36.100 / 51. 36.100 libavcodec 54. 0.102 / 54. 0.102 libavformat 54. 0.100 / 54. 0.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 Input #0, avi, from 'test.avi': Duration: 01:16:32.96, start: 0.000000, bitrate: 3670 kb/s Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x576 [SAR 1:1 DAR 5:4], 25 tbr, 25 tbn, 25 tbc [buffer @ 0x91fe9a0] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: No such filter: 'drawtext' Error opening filters! Do you know what I should do so that ffmpeg finds the 'drawtext' filter. Thank you very much T.Bar -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-such-filter-drawtext-error-tp4361471p4361471.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ubitux at gmail.com Mon Feb 6 16:00:36 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Mon, 6 Feb 2012 16:00:36 +0100 Subject: [FFmpeg-user] No such filter: 'drawtext' error In-Reply-To: <1328540048505-4361471.post@n4.nabble.com> References: <1328540048505-4361471.post@n4.nabble.com> Message-ID: <20120206150036.GA25483@leki> On Mon, Feb 06, 2012 at 06:54:08AM -0800, bartom wrote: > Hi, > > I'm trying out a filtering example from > https://ffmpeg.org/trac/ffmpeg/wiki/FilteringGuide. > I've installed the latest linux build of ffmpeg from > https://launchpad.net/~jon-severinsson/+archive/ffmpeg > > Here is my ffmpeg command and subsequent error message "No such filter: > 'drawtext'": > > ffmpeg -i test.avi -vf > "drawtext=fontfile=/usr/share/fonts/truetype/DroidSans.ttf: > timecode='09\:57\:00\:00': r=25: x=(w-tw)/2: y=h-(2*lh): fontcolor=white: > box=1: boxcolor=0x00000000 at 1" -an -y out.avi > ffmpeg version N-37402-gc673671 Copyright (c) 2000-2012 the FFmpeg > developers > built on Feb 1 2012 12:28:01 with gcc 4.4.3 > configuration: --enable-gpl --enable-libfaac --enable-nonfree > --enable-postproc --enable-version3 You need a build with --enable-libfreetype to have the drawtext feature. [...] -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From bartomas at gmail.com Mon Feb 6 16:16:34 2012 From: bartomas at gmail.com (bartom) Date: Mon, 6 Feb 2012 07:16:34 -0800 (PST) Subject: [FFmpeg-user] No such filter: 'drawtext' error In-Reply-To: <20120206150036.GA25483@leki> References: <1328540048505-4361471.post@n4.nabble.com> <20120206150036.GA25483@leki> Message-ID: <1328541394616-4361546.post@n4.nabble.com> Ok. Thanks a million! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/No-such-filter-drawtext-error-tp4361471p4361546.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Mon Feb 6 18:03:54 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 6 Feb 2012 17:03:54 +0000 (UTC) Subject: [FFmpeg-user] Incompatible pixel format 'uyvy422' for codec 'libx264', auto-selecting format 'yuv420p10le' References: Message-ID: Bo?tjan Strojan gmail.com> writes: > ffmpeg -i /Users/smoke/Desktop/test.m4a -i > /Users/smoke/Desktop/test.mov -map 0:0 -map 1:0 -acodec copy -vcodec > libx264 -preset medium -tune film -qp 0 -threads 0 > /Users/smoke/Desktop/test.mp4 Does -vcodec libx264 -pix_fmt yuv422p work? Carl Eugen From bostjan.strojan at gmail.com Mon Feb 6 20:38:11 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Mon, 6 Feb 2012 20:38:11 +0100 Subject: [FFmpeg-user] Incompatible pixel format 'uyvy422' for codec 'libx264', auto-selecting format 'yuv420p10le' In-Reply-To: References: Message-ID: On Mon, Feb 6, 2012 at 6:03 PM, Carl Eugen Hoyos wrote: > Bo?tjan Strojan gmail.com> writes: > >> ffmpeg -i /Users/smoke/Desktop/test.m4a -i >> /Users/smoke/Desktop/test.mov -map 0:0 -map 1:0 -acodec copy -vcodec >> libx264 -preset medium -tune film -qp 0 -threads 0 >> /Users/smoke/Desktop/test.mp4 > > Does -vcodec libx264 -pix_fmt yuv422p work? yes it does. b. From cehoyos at ag.or.at Tue Feb 7 00:31:56 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 7 Feb 2012 00:31:56 +0100 Subject: [FFmpeg-user] Incompatible pixel format 'uyvy422' for codec 'libx264', auto-selecting format 'yuv420p10le' In-Reply-To: References: Message-ID: <201202070031.56749.cehoyos@ag.or.at> On Monday 06 February 2012 10:53:05 am Bo?tjan Strojan wrote: > while converting some aja captured yuv422 files i'am getting: > > Incompatible pixel format 'uyvy422' for codec 'libx264', > auto-selecting format 'yuv420p10le' > (x264 was compiled in 10bit mode) > > (shouldn't that patch to yuv422 of some sort?) Could you test attached patch? (Untested here.) Carl Eugen -------------- next part -------------- diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c index 1380e0a..1671cfd 100644 --- a/libavcodec/libx264.c +++ b/libavcodec/libx264.c @@ -637,6 +637,11 @@ AVCodec ff_libx264_encoder = { .encode = X264_frame, .close = X264_close, .capabilities = CODEC_CAP_DELAY | CODEC_CAP_AUTO_THREADS, + .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUVJ420P, + PIX_FMT_YUV420P9, PIX_FMT_YUV420P10, + PIX_FMT_YUV422P, PIX_FMT_YUV422P10, + PIX_FMT_YUV444P, PIX_FMT_YUV444P9, PIX_FMT_YUV444P10, + PIX_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"), .priv_class = &class, .defaults = x264_defaults, From gtissington at gmail.com Tue Feb 7 06:34:03 2012 From: gtissington at gmail.com (Garth Tissington) Date: Mon, 6 Feb 2012 21:34:03 -0800 Subject: [FFmpeg-user] Segment RTSP stream stops after ten minutes Message-ID: I've looked all over and I just can;t understand this error. I'm reading an RTSP stream from an axis 211 camera. I use this command line ffmpeg -i rtsp://user:password at 192.168.2.201/mpeg4/media.amp -c copy -map 0 -f segment -segment_time 60 -segment_format avi -segment_list slist.txt "out%03d.avi" This really works great for ten minutes. After about 10 minutes... or some times 11 minutes. It crashes with this error message Too large number of skiped frames 600290kB time=00:09:59.90 bitrate= 0.0kbits/s av_interleaved_write_frame(): Invalid argument The process just quits. Any iseads what this could be? Garth Tissington Given sufficient thrust pigs fly just fine. From bjoern.drabeck at gmail.com Tue Feb 7 06:41:27 2012 From: bjoern.drabeck at gmail.com (Bjoern Drabeck) Date: Tue, 7 Feb 2012 13:41:27 +0800 Subject: [FFmpeg-user] DXVA2 problems since ffmpeg v0.9.1 Message-ID: Hi, I have been playing around with using dxva2 for decoding h264 movies, which worked fine so far (ie up to version 0.9) However, for every newer version since then (FYI: I am using the zeranoe builds btw) it never calls into my custom get format function (codec->get_format), and the hwaccel and hwaccel_context members are still always 0 [all of this worked fine in previous versions] Does anyone else have that problem? Or has something changed significantly recently, so that I need to change my code? thanks, Bjoern From lytc at vega.com.vn Tue Feb 7 06:47:16 2012 From: lytc at vega.com.vn (Ly Tran Cong) Date: Tue, 7 Feb 2012 12:47:16 +0700 Subject: [FFmpeg-user] ffmpeg-10 audio and video sync problem. Message-ID: Hi all, I use this command to transcode multicast video to DarwinStreaming. ffmpeg -i udp://239.30.10.6:5106?reuse=1 -an -c:v libx264 -profile baseline -preset ultrafast -r 25 -s 320x240 -b:v 128k -coder 0 -refs 3 -bf 0 -g 150 -keyint_min 20 -qmin 10 -qmax 51 -qdiff 4 -trellis 0 -flags +global_header -vsync 1 -copyts -f rtp rtp:// 127.0.0.1:37130 -flags +global_header -vn -c:a libfaac -ar 22050 -b:a 8k -ac 2 -vn -async 22050 -rtpflags +latm -fflags +latm -copyts -f rtp rtp:// 127.0.0.1:37132 then I use vlc to play that stream but I have to refresh vlc many time. Sometime I can hear audio, sometime I can watch video without audio and sometime I can watch video faster than audio. Please let me know is there any problem with my command or ffmpeg sync problem. Thanks -- Regards, Tran Ly Vega Corporation 98 Hoang Quoc Viet Str, Hanoi, Vietnam Tel: 84 4 755 4190 Fax: 84 4 755 4190 Mobile: 84 91 487 1115 www.vega.com.vn; www.clip.vn; www.chacha.vn; www.ringring.vn From galacap at gmail.com Tue Feb 7 09:07:40 2012 From: galacap at gmail.com (Roee Kashi) Date: Tue, 7 Feb 2012 10:07:40 +0200 Subject: [FFmpeg-user] converting yuv directly to Apple Final Cut Pro In-Reply-To: References: Message-ID: does someone know how can it be solved? Thanks. 2012/1/29 Roee Kashi > ok, i have some outputs here: > 1) this is the first conversion command and it's output (convert yuv+mp3 > to pal-dv mov) > ffmpeg -y -i aud_file.mp3 -s 528x384 -vtag YV12 -r 25 -i raw_vid.yuv -r 25 > -target pal-dv output.mov.tmp > ffmpeg version N-37063-g14d94a1 Copyright (c) 2000-2012 the FFmpeg > developers > built on Jan 23 2012 17:40:00 with gcc 4.6.2 > configuration: --disable-static --enable-shared --enable-gpl > --enable-version3 > --disable-w32threads --enable-runtime-cpudetect --enable-avisynth > --enable-bzli > b --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable > -libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg > --enable-l > ibrtmp --enable-libschroedinger --enable-libspeex --enable-libtheora > --enable-li > bvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx > --enable-l > ibx264 --enable-libxavs --enable-libxvid --enable-zlib > libavutil 51. 34.101 / 51. 34.101 > libavcodec 53. 57.105 / 53. 57.105 > libavformat 53. 30.100 / 53. 30.100 > libavdevice 53. 4.100 / 53. 4.100 > libavfilter 2. 59.101 / 2. 59.101 > libswscale 2. 1.100 / 2. 1.100 > libswresample 0. 6.100 / 0. 6.100 > libpostproc 52. 0.100 / 52. 0.100 > [mp3 @ 0070EA60] max_analyze_duration 5000000 reached at 5004000 > [mp3 @ 0070EA60] Estimating duration from bitrate, this may be inaccurate > Input #0, mp3, from 'aud_file.mp3': > Metadata: > encoder : Lavf53.30.100 > Duration: 00:03:47.19, start: 0.000000, bitrate: 127 kb/s > Stream #0:0: Audio: mp3, 16000 Hz, mono, s16, 128 kb/s > [rawvideo @ 01E71A40] Estimating duration from bitrate, this may be > inaccurate > Input #1, rawvideo, from 'raw_vid.yuv': > Duration: N/A, start: 0.000000, bitrate: N/A > Stream #1:0: Video: rawvideo (YV12 / 0x32315659), yuv420p, 528x384, 25 > tbr, > 25 tbn, 25 tbc > [buffer @ 0070EF60] w:528 h:384 pixfmt:yuv420p tb:1/1000000 sar:0/1 > sws_param: > [scale @ 01E79700] w:528 h:384 fmt:yuv420p -> w:720 h:576 fmt:yuv420p > flags:0x4 > Output #0, dv, to 'output.mov.tmp': > Metadata: > encoder : Lavf53.30.100 > Stream #0:0: Video: dvvideo, yuv420p, 720x576, q=2-31, 200 kb/s, 90k > tbn, 25 > tbc > Stream #0:1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s > Stream mapping: > Stream #1:0 -> #0:0 (rawvideo -> dvvideo) > Stream #0:0 -> #0:1 (mp3 -> pcm_s16le) > Press [q] to stop, [?] for help > frame= 3 fps= 0 q=0.0 size= 20480kB time=00:00:00.12 > bitrate=1398101.3kbit > frame= 13 fps= 11 q=0.0 size= 45056kB time=00:00:00.52 > bitrate=709805.3kbits > frame= 21 fps= 12 q=0.0 size= 73728kB time=00:00:00.84 > bitrate=719023.5kbits > frame= 33 fps= 15 q=0.0 size= 90112kB time=00:00:01.32 > bitrate=559240.5kbits > frame= 43 fps= 15 q=0.0 size= 114688kB time=00:00:01.72 > bitrate=546234.9kbits > frame= 64 fps= 19 q=0.0 size= 134438kB time=00:00:02.56 > bitrate=430200.0kbits > frame= 120 fps= 32 q=0.0 size= 146250kB time=00:00:04.80 > bitrate=249600.0kbits > frame= 145 fps= 34 q=0.0 size= 160875kB time=00:00:05.80 > bitrate=227222.1kbits > frame= 203 fps= 42 q=0.0 size= 172688kB time=00:00:08.12 > bitrate=174218.7kbits > frame= 261 fps= 49 q=0.0 size= 184500kB time=00:00:10.43 > bitrate=144779.3kbits > frame= 316 fps= 54 q=0.0 size= 196594kB time=00:00:12.64 > bitrate=127412.7kbits > frame= 330 fps= 52 q=0.0 size= 212344kB time=00:00:13.20 > bitrate=131781.8kbits > frame= 387 fps= 57 q=0.0 size= 224297kB time=00:00:15.47 > bitrate=118701.5kbits > frame= 442 fps= 60 q=0.0 size= 235828kB time=00:00:17.68 > bitrate=109270.6kbits > frame= 496 fps= 63 q=0.0 size= 248344kB time=00:00:19.84 > bitrate=102541.9kbits > frame= 510 fps= 61 q=0.0 size= 265078kB time=00:00:20.40 > bitrate=106447.1kbits > frame= 560 fps= 63 q=0.0 size= 277734kB time=00:00:22.40 > bitrate=101571.4kbits > frame= 612 fps= 65 q=0.0 size= 289969kB time=00:00:24.47 > bitrate=97037.3kbits/ > frame= 663 fps= 67 q=0.0 size= 303328kB time=00:00:26.52 > bitrate=93697.7kbits/ > frame= 672 fps= 65 q=0.0 size= 319641kB time=00:00:26.88 > bitrate=97414.3kbits/ > frame= 724 fps= 66 q=0.0 size= 331734kB time=00:00:28.96 > bitrate=93838.7kbits/ > frame= 781 fps= 69 q=0.0 size= 343125kB time=00:00:31.24 > bitrate=89977.0kbits/ > frame= 828 fps= 69 q=0.0 size= 359719kB time=00:00:33.11 > bitrate=88975.3kbits/ > frame= 849 fps= 68 q=0.0 size= 375328kB time=00:00:33.96 > bitrate=90538.5kbits/ > frame= 887 fps= 68 q=0.0 size= 386016kB time=00:00:35.48 > bitrate=89127.4kbits/ > frame= 941 fps= 69 q=0.0 size= 397221kB time=00:00:37.64 > bitrate=86451.5kbits/ > frame= 1010 fps= 72 q=0.0 size= 407109kB time=00:00:40.40 > bitrate=82550.5kbits/ > frame= 1083 fps= 74 q=0.0 size= 417797kB time=00:00:43.32 > bitrate=79007.2kbits/ > frame= 1157 fps= 77 q=0.0 size= 428484kB time=00:00:46.28 > bitrate=75845.8kbits/ > frame= 1231 fps= 79 q=0.0 size= 439031kB time=00:00:49.24 > bitrate=73041.1kbits/ > frame= 1303 fps= 81 q=0.0 size= 449578kB time=00:00:52.12 > bitrate=70662.8kbits/ > frame= 1375 fps= 83 q=0.0 size= 460266kB time=00:00:55.00 > bitrate=68554.5kbits/ > frame= 1446 fps= 85 q=0.0 size= 470672kB time=00:00:57.84 > bitrate=66662.2kbits/ > frame= 1518 fps= 86 q=0.0 size= 481078kB time=00:01:00.72 > bitrate=64904.3kbits/ > frame= 1592 fps= 88 q=0.0 size= 491484kB time=00:01:03.68 > bitrate=63226.1kbits/ > frame= 1667 fps= 90 q=0.0 size= 502172kB time=00:01:06.68 > bitrate=61694.5kbits/ > frame= 1741 fps= 91 q=0.0 size= 513000kB time=00:01:09.64 > bitrate=60346.0kbits/ > frame= 1815 fps= 93 q=0.0 size= 523547kB time=00:01:12.60 > bitrate=59075.7kbits/ > frame= 1884 fps= 94 q=0.0 size= 533109kB time=00:01:15.36 > bitrate=57951.6kbits/ > frame= 1985 fps= 96 q=0.0 size= 534375kB time=00:01:19.40 > bitrate=55133.5kbits/ > frame= 2111 fps=100 q=0.0 size= 534375kB time=00:01:24.44 > bitrate=51842.7kbits/ > frame= 2231 fps=103 q=0.0 size= 534375kB time=00:01:29.24 > bitrate=49054.2kbits/ > frame= 2351 fps=106 q=0.0 size= 534375kB time=00:01:34.04 > bitrate=46550.4kbits/ > frame= 2474 fps=110 q=0.0 size= 534375kB time=00:01:38.96 > bitrate=44236.1kbits/ > frame= 2598 fps=113 q=0.0 size= 534375kB time=00:01:43.92 > bitrate=42124.7kbits/ > frame= 2722 fps=115 q=0.0 size= 534375kB time=00:01:48.88 > bitrate=40205.7kbits/ > frame= 2847 fps=118 q=0.0 size= 534375kB time=00:01:53.88 > bitrate=38440.5kbits/ > frame= 2970 fps=121 q=0.0 size= 534375kB time=00:01:58.79 > bitrate=36848.6kbits/ > frame= 3095 fps=123 q=0.0 size= 534375kB time=00:02:03.80 > bitrate=35360.3kbits/ > frame= 3219 fps=126 q=0.0 size= 534375kB time=00:02:08.76 > bitrate=33998.1kbits/ > frame= 3341 fps=128 q=0.0 size= 534375kB time=00:02:13.64 > bitrate=32756.7kbits/ > frame= 3465 fps=130 q=0.0 size= 534375kB time=00:02:18.59 > bitrate=31584.5kbits/ > frame= 3590 fps=132 q=0.0 size= 534375kB time=00:02:23.60 > bitrate=30484.7kbits/ > frame= 3715 fps=135 q=0.0 size= 534375kB time=00:02:28.60 > bitrate=29459.0kbits/ > Truncating packet of size 304128 to 1 > frame= 3800 fps=135 q=0.0 size= 534375kB time=00:02:32.00 > bitrate=28800.0kbits/ > Truncating packet of size 1024 to 961 > Truncating packet of size 1024 to 1 > frame= 3800 fps=135 q=0.0 Lsize= 534375kB time=00:02:32.00 > bitrate=28800.0kbits > /s > video:534375kB audio:42599kB global headers:0kB muxing overhead -7.383200% > > ------> END OF COMMAND 1 > > 2) this is the second command - mov->mov: > ffmpeg -y -i output.mov.tmp -vcodec copy -acodec copy -sameq -strict -o > output.mov > ffmpeg version N-37063-g14d94a1 Copyright (c) 2000-2012 the FFmpeg > developers > built on Jan 23 2012 17:40:00 with gcc 4.6.2 > configuration: --disable-static --enable-shared --enable-gpl > --enable-version3 > --disable-w32threads --enable-runtime-cpudetect --enable-avisynth > --enable-bzli > b --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb > --enable > -libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg > --enable-l > ibrtmp --enable-libschroedinger --enable-libspeex --enable-libtheora > --enable-li > bvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx > --enable-l > ibx264 --enable-libxavs --enable-libxvid --enable-zlib > libavutil 51. 34.101 / 51. 34.101 > libavcodec 53. 57.105 / 53. 57.105 > libavformat 53. 30.100 / 53. 30.100 > libavdevice 53. 4.100 / 53. 4.100 > libavfilter 2. 59.101 / 2. 59.101 > libswscale 2. 1.100 / 2. 1.100 > libswresample 0. 6.100 / 0. 6.100 > libpostproc 52. 0.100 / 52. 0.100 > [dv @ 006DEA00] Estimating duration from bitrate, this may be inaccurate > Input #0, dv, from 'output.mov.tmp': > Metadata: > timecode : 00:00:00:00 > Duration: 00:02:32.00, start: 0.000000, bitrate: 28800 kb/s > Stream #0:0: Video: dvvideo, yuv420p, 720x576, 28800 kb/s, SAR 16:15 > DAR 4:3 > , 25 tbr, 25 tbn, 25 tbc > Stream #0:1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s > Output #0, mov, to 'output.mov': > Metadata: > timecode : 00:00:00:00 > encoder : Lavf53.30.100 > Stream #0:0: Video: dvvideo (dvcp / 0x70637664), yuv420p, 720x576 [SAR > 16:15 > DAR 4:3], q=2-31, 28800 kb/s, 25 tbn, 25 tbc > Stream #0:1: Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2 > channels, 153 > 6 kb/s > Stream mapping: > Stream #0:0 -> #0:0 (copy) > Stream #0:1 -> #0:1 (copy) > Press [q] to stop, [?] for help > frame= 1855 fps= 0 q=-1.0 size= 274624kB time=00:01:14.16 > bitrate=30336.0kbits > frame= 3754 fps=3754 q=-1.0 size= 556054kB time=00:02:30.16 > bitrate=30335.6kbit > frame= 3800 fps=3751 q=-1.0 Lsize= 562906kB time=00:02:32.00 > bitrate=30337.7kbi > ts/s > video:534375kB audio:28500kB global headers:0kB muxing overhead 0.005491% > > -----> END OF COMMAND 2 > > basically, i truly understand that the -sameq is not relevant here, but i > still wanted to copy the command i used as it is. > > Thanks for your support. > > 2012/1/27 Carl Eugen Hoyos > >> Roee Kashi gmail.com> writes: >> >> > ffmpeg -y -i aud_file.mp3 -s 528x384 -vtag YV12 -i raw_vid.yuv -target >> > pal-dv outdv.mov >> >> Your report is missing the output from the important commands (instead you >> provide the output of the less important commands)... >> >> I am not 100% sure what -target pal-dv does, so I cannot comment if it >> does what >> you want. >> >> ... >> >> > ffmpeg -i outdv.mov -vcodec copy -acodec copy -sameq -strict -o >> outdv2.mov >> >> But assuming strict is what makes the difference here (I suspect you >> don't know >> what -sameq does and in any case, it has no effect for -vcodec copy), did >> you >> try adding it to the first command? >> >> Carl Eugen >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > From bostjan.strojan at gmail.com Tue Feb 7 09:19:12 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Tue, 7 Feb 2012 09:19:12 +0100 Subject: [FFmpeg-user] converting yuv directly to Apple Final Cut Pro In-Reply-To: References: Message-ID: On Tue, Feb 7, 2012 at 9:07 AM, Roee Kashi wrote: >> ffmpeg -y -i aud_file.mp3 -s 528x384 -vtag YV12 -r 25 -i raw_vid.yuv -r 25 >> -target pal-dv output.mov.tmp why -s 528x384 ? it should be: 720x480 (NTSC) or 720x576 (PAL) more http://www.adamwilt.com/DV-tech.html#DVStandards b. From galacap at gmail.com Tue Feb 7 09:26:29 2012 From: galacap at gmail.com (Roee Kashi) Date: Tue, 7 Feb 2012 10:26:29 +0200 Subject: [FFmpeg-user] converting yuv directly to Apple Final Cut Pro In-Reply-To: References: Message-ID: 528x384 is the resolution of the input YUV file. the output resolution is indeed 720x576 as you can see in my first message. or maybe i didn't get you. Thanks. 2012/2/7 Bo?tjan Strojan > On Tue, Feb 7, 2012 at 9:07 AM, Roee Kashi wrote: > > >> ffmpeg -y -i aud_file.mp3 -s 528x384 -vtag YV12 -r 25 -i raw_vid.yuv -r > 25 > >> -target pal-dv output.mov.tmp > > why -s 528x384 ? > > it should be: > > 720x480 (NTSC) or > 720x576 (PAL) > > more http://www.adamwilt.com/DV-tech.html#DVStandards > > b. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From cehoyos at ag.or.at Tue Feb 7 10:07:30 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 7 Feb 2012 09:07:30 +0000 (UTC) Subject: [FFmpeg-user] DXVA2 problems since ffmpeg v0.9.1 References: Message-ID: Bjoern Drabeck gmail.com> writes: > I have been playing around with using dxva2 for decoding h264 movies, which > worked fine so far (ie up to version 0.9) > > However, for every newer version since then (FYI: I am using the zeranoe > builds btw) it never calls into my custom get format function > (codec->get_format), and the hwaccel and hwaccel_context members are still > always 0 [all of this worked fine in previous versions] Could you try git bisect to find the change introducing the problem? Unfortunately, no developer actively uses Windows and I suspect you will not provide the necessary sources to test, or will you? Carl Eugen From andrey.krieger.utkin at gmail.com Tue Feb 7 10:39:52 2012 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Tue, 7 Feb 2012 11:39:52 +0200 Subject: [FFmpeg-user] Segment RTSP stream stops after ten minutes In-Reply-To: References: Message-ID: Try connecting with RTSP-via-TCP: append '?tcp' to end of source URL. Maybe now you have UDP port tunneling expiration, or so. Also try with options -loglevel debug -dump and analyze packets. Also sniffing traffic (with ngrep/wireshark) may give clarity. -- Andrey Utkin From bjoern.drabeck at gmail.com Tue Feb 7 10:46:18 2012 From: bjoern.drabeck at gmail.com (Bjoern Drabeck) Date: Tue, 7 Feb 2012 17:46:18 +0800 Subject: [FFmpeg-user] DXVA2 problems since ffmpeg v0.9.1 In-Reply-To: References: Message-ID: Hi Carl, thanks for your reply, I am sure the problem happened between 0.9 and 0.9.1, so hopefully it shouldn't be too hard to track it down... so will have a look tmw. Basically it doesn't seem to accept overriding the codec->get_format function and the same for the hwaccel_context, which always gets reset to 0. If I find some time, maybe I can later provide you with a simple demo program, which you (or whoever on your team) can use for testing to see if it still works.. cheers, Bjoern Bjoern Drabeck gmail.com> writes: > > > I have been playing around with using dxva2 for decoding h264 movies, > which > > worked fine so far (ie up to version 0.9) > > > > However, for every newer version since then (FYI: I am using the zeranoe > > builds btw) it never calls into my custom get format function > > (codec->get_format), and the hwaccel and hwaccel_context members are > still > > always 0 [all of this worked fine in previous versions] > > Could you try git bisect to find the change introducing the problem? > Unfortunately, no developer actively uses Windows and I suspect you > will not provide the necessary sources to test, or will you? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From mailer.tovis at freemail.hu Tue Feb 7 11:07:25 2012 From: mailer.tovis at freemail.hu (tovis) Date: Tue, 7 Feb 2012 11:07:25 +0100 Subject: [FFmpeg-user] configure on Debian Squeeze Message-ID: <100916e62c810811953051e09fc6dde7.squirrel@nusi> Hi everyone! I have trying to configure/compile/install ffmpeg, using git sources (0.9.x.git). The box itself "clean" Squeeze without X (I need ffmpeg "only" for streaming, converting, processing purposes). I need optional filter "drwatext", I have using "$ ./config --enable-libfreetype" - ffmpeg config does not found it - "ERROR: freetype not found" After some google investigation, I have found that I simply does not installed freetype library. I have installed libfreetype6-dev - as suggested in that email. ffmpeg config still does not found freetype library :( At the end of config.log I found relevant information: check_pkg_config freetype2 ft2build.h freetype/freetype.h FT_Init_FreeType ERROR: freetype2 not found What does it mean? /usr/ib/pkgconfig/freetype2.pc look like this: prefix=/usr exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: FreeType 2 Description: A free, high-quality, and portable font engine. Version: 12.0.6 Requires: Libs: -L${libdir} -lfreetype Libs private: -lz Cflags: -l${includedir}/freetype2 -I${includedir} I could not find what is wrong with this. Any help? Sincerely tovis From werner.robitza at gmail.com Tue Feb 7 11:28:33 2012 From: werner.robitza at gmail.com (Werner Robitza) Date: Tue, 7 Feb 2012 11:28:33 +0100 Subject: [FFmpeg-user] Converting from Avid DNxHD files results in black or white pictures only Message-ID: I have DNxHD encoded source files, from two different creators. I'm unable to decode either of them, regardless of the output codec I use in FFmpeg. Transcoding them with other applications such as Adobe Media Encoder or QuickTime itself is not a problem though. For example, just trying with a very simple command line. ---------------------------------------------------------------------- aeneas:sami werner$ ffmpeg -i 01-sami-ep01-var01-de.mov -t 5 ~/Desktop/out.mp4 ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers ? built on Feb ?7 2012 10:12:12 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3) ? configuration: --prefix=/usr/local/Cellar/ffmpeg/0.10 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libfreetype --cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-ffplay ? 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 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x10180e800] multiple fourcc not supported Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01-sami-ep01-var01-de.mov': ? Metadata: ? ? major_brand ? ? : qt ? ? minor_version ? : 537199360 ? ? compatible_brands: qt ? ? creation_time ? : 2010-07-20 08:41:46 ? Duration: 00:03:09.20, start: 0.000000, bitrate: 1020724 kb/s ? ? Stream #0:0(eng): Video: dnxhd (AVdn / 0x6E645641), yuv422p, 1920x1080, 1019185 kb/s, 25 fps, 25 tbr, 25k tbn, 25k tbc ? ? Metadata: ? ? ? creation_time ? : 2010-07-20 08:41:46 ? ? ? handler_name ? ?: ?Apple Alias-Datensteuerung ? ? Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2 channels, s16, 1536 kb/s ? ? Metadata: ? ? ? creation_time ? : 2010-07-20 08:41:46 ? ? ? handler_name ? ?: ?Apple Alias-Datensteuerung ? ? Stream #0:2(eng): Data: none (tmcd / 0x64636D74) ? ? Metadata: ? ? ? creation_time ? : 2010-07-20 08:45:09 ? ? ? handler_name ? ?: ?Apple Alias-Datensteuerung ? ? ? timecode ? ? ? ?: 01:00:00:00 File '/Users/cacmtv/Desktop/out.mp4' already exists. Overwrite ? [y/N] y w:1920 h:1080 pixfmt:yuv422p tb:1/1000000 sar:0/1 sws_param: [libx264 @ 0x10184a800] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0x10184a800] profile High 4:2:2, level 4.0, 4:2:2 8-bit [libx264 @ 0x10184a800] 264 - core 120 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to '/Users/cacmtv/Desktop/out.mp4': ? Metadata: ? ? major_brand ? ? : qt ? ? minor_version ? : 537199360 ? ? compatible_brands: qt ? ? creation_time ? : 2010-07-20 08:41:46 ? ? encoder ? ? ? ? : Lavf53.31.100 ? ? Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv422p, 1920x1080, q=-1--1, 25 tbn, 25 tbc ? ? Metadata: ? ? ? creation_time ? : 2010-07-20 08:41:46 ? ? ? handler_name ? ?: ?Apple Alias-Datensteuerung ? ? Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, 2 channels, s16, 128 kb/s ? ? Metadata: ? ? ? creation_time ? : 2010-07-20 08:41:46 ? ? ? handler_name ? ?: ?Apple Alias-Datensteuerung Stream mapping: ? Stream #0:0 -> #0:0 (dnxhd -> libx264) ? Stream #0:1 -> #0:1 (pcm_s16be -> libfaac) Press [q] to stop, [?] for help [dnxhd @ 0x10a881e00] Multiple ff_thread_finish_setup() calls [dnxhd @ 0x10a882400] Multiple ff_thread_finish_setup() calls [dnxhd @ 0x10a884a00] Multiple ff_thread_finish_setup() calls [dnxhd @ 0x10a881e00] Multiple ff_thread_finish_setup() calls [dnxhd @ 0x10a882400] Multiple ff_thread_finish_setup() calls [dnxhd @ 0x10a884a00] Multiple ff_thread_finish_setup() calls [dnxhd @ 0x10a881e00] Multiple ff_thread_finish_setup() calls [dnxhd @ 0x10a882400] Multiple ff_thread_finish_setup() calls [dnxhd @ 0x10a884a00] Multiple ff_thread_finish_setup() calls [dnxhd @ 0x10a881e00] Multiple ff_thread_finish_setup() calls Multiple ff_thread_finish_setup() callskB time=00:00:00.00 bitrate= 0.0kbits/s [dnxhd @ 0x10a884a00] Multiple ff_thread_finish_setup() calls [dnxhd @ 0x10a881e00] Multiple ff_thread_finish_setup() calls frame= ? 10 fps= 10 q=32766.0 Lsize= ? ? ?57kB time=00:00:00.32 bitrate=1470.1kbits/s video:2kB audio:53kB global headers:0kB muxing overhead 4.297623% [libx264 @ 0x10184a800] frame I:1 ? ? Avg QP: 7.00 ?size: ? 424 [libx264 @ 0x10184a800] frame P:3 ? ? Avg QP:31.00 ?size: ? ?72 [libx264 @ 0x10184a800] frame B:6 ? ? Avg QP:31.00 ?size: ? ?67 [libx264 @ 0x10184a800] consecutive B-frames: 20.0% ?0.0% ?0.0% 80.0% [libx264 @ 0x10184a800] mb I ?I16..4: 100.0% ?0.0% ?0.0% [libx264 @ 0x10184a800] mb P ?I16..4: ?0.0% ?0.0% ?0.0% ?P16..4: ?0.0% ?0.0% ?0.0% ?0.0% ?0.0% ? ?skip:100.0% [libx264 @ 0x10184a800] mb B ?I16..4: ?0.0% ?0.0% ?0.0% ?B16..8: ?0.0% ?0.0% ?0.0% ?direct: 0.0% ?skip:100.0% [libx264 @ 0x10184a800] 8x8 transform intra:0.0% [libx264 @ 0x10184a800] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0% inter: 0.0% 0.0% 0.0% [libx264 @ 0x10184a800] i16 v,h,dc,p: 99% ?0% ?1% ?0% [libx264 @ 0x10184a800] i8c dc,h,v,p: 100% ?0% ?0% ?0% [libx264 @ 0x10184a800] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x10184a800] kb/s:20.88 ---------------------------------------------------------------------- The output file is available here: http://dl.dropbox.com/u/24074822/dnxhd/out.mp4 It just shows a black picture in every player I've tried, from VLC to QuickTime. The same happens with another DNxHD file as source. Note that I have omitted all "Multiple ff_thread_finish_setup() calls" messages in the following output. ---------------------------------------------------------------------- aeneas:echo-tv-source werner$ ffmpeg -i GUT_DEUTSCH.mov -t 5 ~/Desktop/out-2.mp4 ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers ? built on Feb ?7 2012 10:12:12 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3) ? configuration: --prefix=/usr/local/Cellar/ffmpeg/0.10 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libfreetype --cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-ffplay ? 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 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x10180e800] Timecode frame rate not supported Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'GUT_DEUTSCH.mov': ? Metadata: ? ? creation_time ? : 2010-09-09 15:45:16 ? Duration: 00:07:06.60, start: 0.000000, bitrate: 122659 kb/s ? ? Stream #0:0(eng): Audio: pcm_s16be (twos / 0x736F7774), 44100 Hz, 2 channels, s16, 1411 kb/s ? ? Metadata: ? ? ? creation_time ? : 2010-09-09 15:45:16 ? ? ? handler_name ? ?: ?Apple Alias-Datensteuerung ? ? Stream #0:1(eng): Video: dnxhd (AVdn / 0x6E645641), yuv422p, 1280x720, 121241 kb/s, 50 fps, 50 tbr, 50k tbn, 50k tbc ? ? Metadata: ? ? ? creation_time ? : 2010-09-09 15:45:16 ? ? ? handler_name ? ?: ?Apple Alias-Datensteuerung ? ? Stream #0:2(eng): Data: none (tmcd / 0x64636D74) ? ? Metadata: ? ? ? creation_time ? : 2010-09-09 15:59:52 ? ? ? handler_name ? ?: ?Apple Alias-Datensteuerung ? ? Stream #0:3(eng): Audio: pcm_s16be (twos / 0x736F7774), 44100 Hz, 2 channels, s16, 1411 kb/s ? ? Metadata: ? ? ? creation_time ? : 2010-09-09 15:45:16 ? ? ? handler_name ? ?: ?Apple Alias-Datensteuerung ? ? Stream #0:4(eng): Video: dnxhd (AVdn / 0x6E645641), yuv422p, 1280x720, 121241 kb/s, 50 fps, 50 tbr, 50k tbn, 50k tbc ? ? Metadata: ? ? ? creation_time ? : 2010-09-09 15:45:16 ? ? ? handler_name ? ?: ?Apple Alias-Datensteuerung [buffer @ 0x1017150a0] w:1280 h:720 pixfmt:yuv422p tb:1/1000000 sar:0/1 sws_param: [libx264 @ 0x1018ab200] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0x1018ab200] profile High 4:2:2, level 3.2, 4:2:2 8-bit [libx264 @ 0x1018ab200] 264 - core 120 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to '/Users/cacmtv/Desktop/out-2.mp4': ? Metadata: ? ? creation_time ? : 2010-09-09 15:45:16 ? ? encoder ? ? ? ? : Lavf53.31.100 ? ? Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv422p, 1280x720, q=-1--1, 50 tbn, 50 tbc ? ? Metadata: ? ? ? creation_time ? : 2010-09-09 15:45:16 ? ? ? handler_name ? ?: ?Apple Alias-Datensteuerung ? ? Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, 2 channels, s16, 128 kb/s ? ? Metadata: ? ? ? creation_time ? : 2010-09-09 15:45:16 ? ? ? handler_name ? ?: ?Apple Alias-Datensteuerung Stream mapping: ? Stream #0:1 -> #0:0 (dnxhd -> libx264) ? Stream #0:0 -> #0:1 (pcm_s16be -> libfaac) Press [q] to stop, [?] for help video:886kB audio:60kB global headers:0kB muxing overhead 0.793350% [libx264 @ 0x1018ab200] frame I:1 ? ? Avg QP:25.20 ?size: 46659 [libx264 @ 0x1018ab200] frame P:66 ? ?Avg QP:25.31 ?size: ?9010 [libx264 @ 0x1018ab200] frame B:183 ? Avg QP:28.13 ?size: ?1451 [libx264 @ 0x1018ab200] consecutive B-frames: ?0.8% ?4.8% ?0.0% 94.4% [libx264 @ 0x1018ab200] mb I ?I16..4: 29.1% 62.9% ?8.0% [libx264 @ 0x1018ab200] mb P ?I16..4: ?1.2% ?1.3% ?0.3% ?P16..4: 37.9% ?7.0% ?4.8% ?0.0% ?0.0% ? ?skip:47.6% [libx264 @ 0x1018ab200] mb B ?I16..4: ?0.0% ?0.0% ?0.0% ?B16..8: 25.9% ?0.3% ?0.0% ?direct: 0.2% ?skip:73.5% ?L0:38.9% L1:60.0% BI: 1.0% [libx264 @ 0x1018ab200] 8x8 transform intra:52.6% inter:80.2% [libx264 @ 0x1018ab200] coded y,uvDC,uvAC intra: 43.3% 52.8% 13.6% inter: 4.6% 13.5% 0.1% [libx264 @ 0x1018ab200] i16 v,h,dc,p: 29% 23% ?6% 41% [libx264 @ 0x1018ab200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 13% 36% ?5% ?5% ?6% ?6% ?9% ?5% [libx264 @ 0x1018ab200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 17% 14% ?6% ?8% 10% ?6% ?9% ?4% [libx264 @ 0x1018ab200] i8c dc,h,v,p: 61% 16% 20% ?4% [libx264 @ 0x1018ab200] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 0x1018ab200] ref P L0: 55.6% 14.0% 21.7% ?8.7% [libx264 @ 0x1018ab200] ref B L0: 91.4% ?7.0% ?1.5% [libx264 @ 0x1018ab200] ref B L1: 95.4% ?4.6% [libx264 @ 0x1018ab200] kb/s:1451.04 ---------------------------------------------------------------------- What could be wrong here? I've never been able to properly decode these source files, although all players show them without problems (e.g. QuickTime, VLC, Premiere Pro). I might be able to supply the source files, but they're rather big (~25GB). Best regards Werner Robitza From dave.bevan at bbc.co.uk Tue Feb 7 11:41:07 2012 From: dave.bevan at bbc.co.uk (Dave Bevan) Date: Tue, 7 Feb 2012 10:41:07 -0000 Subject: [FFmpeg-user] Converting from Avid DNxHD files results in black orwhite pictures only In-Reply-To: References: Message-ID: >From: Werner Robitza >Sent: 07 February 2012 10:29 > Subject: [FFmpeg-user] Converting from Avid DNxHD files results in black orwhite pictures only > >I have DNxHD encoded source files, from two different creators. I'm unable to decode either of them, >regardless of the output codec I use in FFmpeg. Transcoding them with other applications such as Adobe Media > Encoder or QuickTime itself is not a problem though. Have you tried http://code.google.com/p/ffmbc/ - it specifically supports DNxHD encoding and decoding. --D. http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From hornetster at hotmail.com Tue Feb 7 11:49:21 2012 From: hornetster at hotmail.com (John Bennett) Date: Tue, 7 Feb 2012 20:49:21 +1000 Subject: [FFmpeg-user] FW: Converting AVI files and creating a DVD In-Reply-To: <4F2FE17C.8030902@bbc.co.uk> References: <4F2F85E6.9030106@bbc.co.uk> <4F2FE17C.8030902@bbc.co.uk> Message-ID: On Tue, Feb 7, 2012 at 12:19 AM, Tim Nicholson wrote: > On 06/02/12 11:35, John Bennett wrote: >> >> On Mon, Feb 6, 2012 at 5:48 PM, Tim Nicholson >> ?wrote: > > [...] >>> >>> >>> >>> Try using DVD Styler to author the DVD. This uses ffmpeg for transcoding >>> source material, if required, and does proper indexing so seeking etc >>> sghould work. >>> >>> >>> -- >>> Tim >> >> >> Thanks for the reply, Tim, really appreciated! >> But.... when I try using DVDStyler, trying to do a really basic DVD, >> it either crashes on me totally, or cutting it back even more and >> running from a terminal, I get: >> >> ************************************************************************************* >> >> decode_slice_header error >> no frame! >> get_buffer() failed (-1 0 (nil)) >> decode_slice_header error >> no frame! >> Input #0, avi, from '/home/bigun/Movies/ErinWed/AVI/FILE0001.AVI': >> ? Metadata: >> ? ? date ? ? ? ? ? ?: 2009-10-21 >> ? ? ICRT ? ? ? ? ? ?: 13:53:08 >> ? ? comment ? ? ? ? : >> ? Duration: 00:00:10.81, start: 0.000000, bitrate: 12289 kb/s >> ? ? Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), vda_vld, >> 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 >> tbc >> ? ? Stream #0:1: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 48000 >> Hz, 2 channels, s16, 384 kb/s >> Incompatible sample format 's16' for codec 'ac3', auto-selecting format >> 'flt' >> auto-inserting filter 'auto-inserted scale 0' between the filter 'src' >> and the filter '(null)' >> Impossible to convert between the formats supported by the filter >> 'src' and the filter 'auto-inserted scale 0' >> Error opening filters! >> Error transcoding of /home/bigun/Movies/ErinWed/AVI/FILE0001.AVI >> >> ************************************************************************************* >> Any ideas? >> Thanks, John. > > > > It looks like there is something "unusual" about your source file. Can you > try and make things work with a different file so you can see how it should > all go? That might help to narrow things down a bit. > > > -- > Tim > Thanks for the idea, but I have had 'some' success previously with some video files and seen how it should work, but these files are off a new (relatively..) video camcorder, and trying to figure out the best way to convert. Unfortunately it is a relatively cheap (Kogan - A$300) recorder, and even the Windows supplied software does a very mediocre job of converting them to 'anything'... But I thought they would have been a relatively common format?? How can I progress this?? Thanks, John. From werner.robitza at gmail.com Tue Feb 7 12:10:13 2012 From: werner.robitza at gmail.com (Werner Robitza) Date: Tue, 7 Feb 2012 12:10:13 +0100 Subject: [FFmpeg-user] Converting from Avid DNxHD files results in black orwhite pictures only In-Reply-To: References: Message-ID: > > Have you tried http://code.google.com/p/ffmbc/ - it specifically > supports DNxHD encoding and decoding. > Thank you, this flawlessly worked for the first file. For the second file, I get an error and encoding stops somewhere in the middle, but I figure this should be posted to the FFmbc issue tracker? ------------- aeneas:sami werner$ ffmbc -i 01-sami-ep01-var01-de.mov ~/Desktop/out.mov FFmbc version 0.7-rc5 Copyright (c) 2008-2011 Baptiste Coudurier and the FFmpeg developers [mov,mp4,m4a,3gp,3g2,mj2 @ 0x10182ea00] multiple fourcc not supported Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01-sami-ep01-var01-de.mov': Metadata: major_brand: qt minor_version: 537199360 compatible_brands: qt creation_time: 2010-07-20 08:41:46 timecode: 01:00:00:00 Duration: 00:03:09.20, start: 0.000000, bitrate: 1020724 kb/s Stream #0.0(eng): Video: dnxhd, yuv422p, 1920x1080p, 1019185 kb/s, 25.00 fps Metadata: codec_name: Avid DNxHD Codec Stream #0.1(eng): Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s Stream #0.2(eng): Data: unknown (tmcd) File '/Users/cacmtv/Desktop/out.mov' already exists. Overwrite ? [y/N] y Incompatible pixel format 'yuv422p' for codec 'mpeg4', auto-selecting format 'yuv420p' [scale @ 0x10150eda0] w:1920 h:1080 fmt:yuv422p -> w:1920 h:1080 fmt:yuv420p flags:0x4 Output #0, mov, to '/Users/cacmtv/Desktop/out.mov': Metadata: encoder: FFmbc 0.7 Stream #0.0(und): Video: mpeg4, yuv420p, 1920x1080p [PAR 1:1 DAR 16:9], 200 kb/s, 25.00 fps Stream #0.1(und): Audio: libfaac, 48000 Hz, 2 channels, s16, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop, [?] for help frame= 10 fps= 2 q=2.0 size= 31kB time=00:00:00.40 bitrate= 638.1kbits/s eta=00:31:53.24 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x10182ea00] stream 0, offset 0x599c4a630: partial file [mov @ 0x10182fc00] replacing header in front, copying 1.08MB frame= 10 fps= 2 q=2.0 Lsize= 1173kB time=00:00:00.40 bitrate=24030.8kbits/s video:31kB audio:1073kB global headers:0kB muxing overhead 6.262431% ------------- Still, is this a known bug or missing feature with current FFmpeg? It seems DNxHD is listed as a working codec when looking at "ffmpeg -codecs": DEV D dnxhd VC3/DNxHD Best Werner From tim.nicholson at bbc.co.uk Tue Feb 7 13:15:35 2012 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Tue, 07 Feb 2012 12:15:35 +0000 Subject: [FFmpeg-user] ffmpeg/libx264 thread management Message-ID: <4F3115E7.1090606@bbc.co.uk> I have noticed that when ffmpeg is allowed to do its own thing and create subthreads it creates those subthreads with a nice value of 0, as per the master thread. However if performing a libx264 encode, these threads are niced up to 10. This means I end up with lots of threads but still no maxed out CPU. I can run 2nd and 3rd transcodes and each one runs at the same speed as the first to max out the cpu, but how can I max out the CPU for just the one? Manually upping the thread count just increases the kernel cpu load as it tries to manage all the threads without increasing throughput... -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From bostjan.strojan at gmail.com Tue Feb 7 14:18:45 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Tue, 7 Feb 2012 14:18:45 +0100 Subject: [FFmpeg-user] Incompatible pixel format 'uyvy422' for codec 'libx264', auto-selecting format 'yuv420p10le' In-Reply-To: <201202070031.56749.cehoyos@ag.or.at> References: <201202070031.56749.cehoyos@ag.or.at> Message-ID: On Tue, Feb 7, 2012 at 12:31 AM, Carl Eugen Hoyos wrote: > Could you test attached patch? > (Untested here.) > > Carl Eugen I will, just need some time to (get to my compiling machine, read about on how the patch command work, make a compile, ect...) thanks, b. From jshupert at pps-inc.com Tue Feb 7 14:56:59 2012 From: jshupert at pps-inc.com (Jim Shupert) Date: Tue, 07 Feb 2012 08:56:59 -0500 Subject: [FFmpeg-user] ffmpeg-10 audio and video sync problem. In-Reply-To: References: Message-ID: <4F312DAB.60300@pps-inc.com> On 2/7/2012 12:47 AM, Ly Tran Cong wrote: > Hi all, > > I use this command to transcode multicast video to DarwinStreaming. > > ffmpeg -i udp://239.30.10.6:5106?reuse=1 > -an -c:v libx264 -profile baseline > -preset ultrafast -r 25 -s 320x240 -b:v > 128k -coder 0 -refs 3 -bf 0 -g 150 -keyint_min 20 -qmin 10 -qmax 51 -qdiff > 4 -trellis 0 -flags +global_header -vsync 1 -copyts -f rtp rtp:// > 127.0.0.1:37130 -flags +global_header -vn -c:a libfaac -ar 22050 -b:a 8k > -ac 2 -vn -async 22050 -rtpflags +latm -fflags +latm -copyts -f rtp rtp:// > 127.0.0.1:37132 > > then I use vlc to play that stream but I have to refresh vlc many time. > Sometime I can hear audio, sometime I can watch video without audio and > sometime I can watch video faster than audio. > > Please let me know is there any problem with my command or ffmpeg sync > problem. > Friend, you might try replacing :: -async 22050 with -async 1 -ar 22050 From mailer.tovis at freemail.hu Tue Feb 7 15:31:05 2012 From: mailer.tovis at freemail.hu (tovis) Date: Tue, 7 Feb 2012 15:31:05 +0100 Subject: [FFmpeg-user] configure on Debian Squeeze In-Reply-To: <100916e62c810811953051e09fc6dde7.squirrel@nusi> References: <100916e62c810811953051e09fc6dde7.squirrel@nusi> Message-ID: <6f86e31a70584427548913c2994023c7.squirrel@nusi> > Hi everyone! > I have trying to configure/compile/install ffmpeg, using git sources > (0.9.x.git). The box itself "clean" Squeeze without X (I need ffmpeg > "only" for streaming, converting, processing purposes). > I need optional filter "drwatext", I have using "$ ./config > --enable-libfreetype" - ffmpeg config does not found it - "ERROR: freetype > not found" > > After some google investigation, I have found that I simply does not > installed freetype library. I have installed libfreetype6-dev - as > suggested in that email. ffmpeg config still does not found freetype > library :( > At the end of config.log I found relevant information: > > check_pkg_config freetype2 ft2build.h freetype/freetype.h FT_Init_FreeType > ERROR: freetype2 not found > > What does it mean? > /usr/ib/pkgconfig/freetype2.pc look like this: > > prefix=/usr > exec_prefix=${prefix} > libdir=${exec_prefix}/lib > includedir=${prefix}/include > > Name: FreeType 2 > Description: A free, high-quality, and portable font engine. > Version: 12.0.6 > Requires: > Libs: -L${libdir} -lfreetype > Libs private: -lz > Cflags: -l${includedir}/freetype2 -I${includedir} > > I could not find what is wrong with this. > Any help? > > Sincerely > tovis > > OK! It is too difficult, even libc is not good for newest version. First time I was working with version 0.7-rc1 - I step back. But error still exist: $ ./configure --enable-libfreetype ./configure: 1: pkg-config: not found Error: libfreetype not found Why it does not recognize libfree? Sincerely tovis From qw_222 at 163.com Tue Feb 7 08:26:39 2012 From: qw_222 at 163.com (qw_222) Date: Tue, 7 Feb 2012 15:26:39 +0800 (CST) Subject: [FFmpeg-user] ffmpeg + x264 - HELP! Message-ID: <1fda0744.ca4c.13556b509f1.Coremail.qw_222@163.com> Hi, My situation is: libx264.a can be generated successfully. config.sh: export ARM_ROOT=/home/lerboo/android-ndk-r5 export ARM_INC=$ARM_ROOT/platforms/android-8/arch-arm/usr/include/ export ARM_LIB=$ARM_ROOT/platforms/android-8/arch-arm/usr/lib/ export ARM_TOOL=$ARM_ROOT/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86 export ARM_LIBO=$ARM_TOOL/lib/gcc/arm-eabi/4.4.0 export PATH=$ARM_TOOL/bin:$PATH export ARM_PRE=$ARM_TOOL/bin/arm-eabi ./configure --prefix=/home/lerboo/android-ndk-r5/arm_and \ --disable-gpac \ --disable-shared \ --extra-cflags="-I$ARM_INC -fPIC -DANDROID -fpic -mthumb-interwork -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi -march=armv5te -mtune=xscale -msoft-float -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wa,--noexecstack -MMD -MP " \ --extra-ldflags="-nostdlib -Bdynamic -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,nocopyreloc -Wl,-soname,/system/lib/libz.so -Wl,-rpath-link=$ARM_LIB,-dynamic-linker=/system/bin/linker -L$ARM_LIB -nostdlib $ARM_LIB/crtbegin_dynamic.o $ARM_LIB/crtend_android.o -lc -lm -ldl -lgcc" \ --cross-prefix=${ARM_PRE}- --disable-asm --host=arm-linux \ ----------------------------- but when I cd to ffmpeg, configure a config.sh with --enable-libx264 and run the script: the console says: ERROR: libx264 not found. Does have idea to this?? Thank you. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: config.log URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ffmpeg-config_r5.sh Type: application/x-sh Size: 1553 bytes Desc: not available URL: From cehoyos at ag.or.at Tue Feb 7 19:06:59 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 7 Feb 2012 18:06:59 +0000 (UTC) Subject: [FFmpeg-user] Converting from Avid DNxHD files results in black or white pictures only References: Message-ID: Werner Robitza gmail.com> writes: > The output file is available here: But unfortunately, output files are almost never needed (I did ask for one the other day though), what is absolutely needed is the source file. Consider uploading to http://www.datafilehost.com/ Carl Eugen From cehoyos at ag.or.at Tue Feb 7 19:48:42 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 7 Feb 2012 18:48:42 +0000 (UTC) Subject: [FFmpeg-user] configure on Debian Squeeze References: <100916e62c810811953051e09fc6dde7.squirrel@nusi> Message-ID: tovis freemail.hu> writes: > check_pkg_config freetype2 ft2build.h freetype/freetype.h FT_Init_FreeType > ERROR: freetype2 not found What does pkg-config --modversion freetype2 report? Carl Eugen From tfoucu at gmail.com Tue Feb 7 19:54:36 2012 From: tfoucu at gmail.com (Thierry Foucu) Date: Tue, 7 Feb 2012 10:54:36 -0800 Subject: [FFmpeg-user] aevalsrc stereo auto-converted to mono? Message-ID: Hi, I was trying to use aevalsrc to create a stereo input, but it seems that the code auto insert a aconvert filter to downmix my stereo input to mono. Here is the output. Notice the aconvert filter being inserted and converting my stereo to mono... any option I should add to make sure the downmix does not happen? Thanks. $./ffmpeg -f lavfi -i aevalsrc="sin(440*2*PI*t):sin(880*2*PI*t)::d=10" -y /tmp/test.ts ffmpeg version N-37612-g94b1496 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 7 2012 09:54:52 with gcc 4.4.3 configuration: --enable-gpl --enable-version3 libavutil 51. 38.100 / 51. 38.100 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 [abuffersink @ 0x25d0040] auto-inserting filter 'auto-inserted aconvert 0' between the filter 'Parsed_aevalsrc_0' and the filter 'out' [aevalsrc @ 0x25cf060] sample_rate:44100 chlayout:stereo duration:10.000000 *[aconvert @ 0x25d6e60] fmt:dbl cl:stereo planar:1 -> fmt:s16 cl:mono planar:0* [lavfi @ 0x25ce3e0] Estimating duration from bitrate, this may be inaccurate Input #0, lavfi, from 'aevalsrc=sin(440*2*PI*t):sin(880*2*PI*t)::d=10': Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s [mpegts @ 0x25d6840] muxrate VBR, pcr every 3 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to '/tmp/test.ts': Metadata: encoder : Lavf54.0.100 Stream #0:0: Audio: mp2, 44100 Hz, mono, s16, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (pcm_s16le -> mp2) Press [q] to stop, [?] for help size= 181kB time=00:00:10.03 bitrate= 147.7kbits/s video:0kB audio:157kB global headers:0kB muxing overhead 15.379823% From temak82 at yahoo.com Tue Feb 7 20:43:16 2012 From: temak82 at yahoo.com (Artyom Khmelnitsky) Date: Tue, 7 Feb 2012 11:43:16 -0800 (PST) Subject: [FFmpeg-user] ffmpeg-php and latest ffmpeg Message-ID: <1328643796.3274.YahooMailNeo@web65412.mail.ac4.yahoo.com> Hello, Is the latest ffmpeg-php v6.0 supported by ffmpeg 0.10? I have compiled ffmpeg with --enable-shared flag and it shows up in the ffmpeg when you check the version. However, when I try to configure ffmpeg-php, it keeps saying that it is not able to find the ffmpeg headers and that ffmpeg needs to be compiled with headers. Thanks for any help! From Donald.McLachlan at crc.ca Tue Feb 7 20:55:11 2012 From: Donald.McLachlan at crc.ca (Donald McLachlan) Date: Tue, 07 Feb 2012 14:55:11 -0500 Subject: [FFmpeg-user] ffplay and j2k In-Reply-To: <4F317C30.4010004@crc.ca> References: <4F317C30.4010004@crc.ca> Message-ID: <4F31819F.4070803@crc.ca> Hi All, I'm not a video guy, but today I downloaded the latest ffmpeg tarball and built it. I then tried to view a file (which I understand to be a j2k file) with ffplay and it failed as shown below. Any idea what is wrong and how I can view this file? Thanks, Don > fplay -fs -autoexit -strict -2 -i ~/*.j2k ffplay version 0.10 Copyright (c) 2003-2012 the FFmpeg developers built on Feb 7 2012 13:53:33 with gcc 4.5.1 20101208 [gcc-4_5-branch revision 167585] configuration: 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 [j2k @ 0x140e3c0] only LRCP progression supported [j2k @ 0x140e3c0] error during processing marker segment ff52 Input #0, image2, from '/home/crc/img_000000.j2k': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: j2k, rgb24, 4096x2160, 25 tbr, 25 tbn, 25 tbc [buffersink @ 0x1414580] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x1414ce0] w:4096 h:2160 fmt:rgb24 -> w:4096 h:2160 fmt:yuv420p flags:0x4 [j2k @ 0x140e3c0] only LRCP progression supported 0KB sq= 0B f=0/0 [j2k @ 0x140e3c0] error during processing marker segment ff52 1328644192.78 A-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 From koxaniy at mail.ru Tue Feb 7 21:14:26 2012 From: koxaniy at mail.ru (Tuuls) Date: Tue, 7 Feb 2012 12:14:26 -0800 (PST) Subject: [FFmpeg-user] Converting from Avid DNxHD files results in black or white pictures only In-Reply-To: References: Message-ID: <1328645666421-4366122.post@n4.nabble.com> Its problem with you players. Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv422p you encoding to yuv422p , but Quick Time player no supported with this sample format in h264. For test , play encoded files with lates version SMPlayer ! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Converting-from-Avid-DNxHD-files-results-in-black-or-white-pictures-only-tp4364271p4366122.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From koxaniy at mail.ru Tue Feb 7 21:32:03 2012 From: koxaniy at mail.ru (Tuuls) Date: Tue, 7 Feb 2012 12:32:03 -0800 (PST) Subject: [FFmpeg-user] Converting from Avid DNxHD files results in black or white pictures only In-Reply-To: <1328645666421-4366122.post@n4.nabble.com> References: <1328645666421-4366122.post@n4.nabble.com> Message-ID: <1328646723552-4366185.post@n4.nabble.com> Outchh ! Sorri Smplayer not support decode 4:2:2 x264 too :) Test with lates version FFPLAY ! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Converting-from-Avid-DNxHD-files-results-in-black-or-white-pictures-only-tp4364271p4366185.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From bostjan.strojan at gmail.com Tue Feb 7 21:37:25 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Tue, 7 Feb 2012 21:37:25 +0100 Subject: [FFmpeg-user] Incompatible pixel format 'uyvy422' for codec 'libx264', auto-selecting format 'yuv420p10le' In-Reply-To: References: <201202070031.56749.cehoyos@ag.or.at> Message-ID: 2012/2/7 Bo?tjan Strojan : > On Tue, Feb 7, 2012 at 12:31 AM, Carl Eugen Hoyos wrote: >> Could you test attached patch? >> (Untested here.) p.s. sorry, no idea how to apply that. b. From cehoyos at ag.or.at Tue Feb 7 22:27:53 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 7 Feb 2012 21:27:53 +0000 (UTC) Subject: [FFmpeg-user] ffplay and j2k References: <4F317C30.4010004@crc.ca> <4F31819F.4070803@crc.ca> Message-ID: Donald McLachlan crc.ca> writes: > [j2k @ 0x140e3c0] only LRCP progression supported This means you need libopenjpeg for this image, the native decoder only has limited features. (Install libopenjpeg, then configure with --enable-libopenjpeg) Carl Eugen From cehoyos at ag.or.at Tue Feb 7 22:29:59 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 7 Feb 2012 21:29:59 +0000 (UTC) Subject: [FFmpeg-user] Converting from Avid DNxHD files results in black or white pictures only References: <1328645666421-4366122.post@n4.nabble.com> <1328646723552-4366185.post@n4.nabble.com> Message-ID: Tuuls mail.ru> writes: > Outchh ! Sorri Smplayer not support decode 4:2:2 x264 too :) MPlayer not only supports H264 4:4:4, with -vo gl, playback is even possible without software colourspace conversion. (Higher playback speed / less resources needed for real-time) Carl Eugen From cehoyos at ag.or.at Tue Feb 7 22:31:24 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 7 Feb 2012 21:31:24 +0000 (UTC) Subject: [FFmpeg-user] Incompatible pixel format 'uyvy422' for codec 'libx264', auto-selecting format 'yuv420p10le' References: <201202070031.56749.cehoyos@ag.or.at> Message-ID: Bo?tjan Strojan gmail.com> writes: > >> Could you test attached patch? > >> (Untested here.) > > p.s. sorry, no idea how to apply that. $ patch -p1 References: <100916e62c810811953051e09fc6dde7.squirrel@nusi> Message-ID: <57a02cc58faec5d63f86460867e406df.squirrel@nusi> Thanks a lot Carl Eugen! This was the key - it even was not installed at all :) (I have struggling over "configure" script and does not realized that pkg-config is an external command - silly me. I never used this command before) Configuration goes smoothly compilation is some strange and frightening - so many warnings - will it work? At least "drawtext" filter seem to be enabled! Thanks a lot again. tovis PS: I'm a big fun of minimalistic installations, I must suspect this kind of mistake. > tovis freemail.hu> writes: > >> check_pkg_config freetype2 ft2build.h freetype/freetype.h >> FT_Init_FreeType >> ERROR: freetype2 not found > > What does > pkg-config --modversion freetype2 > report? > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > From jtrepanier at cpac.ca Tue Feb 7 23:36:15 2012 From: jtrepanier at cpac.ca (=?iso-8859-1?Q?Tr=E9panier=2CJason?=) Date: Tue, 7 Feb 2012 17:36:15 -0500 Subject: [FFmpeg-user] MP4 h264 video: convert left/right audio channels to seperate audio tracks Message-ID: I have several terabytes of videos in MP4 h264 and unfortunately they are encoded in a strange way. Example: Video track Audio track 1: Left channel is English Audio track 1: Right channel is French Audio track 2: Left channel is Spanish Audio track 2: Right channel is empty Would it be possible by some miracle to extract the left/right channels and convert them to Separate tracks? Example: Video track Audio track 1: left/right English Audio track 2: left/right French Audio track 3: left/right Spanish If this is not possible, then would anyone happen to know of a streaming media server that can serve videos and specific audio track channels (left channel or right channel, not both)? From werner.robitza at gmail.com Tue Feb 7 23:54:22 2012 From: werner.robitza at gmail.com (Werner Robitza) Date: Tue, 7 Feb 2012 23:54:22 +0100 Subject: [FFmpeg-user] Converting from Avid DNxHD files results in black or white pictures only In-Reply-To: References: <1328645666421-4366122.post@n4.nabble.com> <1328646723552-4366185.post@n4.nabble.com> Message-ID: > > Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv422p > you encoding to yuv422p , but Quick Time player no supported with this > sample format in h264. > ffplay won't play the file either ? it shouldn't be that problem. However, if you got my output file to play, I'd appreciate if you told me how. But unfortunately, output files are almost never needed > (I did ask for one the other day though), what is absolutely > needed is the source file. As the source files are at least 22 GB in size, I will try to supply the first megabytes only and see if that allows to reproduce the error. ----- As I already mentioned, ffmbc is able to decode one of these two, but fails on another one . Could this be the actual issue? [mov,mp4,m4a,3gp,3g2,mj2 @ 0x10182ea00] multiple fourcc not supported From nicolas.george at normalesup.org Wed Feb 8 00:06:02 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 8 Feb 2012 00:06:02 +0100 Subject: [FFmpeg-user] aevalsrc stereo auto-converted to mono? In-Reply-To: References: Message-ID: <20120207230602.GA4458@phare.normalesup.org> Le nonidi 19 pluvi?se, an CCXX, Thierry Foucu a ?crit?: > I was trying to use aevalsrc to create a stereo input, but it seems that > the code auto insert a aconvert filter to downmix my stereo input to mono. > > Here is the output. Notice the aconvert filter being inserted and > converting my stereo to mono... > any option I should add to make sure the downmix does not happen? http://www.ffmpeg.org/faq.html#Using-_002df-lavfi_002c-audio-becomes-mono-for-no-apparent-reason_002e "3.15 Using '-f lavfi', audio becomes mono for no apparent reason." Please let us know if this is not enough to solve your problem. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From jshupert at pps-inc.com Wed Feb 8 00:29:43 2012 From: jshupert at pps-inc.com (Jim Shupert) Date: Tue, 07 Feb 2012 18:29:43 -0500 Subject: [FFmpeg-user] error w configure ffmpeg Message-ID: <4F31B3E7.3000403@pps-inc.com> Friends, I get the following error when i attempt to configure ffmpeg. root at wisk:~/ffmpeg# ./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab ERROR: libx264 not found i started with a sudo apt-get x264 libx264-dev yasm I know i have the latest ffmpeg& x264 in config.err i see libx264='yes' libx264_encoder='yes' libx264_encoder_deps='libx264' libxvid_encoder='yes' libxvid_encoder_deps='libxvid' a ./configure --help does show --enable-libx264 enable H.264 encoding via x264 [no] I have looked in /etc/ld.so.conf and added the paths /usr/lib and /usr/local/lib Then executed ldconfig: and i have the same problem with --enable-libvpx I had previously done a git clonehttp://git.chromium.org/webm/libvpx.git cd libvpx ./configure make sudo checkinstall --pkgname=libvpx --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no \ --default --deldoc=yes if i look in my usr/lib i see a libx264.so.85 My Q is what is wrong w my x264& libvpx thanks jS sys is ubuntu 10.4 32bit From phil at philrhodes.com Wed Feb 8 00:45:31 2012 From: phil at philrhodes.com (Phil Rhodes) Date: Tue, 07 Feb 2012 23:45:31 -0000 Subject: [FFmpeg-user] DNxHD MXF to Quicktime Message-ID: Hi, I may need to rewrap some DNxHD material supplied in MXF into Quicktime. The creator of this material is a Blackmagic Hyperdeck Shuttle, which is a camera-mounted HD-SDI recorder. The material may contain 10-bit data, but I don't need to decompress it or reorder it in any way other than shifting it from MXF to Quicktime. Is this something ffmpeg will do? I don't have a test input file right now, but I may soon. P From dev at rarevision.com Wed Feb 8 04:14:05 2012 From: dev at rarevision.com (Thomas Worth) Date: Tue, 7 Feb 2012 19:14:05 -0800 Subject: [FFmpeg-user] DNxHD MXF to Quicktime In-Reply-To: References: Message-ID: On Tue, Feb 7, 2012 at 3:45 PM, Phil Rhodes wrote: > I may need to rewrap some DNxHD material supplied in MXF into Quicktime. The > creator of this material is a Blackmagic Hyperdeck Shuttle, which is a > camera-mounted HD-SDI recorder. I tried this with both ffmpeg and ffmbc. No dice. I believe the error was "clip wrapping without index is not currently supported." Maksym Veremeyenko might look at this, I know he has experience working with MXF. From tfoucu at gmail.com Wed Feb 8 05:29:23 2012 From: tfoucu at gmail.com (Thierry Foucu) Date: Tue, 7 Feb 2012 20:29:23 -0800 Subject: [FFmpeg-user] aevalsrc stereo auto-converted to mono? In-Reply-To: <20120207230602.GA4458@phare.normalesup.org> References: <20120207230602.GA4458@phare.normalesup.org> Message-ID: On Tue, Feb 7, 2012 at 3:06 PM, Nicolas George < nicolas.george at normalesup.org> wrote: > Le nonidi 19 pluvi?se, an CCXX, Thierry Foucu a ?crit : > > I was trying to use aevalsrc to create a stereo input, but it seems that > > the code auto insert a aconvert filter to downmix my stereo input to > mono. > > > > Here is the output. Notice the aconvert filter being inserted and > > converting my stereo to mono... > > any option I should add to make sure the downmix does not happen? > > > http://www.ffmpeg.org/faq.html#Using-_002df-lavfi_002c-audio-becomes-mono-for-no-apparent-reason_002e > > "3.15 Using '-f lavfi', audio becomes mono for no apparent reason." > > Please let us know if this is not enough to solve your problem. > > Regards, > > Thanks Nicolas, now, this command works ./ffmpeg -f lavfi -i aevalsrc="sin(440*2*PI*t):sin(880*2*PI*t)::d=10",aconvert=s16:stereo:packed -y /tmp/test.ts I have a correct stereo stream. i think the problem is that without the aconvert, the code is auto inserting a aconvert filter, see output log [abuffersink @ 0x2e42040] auto-inserting filter 'auto-inserted aconvert 0' between the filter 'Parsed_aevalsrc_0' and the filter 'out' the auto insertion is used because aevalsrc is outputting dbl and lavfi seems to want to output s16. [aconvert @ 0x2e48e60] fmt:dbl cl:stereo planar:1 -> fmt:s16 cl:mono planar:0 But i think there could be a bug here. The auto inserting filter should not change the number of channels. It should keep the same number of channels as the aevalsrc and just convert the fmt from dbl to s16 From rocky.marrone at gmail.com Wed Feb 8 05:58:32 2012 From: rocky.marrone at gmail.com (Rocky Marrone) Date: Wed, 8 Feb 2012 10:28:32 +0530 Subject: [FFmpeg-user] Need to debug the ffmpeg with gdb <--enable-debug=3> Message-ID: Hi All, I am loading all the ffmpeg .so with dlopen and calling them with dlsym. And I need to debug ffmpeg library also, so with configure I passed --enable-debug=3 option. But while doing step in with gdb its not going into the ffmpeg code, what could be the possible solution for it? Configure command which I am using is as follows:---- ./configure --prefix=$FFMPEG_BUILD_DIR --target-os=linux --extra-cflags=-Wall --extra-cflags=-O3 --extra-cflags=-g --extra-cflags=-c --enable-debug=3 \ --disable-ffserver --disable-hardcoded-tables --disable-extra-warnings --disable-mmx2 \ --disable-ssse3 --disable-mmx --disable-iwmmxt --disable-small --disable-memalign-hack \ --disable-altivec --enable-mpegaudio-hp --enable-network --disable-ffmpeg \ --disable-ffplay --disable-zlib --enable-muxers --enable-encoders --enable-protocols \ --enable-decoders --enable-demuxers --enable-parsers --enable-shared \ --extra-cflags=-fPIC --disable-protocol=rvu --disable-protocol=mms --disable-protocol=pvod \ --disable-protocol=ra --disable-protocol=vudu --disable-protocol=wvine --disable-protocol=clip \ --disable-protocol=dlna --disable-protocol=https --enable-protocol=pvod \ Regards, Rocky -- *"**UNIX is basically a simple operating system, but you have to be a genius to understand the simplicity**" **? Dennis Ritchie* From cehoyos at ag.or.at Wed Feb 8 09:26:40 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 8 Feb 2012 08:26:40 +0000 (UTC) Subject: [FFmpeg-user] error w configure ffmpeg References: <4F31B3E7.3000403@pps-inc.com> Message-ID: Jim Shupert pps-inc.com> writes: > if i look in my usr/lib > i see a libx264.so.85 At least 118 (!) is required. Carl Eugen From cehoyos at ag.or.at Wed Feb 8 09:39:23 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 8 Feb 2012 08:39:23 +0000 (UTC) Subject: [FFmpeg-user] Need to debug the ffmpeg with gdb <--enable-debug=3> References: Message-ID: Rocky Marrone gmail.com> writes: > ./configure --prefix=$FFMPEG_BUILD_DIR > --target-os=linux This should be unneeded, if it is needed, please report the bug. > --extra-cflags=-Wall Isn't this the default? > --extra-cflags=-O3 This is either useful, in which case you should send a patch with benchmarks to ffmpeg-devel, or not useful, in which case you should remove it. > --extra-cflags=-g --extra-cflags=-c These should be unneeded, if they are needed, please report the bug. > --enable-debug=3 --disable-ffserver --disable-hardcoded-tables > --disable-extra-warnings > --disable-mmx2 --disable-ssse3 --disable-mmx You do know that this slows down libavcodec significantly? > --disable-iwmmxt This should be unneeded, if it is needed, please report the bug. > --disable-small Isn't this the default? > --disable-memalign-hack --disable-altivec These should be unneeded, if they are needed, please report the bug. > --enable-mpegaudio-hp ?? This does not exist in current git head. > --enable-network This should be unneeded, if it is needed, please report the bug. > --disable-ffmpeg --disable-ffplay --disable-zlib > --enable-muxers --enable-encoders --enable-protocols > --enable-decoders --enable-demuxers --enable-parsers These should be unneeded, if they are needed, please report the bug. > --enable-shared > --extra-cflags=-fPIC This should be unneeded, if it is needed, please report the bug. > --disable-protocol=rvu --disable-protocol=mms > --disable-protocol=pvod \ > --disable-protocol=ra --disable-protocol=vudu > --disable-protocol=wvine --disable-protocol=clip \ > --disable-protocol=dlna --disable-protocol=https > --enable-protocol=pvod Expect for mms and https, these protocols do not exist afaict. Where does your source come from? Carl Eugen From cehoyos at ag.or.at Wed Feb 8 09:42:12 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 8 Feb 2012 08:42:12 +0000 (UTC) Subject: [FFmpeg-user] crf mode in libvpx References: Message-ID: Bo?tjan Strojan gmail.com> writes: > This seems to produce valid and hi-quality "quality-based" output, > 2-pass cq encode; I don't think it makes sense to combine "2-pass" with constant quality. Carl Eugen From andrey.krieger.utkin at gmail.com Wed Feb 8 09:49:35 2012 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Wed, 8 Feb 2012 10:49:35 +0200 Subject: [FFmpeg-user] ffmpeg + x264 - HELP! In-Reply-To: <1fda0744.ca4c.13556b509f1.Coremail.qw_222@163.com> References: <1fda0744.ca4c.13556b509f1.Coremail.qw_222@163.com> Message-ID: If you used --enable-shared in place of --disable-shared, and later did 'make install' on libx264, you could succeed. -- Andrey Utkin From andrey.krieger.utkin at gmail.com Wed Feb 8 09:49:35 2012 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Wed, 8 Feb 2012 10:49:35 +0200 Subject: [FFmpeg-user] ffmpeg + x264 - HELP! In-Reply-To: <1fda0744.ca4c.13556b509f1.Coremail.qw_222@163.com> References: <1fda0744.ca4c.13556b509f1.Coremail.qw_222@163.com> Message-ID: If you used --enable-shared in place of --disable-shared, and later did 'make install' on libx264, you could succeed. -- Andrey Utkin From verem at m1stereo.tv Wed Feb 8 12:08:27 2012 From: verem at m1stereo.tv (Maksym Veremeyenko) Date: Wed, 08 Feb 2012 13:08:27 +0200 Subject: [FFmpeg-user] DNxHD MXF to Quicktime In-Reply-To: References: Message-ID: <4F3257AB.6050605@m1stereo.tv> 08.02.12 05:14, Thomas Worth ???????(??): > On Tue, Feb 7, 2012 at 3:45 PM, Phil Rhodes wrote: >> I may need to rewrap some DNxHD material supplied in MXF into Quicktime. The >> creator of this material is a Blackmagic Hyperdeck Shuttle, which is a >> camera-mounted HD-SDI recorder. > > I tried this with both ffmpeg and ffmbc. No dice. I believe the error > was "clip wrapping without index is not currently supported." > > Maksym Veremeyenko might look at this, I know he has experience > working with MXF. Tomas H?rdin did a lot of work for supporting MXF decoding last year, so create an issue with sample on trac (http://ffmpeg.org/trac/ffmpeg/) -- ________________________________________ Maksym Veremeyenko From nicolas.george at normalesup.org Wed Feb 8 12:34:32 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 8 Feb 2012 12:34:32 +0100 Subject: [FFmpeg-user] aevalsrc stereo auto-converted to mono? In-Reply-To: References: <20120207230602.GA4458@phare.normalesup.org> Message-ID: <20120208113432.GA5700@phare.normalesup.org> Le nonidi 19 pluvi?se, an CCXX, Thierry Foucu a ?crit?: > Thanks Nicolas, now, this command works > ./ffmpeg -f lavfi -i > aevalsrc="sin(440*2*PI*t):sin(880*2*PI*t)::d",aconvert=s16:stereo:packed > -y /tmp/test.ts > > I have a correct stereo stream. Nice to hear it. > i think the problem is that without the aconvert, the code is auto > inserting a aconvert filter, see output log > [abuffersink @ 0x2e42040] auto-inserting filter 'auto-inserted aconvert 0' > between the filter 'Parsed_aevalsrc_0' and the filter 'out' > > the auto insertion is used because aevalsrc is outputting dbl and lavfi > seems to want to output s16. > [aconvert @ 0x2e48e60] fmt:dbl cl:stereo planar:1 -> fmt:s16 cl:mono > planar:0 Exactly. > But i think there could be a bug here. > The auto inserting filter should not change the number of channels. It > should keep the same number of channels as the aevalsrc > and just convert the fmt from dbl to s16 This is clearly a misfeature that needs fixing. I do not know if someone is working on it; that is in my TODO queue but not at the top. Patches welcome. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From bostjan.strojan at gmail.com Wed Feb 8 14:16:01 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Wed, 8 Feb 2012 14:16:01 +0100 Subject: [FFmpeg-user] crf mode in libvpx In-Reply-To: References: Message-ID: On Wed, Feb 8, 2012 at 9:42 AM, Carl Eugen Hoyos wrote: > I don't think it makes sense to combine "2-pass" with constant quality. > > Carl Eugen I'am just a user, but i did a substantial googlet on this specific feature (and reading everything that was found about libvpx), one of the explanations that pop-up: https://groups.google.com/a/webmproject.org/group/webm-discuss/tree/browse_frm/thread/c8cf0daa145f1317/65bee78c26c13cef?rnum=1&_done=/a/webmproject.org/group/webm-discuss/browse_frm/thread/c8cf0daa145f1317/65bee78c26c13cef?tvc%3D1%26&pli=1#doc_ef8a6ce953263c8b p.s. I did more reading than neccesary also due to fact that i was testing using vlc, which appears somehow borken regarding vp8 (or maybe my copy is just somehow miss-configured), so i got some really weird looking blocking. b. From jshupert at pps-inc.com Wed Feb 8 15:12:35 2012 From: jshupert at pps-inc.com (Jim Shupert) Date: Wed, 08 Feb 2012 09:12:35 -0500 Subject: [FFmpeg-user] error w configure ffmpeg In-Reply-To: References: <4F31B3E7.3000403@pps-inc.com> Message-ID: <4F3282D3.7030508@pps-inc.com> >> if i look in my usr/lib >> i see a libx264.so.85 so - i need a newer x264 -- likely this is what is errant w my libvpx as well here is how i am obtaining these ------------------- obtain / Install x264 git clone git://git.videolan.org/x264 cd x264 ./configure --enable-static make sudo checkinstall --pkgname=x264 --default --pkgversion="3:$(./version.sh | \ awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes -------------- obtain / Install libvpx git clonehttp://git.chromium.org/webm/libvpx.git cd libvpx ./configure make sudo checkinstall --pkgname=libvpx --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no \ --default --deldoc=yes -------------------------------------------------- maybe a better means would be to obtain snapshots of each thank you carl ... i was thinking it might have been something like - enable_static in the configure command but it is rather my use of an 'old' x264 ( and maybe libvpx ) how do you obtain the newest of these? thanks again. From cehoyos at ag.or.at Wed Feb 8 15:44:33 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 8 Feb 2012 14:44:33 +0000 (UTC) Subject: [FFmpeg-user] crf mode in libvpx References: Message-ID: Bo?tjan Strojan gmail.com> writes: > On Wed, Feb 8, 2012 at 9:42 AM, Carl Eugen Hoyos wrote: > > > I don't think it makes sense to combine "2-pass" with constant quality. > > I'am just a user, but i did a substantial googlet on this specific > feature (and reading everything that was found about libvpx), one of > the explanations that pop-up: Yes, it indeed seems that VP8 does everything differently;-) To answer your original question: If you want to set the video output quality to x, use -qmin x -qmax x (-crf x -pass n should allow you to reach the same result as in your example, I did not test though.) Carl Eugen [...] From cehoyos at ag.or.at Wed Feb 8 15:48:23 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 8 Feb 2012 14:48:23 +0000 (UTC) Subject: [FFmpeg-user] error w configure ffmpeg References: <4F31B3E7.3000403@pps-inc.com> <4F3282D3.7030508@pps-inc.com> Message-ID: Jim Shupert pps-inc.com> writes: > >> if i look in my usr/lib > >> i see a libx264.so.85 > so - i need a newer x264 -- > likely this is what is errant w my libvpx as well Did you try to remove /usr/lib/libx264.so (but not libx264.so.*)? Carl Eugen From denisgottardello at gmail.com Wed Feb 8 15:58:07 2012 From: denisgottardello at gmail.com (Denis) Date: Wed, 8 Feb 2012 15:58:07 +0100 Subject: [FFmpeg-user] avio_open_dyn_buf versus avio_open Message-ID: <201202081558.08041.info@denisgottardello.it> "avio_open" function is used to manage a file. Someone can explain to me which is the right use of "avio_open_dyn_buf" function and which are the cases on that this function must to be used? Thanks a lot. Denis. -- www.denisgottardello.it Skype: mrdebug Videosurveillance and home automation! http://www.denisgottardello.it/DomusBoss/DomusBossIndice.php From Donald.McLachlan at crc.ca Wed Feb 8 16:01:23 2012 From: Donald.McLachlan at crc.ca (Donald McLachlan) Date: Wed, 08 Feb 2012 10:01:23 -0500 Subject: [FFmpeg-user] ffplay and j2k In-Reply-To: References: <4F317C30.4010004@crc.ca> <4F31819F.4070803@crc.ca> Message-ID: <4F328E43.1030608@crc.ca> On 07/02/2012 4:27 PM, Carl Eugen Hoyos wrote: > Donald McLachlan crc.ca> writes: > >> [j2k @ 0x140e3c0] only LRCP progression supported > This means you need libopenjpeg for this image, > the native decoder only has limited features. > > (Install libopenjpeg, then configure with --enable-libopenjpeg) Hi Carl, Thanks. I have downloaded, built and installed the latest libopenjpeg tarball (using the cmake commands). I rebuilt ffmpeg with make clean, ./configure --enable-libopenjpeg, make, and make install. And I got the exact same results. How can I verify that libopenjpeg is actually being used? ldd ffplay does not list libopenjpeg. grepping the ffmpeg Makefiles reveals: ./libavcodec/Makefile: OBJ-$(CONFIG_LIBOPENJPEG_DECODER) += libopenjpegdec.o ./libavcodec/Makefile: OBJ-$(CONFIG_LIBOPENJPEG_ENCODER) += libopenjpegenc.o grepping the output of nm -g ffplay_g for jpeg shows lots of symbols starting with ff_ Is there a symbol I can look for to verify that libopenjpegenc.o and libopenjpegdec.o have actually been included and are being called? Any other things I can try? Thanks, Don From cehoyos at ag.or.at Wed Feb 8 16:35:54 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 8 Feb 2012 15:35:54 +0000 (UTC) Subject: [FFmpeg-user] ffplay and j2k References: <4F317C30.4010004@crc.ca> <4F31819F.4070803@crc.ca> <4F328E43.1030608@crc.ca> Message-ID: Donald McLachlan crc.ca> writes: > I rebuilt ffmpeg with make clean, ./configure --enable-libopenjpeg, > make, and make install. > And I got the exact same results. Complete, uncut console output missing. Carl Eugen From Donald.McLachlan at crc.ca Wed Feb 8 16:56:07 2012 From: Donald.McLachlan at crc.ca (Donald McLachlan) Date: Wed, 08 Feb 2012 10:56:07 -0500 Subject: [FFmpeg-user] ffplay and j2k In-Reply-To: <4F328E43.1030608@crc.ca> References: <4F317C30.4010004@crc.ca> <4F31819F.4070803@crc.ca> <4F328E43.1030608@crc.ca> Message-ID: <4F329B17.2000107@crc.ca> On 08/02/2012 10:01 AM, Donald McLachlan wrote: > > > On 07/02/2012 4:27 PM, Carl Eugen Hoyos wrote: >> Donald McLachlan crc.ca> writes: >> >>> [j2k @ 0x140e3c0] only LRCP progression supported >> This means you need libopenjpeg for this image, >> the native decoder only has limited features. >> >> (Install libopenjpeg, then configure with --enable-libopenjpeg) > > Hi Carl, > > Thanks. I have downloaded, built and installed the latest libopenjpeg > tarball (using the cmake commands). > I rebuilt ffmpeg with make clean, ./configure --enable-libopenjpeg, > make, and make install. > And I got the exact same results. > > How can I verify that libopenjpeg is actually being used? > > ldd ffplay does not list libopenjpeg. > grepping the ffmpeg Makefiles reveals: > > ./libavcodec/Makefile: OBJ-$(CONFIG_LIBOPENJPEG_DECODER) += > libopenjpegdec.o > ./libavcodec/Makefile: OBJ-$(CONFIG_LIBOPENJPEG_ENCODER) += > libopenjpegenc.o > > grepping the output of nm -g ffplay_g for jpeg shows lots of symbols > starting with ff_ > > Is there a symbol I can look for to verify that libopenjpegenc.o and > libopenjpegdec.o have actually been included and are being called? > > Any other things I can try? See output below. > > Thanks, > Don > ffplay -fs -autoexit -strict -2 ~/img_000000.j2k ffplay version 0.10 Copyright (c) 2003-2012 the FFmpeg developers built on Feb 8 2012 09:26:02 with gcc 4.5.1 20101208 [gcc-4_5-branch revision 167585] configuration: 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 [j2k @ 0x140e3c0] only LRCP progression supported [j2k @ 0x140e3c0] error during processing marker segment ff52 Input #0, image2, from '/home/crc/img_000000.j2k': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0:0: Video: j2k, rgb24, 4096x2160, 25 tbr, 25 tbn, 25 tbc [buffersink @ 0x1414580] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x1414ce0] w:4096 h:2160 fmt:rgb24 -> w:4096 h:2160 fmt:yuv420p flags:0x4 [j2k @ 0x140e3c0] only LRCP progression supported 687KB sq= 0B f=0/0 [j2k @ 0x140e3c0] error during processing marker segment ff52 1328716231.21 A-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 From cehoyos at ag.or.at Wed Feb 8 17:23:02 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 8 Feb 2012 16:23:02 +0000 (UTC) Subject: [FFmpeg-user] ffplay and j2k References: <4F317C30.4010004@crc.ca> <4F31819F.4070803@crc.ca> <4F328E43.1030608@crc.ca> <4F329B17.2000107@crc.ca> Message-ID: Donald McLachlan crc.ca> writes: > >> (Install libopenjpeg, then configure with --enable-libopenjpeg) > > I rebuilt ffmpeg with make clean, ./configure --enable-libopenjpeg, > > make, and make install. > > And I got the exact same results. > > > > How can I verify that libopenjpeg is actually being used? > configuration: Just verify that you configured with --enable-libopenjpeg. Carl Eugen From mailer.tovis at freemail.hu Wed Feb 8 18:46:14 2012 From: mailer.tovis at freemail.hu (tovis) Date: Wed, 8 Feb 2012 18:46:14 +0100 Subject: [FFmpeg-user] RTSP grab from IP camera using ffmpeg Message-ID: <912b3f88028c46e748f196038ed15163.squirrel@nusi> Hi everybody! After, that I have to manage configure/compile/install latest git version of ffmpeg - thanks to Carl Eugen Hoyos - I have try to put it on work. I need to grab and make a snapshot from rtsp stream, coming from IP camera. (Later I have used openRTSP, make a clip for 1-3 sec and get one frame using ffmpeg) At first I have tried this command, simply grab stream to a file: $ ffmpeg -i rtsp://user:password at 172.16.3.2/mjpeg -an clip.mjpeg >log 2>&1 but I have a lot of error messages and nothing in the clip - log at http://pastebin.com/uGhNJnTi Could some one help what could be wrong? Sincerely tovis From cehoyos at ag.or.at Wed Feb 8 20:26:25 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 8 Feb 2012 19:26:25 +0000 (UTC) Subject: [FFmpeg-user] RTSP grab from IP camera using ffmpeg References: <912b3f88028c46e748f196038ed15163.squirrel@nusi> Message-ID: tovis freemail.hu> writes: > $ ffmpeg -i rtsp://user:password 172.16.3.2/mjpeg -an clip.mjpeg >log 2>&1 > > but I have a lot of error messages and nothing in the clip - log at Please post the complete, uncut console output (together with the command line) here on the mailing list, external resources may disappear. In this case, you should definitely increase the verbosity with -v 99 (or similar, I forgot). Does -vcodec copy work? Carl Eugen From Donald.McLachlan at crc.ca Wed Feb 8 20:32:47 2012 From: Donald.McLachlan at crc.ca (Donald McLachlan) Date: Wed, 08 Feb 2012 14:32:47 -0500 Subject: [FFmpeg-user] ffplay and j2k and mxf In-Reply-To: References: <4F317C30.4010004@crc.ca> <4F31819F.4070803@crc.ca> <4F328E43.1030608@crc.ca> <4F329B17.2000107@crc.ca> Message-ID: <4F32CDDF.7070000@crc.ca> Hi Carl, I had missed that configure had failed because it could not find . I had to add --extra-cflags to get it to build (as can be seen below) It is now building and I can view the img-000000.j2k. THANKS! Next problem is with an mxf file containing a j2k video. > ffplay -fs -autoexit -strict -2 speedday* ffplay version 0.10 Copyright (c) 2003-2012 the FFmpeg developers built on Feb 8 2012 14:14:05 with gcc 4.5.1 20101208 [gcc-4_5-branch revision 167585] configuration: --enable-libopenjpeg --extra-cflags=-I/usr/local/include --extra-cflags=-I/usr/local/include/openjpeg-1.5 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 [mxf @ 0x1413600] "OPAtom" with 2 ECs - assuming OP1a Input #0, mxf, from 'speedday_4k_V1.mxf': Duration: 00:02:04.87, start: 0.000000, bitrate: 238875 kb/s Stream #0:0: Video: j2k, rgb48le, 4096x2160, 24 tbr, 24 tbn, 24 tbc [buffersink @ 0x7f4108000e80] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x7f41080016c0] w:4096 h:2160 fmt:rgb48le -> w:4096 h:2160 fmt:yuv420p flags:0x4 1.70 A-V: 0.000 fd= 0 aq= 0KB vq= 5228KB sq= 0B f=0/0 0/0 Only a black screen is displayed. How does one resolve this? (Presumably to do with the OPAtom message above). Thanks, Don From emailboxaccounts at gmail.com Wed Feb 8 20:45:50 2012 From: emailboxaccounts at gmail.com (Dave Lakers) Date: Wed, 8 Feb 2012 11:45:50 -0800 (PST) Subject: [FFmpeg-user] ffmpeg + dvdauthor incorrect aspect ratio conversion Message-ID: <1328730350163-4370633.post@n4.nabble.com> Hi all I am trying to create a DVD using DVDAuthor and without any DVDAuthor GUIs because I am automating the DVD production process without GUI intervention. Everything seems to be going well and we are nearly done apart from the screen resolution of the DVD when its played on a DVD player. The sides and top are cutoff from the DVD image. If anyone can help it would be appreciated, we?re trying to distribute thousands of free educational dvds to kids in poor countries. Heres the full story.... I have two files which are in MP4 (640x360 in 16:9 and 1280x720) format which I first convert to MPEG using ffmpeg. ffmpeg -i video1. mp4 -target pal-dvd -ar 48000 -y video1.mpeg Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video1.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2011-07-16 13:33:56 Duration: 00:17:38.64, start: 0.000000, bitrate: 125 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 58 kb/s, 14.99 fps, 14.99 tbr, 59956 tbn, 29.98 tbc Metadata: creation_time : 2011-07-16 13:33:56 handler_name : /tmp/zenengine/c9e/b26/file_flvc9eb26c091dd012e53ea12313b06c051/video.264 - Imported with GPAC 0.4.6-DEV (internal rev. 8) Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 64 kb/s Metadata: creation_time : 2011-07-16 13:33:56 handler_name : /tmp/zenengine/c9e/b26/file_flvc9eb26c091dd012e53ea12313b06c051/audio.aac - Imported with GPAC 0.4.6-DEV (internal rev. 8) [buffer @ 0x2216740] w:640 h:360 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: [scale @ 0x2217920] w:640 h:360 fmt:yuv420p -> w:720 h:576 fmt:yuv420p flags:0x4 Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt' Output #0, dvd, to 'video1.mpeg': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2011-07-16 13:33:56 encoder : Lavf53.24.2 Stream #0:0(und): Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 6000 kb/s, 90k tbn, 25 tbc Metadata: creation_time : 2011-07-16 13:33:56 handler_name : /tmp/zenengine/c9e/b26/file_flvc9eb26c091dd012e53ea12313b06c051/video.264 - Imported with GPAC 0.4.6-DEV (internal rev. 8) Stream #0:1(und): Audio: ac3, 48000 Hz, stereo, flt, 448 kb/s Metadata: creation_time : 2011-07-16 13:33:56 handler_name : /tmp/zenengine/c9e/b26/file_flvc9eb26c091dd012e53ea12313b06c051/audio.aac - Imported with GPAC 0.4.6-DEV (internal rev. 8) Stream mapping: Stream #0:0 -> #0:0 (h264 -> mpeg2video) Stream #0:1 -> #0:1 (aac -> ac3) and the second video (1280x720 in 16:9 ) video2.mp41280 h:720 ffmpeg version 0.9.1, Copyright (c) 2000-2012 the FFmpeg developers built on Jan 14 2012 14:48:02 with gcc 4.6.1 configuration: libavutil 51. 32. 0 / 51. 32. 0 libavcodec 53. 42. 4 / 53. 42. 4 libavformat 53. 24. 2 / 53. 24. 2 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 53. 0 / 2. 53. 0 libswscale 2. 1. 0 / 2. 1. 0 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video2.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2011-07-16 13:32:46 Duration: 00:01:03.81, start: 0.000000, bitrate: 403 kb/s Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 335 kb/s, 15.15 fps, 15.15 tbr, 7576 tbn, 30.30 tbc Metadata: creation_time : 2011-07-16 13:32:46 handler_name : /tmp/zenengine/ca2/f92/file_mp4ca2f928091dd012e076e12313b079606/video.264 - Imported with GPAC 0.4.6-DEV (internal rev. 8) Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 65 kb/s Metadata: creation_time : 2011-07-16 13:32:46 handler_name : /tmp/zenengine/ca2/f92/file_mp4ca2f928091dd012e076e12313b079606/audio.aac - Imported with GPAC 0.4.6-DEV (internal rev. 8) [buffer @ 0x262eb40] w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: [scale @ 0x2624860] w:1280 h:720 fmt:yuv420p -> w:720 h:576 fmt:yuv420p flags:0x4 Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt' Output #0, dvd, to'video2.mpeg?: Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2011-07-16 13:32:46 encoder : Lavf53.24.2 Stream #0:0(und): Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 6000 kb/s, 90k tbn, 25 tbc Metadata: creation_time : 2011-07-16 13:32:46 handler_name : /tmp/zenengine/ca2/f92/file_mp4ca2f928091dd012e076e12313b079606/video.264 - Imported with GPAC 0.4.6-DEV (internal rev. 8) Stream #0:1(und): Audio: ac3, 48000 Hz, stereo, flt, 448 kb/s Metadata: creation_time : 2011-07-16 13:32:46 handler_name : /tmp/zenengine/ca2/f92/file_mp4ca2f928091dd012e076e12313b079606/audio.aac - Imported with GPAC 0.4.6-DEV (internal rev. 8) Stream mapping: Stream #0:0 -> #0:0 (h264 -> mpeg2video) Stream #0:1 -> #0:1 (aac -> ac3) So both files are converted to DVD PAL format of 720x576 in DAR 16:9. Now I have a main menu (mainmenu.mpeg) and title menu (background.mpeg) with 20x576 in DAR 16:9. using ffprobe Input #0, mpeg, from 'background.mpeg': Duration: 00:02:17.76, start: 0.120000, bitrate: 132 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 7500 kb/s, 1 tbr, 90k tbn, 50 tbc Stream #0:1[0x20]: Subtitle: dvd_subtitle Stream #0:2[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s Input #0, mpeg, from 'mainmenu.mpeg': Duration: 00:04:22.60, start: 0.120000, bitrate: 130 kb/s Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 7500 kb/s, 1 tbr, 90k tbn, 50 tbc Stream #0:1[0x20]: Subtitle: dvd_subtitle Stream #0:2[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s I put all this together using DVDAuthor jump menu 1; call menu; main menu output INFO: Generating VMGM with the following video attributes: INFO: MPEG version: mpeg2 INFO: TV standard: pal INFO: Aspect ratio: 4:3 INFO: Resolution: 720x576 INFO: Audio ch 0 format: mp2/2ch, 48khz 20bps video 2 output INFO: Video pts = 0.540 .. 64.340 INFO: Audio[0] pts = 0.540 .. 64.380 STAT: VOBU 1871 at 212MB, 1 PGCs CHAPTERS: VTS[1/1] 0.000 CHAPTERS: VTS[1/2] 0.000 INFO: Generating VTS with the following video attributes: INFO: MPEG version: mpeg2 INFO: TV standard: pal INFO: Aspect ratio: 16:9 INFO: Resolution: 720x576 INFO: Audio ch 0 format: ac3/2ch, 48khz drc background output STAT: VOBU 1 at 2MB, 1 PGCs CHAPTERS: VTS[1/1] 0.000 INFO: Generating VTSM with the following video attributes: INFO: MPEG version: mpeg2 INFO: TV standard: pal INFO: Aspect ratio: 4:3 INFO: Resolution: 720x576 INFO: Audio ch 0 format: mp2/2ch, 48khz 20bps All the navigation and menus work fine BUT in a (non PC/laptop) DVD player, the image looks slightly stretched and the edges and the top image overhangs the screen by quite a bit. In other words the image does not fit the screen and the edges and the top are cut off. OK so I know that I am going from 16:9 in video1 and video2 to 4:3 and that video1 and video2 originally had different aspect ratios. However all final output files are 720x576 and 4:3. Is this just overburn or a problem with DVDauthor or ffmpeg? Is there a more appropriate scaling (filter) I should use for ffmpeg instead of -target pal-dvd? (Can anyone give me an example) Should everything be 16:9? (not ideal as most of our users don;t have widescreen) How can I mix 16:9 with 4:3 videos in this way? some posts suggest each class in its different title-sets which they already are menus are 4:3 others are 16:9. Is there something wrong with the DVDAuthor XML? Is there some widescreen e.g. nopalscan setting which may help? Anyone please help? We?re so close, this is the final issue to resolve. Thanks so much -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/ffmpeg-dvdauthor-incorrect-aspect-ratio-conversion-tp4370633p4370633.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From mailer.tovis at freemail.hu Wed Feb 8 20:54:34 2012 From: mailer.tovis at freemail.hu (tovis) Date: Wed, 8 Feb 2012 20:54:34 +0100 Subject: [FFmpeg-user] RTSP grab from IP camera using ffmpeg In-Reply-To: References: <912b3f88028c46e748f196038ed15163.squirrel@nusi> Message-ID: <73b926b2790c6e0d8542cbe7d94d90a6.squirrel@nusi> From cehoyos at ag.or.at Wed Feb 8 20:55:27 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Wed, 8 Feb 2012 19:55:27 +0000 (UTC) Subject: [FFmpeg-user] ffplay and j2k and mxf References: <4F317C30.4010004@crc.ca> <4F31819F.4070803@crc.ca> <4F328E43.1030608@crc.ca> <4F329B17.2000107@crc.ca> <4F32CDDF.7070000@crc.ca> Message-ID: Donald McLachlan crc.ca> writes: > I had missed that configure had failed because it could not find > . I had to add --extra-cflags to get it to build (as can be > seen below) When I looked last time, the Makefiles for "make" and "cmake" had different installation directories... I tried to report this, but was not successful;-(( If this has been fixed meanwhile, please report! > It is now building and I can view the img-000000.j2k. THANKS! > > Next problem is with an mxf file containing a j2k video. Please test current git head for mxf and please consider starting a new thread for unrelated problems. Carl Eugen From denisgottardello at gmail.com Wed Feb 8 21:24:50 2012 From: denisgottardello at gmail.com (Denis) Date: Wed, 8 Feb 2012 21:24:50 +0100 Subject: [FFmpeg-user] avio_open_dyn_buf versus avio_open Message-ID: <201202082124.51004.info@denisgottardello.it> "avio_open" function is used to manage a file. Someone can explain to me which is the right use of "avio_open_dyn_buf" function and which are the cases on that this function must to be used? Thanks a lot. Denis. -- www.denisgottardello.it Skype: mrdebug Videosurveillance and home automation! http://www.denisgottardello.it/DomusBoss/DomusBossIndice.php From mailer.tovis at freemail.hu Wed Feb 8 22:30:16 2012 From: mailer.tovis at freemail.hu (tovis) Date: Wed, 8 Feb 2012 22:30:16 +0100 Subject: [FFmpeg-user] RTSP grab from IP camera using ffmpeg In-Reply-To: References: <912b3f88028c46e748f196038ed15163.squirrel@nusi> Message-ID: <44d5013c869dca13471f86a379dd4337.squirrel@nusi> > > Please post the complete, uncut console output (together with the > command line) here on the mailing list, external resources may disappear. > In this case, you should definitely increase the verbosity with > -v 99 (or similar, I forgot). > > Does -vcodec copy work? > > Carl Eugen > Thanks for reply Carl Eugen! (This is the 3 email, first was to large for squirrelmail, second was too large for mailing system, "awaiting approval" :) I use a "one-row" shell script for invocation of ffmpeg: #! /bin/sh # # openRTSP -u tovis tovis -vm -b 1000000 rtsp://172.16.3.2/mjpeg >$SLICE1_FILE 2>/dev/null & # # ffmpeg -i rtsp://tovis:tovis at 172.16.3.2/mjpeg -an clip.mjpeg ffmpeg -v verbose -i rtsp://tovis:tovis at 172.16.3.2/mjpeg -an -vcodec copy clip.mjpeg There is an old command for openRTSP which I have used earlier, it is work, good for lookup. ffmpeg version N-37581-g2cbe912 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 7 2012 23:55:16 with gcc 4.4.5 configuration: --enable-libfreetype --enable-filter=drawtext libavutil 51. 38.100 / 51. 38.100 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 61.100 / 2. 61.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 [rtsp @ 0x2ad93a0] SDP: v=0 o=- 1328718845681912 1 IN IP4 172.16.3.2 s=YOKO Live Streaming i=mjpeg t=0 0 a=tool:LIVE555 Streaming Media v2010.07.29 a=type:broadcast a=control:* a=range:npt=0- a=x-qt-text-nam:YOKO Live Streaming a=x-qt-text-inf:mjpeg m=video 0 RTP/AVP 26 c=IN IP4 0.0.0.0 b=AS:4000 a=control:track1 m=audio 0 RTP/AVP 0 c=IN IP4 0.0.0.0 b=AS:64 a=control:track2 [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] dqt: 16bit precision [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] Can not process SOS before SOF, skipping [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] huffman table decode error [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 8909x45579 is invalid [mjpeg @ 0x2ae1a00] huffman table decode error [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cb) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cf) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cf) Last message repeated 1 times [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c7) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] Can not process SOS before SOF, skipping [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c5) Last message repeated 1 times [mjpeg @ 0x2ae1a00] huffman table decode error [mjpeg @ 0x2ae1a00] Can not process SOS before SOF, skipping Last message repeated 1 times [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c7) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cf) [mjpeg @ 0x2ae1a00] dqt: 16bit precision [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c7) [mjpeg @ 0x2ae1a00] dqt: 16bit precision [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] only 8 bits/component accepted Last message repeated 1 times [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] Can not process SOS before SOF, skipping [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] Can not process SOS before SOF, skipping [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cf) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) Last message repeated 1 times [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] huffman table decode error [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c5) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cf) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 62861x4360 is invalid [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ca) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c5) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] dqt: 16bit precision [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] huffman table decode error [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c5) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] invalid id 56 [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cb) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] huffman table decode error [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) [mjpeg @ 0x2ae1a00] dqt: 16bit precision [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] Can not process SOS before SOF, skipping [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] invalid id 66 [mjpeg @ 0x2ae1a00] dqt: 16bit precision [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c5) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 44426x30907 is invalid [mjpeg @ 0x2ae1a00] Can not process SOS before SOF, skipping [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 43896x60025 is invalid [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 54859x25147 is invalid [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 9304x47973 is invalid [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cf) [mjpeg @ 0x2ae1a00] huffman table decode error [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cf) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c5) [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 12689x42549 is invalid [mjpeg @ 0x2ae1a00] Can not process SOS before SOF, skipping [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c5) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted Last message repeated 1 times [mjpeg @ 0x2ae1a00] Can not process SOS before SOF, skipping [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c7) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] huffman table decode error [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c5) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 46154x37599 is invalid [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 43336x21049 is invalid [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] dqt: 16bit precision [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c5) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cb) Last message repeated 1 times [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 12413x49294 is invalid [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 27878x10662 is invalid [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) Last message repeated 1 times [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cb) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c5) [mjpeg @ 0x2ae1a00] dqt: 16bit precision [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c5) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cf) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c7) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c7) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] invalid id 146 [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c7) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cf) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ca) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 62140x47218 is invalid [mjpeg @ 0x2ae1a00] huffman table decode error [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cf) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) Last message repeated 1 times [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c7) Last message repeated 1 times [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] invalid id 93 [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] dqt: 16bit precision [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c7) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] Can not process SOS before SOF, skipping [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 44219x27949 is invalid [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) [mjpeg @ 0x2ae1a00] huffman table decode error [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cf) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 16648x19768 is invalid [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] invalid id 166 [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) [mjpeg @ 0x2ae1a00] invalid id 78 [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cf) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 19066x37978 is invalid [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] [IMGUTILS @ 0x7fffc448f040] Picture size 47974x11224 is invalid [mjpeg @ 0x2ae1a00] only 8 bits/component accepted Last message repeated 1 times [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c7) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c5) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ca) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c7) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cf) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ca) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cb) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] dqt: 16bit precision [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] dqt: 16bit precision [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c7) [mjpeg @ 0x2ae1a00] huffman table decode error [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cb) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ce) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] dqt: 16bit precision [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c7) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c9) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cd) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c5) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (cb) [mjpeg @ 0x2ae1a00] huffman table decode error [mjpeg @ 0x2ae1a00] only 8 bits/component accepted [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (ca) [mjpeg @ 0x2ae1a00] Found EOI before any SOF, ignoring [mjpeg @ 0x2ae1a00] No JPEG data found in image [mjpeg @ 0x2ae1a00] huffman table decode error [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c8) [mjpeg @ 0x2ae1a00] mjpeg: unsupported coding type (c6) [rtsp @ 0x2ad93a0] decoding for stream 0 failed [rtsp @ 0x2ad93a0] Could not find codec parameters (Video: mjpeg) [rtsp @ 0x2ad93a0] Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://user:passwd at 172.16.3.2/mjpeg': Metadata: title : YOKO Live Streaming comment : mjpeg Duration: N/A, start: 0.000000, bitrate: N/A Stream #0:0: Video: mjpeg, 90k tbr, 90k tbn, 90k tbc Stream #0:1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s Output #0, mjpeg, to 'clip.mjpeg': Metadata: title : YOKO Live Streaming comment : mjpeg Output file #0 does not contain any stream Messages not so much informative for me, seem to be ffmpeg does not recognize stream as mjpeg? Any suggestion? Sincerely tovis From mywing81 at gmail.com Tue Feb 7 18:39:09 2012 From: mywing81 at gmail.com (Giorgio Vazzana) Date: Tue, 7 Feb 2012 18:39:09 +0100 Subject: [FFmpeg-user] Question about x11grab and mkv files Message-ID: Hello, when using the following commands with ffmpeg-master I get either an output file I cannot play back with ffplay or an error: ffmpeg -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0 -vcodec copy output-master-copy.mkv ffmpeg -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0 -vcodec ljpeg output-master-ljpeg.mkv Note the the same commands work fine with ffmpeg-0.10. Logs are here: http://mywing.altervista.org/tmp/ffmpeg-x11grab The only difference I could spot was the pixel format: bgra for ffmpeg-0.10 and bgr0 for ffmpeg-master. Is this a regression or a known behavior? I'm not subscribed to the list, please CC me in replies, thanks. Regards, Giorgio Vazzana From pauls150 at hotmail.com Thu Feb 9 08:28:16 2012 From: pauls150 at hotmail.com (Paul Salman) Date: Thu, 9 Feb 2012 02:28:16 -0500 Subject: [FFmpeg-user] SMPTE 302m (unknown codec s302m) In-Reply-To: References: Message-ID: Hi, I have a stream that has what I believe is dolby e audio, and I was wondering if I could get some help in getting the audio out of the transport stream. Here is what the file looks like: Duration: 00:00:30.11, start: 0.246800, bitrate: 44254 kb/s Program 1 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p Stream #0:1[0x33]: Audio: s302m (BSSD / 0x44535342), 48000 Hz, stereo, s32, 2304 kb/s I tried several combinations of audio codecs pcm_s24le/ pcm_s32le with no luck so far. Trying -acodec s302m I get an "unknown codec s302m" error message. Any help is appreciated. Thanks, From tim.nicholson at bbc.co.uk Thu Feb 9 09:40:01 2012 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Thu, 09 Feb 2012 08:40:01 +0000 Subject: [FFmpeg-user] MP4 h264 video: convert left/right audio channels to seperate audio tracks In-Reply-To: References: Message-ID: <4F338661.8020007@bbc.co.uk> On 07/02/12 22:36, Tr?panier,Jason wrote: > I have several terabytes of videos in MP4 h264 and unfortunately they are encoded in a strange way. > > > > Example: > > Video track > > Audio track 1: Left channel is English > > Audio track 1: Right channel is French > > Audio track 2: Left channel is Spanish > > Audio track 2: Right channel is empty > > > > Would it be possible by some miracle to extract the left/right channels and convert them to Separate tracks? > > > > Example: > > Video track > > Audio track 1: left/right English > > Audio track 2: left/right French > > Audio track 3: left/right Spanish > It is possible, yes. However without knowing the exact current stream/channel layout as reported by ffprobe it is difficult to provide more detail. See. http://ffmpeg.org/ffmpeg.html#amerge -- Tim http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. From pb at das-werkstatt.com Thu Feb 9 10:11:21 2012 From: pb at das-werkstatt.com (Peter B.) Date: Thu, 09 Feb 2012 10:11:21 +0100 Subject: [FFmpeg-user] Displayed duration of MPEG wrong, up to several frames Message-ID: <20120209101121.10480ychope78rsp@webmail.tuwien.ac.at> During extensive MPEG encoding tests, I've noticed that sometimes, FFmpeg does not display the duration of MPEG files correctly. I've tried ffprobe and ffmpeg: ffmpeg version N-37610-g0349d61 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 9 2012 09:47:14 with gcc 4.4.5 Here are 2 example files: 1) http://download.das-werkstatt.com/pb/mthk/examples/mpeg-duration/vx-04810_00_k01.mpg Duration: 338 frames = 13,52 sec FFmpeg says: 13,52 sec (4 frames difference) 2) http://download.das-werkstatt.com/pb/mthk/examples/mpeg-duration/v-10942_00_k01.mpg Duration: 400 frames = 16,00 sec FFmpeg says: 15,96 sec (1 frame difference) I've verified their correct length with Avidemux [1] and GSpot [2]. Unfortunately, a duration-mismatch of up-to several frames makes it currently impossible to use FFmpeg as transcoding verification tool :( If anyone could provide me information about why this is happening, or how to fix it, I'd be very very grateful. Thanks in advance, Pb == References: [1] http://avidemux.org/ [2] http://www.headbands.com/gspot/ From cehoyos at ag.or.at Thu Feb 9 10:38:46 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 9 Feb 2012 09:38:46 +0000 (UTC) Subject: [FFmpeg-user] Question about x11grab and mkv files References: Message-ID: Giorgio Vazzana gmail.com> writes: > ffmpeg -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0 > -vcodec copy output-master-copy.mkv Is there any application except FFmpeg that read the resulting (good) files? > ffmpeg -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0 > -vcodec ljpeg output-master-ljpeg.mkv > > Note the the same commands work fine with ffmpeg-0.10. Yes, but in the case of -vcodec copy the resulting video used "room" (disc space) for transparency information that is not there (x11 does not export opaqueness but "0"), please try -vcodec rawvideo -pix_fmt bgr24. The ljpeg encoder claims to encode transparency, but it actually does not... I sent two patches to ffmpeg-devel: The first makes ljpegenc support BGR0 and BGR24 (but removes BGRA which never was really supported). The second adds tags for BGR0 etc (and RGB64), but see above, I wonder if any other application reads the resulting files. > Logs are here: http://mywing.altervista.org/tmp/ffmpeg-x11grab Please always post complete, uncut console output here, external resources may disappear. Carl Eugen From cehoyos at ag.or.at Thu Feb 9 10:42:39 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 9 Feb 2012 09:42:39 +0000 (UTC) Subject: [FFmpeg-user] SMPTE 302m (unknown codec s302m) References: Message-ID: Paul Salman hotmail.com> writes: > Here is what the file looks like: > > Duration: 00:00:30.11, start: 0.246800, bitrate: 44254 kb/s Complete, uncut console output missing. (S302m decoding support was added last May.) Carl Eugen From cehoyos at ag.or.at Thu Feb 9 10:46:13 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 9 Feb 2012 09:46:13 +0000 (UTC) Subject: [FFmpeg-user] RTSP grab from IP camera using ffmpeg References: <912b3f88028c46e748f196038ed15163.squirrel@nusi> <44d5013c869dca13471f86a379dd4337.squirrel@nusi> Message-ID: tovis freemail.hu> writes: > [mjpeg @ 0x2ae1a00] only 8 bits/component accepted > [mjpeg @ 0x2ae1a00] dqt: 16bit precision If this is really true (that your camera sends more than 8bits per component) than this is simply not supported. Is there a tool that allows to save the stream from the camera? Does mplayer work? Or is there an incantation for live555? Carl Eugen From csr at statsbiblioteket.dk Thu Feb 9 10:58:38 2012 From: csr at statsbiblioteket.dk (csr at statsbiblioteket.dk) Date: Thu, 9 Feb 2012 01:58:38 -0800 (PST) Subject: [FFmpeg-user] dvbsub problem In-Reply-To: References: Message-ID: <1328781518326-4372353.post@n4.nabble.com> Any ideas? I am having the same problem. I "just" need ffmpeg to remux a single program out of a multichannel transport-stream with dvbsub. We used to be able to do this with vlc, but vlc can't handle the newest ts-muxes that the Danish broadcasters started sending out in January. Colin Rosenthal State and University Library Aarhus, Denmark -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/dvbsub-problem-tp2734519p4372353.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Thu Feb 9 11:11:49 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 9 Feb 2012 10:11:49 +0000 (UTC) Subject: [FFmpeg-user] dvbsub problem References: <1328781518326-4372353.post@n4.nabble.com> Message-ID: csr statsbiblioteket.dk statsbiblioteket.dk> writes: > Any ideas? While it is often a good idea to search the mailing lists for similar problems, answering a 14 month old mail that did not contain sufficient information to test / reproduce anything and offering even less information is not useful. Please provide command line and complete, uncut console output (and explain - again - what is wrong with the output file). (If remuxing dvbsub really doesn't work, mplayer will probably work for your specific problem.) Carl Eugen From joolzg at btinternet.com Thu Feb 9 11:13:41 2012 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Thu, 9 Feb 2012 10:13:41 +0000 (GMT) Subject: [FFmpeg-user] dvbsub problem In-Reply-To: <1328781518326-4372353.post@n4.nabble.com> References: <1328781518326-4372353.post@n4.nabble.com> Message-ID: <1328782421.54431.YahooMailNeo@web87706.mail.ir2.yahoo.com> Hi Colin, let me know what the problem is, we are based in Aarhus and already take DVBSUBS and hard burn them onto our encoded streams joolz >________________________________ > From: "csr at statsbiblioteket.dk" >To: ffmpeg-user at ffmpeg.org >Sent: Thursday, 9 February 2012, 9:58 >Subject: Re: [FFmpeg-user] dvbsub problem > >Any ideas? I am having the same problem. I "just" need ffmpeg to remux a >single program out of a multichannel transport-stream with dvbsub. We used >to be able to do this with vlc, but vlc can't handle the newest ts-muxes >that the Danish broadcasters started sending out in January. > >Colin Rosenthal >State and University Library >Aarhus, Denmark > >-- >View this message in context: http://ffmpeg-users.933282.n4.nabble.com/dvbsub-problem-tp2734519p4372353.html >Sent from the FFmpeg-users mailing list archive at Nabble.com. >_______________________________________________ >ffmpeg-user mailing list >ffmpeg-user at ffmpeg.org >http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > From mailer.tovis at freemail.hu Thu Feb 9 11:28:27 2012 From: mailer.tovis at freemail.hu (tovis) Date: Thu, 9 Feb 2012 11:28:27 +0100 Subject: [FFmpeg-user] RTSP grab from IP camera using ffmpeg In-Reply-To: References: <912b3f88028c46e748f196038ed15163.squirrel@nusi> <44d5013c869dca13471f86a379dd4337.squirrel@nusi> Message-ID: <7cb993344fd00b734cc0c3a741bbdcb5.squirrel@nusi> > tovis freemail.hu> writes: > >> [mjpeg @ 0x2ae1a00] only 8 bits/component accepted >> [mjpeg @ 0x2ae1a00] dqt: 16bit precision > > If this is really true (that your camera sends more than > 8bits per component) than this is simply not supported. > > Is there a tool that allows to save the stream from the camera? > Does mplayer work? Or is there an incantation for live555? > > Carl Eugen > Thanks for answer! Thanks for your time. As I see it really sounds screwy! Yes, as I wrote openRTSP is working for this stream. My target, to extract shots - more or less complete frames from stream - I have use openRTSP and after ffmpeg to extract a jpg picture, it is working, but I'm not so pleased with it, as specially that ffmpeg could capture rtsp without other applications. This interpretation of the stream is a mistake (bug) or simply this format does not supported? Should I force using ffmpeg farther or should I give up? Suggestion? Sincerely tovis From csr at statsbiblioteket.dk Thu Feb 9 11:34:29 2012 From: csr at statsbiblioteket.dk (Colin Rosenthal) Date: Thu, 9 Feb 2012 11:34:29 +0100 Subject: [FFmpeg-user] dvbsub problem In-Reply-To: References: <1328781518326-4372353.post@n4.nabble.com> Message-ID: <4F33A135.9060509@statsbiblioteket.dk> Hi Carl Eugen, No problem. /usr/bin/ffmpeg -i mux1.flight93.ts -codec copy -map 0:3 -map 0:7 -map 0:11 -f mpegts -y out.ts 2>err.out and the console output is attached. The problem is that the output file has a dvbsub stream but the stream is empty. There are no subtitles visible when you play it in vlc. The same stream in the original file is not empty - it has danish-language subtitles. If I try to dump only the dvbsub stream with ffmpeg: /usr/bin/ffmpeg -i mux1.flight93.ts -an -vn -scodec copy -map 0:11 -f mpegts -y out.ts I get the following (truncated this time, but you can have the full output if you like): Output #0, mpegts, to 'out.ts': Metadata: encoder : Lavf53.24.2 Stream #0:0(dan): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Stream mapping: Stream #0:11 -> #0:0 (copy) Press [q] to stop, [?] for help PES packet size mismatch59:00.14 bitrate= 0.1kbits/s [mpegts @ 0xeb27a0] PES packet size mismatch Last message repeated 4 times size= 162kB time=02:59:01.75 bitrate= 0.1kbits/s video:0kB audio:0kB global headers:0kB muxing overhead inf% Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) Note that the output file is not zero size. best regards, Colin On 09-02-2012 11:11, Carl Eugen Hoyos wrote: > csr statsbiblioteket.dk statsbiblioteket.dk> writes: > >> Any ideas? > While it is often a good idea to search the mailing lists for > similar problems, answering a 14 month old mail that did not > contain sufficient information to test / reproduce anything and > offering even less information is not useful. > > Please provide command line and complete, uncut console output > (and explain - again - what is wrong with the output file). > > (If remuxing dvbsub really doesn't work, mplayer will probably > work for your specific problem.) > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: err.out URL: From cehoyos at ag.or.at Thu Feb 9 11:40:02 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 9 Feb 2012 10:40:02 +0000 (UTC) Subject: [FFmpeg-user] dvbsub problem References: <1328781518326-4372353.post@n4.nabble.com> <4F33A135.9060509@statsbiblioteket.dk> Message-ID: Colin Rosenthal statsbiblioteket.dk> writes: > /usr/bin/ffmpeg -i mux1.flight93.ts -an -vn -scodec copy -map 0:11 -f > mpegts -y out.ts > I get the following (truncated this time, but you can have the full > output if you like): Please provide command line and complete, uncut console output (and explain - again - what is wrong with the output file). Please do not top-post, it is considered rude here, Carl Eugen From cehoyos at ag.or.at Thu Feb 9 11:44:15 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 9 Feb 2012 10:44:15 +0000 (UTC) Subject: [FFmpeg-user] RTSP grab from IP camera using ffmpeg References: <912b3f88028c46e748f196038ed15163.squirrel@nusi> <44d5013c869dca13471f86a379dd4337.squirrel@nusi> <7cb993344fd00b734cc0c3a741bbdcb5.squirrel@nusi> Message-ID: tovis freemail.hu> writes: > Yes, as I wrote openRTSP is working for this stream. > My target, to extract shots - more or less complete frames from stream > - I have use openRTSP and after ffmpeg to extract a jpg picture, it is > working, but I'm not so pleased with it, as specially that ffmpeg could > capture rtsp without other applications. This seems to imply that ffmpeg -i rtsp;// does not work correctly for your stream. I don't know what could be done but feel free to open a ticket (don't forget to add all information there again). Carl Eugen From csr at statsbiblioteket.dk Thu Feb 9 11:46:14 2012 From: csr at statsbiblioteket.dk (Colin Rosenthal) Date: Thu, 9 Feb 2012 11:46:14 +0100 Subject: [FFmpeg-user] dvbsub problem In-Reply-To: References: <1328781518326-4372353.post@n4.nabble.com> <4F33A135.9060509@statsbiblioteket.dk> Message-ID: <4F33A3F6.4070405@statsbiblioteket.dk> On 09-02-2012 11:40, Carl Eugen Hoyos wrote: > Colin Rosenthal statsbiblioteket.dk> writes: > >> /usr/bin/ffmpeg -i mux1.flight93.ts -an -vn -scodec copy -map 0:11 -f >> mpegts -y out.ts >> I get the following (truncated this time, but you can have the full >> output if you like): > Please provide command line and complete, uncut console output > (and explain - again - what is wrong with the output file). > > Please do not top-post, it is considered rude here, Carl Eugen > Are email attachments ok or would you prefer the output posted in directly? /Colin From cehoyos at ag.or.at Thu Feb 9 12:25:12 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 9 Feb 2012 11:25:12 +0000 (UTC) Subject: [FFmpeg-user] dvbsub problem References: <1328781518326-4372353.post@n4.nabble.com> <4F33A135.9060509@statsbiblioteket.dk> <4F33A3F6.4070405@statsbiblioteket.dk> Message-ID: Colin Rosenthal statsbiblioteket.dk> writes: > > Please provide command line and complete, uncut console output > > (and explain - again - what is wrong with the output file). > > Are email attachments ok or would you prefer the output posted > in directly? We don't want to overburden our users, I found a sample and tested myself. The problem is probably related to ticket #531, -copyinkf does not work anymore (and only allowed to copy only subs anyway), feel free to add yourself to CC there (or find out how to force keyframes for subtitle streams). Carl Eugen From csr at statsbiblioteket.dk Thu Feb 9 12:55:27 2012 From: csr at statsbiblioteket.dk (Colin Rosenthal) Date: Thu, 9 Feb 2012 12:55:27 +0100 Subject: [FFmpeg-user] dvbsub problem In-Reply-To: References: <1328781518326-4372353.post@n4.nabble.com> <4F33A135.9060509@statsbiblioteket.dk> <4F33A3F6.4070405@statsbiblioteket.dk> Message-ID: <4F33B42F.5070105@statsbiblioteket.dk> On 09-02-2012 12:25, Carl Eugen Hoyos wrote: > Colin Rosenthal statsbiblioteket.dk> writes: > >>> Please provide command line and complete, uncut console output >>> (and explain - again - what is wrong with the output file). >> Are email attachments ok or would you prefer the output posted >> in directly? > We don't want to overburden our users, I found a sample and > tested myself. > > The problem is probably related to ticket #531, -copyinkf does not > work anymore (and only allowed to copy only subs anyway), feel free > to add yourself to CC there (or find out how to force keyframes for > subtitle streams). > > Carl Eugen Maybe - but in #531 extraction of dvbsub worked ok. It was dvb-teletext that failed. regards, Colin From fernanda.rebelatto at gmail.com Thu Feb 9 13:11:40 2012 From: fernanda.rebelatto at gmail.com (Fernanda Rebelatto) Date: Thu, 9 Feb 2012 10:11:40 -0200 Subject: [FFmpeg-user] audio frequency frame by frame Message-ID: Hi, I'm new here and my questions will be simple, but I still need help. I need to create a spectrogram so I need to know the frequency of the audio in each frame. I can not find this data. Does anyone know how this could be done? Att., Fernanda Rebelatto -- Analista de Sistemas http://www.brazip.com.br From de.techno at gmail.com Thu Feb 9 09:30:59 2012 From: de.techno at gmail.com (dE .) Date: Thu, 09 Feb 2012 14:00:59 +0530 Subject: [FFmpeg-user] FW: Converting AVI files and creating a DVD In-Reply-To: References: <4F2F85E6.9030106@bbc.co.uk> Message-ID: <4F338443.7000106@gmail.com> On 02/06/12 17:05, John Bennett wrote: > On Mon, Feb 6, 2012 at 5:48 PM, Tim Nicholson wrote: >> On 05/02/12 08:57, John Bennett wrote: >>> >>> >>> >>> ---------------------------------------- >>>> From: hornetster at hotmail.com >>>> To: ffmpeg-user at ffmpeg.org >>>> Subject: Converting AVI files and creating a DVD >>>> Date: Wed, 18 Jan 2012 17:55:40 +1000 >>>> >>>> >>>> Trying to convert AVI files in Opensuse12.1 x64, kde4.7.2, ffmpeg 0.9.1-1.1 >>>> >>>> ffplay info: >>>> Input #0, avi, from 'FILE0018.AVI': >>>> Metadata: >>>> date : 2009-10-21 >>>> ICRT : 15:52:44 >>>> comment : >>>> Duration: 00:00:11.91, start: 0.000000, bitrate: 12362 kb/s >>>> Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc >>>> Stream #0:1: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 48000 Hz, 2 channels, s16, 384 kb/s >>>> 14.00 A-V: -0.013 fd= 24 aq= 0KB vq= 0KB sq= 0B f=0/0 f=0/0 >>>> >>>> >>>> so I can create a DVD. >>>> They are off a Kogan video camera (read: pretty cheap, generic from SE Asia). Have tried various things to convert/publish and always seem to get a DVD that starts playing OK, but after a minute or 2 starts faltering, won't FF or jump to next chapter etc. >>>> Couple of command lines I have tried: >>>> ffmpeg -i -target pal-dvd -sameq >>>> ffmpeg -i -target pal-dvd >>>> etc (not very inventive... Know next-to-nothing about ffmpeg, but willing to learn!) >>>> Have then tried to author/burn the DVD with kdenlive/devede. >>>> Any help appreciated! >> >> >> Try using DVD Styler to author the DVD. This uses ffmpeg for transcoding source material, if required, and does proper indexing so seeking etc sghould work. >> >> >> -- >> Tim >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > Thanks for the reply, Tim, really appreciated! > But.... when I try using DVDStyler, trying to do a really basic DVD, > it either crashes on me totally, or cutting it back even more and > running from a terminal, I get: > ************************************************************************************* > > decode_slice_header error > no frame! > get_buffer() failed (-1 0 (nil)) > decode_slice_header error > no frame! > Input #0, avi, from '/home/bigun/Movies/ErinWed/AVI/FILE0001.AVI': > Metadata: > date : 2009-10-21 > ICRT : 13:53:08 > comment : > Duration: 00:00:10.81, start: 0.000000, bitrate: 12289 kb/s > Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), vda_vld, > 1280x720 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 > tbc > Stream #0:1: Audio: adpcm_ima_wav ([17][0][0][0] / 0x0011), 48000 > Hz, 2 channels, s16, 384 kb/s > Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt' > auto-inserting filter 'auto-inserted scale 0' between the filter 'src' > and the filter '(null)' > Impossible to convert between the formats supported by the filter > 'src' and the filter 'auto-inserted scale 0' > Error opening filters! > Error transcoding of /home/bigun/Movies/ErinWed/AVI/FILE0001.AVI > ************************************************************************************* > Any ideas? > Thanks, John. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user How about converting to an intermediate format using ffmpeg like x264? You may even use devede, it uses mencoder to encode. From de.techno at gmail.com Thu Feb 9 09:32:56 2012 From: de.techno at gmail.com (dE .) Date: Thu, 09 Feb 2012 14:02:56 +0530 Subject: [FFmpeg-user] ffmpeg/libx264 thread management In-Reply-To: <4F3115E7.1090606@bbc.co.uk> References: <4F3115E7.1090606@bbc.co.uk> Message-ID: <4F3384B8.4060307@gmail.com> On 02/07/12 17:45, Tim Nicholson wrote: > I have noticed that when ffmpeg is allowed to do its own thing and > create subthreads it creates those subthreads with a nice value of 0, > as per the master thread. However if performing a libx264 encode, > these threads are niced up to 10. This means I end up with lots of > threads but still no maxed out CPU. I can run 2nd and 3rd transcodes > and each one runs at the same speed as the first to max out the cpu, > but how can I max out the CPU for just the one? > > Manually upping the thread count just increases the kernel cpu load as > it tries to manage all the threads without increasing throughput... First remove your signature and re-post the question. This's a public mailing list. From Donald.McLachlan at crc.ca Thu Feb 9 15:23:29 2012 From: Donald.McLachlan at crc.ca (Donald McLachlan) Date: Thu, 09 Feb 2012 09:23:29 -0500 Subject: [FFmpeg-user] ffplay j2k in mxf file In-Reply-To: References: <4F317C30.4010004@crc.ca> <4F31819F.4070803@crc.ca> <4F328E43.1030608@crc.ca> <4F329B17.2000107@crc.ca> <4F32CDDF.7070000@crc.ca> Message-ID: <4F33D6E1.9000909@crc.ca> Hi All, I built the latest ffmpeg from the git head this morning. When trying to play an mxf file containing a j2k video: crc at crc-fsmanager:~> ffplay -fs -strict -2 -autoexit speedday* ffplay version N-37669-gf2b20b7 Copyright (c) 2003-2012 the FFmpeg developers built on Feb 9 2012 09:03:32 with gcc 4.5.1 20101208 [gcc-4_5-branch revision 167585] configuration: --enable-libopenjpeg --extra-cflags=-I/usr/local/include --extra-cflags=-I/usr/local/include/openjpeg-1.5 libavutil 51. 38.101 / 51. 38.101 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 [mxf @ 0x1409600] "OPAtom" with 2 ECs - assuming OP1a Input #0, mxf, from 'speedday_4k_V1.mxf': Duration: 00:02:04.87, start: 0.000000, bitrate: 238875 kb/s Stream #0:0: Video: j2k, rgb48le, 4096x2160, 24 tbr, 24 tbn, 24 tbc [buffersink @ 0x1427ee0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x1427800] w:4096 h:2160 fmt:rgb48le -> w:4096 h:2160 fmt:yuv420p flags:0x4 0.68 A-V: 0.000 fd= 0 aq= 0KB vq= 21KB sq= 0B f=0/0 0/0 Only a black screen is displayed. How does one resolve this? (Presumably to do with the OPAtom message above). Thanks, Don From jdxsolutions at gmail.com Thu Feb 9 15:26:46 2012 From: jdxsolutions at gmail.com (John Dexter) Date: Thu, 9 Feb 2012 14:26:46 +0000 Subject: [FFmpeg-user] ffmpeg/libx264 thread management In-Reply-To: <4F3384B8.4060307@gmail.com> References: <4F3115E7.1090606@bbc.co.uk> <4F3384B8.4060307@gmail.com> Message-ID: > First remove your signature and re-post the question. > > This's a public mailing list. Kind of immature to insist someone re-posts. It's not a school playground. If the nonsense in the signature held any legal power you'd already be caught even if he re-posted :) Tim maybe you'll have to post from your personal email if BBC is as super-anal over this stuff as I hear! From pauls150 at hotmail.com Thu Feb 9 15:34:52 2012 From: pauls150 at hotmail.com (Paul Salman) Date: Thu, 9 Feb 2012 09:34:52 -0500 Subject: [FFmpeg-user] SMPTE 302m (unknown codec s302m) In-Reply-To: References: , , Message-ID: Oh that is very strange, here is the complete console output: Duration: 00:00:30.11, start: 0.246800, bitrate: 44254 kb/s Program 1 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p Stream #0:1[0x33]: Audio: s302m (BSSD / 0x44535342), 48000 Hz, stereo, s32, 2304 kb/s I tried several combinations of audio codecs pcm_s24le/ pcm_s32le with no luck so far. Trying -acodec s302m I get an "unknown codec s302m" error message. Thanks, > To: ffmpeg-user at ffmpeg.org > From: cehoyos at ag.or.at > Date: Thu, 9 Feb 2012 09:42:39 +0000 > Subject: Re: [FFmpeg-user] SMPTE 302m (unknown codec s302m) > > Paul Salman hotmail.com> writes: > > > Here is what the file looks like: > > > > Duration: 00:00:30.11, start: 0.246800, bitrate: 44254 kb/s > > Complete, uncut console output missing. > (S302m decoding support was added last May.) > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From mywing81 at gmail.com Thu Feb 9 15:34:42 2012 From: mywing81 at gmail.com (Giorgio Vazzana) Date: Thu, 9 Feb 2012 14:34:42 +0000 (UTC) Subject: [FFmpeg-user] Question about x11grab and mkv files References: Message-ID: Carl Eugen Hoyos ag.or.at> writes: > > Giorgio Vazzana gmail.com> writes: > > > ffmpeg -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0 > > -vcodec copy output-master-copy.mkv > > Is there any application except FFmpeg that read the resulting > (good) files? I didn't check because ffplay is usually enough for me (I use it for a quick view, and then I transcode the huge file after the acquisition with ffmpeg), but I think MPlayer was able to read some of these files in the past. > > ffmpeg -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0 > > -vcodec ljpeg output-master-ljpeg.mkv > > > > Note the the same commands work fine with ffmpeg-0.10. > > Yes, but in the case of -vcodec copy the resulting video > used "room" (disc space) for transparency information > that is not there (x11 does not export opaqueness but "0"), Ok. > please try -vcodec rawvideo -pix_fmt bgr24. Ok, done. > The ljpeg encoder claims to encode transparency, but it > actually does not... Ok. > I sent two patches to ffmpeg-devel: > The first makes ljpegenc support BGR0 and BGR24 (but removes > BGRA which never was really supported). > The second adds tags for BGR0 etc (and RGB64), but see above, I applied your patches and recompiled ffmpeg. Now "-vcodec copy", "-vcodec rawvideo", "-vcodec -pix_fmt xxx" and "-vcodec ljpeg" all work. I can watch the resulting video with ffplay. These are the commands I tested: 1. ffmpeg -y -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0 -vcodec copy qcopy.mkv 2. ffmpeg -y -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0 -vcodec rawvideo qrawvideo.mkv 3. ffmpeg -y -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0 -vcodec rawvideo -pix_fmt bgr24 qrawvideobgr24.mkv 4. ffmpeg -y -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0 -vcodec rawvideo -pix_fmt rgb24 qrawvideorgb24.mkv > I wonder if any other application reads the resulting files. I tried MPlayer on those output files and this were the results: 1. it doesn't play, log: holden at rye:~/tmp2$ mplayer qcopy.mkv MPlayer SVN-r34661-4.4.3 (C) 2000-2012 MPlayer Team Playing qcopy.mkv. libavformat version 54.0.100 (internal) libavformat file format detected. [lavf] stream 0: video (rawvideo), -vid 0 VIDEO: [BGR0] 640x480 0bpp 10.000 fps 0.0 kbps ( 0.0 kbyte/s) Clip info: ENCODER: Lavf54.0.100 Load subtitles in ./ ========================================================================== Cannot find codec matching selected -vo and video format 0x30524742. ========================================================================== Exiting... (End of file) 2. it doesn't play, log: holden at rye:~/tmp2$ mplayer qrawvideo.mkv MPlayer SVN-r34661-4.4.3 (C) 2000-2012 MPlayer Team Playing qrawvideo.mkv. libavformat version 54.0.100 (internal) libavformat file format detected. [lavf] stream 0: video (rawvideo), -vid 0 VIDEO: [BGR0] 640x480 0bpp 10.000 fps 0.0 kbps ( 0.0 kbyte/s) Clip info: ENCODER: Lavf54.0.100 Load subtitles in ./ ========================================================================== Cannot find codec matching selected -vo and video format 0x30524742. ========================================================================== Exiting... (End of file) 3. yes it works. 4. yes it works, but it shows strange colors. > > Logs are here: http://mywing.altervista.org/tmp/ffmpeg-x11grab > > Please always post complete, uncut console output here, external > resources may disappear. Ok. Thanks, Giorgio Vazzana From Donald.McLachlan at crc.ca Thu Feb 9 17:02:40 2012 From: Donald.McLachlan at crc.ca (Donald McLachlan) Date: Thu, 09 Feb 2012 11:02:40 -0500 Subject: [FFmpeg-user] ffplay j2k in mxf file In-Reply-To: <4F33D6E1.9000909@crc.ca> References: <4F317C30.4010004@crc.ca> <4F31819F.4070803@crc.ca> <4F328E43.1030608@crc.ca> <4F329B17.2000107@crc.ca> <4F32CDDF.7070000@crc.ca> <4F33D6E1.9000909@crc.ca> Message-ID: <4F33EE20.5020205@crc.ca> Update. I was just back in the lab, I tried playing the video again - and was distracted while talking to a colleague. About 45 seconds later faint images appeared on the screen. The movie was just "fading in". I was mislead because it plays *so* slowly - about 1 frame per second is my guess. Does anyone know if/how this player can use multithreaded decoding? Don On 09/02/2012 9:23 AM, Donald McLachlan wrote: > Hi All, > > I built the latest ffmpeg from the git head this morning. When trying > to play an mxf file containing a j2k video: > > crc at crc-fsmanager:~> ffplay -fs -strict -2 -autoexit speedday* > ffplay version N-37669-gf2b20b7 Copyright (c) 2003-2012 the FFmpeg > developers > built on Feb 9 2012 09:03:32 with gcc 4.5.1 20101208 > [gcc-4_5-branch revision 167585] > configuration: --enable-libopenjpeg > --extra-cflags=-I/usr/local/include > --extra-cflags=-I/usr/local/include/openjpeg-1.5 > libavutil 51. 38.101 / 51. 38.101 > libavcodec 54. 1.100 / 54. 1.100 > libavformat 54. 0.100 / 54. 0.100 > libavdevice 53. 4.100 / 53. 4.100 > libavfilter 2. 62.100 / 2. 62.100 > libswscale 2. 1.100 / 2. 1.100 > libswresample 0. 6.100 / 0. 6.100 > [mxf @ 0x1409600] "OPAtom" with 2 ECs - assuming OP1a > Input #0, mxf, from 'speedday_4k_V1.mxf': > Duration: 00:02:04.87, start: 0.000000, bitrate: 238875 kb/s > Stream #0:0: Video: j2k, rgb48le, 4096x2160, 24 tbr, 24 tbn, 24 tbc > [buffersink @ 0x1427ee0] auto-inserting filter 'auto-inserted scale 0' > between the filter 'src' and the filter 'out' > [scale @ 0x1427800] w:4096 h:2160 fmt:rgb48le -> w:4096 h:2160 > fmt:yuv420p flags:0x4 > 0.68 A-V: 0.000 fd= 0 aq= 0KB vq= 21KB sq= 0B f=0/0 0/0 > > Only a black screen is displayed. How does one resolve this? > (Presumably to do with the OPAtom message above). > > Thanks, > Don > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Thu Feb 9 17:45:57 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 9 Feb 2012 16:45:57 +0000 (UTC) Subject: [FFmpeg-user] SMPTE 302m (unknown codec s302m) References: , , Message-ID: Paul Salman hotmail.com> writes: > Oh that is very strange, here is the complete console output: > Duration: 00:00:30.11, start: 0.246800, (Command line and) Complete, uncut console output missing. Please do not top-post, it is considered rude here, Carl Eugen From pauls150 at hotmail.com Thu Feb 9 17:57:19 2012 From: pauls150 at hotmail.com (Paul Salman) Date: Thu, 9 Feb 2012 11:57:19 -0500 Subject: [FFmpeg-user] SMPTE 302m (unknown codec s302m) In-Reply-To: References: , , , , , , Message-ID: Sorry, what part was rude? You stated the console output was missing, so I tried posting it again. I apologize, although I'm not sure what I did wrong :). > To: ffmpeg-user at ffmpeg.org > From: cehoyos at ag.or.at > Date: Thu, 9 Feb 2012 16:45:57 +0000 > Subject: Re: [FFmpeg-user] SMPTE 302m (unknown codec s302m) > > Paul Salman hotmail.com> writes: > > > Oh that is very strange, here is the complete console output: > > Duration: 00:00:30.11, start: 0.246800, > > (Command line and) Complete, uncut console output missing. > > Please do not top-post, it is considered rude here, Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From james.darnley at gmail.com Thu Feb 9 18:06:33 2012 From: james.darnley at gmail.com (James Darnley) Date: Thu, 09 Feb 2012 18:06:33 +0100 Subject: [FFmpeg-user] SMPTE 302m (unknown codec s302m) In-Reply-To: References: , , , , , , Message-ID: <4F33FD19.9000608@gmail.com> On 2012-02-09 17:57, Paul Salman wrote: > Sorry, what part was rude? You stated the console output was missing, so I tried posting it again. I apologize, although I'm not sure what I did wrong :). Placing your reply above the quoted text is poor etiquette for this mailing list. You didn't post the full output from ffmpeg because what you posted lacks the version information and the configure line. You should copy everything that ffmpeg prints to your terminal from the moment it starts to the moment it exits. From lou at lrcd.com Thu Feb 9 19:01:45 2012 From: lou at lrcd.com (Lou) Date: Thu, 9 Feb 2012 09:01:45 -0900 Subject: [FFmpeg-user] error w configure ffmpeg In-Reply-To: References: <4F31B3E7.3000403@pps-inc.com> <4F3282D3.7030508@pps-inc.com> Message-ID: <20120209090145.10f75a75@lrcd.com> On Wed, 8 Feb 2012 14:48:23 +0000 (UTC) Carl Eugen Hoyos wrote: > Jim Shupert pps-inc.com> writes: > > > >> if i look in my usr/lib > > >> i see a libx264.so.85 > > so - i need a newer x264 -- > > likely this is what is errant w my libvpx as well > > Did you try to remove /usr/lib/libx264.so (but not libx264.so.*)? > > Carl Eugen Instead of manually removing "/usr/lib/libx264.so" first make sure you don't have libx264-dev installed because that package provides this file and libx264-dev can interfere with ffmpeg compilation as you're already experienced. For complete, step-by-step instructions for Lucid see: Although it appears that some of the installation instructions you posted in an earlier message in this thread come from this link. From lou at lrcd.com Thu Feb 9 19:03:09 2012 From: lou at lrcd.com (Lou) Date: Thu, 9 Feb 2012 09:03:09 -0900 Subject: [FFmpeg-user] ffmpeg-php and latest ffmpeg In-Reply-To: <1328643796.3274.YahooMailNeo@web65412.mail.ac4.yahoo.com> References: <1328643796.3274.YahooMailNeo@web65412.mail.ac4.yahoo.com> Message-ID: <20120209090309.44edd5ad@lrcd.com> On Tue, 7 Feb 2012 11:43:16 -0800 (PST) Artyom Khmelnitsky wrote: > Hello, > > Is the latest ffmpeg-php v6.0 supported by ffmpeg 0.10? I have compiled ffmpeg with --enable-shared flag and it shows up in the ffmpeg when you check the version. However, when I try to configure ffmpeg-php, it keeps saying that it is not able to find the ffmpeg headers and that ffmpeg needs to be compiled with headers. > > Thanks for any help! ffmpeg-php is not a FFmpeg project and is not supported here. You will have to ask the ffmpeg-php people if they support recent ffmpeg. From valideluxe at arcor.de Thu Feb 9 15:58:21 2012 From: valideluxe at arcor.de (DerVali) Date: Thu, 9 Feb 2012 06:58:21 -0800 (PST) Subject: [FFmpeg-user] Converting captured YUV Data to an AVI Message-ID: <1328799501070-4373124.post@n4.nabble.com> Hey there, currently I'm trying to create an Avi-Video out of a raw captured YUV-Data-Stream. For capturing the Source I'm using a C++ Code Visual Studio 2010. As the result I get the data of each frame in 8-Bit yuv422-Format [Cr Y Cb Y]. The next step will be writing the data of each frame in some format FFMPEG can deal with. After Capturing the whole sequence I want to use FFMPEG to encode the raw data format to an avi-file (also yuv 4:2:2). I've never used ffmpeg before, so I would be glad if someone could help me. Which format shall I use to store the raw video stream? Many Regards and thx for answers, DerVali -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Converting-captured-YUV-Data-to-an-AVI-tp4373124p4373124.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From fernanda.rebelatto at gmail.com Thu Feb 9 19:53:45 2012 From: fernanda.rebelatto at gmail.com (Fernanda Rebelatto) Date: Thu, 9 Feb 2012 16:53:45 -0200 Subject: [FFmpeg-user] audio frequency frame by frame In-Reply-To: References: Message-ID: Hi, I'm trying to find information about the frequency of the audio frame by frame. I tried even with ffprobe, but I could not. Help me. Att., Fernanda Rebelatto From jnfo-c at grauman.com Thu Feb 9 20:22:48 2012 From: jnfo-c at grauman.com (Joshua Grauman) Date: Thu, 9 Feb 2012 11:22:48 -0800 (PST) Subject: [FFmpeg-user] Splicing/Trimming video Message-ID: Hello all, I have used the following command to take video straight from my Canon camcorder and to cut off the front and back end of it and scale it down to my desired resolution. This command works great. However, now I'd like to 'edit' the video by cutting out several portions from the *middle* of the video. In other words, I'd like to remove a few seconds here or there from the video by specifying the start and end times (or durations) I want to cut out. There will probably be several little sections cut out from the video. Any ideas on how to do this from the command-line? I'd prefer to cut the sections out of the Final.mp4 file with a -new- ffmpeg command, but if I need to go back and change my initial command that could work too. Thanks! cat 00012.MTS 00013.MTS 00014.MTS | /usr/local/ffmpeg/ffmpeg -threads 4 -i - -ss 50 -t 2405 -vf scale=853:480,crop=640:480 -aspect 4:3 -r 30 -b 1200k -ab 256k Final.mp4 From kennethjjgibson at gmail.com Thu Feb 9 22:54:49 2012 From: kennethjjgibson at gmail.com (killkenny64) Date: Thu, 9 Feb 2012 13:54:49 -0800 (PST) Subject: [FFmpeg-user] AVERROR code on avfilter_graph_config Message-ID: <1328824489453-4374534.post@n4.nabble.com> When I use: avfilter_graph_config(filter_graph, NULL) it fails and returns -22. The documentation states that if it fails it returns a negative AVERROR code, but I can't find documentation anywhere that tells me what the code -22 actually means. I can successfully parse the graph beforehand: filter_descr = "movie=logo.png [logo];[in][logo] overlay=10:main_h-overlay_h-10 [out]" avfilter_graph_parse(filter_graph, filter_descr, &inputs, &outputs, NULL) but I avfilter_graph_config does not work. As a side note, it does work if I use filter_descr = "color=red at 0.2:720x480:10 [color]; [in][color] overlay [out]" I have made sure that I have enabled the overlay and movie filters when I compiled FFmpeg. What does the return value -22 mean? For what reasons will avfilter_graph_config fail when using that filter_desc? Cheers, -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/AVERROR-code-on-avfilter-graph-config-tp4374534p4374534.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From kennethjjgibson at gmail.com Thu Feb 9 23:53:49 2012 From: kennethjjgibson at gmail.com (killkenny64) Date: Thu, 9 Feb 2012 14:53:49 -0800 (PST) Subject: [FFmpeg-user] AVERROR code on avfilter_graph_config In-Reply-To: <1328824489453-4374534.post@n4.nabble.com> References: <1328824489453-4374534.post@n4.nabble.com> Message-ID: <1328828029792-4374724.post@n4.nabble.com> killkenny64 wrote > > When I use: > > avfilter_graph_config(filter_graph, NULL) > > it fails and returns -22. The documentation states that if it fails it > returns a negative AVERROR code, but I can't find documentation anywhere > that tells me what the code -22 actually means. > I finally found out what the error code means: {AVERROR_INVALIDDATA, "INVALIDDATA", "Invalid data found when processing input" }, // -22 which seems to be identical to the -1094995529 error (although I can produce both errors in different situations so I don't know how they differ) What is wrong with "movie=logo.png [logo];[in][logo] overlay=10:main_h-overlay_h-10 [out]"? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/AVERROR-code-on-avfilter-graph-config-tp4374534p4374724.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From cehoyos at ag.or.at Fri Feb 10 00:02:32 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Thu, 9 Feb 2012 23:02:32 +0000 (UTC) Subject: [FFmpeg-user] Question about x11grab and mkv files References: Message-ID: Giorgio Vazzana gmail.com> writes: > > > ffmpeg -t 5 -f x11grab -video_size 640x480 -framerate 10 -i :0.0 > > > -vcodec copy output-master-copy.mkv > > > > Is there any application except FFmpeg that read the resulting > > (good) files? > > I didn't check because ffplay is usually enough for me I just wanted to make sure you don't expect other applications to support these "hacks". (It is strictly defined for nut, but since we only defined it today and most applications do not support nut well, it is unlikely you will have success.) I applied slightly different patches, so please revert before updating. I will try to support the videos in MPlayer, maybe remind me. Carl Eugen From stefasab at gmail.com Fri Feb 10 00:10:45 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Fri, 10 Feb 2012 00:10:45 +0100 Subject: [FFmpeg-user] audio frequency frame by frame In-Reply-To: References: Message-ID: <20120209231045.GA2141@arborea> On date Thursday 2012-02-09 16:53:45 -0200, Fernanda Rebelatto encoded: > Hi, > > I'm trying to find information about the frequency of the audio frame > by frame. I tried even with ffprobe, but I could not. Help me. You may write an audio filter and perform audio data analysis (hint: you can find many high quality DSP routines in libavcodec in case you want to do some coding). -- ffmpeg-user random tip #6 Please follow netiquette rules while posting to ffmpeg-user: http://linux.sgms-centre.com/misc/netiquette.php From pauls150 at hotmail.com Fri Feb 10 01:30:29 2012 From: pauls150 at hotmail.com (Paul Salman) Date: Thu, 9 Feb 2012 19:30:29 -0500 Subject: [FFmpeg-user] SMPTE 302m (unknown codec s302m) In-Reply-To: <4F33FD19.9000608@gmail.com> References: , ,,, , , , , , , , , <4F33FD19.9000608@gmail.com> Message-ID: > Date: Thu, 9 Feb 2012 18:06:33 +0100 > From: james.darnley at gmail.com > To: ffmpeg-user at ffmpeg.org > Subject: Re: [FFmpeg-user] SMPTE 302m (unknown codec s302m) > > On 2012-02-09 17:57, Paul Salman wrote: > > Sorry, what part was rude? You stated the console output was missing, so I tried posting it again. I apologize, although I'm not sure what I did wrong :). > > Placing your reply above the quoted text is poor etiquette for this > mailing list. > > You didn't post the full output from ffmpeg because what you posted > lacks the version information and the configure line. You should copy > everything that ffmpeg prints to your terminal from the moment it starts > to the moment it exits. I got it now, sorry for being stupid. Here is the full output: c:\FFMpeg\bin>ffmpeg.exe -i lv1213.ts -map 0:1 -acodec pcm_s24le output2.wav ffmpeg version N-37586-g6833fe4 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 6 2012 16:07:32 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. 38.100 / 51. 38.100 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, mpegts, from 'lv1213.ts': Duration: 00:00:30.11, start: 0.246800, bitrate: 44254 kb/s Program 1 Stream #0:0[0x31]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p , 1920x1080 [SAR 1:1 DAR 16:9], 40266 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x33]: Audio: s302m (BSSD / 0x44535342), 48000 Hz, stereo, s32, 2304 kb/s Stream #0:2[0x34](eng): Audio: mp2 (BSSD / 0x44535342), 48000 Hz, stereo, s1 6, 256 kb/s Stream #0:3[0x35](eng): Audio: mp2 (BSSD / 0x44535342), 48000 Hz, stereo, s1 6, 256 kb/s Output #0, wav, to 'output2.wav': Metadata: encoder : Lavf54.0.100 Stream #0:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, stereo, s32 , 2304 kb/s Stream mapping: Stream #0:1 -> #0:0 (s302m -> pcm_s24le) Press [q] to stop, [?] for help size= 8474kB time=00:00:30.13 bitrate=2304.0kbits/s video:0kB audio:8474kB global headers:0kB muxing overhead 0.000784% From jdxsolutions at gmail.com Fri Feb 10 12:12:44 2012 From: jdxsolutions at gmail.com (John Dexter) Date: Fri, 10 Feb 2012 11:12:44 +0000 Subject: [FFmpeg-user] [Windows] Running ffmpeg.exe programatically - possible to monitor progress? Message-ID: If my Win32 app launches ffmpeg.exe with a command-line, does anyone know if there is a way to monitor the progress and when it has finished? If the specific operation matters, I am building a video from a collection of image files. Requiring users to install something like cygwin is not an option, I specifically want to know if a "regular Windows" solution exists... if the only way would be using ports of Linux systems/libs then we'll skip straight to using the libav* libraries programatically. I suppose I'm imagining some way of reading back from stdin/std::cin, perhaps. Thanks, John. From mywing81 at gmail.com Fri Feb 10 12:30:26 2012 From: mywing81 at gmail.com (Giorgio Vazzana) Date: Fri, 10 Feb 2012 11:30:26 +0000 (UTC) Subject: [FFmpeg-user] Question about x11grab and mkv files References: Message-ID: Carl Eugen Hoyos ag.or.at> writes: > I applied slightly different patches, so please revert before updating. Ok thanks, everything works again now. > I will try to support the videos in MPlayer, maybe remind me. Take your time. Regards, Giorgio Vazzana From openworld at uralweb.ru Fri Feb 10 13:23:28 2012 From: openworld at uralweb.ru (Alexander Bokovikov) Date: Fri, 10 Feb 2012 17:23:28 +0500 Subject: [FFmpeg-user] [Windows] Running ffmpeg.exe programatically - possible to monitor progress? In-Reply-To: References: Message-ID: On 10.02.2012, at 16:12, John Dexter wrote: > If my Win32 app launches ffmpeg.exe with a command-line, does anyone > know if there is a way to monitor the progress and when it has > finished? Do you know what is pipe? This is the most usual way to communicate with console app in both Windows and Unix systems. I'm sure you can find particular samples using Google. Both progress and termination event can be caught. > Requiring users to install something like cygwin is not an option, cygwin/mingw are the tools to _build_ Unix applications in Windows and for Windows. They have no relation to the topic. HTH! From andrey.krieger.utkin at gmail.com Fri Feb 10 14:08:11 2012 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Fri, 10 Feb 2012 15:08:11 +0200 Subject: [FFmpeg-user] Splicing/Trimming video In-Reply-To: References: Message-ID: 2012/2/9 Joshua Grauman : > Hello all, > > I have used the following command to take video straight from my Canon > camcorder and to cut off the front and back end of it and scale it down to > my desired resolution. This command works great. However, now I'd like to > 'edit' the video by cutting out several portions from the *middle* of the > video. In other words, I'd like to remove a few seconds here or there from > the video by specifying the start and end times (or durations) I want to cut > out. There will probably be several little sections cut out from the video. > Any ideas on how to do this from the command-line? I'd prefer to cut the > sections out of the Final.mp4 file with a -new- ffmpeg command, but if I > need to go back and change my initial command that could work too. Thanks! > > cat 00012.MTS 00013.MTS 00014.MTS | /usr/local/ffmpeg/ffmpeg -threads 4 -i - > -ss 50 -t 2405 -vf scale=853:480,crop=640:480 -aspect 4:3 -r 30 -b 1200k -ab > 256k Final.mp4 > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user You can think your desire to cut off some intervals as equivalent desire to _save_ certain intervals, and then join them. For cutting, there's ready functionality in ffmpeg For joining, it can be problematic, you can use my tiny tool which can merge flv files. https://github.com/krieger-od/imgs2video/blob/master/cat.c -- Andrey Utkin From fernanda.rebelatto at gmail.com Fri Feb 10 14:21:17 2012 From: fernanda.rebelatto at gmail.com (Fernanda Rebelatto) Date: Fri, 10 Feb 2012 11:21:17 -0200 Subject: [FFmpeg-user] audio frequency frame by frame In-Reply-To: <20120209231045.GA2141@arborea> References: <20120209231045.GA2141@arborea> Message-ID: Em 9 de fevereiro de 2012 21:10, Stefano Sabatini escreveu: > You may write an audio filter and perform audio data analysis (hint: > you can find many high quality DSP routines in libavcodec in case you > want to do some coding). Which filter could I use? I tried using ashowinfo, but it failed. I don't know to use the audio filter in the right way. could it be like this: ffmpeg-i input.mp4-filter: a ashowinfo? From mark at richardsemail.net Fri Feb 10 14:27:46 2012 From: mark at richardsemail.net (Mark Richards) Date: Fri, 10 Feb 2012 06:27:46 -0700 Subject: [FFmpeg-user] [Windows] Running ffmpeg.exe programatically - possible to monitor progress? In-Reply-To: References: Message-ID: <01f001cce7f7$c7da90b0$578fb210$@RichardsEmail.Net> > If my Win32 app launches ffmpeg.exe with a command-line, does anyone > know if there is a way to monitor the progress and when it has > finished? It's actually pretty easy. Create a Process, give it all the info to run ffmpeg, then let it run async, and monitor StandardError (For some reason ffmpeg writes to standarderror instead of standardOut). Here's a snippet of VB.Net code I use. myProcess = New System.Diagnostics.Process() myProcess.StartInfo.FileName = FFMPEGPath myProcess.StartInfo.Arguments = CommandLine myProcess.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden myProcess.StartInfo.UseShellExecute = False myProcess.StartInfo.RedirectStandardOutput = True myProcess.StartInfo.RedirectStandardError = True myProcess.StartInfo.ErrorDialog = False myProcess.StartInfo.CreateNoWindow = True myProcess.StartInfo.RedirectStandardInput = True myProcess.Start() While Not myProcess.HasExited S = myProcess.StandardError.ReadLine() standardError.Append(vbCrLf & S) 'myProcess.StandardError.DiscardBufferedData() If Now.ToUniversalTime.Subtract(LastEvent).TotalSeconds > IntervalSeconds Then Dim i As Integer = S.LastIndexOf("time=") If i > 0 Then Try Dim SS As String = S.Substring(i + 5, S.IndexOf(" ", i) - i - 5) If IsNumeric(SS) Then Dim T As Single = CSng(SS) Dim P As Single = T / VI.VI.Duration If P > 1 Then P = 1 RaiseEvent EncodingStatusUpdate(UniqueID, P) cnt += 1 Else Dim T As TimeSpan If TimeSpan.TryParse(SS, T) Then Dim P As Single = T.TotalSeconds / VI.VI.Duration If P > 1 Then P = 1 RaiseEvent EncodingStatusUpdate(UniqueID, P) cnt += 1 End If End If Catch ex As Exception End Try LastEvent = Now.ToUniversalTime End If End If End While standardError.Append(myProcess.StandardError.ReadToEnd()) standardOutput.Append(myProcess.StandardOutput.ReadToEnd()) RaiseEvent EncodingStatusUpdate(UniqueID, 1) From jdxsolutions at gmail.com Fri Feb 10 14:45:27 2012 From: jdxsolutions at gmail.com (John Dexter) Date: Fri, 10 Feb 2012 13:45:27 +0000 Subject: [FFmpeg-user] [Windows] Running ffmpeg.exe programatically - possible to monitor progress? In-Reply-To: <01f001cce7f7$c7da90b0$578fb210$@RichardsEmail.Net> References: <01f001cce7f7$c7da90b0$578fb210$@RichardsEmail.Net> Message-ID: On 10 February 2012 13:27, Mark Richards wrote: >> If my Win32 app launches ffmpeg.exe with a command-line, does anyone >> know if there is a way to monitor the progress and when it has >> finished? > > It's actually pretty easy. ?Create a Process, give it all the info to run > ffmpeg, then let it run async, and monitor StandardError (For some reason > ffmpeg writes to standarderror instead of standardOut). ?Here's a snippet of > VB.Net code I use. Thanks Mark & Alex. More specifically to ffmpeg, I was more wondering what to _look for_ in the console output, and if there are cmd-line arguments I should look up which can make the output more easily computer-readable? The default output I'm getting is not too friendly in this regard. Mark: with your approach (which is the general idea I had in mind), I noted ffmpeg.exe doesn't just write new lines but seems to update the same console line as it is progressing. Does that come through to stderr as normal each time the line changes? Thanks again, John From mark at richardsemail.net Fri Feb 10 15:11:59 2012 From: mark at richardsemail.net (Mark Richards) Date: Fri, 10 Feb 2012 07:11:59 -0700 Subject: [FFmpeg-user] [Windows] Running ffmpeg.exe programatically - possible to monitor progress? In-Reply-To: References: <01f001cce7f7$c7da90b0$578fb210$@RichardsEmail.Net> Message-ID: <01f101cce7fd$f548c1b0$dfda4510$@RichardsEmail.Net> >On 10 February 2012 13:27, Mark Richards wrote: >>> If my Win32 app launches ffmpeg.exe with a command-line, does anyone >>> know if there is a way to monitor the progress and when it has >>> finished? >> >> It's actually pretty easy. ?Create a Process, give it all the info to >> run ffmpeg, then let it run async, and monitor StandardError (For some >> reason ffmpeg writes to standarderror instead of standardOut). ?Here's >> a snippet of VB.Net code I use. >Thanks Mark & Alex. More specifically to ffmpeg, I was more wondering what to _look for_ in the console output, and if there are cmd-line >arguments I should look up which can make the output more easily computer-readable? The default output I'm getting is not too friendly in this >regard. > >Mark: with your approach (which is the general idea I had in mind), I noted ffmpeg.exe doesn't just write new lines but seems to update the same console line as it is progressing. Does that come through to stderr as normal each time the line changes? John, My code is looking for "Time=" to figure out how much it has progressed in the encoding. In StandardError it just reads as a new line, so it works just fine. I have also looked at the source video ahead of time (with ffmpeg) to figure out the duration of the video, so I can calculate a percent instead of just time. (I just run "ffmpeg.exe -i mysourcefile.mov" and parse the text to find the duration). Mark From openworld at uralweb.ru Fri Feb 10 15:15:25 2012 From: openworld at uralweb.ru (Alexander Bokovikov) Date: Fri, 10 Feb 2012 19:15:25 +0500 Subject: [FFmpeg-user] [Windows] Running ffmpeg.exe programatically - possible to monitor progress? In-Reply-To: References: <01f001cce7f7$c7da90b0$578fb210$@RichardsEmail.Net> Message-ID: <68ADD607-4AB7-4E75-807E-DFC118324F45@uralweb.ru> On 10.02.2012, at 18:45, John Dexter wrote: > Thanks Mark & Alex. More specifically to ffmpeg, I was more wondering > what to _look for_ in the console output, and if there are cmd-line > arguments I should look up which can make the output more easily > computer-readable? The default output I'm getting is not too friendly > in this regard. As for me, I'm parsing the ffmpeg output to get the progress value from the current time and the total duration. You can also obtain average fps (processing speed of your app) to show it in the real time, as progress bar goes ahead. > Mark: with your approach (which is the general idea I had in mind), I > noted ffmpeg.exe doesn't just write new lines but seems to update the > same console line as it is progressing. It means that LF code is absent. Each line is terminated by CR. Parse lines by CR (0x0D) and nothing more. > Does that come through to > stderr as normal each time the line changes? It has no relation to the stderr/stdout. It's defined by printf() format. And you can join stderr and astdout pipes at their receiving ends and forget about the problem of what output to analyze. HTH! From msmith at bitgravity.com Fri Feb 10 15:56:22 2012 From: msmith at bitgravity.com (Michael Smithng) Date: Fri, 10 Feb 2012 06:56:22 -0800 Subject: [FFmpeg-user] ffmpeg/libx264 thread management In-Reply-To: References: <4F3115E7.1090606@bbc.co.uk> <4F3384B8.4060307@gmail.com> Message-ID: <029EB6B5-B347-4533-861A-9D9677903594@bitgravity.com> Now that all of 'that's' out of the way dot dot dot Does anyone have any input on the actual question? On Feb 9, 2012, at 6:26 AM, John Dexter wrote: >> First remove your signature and re-post the question. >> >> This's a public mailing list. > > Kind of immature to insist someone re-posts. It's not a school > playground. If the nonsense in the signature held any legal power > you'd already be caught even if he re-posted :) > > Tim maybe you'll have to post from your personal email if BBC is as > super-anal over this stuff as I hear! > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From fernanda.rebelatto at gmail.com Fri Feb 10 16:00:55 2012 From: fernanda.rebelatto at gmail.com (Fernanda Rebelatto) Date: Fri, 10 Feb 2012 13:00:55 -0200 Subject: [FFmpeg-user] Splicing/Trimming video In-Reply-To: References: Message-ID: Em 9 de fevereiro de 2012 17:22, Joshua Grauman escreveu: > I have used the following command to take video straight from my Canon > camcorder and to cut off the front and back end of it and scale it down to > my desired resolution. This command works great. However, now I'd like to > 'edit' the video by cutting out several portions from the *middle* of the > video. In other words, I'd like to remove a few seconds here or there from > the video by specifying the start and end times (or durations) I want to cut > out. There will probably be several little sections cut out from the video. > Any ideas on how to do this from the command-line? I'd prefer to cut the > sections out of the Final.mp4 file with a -new- ffmpeg command, but if I > need to go back and change my initial command that could work too. Thanks! I need it too Att., Fernanda Rebelatto From jnfo-c at grauman.com Fri Feb 10 16:11:50 2012 From: jnfo-c at grauman.com (Joshua Grauman) Date: Fri, 10 Feb 2012 07:11:50 -0800 (PST) Subject: [FFmpeg-user] Splicing/Trimming video In-Reply-To: References: Message-ID: Thanks. I sort of feared that would be the only way. I've used MP4Box to cat video streams together before, and this allowed me to work directly on mp4s, so maybe that's easiest rather than converting to flv and back? I must admit I don't fully understand why ffmpeg doesn't do this, the difference between the containers and streams, and particularly which tools are designed for which aspects of the process. It seems like maybe I'm using the wrong tool for the job? Or is it just a necessity when doing work in this area to have to use multiple tools? Should I be aware of any other commandline (Linux) tools for cutting/splicing/joining video files (mine are mp4s). > 2012/2/9 Joshua Grauman : >> Hello all, >> >> I have used the following command to take video straight from my Canon >> camcorder and to cut off the front and back end of it and scale it down to >> my desired resolution. This command works great. However, now I'd like to >> 'edit' the video by cutting out several portions from the *middle* of the >> video. In other words, I'd like to remove a few seconds here or there from >> the video by specifying the start and end times (or durations) I want to cut >> out. There will probably be several little sections cut out from the video. >> Any ideas on how to do this from the command-line? I'd prefer to cut the >> sections out of the Final.mp4 file with a -new- ffmpeg command, but if I >> need to go back and change my initial command that could work too. Thanks! >> >> cat 00012.MTS 00013.MTS 00014.MTS | /usr/local/ffmpeg/ffmpeg -threads 4 -i - >> -ss 50 -t 2405 -vf scale=853:480,crop=640:480 -aspect 4:3 -r 30 -b 1200k -ab >> 256k Final.mp4 >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > You can think your desire to cut off some intervals as equivalent > desire to _save_ certain intervals, and then join them. > For cutting, there's ready functionality in ffmpeg > For joining, it can be problematic, you can use my tiny tool which can > merge flv files. > https://github.com/krieger-od/imgs2video/blob/master/cat.c > > From de.techno at gmail.com Fri Feb 10 17:45:33 2012 From: de.techno at gmail.com (dE .) Date: Fri, 10 Feb 2012 22:15:33 +0530 Subject: [FFmpeg-user] ffmpeg/libx264 thread management In-Reply-To: <029EB6B5-B347-4533-861A-9D9677903594@bitgravity.com> References: <4F3115E7.1090606@bbc.co.uk> <4F3384B8.4060307@gmail.com> <029EB6B5-B347-4533-861A-9D9677903594@bitgravity.com> Message-ID: <4F3549AD.6010502@gmail.com> On 02/10/12 20:26, Michael Smithng wrote: > Now that all of 'that's' out of the way dot dot dot > > Does anyone have any input on the actual question? > > On Feb 9, 2012, at 6:26 AM, John Dexter wrote: > >>> First remove your signature and re-post the question. >>> >>> This's a public mailing list. >> Kind of immature to insist someone re-posts. It's not a school >> playground. If the nonsense in the signature held any legal power >> you'd already be caught even if he re-posted :) >> >> Tim maybe you'll have to post from your personal email if BBC is as >> super-anal over this stuff as I hear! >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user You're the same guy? From tevans.uk at googlemail.com Fri Feb 10 17:49:31 2012 From: tevans.uk at googlemail.com (Tom Evans) Date: Fri, 10 Feb 2012 16:49:31 +0000 Subject: [FFmpeg-user] [Windows] Running ffmpeg.exe programatically - possible to monitor progress? In-Reply-To: References: <01f001cce7f7$c7da90b0$578fb210$@RichardsEmail.Net> Message-ID: On Fri, Feb 10, 2012 at 1:45 PM, John Dexter wrote: > Thanks Mark & Alex. More specifically to ffmpeg, I was more wondering > what to _look for_ in the console output, and if there are cmd-line > arguments I should look up which can make the output more easily > computer-readable? The default output I'm getting is not too friendly > in this regard. > > Mark: with your approach (which is the general idea I had in mind), I > noted ffmpeg.exe doesn't just write new lines but seems to update the > same console line as it is progressing. Does that come through to > stderr as normal each time the line changes? > I thought I'd chime in with my python code that does the same thing. Leaving the boring bits of the class behind gives this: DURATION_RE = re.compile(r'Duration: (?P\d+):(?P\d+):(?P\d+)\.(?P\d+),') FRAME_RE = re.compile(r'frame=\s*(?P\d+)\s+fps=\s*(?P\d+)\s+q=.*\s+size=.*\s+time=\s*(?P\d+):(?P\d+):(?P\d+)\.(?P\d+)') def process(self): pffmpeg = Popen(self.args, stdout=PIPE, stderr=STDOUT, universal_newlines=True, close_fds=True) while True: line = pffmpeg.stdout.readline() if not line: break if not self.duration: m = DURATION_RE.search(line) if m: self.duration = self.__hr_mins_secs_to_secs(m.groupdict()) elif self.debug: print u'ffmpeg pre-duration: %s' % (line,) continue m = FRAME_RE.search(line) if m: data = m.groupdict() frame = int(data['frames']) fps = int(data['fps']) time = self.__hr_mins_secs_to_secs(data) self.update_cache(frame, fps, time) elif self.debug: print u'ffmpeg post-duration: %s' % (line,) return True So the first thing to note is that I tell python to use universal newlines - ie it treats each of these as an end of line character sequence '\r', '\n', '\r\n'. This makes parsing the status lines trivial. The second thing to note is the regexps used. The first looks for a 'Duration: xxxx' line, and calculates the total time of the media. The second is the status update itself, which is parsed to determine the percentage through the file I am. I then store this in a cache, where it is then used by a web front end to display progress to the user. Hope that was helpful! Cheers Tom From jeisom at gmail.com Fri Feb 10 19:35:36 2012 From: jeisom at gmail.com (Jonathan Isom) Date: Fri, 10 Feb 2012 12:35:36 -0600 Subject: [FFmpeg-user] ffmpeg/libx264 thread management In-Reply-To: <4F3549AD.6010502@gmail.com> References: <4F3115E7.1090606@bbc.co.uk> <4F3384B8.4060307@gmail.com> <029EB6B5-B347-4533-861A-9D9677903594@bitgravity.com> <4F3549AD.6010502@gmail.com> Message-ID: On Fri, Feb 10, 2012 at 10:45 AM, dE . wrote: > On 02/10/12 20:26, Michael Smithng wrote: >> >> Now that all of 'that's' out of the way dot dot dot >> >> Does anyone have any input on the actual question? >> >> On Feb 9, 2012, at 6:26 AM, John Dexter wrote: >> >>>> First remove your signature and re-post the question. >>>> >>>> This's a public mailing list. >>> >>> Kind of immature to insist someone re-posts. It's not a school >>> playground. If the nonsense in the signature held any legal power >>> you'd already be caught even if he re-posted :) >>> >>> Tim maybe you'll have to post from your personal email if BBC is as >>> super-anal over this stuff as I hear! >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > You're the same guy? Does it really matter who asked. I would like to know as well about to the original question. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From hardik.sharma22 at yahoo.com Fri Feb 10 19:39:11 2012 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Fri, 10 Feb 2012 10:39:11 -0800 (PST) Subject: [FFmpeg-user] Slice decoding for VC1 Message-ID: <1328899151.71568.YahooMailNeo@web46211.mail.sp1.yahoo.com> Hi guys, I am checking the VC1 code after long time. Can you tell me that if someone implemented slice decoding in VC1? ? ? Regards, Hardik Sharma From andrey.krieger.utkin at gmail.com Fri Feb 10 19:55:14 2012 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Fri, 10 Feb 2012 20:55:14 +0200 Subject: [FFmpeg-user] Splicing/Trimming video In-Reply-To: References: Message-ID: 2012/2/10 Joshua Grauman : > I don't fully understand why ffmpeg doesn't do this Because nobody published efforts on this issue (generalized concatenation of media) to upstream _yet_. This's community-driven open-source project. Shortly, do it yourself, hire somebody to do it, or look for another tool. > It seems like maybe I'm using the wrong tool for the job? Or is it just a > necessity when doing work in this area to have to use multiple tools? Should > I be aware of any other commandline (Linux) tools for > cutting/splicing/joining video files (mine are mp4s). Don't know of such command-line tool, unfortunately. Looked for it days ago. ffmpeg has great libraries for creation of _application_ for your need. It is very probable that somebody'll do it soon. -- Andrey Utkin From jnfo-c at grauman.com Sat Feb 11 04:32:50 2012 From: jnfo-c at grauman.com (Joshua Grauman) Date: Fri, 10 Feb 2012 19:32:50 -0800 (PST) Subject: [FFmpeg-user] Splicing/Trimming video In-Reply-To: References: Message-ID: Sorry, this totally came across arrogant. I understand the nature of community-driven open-source projects. I should have been more specific to say that I don't understand the nature of the tools well enough to understand what is out of scope for ffmpeg. So I think you answered my question by saying that no, this is not out of scope, but it hasn't been implemented yet... Thanks! Josh > 2012/2/10 Joshua Grauman : >> I don't fully understand why ffmpeg doesn't do this > > Because nobody published efforts on this issue (generalized > concatenation of media) to upstream _yet_. > This's community-driven open-source project. Shortly, do it yourself, > hire somebody to do it, or look for another tool. > >> It seems like maybe I'm using the wrong tool for the job? Or is it just a >> necessity when doing work in this area to have to use multiple tools? Should >> I be aware of any other commandline (Linux) tools for >> cutting/splicing/joining video files (mine are mp4s). > > Don't know of such command-line tool, unfortunately. Looked for it days ago. > ffmpeg has great libraries for creation of _application_ for your need. > It is very probable that somebody'll do it soon. > > From puja.softdeveloper at gmail.com Sat Feb 11 06:37:31 2012 From: puja.softdeveloper at gmail.com (puja singh) Date: Sat, 11 Feb 2012 11:07:31 +0530 Subject: [FFmpeg-user] how to remove installed version and how to install another version of ffmpeg on centos Message-ID: hello all i'm trying to update ffmpeg on centos ...i don't know where is ffmpeg -source folder.. plss see the log and guide me . thanx From openworld at uralweb.ru Sat Feb 11 07:39:20 2012 From: openworld at uralweb.ru (Alexander Bokovikov) Date: Sat, 11 Feb 2012 11:39:20 +0500 Subject: [FFmpeg-user] Splicing/Trimming video In-Reply-To: References: Message-ID: On 11.02.2012, at 8:32, Joshua Grauman wrote: > Sorry, this totally came across arrogant. I understand the nature of > community-driven open-source projects. I should have been more > specific to say that I don't understand the nature of the tools well > enough to understand what is out of scope for ffmpeg. So I think you > answered my question by saying that no, this is not out of scope, > but it hasn't been implemented yet... Thanks! You can use mencoder to join video files. As for splitting you can do it either with ffmpeg or with mencoder. These tools have similar (though different) command line interface. MEncoder is based on the same libav* engine. HTH! From de.techno at gmail.com Sat Feb 11 11:03:55 2012 From: de.techno at gmail.com (dE .) Date: Sat, 11 Feb 2012 15:33:55 +0530 Subject: [FFmpeg-user] ffmpeg/libx264 thread management In-Reply-To: References: <4F3115E7.1090606@bbc.co.uk> <4F3384B8.4060307@gmail.com> <029EB6B5-B347-4533-861A-9D9677903594@bitgravity.com> <4F3549AD.6010502@gmail.com> Message-ID: <4F363D0B.7000808@gmail.com> On 02/11/12 00:05, Jonathan Isom wrote: > On Fri, Feb 10, 2012 at 10:45 AM, dE . wrote: >> On 02/10/12 20:26, Michael Smithng wrote: >>> Now that all of 'that's' out of the way dot dot dot >>> >>> Does anyone have any input on the actual question? >>> >>> On Feb 9, 2012, at 6:26 AM, John Dexter wrote: >>> >>>>> First remove your signature and re-post the question. >>>>> >>>>> This's a public mailing list. >>>> Kind of immature to insist someone re-posts. It's not a school >>>> playground. If the nonsense in the signature held any legal power >>>> you'd already be caught even if he re-posted :) >>>> >>>> Tim maybe you'll have to post from your personal email if BBC is as >>>> super-anal over this stuff as I hear! >>>> _______________________________________________ >>>> ffmpeg-user mailing list >>>> ffmpeg-user at ffmpeg.org >>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> You're the same guy? > Does it really matter who asked. I would like to know as well about > to the original question. > >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Nice shouldn't matter if your system is not busy, also when encoding using x264, I don't see children of ffmpeg, but a single process; so I'm not sure what you mean. If you want to force priority, you may use nice, renice. From de.techno at gmail.com Sat Feb 11 11:11:16 2012 From: de.techno at gmail.com (dE .) Date: Sat, 11 Feb 2012 15:41:16 +0530 Subject: [FFmpeg-user] how to remove installed version and how to install another version of ffmpeg on centos In-Reply-To: References: Message-ID: <4F363EC4.4010708@gmail.com> On 02/11/12 11:07, puja singh wrote: > hello all > i'm trying to update ffmpeg on centos ...i don't know where is ffmpeg > -source folder.. > plss see the log and guide me . > > thanx > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user You need to download the source first from ffmpeg.org, it cant exist previously in centOS. From rlm at mit.edu Sat Feb 11 11:57:08 2012 From: rlm at mit.edu (Robert McIntyre) Date: Sat, 11 Feb 2012 03:57:08 -0700 Subject: [FFmpeg-user] Bad keyframes when encoding to the ogg container format Message-ID: This is my first post, sorry if this does not belong here. Whenever I encode anything to an ogg container, running "ffmpeg -i " on the file which is produced informs me "[ogg @ 0x2351de0] Broken file, keyframes not correctly marked." Seeking in the file is partially broken. I've made a small test case to show this problem. If you download the archive http://aurellem.org/test-pics.tar.bz2, unpack and then run ffmpeg -r 25 -i test-pics/%07d.png -b:v 9000k -vcodec libtheora out.ogg then running ffmpeg -i out.ogg returns : ffmpeg version N-37771-gfd0b8d5 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 11 2012 11:39:48 with gcc 4.5.2 configuration: --prefix=/usr --mandir=/usr/man --enable-x11grab --enable-gpl --e nable-shared --disable-static --enable-gray --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libxvid --enable-libx264 --enable-gnutls --enable-bzlib --enable-libmp3lame --enable-pic --disable-stripping libavutil 51. 39.100 / 51. 39.100 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 [ogg @ 0x1eccde0] Broken file, keyframes not correctly marked. Input #0, ogg, from 'out.ogg': Duration: 00:00:02.00, start: 0.000000, bitrate: 935 kb/s Stream #0:0: Video: theora, yuv420p, 1280x550 [SAR 1:1 DAR 128:55], 25 tbr, 25 tbn, 25 tbc At least one output file must be specified This is with the latest ffmpeg from the git repository as of 20 minutes ago (the date is wrong on my system). I'm using libtheora-1.1.1 (the latest release from their website.) Am I doing something wrong? The ancient ffmpeg I was using produced files that do not cause my current ffmpeg to tell me anything is wrong with the keyframes, and it produced them with the same command from above. sincerely, --Robert McIntyre From cehoyos at ag.or.at Sat Feb 11 12:37:41 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 11 Feb 2012 11:37:41 +0000 (UTC) Subject: [FFmpeg-user] Bad keyframes when encoding to the ogg container format References: Message-ID: Robert McIntyre mit.edu> writes: > This is my first post, sorry if this does not belong here. This is definitely the right place > Whenever I encode anything to an ogg container, running "ffmpeg -i > " on the file which is produced informs > me "[ogg @ 0x2351de0] Broken file, keyframes not correctly marked." > Seeking in the file is partially broken. Could you elaborate? A (ogg) sample that allows to reproduce this problem would be very welcome. [...] > Am I doing something wrong? The ancient ffmpeg I was using produced > files that do not cause my current ffmpeg to tell me anything is wrong > with the keyframes, and it produced them with the same command from > above. Can you confirm that the file encoded with the older FFmpeg does not show the warning message when decoded with current FFmpeg? Carl EUgen From rlm at mit.edu Sat Feb 11 13:07:08 2012 From: rlm at mit.edu (Robert McIntyre) Date: Sat, 11 Feb 2012 05:07:08 -0700 Subject: [FFmpeg-user] Bad keyframes when encoding to the ogg container format In-Reply-To: References: Message-ID: Again, this is using the test images in the archive from here: http://aurellem.org/test-pics.tar.bz2. First I'll create a ogg file with my old ffmpeg: **************************** [~/proj/cortex/render] $ /usr/xuggler/bin/ffmpeg -r 25 -i test-pics/%07d.png -b 90 00k -vcodec libtheora out-old.ogg FFmpeg version SVN-r21566-xuggle-3.4.843, Copyright (c) 2000-2010 Fabrice Bellard, et al. built on Jan 31 2010 16:26:43 with gcc 4.2.3 (Ubuntu 4.2.3-2ubuntu7) configuration: --prefix=/usr/local --extra-version=xuggle-3.4.843 --extra-cflags =-I/home/hudson/slave/workspace/xuggle_xuggler_binary_build/jdk/JDK5/label/Linux_x 86_64/build/native/x86_64-unknown-linux-gnu/captive/usr/local/include --extra-ldfl ags=-L/home/hudson/slave/workspace/xuggle_xuggler_binary_build/jdk/JDK5/label/Linu x_x86_64/build/native/x86_64-unknown-linux-gnu/captive/usr/local/lib --enable-shar ed --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --enable-libmp 3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libfaac --e nable-libopencore-amrnb --enable-libopencore-amrwb --enable-pthreads libavutil 50. 8. 0 / 50. 8. 0 libavcodec 52.49. 0 / 52.49. 0 libavformat 52.48. 0 / 52.48. 0 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0. 9. 0 / 0. 9. 0 Input #0, image2, from 'test-pics/%07d.png': Duration: 00:00:02.00, start: 0.000000, bitrate: N/A Stream #0.0: Video: png, pal8, 1280x550, 25 fps, 25 tbr, 25 tbn, 25 tbc Output #0, ogg, to 'out-old.ogg': Stream #0.0: Video: libtheora, yuv420p, 1280x550, q=2-31, 9000 kb/s, 25 tbn, 2 5 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding Input Stream #0.0 frame size changed to 1280x550, bgratrate= 465.8kbits/s frame= 50 fps= 22 q=0.0 Lsize= 229kB time=2.00 bitrate= 939.0kbits/s video:224kB audio:0kB global headers:3kB muxing overhead 0.936533% ***************************** Now I will read in that file with the new ffmpeg: ***************************** [~/proj/cortex/render] $ ffmpeg -i out-old.ogg ffmpeg version N-37771-gfd0b8d5 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 11 2012 11:39:48 with gcc 4.5.2 configuration: --prefix=/usr --mandir=/usr/man --enable-x11grab --enable-gpl --e nable-shared --disable-static --enable-gray --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libxvid --enable-libx264 --enable-gnutls --enable-bzlib --enable-libmp3lame --enable-pic --disable-stripping libavutil 51. 39.100 / 51. 39.100 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, ogg, from 'out-old.ogg': Duration: 00:00:02.00, start: 0.000000, bitrate: 938 kb/s Stream #0:0: Video: theora, yuv420p, 1280x550 [SAR 1:1 DAR 128:55], 25 tbr, 25 tbn, 25 tbc At least one output file must be specified ***************************** As you can see, no reports of broken keyframes. Now I will create the same file with my new ffmpeg ***************************** [~/proj/cortex/render] $ ffmpeg -r 25 -i test-pics/%07d.png -b:v 9000k -vcodec libtheora out-new.ogg ffmpeg version N-37771-gfd0b8d5 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 11 2012 11:39:48 with gcc 4.5.2 configuration: --prefix=/usr --mandir=/usr/man --enable-x11grab --enable-gpl --e nable-shared --disable-static --enable-gray --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libxvid --enable-libx264 --enable-gnutls --enable-bzlib --enable-libmp3lame --enable-pic --disable-stripping libavutil 51. 39.100 / 51. 39.100 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, image2, from 'test-pics/%07d.png': Duration: 00:00:02.00, start: 0.000000, bitrate: N/A Stream #0:0: Video: png, pal8, 1280x550, 25 fps, 25 tbr, 25 tbn, 25 tbc Incompatible pixel format 'pal8' for codec 'libtheora', auto-selecting format 'yuv 420p' [buffer @ 0x1b58540] w:1280 h:550 pixfmt:pal8 tb:1/1000000 sar:0/1 sws_param: [buffersink @ 0x1b516e0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x1b68100] w:1280 h:550 fmt:pal8 -> w:1280 h:550 fmt:yuv420p flags:0x4 Output #0, ogg, to 'out-new.ogg': Metadata: encoder : Lavf54.0.100 Stream #0:0: Video: theora, yuv420p, 1280x550, q=2-31, 9000 kb/s, 25 tbn, 25 t bc Stream mapping: Stream #0:0 -> #0:0 (png -> libtheora) Press [q] to stop, [?] for help frame= 14 fps= 0 q=0.0 size= 29kB time=00:00:00.52 bitrate= 461.6kbits/s Buffer video input changed from size:1280x550 fmt:pal8 to size:1280x550 fmt:rgba [scale @ 0x1b68100] w:1280 h:550 fmt:rgba -> w:1280 h:550 fmt:yuv420p flags:0x2 frame= 26 fps= 26 q=0.0 size= 55kB time=00:00:01.04 bitrate= 435.8kbits/s frame= 38 fps= 25 q=0.0 size= 82kB time=00:00:01.52 bitrate= 443.1kbits/s frame= 49 fps= 24 q=0.0 size= 109kB time=00:00:01.96 bitrate= 455.2kbits/s frame= 50 fps= 23 q=0.0 Lsize= 228kB time=00:00:02.00 bitrate= 935.1kbits/s video:224kB audio:0kB global headers:3kB muxing overhead 0.561803% ***************************** Reading this file back in with my new ffmpeg I get this: ***************************** [~/proj/cortex/render] $ ffmpeg -i out-new.ogg ffmpeg version N-37771-gfd0b8d5 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 11 2012 11:39:48 with gcc 4.5.2 configuration: --prefix=/usr --mandir=/usr/man --enable-x11grab --enable-gpl --e nable-shared --disable-static --enable-gray --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libxvid --enable-libx264 --enable-gnutls --enable-bzlib --enable-libmp3lame --enable-pic --disable-stripping libavutil 51. 39.100 / 51. 39.100 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 [ogg @ 0x2017de0] Broken file, keyframes not correctly marked. Input #0, ogg, from 'out-new.ogg': Duration: 00:00:02.00, start: 0.000000, bitrate: 935 kb/s Stream #0:0: Video: theora, yuv420p, 1280x550 [SAR 1:1 DAR 128:55], 25 tbr, 25 tbn, 25 tbc At least one output file must be specified ***************************** I've uploaded both video files here: http://aurellem.org/out-new.ogg http://aurellem.org/out-old.ogg The images used to generate these files again are here: http://aurellem.org/test-pics.tar.bz2 sincerely, --Robert McIntyre From paul at lenz-online.de Sat Feb 11 13:48:18 2012 From: paul at lenz-online.de (Paul Lenz) Date: Sat, 11 Feb 2012 13:48:18 +0100 Subject: [FFmpeg-user] FAQ: how to join videos Message-ID: <5f11dd9817de47e7c48c34ac8bb58813@lenz-online.de> This job seems not to be as easy as written in the FAQ. If you get bad results, there are more tings to do. I grab several sets of JPG pictures from a webcam and record a WAV file for each set. I create a new empty file "result.mpg" and do this for each set: 1.) I duplicate the pictures until I have 25 pictures per second 2.) ffmpeg -r 25 -f image2 -i img-%06d.jpg pics.mpg (I collect pictures into a mpg video) 3.) ffmpeg -i pics.mpg -i set_xxx.wav set_xxx.mpg (I add the sound to the video) 4.) open the video file and paste its content to "result.mpg" 5.) continue with the next set I save "result.mpg" and convert it into WMV: ffmpeg -i result.mpg -f avi result.wmv (For unknown reasons, "-f avi" is necessary, otherwise the sound is very distorted.) Both results can be played in Windows Media Player and in Media Player Classic, but Windows Media Player seems not to be able to calculate the correct length and the correct playing position of the MPG video. The biggest trouble is: both results can not be used in Adobe Premiere CS5. It refuses to import the WMV file ("can not be opened") and it shows the MPG file only partly (the part from the first set). The solution is to convert "result.mpg" into another "result2.mpg" as an additional step: ffmpeg -i result.mpg result2.mpg ffmpeg -i temp.mpg -f avi result.wmv Both files are now perfectly usable in video players and Premiere. IMHO this should be mentioned in the FAQ. Paul Lenz From cehoyos at ag.or.at Sat Feb 11 14:43:49 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 11 Feb 2012 13:43:49 +0000 (UTC) Subject: [FFmpeg-user] FAQ: how to join videos References: <5f11dd9817de47e7c48c34ac8bb58813@lenz-online.de> Message-ID: Paul Lenz lenz-online.de> writes: > 1.) I duplicate the pictures until I have 25 pictures per second > 2.) ffmpeg -r 25 -f image2 -i img-%06d.jpg pics.mpg What is wrong with ffmpeg -r 1 -i img-%06d.jpg -r 25 pics.mpg ? (Assuming you originally had 1 image per second) [...] > ffmpeg -i temp.mpg -f avi result.wmv That is *really* broken, please do not suggest such abominations here.. Carl Eugen From cehoyos at ag.or.at Sat Feb 11 14:45:17 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 11 Feb 2012 13:45:17 +0000 (UTC) Subject: [FFmpeg-user] Bad keyframes when encoding to the ogg container format References: Message-ID: Robert McIntyre mit.edu> writes: > http://aurellem.org/out-new.ogg > http://aurellem.org/out-old.ogg How do you test seeking in a two seconds file? (Your original report was "Seeking in the file is partially broken.") Carl Eugen From paul at lenz-online.de Sat Feb 11 15:02:24 2012 From: paul at lenz-online.de (Paul Lenz) Date: Sat, 11 Feb 2012 15:02:24 +0100 Subject: [FFmpeg-user] FAQ: how to join videos In-Reply-To: References: <5f11dd9817de47e7c48c34ac8bb58813@lenz-online.de> Message-ID: Am 11.02.2012 14:43, schrieb Carl Eugen Hoyos: > Paul Lenz lenz-online.de> writes: > >> 1.) I duplicate the pictures until I have 25 pictures per second >> 2.) ffmpeg -r 25 -f image2 -i img-%06d.jpg pics.mpg > > What is wrong with > ffmpeg -r 1 -i img-%06d.jpg -r 25 pics.mpg > ? > (Assuming you originally had 1 image per second) Your assuming is wrong. Depending from my camera and other reasons, I have 4 to 9 images per second. ffmpeg can not guess which pictures belong to which second, but my program knows. >> ffmpeg -i temp.mpg -f avi result.wmv > > That is *really* broken, please do not suggest such abominations > here.. It works very well for me. Perhaps ffmpeg is more clever than you think. Paul Lenz From oleber at gmail.com Sat Feb 11 18:04:30 2012 From: oleber at gmail.com (marcos rebelo) Date: Sat, 11 Feb 2012 18:04:30 +0100 Subject: [FFmpeg-user] Getting crazy with video conversion Message-ID: I got a video file like: FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.3, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1.3 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 1 / 52.20. 1 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libavfilter 0. 4. 0 / 0. 4. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Dec 21 2011 18:37:21, gcc: 4.4.3 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x87e4a60]multiple edit list entries, a/v desync might occur, patch welcome Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -> 23.98 (24000/1001) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01 The Skank Reflex Analysis (HD).m4v': Duration: 00:21:32.80, start: 0.000000, bitrate: 4412 kb/s Stream #0.0(eng): Video: h264, yuv420p, 1280x720, PAR 1:1 DAR 16:9, 23.98 tbr, 23.98 tbn, 47.95 tbc Stream #0.1(rus): Audio: aac, 48000 Hz, stereo, s16 Stream #0.2(eng): Audio: aac, 48000 Hz, stereo, s16 Stream #0.3(rus): Subtitle: tx3g / 0x67337874, PAR 1:9 DAR 16:9 Stream #0.4(eng): Subtitle: tx3g / 0x67337874, PAR 1:9 DAR 16:9 At least one output file must be specified I would like to get this video in English with an acceptable video quality. Can someone tell me how to do it with ffmpeg please? Best Regards MArcos -- Marcos Rebelo http://www.oleber.com/ Webmaster of http://perl5notebook.oleber.com From exampte01 at hotmail.fr Sat Feb 11 19:02:54 2012 From: exampte01 at hotmail.fr (aple ex) Date: Sat, 11 Feb 2012 19:02:54 +0100 Subject: [FFmpeg-user] Getting crazy with video conversion In-Reply-To: References: Message-ID: > From: oleber at gmail.com > Date: Sat, 11 Feb 2012 18:04:30 +0100 > To: ffmpeg-user at ffmpeg.org > Subject: [FFmpeg-user] Getting crazy with video conversion > > I got a video file like: > > > > FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.3, Copyright (c) 2000-2009 > Fabrice Bellard, et al. > configuration: --extra-version=4:0.5.1-1ubuntu1.3 --prefix=/usr > --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib > --enable-libgsm --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib > --disable-stripping --disable-vhook --enable-runtime-cpudetect > --enable-gpl --enable-postproc --enable-swscale --enable-x11grab > --enable-libdc1394 --enable-shared --disable-static > libavutil 49.15. 0 / 49.15. 0 > libavcodec 52.20. 1 / 52.20. 1 > libavformat 52.31. 0 / 52.31. 0 > libavdevice 52. 1. 0 / 52. 1. 0 > libavfilter 0. 4. 0 / 0. 4. 0 > libswscale 0. 7. 1 / 0. 7. 1 > libpostproc 51. 2. 0 / 51. 2. 0 > built on Dec 21 2011 18:37:21, gcc: 4.4.3 > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x87e4a60]multiple edit list entries, a/v > desync might occur, patch welcome > > Seems stream 0 codec frame rate differs from container frame rate: > 47.95 (48000/1001) -> 23.98 (24000/1001) > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01 The Skank Reflex Analysis (HD).m4v': > Duration: 00:21:32.80, start: 0.000000, bitrate: 4412 kb/s > Stream #0.0(eng): Video: h264, yuv420p, 1280x720, PAR 1:1 DAR > 16:9, 23.98 tbr, 23.98 tbn, 47.95 tbc > Stream #0.1(rus): Audio: aac, 48000 Hz, stereo, s16 > Stream #0.2(eng): Audio: aac, 48000 Hz, stereo, s16 > Stream #0.3(rus): Subtitle: tx3g / 0x67337874, PAR 1:9 DAR 16:9 > Stream #0.4(eng): Subtitle: tx3g / 0x67337874, PAR 1:9 DAR 16:9 > At least one output file must be specified > > > > I would like to get this video in English with an acceptable video quality. > > > Can someone tell me how to do it with ffmpeg please? > > Best Regards > MArcos First you should update your ffmpeg version,and yes I think it's possible to have a video with only english audio if I understand correctly (if ot tell me) Regards. From rlm at mit.edu Sat Feb 11 19:15:42 2012 From: rlm at mit.edu (Robert McIntyre) Date: Sat, 11 Feb 2012 11:15:42 -0700 Subject: [FFmpeg-user] Bad keyframes when encoding to the ogg container format In-Reply-To: References: Message-ID: Indeed, I tested the seeking on a longer file. ffmpeg still reports the keyframes as being bad for the shorter file, but it is hard to see the seeking problems. Here is the full image sequence and resultant ogg file I've been working with. It is just a longer version of the short file that I posted, and was generated with the same commands. Everything I've said about the shorter file applies to this longer file. Sorry for not posting this earlier. I can post the file generated by my ancient version of ffmpeg if you want that as well. Seeking in this file is obviously broken when I play it with mplayer or ffplay. images: http://aurellem.org/out.tar.bz2 ogg file: http://aurellem.org/out-new-full.ogg ffmpeg command: ffmpeg -r 25 -i out/%07d.png -b:v 9000k -vcodec libtheora out-new-full.ogg (same as before) sincerely, --Robert McIntyre On Sat, Feb 11, 2012 at 6:45 AM, Carl Eugen Hoyos wrote: > Robert McIntyre mit.edu> writes: > >> http://aurellem.org/out-new.ogg >> http://aurellem.org/out-old.ogg > > How do you test seeking in a two seconds file? > (Your original report was "Seeking in the file is partially broken.") > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From lou at lrcd.com Sat Feb 11 19:16:41 2012 From: lou at lrcd.com (Lou) Date: Sat, 11 Feb 2012 09:16:41 -0900 Subject: [FFmpeg-user] Getting crazy with video conversion In-Reply-To: References: Message-ID: <20120211181641.GA32317@mail.lrcd.com> On Sat, Feb 11, 2012 at 07:02:54PM +0100, aple ex wrote: > > > > > From: oleber at gmail.com > > Date: Sat, 11 Feb 2012 18:04:30 +0100 > > To: ffmpeg-user at ffmpeg.org > > Subject: [FFmpeg-user] Getting crazy with video conversion > > > > I got a video file like: > > > > > > > > FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.3, Copyright (c) 2000-2009 > > Fabrice Bellard, et al. > > configuration: --extra-version=4:0.5.1-1ubuntu1.3 --prefix=/usr > > --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib > > --enable-libgsm --enable-libschroedinger --enable-libspeex > > --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib > > --disable-stripping --disable-vhook --enable-runtime-cpudetect > > --enable-gpl --enable-postproc --enable-swscale --enable-x11grab > > --enable-libdc1394 --enable-shared --disable-static > > libavutil 49.15. 0 / 49.15. 0 > > libavcodec 52.20. 1 / 52.20. 1 > > libavformat 52.31. 0 / 52.31. 0 > > libavdevice 52. 1. 0 / 52. 1. 0 > > libavfilter 0. 4. 0 / 0. 4. 0 > > libswscale 0. 7. 1 / 0. 7. 1 > > libpostproc 51. 2. 0 / 51. 2. 0 > > built on Dec 21 2011 18:37:21, gcc: 4.4.3 > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x87e4a60]multiple edit list entries, a/v > > desync might occur, patch welcome > > > > Seems stream 0 codec frame rate differs from container frame rate: > > 47.95 (48000/1001) -> 23.98 (24000/1001) > > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01 The Skank Reflex Analysis (HD).m4v': > > Duration: 00:21:32.80, start: 0.000000, bitrate: 4412 kb/s > > Stream #0.0(eng): Video: h264, yuv420p, 1280x720, PAR 1:1 DAR > > 16:9, 23.98 tbr, 23.98 tbn, 47.95 tbc > > Stream #0.1(rus): Audio: aac, 48000 Hz, stereo, s16 > > Stream #0.2(eng): Audio: aac, 48000 Hz, stereo, s16 > > Stream #0.3(rus): Subtitle: tx3g / 0x67337874, PAR 1:9 DAR 16:9 > > Stream #0.4(eng): Subtitle: tx3g / 0x67337874, PAR 1:9 DAR 16:9 > > At least one output file must be specified > > > > > > > > I would like to get this video in English with an acceptable video quality. > > > > > > Can someone tell me how to do it with ffmpeg please? > > > > Best Regards > > MArcos > > First you should update your ffmpeg version,and yes I think it's possible to have a video with only english audio if I understand correctly (if ot tell me) > Regards. Although I do support usage of recent FFmpeg I know this isn't always a reality, and not everyone knows how to do this. Although this is an outdated version it can probably still do what is requested. I don't have access to my Ubuntu Lucid VM, I didn't get to test this, and my 0.5 syntax memory is fading, but a good starting example may be: ffmpeg -i input -vcodec copy -acodec copy -map 0:0 -map 0:2 output.mp4 It will simply "copy and paste" the desired video and audio streams. No re-encoding so it won't lose any quality. From Tomas at rendertom.com Sat Feb 11 13:08:23 2012 From: Tomas at rendertom.com (Tomas Sinkunas) Date: Sat, 11 Feb 2012 04:08:23 -0800 (PST) Subject: [FFmpeg-user] FFMpeg H.264 to ProRez Message-ID: <1328962103285-4378786.post@n4.nabble.com> Hello guys. I am totally new here. It's only second time I am trying to use FFMpeg. I've downloaded FFMpeg 0.10 and done everything I need to make ir run. However I have a major problem. I am trying to export from H.264 to ProRez with this line: ffmpeg -i /_in.mov -vcodec prores -aspect 16:9 -s 1024x576 -an /_out.mov Exported file plays fine with QT and inspector shows correct info. But when I try to open this file with Cinema Tools to confirm it to 25FPS, the button Confirm is disabled. If I use compressor to compress this file to mpeg-2 - I get super weird outcome where frames are duplicated or there are jumps between the frames. If I add this video FCP timeline - FCP pops up message if I want to make sequence based on video spcs and etc. I choose YES. And everything plays out nicely in timeline. But if I want to make a reference video out of timeline, it renderes all video to a new huge file. I have "Make self contained" disabled. So after long hours of thinking and RnD, I think I miss something in this compression line: ffmpeg -i /_in.mov -vcodec prores -aspect 16:9 -s 1024x576 -an /_out.mov can someone help me out? As I only need to get prores file in the output, that is good for reproduction and I can compress that file and do what ever I want. Pleaseeeeee -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4378786.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From bostjan.strojan at gmail.com Sat Feb 11 21:53:15 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Sat, 11 Feb 2012 21:53:15 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: <1328962103285-4378786.post@n4.nabble.com> References: <1328962103285-4378786.post@n4.nabble.com> Message-ID: On Sat, Feb 11, 2012 at 1:08 PM, Tomas Sinkunas wrote: > ffmpeg -i /_in.mov -vcodec prores -aspect 16:9 -s 1024x576 -an /_out.mov maybe ffmpeg -i /_in.mov -vcodec prores -aspect 16:9 -s 1024x576 -an -r 25 /_out.mov ? b. From bostjan.strojan at gmail.com Sat Feb 11 21:56:00 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Sat, 11 Feb 2012 21:56:00 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: References: <1328962103285-4378786.post@n4.nabble.com> Message-ID: 2012/2/11 Bo?tjan Strojan : > ?ffmpeg -i /_in.mov -vcodec prores -aspect 16:9 -s 1024x576 -an -r 25 /_out.mov and/or ffmpeg -i /_in.mov -vcodec prores -aspect 16:9 -s 1024x576 -an -r 25 -pix_fmt yuv422p /_out.mov btw: you should provide full, uncut console output. b. From Tomas at rendertom.com Sat Feb 11 22:30:25 2012 From: Tomas at rendertom.com (Tomas Sinkunas) Date: Sat, 11 Feb 2012 13:30:25 -0800 (PST) Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: References: <1328962103285-4378786.post@n4.nabble.com> Message-ID: <1328995825229-4379972.post@n4.nabble.com> Thank you Bo?tjan Strojan for trying to help me out here. However, '-r 25' is not good at this point, as source video is 23.976 and with -r 25 I see it duplicated frames. So that's not good. And -pix_fmt yuv422p didn't do anything either:( Maybe that's just how it is and there's no way to change it? I mean maybe the problem is in ffmpeg or prores or something else under the hood? Still appreciate your time. If you have any other suggestions I'd be more then happy to hear you out. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4379972.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From temak82 at yahoo.com Sat Feb 11 22:56:57 2012 From: temak82 at yahoo.com (Artyom Khmelnitsky) Date: Sat, 11 Feb 2012 13:56:57 -0800 (PST) Subject: [FFmpeg-user] ffmpeg and ffmpeg-php cont Message-ID: <1328997417.54937.YahooMailNeo@web65409.mail.ac4.yahoo.com> Hello, I asked this maybe a week ago and have not had a chance to respond until now. I will put up a new post to clarify my previous question. Has anyone been successful at compiling ffmpeg v0.10 with ffmpeg-php 6.0 and have the ffmpeg module show up when running the 'php -m' command? If so, could anyone let me know how you have done this? I have no problem compiling ffmpeg with --shared-enabled flag and then getting it setup with older version of ffmpeg, but with the latest 0.10 Freedom version, it does not work. I get no errors either, it just does not get picked up by php for some reason. PHP version is either 5.2.17 or 5.3.x depending on the server. Thank you in advance From h.reindl at thelounge.net Sat Feb 11 23:15:42 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 11 Feb 2012 23:15:42 +0100 Subject: [FFmpeg-user] ffmpeg and ffmpeg-php cont In-Reply-To: <1328997417.54937.YahooMailNeo@web65409.mail.ac4.yahoo.com> References: <1328997417.54937.YahooMailNeo@web65409.mail.ac4.yahoo.com> Message-ID: <4F36E88E.4030009@thelounge.net> "ffmpeg-php" is dead since years and had never any write-capabilities there are no updates, this has never worked with PHP 5.3 PHP 5.2 is also dead so ffmpeg-php is dead and will never come back since the author himself has no longer need for it -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From cehoyos at ag.or.at Sun Feb 12 00:04:24 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sat, 11 Feb 2012 23:04:24 +0000 (UTC) Subject: [FFmpeg-user] Bad keyframes when encoding to the ogg container format References: Message-ID: Robert McIntyre mit.edu> writes: > Indeed, I tested the seeking on a longer file. > > ffmpeg still reports the keyframes as being bad for the shorter file, > but it is hard to see the seeking problems. Ok. > Here is the full image sequence and resultant ogg file I've been working with. > It is just a longer version of the short file that I posted, and was > generated with the same commands. Everything I've said about the > shorter file applies to this longer file. Sorry for not posting this > earlier. I can post the file generated by my ancient version of ffmpeg > if you want that as well. > Seeking in this file is obviously broken when I play it > with mplayer or ffplay. Which file do you mean? The same as above? > images: http://aurellem.org/out.tar.bz2 > > ogg file: http://aurellem.org/out-new-full.ogg I tested seeking in this file with ffplay and MPlayer: Both seek fine afaict (this did not work with older versions). Please try not to top-post here, Carl Eugen From yangacer at gmail.com Sun Feb 12 06:28:23 2012 From: yangacer at gmail.com (Acer Yang) Date: Sun, 12 Feb 2012 13:28:23 +0800 Subject: [FFmpeg-user] Use segment muxer and concat: protocol Message-ID: Hi, everyone. I try to segment a mp4 video into several fixed duration segments via command as follow: ./ffmpeg -i input.mp4 -c copy -map 0 -f segment -segment_time 20 test%d.m4v Output of ffmpeg is ffmpeg version N-37771-gfd0b8d5 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 12 2012 00:29:57 with gcc 4.2.1 20070719 [FreeBSD] configuration: --enable-muxer=webm --enable-muxer=mp4 --enable-muxer=flv --enable-muxer=h264 --enable-muxer=segment --enable-muxer=m4v --enable-demuxer=flv --enable-demuxer=h264 --enable-demuxer=m4v --enable-protocol=concat --enable-protocol=file --enable-protocol=pipe --disable-ffplay libavutil 51. 39.100 / 51. 39.100 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 [h264 @ 0x28b3c400] concealing 786 DC, 786 AC, 786 MV errors Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2011-11-15 02:01:31 Duration: 00:03:58.17, start: 0.000000, bitrate: 563 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 4301 kb/s, 29.97 fps, 29.97 tbr, 60k tbn, 59.94 tbc Metadata: creation_time : 1970-01-01 00:00:00 handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 151 kb/s Metadata: creation_time : 2011-11-15 02:01:32 handler_name : Output #0, segment, to 'test%d.m4v': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2011-11-15 02:01:31 encoder : Lavf54.0.100 Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080, q=2-31, 4301 kb/s, 29.97 fps, 30k tbn, 29.97 tbc Metadata: creation_time : 1970-01-01 00:00:00 handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 151 kb/s Metadata: creation_time : 2011-11-15 02:01:32 handler_name : Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help Truncating packet of size 19021 to 1920 Truncating packet of size 1308 to 1 frame= 977 fps= 0 q=-1.0 Lsize= 0kB time=00:00:32.59 bitrate= 0.0kbits/s video:15699kB audio:609kB global headers:0kB muxing overhead -100.000000% The ffmpeg splits the mp4 into test0.m4v and test1.m4v. Each segment can be played in flash player correctly. Then I try to merge/join these segments via command as follow: ./ffmpeg -i concat:"test0.m4v|test1.m4v" -c copy merge.m4v // ... [mov,mp4,m4a,3gp,3g2,mj2 @ 0x28b0c200] multiple edit list entries, a/v desync might occur, patch welcome Last message repeated 1 times [h264 @ 0x28b39400] concealing 786 DC, 786 AC, 786 MV errors [mov,mp4,m4a,3gp,3g2,mj2 @ 0x28b0c200] max_analyze_duration 5000000 reached at 5005118 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x28b0c200] decoding for stream 2 failed [mov,mp4,m4a,3gp,3g2,mj2 @ 0x28b0c200] Could not find codec parameters (Video: h264 (avc1 / 0x31637661), 5084 kb/s) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x28b0c200] decoding for stream 3 failed Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'concat:test0.m4v|test1.m4v': Metadata: compatible_brands: isomiso2avc1 major_brand : M4V minor_version : 512 encoder : Lavf54.0.100 Duration: 00:00:11.61, start: 0.000000, bitrate: 11527 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 3331 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 152 kb/s Metadata: handler_name : Stream #0:2(und): Video: h264 (avc1 / 0x31637661), 5084 kb/s, 29.97 fps, 30k tbr, 30k tbn, 60k tbc Metadata: handler_name : VideoHandler Stream #0:3(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 151 kb/s Metadata: handler_name : File 'merge.m4v' already exists. Overwrite ? [y/N] y Output #0, ipod, to 'merge.m4v': Metadata: compatible_brands: isomiso2avc1 major_brand : M4V minor_version : 512 encoder : Lavf54.0.100 Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080, q=2-31, 3331 kb/s, 29.97 fps, 30k tbn, 30k tbc Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 152 kb/s Metadata: handler_name : Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help frame= 635 fps= 0 q=-1.0 Lsize= 9030kB time=00:00:21.15 bitrate=3496.6kbits/s video:8617kB audio:394kB global headers:0kB muxing overhead 0.209243% However, the result video 'merge.m4v' only contains 'test0.m4v', i.e. the first video appears in the concat: protocol. Is there any workaround to solve this problem? Thank you in advance. --Acer From rlm at mit.edu Sun Feb 12 08:11:27 2012 From: rlm at mit.edu (Robert McIntyre) Date: Sun, 12 Feb 2012 00:11:27 -0700 Subject: [FFmpeg-user] Bad keyframes when encoding to the ogg container format In-Reply-To: References: Message-ID: >> Seeking in this file is obviously broken when I play it >> with mplayer or ffplay. >Which file do you mean? The same as above? I did mean the file out-new-full.ogg which you tested. My mplayer is version: MPlayer SVN-r34260-4.5.2 (C) 2000-2011 MPlayer Team and it doesn't seek correctly with out-new-full.ogg file. My current version of ffplay does seek correctly, but reports that out-new-full.ogg is broken and that the keyframes are bad. Does your ffplay also report anything about the keyframes? Even if a newer version of mplayer can handle the file, there still seems to be something wrong with the way ffmpeg is writing ogg files from a sequence of images, probably related to keyframes. sincerely, --Robert McIntyre From sjames at susanjamescompany.com Sun Feb 12 08:35:47 2012 From: sjames at susanjamescompany.com (sjames) Date: Sat, 11 Feb 2012 23:35:47 -0800 Subject: [FFmpeg-user] ffmpeg EOB marker Message-ID: <1C6BBFAD-C027-499B-B060-7CDCF54F3EE3@susanjamescompany.com> Hello, I'm new to the list and first time user of the ffmpeg. I'm using ffmpeg on MAC. I'm getting the EOB errors below on MAC and the encoding completes but has no video. The audio is perfect. =============== AC EOB marker is absent pos=80e= 21986kB time=00:01:18.41 bitrate=2296.9kbits/s [dvvideo @ 0x10181e800] AC EOB marker is absent pos=65 Last message repeated 1 times [dvvideo @ 0x10181e800] AC EOB marker is absent pos=64 ================ Here's my encoding string: ffmpeg -i 1.Chandi.HiRes -strict experimental -ab 320k -vol 1024 -vcodec libx264 -b 2000k 1.Chandi.HiRes-ff.mp4 I'm using the MAC 64 bit binary from http://ffmpegmac.net --------------------------------------------------------- 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: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --arch=x86_64 --enable-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 ----------------------------------------------------------- Can anyone help to resolve the EOB error so I can get the video to encode? any help is appreciated. Susan From cehoyos at ag.or.at Sun Feb 12 09:19:15 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 12 Feb 2012 08:19:15 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg EOB marker References: <1C6BBFAD-C027-499B-B060-7CDCF54F3EE3@susanjamescompany.com> Message-ID: sjames susanjamescompany.com> writes: > ffmpeg -i 1.Chandi.HiRes -strict experimental -ab 320k > -vol 1024 -vcodec libx264 -b 2000k 1.Chandi.HiRes-ff.mp4 Complete, uncut console output missing, and a sample may be needed. Carl Eugen From andrey.krieger.utkin at gmail.com Sun Feb 12 09:22:01 2012 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Sun, 12 Feb 2012 10:22:01 +0200 Subject: [FFmpeg-user] Use segment muxer and concat: protocol In-Reply-To: References: Message-ID: Hi. I'm not a top dev of ffmpeg, but i have the answer for you that it is not going to work. I'm also trying to merge different mp4 video pieces together, on API level, and didn't succeed yet. I questioned my trouble on maillists recently: http://ffmpeg.org/pipermail/libav-user/2012-February/001273.html http://lists.libav.org/pipermail/libav-api/2012-February/000388.html The fact is that 'concat' protocol joins data on protocol level, in case of local files that's almost what concatenation in command line with 'cat' command will happen. It works for e.g. mp3, but not for mp4. You (and me) need to join files on _packet_ or _frame_ level. It is possible then to try copying AVPackets from all files to the resulting file using libavformat API, but big chances are that this will fail, especially if files are from different origins. (Although i desperately need this to be sufficient in my case). Decoding and re-encoding with copying AVFrames from all files to resulting file, using avformat & avcodec API will surely succeed. I don't see such tool existing in ffmpeg kit yet, but it'll be not difficult to implement. It would be cleaner than advising to re-encode to mpeg1, concatenate files, and re-encode again to desired format (this ugly way is recommended by FAQ currently). -- Andrey Utkin From cehoyos at ag.or.at Sun Feb 12 09:20:46 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 12 Feb 2012 08:20:46 +0000 (UTC) Subject: [FFmpeg-user] Bad keyframes when encoding to the ogg container format References: Message-ID: Robert McIntyre mit.edu> writes: > MPlayer SVN-r34260-4.5.2 (C) 2000-2011 MPlayer Team > > and it doesn't seek correctly with out-new-full.ogg file. The changes that fix seeking are only a few days old, just update MPlayer. Carl Eugen From rlm at mit.edu Sun Feb 12 11:29:07 2012 From: rlm at mit.edu (Robert McIntyre) Date: Sun, 12 Feb 2012 03:29:07 -0700 Subject: [FFmpeg-user] Bad keyframes when encoding to the ogg container format In-Reply-To: References: Message-ID: But is the file produced by ffmpeg correct according to the ogg/theora spec? If so, then why do ffplay and ffmpeg claim that the file is "Broken"? Or is is the file not actually broken, and I should just ignore the error message from ffmpeg and ffplay? sincerely, --Robert McIntyre On Sun, Feb 12, 2012 at 1:20 AM, Carl Eugen Hoyos wrote: > Robert McIntyre mit.edu> writes: > >> MPlayer SVN-r34260-4.5.2 (C) 2000-2011 MPlayer Team >> >> and it doesn't seek correctly with out-new-full.ogg file. > > The changes that fix seeking are only a few days old, > just update MPlayer. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From rlm at mit.edu Sun Feb 12 11:31:38 2012 From: rlm at mit.edu (Robert McIntyre) Date: Sun, 12 Feb 2012 03:31:38 -0700 Subject: [FFmpeg-user] Bad keyframes when encoding to the ogg container format In-Reply-To: References: Message-ID: Also, sorry for top-posting, still new here. --Robert From de.techno at gmail.com Sun Feb 12 12:04:10 2012 From: de.techno at gmail.com (dE .) Date: Sun, 12 Feb 2012 16:34:10 +0530 Subject: [FFmpeg-user] Getting crazy with video conversion In-Reply-To: References: Message-ID: <4F379CAA.3060604@gmail.com> On 02/11/12 22:34, marcos rebelo wrote: > I got a video file like: > > > > FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.3, Copyright (c) 2000-2009 > Fabrice Bellard, et al. > configuration: --extra-version=4:0.5.1-1ubuntu1.3 --prefix=/usr > --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib > --enable-libgsm --enable-libschroedinger --enable-libspeex > --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib > --disable-stripping --disable-vhook --enable-runtime-cpudetect > --enable-gpl --enable-postproc --enable-swscale --enable-x11grab > --enable-libdc1394 --enable-shared --disable-static > libavutil 49.15. 0 / 49.15. 0 > libavcodec 52.20. 1 / 52.20. 1 > libavformat 52.31. 0 / 52.31. 0 > libavdevice 52. 1. 0 / 52. 1. 0 > libavfilter 0. 4. 0 / 0. 4. 0 > libswscale 0. 7. 1 / 0. 7. 1 > libpostproc 51. 2. 0 / 51. 2. 0 > built on Dec 21 2011 18:37:21, gcc: 4.4.3 > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x87e4a60]multiple edit list entries, a/v > desync might occur, patch welcome > > Seems stream 0 codec frame rate differs from container frame rate: > 47.95 (48000/1001) -> 23.98 (24000/1001) > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01 The Skank Reflex Analysis (HD).m4v': > Duration: 00:21:32.80, start: 0.000000, bitrate: 4412 kb/s > Stream #0.0(eng): Video: h264, yuv420p, 1280x720, PAR 1:1 DAR > 16:9, 23.98 tbr, 23.98 tbn, 47.95 tbc > Stream #0.1(rus): Audio: aac, 48000 Hz, stereo, s16 > Stream #0.2(eng): Audio: aac, 48000 Hz, stereo, s16 > Stream #0.3(rus): Subtitle: tx3g / 0x67337874, PAR 1:9 DAR 16:9 > Stream #0.4(eng): Subtitle: tx3g / 0x67337874, PAR 1:9 DAR 16:9 > At least one output file must be specified > > > > I would like to get this video in English with an acceptable video quality. > > > Can someone tell me how to do it with ffmpeg please? > > Best Regards > MArcos > > > > > This's a very legacy version, so I'm not sure if it'll work, try - ffmpeg -i -map 0:v:0 -map 0:a:1 From andrey.krieger.utkin at gmail.com Sun Feb 12 14:10:22 2012 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Sun, 12 Feb 2012 15:10:22 +0200 Subject: [FFmpeg-user] Use segment muxer and concat: protocol In-Reply-To: References: Message-ID: 2012/2/12 Acer Yang : > Is there any workaround to solve this problem? You can concatenate mp4 files using MP4Box tool from GPAC project. MP4Box -cat segment1.mp4 -cat segment2.mp4 out.mp4 -- Andrey Utkin From msmith at bitgravity.com Sun Feb 12 21:40:43 2012 From: msmith at bitgravity.com (Michael Smithng) Date: Sun, 12 Feb 2012 12:40:43 -0800 Subject: [FFmpeg-user] ffmpeg + rtsp results in log output not displaying frame size nor bitrate Message-ID: <3EB4DA80-9F61-4E8D-920B-967FBD5772EC@bitgravity.com> So after figuring out how to force ffmpeg to push rtsp over tcp (which wasn't clearly documented...), but now I'm noticing that the output log isn't showing frame size or bitrate deltas. frame=1221110 fps= 29 q=36.0 size= 0kB time=11:18:22.36 bitrate= 0.0kbits/s dup=1220 drop=0 frame=1221125 fps= 29 q=36.0 size= 0kB time=11:18:22.86 bitrate= 0.0kbits/s dup=1220 drop=0 frame=1221140 fps= 29 q=36.0 size= 0kB time=11:18:23.36 bitrate= 0.0kbits/s dup=1220 drop=0 frame=1221156 fps= 29 q=36.0 size= 0kB time=11:18:23.90 bitrate= 0.0kbits/s dup=1220 drop=0 frame=1221171 fps= 29 q=36.0 size= 0kB time=11:18:24.40 bitrate= 0.0kbits/s dup=1220 drop=0 Using the following command: ./ffmpeg -i $SOURCE -threads 2 -b:v 500k -bt 500k -deinterlace -r 30 -vcodec libx264 -b:a 64k -acodec libfaac -ar 44100 -s 720x480 -x264opts keyint=30:min-keyint=15 -f rtsp -rtsp_transport tcp -muxdelay 0.1 "rtsp://$USER%40$DOMAIN:$PASS at wowza.server.com/stream/path.sdp" 2> ./ffmpeg-log.out I get the following output: ffmpeg version 0.9.1, Copyright (c) 2000-2012 the FFmpeg developers built on Jan 9 2012 16:42:51 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3) configuration: --logfile=./config_64.log --disable-ffplay --enable-gpl --enable-nonfree --enable-libx264 --enable-libfaac --enable-libmp3lame --arch=x86_64 libavutil 51. 32. 0 / 51. 32. 0 libavcodec 53. 42. 4 / 53. 42. 4 libavformat 53. 24. 2 / 53. 24. 2 libavdevice 53. 4. 0 / 53. 4. 0 libavfilter 2. 53. 0 / 2. 53. 0 libswscale 2. 1. 0 / 2. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 [dv @ 0x10180e800] Estimating duration from bitrate, this may be inaccurate Input #0, dv, from '/var/run/raw.dv': Duration: N/A, start: 0.000000, bitrate: 28771 kb/s Stream #0:0: Video: dvvideo, yuv411p, 720x480, 28771 kb/s, SAR 32:27 DAR 16:9, 29.97 tbr, 29.97 tbn, 29.97 tbc Stream #0:1: Audio: pcm_s16le, 32000 Hz, 2 channels, s16, 1024 kb/s Stream #0:2: Audio: pcm_s16le, 32000 Hz, 2 channels, s16, 1024 kb/s Incompatible pixel format 'yuv411p' for codec 'libx264', auto-selecting format 'yuv422p' [buffer @ 0x101111d40] w:720 h:480 pixfmt:yuv411p tb:1/1000000 sar:32/27 sws_param: [buffersink @ 0x101112aa0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x101112d80] w:720 h:480 fmt:yuv411p -> w:720 h:480 fmt:yuv422p flags:0x4 [libx264 @ 0x10185e400] using SAR=32/27 [libx264 @ 0x10185e400] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0x10185e400] profile High 4:2:2, level 3.0, 4:2:2 8-bit [libx264 @ 0x10185e400] 264 - core 119 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=30 keyint_min=15 scenecut=40 intra_refresh=0 rc_lookahead=30 rc=abr mbtree=1 bitrate=250 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, rtsp, to 'rtsp://user%40name.com:password at wowza.server.com:1935/path/to/stream.sdp': Metadata: encoder : Lavf53.24.2 Stream #0:0: Video: h264, yuv422p, 720x480 [SAR 32:27 DAR 16:9], q=-1--1, 250 kb/s, 90k tbn, 30 tbc Stream #0:1: Audio: aac, 44100 Hz, 2 channels, s16, 64 kb/s Stream mapping: Stream #0:0 -> #0:0 (dvvideo -> libx264) Stream #0:1 -> #0:1 (pcm_s16le -> libfaac) Press [q] to stop, [?] for help frame=360449 fps= 30 q=34.0 size= 0kB time=03:20:13.66 bitrate= 0.0kbits/s dup=360 drop=0 [...] frame=1221110 fps= 29 q=36.0 size= 0kB time=11:18:22.36 bitrate= 0.0kbits/s dup=1220 drop=0 frame=1221125 fps= 29 q=36.0 size= 0kB time=11:18:22.86 bitrate= 0.0kbits/s dup=1220 drop=0 frame=1221140 fps= 29 q=36.0 size= 0kB time=11:18:23.36 bitrate= 0.0kbits/s dup=1220 drop=0 frame=1221156 fps= 29 q=36.0 size= 0kB time=11:18:23.90 bitrate= 0.0kbits/s dup=1220 drop=0 frame=1221171 fps= 29 q=36.0 size= 0kB time=11:18:24.40 bitrate= 0.0kbits/s dup=1220 drop=0 I'm pushing the output stream to wowza and this is working, but I'm concerned about this bitrate issue. I'm not entirely sure where else to look at the moment, but it would be nice to be able to see 'what' bitrate ffmpeg thinks it's encoding at while streaming. Thoughts? From cehoyos at ag.or.at Sun Feb 12 22:35:41 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 12 Feb 2012 21:35:41 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg + rtsp results in log output not displaying frame size nor bitrate References: <3EB4DA80-9F61-4E8D-920B-967FBD5772EC@bitgravity.com> Message-ID: Michael Smithng bitgravity.com> writes: > ffmpeg version 0.9.1, Copyright (c) 2000-2012 the FFmpeg developers Please note that this is not only old, but among the many fixed bugs are some that are security-relevant. I don't know if x264 allows to read current bitrate through API. Carl Eugen From cehoyos at ag.or.at Sun Feb 12 22:37:27 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 12 Feb 2012 21:37:27 +0000 (UTC) Subject: [FFmpeg-user] Bad keyframes when encoding to the ogg container format References: Message-ID: Robert McIntyre mit.edu> writes: > My current version of ffplay does seek correctly, but reports that > out-new-full.ogg is broken and that the keyframes are bad. Does your > ffplay also report anything about the keyframes? Yes. Reimar has fixed this, so if you re-encode your video, no more warnings should be shown anymore. Thank you for the report, Carl Eugen From sjames at susanjamescompany.com Sun Feb 12 23:26:11 2012 From: sjames at susanjamescompany.com (sjames) Date: Sun, 12 Feb 2012 14:26:11 -0800 Subject: [FFmpeg-user] ffmpeg EOB marker In-Reply-To: References: <1C6BBFAD-C027-499B-B060-7CDCF54F3EE3@susanjamescompany.com> Message-ID: <6C3BC00C-03D8-4783-B299-1820F979E4E3@susanjamescompany.com> On Feb 12, 2012, at 12:19 AM, Carl Eugen Hoyos wrote: > sjames susanjamescompany.com> writes: > >> ffmpeg -i 1.Chandi.HiRes -strict experimental -ab 320k >> -vol 1024 -vcodec libx264 -b 2000k 1.Chandi.HiRes-ff.mp4 > > Complete, uncut console output missing, and a sample > may be needed. > > I've attached a file with the complete output including the ffmpeg command string. If anyone wants to take a look at the output file (no video came through), it's 989MB. I can upload it to dropbox or any other shared web space. Note, I encoded a small sample, 45 sec, of this file and ffmpeg worked well. It's when I encode 13G video files and the "AC EOB marker absent" message displays. We used the ffmpeg MAC 64 bit binary for Lion from http://ffmpegmac.net any help is greatly appreciated. We are trying to use this ffmpeg to increase the audio gain on our H264 videos and encode them to mpeg4. The problem again is that we are getting the 'EOB marker absent' on large videos and no video comes through on the output encoding. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From msmith at bitgravity.com Sun Feb 12 23:32:59 2012 From: msmith at bitgravity.com (Michael Smithng) Date: Sun, 12 Feb 2012 14:32:59 -0800 Subject: [FFmpeg-user] ffmpeg + rtsp results in log output not displaying frame size nor bitrate In-Reply-To: References: <3EB4DA80-9F61-4E8D-920B-967FBD5772EC@bitgravity.com> Message-ID: <546729E1-3461-47A4-A48B-7E0B88AA3041@bitgravity.com> Carl, Had I known there was a newer release, I would have been more than happy to have tried it first. I'll certainly cut a version with that in mind. I suspect it will be the same result. However, that having been said... I've been able to read bitrate in the output log for as long as I can remember... it's just in this particular instance (rtsp) that I'm seeing this issue. I can flip over to output rtmp and observe bitrate and frame-size without fail. Any input on this without updating to .10? I've had a peek at the change log and didn't see much that could be related to my particular issue. On Feb 12, 2012, at 1:35 PM, Carl Eugen Hoyos wrote: > Michael Smithng bitgravity.com> writes: > >> ffmpeg version 0.9.1, Copyright (c) 2000-2012 the FFmpeg developers > > Please note that this is not only old, but among the many > fixed bugs are some that are security-relevant. > > I don't know if x264 allows to read current bitrate through API. > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From cehoyos at ag.or.at Mon Feb 13 00:13:14 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 12 Feb 2012 23:13:14 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg EOB marker References: <1C6BBFAD-C027-499B-B060-7CDCF54F3EE3@susanjamescompany.com> <6C3BC00C-03D8-4783-B299-1820F979E4E3@susanjamescompany.com> Message-ID: sjames susanjamescompany.com> writes: > The problem again is that we are getting the 'EOB marker absent' > on large videos and no video comes through on the output encoding. Command line together with omplete, uncut console output missing, and a sample may be needed. Carl Eugen From cehoyos at ag.or.at Mon Feb 13 00:15:58 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Sun, 12 Feb 2012 23:15:58 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg + rtsp results in log output not displaying frame size nor bitrate References: <3EB4DA80-9F61-4E8D-920B-967FBD5772EC@bitgravity.com> <546729E1-3461-47A4-A48B-7E0B88AA3041@bitgravity.com> Message-ID: Michael Smithng bitgravity.com> writes: > Had I known there was a newer release, I would have been > more than happy to have tried it first. If you are a FFmpeg user, please always use git head, it contains more features and less bugs than any release. See http://ffmpeg.org/download.html (Sorry about my other comment, I misread the output.) Carl Eugen From rlm at mit.edu Mon Feb 13 01:04:10 2012 From: rlm at mit.edu (Robert McIntyre) Date: Sun, 12 Feb 2012 17:04:10 -0700 Subject: [FFmpeg-user] Bad keyframes when encoding to the ogg container format In-Reply-To: References: Message-ID: I updated to the latest version of ffmpeg and re-encoded my video, but I still get the error message "[ogg @ 0x121f2a0] Broken file, keyframes not correctly marked." [~/proj/cortex/render] $ ffmpeg -r 25 -i test-pics/%07d.png -b:v 9000k -vcodec libtheora out-37806.ogg ffmpeg version N-37806-gf51a072 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 13 2012 00:32:35 with gcc 4.5.2 configuration: --prefix=/usr --mandir=/usr/man --enable-x11grab --enable-gpl --enable-shared --disable-static --enable-gray --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264 --enable-gnutls --enable-bzlib --enable-libmp3lame --enable-pic --disable-stripping libavutil 51. 39.100 / 51. 39.100 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, image2, from 'test-pics/%07d.png': Duration: 00:00:02.00, start: 0.000000, bitrate: N/A Stream #0:0: Video: png, pal8, 1280x550, 25 fps, 25 tbr, 25 tbn, 25 tbc Incompatible pixel format 'pal8' for codec 'libtheora', auto-selecting format 'yuv 420p' [buffer @ 0x1cf4540] w:1280 h:550 pixfmt:pal8 tb:1/1000000 sar:0/1 sws_param: [buffersink @ 0x1ced6e0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x1d04100] w:1280 h:550 fmt:pal8 -> w:1280 h:550 fmt:yuv420p flags:0x4 Output #0, ogg, to 'out-37806.ogg': Metadata: encoder : Lavf54.0.100 Stream #0:0: Video: theora, yuv420p, 1280x550, q=2-31, 9000 kb/s, 25 tbn, 25 t bc Stream mapping: Stream #0:0 -> #0:0 (png -> libtheora) Press [q] to stop, [?] for help frame= 14 fps= 0 q=0.0 size= 29kB time=00:00:00.52 bitrate= 462.4kbits/s Buffer video input changed from size:1280x550 fmt:pal8 to size:1280x550 fmt:rgba [scale @ 0x1d04100] w:1280 h:550 fmt:rgba -> w:1280 h:550 fmt:yuv420p flags:0x2 frame= 26 fps= 26 q=0.0 size= 57kB time=00:00:01.04 bitrate= 448.5kbits/s frame= 38 fps= 25 q=0.0 size= 82kB time=00:00:01.52 bitrate= 443.1kbits/s frame= 49 fps= 24 q=0.0 size= 193kB time=00:00:01.96 bitrate= 804.8kbits/s frame= 50 fps= 24 q=0.0 Lsize= 228kB time=00:00:02.00 bitrate= 935.5kbits/s video:224kB audio:0kB global headers:3kB muxing overhead 0.608261% [~/proj/cortex/render] $ ffplay out-37806.ogg ffplay version N-37806-gf51a072 Copyright (c) 2003-2012 the FFmpeg developers built on Feb 13 2012 00:32:35 with gcc 4.5.2 configuration: --prefix=/usr --mandir=/usr/man --enable-x11grab --enable-gpl --enable-shared --disable-static --enable-gray --enable-libtheora --enable-libvorbis --enable-libxvid --enable-libx264 --enable-gnutls --enable-bzlib --enable-libmp3lame --enable-pic --disable-stripping libavutil 51. 39.100 / 51. 39.100 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 [ogg @ 0x121f2a0] Broken file, keyframes not correctly marked. Input #0, ogg, from 'out-37806.ogg': Duration: 00:00:02.00, start: 0.000000, bitrate: 935 kb/s Stream #0:0: Video: theora, yuv420p, 1280x550 [SAR 1:1 DAR 128:55], 25 tbr, 25 tbn, 25 tbc [ogg @ 0x121f2a0] Broken file, keyframes not correctly marked.0/0 0/0 3.44 A-V: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0 this is using the test-images at: http://aurellem.org/test-pics.tar.bz2 the encoded video is here: http://aurellem.org/out-37806.ogg (this is a 2 second video again, just to show that the error message is still there) Should I still be seeing the message "[ogg @ 0x121f2a0] Broken file, keyframes not correctly marked." using the latest ffmpeg? sincerely, --Robert McIntyre From stas.oskin at gmail.com Mon Feb 13 01:21:59 2012 From: stas.oskin at gmail.com (Stas Oskin) Date: Mon, 13 Feb 2012 02:21:59 +0200 Subject: [FFmpeg-user] Recommended x.264 preset for live x.264 encoding In-Reply-To: <4F27AC7E.4040301@gmail.com> References: <4F268796.4040201@gmail.com> <4F27AC7E.4040301@gmail.com> Message-ID: Hi. ultrafast is the fastest. >>> >>> >> Thanks, but this one seems to create High profile type, not play-able on >> mobiles. >> >> A lot of mobile devices have a limit to the bitrate of the video they can > play. Ultrafast give minimal compression but high bitrate but also requires > less processing power to decode. > > Using ultrafast, you can reduce the quality using qp=, reducing > resolution matters more to reduce the bitrate. > > Another alternative, you may use superfast, fast etc... > > Thanks for the advice, I would love to give it a try, but it seems that after recent clean-up there are no longer such presets available in tree. Rather there are new preset format now in the "preset" tree. So is it safe to use "old" presets, or anything new can be suggested? Thanks again. From kennethjjgibson at gmail.com Mon Feb 13 05:52:31 2012 From: kennethjjgibson at gmail.com (killkenny64) Date: Sun, 12 Feb 2012 20:52:31 -0800 (PST) Subject: [FFmpeg-user] Write audio frames without decoding/encoding Message-ID: <1329108751315-4382904.post@n4.nabble.com> Hi, I'm using FFmpeg programmatically in C. I currently take a .mp4 file, get the video frames, alter them, and save them to a new .mp4 file. I would like to add the audio from the original .mp4 into the new one, unmodified. Is it possible to read an audio packet and then just place that packet into a new file without having to decode/re-encode it? Can I just take the raw data from the AVPacket (the samples?) and write them to my new file? I'm having difficulties getting this to work, so I was wondering if it is possible. Any help is much appreciated, thanks. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Write-audio-frames-without-decoding-encoding-tp4382904p4382904.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From yangacer at gmail.com Mon Feb 13 07:22:04 2012 From: yangacer at gmail.com (Acer Yang) Date: Mon, 13 Feb 2012 14:22:04 +0800 Subject: [FFmpeg-user] Use segment muxer and concat: protocol In-Reply-To: References: Message-ID: On Sun, Feb 12, 2012 at 9:10 PM, Andrey Utkin < andrey.krieger.utkin at gmail.com> wrote: > 2012/2/12 Acer Yang : > > Is there any workaround to solve this problem? > > You can concatenate mp4 files using MP4Box tool from GPAC project. > MP4Box -cat segment1.mp4 -cat segment2.mp4 out.mp4 > > -- > Andrey Utkin > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > I've tested the mp4box tool, it worked well. Further, it rotated moov atom(box) automatically and just matched my needs. PS. I also tried to extract sub clip from on-joining input. That was mp4box -cat 1.m4v -cat 2.m4v -splitx x:-1 output.m4v It worked. -- Best wishes, Acer. From bostjan.strojan at gmail.com Mon Feb 13 11:47:29 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Mon, 13 Feb 2012 11:47:29 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: <1328995825229-4379972.post@n4.nabble.com> References: <1328962103285-4378786.post@n4.nabble.com> <1328995825229-4379972.post@n4.nabble.com> Message-ID: On Sat, Feb 11, 2012 at 10:30 PM, Tomas Sinkunas wrote: > Still appreciate your time. If you have any other suggestions I'd be more > then happy to hear you out. you should provide full, uncut console output. b. From andrey.krieger.utkin at gmail.com Mon Feb 13 12:05:49 2012 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Mon, 13 Feb 2012 13:05:49 +0200 Subject: [FFmpeg-user] Write audio frames without decoding/encoding In-Reply-To: <1329108751315-4382904.post@n4.nabble.com> References: <1329108751315-4382904.post@n4.nabble.com> Message-ID: 2012/2/13 killkenny64 : > Is it possible to read an audio packet and then just place that packet into > a new file without having to decode/re-encode it? Yes. Shortly, you can av_write_frame() the AVPacket you've just got from av_read_frame(). You can look at my code as example. https://github.com/krieger-od/imgs2video/blob/master/cat.c -- Andrey Utkin From de.techno at gmail.com Mon Feb 13 13:31:21 2012 From: de.techno at gmail.com (dE .) Date: Mon, 13 Feb 2012 18:01:21 +0530 Subject: [FFmpeg-user] Recommended x.264 preset for live x.264 encoding In-Reply-To: References: <4F268796.4040201@gmail.com> <4F27AC7E.4040301@gmail.com> Message-ID: <4F390299.1050906@gmail.com> On 02/13/12 05:51, Stas Oskin wrote: > Hi. > > ultrafast is the fastest. >>>> >>> Thanks, but this one seems to create High profile type, not play-able on >>> mobiles. >>> >>> A lot of mobile devices have a limit to the bitrate of the video they can >> play. Ultrafast give minimal compression but high bitrate but also requires >> less processing power to decode. >> >> Using ultrafast, you can reduce the quality using qp=, reducing >> resolution matters more to reduce the bitrate. >> >> Another alternative, you may use superfast, fast etc... >> >> > Thanks for the advice, I would love to give it a try, but it seems that > after recent clean-up there are no longer such presets available in tree. > Rather there are new preset format now in the "preset" tree. > > So is it safe to use "old" presets, or anything new can be suggested? > > Thanks again. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Did you just compile from GIT? My version was Jan 5 2012, I'll recompile and test. From tevans.uk at googlemail.com Mon Feb 13 13:57:22 2012 From: tevans.uk at googlemail.com (Tom Evans) Date: Mon, 13 Feb 2012 12:57:22 +0000 Subject: [FFmpeg-user] Recommended x.264 preset for live x.264 encoding In-Reply-To: References: <4F268796.4040201@gmail.com> <4F27AC7E.4040301@gmail.com> Message-ID: On Mon, Feb 13, 2012 at 12:21 AM, Stas Oskin wrote: > Thanks for the advice, I would love to give it a try, but it seems that > after recent clean-up there are no longer such presets available in tree. > Rather there are new preset format now in the "preset" tree. > > So is it safe to use "old" presets, or anything new can be suggested? > In fact, the new preset system is even easier to use than before, as it simply presents the options from x264. You can use -profile:v , -preset:v , -tune:v , -level and -x264opts crf=NN to control most aspects of encoding. Eg, if you want a video at Main at L3.1, then you can use this: ffmpeg -i input -c:v libx264 -profile:v main -preset:v fast -level 3.1 If that is too slow, you can go faster with the preset. If you want to improve the quality of the encode, or reduce the bitrate of the encode, you can lower or higher the crf. A lower crf will give higher quality, at a higher bitrate, and a higher crf will give you lower quality, at a lower bitrate. ffmpeg -i input -c:v libx264 -profile:v main -preset:v fast -level 3.1 -x264opts crf=18 The faster the preset you use, the less efficient the encoding is, ie it will use a higher bitrate to achieve the same quality. To see all the profile, presets and tunings available from x264, run x264 --full-help. Cheers Tom From tevans.uk at googlemail.com Mon Feb 13 13:58:16 2012 From: tevans.uk at googlemail.com (Tom Evans) Date: Mon, 13 Feb 2012 12:58:16 +0000 Subject: [FFmpeg-user] Recommended x.264 preset for live x.264 encoding In-Reply-To: References: <4F268796.4040201@gmail.com> <4F27AC7E.4040301@gmail.com> Message-ID: On Mon, Feb 13, 2012 at 12:57 PM, Tom Evans wrote: > To see all the profile, presets and tunings available from x264, run > x264 --full-help. x264 --fullhelp gah :/ Cheers Tom From Tomas at rendertom.com Mon Feb 13 14:16:34 2012 From: Tomas at rendertom.com (Tomas Sinkunas) Date: Mon, 13 Feb 2012 05:16:34 -0800 (PST) Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: References: <1328962103285-4378786.post@n4.nabble.com> <1328995825229-4379972.post@n4.nabble.com> Message-ID: <1329138994863-4383712.post@n4.nabble.com> I am afraid that this is all info from console. I don't think I cut something out. Will check it later when be at my workstation. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4383712.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From nichot20 at yahoo.com Mon Feb 13 18:10:31 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Mon, 13 Feb 2012 17:10:31 +0000 Subject: [FFmpeg-user] ffmpeg/libx264 thread management In-Reply-To: <4F39415F.4050006@bbc.co.uk> References: <4F363D0B.7000808@gmail.com> <4F39415F.4050006@bbc.co.uk> Message-ID: <4F394407.40406@yahoo.com> > On 02/11/12 00:05, Jonathan Isom wrote: >> On Fri, Feb 10, 2012 at 10:45 AM, dE . wrote: >>> On 02/10/12 20:26, Michael Smithng wrote: >>>> Now that all of 'that's' out of the way dot dot dot >>>> >>>> Does anyone have any input on the actual question? >>>> >>>> On Feb 9, 2012, at 6:26 AM, John Dexter wrote: >>>> >>>>>> First remove your signature and re-post the question. >>>>>> Curious how one automated tag that is added after an email has been posted should cause such ire, when unnecessary multiple repeated quoting of another does not... >>>>>> This's a public mailing list. >>>>> Kind of immature to insist someone re-posts. It's not a school >>>>> playground. If the nonsense in the signature held any legal power >>>>> you'd already be caught even if he re-posted :) >>>>> >>>>> Tim maybe you'll have to post from your personal email if BBC is as >>>>> super-anal over this stuff as I hear! >>>>> _______________________________________________ >>>>> ffmpeg-user mailing list >>>>> ffmpeg-user at ffmpeg.org >>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>>> _______________________________________________ >>>> ffmpeg-user mailing list >>>> ffmpeg-user at ffmpeg.org >>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>> >>> You're the same guy? >> Does it really matter who asked. I would like to know as well about >> to the original question. >> >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > Nice shouldn't matter if your system is not busy, also when encoding > using x264, I don't see children of ffmpeg, but a single process; so I'm > not sure what you mean. Well if you use htop in tree mode you may see what is meant.... > > If you want to force priority, you may use nice, renice. Except that it makes no difference in this instance.... -- Tim From Tomas at rendertom.com Mon Feb 13 19:11:02 2012 From: Tomas at rendertom.com (Tomas Sinkunas) Date: Mon, 13 Feb 2012 10:11:02 -0800 (PST) Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: <1329138994863-4383712.post@n4.nabble.com> References: <1328962103285-4378786.post@n4.nabble.com> <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> Message-ID: <1329156662956-4384678.post@n4.nabble.com> OK, so I've tried it again. Here's full console window report: Last login: Mon Feb 13 19:50:33 on console Tomas-Sinkunass-iMac:~ Tomas$ cd ~ Tomas-Sinkunass-iMac:~ Tomas$ cd ffmpeg Tomas-Sinkunass-iMac:ffmpeg Tomas$ cd ffmpeg Tomas-Sinkunass-iMac:ffmpeg Tomas$ ffmpeg -i /_in.mov -vcodec prores -profile 2 -aspect 16:9 -s 1024x576 -an /_out.mov ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 12 2012 18:20:43 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3) configuration: --enable-libmp3lame --enable-shared --disable-mmx --arch=x86_64 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/_in.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2012-02-13 17:57:19 Duration: 00:00:02.66, start: -9.259259, bitrate: 8490 kb/s Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1036 [SAR 1:1 DAR 480:259], 6956 kb/s, 23.98 fps, 23.98 tbr, 2997 tbn, 5994 tbc Metadata: creation_time : 2012-02-13 17:57:19 handler_name : ?Apple Alias Data Handler Stream #0:1(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2012-02-13 17:57:19 handler_name : ?Apple Alias Data Handler timecode : 01:01:00:09 Stream #0:2(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 318 kb/s Metadata: creation_time : 2012-02-13 17:57:19 handler_name : ?Apple Alias Data Handler Incompatible pixel format 'yuv420p' for codec 'prores', auto-selecting format 'yuv422p10le' [buffer @ 0x100f12b10] w:1920 h:1036 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: [scale @ 0x100f19180] w:1920 h:1036 fmt:yuv420p -> w:1024 h:576 fmt:yuv422p10le flags:0x4 Output #0, mov, to '/_out.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2012-02-13 17:57:19 encoder : Lavf53.31.100 Stream #0:0(eng): Video: prores (apcn) (apcn / 0x6E637061), yuv422p10le, 1024x576 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 2997 tbn, 23.98 tbc Metadata: creation_time : 2012-02-13 17:57:19 handler_name : ?Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (h264 -> prores) Press [q] to stop, [?] for help frame= 213 fps= 26 q=0.0 size= 52923kB time=00:00:08.88 bitrate=48801.4kbits/frame= 222 fps= 26 q=0.0 size= 55174kB time=00:00:09.25 bitrate=48814.2kbits/frame= 235 fps= 26 q=0.0 size= 56613kB time=00:00:09.80 bitrate=47317.0kbits/frame= 247 fps= 26 q=0.0 size= 58013kB time=00:00:10.30 bitrate=46130.8kbits/frame= 260 fps= 26 q=0.0 size= 59493kB time=00:00:10.84 bitrate=44942.4kbits/frame= 273 fps= 25 q=0.0 size= 60978kB time=00:00:11.38 bitrate=43871.0kbits/frame= 287 fps= 25 q=0.0 Lsize= 62587kB time=00:00:11.97 bitrate=42832.3kbits/s dup=212 drop=0 video:62585kB audio:0kB global headers:0kB muxing overhead 0.003358% Tomas-Sinkunass-iMac:ffmpeg Tomas$ ///////////////// If that helps, I am using FFmpeg version 0.10 I've downloaded from ffmpeg.org. My XCode version is 3.2.6 64-bit. And Im on iMac i7 with OSX 10.6.8 I've also uploaded short file I am using to convert: www.rendertom.com/downloads/_in.zip And the output file is here: www.rendertom.com/downloads/_out.zip The code in terminal is this: ffmpeg -i /_in.mov -vcodec prores -profile 2 -aspect 16:9 -s 1024x576 -an /_out.mov I've done this conversion on two different machines with same results. So either it's me doing something completely wrong or there's some kind of a bug in ffmpeg. And again main problem is that the output file is NOT REALLY a prorez file. Because if I add it to FCP timeline it plays back OK with no problem, but if I do export with "make self contained" disabled - it exports full file, that takes as much space as exported from ffmpeg. And also native prorez files are fine with Cinema Tools - I mean I can confirm them to any FPS I need, but the ffmpeg output file is not good - Cinema Tools wont allow confirming it. Please, if you have like three minutes, would you mind running my file to prorez and then send me the output? Or maybe you could check it yourself? Thank you. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4384678.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lou at lrcd.com Mon Feb 13 19:31:16 2012 From: lou at lrcd.com (Lou) Date: Mon, 13 Feb 2012 09:31:16 -0900 Subject: [FFmpeg-user] how to remove installed version and how to install another version of ffmpeg on centos In-Reply-To: References: Message-ID: <20120213093116.5c6cd949@lrcd.com> On Sat, 11 Feb 2012 11:07:31 +0530 puja singh wrote: > hello all > i'm trying to update ffmpeg on centos ...i don't know where is ffmpeg > -source folder.. > plss see the log and guide me . > > thanx See "Compile FFmpeg on CentOS 6.0": http://ffmpeg.org/trac/ffmpeg/wiki/CentosCompilationGuide From bostjan.strojan at gmail.com Mon Feb 13 20:26:55 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Mon, 13 Feb 2012 20:26:55 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: <1329156662956-4384678.post@n4.nabble.com> References: <1328962103285-4378786.post@n4.nabble.com> <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> Message-ID: On Mon, Feb 13, 2012 at 7:11 PM, Tomas Sinkunas wrote: > Please, if you have like three minutes, would you mind running my file to > prorez and then send me the output? Or maybe you could check it yourself? i did ./mp4box -isma ./_in.mov prior to feeding that to ffmpeg and i got quicktime playable prores stream, so maybe one step closer. b. p.s. ./mp4box -version MP4Box - GPAC version 0.4.6-DEV (internal rev. 5) GPAC Copyright: (c) Jean Le Feuvre 2000-2005 (c) ENST 2005-200X GPAC Configuration: Features: GPAC_HAS_SSL From bostjan.strojan at gmail.com Mon Feb 13 20:31:30 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Mon, 13 Feb 2012 20:31:30 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: References: <1328962103285-4378786.post@n4.nabble.com> <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> Message-ID: 2012/2/13 Bo?tjan Strojan : > On Mon, Feb 13, 2012 at 7:11 PM, Tomas Sinkunas wrote: > >> Please, if you have like three minutes, would you mind running my file to >> prorez and then send me the output? Or maybe you could check it yourself? > > i did > ./mp4box -isma ./_in.mov > prior to feeding that to ffmpeg and i got quicktime playable prores > stream, so maybe one step closer. p.s.2. here is the binary http://penguintool.blogspot.com/ (only tested on Lion, but i think that is universal compile) b. From Tomas at rendertom.com Mon Feb 13 20:48:36 2012 From: Tomas at rendertom.com (Tomas Sinkunas) Date: Mon, 13 Feb 2012 11:48:36 -0800 (PST) Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: References: <1328962103285-4378786.post@n4.nabble.com> <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> Message-ID: <1329162516182-4385036.post@n4.nabble.com> Sorry, I lost you with "./mp4box -isma ./_in.mov " What is it? How should I use it? Will download your binary to test out the result. By the way, could you please upload also the output prores file you are getting? I'd like to take a look at it as well please. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4385036.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From Tomas at rendertom.com Mon Feb 13 20:56:22 2012 From: Tomas at rendertom.com (Tomas Sinkunas) Date: Mon, 13 Feb 2012 11:56:22 -0800 (PST) Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: <1329162516182-4385036.post@n4.nabble.com> References: <1328962103285-4378786.post@n4.nabble.com> <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> Message-ID: <1329162982842-4385057.post@n4.nabble.com> Sorry, what should I be looking for on this site? http://penguintool.blogspot.com/ ? I am not sure. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4385057.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From andreas.gumm at gmx.de Mon Feb 13 21:08:52 2012 From: andreas.gumm at gmx.de (Andreas Gumm) Date: Mon, 13 Feb 2012 21:08:52 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: <4F396D72.5020602@googlemail.com> References: <1328962103285-4378786.post@n4.nabble.com> <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <4F396D72.5020602@googlemail.com> Message-ID: <4F396DD4.6000402@gmx.de> Sorry for jumping in to your discussion! FCP complains all ProRes files on import if these has been created with ffmpeg or ffmbc! I don't know what FCP does missing, but it has nothing to do with the codec for itself or contained audio streams. Maybe it depends on missing header data or gamma values! Normally FCP can deal with it, but smart rendering is not possible since the file is not flagged by FCP! Cheers Andreas Am 13.02.2012 20:48, schrieb Tomas Sinkunas: > Sorry, I lost you with "./mp4box -isma ./_in.mov " > What is it? How should I use it? > > Will download your binary to test out the result. By the way, could you > please upload also the output prores file you are getting? I'd like to > take > a look at it as well please. > > -- > View this message in context: > http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4385036.html > > Sent from the FFmpeg-users mailing list archive at Nabble.com. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > Am 13.02.2012 20:48, schrieb Tomas Sinkunas: >> Sorry, I lost you with "./mp4box -isma ./_in.mov " >> What is it? How should I use it? >> >> Will download your binary to test out the result. By the way, could you >> please upload also the output prores file you are getting? I'd like >> to take >> a look at it as well please. >> >> -- >> View this message in context: >> http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4385036.html >> Sent from the FFmpeg-users mailing list archive at Nabble.com. >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From Tomas at rendertom.com Mon Feb 13 21:24:27 2012 From: Tomas at rendertom.com (Tomas Sinkunas) Date: Mon, 13 Feb 2012 12:24:27 -0800 (PST) Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: <4F396DD4.6000402@gmx.de> References: <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <4F396DD4.6000402@gmx.de> Message-ID: <1329164667855-4385160.post@n4.nabble.com> >>FCP complains all ProRes files on import if these has been created with >>ffmpeg or ffmbc! Exactly, that's my point. I mean yeah, probably the output prores files from ffmpeg are ok, but not THAT OK so FCP can deal deal with them. So maybe there's a workaround or some fix to get it to work? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4385160.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From fencingleo at gmail.com Mon Feb 13 21:26:05 2012 From: fencingleo at gmail.com (Leo) Date: Mon, 13 Feb 2012 12:26:05 -0800 Subject: [FFmpeg-user] dvbsub problem In-Reply-To: References: <1328781518326-4372353.post@n4.nabble.com> <4F33A135.9060509@statsbiblioteket.dk> <4F33A3F6.4070405@statsbiblioteket.dk> Message-ID: On Thu, Feb 9, 2012 at 3:25 AM, Carl Eugen Hoyos wrote: > Colin Rosenthal statsbiblioteket.dk> writes: > > > > Please provide command line and complete, uncut console output > > > (and explain - again - what is wrong with the output file). > > > > Are email attachments ok or would you prefer the output posted > > in directly? > > We don't want to overburden our users, I found a sample and > tested myself. > > The problem is probably related to ticket #531, -copyinkf does not > work anymore (and only allowed to copy only subs anyway), feel free > to add yourself to CC there (or find out how to force keyframes for > subtitle streams). > > Not sure if my problem is at all related to Colin's problem since I don't know all the details or different kinds of subtitling in dvb, but recently I found patches that solved my problem. The patches were originally discussed on the ffmpeg-devel mailing list on the same day I posted my questions! It was proposed by Tomas H?rdin and included several iteration of patches. But it never got committed and the ffmpeg.org pipermail deleted the attachments in the message. Took me a bit of searching and I finally found the two patches that were included in his discussion. I will include them here and hopefully this can help with your issue. I modified the patches so that it would work on my version of the source 0.8.4. You may still need to modify them to get it compiled. I also needed to modify the Makefile. Leo -------------- next part -------------- A non-text attachment was scrubbed... Name: dvbsub_option_4_2.patch Type: application/octet-stream Size: 9151 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: intra_only_subs.patch Type: application/octet-stream Size: 547 bytes Desc: not available URL: From bostjan.strojan at gmail.com Mon Feb 13 22:01:02 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Mon, 13 Feb 2012 22:01:02 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: <1329162982842-4385057.post@n4.nabble.com> References: <1328962103285-4378786.post@n4.nabble.com> <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <1329162982842-4385057.post@n4.nabble.com> Message-ID: On Mon, Feb 13, 2012 at 8:56 PM, Tomas Sinkunas wrote: > Sorry, what should I be looking for on this site? > http://penguintool.blogspot.com/ ? I am not sure. mp4box binary (Pre-Compiled MP4Box (Mar 30, 2010)) b. From bostjan.strojan at gmail.com Mon Feb 13 22:08:44 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Mon, 13 Feb 2012 22:08:44 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: References: <1328962103285-4378786.post@n4.nabble.com> <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <1329162982842-4385057.post@n4.nabble.com> Message-ID: anyway, here is my prores "encode" http://kravca.69.mu/deleteme/ b. From Tomas at rendertom.com Mon Feb 13 22:10:53 2012 From: Tomas at rendertom.com (Tomas Sinkunas) Date: Mon, 13 Feb 2012 13:10:53 -0800 (PST) Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: References: <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <1329162982842-4385057.post@n4.nabble.com> Message-ID: <1329167453881-4385316.post@n4.nabble.com> As I said in my first post, I am a complete newby here. I downloaded that file you provided, run the _in.mov file and what? What should I get? I don't know what I am doing here:) -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4385316.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From darryl.lewis at unsw.edu.au Mon Feb 13 22:12:56 2012 From: darryl.lewis at unsw.edu.au (Darryl Lewis) Date: Mon, 13 Feb 2012 21:12:56 +0000 Subject: [FFmpeg-user] Problems building 0.10 In-Reply-To: Message-ID: Not sure if anyone else has experienced this, but I'm getting the following issue while trying to build 0.10 on OSX HTML doc/ffmpeg.html Unknown option: init-file Try 'texi2html -help' for usage instructions. make: *** [doc/ffmpeg.html] Error 2 I'm running the latest available version of texti2html, 1.64 From bostjan.strojan at gmail.com Mon Feb 13 22:15:09 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Mon, 13 Feb 2012 22:15:09 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: <1329167453881-4385316.post@n4.nabble.com> References: <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <1329162982842-4385057.post@n4.nabble.com> <1329167453881-4385316.post@n4.nabble.com> Message-ID: On Mon, Feb 13, 2012 at 10:10 PM, Tomas Sinkunas wrote: > As I said in my first post, I am a complete newby here. > I downloaded that file you provided, run the _in.mov file and what? What > should I get? > I don't know what I am doing here:) what i did: 1. mp4box -isma yourfile.mov (Do that on a copy of your material) 2. ffmpeg yourfile.mov outProres.mov and i get a healthy quicktime playback, i did not test any further. b. From Tomas at rendertom.com Mon Feb 13 22:18:30 2012 From: Tomas at rendertom.com (Tomas Sinkunas) Date: Mon, 13 Feb 2012 13:18:30 -0800 (PST) Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: <1329167453881-4385316.post@n4.nabble.com> References: <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <1329162982842-4385057.post@n4.nabble.com> <1329167453881-4385316.post@n4.nabble.com> Message-ID: <1329167910102-4385347.post@n4.nabble.com> Thanks man for helping me out. However, your file is the same as I produce - Cinema Tools won't accept it. Any ways, at least we tried. So I can be pretty sure now that that's a ffmpeg issue with prores codec. Well, let's hope something will be changed in next version of ffmpeg. Still, thank you helping me out. Appreciate that very much. Cheers. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMpeg-H-264-to-ProRez-tp4378786p4385347.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From bostjan.strojan at gmail.com Mon Feb 13 22:19:13 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Mon, 13 Feb 2012 22:19:13 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: References: <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <1329162982842-4385057.post@n4.nabble.com> <1329167453881-4385316.post@n4.nabble.com> Message-ID: 2012/2/13 Bo?tjan Strojan : > On Mon, Feb 13, 2012 at 10:10 PM, Tomas Sinkunas wrote: >> As I said in my first post, I am a complete newby here. p.s. I will be on irc.freenode.net #ffmpeg for the next N minutes, so maybe that would be a better way to solve this. b. From andreas.gumm at gmx.de Mon Feb 13 22:33:15 2012 From: andreas.gumm at gmx.de (Andreas Gumm) Date: Mon, 13 Feb 2012 22:33:15 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: References: <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <1329162982842-4385057.post@n4.nabble.com> <1329167453881-4385316.post@n4.nabble.com> Message-ID: <4F39819B.10704@gmx.de> Sadly, FCP is a bitch with attitudes! I didn't get any complaint with non-Apple software! It's a pitty that Apple is so closed with specs! Cheers Andreas Am 13.02.2012 22:19, schrieb Bo?tjan Strojan: > 2012/2/13 Bo?tjan Strojan: >> On Mon, Feb 13, 2012 at 10:10 PM, Tomas Sinkunas wrote: >>> As I said in my first post, I am a complete newby here. > p.s. I will be on irc.freenode.net #ffmpeg for the next N minutes, so > maybe that would be a better way to solve this. > > b. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From maxim.levkov at gmail.com Mon Feb 13 23:29:34 2012 From: maxim.levkov at gmail.com (Maxim Levkov) Date: Mon, 13 Feb 2012 14:29:34 -0800 Subject: [FFmpeg-user] Use segment muxer and concat: protocol In-Reply-To: References: Message-ID: @ Acer, The reason why your simple copy command for concatenation of video segments failed to produce continuous playback, but only of the first segment, is that all of the segments contain 'moov' atom box. Hence you need to remove all of them and recalculate a single 'moov' atom for the entire movie. Otherwise, you will end up having segments, but only the first segment will be seen as having 'moov' atom. Take a look at my paper on the topic, http://www.adobe.com/devnet/video/articles/mp4_movie_atom.html Regards, Maxim Levkov On Sun, Feb 12, 2012 at 10:22 PM, Acer Yang wrote: > On Sun, Feb 12, 2012 at 9:10 PM, Andrey Utkin < > andrey.krieger.utkin at gmail.com> wrote: > > > 2012/2/12 Acer Yang : > > > Is there any workaround to solve this problem? > > > > You can concatenate mp4 files using MP4Box tool from GPAC project. > > MP4Box -cat segment1.mp4 -cat segment2.mp4 out.mp4 > > > > -- > > Andrey Utkin > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > I've tested the mp4box tool, it worked well. Further, it rotated moov > atom(box) automatically and just matched my needs. > > PS. I also tried to extract sub clip from on-joining input. That was > > mp4box -cat 1.m4v -cat 2.m4v -splitx x:-1 output.m4v > > It worked. > > -- > Best wishes, > Acer. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From stas.oskin at gmail.com Mon Feb 13 23:43:22 2012 From: stas.oskin at gmail.com (Stas Oskin) Date: Tue, 14 Feb 2012 00:43:22 +0200 Subject: [FFmpeg-user] Recommended x.264 preset for live x.264 encoding In-Reply-To: <4F390299.1050906@gmail.com> References: <4F268796.4040201@gmail.com> <4F27AC7E.4040301@gmail.com> <4F390299.1050906@gmail.com> Message-ID: > Did you just compile from GIT? My version was Jan 5 2012, I'll recompile > and test. > > Yes, these are this month changes. From stas.oskin at gmail.com Mon Feb 13 23:43:45 2012 From: stas.oskin at gmail.com (Stas Oskin) Date: Tue, 14 Feb 2012 00:43:45 +0200 Subject: [FFmpeg-user] Recommended x.264 preset for live x.264 encoding In-Reply-To: References: <4F268796.4040201@gmail.com> <4F27AC7E.4040301@gmail.com> <4F390299.1050906@gmail.com> Message-ID: Sorry, I meant the last month. > > Did you just compile from GIT? My version was Jan 5 2012, I'll recompile >> and test. >> >> > Yes, these are this month changes. > From bostjan.strojan at gmail.com Mon Feb 13 23:44:56 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Mon, 13 Feb 2012 23:44:56 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: <4F39819B.10704@gmx.de> References: <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <1329162982842-4385057.post@n4.nabble.com> <1329167453881-4385316.post@n4.nabble.com> <4F39819B.10704@gmx.de> Message-ID: well, it appear as if: ffmpeg -r 25 -i in.file -o.file should assume fps to 25, but it isn't working, that would solve half the render time. b. uncut: ----------------- ffmpeg -r 25 -i '/Users/b/Downloads/_in 4.mov' -vf scale=720:576 -aspect 16:9 -pix_fmt yuv422p -vcodec prores -profile 3 -acodec pcm_s16le -async 150 -ar 48000 '/Users/b/Downloads/_in 4_.mov' ffmpeg version N-37510-g8c48652 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 2 2012 22:02:52 with clang 3.0 (tags/Apple/clang-211.12) configuration: --prefix=/Volumes/tempdisk/sw --enable-gpl --enable-libx264 --enable-libvpx --cc=clang --enable-runtime-cpudetect libavutil 51. 37.100 / 51. 37.100 libavcodec 54. 0.102 / 54. 0.102 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 61.100 / 2. 61.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 Option framerate not found. From stas.oskin at gmail.com Mon Feb 13 23:49:38 2012 From: stas.oskin at gmail.com (Stas Oskin) Date: Tue, 14 Feb 2012 00:49:38 +0200 Subject: [FFmpeg-user] Recommended x.264 preset for live x.264 encoding In-Reply-To: References: <4F268796.4040201@gmail.com> <4F27AC7E.4040301@gmail.com> Message-ID: Thanks, that seems very useful. So in order to encode live video for mobiles (iOS and Android), would the following settings suffice: ffmpeg -i input -c:libx264 -profile:baseline -preset:ultrafast -level 1.2 (from http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels) Thanks. In fact, the new preset system is even easier to use than before, as > it simply presents the options from x264. > > You can use -profile:v , -preset:v , > -tune:v , -level and -x264opts crf=NN to control most > aspects of encoding. > > Eg, if you want a video at Main at L3.1, then you can use this: > > ffmpeg -i input -c:v libx264 -profile:v main -preset:v fast -level 3.1 > > If that is too slow, you can go faster with the preset. > > If you want to improve the quality of the encode, or reduce the > bitrate of the encode, you can lower or higher the crf. A lower crf > will give higher quality, at a higher bitrate, and a higher crf will > give you lower quality, at a lower bitrate. > > ffmpeg -i input -c:v libx264 -profile:v main -preset:v fast -level 3.1 > -x264opts crf=18 > > The faster the preset you use, the less efficient the encoding is, ie > it will use a higher bitrate to achieve the same quality. > > To see all the profile, presets and tunings available from x264, run > x264 --full-help. > From cehoyos at ag.or.at Mon Feb 13 23:59:11 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Mon, 13 Feb 2012 22:59:11 +0000 (UTC) Subject: [FFmpeg-user] FFMpeg H.264 to ProRez References: <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <1329162982842-4385057.post@n4.nabble.com> <1329167453881-4385316.post@n4.nabble.com> <4F39819B.10704@gmx.de> Message-ID: Bo?tjan Strojan gmail.com> writes: > ffmpeg -r 25 -i in.file -o.file That will only work if in.file is rawvideo (which would require other options, so the command-line cannot work as-is). Carl Eugen From temak82 at yahoo.com Tue Feb 14 00:32:54 2012 From: temak82 at yahoo.com (Artyom Khmelnitsky) Date: Mon, 13 Feb 2012 15:32:54 -0800 (PST) Subject: [FFmpeg-user] ffmpeg and ffmpeg-php cont In-Reply-To: <4F36E88E.4030009@thelounge.net> References: <1328997417.54937.YahooMailNeo@web65409.mail.ac4.yahoo.com> <4F36E88E.4030009@thelounge.net> Message-ID: <1329175974.56176.YahooMailNeo@web65405.mail.ac4.yahoo.com> Yes, I am very familiar with ffmpeg-php being dead and that 5.2 is old as well. I was merely stating if anyone uses it with the latest version of ffmpeg, that's all. If not, what is the best way to compile php with ffmpeg support/module? Thank you for your help ________________________________ From: Reindl Harald To: ffmpeg-user at ffmpeg.org Sent: Saturday, February 11, 2012 5:15 PM Subject: Re: [FFmpeg-user] ffmpeg and ffmpeg-php cont "ffmpeg-php" is dead since years and had never any write-capabilities there are no updates, this has never worked with PHP 5.3 PHP 5.2 is also dead so ffmpeg-php is dead and will never come back since the author himself has no longer need for it _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From h.reindl at thelounge.net Tue Feb 14 00:36:19 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Tue, 14 Feb 2012 00:36:19 +0100 Subject: [FFmpeg-user] ffmpeg and ffmpeg-php cont In-Reply-To: <1329175974.56176.YahooMailNeo@web65405.mail.ac4.yahoo.com> References: <1328997417.54937.YahooMailNeo@web65409.mail.ac4.yahoo.com> <4F36E88E.4030009@thelounge.net> <1329175974.56176.YahooMailNeo@web65405.mail.ac4.yahoo.com> Message-ID: <4F399E73.7060400@thelounge.net> there is no support and will never be any stable one i guess ffmpeg-php was always quite unuseable since you never could do anything other as read some meta-data, maybe there exists some php-library which does the same - reading file metadata is not rocket science and needs not really native support in form of a binary in php to be done Am 14.02.2012 00:32, schrieb Artyom Khmelnitsky: > Yes, I am very familiar with ffmpeg-php being dead and that 5.2 is old as well. I was merely stating if anyone uses it with the latest version of ffmpeg, that's all. If not, what is the best way to compile php with ffmpeg support/module? > > Thank you for your help > ________________________________ > From: Reindl Harald > To: ffmpeg-user at ffmpeg.org > Sent: Saturday, February 11, 2012 5:15 PM > Subject: Re: [FFmpeg-user] ffmpeg and ffmpeg-php cont > > "ffmpeg-php" is dead since years and had never any write-capabilities > there are no updates, this has never worked with PHP 5.3 > PHP 5.2 is also dead > > so ffmpeg-php is dead and will never come back since > the author himself has no longer need for it -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 262 bytes Desc: OpenPGP digital signature URL: From kennethjjgibson at gmail.com Tue Feb 14 02:08:27 2012 From: kennethjjgibson at gmail.com (killkenny64) Date: Mon, 13 Feb 2012 17:08:27 -0800 (PST) Subject: [FFmpeg-user] Write audio frames without decoding/encoding In-Reply-To: References: <1329108751315-4382904.post@n4.nabble.com> Message-ID: <1329181707734-4385911.post@n4.nabble.com> Andrey Utkin wrote > > Yes. Shortly, you can av_write_frame() the AVPacket you've just got > from av_read_frame(). > I'm trying to write the audio packet into the new file while(av_read_frame(inputFormatCtx, &packet) >= 0) { if(packet.stream_index == videoStream) //videoStream = 0 { //do some stuff and write it return; } if(packet.stream_index == audioStream) //audioStream = 1 { av_interleaved_write_frame(outputFormatCtx, &packet); // <----- crashes here av_free_packet(&packet); return 0; } } But this crashes on the line: av_interleaved_write_frame(outputFormatCtx, &packet); Why is this crashing? If I ignore audio, I can make a .mp4 with just video and it works perfectly. Am I doing something obviously wrong here? For what reasons would av_interleaved_write_frame crash? Thanks for your help -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Write-audio-frames-without-decoding-encoding-tp4382904p4385911.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From arendash at fxpal.com Tue Feb 14 03:20:09 2012 From: arendash at fxpal.com (David Arendash) Date: Mon, 13 Feb 2012 18:20:09 -0800 Subject: [FFmpeg-user] Newb question: How can I access h.264-enabled webcams? Message-ID: <2F98165D8B8D02448D5D92C5AC77897DC3B23ABF72@yubin3> Hello all, first time here, sorry if this has been asked before. I didn't know where else to ask this, and googling got me nowhere fast: I have some h.264-enabled webcams (HP HD5210 and Creative InPerson HD). They work with Skype and so on just fine. I need them to work with my app. Basically, I need to get frames as high-res and fast as possible, and these cameras can deliver the speed. Now I need to get at those frames to process them myself (I don't want to just pass the stream along). Is that what ffmpeg can do? If not, is there any where else I should be looking. I'm really quite lost. Any help at all would be greatly appreciated. Thanks in advance. From sjames at susanjamescompany.com Tue Feb 14 03:54:11 2012 From: sjames at susanjamescompany.com (Susan James) Date: Mon, 13 Feb 2012 18:54:11 -0800 Subject: [FFmpeg-user] ffmpeg EOB marker In-Reply-To: References: <1C6BBFAD-C027-499B-B060-7CDCF54F3EE3@susanjamescompany.com> <6C3BC00C-03D8-4783-B299-1820F979E4E3@susanjamescompany.com> Message-ID: <524A6B5F-D00C-45E1-8C0D-6C13B85979E1@susanjamescompany.com> On Feb 12, 2012, at 3:13 PM, Carl Eugen Hoyos wrote: > Command line together with omplete, uncut console > output missing, and a sample may be needed. > > I've attached a file with the complete output including the ffmpeg command string. If anyone wants to take a look at the output file (no video came through), it's 989MB. I can upload it to dropbox or any other shared web space. Note, I encoded a small sample, 45 sec, of this file and ffmpeg worked well. It's when I encode 13G video files and the "AC EOB marker absent" message displays. We used the ffmpeg MAC 64 bit binary for Lion from http://ffmpegmac.net any help is greatly appreciated. We are trying to use this ffmpeg to increase the audio gain on our H264 videos and encode them to mpeg4. The problem again is that we are getting the 'EOB marker absent' on large videos and no video comes through on the output encoding. > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From de.techno at gmail.com Tue Feb 14 05:01:37 2012 From: de.techno at gmail.com (dE .) Date: Tue, 14 Feb 2012 09:31:37 +0530 Subject: [FFmpeg-user] Newb question: How can I access h.264-enabled webcams? In-Reply-To: <2F98165D8B8D02448D5D92C5AC77897DC3B23ABF72@yubin3> References: <2F98165D8B8D02448D5D92C5AC77897DC3B23ABF72@yubin3> Message-ID: <4F39DCA1.1020606@gmail.com> On 02/14/12 07:50, David Arendash wrote: > Hello all, first time here, sorry if this has been asked before. I didn't know where else to ask this, and googling got me nowhere fast: > > I have some h.264-enabled webcams (HP HD5210 and Creative InPerson HD). They work with Skype and so on just fine. I need them to work with my app. Basically, I need to get frames as high-res and fast as possible, and these cameras can deliver the speed. Now I need to get at those frames to process them myself (I don't want to just pass the stream along). > > Is that what ffmpeg can do? If not, is there any where else I should be looking. I'm really quite lost. Any help at all would be greatly appreciated. > Thanks in advance. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user you want to process in real time? Otherwise you can first save the stream and then process it. If you want in real time, you can add filters in ffmpeg. From arendash at fxpal.com Tue Feb 14 05:09:49 2012 From: arendash at fxpal.com (David Arendash) Date: Mon, 13 Feb 2012 20:09:49 -0800 Subject: [FFmpeg-user] Newb question: How can I access h.264-enabled webcams? In-Reply-To: <4F39DCA1.1020606@gmail.com> References: <2F98165D8B8D02448D5D92C5AC77897DC3B23ABF72@yubin3> <4F39DCA1.1020606@gmail.com> Message-ID: <2F98165D8B8D02448D5D92C5AC77897DC3B23ABF77@yubin3> -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of dE . Sent: Monday, February 13, 2012 8:02 PM To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] Newb question: How can I access h.264-enabled webcams? On 02/14/12 07:50, David Arendash wrote: > Hello all, first time here, sorry if this has been asked before. I didn't know where else to ask this, and googling got me nowhere fast: > > I have some h.264-enabled webcams (HP HD5210 and Creative InPerson HD). They work with Skype and so on just fine. I need them to work with my app. Basically, I need to get frames as high-res and fast as possible, and these cameras can deliver the speed. Now I need to get at those frames to process them myself (I don't want to just pass the stream along). > > Is that what ffmpeg can do? If not, is there any where else I should be looking. I'm really quite lost. Any help at all would be greatly appreciated. > Thanks in advance. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user you want to process in real time? Otherwise you can first save the stream and then process it. If you want in real time, you can add filters in ffmpeg. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user Thanks for reply. Well, ultimately I would like to process in real time. Actually, at this point, if I could just get the camera stream from the camera (as h.264) over the network to my client, that would be great. Although, I do need to decompress it on that end. I'm guessing I can do that? Would like to load as DLL or .bundle (win or mac) or pull from a client that can hand me uncompressed frames. (I take it that the custom is to reply at the bottom, rather than top of emails?) From lclemens at gmail.com Tue Feb 14 00:19:55 2012 From: lclemens at gmail.com (Ph0t0n) Date: Mon, 13 Feb 2012 15:19:55 -0800 (PST) Subject: [FFmpeg-user] Flip in sws_scale In-Reply-To: <1306145856482-3543657.post@n4.nabble.com> References: <7049fdd50901081108j147e55a6m5b65f71c260e1572@mail.gmail.com> <1306145856482-3543657.post@n4.nabble.com> Message-ID: <1329175195791-4385701.post@n4.nabble.com> void FlipFrame(AVFrame* pFrame) { for (int i = 0; i < 4; i++) { pFrame->data[i] += pFrame->linesize[i] * (pFrame->height-1); pFrame->linesize[i] = -pFrame->linesize[i]; } } void UnflipFrame(AVFrame* pFrame) { for (int i = 0; i < 4; i++) { pFrame->linesize[i] = -pFrame->linesize[i]; pFrame->data[i] -= pFrame->linesize[i] * (pFrame->height-1); } } -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Flip-in-sws-scale-tp939665p4385701.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From bostjan.strojan at gmail.com Tue Feb 14 08:59:32 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Tue, 14 Feb 2012 08:59:32 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: References: <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <1329162982842-4385057.post@n4.nabble.com> <1329167453881-4385316.post@n4.nabble.com> <4F39819B.10704@gmx.de> Message-ID: On Mon, Feb 13, 2012 at 11:59 PM, Carl Eugen Hoyos wrote: > Bo?tjan Strojan gmail.com> writes: > >> ffmpeg -r 25 -i in.file -o.file > > That will only work if in.file is rawvideo > (which would require other options, so the command-line > cannot work as-is). > > Carl Eugen I see, would piping work? ffmpeg -i input.mov -vcodec raw? - | another ffmpeg -r 25 - out.some ? Worth trying? How to stretch the audio properly? b. From cehoyos at ag.or.at Tue Feb 14 11:00:40 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 14 Feb 2012 10:00:40 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg EOB marker References: <1C6BBFAD-C027-499B-B060-7CDCF54F3EE3@susanjamescompany.com> <6C3BC00C-03D8-4783-B299-1820F979E4E3@susanjamescompany.com> <524A6B5F-D00C-45E1-8C0D-6C13B85979E1@susanjamescompany.com> Message-ID: Susan James susanjamescompany.com> writes: > On Feb 12, 2012, at 3:13 PM, Carl Eugen Hoyos wrote: > > Command line together with omplete, uncut console > > output missing, and a sample may be needed. > > I've attached a file with the complete output including > the ffmpeg command string. http://thread.gmane.org/gmane.comp.video.ffmpeg.user/35404/focus=35415 http://lists.ffmpeg.org/pipermail/ffmpeg-user/2012-February/004892.html If you can show me the attachment, I will happily look at it. But I suggest instead that you run your failing ffmpeg command again. copy both the command and the complete uncut console output in a new mail and send it to this list. Output files are nearly always useless, it is the input file that is typically needed. Carl Eugen From nichot20 at yahoo.com Tue Feb 14 11:03:39 2012 From: nichot20 at yahoo.com (Tim Nicholson) Date: Tue, 14 Feb 2012 10:03:39 +0000 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: <1329164667855-4385160.post@n4.nabble.com> References: <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <4F396DD4.6000402@gmx.de> <1329164667855-4385160.post@n4.nabble.com> Message-ID: <4F3A317B.2060200@yahoo.com> On 13/02/12 20:24, Tomas Sinkunas wrote: >>> FCP complains all ProRes files on import if these has been created with >>> ffmpeg or ffmbc! > > Exactly, that's my point. I mean yeah, probably the output prores files from > ffmpeg are ok, but not THAT OK so FCP can deal deal with them. > In my experience FCP complains about most file formats not being "optimised", not just Prores. So I think its more to do with the wrapping than the codec.... > So maybe there's a workaround or some fix to get it to work? > -- Tim From cehoyos at ag.or.at Tue Feb 14 11:04:34 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 14 Feb 2012 10:04:34 +0000 (UTC) Subject: [FFmpeg-user] FFMpeg H.264 to ProRez References: <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <1329162982842-4385057.post@n4.nabble.com> <1329167453881-4385316.post@n4.nabble.com> <4F39819B.10704@gmx.de> Message-ID: Bo?tjan Strojan gmail.com> writes: > >> ffmpeg -r 25 -i in.file -o.file > > > > That will only work if in.file is rawvideo > > (which would require other options, so the command-line > > cannot work as-is). > > I see, would piping work? It would "work" but I don't think it would solve any issue. If the issue is really the framerate, change the framerate of the output file. Carl Eugen From cehoyos at ag.or.at Tue Feb 14 11:05:19 2012 From: cehoyos at ag.or.at (Carl Eugen Hoyos) Date: Tue, 14 Feb 2012 10:05:19 +0000 (UTC) Subject: [FFmpeg-user] ffmpeg EOB marker References: <1C6BBFAD-C027-499B-B060-7CDCF54F3EE3@susanjamescompany.com> <6C3BC00C-03D8-4783-B299-1820F979E4E3@susanjamescompany.com> <524A6B5F-D00C-45E1-8C0D-6C13B85979E1@susanjamescompany.com> Message-ID: Carl Eugen Hoyos ag.or.at> writes: > But I suggest instead that you run your failing ffmpeg command again. > copy both the command and the complete uncut console output in a > new mail and send it to this list. In this case, please also provide the complete, uncut console output for the working case. Carl Eugen From tevans.uk at googlemail.com Tue Feb 14 11:16:29 2012 From: tevans.uk at googlemail.com (Tom Evans) Date: Tue, 14 Feb 2012 10:16:29 +0000 Subject: [FFmpeg-user] Recommended x.264 preset for live x.264 encoding In-Reply-To: References: <4F268796.4040201@gmail.com> <4F27AC7E.4040301@gmail.com> Message-ID: On Mon, Feb 13, 2012 at 10:49 PM, Stas Oskin wrote: > Thanks, that seems very useful. > > So in order to encode live video for mobiles (iOS and Android), would the > following settings suffice: > ffmpeg -i input -c:libx264 -profile:baseline -preset:ultrafast -level 1.2 > (from http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Levels) > > Thanks. > Yes, except using the correct syntax that I had in my email, rather than the gobbledegook you had. Eg '-c:v libx264', not '-c:libx264', '-profile:v baseline', not '-profile:baseline' etc. See the example below again. BTW when I encode for iphone/ipad I use a higher level than that, Main at L3.0 >> Eg, if you want a video at Main at L3.1, then you can use this: >> >> ffmpeg -i input -c:v libx264 -profile:v main -preset:v fast -level 3.1 >> From bostjan.strojan at gmail.com Tue Feb 14 11:55:30 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Tue, 14 Feb 2012 11:55:30 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: References: <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <1329162982842-4385057.post@n4.nabble.com> <1329167453881-4385316.post@n4.nabble.com> <4F39819B.10704@gmx.de> Message-ID: On Tue, Feb 14, 2012 at 11:04 AM, Carl Eugen Hoyos wrote: > It would "work" but I don't think it would solve any issue. > If the issue is really the framerate, change the framerate > of the output file. > > Carl Eugen What do you mean? example? what happens with audio? :) b. p.s. The task is standard conversion from 23.xx or 24 fps to 25 fps (PAL), that includes audio. And "we" decided that one old frame must fit exactly one new frame (any kind of frame belnding or other manipulation is not wanted), which changes the length of the clip, so audio needs to be stretched and resampled to 48k. afaik this is also the most used type of conversion. b. From fernanda.rebelatto at gmail.com Tue Feb 14 12:45:11 2012 From: fernanda.rebelatto at gmail.com (Fernanda Rebelatto) Date: Tue, 14 Feb 2012 08:45:11 -0300 Subject: [FFmpeg-user] audio frequency frame by frame In-Reply-To: References: <20120209231045.GA2141@arborea> Message-ID: Em 9 de fevereiro de 2012 21:10, Stefano Sabatini escreveu: > You may write an audio filter and perform audio data analysis (hint: > you can find many high quality DSP routines in libavcodec in case you > want to do some coding). Which filter could I use? I tried using ashowinfo, but it failed. I don't know to use the audio filter in the right way. could it be like this: ffmpeg-i input.mp4-filter: a ashowinfo? Att., Fernanda Rebelatto -- Analista de Sistemas http://www.brazip.com.br From stefasab at gmail.com Tue Feb 14 16:37:14 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Tue, 14 Feb 2012 16:37:14 +0100 Subject: [FFmpeg-user] audio frequency frame by frame In-Reply-To: References: <20120209231045.GA2141@arborea> Message-ID: <20120214153714.GF30672@arborea> On date Friday 2012-02-10 11:21:17 -0200, Fernanda Rebelatto encoded: > Em 9 de fevereiro de 2012 21:10, Stefano Sabatini escreveu: > > You may write an audio filter and perform audio data analysis (hint: > > you can find many high quality DSP routines in libavcodec in case you > > want to do some coding). > > Which filter could I use? I tried using ashowinfo, but it failed. I > don't know to use the audio filter in the right way. could it be like > this: ffmpeg-i input.mp4-filter: a ashowinfo? What I wanted to say was that a filter *could be written*, right now there is no such filter but writing it should not be hard. -- ffmpeg-user random tip #19 X11 session recording with ffmpeg: ffmpeg -f oss -i /dev/audio -f x11grab -s $WIDTHx$HEIGHT -r 5 -i :0.0 \ x11-session.avi Use xdpyinfo to get WIDTH and HEIGHT values. From fernanda.rebelatto at gmail.com Tue Feb 14 17:14:03 2012 From: fernanda.rebelatto at gmail.com (Fernanda Rebelatto) Date: Tue, 14 Feb 2012 13:14:03 -0300 Subject: [FFmpeg-user] audio frequency frame by frame In-Reply-To: <20120214153714.GF30672@arborea> References: <20120209231045.GA2141@arborea> <20120214153714.GF30672@arborea> Message-ID: Em 14 de fevereiro de 2012 12:37, Stefano Sabatini escreveu: > What I wanted to say was that a filter *could be written*, right now > there is no such filter but writing it should not be hard. Sorry. I didn't understand, thanks. Att., Fernanda Rebelatto -- Analista de Sistemas http://www.brazip.com.br From j.baumgarten at netvisio.com Tue Feb 14 18:23:03 2012 From: j.baumgarten at netvisio.com (Julien Baumgarten) Date: Tue, 14 Feb 2012 18:23:03 +0100 Subject: [FFmpeg-user] FFMPEG and RTMP Message-ID: Hi everyone, I would like to have some information. I dowloaded the last version of ffmpeg on the git repository and I configured it like this: configuration: --prefix=/usr/local/xuggler --extra-version=xuggle-4.0.0 --extra-cflags=-I/Users/Julien/Desktop/xuggler/build/native/i386-apple-darwin11.2.0/captive/usr/local/xuggler/include --extra-ldflags=-L/Users/Julien/Desktop/xuggler/build/native/i386-apple-darwin11.2.0/captive/usr/local/xuggler/lib --enable-shared --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libvo-aacenc --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --extra-cflags=-m64 --extra-ldflags=-m64 --enable-pthreads --cc=clang --arch=x86_64 --extra-cflags=-arch --extra-cflags=x86_64 --extra-ldflags=-arch --extra-ldflags=x86_64 The problem is that I can publish over RTMP stream but I cannot get a RTMP stream. I have the following error: /usr/local/xuggler/bin/ffmpeg -i rtmp://10.120.1.90/oflaDemo/test123 -y toto.flv ffmpeg version git-2012-02-09-0fd2b5a-xuggle-4.0.0 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 14 2012 16:09:00 with clang 3.0 (tags/Apple/clang-211.10.1) configuration: --prefix=/usr/local/xuggler --extra-version=xuggle-4.0.0 --extra-cflags=-I/Users/Julien/Desktop/xuggler/build/native/i386-apple-darwin11.2.0/captive/usr/local/xuggler/include --extra-ldflags=-L/Users/Julien/Desktop/xuggler/build/native/i386-apple-darwin11.2.0/captive/usr/local/xuggler/lib --enable-shared --enable-gpl --enable-nonfree --enable-version3 --enable-libx264 --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libvo-aacenc --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --extra-cflags=-m64 --extra-ldflags=-m64 --enable-pthreads --cc=clang --arch=x86_64 --extra-cflags=-arch --extra-cflags=x86_64 --extra-ldflags=-arch --extra-ldflags=x86_64 libavutil 51. 38.100 / 51. 38.100 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 Closing connection: NetStream.Play.StreamNotFound rtmp://10.120.1.90/oflaDemo/test123: Operation not permitted Can someone tell me what is the problem please? Yours sincerely, Julien From openworld at uralweb.ru Tue Feb 14 18:52:07 2012 From: openworld at uralweb.ru (Alexander Bokovikov) Date: Tue, 14 Feb 2012 22:52:07 +0500 Subject: [FFmpeg-user] FFMPEG and RTMP In-Reply-To: References: Message-ID: On 14.02.2012, at 22:23, Julien Baumgarten wrote: > Closing connection: NetStream.Play.StreamNotFound > rtmp://10.120.1.90/oflaDemo/test123: Operation not permitted Maybe I'm wrong, but as far as I understand "NetStream.Play.StreamNotFound" is the server response. So, you should check the server side. What you have on the server side? HTH! From stas.oskin at gmail.com Tue Feb 14 19:12:48 2012 From: stas.oskin at gmail.com (Stas Oskin) Date: Tue, 14 Feb 2012 20:12:48 +0200 Subject: [FFmpeg-user] Recommended x.264 preset for live x.264 encoding In-Reply-To: References: <4F268796.4040201@gmail.com> <4F27AC7E.4040301@gmail.com> Message-ID: Hi. Yes, except using the correct syntax that I had in my email, rather > than the gobbledegook you had. Eg '-c:v libx264', not '-c:libx264', > '-profile:v baseline', not '-profile:baseline' etc. See the example > below again. > > Thanks for clarification, I guess it's the new format ffmpeg accepts? As all previous versions haven't required the v param. BTW when I encode for iphone/ipad I use a higher level than that, Main at L3.0 > I chose this according to planned bit-rate (500 Kbps), but will try this one as well. From brown at mrvideo.vidiot.com Tue Feb 14 21:51:40 2012 From: brown at mrvideo.vidiot.com (Mike Brown) Date: Tue, 14 Feb 2012 14:51:40 -0600 Subject: [FFmpeg-user] Bad stream header info - need to fix/override Message-ID: <20120214205140.GC5816@mrvideo.vidiot.com> I have a bunch of transport stream captures with one of the audio strems being PCM (s302m). The problem is that they got saved as data streams: Stream #0.1[(PID)]: Data: BSSD / 0x44535342 I need the stream to be configured as: Stream #0.1[(PID)]: Audio: s302m (BSSD / 0x44535342), [...] The pcm option (-map 0:1 -acodec pcm_s24le) obviously doesn't work since it appears to not be a pcm audio stream. But it is. Is there a way to override what ffmpeg thinks the stream is and force it to use the pcm_* codec on it? Or, can ffmpeg be used to fix the bad stream info. Any help in getting this stream error fixed will be appreciated. MB -- e-mail: vidiot at vidiot.com | vidiot at vidiot.net /~\ The ASCII 6082066843 at email.uscc.net (140 char limit) \ / Ribbon Campaign Visit - URL: http://vidiot.com/ X Against http://vidiot.net/ / \ HTML Email From grid at rusvision.com Tue Feb 14 20:25:31 2012 From: grid at rusvision.com (grid at rusvision.com) Date: Tue, 14 Feb 2012 23:25:31 +0400 (MSK) Subject: [FFmpeg-user] libstagefright_h264 SIGSEGV error Message-ID: <2c7dc70b284ba3acc86b9fba89111c59.squirrel@mail.rusvision.com> Hello all, I am trying to decode h264 file to YUV on Android 2.3+. As I understand I need to communicate with Stagefright, as it`s the only way now, after closing access to OpenMAX IL implementations (OpenCore). My hardware: Beagleboard-Xm + TI Android 2.3 (official) I have used FFmpeg 0.10 (and tried 0.9/0.9.1..) for this issue, compiled it with NDK7 (and also tried NDK6b with the same result): ---------------------------------------------------- ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers built on Jan 28 2012 14:42:37 with gcc 4.4.3 configuration: --target-os=linux --cross-prefix=arm-linux-androideabi- --arch=arm --cpu=armv7-a --sysroot=/home/grid/Android/Android_NDK/platforms/android-9/arch-arm --disable-avdevice --disable-decoder=h264 --disable-decoder=h264_vdpau --enable-libstagefright-h264 --prefix=build/stagefright/armeabi-v7a --extra-cflags='-Iandroid-source/frameworks/base/include -Iandroid-source/system/core/include -Iandroid-source/frameworks/base/media/libstagefright -Iandroid-source/frameworks/base/include/media/stagefright/openmax -I/home/grid/Android/Android_NDK/sources/cxx-stl/system/include -march=armv7-a -mfloat-abi=softfp -mfpu=neon' --extra-ldflags='-Wl,--fix-cortex-a8 -Landroid-libs -Wl,-rpath-link,android-libs' --extra-cxxflags='-Wno-multichar -fno-exceptions -fno-rtti' libavutil 51. 34.101 / 51. 34.101 libavcodec 53. 60.100 / 53. 60.100 libavformat 53. 31.100 / 53. 31.100 libavfilter 2. 60.100 / 2. 60.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... ---------------------------------------------------- Test Case 1: So, entering next command give give me error with 480p: ffmpeg -i /sdcard/Video/480p.mp4 >> Stopped (signal) ffmpeg -i /sdcard/Video/480p.mp4 Full Android "answer" from ADB Logcat: [1] http://pastebin.com/76JLgtXX While debugging I found that SIGSERV is situated in line (libavcodec/libstagefright.cpp): >> av_image_copy(s->ret_frame.data, s->ret_frame.linesize, >> src_data, src_linesize, >> avctx->pix_fmt, avctx->width, avctx->height); Test Case 2: Additionally I found that on some bigger files (720p) Android answers next: [libstagefright_h264 @ 0xd479b0] Decode failed: 80000000 Android-developers, does anybody know what this error means and how to deal with it? I tried to make DSP window bigger, but with no luck. Commands like "stagefright /sdcard/Video/480p.mp4" works fine. I have these errors also on Android 4.0 and on another hardware (Toshiba Folio). If anybody has positive experience with FFmpeg + Stagefright - please let me know. From stefasab at gmail.com Wed Feb 15 00:39:33 2012 From: stefasab at gmail.com (Stefano Sabatini) Date: Wed, 15 Feb 2012 00:39:33 +0100 Subject: [FFmpeg-user] audio frequency frame by frame In-Reply-To: References: <20120209231045.GA2141@arborea> <20120214153714.GF30672@arborea> Message-ID: <20120214233933.GD6470@arborea> On date Tuesday 2012-02-14 13:14:03 -0300, Fernanda Rebelatto encoded: > Em 14 de fevereiro de 2012 12:37, Stefano Sabatini > escreveu: > > What I wanted to say was that a filter *could be written*, right now > > there is no such filter but writing it should not be hard. > > > Sorry. I didn't understand, thanks. Feel free to file a feature request on trac: http://ffmpeg.org/trac/ffmpeg with your exact requirements, who knows someone may want to implement it ;). Boas. -- ffmpeg-user random tip #24 *Read* the mailing lists rules before posting new messages: http://www.ffmpeg.org/mailinglists.html From lou at lrcd.com Wed Feb 15 01:00:06 2012 From: lou at lrcd.com (Lou) Date: Tue, 14 Feb 2012 15:00:06 -0900 Subject: [FFmpeg-user] ffmpeg user list rules In-Reply-To: <20120130133336.41f98cf7@lrcd.com> References: <20120130133336.41f98cf7@lrcd.com> Message-ID: <20120214150006.08e54030@lrcd.com> On Mon, 30 Jan 2012 13:33:36 -0900 Lou wrote: > On Mon, 30 Jan 2012 22:03:54 +0100 > Bo?tjan Strojan wrote: > > > Hi, > > > > Since I'am being reminded to follow some simple rules in my latest > > attempts on posting at this list..., is there a command/url/wiki site > > or some other generic mailing list type of rules that should i read > > and follow? > > > > Thanks, > > > > b. > > There is some info here http://ffmpeg.org/contact.html and although it > is verbose it does not address all suggested practices for the mailing > list. > > A re-write of that page is probably in order to be more clear. I may > work on that sometime this week. Ok, so I lied and now it's mid February. Here's a list of suggestions / rules. Mailing list specific rules: * Avoid top-posting. Interleaved replying is standard etiquette. * Do not hijack threads (replying to a thread and changing the subject line to something completely unrelated that was not being discussed within the original thread). * Configure your mail client to break lines after 70-80 characters. How to provide the right information: * Use recent ffmpeg from Git or a supported version of ffmpeg (see download page) if possible. * Show your ffmpeg command and the complete, uncut console output of your command. * If you attach files avoid compressing small files; uncompressed is preferred. * Use minimal commands to help narrow down what is causing the issue. Exclude filters and external encoders (usually anything lib*, such as libx264) if possible. * Provide a link to samples if applicable (see datafilehost.com or mediafire.com if you need a file service). * Avoid posting command lines that use shell variables. We need commands that allow anyone to easily duplicate your issue. Additions? Questions? Comments? From andrey.krieger.utkin at gmail.com Wed Feb 15 01:35:14 2012 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Wed, 15 Feb 2012 02:35:14 +0200 Subject: [FFmpeg-user] Write audio frames without decoding/encoding In-Reply-To: <1329181707734-4385911.post@n4.nabble.com> References: <1329108751315-4382904.post@n4.nabble.com> <1329181707734-4385911.post@n4.nabble.com> Message-ID: 2012/2/14 killkenny64 : > But this crashes on the line: > ? ? ? ? av_interleaved_write_frame(outputFormatCtx, &packet); > > Why is this crashing? > If I ignore audio, I can make a .mp4 with just video and it works perfectly. > Am I doing something obviously wrong here? > For what reasons would av_interleaved_write_frame crash? Well, it is not supposed to crash, and in documentation there's no paragraph about situations in which that func must crash :) You should run a debugger on it. Or, to ask for help on maillist, please collect gentleman's set - minimized source code that compiles, runs and reproduces the issue, sample file, and output of your app with full debug of libav turned on. Also mention how ffmpeg utility works on your file in same operation mode (-c copy for your case). -- Andrey Utkin From andrey.krieger.utkin at gmail.com Wed Feb 15 01:37:44 2012 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Wed, 15 Feb 2012 02:37:44 +0200 Subject: [FFmpeg-user] Write audio frames without decoding/encoding In-Reply-To: References: <1329108751315-4382904.post@n4.nabble.com> <1329181707734-4385911.post@n4.nabble.com> Message-ID: I suggest you started with my code as a sample. That code assumes there's only one substream, namely video. You should make avformat_new_stream() in a loop (AVFormatContext*)input_ctx->nb_streams times. -- Andrey Utkin From brown at mrvideo.vidiot.com Wed Feb 15 02:37:37 2012 From: brown at mrvideo.vidiot.com (Mike Brown) Date: Tue, 14 Feb 2012 19:37:37 -0600 Subject: [FFmpeg-user] Bad stream header info - need to fix/override In-Reply-To: <20120214205140.GC5816@mrvideo.vidiot.com> References: <20120214205140.GC5816@mrvideo.vidiot.com> Message-ID: <20120215013737.GK5816@mrvideo.vidiot.com> On Tue, Feb 14, 2012 at 02:51:40PM -0600, Mike Brown wrote: Ignore the following. The ffmpeg I was using was from Dec of 2010, which I wouldn't think couldn't ID the audio, but silly me, it doesn't. The latest Win download now shows the correct info. Sorry to have bothered you guys and gals. MB > I have a bunch of transport stream captures with one of the audio strems > being PCM (s302m). The problem is that they got saved as data streams: > > Stream #0.1[(PID)]: Data: BSSD / 0x44535342 > > I need the stream to be configured as: > > Stream #0.1[(PID)]: Audio: s302m (BSSD / 0x44535342), [...] > > The pcm option (-map 0:1 -acodec pcm_s24le) obviously doesn't work since > it appears to not be a pcm audio stream. > > But it is. Is there a way to override what ffmpeg thinks the stream is and > force it to use the pcm_* codec on it? > > Or, can ffmpeg be used to fix the bad stream info. > > Any help in getting this stream error fixed will be appreciated. -- e-mail: vidiot at vidiot.com | vidiot at vidiot.net /~\ The ASCII 6082066843 at email.uscc.net (140 char limit) \ / Ribbon Campaign Visit - URL: http://vidiot.com/ X Against http://vidiot.net/ / \ HTML Email From brown at mrvideo.vidiot.com Wed Feb 15 03:06:21 2012 From: brown at mrvideo.vidiot.com (Mike Brown) Date: Tue, 14 Feb 2012 20:06:21 -0600 Subject: [FFmpeg-user] Trouble with LPCM audio from D-VHS deck In-Reply-To: <20120215013737.GK5816@mrvideo.vidiot.com> References: <20120214205140.GC5816@mrvideo.vidiot.com> <20120215013737.GK5816@mrvideo.vidiot.com> Message-ID: <20120215020621.GN5816@mrvideo.vidiot.com> On to the next issue. I have a D-VHS deck that will firewire the analog video to MPEG-2 video conversion to my computer, via TSReader. Within the mux is a MPEG audio stream and a LPCM audio stream. The authors of the VideReDo program attempted to convert the LPCM audio to a WAV file, but it was extremely distorted. Now that I have an up-to-date ffmpeg, I ran the stream through it and got: ##### ffmpeg version N-37771-gfd0b8d5 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 11 2012 13:38:28 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. 39.100 / 51. 39.100 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 [mpeg2video @ 0224B6E0] mpeg_decode_postinit() failure Last message repeated 7 times [mpegts @ 0214A9E0] decoding for stream 2 failed [mpegts @ 0214A9E0] Could not find codec parameters (Audio: aac_latm (BSSD / 0x44535342), 0 channels, s16) [mpegts @ 0214A9E0] PES packet size mismatch Last message repeated 1 times Input #0, mpegts, from 'MPEG-LPCM-sample.ts': Duration: 00:00:05.23, start: 4209.912289, bitrate: 17636 kb/s Program 1 Stream #0:0[0x1000]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 15000 kb/s, 32.92 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:1[0x1002]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 384 kb/s Stream #0:2[0x1004]: Audio: aac_latm (BSSD / 0x44535342), 0 channels, s16 At least one output file must be specified ##### I find it hard to believe that the D-VHS deck created a LPCM file and put nothing in it. It also doesn't make any sense that it thinks that it is an AAC formated audio file. A five second sample of the file is available at: http://vidiot.com/MPEG-LPCM-sample.ts 11534336 bytes I'd appreciate someone else looking at this file. Thanks. MB -- e-mail: vidiot at vidiot.com | vidiot at vidiot.net /~\ The ASCII 6082066843 at email.uscc.net (140 char limit) \ / Ribbon Campaign Visit - URL: http://vidiot.com/ X Against http://vidiot.net/ / \ HTML Email From yangacer at gmail.com Wed Feb 15 03:58:43 2012 From: yangacer at gmail.com (Acer Yang) Date: Wed, 15 Feb 2012 10:58:43 +0800 Subject: [FFmpeg-user] Use segment muxer and concat: protocol In-Reply-To: References: Message-ID: On Tue, Feb 14, 2012 at 6:29 AM, Maxim Levkov wrote: > @ Acer, > > The reason why your simple copy command for concatenation of video segments > failed to produce continuous playback, but only of the first segment, is > that all of the segments contain 'moov' atom box. Hence you need to remove > all of them and recalculate a single 'moov' atom for the entire movie. > Otherwise, you will end up having segments, but only the first segment will > be seen as having 'moov' atom. > > Take a look at my paper on the topic, > > http://www.adobe.com/devnet/video/articles/mp4_movie_atom.html > > Regards, > Maxim Levkov > > On Sun, Feb 12, 2012 at 10:22 PM, Acer Yang wrote: > > > On Sun, Feb 12, 2012 at 9:10 PM, Andrey Utkin < > > andrey.krieger.utkin at gmail.com> wrote: > > > > > 2012/2/12 Acer Yang : > > > > Is there any workaround to solve this problem? > > > > > > You can concatenate mp4 files using MP4Box tool from GPAC project. > > > MP4Box -cat segment1.mp4 -cat segment2.mp4 out.mp4 > > > > > > -- > > > Andrey Utkin > > > _______________________________________________ > > > ffmpeg-user mailing list > > > ffmpeg-user at ffmpeg.org > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > > > > I've tested the mp4box tool, it worked well. Further, it rotated moov > > atom(box) automatically and just matched my needs. > > > > PS. I also tried to extract sub clip from on-joining input. That was > > > > mp4box -cat 1.m4v -cat 2.m4v -splitx x:-1 output.m4v > > > > It worked. > > > > -- > > Best wishes, > > Acer. > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > @ Maxim: Thank for your helpful paper, it explains some of my confusion. BTW, I just thought that ffmpeg's concat protocol can do that (merge moov atoms) for me. It seems, however, have nothing different from UNIX cat utility ... am I right? Best wishes, Acer. From sjames at susanjamescompany.com Wed Feb 15 05:14:53 2012 From: sjames at susanjamescompany.com (Susan James) Date: Tue, 14 Feb 2012 20:14:53 -0800 Subject: [FFmpeg-user] ffmpeg EOB marker In-Reply-To: References: <1C6BBFAD-C027-499B-B060-7CDCF54F3EE3@susanjamescompany.com> <6C3BC00C-03D8-4783-B299-1820F979E4E3@susanjamescompany.com> <524A6B5F-D00C-45E1-8C0D-6C13B85979E1@susanjamescompany.com> Message-ID: On Feb 14, 2012, at 2:00 AM, Carl Eugen Hoyos wrote: >> >>> Command line together with omplete, uncut console >>> output missing, and a sample may be needed. >> >> I've attached a file with the complete output including >> the ffmpeg command string. > > http://thread.gmane.org/gmane.comp.video.ffmpeg.user/35404/focus=35415 > http://lists.ffmpeg.org/pipermail/ffmpeg-user/2012-February/004892.html > > If you can show me the attachment, I will happily look at it. > > But I suggest instead that you run your failing ffmpeg command again. > copy both the command and the complete uncut console output in a > new mail and send it to this list. > > Output files are nearly always useless, it is the input file that is > typically needed. > here is the complete output with ffmpeg command, below. the file that is encoded has audio but no video. $ ffmpeg -i 1.Chandi.HiRes -strict experimental -ab 320k -vol 1024 -vcodec libx264 -b 2000k 1.Chandi.HiRes.ff3.mp4 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: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --arch=x86_64 --enable-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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/LaCie_Disk_2TB/ChandiHiResClasses.wordpress/1.Chandi.HiRes': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2008-02-08 12:52:46 Duration: 01:00:03.53, start: 0.000000, bitrate: 30313 kb/s Stream #0:0(eng): Video: dvvideo (dvc / 0x20637664), yuv411p, 720x480 [SAR 8:9 DAR 4:3], 28771 kb/s, SAR 10:11 DAR 15:11, 29.97 fps, 29.97 tbr, 2997 tbn, 29.97 tbc Metadata: creation_time : 2008-02-08 12:52:46 handler_name : ?Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: creation_time : 2008-02-08 12:52:46 handler_name : ?Apple Alias Data Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2008-02-08 13:00:46 handler_name : ?Apple Alias Data Handler timecode : 01:00:00;00 Please use -b:a or -b:v, -b is ambiguous Incompatible pixel format 'yuv411p' for codec 'libx264', auto-selecting format 'yuv422p' [buffer @ 0x101518560] w:720 h:480 pixfmt:yuv411p tb:1/1000000 sar:10/11 sws_param: [buffersink @ 0x1015187a0] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x101518b40] w:720 h:480 fmt:yuv411p -> w:720 h:480 fmt:yuv422p flags:0x4 Incompatible sample format 's16' for codec 'aac', auto-selecting format 'flt' [libx264 @ 0x10182e600] using SAR=10/11 [libx264 @ 0x10182e600] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x10182e600] profile High 4:2:2, level 3.0, 4:2:2 8-bit [libx264 @ 0x10182e600] 264 - core 120 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to '/Volumes/My_Book/Chandi_Classes_640X480_1-29-12/1.Chandi.HiRes.ff3.mp4': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2008-02-08 12:52:46 encoder : Lavf53.31.100 Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv422p, 720x480 [SAR 10:11 DAR 15:11], q=-1--1, 2000 kb/s, 2997 tbn, 29.97 tbc Metadata: creation_time : 2008-02-08 12:52:46 handler_name : ?Apple Alias Data Handler Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, 2 channels, flt, 320 kb/s Metadata: creation_time : 2008-02-08 12:52:46 handler_name : ?Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (dvvideo -> libx264) Stream #0:1 -> #0:1 (pcm_s16le -> aac) Press [q] to stop, [?] for help AC EOB marker is absent pos=80mes 21874kB time=00:01:18.01 bitrate=2297.0kbits/s Last message repeated 1 times [dvvideo @ 0x10181e800] AC EOB marker is absent pos=64 AC EOB marker is absent pos=65 [dvvideo @ 0x10181e800] AC EOB marker is absent pos=69 Last message repeated 1 times frame=107998 fps= 86 q=3.0 Lsize= 1013202kB time=01:00:03.47 bitrate=2303.4kbits/s video:879391kB audio:129937kB global headers:0kB muxing overhead 0.383841% [libx264 @ 0x10182e600] frame I:432 Avg QP:19.00 size: 65429 [libx264 @ 0x10182e600] frame P:42324 Avg QP:21.99 size: 16676 [libx264 @ 0x10182e600] frame B:65242 Avg QP:24.92 size: 2551 [libx264 @ 0x10182e600] consecutive B-frames: 0.6% 38.2% 55.5% 5.7% [libx264 @ 0x10182e600] mb I I16..4: 4.8% 86.3% 8.9% [libx264 @ 0x10182e600] mb P I16..4: 0.3% 3.7% 0.5% P16..4: 50.5% 24.3% 17.9% 0.0% 0.0% skip: 2.8% [libx264 @ 0x10182e600] mb B I16..4: 0.0% 0.2% 0.0% B16..8: 29.5% 3.0% 0.8% direct: 7.4% skip:59.0% L0:34.5% L1:53.8% BI:11.8% [libx264 @ 0x10182e600] final ratefactor: 19.77 [libx264 @ 0x10182e600] 8x8 transform intra:83.7% inter:70.9% [libx264 @ 0x10182e600] coded y,uvDC,uvAC intra: 86.7% 98.8% 70.3% inter: 26.3% 55.6% 6.2% [libx264 @ 0x10182e600] i16 v,h,dc,p: 25% 19% 4% 51% [libx264 @ 0x10182e600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 15% 21% 6% 7% 9% 8% 9% 9% [libx264 @ 0x10182e600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 14% 13% 7% 9% 10% 7% 8% 5% [libx264 @ 0x10182e600] i8c dc,h,v,p: 43% 15% 28% 14% [libx264 @ 0x10182e600] Weighted P-Frames: Y:1.3% UV:0.5% [libx264 @ 0x10182e600] ref P L0: 44.3% 16.6% 27.6% 11.3% 0.1% [libx264 @ 0x10182e600] ref B L0: 73.9% 22.9% 3.2% [libx264 @ 0x10182e600] ref B L1: 95.4% 4.6% [libx264 @ 0x10182e600] kb/s:1999.14 From kennethjjgibson at gmail.com Wed Feb 15 06:08:23 2012 From: kennethjjgibson at gmail.com (killkenny64) Date: Tue, 14 Feb 2012 21:08:23 -0800 (PST) Subject: [FFmpeg-user] AVERROR code on avfilter_graph_config In-Reply-To: <1328828029792-4374724.post@n4.nabble.com> References: <1328824489453-4374534.post@n4.nabble.com> <1328828029792-4374724.post@n4.nabble.com> Message-ID: <1329282503841-4389521.post@n4.nabble.com> killkenny64 wrote > > What is wrong with "movie=logo.png [logo];[in][logo] > overlay=10:main_h-overlay_h-10 [out]"? > This is driving me crazy, I can't seem to use the movie source in any way at all, Trying to overlay one video on another doesn't work either: "movie=overlay.mp4 [movie]; [in] [movie] overlay=720:480 [out]" I still get AVERROR -22 Maybe I'm setting up the filterchain wrong, I just followed filtering.c, but I can get other filters to work, just not when using the movie source -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/AVERROR-code-on-avfilter-graph-config-tp4374534p4389521.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ubitux at gmail.com Wed Feb 15 07:38:12 2012 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Wed, 15 Feb 2012 07:38:12 +0100 Subject: [FFmpeg-user] AVERROR code on avfilter_graph_config In-Reply-To: <1329282503841-4389521.post@n4.nabble.com> References: <1328824489453-4374534.post@n4.nabble.com> <1328828029792-4374724.post@n4.nabble.com> <1329282503841-4389521.post@n4.nabble.com> Message-ID: <20120215063812.GB2473@leki> On Tue, Feb 14, 2012 at 09:08:23PM -0800, killkenny64 wrote: > > > killkenny64 wrote > > > > What is wrong with "movie=logo.png [logo];[in][logo] > > overlay=10:main_h-overlay_h-10 [out]"? > > > > This is driving me crazy, I can't seem to use the movie source in any way at > all, > > Trying to overlay one video on another doesn't work either: > > "movie=overlay.mp4 [movie]; [in] [movie] overlay=720:480 [out]" > > I still get AVERROR -22 > > Maybe I'm setting up the filterchain wrong, I just followed filtering.c, but > I can get other filters to work, just not when using the movie source > This is not the API mailing list, you should post on https://lists.ffmpeg.org/pipermail/libav-user/ BTW, maybe you should share your code too. Just a guess, are you sure "[in]" and "[out]" are correctly linked to your inputs and outputs? As usual, you may want to compare with ffmpeg.c too. [...] -- Cl?ment B. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 490 bytes Desc: not available URL: From blacktrash at gmx.net Wed Feb 15 07:40:09 2012 From: blacktrash at gmx.net (Christian Ebert) Date: Wed, 15 Feb 2012 06:40:09 +0000 Subject: [FFmpeg-user] Recommended x.264 preset for live x.264 encoding In-Reply-To: References: <4F268796.4040201@gmail.com> <4F27AC7E.4040301@gmail.com> Message-ID: <20120215064009.GX93345@krille.blacktrash.org> * Stas Oskin on Tuesday, February 14, 2012 at 20:12:48 +0200 > Hi. > > Yes, except using the correct syntax that I had in my email, rather >> than the gobbledegook you had. Eg '-c:v libx264', not '-c:libx264', >> '-profile:v baseline', not '-profile:baseline' etc. See the example >> below again. >> >> > Thanks for clarification, I guess it's the new format ffmpeg accepts? As > all previous versions haven't required the v param. > > BTW when I encode for iphone/ipad I use a higher level than that, Main at L3.0 >> > > I chose this according to planned bit-rate (500 Kbps), but will try this > one as well. I used to be able to specify: -c:v libx264 -preset:v -pre:v ipod640 but now get: File for preset 'ipod640' not found even though libx264-ipod640.ffpreset and libx264-ipod320.ffpreset (classic) are still distributed and installed at /usr/local/share/ffmpeg/ $ cat /usr/local/share/ffmpeg/libx264-ipod640.ffpreset vprofile=baseline level=30 maxrate=10000000 bufsize=10000000 A pity that ffmpeg so often breaks existing scripts. c -- theatre - books - texts - movies Black Trash Productions at home: http://www.blacktrash.org Black Trash Productions on Facebook: http://www.facebook.com/blacktrashproductions From j.baumgarten at netvisio.com Wed Feb 15 09:29:40 2012 From: j.baumgarten at netvisio.com (Julien Baumgarten) Date: Wed, 15 Feb 2012 09:29:40 +0100 Subject: [FFmpeg-user] FFMPEG and RTMP In-Reply-To: References: Message-ID: The server is a Red5 server. I'm sure that the server works and responds. I succeed to publish streams on the server with FFMPEG but not to get some stream. Yours sincerely, Julien Le 14 f?vr. 2012 ? 18:52, Alexander Bokovikov a ?crit : > > On 14.02.2012, at 22:23, Julien Baumgarten wrote: > >> Closing connection: NetStream.Play.StreamNotFound >> rtmp://10.120.1.90/oflaDemo/test123: Operation not permitted > > Maybe I'm wrong, but as far as I understand "NetStream.Play.StreamNotFound" is the server response. So, you should check the server side. What you have on the server side? > > HTH! > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From renaux.jacky at orange.fr Wed Feb 15 10:00:00 2012 From: renaux.jacky at orange.fr (jacky) Date: Wed, 15 Feb 2012 10:00:00 +0100 Subject: [FFmpeg-user] RE : FFMPEG and RTMP In-Reply-To: Message-ID: <87A43053499848E5AAA77F687C66BA48@portable> -----Message d'origine----- De : ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] De la part de Julien Baumgarten Envoy? : mercredi 15 f?vrier 2012 09:30 ? : FFmpeg user questions and RTFMs Objet : Re: [FFmpeg-user] FFMPEG and RTMP The server is a Red5 server. I'm sure that the server works and responds. I succeed to publish streams on the server with FFMPEG but not to get some stream. Yours sincerely, Julien Le 14 f?vr. 2012 ? 18:52, Alexander Bokovikov a ?crit : > > On 14.02.2012, at 22:23, Julien Baumgarten wrote: > >> Closing connection: NetStream.Play.StreamNotFound >> rtmp://10.120.1.90/oflaDemo/test123: Operation not permitted > > Maybe I'm wrong, but as far as I understand > "NetStream.Play.StreamNotFound" is the server response. So, you should > check the server side. What you have on the server side? > > HTH! > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user I , I have the same problem , and already send a message Using FMLE to send RTMP streams to RED5 all is OK With FFMPEG if you look into the red5.log it is written o.r.s.n.r.codec.RTMPProtocolDecoder - unkown object type: 0 And then red5 close the session I was not able to find out what is missing Regards Jacky From j.baumgarten at netvisio.com Wed Feb 15 10:03:47 2012 From: j.baumgarten at netvisio.com (Julien Baumgarten) Date: Wed, 15 Feb 2012 10:03:47 +0100 Subject: [FFmpeg-user] FFMPEG and RTMP In-Reply-To: <87A43053499848E5AAA77F687C66BA48@portable> References: <87A43053499848E5AAA77F687C66BA48@portable> Message-ID: Should I understand that I will not be able to use the last version of FFMPEG with my red5 server? Your sincerely, Julien Le 15 f?vr. 2012 ? 10:00, jacky a ?crit : > I , I have the same problem , and already send a message > Using FMLE to send RTMP streams to RED5 all is OK > With FFMPEG if you look into the red5.log it is written > o.r.s.n.r.codec.RTMPProtocolDecoder - unkown object type: 0 > And then red5 close the session > I was not able to find out what is missing > > Regards > Jacky > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From renaux.jacky at orange.fr Wed Feb 15 10:10:09 2012 From: renaux.jacky at orange.fr (jacky) Date: Wed, 15 Feb 2012 10:10:09 +0100 Subject: [FFmpeg-user] RE : FFMPEG and RTMP In-Reply-To: Message-ID: -----Message d'origine----- De : ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] De la part de Julien Baumgarten Envoy? : mercredi 15 f?vrier 2012 10:04 ? : FFmpeg user questions and RTFMs Objet : Re: [FFmpeg-user] FFMPEG and RTMP Should I understand that I will not be able to use the last version of FFMPEG with my red5 server? Your sincerely, Julien Le 15 f?vr. 2012 ? 10:00, jacky a ?crit : > I , I have the same problem , and already send a message > Using FMLE to send RTMP streams to RED5 all is OK > With FFMPEG if you look into the red5.log it is written > o.r.s.n.r.codec.RTMPProtocolDecoder - unkown object type: 0 > And then red5 close the session > I was not able to find out what is missing > > Regards > Jacky > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user Hi Presently I do not use FFMPEG for live , but I am still trying with no Succeed till today , I am still trying to figure out what is missing Regards Jacky From andrey.krieger.utkin at gmail.com Wed Feb 15 10:13:36 2012 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Wed, 15 Feb 2012 11:13:36 +0200 Subject: [FFmpeg-user] Use segment muxer and concat: protocol In-Reply-To: References: Message-ID: 2012/2/15 Acer Yang : > It seems, however, have nothing different from UNIX cat utility ... am I > right? For local files, yes. But it allows you concatenating also network streams and pipes. To join video, it would work if you remux it to mpegts, converting h264 streams to Annex B flavour, using -bsf h264_mp4toannexb. Then concat will work, and you can remux it back to mp4 format and it should play good. -- Andrey Utkin From j.baumgarten at netvisio.com Wed Feb 15 10:16:02 2012 From: j.baumgarten at netvisio.com (Julien Baumgarten) Date: Wed, 15 Feb 2012 10:16:02 +0100 Subject: [FFmpeg-user] RE : FFMPEG and RTMP In-Reply-To: References: Message-ID: <1C1B245F-9477-460C-AB30-EE34CD98355E@netvisio.com> Hi, I use Xuggler for live that is why I need FFMPEG I think I have no choice than using the old version for the moment Julien Le 15 f?vr. 2012 ? 10:10, jacky a ?crit : > Hi > Presently I do not use FFMPEG for live , but I am still trying with no > Succeed till today , I am still trying to figure out what is missing > Regards > Jacky > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From renaux.jacky at orange.fr Wed Feb 15 10:28:44 2012 From: renaux.jacky at orange.fr (jacky) Date: Wed, 15 Feb 2012 10:28:44 +0100 Subject: [FFmpeg-user] RE : RE : FFMPEG and RTMP In-Reply-To: <1C1B245F-9477-460C-AB30-EE34CD98355E@netvisio.com> Message-ID: <6908859FB72D4E9F929E55BAFD1FBED6@portable> Hi Is there a tool which can be used to "dissassemble" the rtmp Stream issued by ffmpeg ? It would be interresting to compare What are the differences between FMLE and FFMPEG in term of Rtmp streams My guess is : a line parameter supplied to FFMPEG is missing which stops the Red5 session Which one is still the pending question I have tried different options like f_out="rtmp://194.199.90.19/oflaDemo playpath=canal1 live=1 conn AMF" (f_out specify the output file name to ffmpeg command line) I tried FLV format on H263, H264 to be compatible to RED5 Do we have to be on VBR on CBR ? Regards Jacky -----Message d'origine----- De : ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] De la part de Julien Baumgarten Envoy? : mercredi 15 f?vrier 2012 10:16 ? : FFmpeg user questions and RTFMs Objet : Re: [FFmpeg-user] RE : FFMPEG and RTMP Hi, I use Xuggler for live that is why I need FFMPEG I think I have no choice than using the old version for the moment Julien Le 15 f?vr. 2012 ? 10:10, jacky a ?crit : > Hi > Presently I do not use FFMPEG for live , but I am still trying with no > Succeed till today , I am still trying to figure out what is missing > Regards > Jacky > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From ml at access-dev.com Wed Feb 15 12:10:30 2012 From: ml at access-dev.com (Access-Dev) Date: Wed, 15 Feb 2012 12:10:30 +0100 Subject: [FFmpeg-user] converting a video without sound : Error while opening encoder for output stream #0.1 Message-ID: <4F3B92A6.3070907@access-dev.com> Hello, I m using FFMPEG to convert some videos that comes from a Wowza streaming server. For some reasons, some videos dont have sound and ffmpeg dont want to convert them Video with sound: /usr/bin/ffmpeg -loglevel 0 -i /usr/local/WowzaMediaServer-3.0.4/content/167.flv.flv -ar 44100 -b 700k -sameq -f avi -r 24 -ab 160k 167.avi Result : OK Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding frame= 141 fps= 0 q=0.0 Lsize= 1480kB time=10.97 bitrate=1104.8kbits/s dup=0 drop=8 video:1239kB audio:214kB global headers:0kB muxing overhead 1.800813% Videos infos: Duration: 00:00:11.33, start: 0.000000, bitrate: N/A Stream #0.0: Video: flv, yuv420p, 320x200, 1k tbr, 1k tbn, 1k tbc Stream #0.1: Audio: nellymoser, 44100 Hz, mono, s16 Video without sound: /usr/bin/ffmpeg -loglevel 0 -i /usr/local/WowzaMediaServer-3.0.4/content/169.flv.flv -ar 44100 -b 700k -sameq -f avi -r 24 -ab 160k 169.avi Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height Videos infos: Duration: 00:00:11.24, start: 0.000000, bitrate: N/A Stream #0.0: Video: flv, yuv420p, 320x200, 1k tbr, 1k tbn, 1k tbc Stream #0.1: Audio: [0][0][0][0] / 0x0000, 0 channels How can I tell ffmpeg to create an empty audio track if the source video dont have sound ? Thanks in advance, From dan_coffey at harvard.edu Wed Feb 15 13:05:58 2012 From: dan_coffey at harvard.edu (dcoffey3296) Date: Wed, 15 Feb 2012 04:05:58 -0800 (PST) Subject: [FFmpeg-user] Side-by-side frames In-Reply-To: <1296163046349-3243216.post@n4.nabble.com> References: <4D419BCD.8070005@orange-ftgroup.com> <20110127192244.GA15259@geppetto> <1296163046349-3243216.post@n4.nabble.com> Message-ID: <1329307558319-4390181.post@n4.nabble.com> I am trying to accomplish the same thing (side by side videos). Is it possible to specify paramaters for shrinking/modifying both videos to be transcoded side by side or must i transcode the overlay first? Also, do you have an example command or 2 of how you use pad and overlay to place 2 videos side by side? Any advice is greatly appreciated! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Side-by-side-frames-tp3242528p4390181.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From verem at m1stereo.tv Wed Feb 15 13:18:46 2012 From: verem at m1stereo.tv (Maksym Veremeyenko) Date: Wed, 15 Feb 2012 14:18:46 +0200 Subject: [FFmpeg-user] sws_scale and alpha channel Message-ID: <4F3BA2A6.7040803@m1stereo.tv> Hi, i am trying to extract an alpha channel plane from frame in PIX_FMT_YUVA420P or PIX_FMT_BGRA pixel format but has no luck. i tried to convert to PIX_FMT_YUYV422 with additional plane for alpha channel: struct SwsContext *context = sws_getContext( width, height, pix_fmt, width, height, PIX_FMT_YUYV422, 0, NULL, NULL, NULL); AVPicture output; avpicture_fill( &output, buffer, PIX_FMT_YUYV422, width, height ); output.data[3] = alpha; output.linesize[3] = width; sws_scale( context, frame->data, frame->linesize, 0, height, output.data, output.linesize); sws_freeContext( context ); but buffer for alpha did not changed. should i use *PIX_FMT_YUVA444P* with only alpha plane buffer seted to extract alpha channel only? -- ________________________________________ Maksym Veremeyenko From jdxsolutions at gmail.com Wed Feb 15 13:37:24 2012 From: jdxsolutions at gmail.com (John Dexter) Date: Wed, 15 Feb 2012 12:37:24 +0000 Subject: [FFmpeg-user] Newb question: How can I access h.264-enabled webcams? In-Reply-To: <2F98165D8B8D02448D5D92C5AC77897DC3B23ABF77@yubin3> References: <2F98165D8B8D02448D5D92C5AC77897DC3B23ABF72@yubin3> <4F39DCA1.1020606@gmail.com> <2F98165D8B8D02448D5D92C5AC77897DC3B23ABF77@yubin3> Message-ID: > Well, ultimately I would like to process in real time. Actually, at this point, if I could just get the camera stream from the camera (as h.264) over the network to my client, that would be great. Although, I do need to decompress it on that end. I'm guessing I can do that? Would like to load as DLL or .bundle (win or mac) or pull from a client that can hand me uncompressed frames. I'd be interested to hear about real-time encoding too for a slightly different case. My source would be a 3D engine which is rendering frames to an ARGB buffer rather than a webcam. > > (I take it that the custom is to reply at the bottom, rather than top of emails?) Yes, bottom-post and turn of HTML/rich formatting if you want to avoid being told off :) From jdxsolutions at gmail.com Wed Feb 15 13:41:25 2012 From: jdxsolutions at gmail.com (John Dexter) Date: Wed, 15 Feb 2012 12:41:25 +0000 Subject: [FFmpeg-user] ffmpeg user list rules In-Reply-To: <20120214150006.08e54030@lrcd.com> References: <20120130133336.41f98cf7@lrcd.com> <20120214150006.08e54030@lrcd.com> Message-ID: > > Additions? Questions? Comments? I was told off for using HTML format (on by default in gmail) - is that a rule? From rhodri at kynesim.co.uk Wed Feb 15 14:57:26 2012 From: rhodri at kynesim.co.uk (Rhodri James) Date: Wed, 15 Feb 2012 13:57:26 -0000 Subject: [FFmpeg-user] ffmpeg user list rules In-Reply-To: References: <20120130133336.41f98cf7@lrcd.com> <20120214150006.08e54030@lrcd.com> Message-ID: On Wed, 15 Feb 2012 12:41:25 -0000, John Dexter wrote: >> >> Additions? Questions? Comments? > > I was told off for using HTML format (on by default in gmail) - is that > a rule? HTML email is rarely a good idea -- deleting it is still one of my more effective spam-traps. Deleting attributions is a tad impolite as well; I have to go upthread to find out who you were quoting. In this case it doesn't matter much, and trimming the quoted text down to just that line was definitely the friendly thing to do, but more convoluted conversations can get very confusing very quickly. One other suggestion, Lou; attaching files on mailing lists seems to be a chancy business. For anything larger than two or three frames of video, it's probably better (and definitely politer) to put it on a download site or supply it via FTP. -- Rhodri James Kynesim Ltd From jdxsolutions at gmail.com Wed Feb 15 15:13:02 2012 From: jdxsolutions at gmail.com (John Dexter) Date: Wed, 15 Feb 2012 14:13:02 +0000 Subject: [FFmpeg-user] ffmpeg user list rules In-Reply-To: References: <20120130133336.41f98cf7@lrcd.com> <20120214150006.08e54030@lrcd.com> Message-ID: On 15 February 2012 13:57, Rhodri James wrote: > > Deleting attributions is a tad impolite as well; I have to go upthread > to find out who you were quoting. ?In this case it doesn't matter much, > and trimming the quoted text down to just that line was definitely the > friendly thing to do, but more convoluted conversations can get very > confusing very quickly. Ah, that's a good point. I tend to do it simply to remove all the non-relevant text as things get longer, but leaving the sender's name would make sense when clipping. Like I've done in this email, in fact. Or do you think leaving the entire content in is better? From rhodri at kynesim.co.uk Wed Feb 15 15:17:51 2012 From: rhodri at kynesim.co.uk (Rhodri James) Date: Wed, 15 Feb 2012 14:17:51 -0000 Subject: [FFmpeg-user] ffmpeg user list rules In-Reply-To: References: <20120130133336.41f98cf7@lrcd.com> <20120214150006.08e54030@lrcd.com> Message-ID: On Wed, 15 Feb 2012 14:13:02 -0000, John Dexter wrote: > On 15 February 2012 13:57, Rhodri James wrote: >> >> Deleting attributions is a tad impolite as well; I have to go upthread >> to find out who you were quoting. In this case it doesn't matter much, >> and trimming the quoted text down to just that line was definitely the >> friendly thing to do, but more convoluted conversations can get very >> confusing very quickly. > > Ah, that's a good point. I tend to do it simply to remove all the > non-relevant text as things get longer, but leaving the sender's name > would make sense when clipping. Like I've done in this email, in fact. > Or do you think leaving the entire content in is better? No, no, trimming appropriately is better. Sometimes you lose things that turn out to be important later, but at least you can read the results. ::Looks sternly at dE.:: :-) -- Rhodri James Kynesim Ltd From sjames at susanjamescompany.com Wed Feb 15 15:26:46 2012 From: sjames at susanjamescompany.com (Susan James) Date: Wed, 15 Feb 2012 06:26:46 -0800 Subject: [FFmpeg-user] ffmpeg 0.10 on Linux Message-ID: Hi All, I'm running into issues with the 'AC EOB marker is absent' on both Linux and MAC ffmpeg, and my output file has no video. Below is my command string and full output. I'm encoding an H.264 hi res to mp4. The output file has good audio but no video. see the output below. I would really appreciate any help or leads on how to resolve this issue. thank you, Susan --------------------- on Gentoo Linux ---------------------- % ffmpeg -i 1.Chandi.HiRes -ab 320k -vol 1024 -vcodec libx264 -b:v 2000k 1.Chandi.HiRes.tv.mp4 ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 14 2012 04:02:15 with gcc 4.5.3 configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -fomit-frame-pointer -march=core2' --extra-cflags='-O2 -pipe -fomit-frame-pointer -march=core2' --extra-cxxflags='-O2 -pipe -fomit-frame-pointer -march=core2' --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --disable-stripping --disable-debug --disable-doc --disable-network --disable-vaapi --enable-openssl --enable-nonfree --enable-gnutls --enable-libmp3lame --enable-libvo-aacenc --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libfaac --enable-nonfree --enable-libcdio --enable-libdc1394 --enable-openal --disable-indev=v4l --disable-indev=v4l2 --disable-indev=jack --enable-x11grab --enable-libfreetype --enable-libvpx --enable-libopenjpeg --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable-avx --disable-mmx2 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/source/ChandiHiResClasses.wordpress/1.Chandi.HiRes': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2008-02-08 12:52:46 Duration: 01:00:03.53, start: 0.000000, bitrate: 30313 kb/s Stream #0:0(eng): Video: dvvideo (dvc / 0x20637664), yuv411p, 720x480 [SAR 8:9 DAR 4:3], 28771 kb/s, SAR 10:11 DAR 15:11, 29.97 fps, 29.97 tbr, 2997 tbn, 29.97 tbc Metadata: creation_time : 2008-02-08 12:52:46 handler_name : ?Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: creation_time : 2008-02-08 12:52:46 handler_name : ?Apple Alias Data Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2008-02-08 13:00:46 handler_name : ?Apple Alias Data Handler timecode : 01:00:00;00 Incompatible pixel format 'yuv411p' for codec 'libx264', auto-selecting format 'yuv422p' [buffer @ 0x182ae80] w:720 h:480 pixfmt:yuv411p tb:1/1000000 sar:10/11 sws_param: [buffersink @ 0x1820e30] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x18211f0] w:720 h:480 fmt:yuv411p -> w:720 h:480 fmt:yuv422p flags:0x4 [libx264 @ 0x181ef80] using SAR=10/11 [libx264 @ 0x181ef80] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x181ef80] profile High 4:2:2, level 3.0, 4:2:2 8-bit [libx264 @ 0x181ef80] 264 - core 120 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to '/target/Chandi_Classes_640X480_1-29-12/1.Chandi.HiRes.tv.mp4': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2008-02-08 12:52:46 encoder : Lavf53.31.100 Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv422p, 720x480 [SAR 10:11 DAR 15:11], q=-1--1, 2000 kb/s, 2997 tbn, 29.97 tbc Metadata: creation_time : 2008-02-08 12:52:46 handler_name : ?Apple Alias Data Handler Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, 2 channels, s16, 320 kb/s Metadata: creation_time : 2008-02-08 12:52:46 handler_name : ?Apple Alias Data Handler Stream mapping: Stream #0:0 -> #0:0 (dvvideo -> libx264) Stream #0:1 -> #0:1 (pcm_s16le -> libfaac) Press [q] to stop, [?] for help AC EOB marker is absent pos=80e= 20438kB time=00:01:19.01 bitrate=2119.0kbits/s [dvvideo @ 0x18151b0] AC EOB marker is absent pos=65 [dvvideo @ 0x18151b0] AC EOB marker is absent pos=69 [dvvideo @ 0x18151b0] AC EOB marker is absent pos=64 Last message repeated 2 times [dvvideo @ 0x18151b0] AC EOB marker is absent pos=69 frame=107998 fps= 5 q=-1.0 Lsize= 935583kB time=01:00:03.47 bitrate=2126.9kbits/s video:879389kB audio:52320kB global headers:0kB muxing overhead 0.415819% [libx264 @ 0x181ef80] frame I:432 Avg QP:19.00 size: 65453 [libx264 @ 0x181ef80] frame P:42324 Avg QP:21.99 size: 16676 [libx264 @ 0x181ef80] frame B:65242 Avg QP:24.92 size: 2551 [libx264 @ 0x181ef80] consecutive B-frames: 0.6% 38.2% 55.5% 5.7% [libx264 @ 0x181ef80] mb I I16..4: 4.8% 86.3% 8.9% [libx264 @ 0x181ef80] mb P I16..4: 0.3% 3.6% 0.4% P16..4: 50.5% 24.4% 17.9% 0.0% 0.0% skip: 2.8% [libx264 @ 0x181ef80] mb B I16..4: 0.0% 0.2% 0.0% B16..8: 29.5% 3.0% 0.8% direct: 7.4% skip:59.1% L0:34.5% L1:53.7% BI:11.7% [libx264 @ 0x181ef80] final ratefactor: 19.77 [libx264 @ 0x181ef80] 8x8 transform intra:83.8% inter:70.9% [libx264 @ 0x181ef80] coded y,uvDC,uvAC intra: 86.7% 98.8% 70.3% inter: 26.3% 55.6% 6.2% [libx264 @ 0x181ef80] i16 v,h,dc,p: 26% 19% 4% 51% [libx264 @ 0x181ef80] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 15% 21% 6% 7% 9% 8% 9% 8% [libx264 @ 0x181ef80] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 14% 13% 7% 9% 10% 8% 8% 5% [libx264 @ 0x181ef80] i8c dc,h,v,p: 43% 15% 28% 14% [libx264 @ 0x181ef80] Weighted P-Frames: Y:1.3% UV:0.5% [libx264 @ 0x181ef80] ref P L0: 44.4% 16.6% 27.6% 11.3% 0.1% [libx264 @ 0x181ef80] ref B L0: 73.9% 22.9% 3.2% [libx264 @ 0x181ef80] ref B L1: 95.4% 4.6% [libx264 @ 0x181ef80] kb/s:1999.13 From jdxsolutions at gmail.com Wed Feb 15 15:28:27 2012 From: jdxsolutions at gmail.com (John Dexter) Date: Wed, 15 Feb 2012 14:28:27 +0000 Subject: [FFmpeg-user] Newb question: How can I access h.264-enabled webcams? In-Reply-To: References: <2F98165D8B8D02448D5D92C5AC77897DC3B23ABF72@yubin3> <4F39DCA1.1020606@gmail.com> <2F98165D8B8D02448D5D92C5AC77897DC3B23ABF77@yubin3> Message-ID: On 15 February 2012 12:37, John Dexter wrote: >> Well, ultimately I would like to process in real time. Actually, at this point, if I could just get the camera stream from the camera (as h.264) over the network to my client, that would be great. Although, I do need to decompress it on that end. I'm guessing I can do that? Would like to load as DLL or .bundle (win or mac) or pull from a client that can hand me uncompressed frames. > > I'd be interested to hear about real-time encoding too for a slightly > different case. My source would be a 3D engine which is rendering > frames to an ARGB buffer rather than a webcam. I've been looking at this and came across http://mammothserver.org/ - it sounds relevant to me but no idea if it is to you. It does mention it uses ffmpeg. Anyone know of it? From msmith at bitgravity.com Wed Feb 15 17:54:17 2012 From: msmith at bitgravity.com (Michael Smithng) Date: Wed, 15 Feb 2012 08:54:17 -0800 Subject: [FFmpeg-user] ffmpeg + rtsp results in log output not displaying frame size nor bitrate In-Reply-To: References: <3EB4DA80-9F61-4E8D-920B-967FBD5772EC@bitgravity.com> <546729E1-3461-47A4-A48B-7E0B88AA3041@bitgravity.com> Message-ID: <2BFD3D5C-CB6F-4663-91DE-C354F0DEA016@bitgravity.com> Carl, Yes, I am an FFmpeg user, however... In the event that I'm unable to bump my production release (this simply can't be done without proper vetting), how would you propose that I debug this issue in 0.9.1? Any tips? On Feb 12, 2012, at 3:15 PM, Carl Eugen Hoyos wrote: > Michael Smithng bitgravity.com> writes: > >> Had I known there was a newer release, I would have been >> more than happy to have tried it first. > > If you are a FFmpeg user, please always use git head, > it contains more features and less bugs than any release. > See http://ffmpeg.org/download.html > > (Sorry about my other comment, I misread the output.) > > Carl Eugen > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From tevans.uk at googlemail.com Wed Feb 15 17:54:35 2012 From: tevans.uk at googlemail.com (Tom Evans) Date: Wed, 15 Feb 2012 16:54:35 +0000 Subject: [FFmpeg-user] ffmpeg 0.10 on Linux In-Reply-To: References: Message-ID: On Wed, Feb 15, 2012 at 2:26 PM, Susan James wrote: > Hi All, > > I'm running into issues with the 'AC EOB marker is absent' on both Linux and MAC ffmpeg, and my output file has no video. > Below is my command string and full output. > > I'm encoding an H.264 hi res to mp4. ?The output file has good audio but no video. ?see the output below. > > I would really appreciate any help or leads on how to resolve this issue. > > thank you, > Susan > Hmm. Are you sure it has no video? The last status line says: frame=107998 fps= 5 q=-1.0 Lsize= 935583kB time=01:00:03.47 bitrate=2126.9kbits/s video:879389kB audio:52320kB global headers:0kB muxing overhead 0.415819% ie it has encoded ~850MB of video data. Also the stream map says: Stream #0:0 -> #0:0 (dvvideo -> libx264) Stream #0:1 -> #0:1 (pcm_s16le -> libfaac) How are you testing the output file? Could you show ffprobe output on the output file? Cheers Tom From stozher at gmail.com Wed Feb 15 17:37:00 2012 From: stozher at gmail.com (John Saturday) Date: Wed, 15 Feb 2012 18:37:00 +0200 Subject: [FFmpeg-user] How can I join video files? Message-ID: Hello, please add this example to FAQ "How can I join video files?" . Concatenate two VOB files: ffmpeg -i "concat:VTS_01_1.VOB|VTS_01_2.VOB" -f mpeg -c copy output.mpeg Concatenate two MKV, MP4 files with H264 video stream: ffmpeg -i file-01.mkv -f mpegts -c copy -bsf:v h264_mp4toannexb file-01.mpeg.ts ffmpeg -i file-02.mkv -f mpegts -c copy -bsf:v h264_mp4toannexb file-02.mpeg.ts ffmpeg -isync -i "concat:file-01.mpeg.ts|file-02.mpeg.ts" -f matroska -c copy output.mkv Thanks to all FFMPEG team for hard work! From mike.scheutzow at alcatel-lucent.com Wed Feb 15 21:31:22 2012 From: mike.scheutzow at alcatel-lucent.com (Mike Scheutzow) Date: Wed, 15 Feb 2012 15:31:22 -0500 Subject: [FFmpeg-user] Trouble with LPCM audio from D-VHS deck In-Reply-To: <20120215020621.GN5816@mrvideo.vidiot.com> References: <20120214205140.GC5816@mrvideo.vidiot.com> <20120215013737.GK5816@mrvideo.vidiot.com> <20120215020621.GN5816@mrvideo.vidiot.com> Message-ID: <4F3C161A.10701@alcatel-lucent.com> Mike Brown wrote: > On to the next issue. > > I have a D-VHS deck that will firewire the analog video to MPEG-2 video > conversion to my computer, via TSReader. Within the mux is a MPEG audio > stream and a LPCM audio stream. > > [mpegts @ 0214A9E0] decoding for stream 2 failed > [mpegts @ 0214A9E0] Could not find codec parameters (Audio: aac_latm (BSSD / 0x44535342), 0 channels, s16) From the source, the mpegts demux doesn't appear to recognize a stream type of 0x83 and a registration descriptor "BSSD". So this stream type is not implemented yet. Does TSReader document the format that they're putting into that stream? Often these formats have some kind of frame header to specify word size, number of channels to the decoder. Mike Scheutzow From lou at lrcd.com Wed Feb 15 21:36:58 2012 From: lou at lrcd.com (Lou) Date: Wed, 15 Feb 2012 11:36:58 -0900 Subject: [FFmpeg-user] Side-by-side frames In-Reply-To: <1329307558319-4390181.post@n4.nabble.com> References: <4D419BCD.8070005@orange-ftgroup.com> <20110127192244.GA15259@geppetto> <1296163046349-3243216.post@n4.nabble.com> <1329307558319-4390181.post@n4.nabble.com> Message-ID: <20120215113658.5aa34f38@lrcd.com> On Wed, 15 Feb 2012 04:05:58 -0800 (PST) dcoffey3296 wrote: > I am trying to accomplish the same thing (side by side videos). Is it > possible to specify paramaters for shrinking/modifying both videos to be > transcoded side by side or must i transcode the overlay first? > > Also, do you have an example command or 2 of how you use pad and overlay to > place 2 videos side by side? ffmpeg -i right.mp4 -filter:v "[in]setpts=PTS-STARTPTS,\ pad=iw*2:ih:iw:0,[left]overlay=0:0[out];\ movie=left.mp4,setpts=PTS-STARTPTS[left]" output.mp4 Overlay syntax is confusing. Someone else might have a "cleaner" example. > Any advice is greatly appreciated! From brown at mrvideo.vidiot.com Wed Feb 15 21:56:00 2012 From: brown at mrvideo.vidiot.com (Mike Brown) Date: Wed, 15 Feb 2012 14:56:00 -0600 Subject: [FFmpeg-user] Trouble with LPCM audio from D-VHS deck In-Reply-To: <4F3C161A.10701@alcatel-lucent.com> References: <20120214205140.GC5816@mrvideo.vidiot.com> <20120215013737.GK5816@mrvideo.vidiot.com> <20120215020621.GN5816@mrvideo.vidiot.com> <4F3C161A.10701@alcatel-lucent.com> Message-ID: <20120215205600.GD19597@mrvideo.vidiot.com> On Wed, Feb 15, 2012 at 03:31:22PM -0500, Mike Scheutzow wrote: > Mike Brown wrote: >> [mpegts @ 0214A9E0] decoding for stream 2 failed >> [mpegts @ 0214A9E0] Could not find codec parameters (Audio: aac_latm (BSSD / 0x44535342), 0 channels, s16) > > From the source, the mpegts demux doesn't appear to recognize a stream type > of 0x83 and a registration descriptor "BSSD". So this stream type is not > implemented yet. > > Does TSReader document the format that they're putting into that stream? > Often these formats have some kind of frame header to specify word size, > number of channels to the decoder. I'll have to rerun a capture to collect that data. I can get an HTML file of all that it knows and put it up on my server. I'll try and get that done over the next couple of days. MB -- e-mail: vidiot at vidiot.com | vidiot at vidiot.net /~\ The ASCII 6082066843 at email.uscc.net (140 char limit) \ / Ribbon Campaign Visit - URL: http://vidiot.com/ X Against http://vidiot.net/ / \ HTML Email From bostjan.strojan at gmail.com Wed Feb 15 22:22:56 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Wed, 15 Feb 2012 22:22:56 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: References: <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <1329162982842-4385057.post@n4.nabble.com> <1329167453881-4385316.post@n4.nabble.com> <4F39819B.10704@gmx.de> Message-ID: 2012/2/14 Bo?tjan Strojan : one old frame must fit exactly one new frame > (any kind of frame belnding or other manipulation is not wanted), > which changes the length of the clip, so audio needs to be stretched > and resampled to 48k. This kind of procedure seems to be working, 24fps to 25fps example: a. ffmpeg -i 24.mov -r 25 -vsync drop -vcodec prores -profile 3 -an 25.mov b. extract audio from 24.mov to 24.wav c. sox 24.wav 25.wav speed 1.041666666666 (or tempo maybe) etc b. From bostjan.strojan at gmail.com Wed Feb 15 23:00:35 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Wed, 15 Feb 2012 23:00:35 +0100 Subject: [FFmpeg-user] FFMpeg H.264 to ProRez In-Reply-To: References: <1328995825229-4379972.post@n4.nabble.com> <1329138994863-4383712.post@n4.nabble.com> <1329156662956-4384678.post@n4.nabble.com> <1329162516182-4385036.post@n4.nabble.com> <1329162982842-4385057.post@n4.nabble.com> <1329167453881-4385316.post@n4.nabble.com> <4F39819B.10704@gmx.de> Message-ID: 2012/2/15 Bo?tjan Strojan : > This kind of procedure seems to be working, 24fps to 25fps example: > > a. ffmpeg -i 24.mov -r 25 -vsync drop -vcodec prores -profile 3 -an 25.mov > b. extract audio from 24.mov to 24.wav > c. sox 24.wav 25.wav speed 1.041666666666 (or tempo maybe) > etc > > b. p.s. sample with burned-in 24 and 25 fps timecode: http://sourceforge.net/projects/resizecalc/files/osxffdrop/video/syncTestBunny/ From wuhaa at mail.com Wed Feb 15 23:22:35 2012 From: wuhaa at mail.com (wu haa) Date: Wed, 15 Feb 2012 17:22:35 -0500 Subject: [FFmpeg-user] (no subject) Message-ID: <20120215222236.282660@gmx.com> Hi, I have the following program comming from UDP: Program 167 Metadata: service_name : CNC World English service_provider: Stream #0:5[0x10f5]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 704x480 [SAR 10:11 DAR 4:3], 15000 kb/s, 33.65 fps, 29.97 tbr, 90k tbn, 59.94 tbc Stream #0:6[0x10f6]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16, 128 kb/s How can i use this information to capture and encode this into mpegts (or .ts) I have tried the following without any luck: ffmpeg -y -i udp://@:5001 -map p:"167" -acodec libmp3lame -ar 48000 -ab 128k -vcodec libx264 -f mpegts -vb 15000k -s 704x480 -aspect 16:9 -r 34.79 myfile.ts Thsi results in an error: [libx264 @ 0xd1e460] using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT [libx264 @ 0xd1e460] profile High, level 4.1 [mpegts @ 0xb48b40] muxrate VBR, pcr every 3 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to '/var/www/varinder.ts': Metadata: encoder : Lavf54.0.100 Stream #0:0: Video: h264, yuv420p, 704x480, q=-1--1, 15000 kb/s, 90k tbn, 34.79 tbc Stream #0:1: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s Stream mapping: Stream #0:5 -> #0:0 (mpeg2video -> libx264) Stream #0:6 -> #0:1 (mp2 -> libmp3lame) Press [q] to stop, [?] for help *[udp @ 0xa358e0] circular_buffer: OVERRUN* Someone please assist... How can i take the information provided by the program Stream #0:5[0x10f5]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 704x480 [SAR 10:11 DAR 4:3], 15000 kb/s, 33.65 fps, 29.97 tbr, 90k tbn, 59.94 tbc and transloate it into proper options to capture it. Thank you, Wu From kennethjjgibson at gmail.com Thu Feb 16 00:32:56 2012 From: kennethjjgibson at gmail.com (killkenny64) Date: Wed, 15 Feb 2012 15:32:56 -0800 (PST) Subject: [FFmpeg-user] AVERROR code on avfilter_graph_config In-Reply-To: <20120215063812.GB2473@leki> References: <1328824489453-4374534.post@n4.nabble.com> <1328828029792-4374724.post@n4.nabble.com> <1329282503841-4389521.post@n4.nabble.com> <20120215063812.GB2473@leki> Message-ID: <1329348776288-4392408.post@n4.nabble.com> Cl?ment B?sch wrote > > This is not the API mailing list, you should post on > https://lists.ffmpeg.org/pipermail/libav-user/ > Sorry about that, I didn't realise Cl?ment B?sch wrote > > BTW, maybe you should share your code too. > I originally didn't post my code as it was pretty much just a copy-paste of filtering.c Cl?ment B?sch wrote > > Just a guess, are you sure > "[in]" and "[out]" are correctly linked to your inputs and outputs? As > usual, you may want to compare with ffmpeg.c too. > Thanks for the guess, it turns out it was a really embarrassing mistake where the offset of the overlay led to the overlay image falling outside of the size of the video. A very novice mistake >.< I guess the error threw me from thinking it was something as simple as that. Thanks again for you time =) -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/AVERROR-code-on-avfilter-graph-config-tp4374534p4392408.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From de.techno at gmail.com Thu Feb 16 04:50:09 2012 From: de.techno at gmail.com (dE .) Date: Thu, 16 Feb 2012 09:20:09 +0530 Subject: [FFmpeg-user] converting a video without sound : Error while opening encoder for output stream #0.1 In-Reply-To: <4F3B92A6.3070907@access-dev.com> References: <4F3B92A6.3070907@access-dev.com> Message-ID: <4F3C7CF1.9050909@gmail.com> On 02/15/12 16:40, Access-Dev wrote: > Hello, > > I m using FFMPEG to convert some videos that comes from a Wowza > streaming server. > > For some reasons, some videos dont have sound and ffmpeg dont want to > convert them > > Video with sound: > > /usr/bin/ffmpeg -loglevel 0 -i > /usr/local/WowzaMediaServer-3.0.4/content/167.flv.flv -ar 44100 -b > 700k -sameq -f avi -r 24 -ab 160k 167.avi > > > Result : OK > > Stream mapping: > Stream #0.0 -> #0.0 > Stream #0.1 -> #0.1 > > Press [q] to stop encoding > frame= 141 fps= 0 q=0.0 Lsize= 1480kB time=10.97 > bitrate=1104.8kbits/s dup=0 drop=8 > video:1239kB audio:214kB global headers:0kB muxing overhead 1.800813% > > Videos infos: > > Duration: 00:00:11.33, start: 0.000000, bitrate: N/A > Stream #0.0: Video: flv, yuv420p, 320x200, 1k tbr, 1k tbn, 1k tbc > Stream #0.1: Audio: nellymoser, 44100 Hz, mono, s16 > > > Video without sound: > > /usr/bin/ffmpeg -loglevel 0 -i > /usr/local/WowzaMediaServer-3.0.4/content/169.flv.flv -ar 44100 -b > 700k -sameq -f avi -r 24 -ab 160k 169.avi > > Stream mapping: > Stream #0.0 -> #0.0 > Stream #0.1 -> #0.1 > Error while opening encoder for output stream #0.1 - maybe incorrect > parameters such as bit_rate, rate, width or height > > Videos infos: > > Duration: 00:00:11.24, start: 0.000000, bitrate: N/A > Stream #0.0: Video: flv, yuv420p, 320x200, 1k tbr, 1k tbn, 1k tbc > Stream #0.1: Audio: [0][0][0][0] / 0x0000, 0 channels > > > How can I tell ffmpeg to create an empty audio track if the source > video dont have sound ? -an, but this should not happen. What's the output of ffprobe on the file, and can you play it using ffplay. From de.techno at gmail.com Thu Feb 16 05:44:50 2012 From: de.techno at gmail.com (dE .) Date: Thu, 16 Feb 2012 10:14:50 +0530 Subject: [FFmpeg-user] ffmpeg 0.10 on Linux In-Reply-To: References: Message-ID: <4F3C89C2.8030401@gmail.com> On 02/15/12 22:24, Tom Evans wrote: > On Wed, Feb 15, 2012 at 2:26 PM, Susan James > wrote: >> Hi All, >> >> I'm running into issues with the 'AC EOB marker is absent' on both Linux and MAC ffmpeg, and my output file has no video. >> Below is my command string and full output. >> >> I'm encoding an H.264 hi res to mp4. The output file has good audio but no video. see the output below. >> >> I would really appreciate any help or leads on how to resolve this issue. >> >> thank you, >> Susan >> > Hmm. Are you sure it has no video? The last status line says: > > frame=107998 fps= 5 q=-1.0 Lsize= 935583kB time=01:00:03.47 > bitrate=2126.9kbits/s > video:879389kB audio:52320kB global headers:0kB muxing overhead 0.415819% > > ie it has encoded ~850MB of video data. > > Also the stream map says: > > Stream #0:0 -> #0:0 (dvvideo -> libx264) > Stream #0:1 -> #0:1 (pcm_s16le -> libfaac) > > How are you testing the output file? Could you show ffprobe output on > the output file? > > Cheers > > Tom > _______________________________________________ Apart from this, what's '-vol', It's undocumented in the man page. Can you please remove and try? Also I think you should check and post ffmpeg USE flags on Gentoo. From bostjan.strojan at gmail.com Thu Feb 16 08:18:17 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Thu, 16 Feb 2012 08:18:17 +0100 Subject: [FFmpeg-user] ffmpeg user list rules In-Reply-To: <20120214150006.08e54030@lrcd.com> References: <20120130133336.41f98cf7@lrcd.com> <20120214150006.08e54030@lrcd.com> Message-ID: On Wed, Feb 15, 2012 at 1:00 AM, Lou wrote: > Additions? Questions? Comments? Thanks, an overview/questions/additions: ------------------------------------------------ ffmpeg-user mailing list specific rules: * Avoid top-posting. Interleaved replying is standard etiquette. an example of what you should NOT do http://en.wikipedia.org/wiki/Posting_style#Top-posting * Do not hijack threads (replying to a thread and changing the subject line to something completely unrelated that was not being discussed within the original thread). * Configure your mail client to break lines after 70-80 characters. (why exactly?) p.s. it appears that gmail should break at 78 char. How to provide the right information: * Use recent ffmpeg from Git or a supported version of ffmpeg (see download page) if possible. * Show your ffmpeg command and the complete, uncut console output of your command. * If you attach files avoid compressing small files; uncompressed is preferred. (that's probably for patches/text files?) * Use minimal commands to help narrow down what is causing the issue. Exclude filters and external encoders (usually anything lib*, such as libx264) if possible. (So there is no support for external encoders such as x264, vp8?) * Provide a link to samples if applicable (see datafilehost.com or mediafire.com if you need a file service). * Avoid posting command lines that use shell variables. We need commands that allow anyone to easily duplicate your issue. * I was told off for using HTML format (on by default in gmail) - is that a rule? * Deleting attributions is a tad impolite as well; I have to go upthread to find out who you were quoting. ------------------------------------------------ somebody should put that out of engrish and drop to some ffmpeg related web, link could then be in the footer of all messages of this list? Examples would help as well, for example i had to google to understand/remember what is "top posting". b. From simondaniels23 at gmail.com Thu Feb 16 08:25:18 2012 From: simondaniels23 at gmail.com (Simon Daniels) Date: Wed, 15 Feb 2012 23:25:18 -0800 Subject: [FFmpeg-user] Errors when compiling ffmpeg for iPhone Message-ID: I'm on OS X Lion and I'm trying to compile the armv7 libraries of ffmpeg for the iPhone. I'm using ffmpeg 0.10. Here's my configure line: ./configure --disable-doc --disable-ffmpeg --disable-ffplay --disable-ffserver --disable-ffprobe --enable-cross-compile --arch=arm --target-os=darwin --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc --as='gas-preprocessor/gas-preprocessor.pl/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk --cpu=cortex-a8 --extra-cflags='-arch armv7' --extra-ldflags='-arch armv7 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk' --enable-pic --disable-avdevice --disable-avfilter --disable-zlib --disable-bzlib Configure runs fine although it ends with: WARNING: Compiler does not indicate floating-point ABI, guessing soft. Here are my make results: Users-MacBook-Pro:ffmpeg-0.10 user$ make CC libavformat/4xm.o CC libavformat/a64.o CC libavformat/aacdec.o CC libavformat/ac3dec.o CC libavformat/act.o CC libavformat/adtsenc.o CC libavformat/adxdec.o CC libavformat/aea.o CC libavformat/aiffdec.o CC libavformat/aiffenc.o CC libavformat/allformats.o CC libavformat/amr.o CC libavformat/anm.o CC libavformat/apc.o CC libavformat/ape.o CC libavformat/apetag.o CC libavformat/applehttp.o CC libavformat/applehttpproto.o CC libavformat/asf.o CC libavformat/asfcrypt.o error: invalid operand in inline asm: 'ldr ${0:Q}, $1 ldr ${0:R}, $2 ' make: *** [libavformat/asfcrypt.o] Error 1 Users-MacBook-Pro:ffmpeg-0.10 user$ Any ideas? Thanks! From renaux.jacky at orange.fr Thu Feb 16 08:44:23 2012 From: renaux.jacky at orange.fr (jacky) Date: Thu, 16 Feb 2012 08:44:23 +0100 Subject: [FFmpeg-user] Sound level Message-ID: Hi I have to modify the sound level from several flv files I have to check first how much it must be increased And then later apply the ffmpeg -vol command Is there a command for such ? Thanks for your insight Regards Jacky From lou at lrcd.com Thu Feb 16 09:06:03 2012 From: lou at lrcd.com (Lou) Date: Wed, 15 Feb 2012 23:06:03 -0900 Subject: [FFmpeg-user] ffmpeg user list rules In-Reply-To: References: <20120130133336.41f98cf7@lrcd.com> <20120214150006.08e54030@lrcd.com> Message-ID: <20120216080603.GA30444@mail.lrcd.com> On Thu, Feb 16, 2012 at 08:18:17AM +0100, Bo?tjan Strojan wrote: > On Wed, Feb 15, 2012 at 1:00 AM, Lou wrote: > > Additions? Questions? Comments? > > Thanks, > > an overview/questions/additions: > > ------------------------------------------------ > > ffmpeg-user mailing list specific rules: > * Avoid top-posting. Interleaved replying is standard etiquette. > an example of what you should NOT do > http://en.wikipedia.org/wiki/Posting_style#Top-posting > > * Do not hijack threads (replying to a thread and changing the subject > line to something completely unrelated that was not being discussed > within the original thread). > > * Configure your mail client to break lines after 70-80 characters. > (why exactly?) Unbroken lines are hard to read if they keep going and horizontal scrolling is annoying. > p.s. it appears that gmail should break at 78 char. > > How to provide the right information: > * Use recent ffmpeg from Git or a supported version of ffmpeg (see > download page) if possible. > > * Show your ffmpeg command and the complete, uncut console output > of your command. > > * If you attach files avoid compressing small files; uncompressed is > preferred. (that's probably for patches/text files?) Yes. Perhaps config.log if it isn't obese, or console output attached as text file for some reason, etc. > * Use minimal commands to help narrow down what is causing the issue. > Exclude filters and external encoders (usually anything lib*, such as > libx264) if possible. (So there is no support for external encoders > such as x264, vp8?) External encoders are supported, but it's often easier to narrow down the problem if you can exclude an external encoder as a cause. > * Provide a link to samples if applicable (see datafilehost.com or > mediafire.com if you need a file service). > > * Avoid posting command lines that use shell variables. We need > commands that allow anyone to easily duplicate your issue. > > * I was told off for using HTML format (on by default in gmail) - is > that a rule? Normal, text-only messages are preferred of course, but I would call this a preference more than a rule, personally; especially in this world of "value-added" mail clients (including webmail) that default to ugly, stupid HTML email and other general sillyness. Providing adequate information is more important in my opinion. I want users to be comfortable asking (detailed) questions rather than be intimidated by too many rules. How about this: * Plain text messages are preferred. Please disable HTML email if you can. > * Deleting attributions is a tad impolite as well; I have to go upthread > to find out who you were quoting. > > > ------------------------------------------------ > > somebody should put that out of engrish and drop to some ffmpeg related web, > link could then be in the footer of all messages of this list? Yes, that is my plan. I want to get input and suggestions from actual users first, and then I'll make a patch for http://ffmpeg.org/contact.html As for the footer, I think adding more to it will make it too verbose. > Examples would help as well, for example i had to google to > understand/remember what is "top posting". I'll add a link to explain top-posting. I intended to do that, but it wasn't easy to show in my list. If only we used HTML email...also all of this could be in purple Comic Sans. From pb at das-werkstatt.com Thu Feb 16 09:32:24 2012 From: pb at das-werkstatt.com (Peter B.) Date: Thu, 16 Feb 2012 09:32:24 +0100 Subject: [FFmpeg-user] How can I join video files? In-Reply-To: References: Message-ID: <20120216093224.13326ky8pjqjwuu0@webmail.tuwien.ac.at> Zitat von John Saturday : > Hello, please add this example to FAQ "How can I join video files?" > . > > Concatenate two MKV, MP4 files with H264 video stream: > > ffmpeg -i file-01.mkv -f mpegts -c copy -bsf:v h264_mp4toannexb > file-01.mpeg.ts > ffmpeg -i file-02.mkv -f mpegts -c copy -bsf:v h264_mp4toannexb > file-02.mpeg.ts > > ffmpeg -isync -i "concat:file-01.mpeg.ts|file-02.mpeg.ts" -f matroska > -c copy output.mkv If I read this example correctly, it is necessary to transcode the to-be-joined files to an MPEG transport stream, and "concat:file-01.mpeg.ts|file-02.mpeg.ts" is equivalent to: "cat file-01.mpeg.ts file-01.mpeg.ts > full_length.mpeg.ts" right? If so, does this mean that FFmpeg is not able to concat arbitrary input formats? Is this now somehow possible with FFmpeg? I'm asking, because in our video-archive system, we're joining hundreds of files (cut in minutes) each day: FFv1 AVIs as source. For archiving purposes. Therefore, losing a single bit (e.g. using MPEG as intermediate step) is not an option. I'm currently using mencoder for that. And it's doing a great job: frame *and* audio-sample precise. Thanks, Pb From nicolas.george at normalesup.org Thu Feb 16 09:37:45 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 16 Feb 2012 09:37:45 +0100 Subject: [FFmpeg-user] ffmpeg user list rules In-Reply-To: References: <20120130133336.41f98cf7@lrcd.com> <20120214150006.08e54030@lrcd.com> Message-ID: <20120216083744.GA22398@phare.normalesup.org> L'octidi 28 pluvi?se, an CCXX, Bo?tjan Strojan a ?crit?: > * Configure your mail client to break lines after 70-80 characters. > (why exactly?) > p.s. it appears that gmail should break at 78 char. Because long lines are hard to read (the eye loses the alignment on the carriage return), even more so if they overflow the display area (and you can not have it too large if you want it side by side with code) and either are rewrapped randomly or need scrolling. And because a lot of developers favour mail clients that do not tinker with the text layout, thus making it possible to quote snippets of code with the intended indentation and to write small ASCII-art diagrams or so. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From nicolas.george at normalesup.org Thu Feb 16 09:41:36 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 16 Feb 2012 09:41:36 +0100 Subject: [FFmpeg-user] How can I join video files? In-Reply-To: <20120216093224.13326ky8pjqjwuu0@webmail.tuwien.ac.at> References: <20120216093224.13326ky8pjqjwuu0@webmail.tuwien.ac.at> Message-ID: <20120216084136.GA25175@phare.normalesup.org> L'octidi 28 pluvi?se, an CCXX, Peter B. a ?crit?: > If I read this example correctly, it is necessary to transcode the > to-be-joined files to an MPEG transport stream, and No, remuxing should be enough, provided the files are encoded with the same settings, or at least settings similar enough (same codec). > "concat:file-01.mpeg.ts|file-02.mpeg.ts" is equivalent to: > > "cat file-01.mpeg.ts file-01.mpeg.ts > full_length.mpeg.ts" > > right? Except it takes less disk space. > If so, does this mean that FFmpeg is not able to concat arbitrary > input formats? Indeed. Most formats have global headers and/or indexes, concatenating them na?vely will just produce an invalid stream. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From blacktrash at gmx.net Thu Feb 16 09:53:40 2012 From: blacktrash at gmx.net (Christian Ebert) Date: Thu, 16 Feb 2012 08:53:40 +0000 Subject: [FFmpeg-user] ffmpeg user list rules In-Reply-To: References: Message-ID: <20120216085340.GD835@krille.blacktrash.org> * Bo?tjan Strojan on Monday, January 30, 2012 at 22:03:54 +0100 > Since I'am being reminded to follow some simple rules in my latest > attempts on posting at this list..., is there a command/url/wiki site > or some other generic mailing list type of rules that should i read > and follow? http://linux.sgms-centre.com/misc/netiquette.php might be a good start - no need to reinvent the wheel here. c -- \black\trash movie _SAME TIME SAME PLACE_ --->> http://www.blacktrash.org/underdogma/stsp.php \black\trash audio _ANOTHER TIME ANOTHER PLACE_ --->> http://www.blacktrash.org/underdogma/atap.html From ml at access-dev.com Thu Feb 16 10:21:43 2012 From: ml at access-dev.com (Access-Dev) Date: Thu, 16 Feb 2012 10:21:43 +0100 Subject: [FFmpeg-user] converting a video without sound : Error while opening encoder for output stream #0.1 In-Reply-To: <4F3C7CF1.9050909@gmail.com> References: <4F3B92A6.3070907@access-dev.com> <4F3C7CF1.9050909@gmail.com> Message-ID: <4F3CCAA7.6010003@access-dev.com> > -an, but this should not happen. What's the output of ffprobe on the > file, and can you play it using ffplay. Hi, i m used an automated process , so I want some generic option that can do the trick for all videos (with and without sound) I already noticed -an is working but I guess it will delete sound track for all videos , which is not what I want. From bostjan.strojan at gmail.com Thu Feb 16 10:49:06 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Thu, 16 Feb 2012 10:49:06 +0100 Subject: [FFmpeg-user] ffmpeg user list rules In-Reply-To: <20120216085340.GD835@krille.blacktrash.org> References: <20120216085340.GD835@krille.blacktrash.org> Message-ID: On Thu, Feb 16, 2012 at 9:53 AM, Christian Ebert wrote: > http://linux.sgms-centre.com/misc/netiquette.php > might be a good start - no need to reinvent the wheel here. Well, i think it is usefull to have something specific to ffmpeg mailing list actually, even if it just sets the date to 2012. This page linux.sgms-centre.com/misc/netiquette.php looks like some leftover from 1972 maybe. (I actually had to check the date in the footer, seriously). Also the "rules" suggested in this thread are not that harsh as this linux version. b. From de.techno at gmail.com Thu Feb 16 12:30:50 2012 From: de.techno at gmail.com (dE .) Date: Thu, 16 Feb 2012 17:00:50 +0530 Subject: [FFmpeg-user] Wrong FPS while screencasting. Message-ID: <4F3CE8EA.8040402@gmail.com> Now, when I screencast, I always see 30 FPS in the output, but the recorded videos are definitely not at 30 FPS. This's reproducible every codec. fmpeg -f x11grab -s 1280x800 -i :0.0 -threads 4 -x264opts qp=0 -preset ultrafast -vcodec libx264 test.mp4 ffmpeg version N-37922-g28ba102 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 16 2012 09:48:31 with gcc 4.5.3 configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=native -O2 -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity' --extra-cflags='-march=native -O2 -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity' --extra-cxxflags='-march=native -O2 -fomit-frame-pointer -floop-interchange -floop-strip-mine -floop-block -fgraphite-identity' --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --disable-stripping --disable-debug --disable-doc --disable-network --disable-vaapi --disable-vdpau --enable-libmp3lame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libaacplus --enable-nonfree --enable-openal --disable-indev=v4l --disable-indev=v4l2 --disable-indev=oss --disable-i libavutil 51. 39.100 / 51. 39.100 libavcodec 54. 3.100 / 54. 3.100 libavformat 54. 1.100 / 54. 1.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 [x11grab @ 0x1039090] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1280 height: 800 [x11grab @ 0x1039090] shared memory extension found [x11grab @ 0x1039090] Estimating duration from bitrate, this may be inaccurate Input #0, x11grab, from ':0.0': Duration: N/A, start: 1329391769.095059, bitrate: 982057 kb/s Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1280x800, 982057 kb/s, 29.97 tbr, 1000k tbn, 29.97 tbc File 'test.mp4' already exists. Overwrite ? [y/N] y Incompatible pixel format 'bgr0' for codec 'libx264', auto-selecting format 'yuv420p' [buffer @ 0x1045fb0] w:1280 h:800 pixfmt:bgr0 tb:1/1000000 sar:0/1 sws_param: [buffersink @ 0x1048920] auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out' [scale @ 0x1048c90] w:1280 h:800 fmt:bgr0 -> w:1280 h:800 fmt:yuv420p flags:0x4 [libx264 @ 0x1047620] using cpu capabilities: MMX2 SSE2Slow SlowCTZ [libx264 @ 0x1047620] profile High 4:4:4 Predictive, level 3.2, 4:2:0 8-bit [libx264 @ 0x1047620] 64 - core 118 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=0 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=4 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=cqp mbtree=0 qp=0 Output #0, mp4, to 'test.mp4': Metadata: encoder : Lavf54.1.100 Stream #0:0: Video: h264 (![0][0][0] / 0x0021), yuv420p, 1280x800, q=-1--1, 30k tbn, 29.97 tbc Stream mapping: Stream #0:0 -> #0:0 (rawvideo -> libx264) Press [q] to stop, [?] for help frame= 408 fps= 32 q=-1.0 Lsize= 2529kB time=00:00:13.61 bitrate=1522.0kbits/s dup=245 drop=0 video:2527kB audio:0kB global headers:0kB muxing overhead 0.094609% [libx264 @ 0x1047620] frame I:2 Avg QP: 0.00 size:197778 [libx264 @ 0x1047620] frame P:406 Avg QP: 0.00 size: 5398 [libx264 @ 0x1047620] mb I I16..4: 100.0% 0.0% 0.0% [libx264 @ 0x1047620] mb P I16..4: 48.6% 0.0% 0.0% P16..4: 0.1% 0.0% 0.0% 0.0% 0.0% skip:51.3% [libx264 @ 0x1047620] coded y,uvDC,uvAC intra: 1.6% 0.9% 0.9% inter: 0.1% 0.2% 0.2% [libx264 @ 0x1047620] i16 v,h,dc,p: 98% 2% 0% 0% [libx264 @ 0x1047620] i8c dc,h,v,p: 96% 2% 1% 0% [libx264 @ 0x1047620] kb/s:1520.23 From de.techno at gmail.com Thu Feb 16 12:47:56 2012 From: de.techno at gmail.com (dE .) Date: Thu, 16 Feb 2012 17:17:56 +0530 Subject: [FFmpeg-user] converting a video without sound : Error while opening encoder for output stream #0.1 In-Reply-To: <4F3CCAA7.6010003@access-dev.com> References: <4F3B92A6.3070907@access-dev.com> <4F3C7CF1.9050909@gmail.com> <4F3CCAA7.6010003@access-dev.com> Message-ID: <4F3CECEC.2090209@gmail.com> On 02/16/12 14:51, Access-Dev wrote: > >> -an, but this should not happen. What's the output of ffprobe on the >> file, and can you play it using ffplay. > > Hi, > > i m used an automated process , so I want some generic option that can > do the trick for all videos (with and without sound) > > I already noticed -an is working but I guess it will delete sound > track for all videos , which is not what I want. > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user This sounds like a bug. Maybe you should file for a ticker, but before that I recommend you upload the problematic video as a sample. Also we need the full uncut console output. From romeupalos at gmail.com Thu Feb 16 13:22:33 2012 From: romeupalos at gmail.com (Romeu Palos) Date: Thu, 16 Feb 2012 10:22:33 -0200 Subject: [FFmpeg-user] Problem with realtime MPEG-2 video encoding Message-ID: Hi I'm trying to encode mpeg-2 video in real time, CBR and fulllHD and it works just fine for a long time. But I realize with some video animations, with lots of colors and moviment, it get too slow and the real time is not achieved anymore. this is my command line: ffmpeg -s 1920x1080 -r 30000/1001 -pix_fmt uyvy422 -i /tmp/ffmpeg_input-cSm8Za.yuv -vb 15500000 -maxrate 15500000 -minrate 15500000 -bufsize 2583333 -vstats -s 1920x1080 -r 30000/1001 -flags +ilme+ildct -top 1 -an -threads 12 -vcodec mpeg2video -flags2 +fast -streamid 0:273 -f mpegts - > /tmp/ffmpeg_output-yC91jH.ts1 The video output need to be interlaced. There is any other switch that can make it faster? I tryed to use -me_method zero, but without success. When I use VBR it goes 4 times the real time, but it isn't an option. Thanks in advance. Romeu From rhodri at kynesim.co.uk Thu Feb 16 13:56:35 2012 From: rhodri at kynesim.co.uk (Rhodri James) Date: Thu, 16 Feb 2012 12:56:35 -0000 Subject: [FFmpeg-user] ffmpeg user list rules In-Reply-To: References: <20120216085340.GD835@krille.blacktrash.org> Message-ID: On Thu, 16 Feb 2012 09:49:06 -0000, Bo?tjan Strojan wrote: > On Thu, Feb 16, 2012 at 9:53 AM, Christian Ebert > wrote: >> http://linux.sgms-centre.com/misc/netiquette.php >> might be a good start - no need to reinvent the wheel here. > > Well, i think it is usefull to have something specific to ffmpeg > mailing list actually, even if it just sets the date to 2012. > This page linux.sgms-centre.com/misc/netiquette.php looks like some > leftover from 1972 maybe. > (I actually had to check the date in the footer, seriously). We didn't have email back in the Stone Age, you know :-) > Also the "rules" suggested in this thread are not that harsh as this > linux version. I disagree; the rules as they were growing were a concise version of the Linux document (which is itself an updated version of the old Usenet Ms Manners post), *plus* things specific to the ffmpeg list such as always giving uncut command lines and console output. IMHO that's as it should be. -- Rhodri James Kynesim Ltd From pb at das-werkstatt.com Thu Feb 16 14:34:23 2012 From: pb at das-werkstatt.com (Peter B.) Date: Thu, 16 Feb 2012 14:34:23 +0100 Subject: [FFmpeg-user] How can I join video files? In-Reply-To: <20120216084136.GA25175@phare.normalesup.org> References: <20120216093224.13326ky8pjqjwuu0@webmail.tuwien.ac.at> <20120216084136.GA25175@phare.normalesup.org> Message-ID: <20120216143423.76826ap0s0cllc67@webmail.tuwien.ac.at> Zitat von Nicolas George : >> If so, does this mean that FFmpeg is not able to concat arbitrary >> input formats? > > Indeed. Most formats have global headers and/or indexes, concatenating them > na?vely will just produce an invalid stream. Yes. But this only applies to "simply concatenating" them - as in: "cat file1.mpg file2.mpg > output.mpg" versus: "cat file1.avi file2.avi > output.avi" I know that output.avi will not make any sense, whereas output.mpg is valid. But, as I assume that ffmpeg is able to remux containers, I also assumed it would be possible to do remux (and possibly transcode) several input files with matching audio/video codec into a new file. I've successfully been doing this with several thousands of files (FFv1/PCM in AVI) with mencoder - so it's technically possible. Regards, Pb From andrey.krieger.utkin at gmail.com Thu Feb 16 14:52:57 2012 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Thu, 16 Feb 2012 15:52:57 +0200 Subject: [FFmpeg-user] Problem with realtime MPEG-2 video encoding In-Reply-To: References: Message-ID: 2012/2/16 Romeu Palos : > Hi > > I'm trying to encode mpeg-2 video in real time, CBR and fulllHD and it > works just fine for a long time. But I realize with some video animations, > with lots of colors and moviment, it get too slow and the real time is not > achieved anymore. > > this is my command line: > > ffmpeg ?-s 1920x1080 -r 30000/1001 -pix_fmt uyvy422 -i > /tmp/ffmpeg_input-cSm8Za.yuv ?-vb 15500000 -maxrate 15500000 -minrate > 15500000 -bufsize 2583333 -vstats ?-s 1920x1080 -r 30000/1001 -flags > +ilme+ildct -top 1 ?-an -threads 12 -vcodec mpeg2video ?-flags2 +fast > -streamid 0:273 -f mpegts - > /tmp/ffmpeg_output-yC91jH.ts1 Increase number of decoding threads. Add -threads option before -i option. -- Andrey Utkin From de.techno at gmail.com Thu Feb 16 14:55:26 2012 From: de.techno at gmail.com (dE .) Date: Thu, 16 Feb 2012 19:25:26 +0530 Subject: [FFmpeg-user] Problem with realtime MPEG-2 video encoding In-Reply-To: References: Message-ID: <4F3D0ACE.60208@gmail.com> On 02/16/12 17:52, Romeu Palos wrote: > Hi > > I'm trying to encode mpeg-2 video in real time, CBR and fulllHD and it > works just fine for a long time. But I realize with some video animations, > with lots of colors and moviment, it get too slow and the real time is not > achieved anymore. > > this is my command line: > > ffmpeg -s 1920x1080 -r 30000/1001 -pix_fmt uyvy422 -i > /tmp/ffmpeg_input-cSm8Za.yuv -vb 15500000 -maxrate 15500000 -minrate > 15500000 -bufsize 2583333 -vstats -s 1920x1080 -r 30000/1001 -flags > +ilme+ildct -top 1 -an -threads 12 -vcodec mpeg2video -flags2 +fast > -streamid 0:273 -f mpegts -> /tmp/ffmpeg_output-yC91jH.ts1 > > The video output need to be interlaced. > There is any other switch that can make it faster? > I tryed to use -me_method zero, but without success. > > When I use VBR it goes 4 times the real time, but it isn't an option. > > Thanks in advance. > Romeu > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Thanks for the tip! CBR increases frame rates for screencasting. From nicolas.george at normalesup.org Thu Feb 16 14:58:52 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 16 Feb 2012 14:58:52 +0100 Subject: [FFmpeg-user] How can I join video files? In-Reply-To: <20120216143423.76826ap0s0cllc67@webmail.tuwien.ac.at> References: <20120216093224.13326ky8pjqjwuu0@webmail.tuwien.ac.at> <20120216084136.GA25175@phare.normalesup.org> <20120216143423.76826ap0s0cllc67@webmail.tuwien.ac.at> Message-ID: <20120216135852.GA19589@phare.normalesup.org> L'octidi 28 pluvi?se, an CCXX, Peter B. a ?crit?: > But, as I assume that ffmpeg is able to remux containers, I also > assumed it would be possible to do remux (and possibly transcode) > several input files with matching audio/video codec into a new file. > > I've successfully been doing this with several thousands of files > (FFv1/PCM in AVI) with mencoder - so it's technically possible. This is indeed technically possible, and it should be simple enough to write using libavformat's API, but it is not currently possible with the ffmpeg command line tool. Patches welcome. There is a vague project of concat filters in lavfi, but it would only work with decoded audio and video. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From romeupalos at gmail.com Thu Feb 16 15:06:38 2012 From: romeupalos at gmail.com (Romeu Palos) Date: Thu, 16 Feb 2012 12:06:38 -0200 Subject: [FFmpeg-user] Problem with realtime MPEG-2 video encoding In-Reply-To: <4F3D0ACE.60208@gmail.com> References: <4F3D0ACE.60208@gmail.com> Message-ID: You're welcome .dE. Thanks Andrey, but it didn't work. I may have figured out. I increased the bufsize 4 times. And the fps of the encoding jumped from 15 to 131. It is on test for 1:35:00 now and it is working great, with no delay, and my buffers are very stable. Thank you so much. Romeu Palos de Gouv?a Electrical Engineer 2012/2/16 dE . > On 02/16/12 17:52, Romeu Palos wrote: > >> Hi >> >> I'm trying to encode mpeg-2 video in real time, CBR and fulllHD and it >> works just fine for a long time. But I realize with some video animations, >> with lots of colors and moviment, it get too slow and the real time is not >> achieved anymore. >> >> this is my command line: >> >> ffmpeg -s 1920x1080 -r 30000/1001 -pix_fmt uyvy422 -i >> /tmp/ffmpeg_input-cSm8Za.yuv -vb 15500000 -maxrate 15500000 -minrate >> 15500000 -bufsize 2583333 -vstats -s 1920x1080 -r 30000/1001 -flags >> +ilme+ildct -top 1 -an -threads 12 -vcodec mpeg2video -flags2 +fast >> -streamid 0:273 -f mpegts -> /tmp/ffmpeg_output-yC91jH.ts1 >> >> The video output need to be interlaced. >> There is any other switch that can make it faster? >> I tryed to use -me_method zero, but without success. >> >> When I use VBR it goes 4 times the real time, but it isn't an option. >> >> Thanks in advance. >> Romeu >> ______________________________**_________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/**listinfo/ffmpeg-user >> > > Thanks for the tip! CBR increases frame rates for screencasting. > > ______________________________**_________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/**listinfo/ffmpeg-user > From mediastream at gmail.com Thu Feb 16 15:19:11 2012 From: mediastream at gmail.com (Dennis) Date: Thu, 16 Feb 2012 09:19:11 -0500 Subject: [FFmpeg-user] Sound level In-Reply-To: References: Message-ID: Try SOX. http://sox.sourceforge.net/ On 2/16/12, jacky wrote: > Hi > > I have to modify the sound level from several flv files > I have to check first how much it must be increased > And then later apply the ffmpeg -vol command > Is there a command for such ? > > Thanks for your insight > > Regards > Jacky > > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > -- Sent from my mobile device From stozher at gmail.com Thu Feb 16 15:44:47 2012 From: stozher at gmail.com (John Saturday) Date: Thu, 16 Feb 2012 16:44:47 +0200 Subject: [FFmpeg-user] Sound level Message-ID: Hi jacky, I have use this command for normalization of sound level at 89 dB. 1. First extract sound from FLV at WAV format: ffmpeg -i file.flv -f wav -c:a pcm_s16le -ac:a 2 file.wav (change "-c:a pcm_s16le" with "-acodec pcm_s16le" and "-ac:a 2" with "-ac 2" for old version of FFMPEG) 2. Commpress to FLAC and view needed replaygain: flac --replay-gain file.wav metaflac --show-tag=REPLAYGAIN_TRACK_GAIN file.flac Otput from METAFLAC is a like this: REPLAYGAIN_TRACK_GAIN=+20.91 dB 3. Open calculator in advanced mode and calculate FFMPEG volume: volume=256*10^(/20)=256*10^(20.91/20)=2842.76 ~ 2843 (I'm not sure how to write this in English: 2^2=2x2=4, 2^3=2x2x2=8. Other example with negative gain: volume=256*10^(-2.57/20)=190.4 ~ 190.) 4. Reencode only audio stream with FFMPEG: ffmpeg -i file.flv -f mp4 -c:v copy -c:a libfaac -vol:a 2843 -b:a 128k output.mp4 (old format: ffmpeg -i file.flv -f mp4 -vcodec copy -acodec libfaac -vol 2843 -ab 128k output.mp4) For movies I have use 128k (64k bitrate per channel) for stereo and 320k for 5.1 (LFE channel isn't calculated) and for music 256k for stereo and 640k for 5.1... also a good idea is to archive at MKV container with AC-3 audio codec: ffmpeg -i input.flv -f matroska -c:v copy -c:a ac3 -vol:a -b:a output.mkv For Matroska see this: http://matroska.org/technical/whatis/index.html From blacktrash at gmx.net Thu Feb 16 16:01:38 2012 From: blacktrash at gmx.net (Christian Ebert) Date: Thu, 16 Feb 2012 15:01:38 +0000 Subject: [FFmpeg-user] ffpresets are not found Message-ID: <20120216150138.GN835@krille.blacktrash.org> Hi, ffpresets stopped working: $ ffmpeg -i test.mov -f webm -c:v libvpx -c:a libvorbis -b:v 500k -s 320x240 -vpre 360p test.webm ffmpeg version N-37924-gb92ecda Copyright (c) 2000-2012 the FFmpeg developers built on Feb 16 2012 14:06:39 with gcc 4.0.1 (Apple Inc. build 5493) configuration: --enable-gpl --enable-version3 --enable-nonfree --disable-network --disable-ffserver --disable-ffplay --enable-shared --enable-pthreads --enable-postproc --enable-libx264 --enable-libxvid --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --extra-cflags=-I/sw/include --extra-libs=-L/sw/lib libavutil 51. 39.100 / 51. 39.100 libavcodec 54. 3.100 / 54. 3.100 libavformat 54. 1.100 / 54. 1.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ccc_trailer1_.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2010-09-07 21:06:29 encoder : Processed with Video Purifier from Innobits AB, www.innobits.com encoder-eng : Processed with Video Purifier from Innobits AB, www.innobits.com Duration: 00:04:14.24, start: 0.000000, bitrate: 30336 kb/s Stream #0:0(eng): Video: dvvideo (dvcp / 0x70637664), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28800 kb/s, SAR 59:54 DAR 295:216, 25 fps, 25 tbr, 25 tbn, 25 tbc Metadata: creation_time : 2010-09-07 21:06:29 handler_name : ?Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: creation_time : 2010-09-07 21:12:51 handler_name : ?Apple Alias Data Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2010-09-07 21:12:54 handler_name : ?Apple Alias Data Handler timecode : 00:00:00:00 File for preset '360p' not found $ ls -l /usr/local/share/ffmpeg/ total 80 -rw-r--r-- 1 root wheel 8633 Feb 16 14:14 ffprobe.xsd -rw-r--r-- 1 root wheel 212 Feb 16 14:14 libvpx-1080p.ffpreset -rw-r--r-- 1 root wheel 212 Feb 16 14:14 libvpx-1080p50_60.ffpreset -rw-r--r-- 1 root wheel 204 Feb 16 14:14 libvpx-360p.ffpreset -rw-r--r-- 1 root wheel 212 Feb 16 14:14 libvpx-720p.ffpreset -rw-r--r-- 1 root wheel 212 Feb 16 14:14 libvpx-720p50_60.ffpreset -rw-r--r-- 1 root wheel 58 Feb 16 14:14 libx264-ipod320.ffpreset -rw-r--r-- 1 root wheel 61 Feb 16 14:14 libx264-ipod640.ffpreset Same with -pre:v, only the message differs slightly: |Preset 360p specified for stream 0:0, but could not be opened. Isn't at least one of -vpre or -pre:v supposed to work? At least they did not too long ago. c -- \black\trash movie _MORALISK ANSTALT_ "Nix verstanden." --->> http://www.blacktrash.org/underdogma/moraliskanstalt.php From renaux.jacky at orange.fr Thu Feb 16 16:09:38 2012 From: renaux.jacky at orange.fr (jacky) Date: Thu, 16 Feb 2012 16:09:38 +0100 Subject: [FFmpeg-user] RE : Sound level In-Reply-To: Message-ID: Hi Great , thanks a lot Dennis and John I will jump on second solution as it has to be Automated : files are already on the red5 server (100 files about 1:30 each) and will be done using PHP programs Merci Cheers jacky -----Message d'origine----- De : ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] De la part de John Saturday Envoy? : jeudi 16 f?vrier 2012 15:45 ? : ffmpeg-user at ffmpeg.org Objet : Re: [FFmpeg-user] Sound level Hi jacky, I have use this command for normalization of sound level at 89 dB. 1. First extract sound from FLV at WAV format: ffmpeg -i file.flv -f wav -c:a pcm_s16le -ac:a 2 file.wav (change "-c:a pcm_s16le" with "-acodec pcm_s16le" and "-ac:a 2" with "-ac 2" for old version of FFMPEG) 2. Commpress to FLAC and view needed replaygain: flac --replay-gain file.wav metaflac --show-tag=REPLAYGAIN_TRACK_GAIN file.flac Otput from METAFLAC is a like this: REPLAYGAIN_TRACK_GAIN=+20.91 dB 3. Open calculator in advanced mode and calculate FFMPEG volume: volume=256*10^(/20)=256*10^(20.91/20)=2842.76 ~ 2843 (I'm not sure how to write this in English: 2^2=2x2=4, 2^3=2x2x2=8. Other example with negative gain: volume=256*10^(-2.57/20)=190.4 ~ 190.) 4. Reencode only audio stream with FFMPEG: ffmpeg -i file.flv -f mp4 -c:v copy -c:a libfaac -vol:a 2843 -b:a 128k output.mp4 (old format: ffmpeg -i file.flv -f mp4 -vcodec copy -acodec libfaac -vol 2843 -ab 128k output.mp4) For movies I have use 128k (64k bitrate per channel) for stereo and 320k for 5.1 (LFE channel isn't calculated) and for music 256k for stereo and 640k for 5.1... also a good idea is to archive at MKV container with AC-3 audio codec: ffmpeg -i input.flv -f matroska -c:v copy -c:a ac3 -vol:a -b:a output.mkv For Matroska see this: http://matroska.org/technical/whatis/index.html _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From pb at das-werkstatt.com Thu Feb 16 16:19:47 2012 From: pb at das-werkstatt.com (Peter B.) Date: Thu, 16 Feb 2012 16:19:47 +0100 Subject: [FFmpeg-user] How can I join video files? In-Reply-To: <20120216135852.GA19589@phare.normalesup.org> References: <20120216093224.13326ky8pjqjwuu0@webmail.tuwien.ac.at> <20120216084136.GA25175@phare.normalesup.org> <20120216143423.76826ap0s0cllc67@webmail.tuwien.ac.at> <20120216135852.GA19589@phare.normalesup.org> Message-ID: <20120216161947.29422vhh2lnnlu37@webmail.tuwien.ac.at> Zitat von Nicolas George : > L'octidi 28 pluvi?se, an CCXX, Peter B. a ?crit?: >> But, as I assume that ffmpeg is able to remux containers, I also >> assumed it would be possible to do remux (and possibly transcode) >> several input files with matching audio/video codec into a new file. >> >> I've successfully been doing this with several thousands of files >> (FFv1/PCM in AVI) with mencoder - so it's technically possible. > > This is indeed technically possible, and it should be simple enough to write > using libavformat's API, but it is not currently possible with the ffmpeg > command line tool. But would it be possible to integrate it into FFmpeg at all, or would it be necessary to implement this in an external application, using libavformat's API? > Patches welcome. ...if only I was a better programmer... > There is a vague project of concat filters in lavfi, but it would only work > with decoded audio and video. You mean it couldn't copy the A/V data, but it would have to re-encode it? Thanks, Pb From tevans.uk at googlemail.com Thu Feb 16 16:25:09 2012 From: tevans.uk at googlemail.com (Tom Evans) Date: Thu, 16 Feb 2012 15:25:09 +0000 Subject: [FFmpeg-user] Sound level In-Reply-To: References: Message-ID: On Thu, Feb 16, 2012 at 2:44 PM, John Saturday wrote: > Hi jacky, > > I have use this command for normalization of sound level at 89 dB. > >? > 2. Commpress to FLAC and view needed replaygain: > > flac --replay-gain file.wav > metaflac --show-tag=REPLAYGAIN_TRACK_GAIN file.flac > > Otput from METAFLAC is a like this: > > REPLAYGAIN_TRACK_GAIN=+20.91 dB > > 3. Open calculator in advanced mode and calculate FFMPEG volume: > > volume=256*10^(/20)=256*10^(20.91/20)=2842.76 ~ 2843 > > (I'm not sure how to write this in English: 2^2=2x2=4, 2^3=2x2x2=8. > Other example with negative gain: volume=256*10^(-2.57/20)=190.4 ~ > 190.) > > 4. Reencode only audio stream with FFMPEG: > > ffmpeg -i file.flv -f mp4 -c:v copy -c:a libfaac -vol:a 2843 -b:a 128k > output.mp4 Why the hard to understand calculation, and not: ffmpeg -c:a libfaac -b:a 128k -filter:a volume=-12dB Cheers Tom From stozher at gmail.com Thu Feb 16 16:31:05 2012 From: stozher at gmail.com (John Saturday) Date: Thu, 16 Feb 2012 17:31:05 +0200 Subject: [FFmpeg-user] RE : Sound level In-Reply-To: References: Message-ID: For server use if you prefer MP4 format try at last step: qt-faststart infile.mp4 outfile.mp4 This move info atom to beginning of file and allow users to start play and forward movie without download at all. See http://multimedia.cx/eggs/improving-qt-faststart/ On Thu, Feb 16, 2012 at 5:09 PM, jacky wrote: > Hi > Great , thanks a lot Dennis and John > > I will jump on second solution as it has to be > Automated : files are already on the red5 server > (100 files about 1:30 each) and will be done using > PHP programs > Merci > > Cheers > jacky From nicolas.george at normalesup.org Thu Feb 16 16:36:49 2012 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 16 Feb 2012 16:36:49 +0100 Subject: [FFmpeg-user] How can I join video files? In-Reply-To: <20120216161947.29422vhh2lnnlu37@webmail.tuwien.ac.at> References: <20120216093224.13326ky8pjqjwuu0@webmail.tuwien.ac.at> <20120216084136.GA25175@phare.normalesup.org> <20120216143423.76826ap0s0cllc67@webmail.tuwien.ac.at> <20120216135852.GA19589@phare.normalesup.org> <20120216161947.29422vhh2lnnlu37@webmail.tuwien.ac.at> Message-ID: <20120216153649.GA24658@phare.normalesup.org> L'octidi 28 pluvi?se, an CCXX, Peter B. a ?crit?: > But would it be possible to integrate it into FFmpeg at all, or would > it be necessary to implement this in an external application, using > libavformat's API? Anything is possible, with enough hacks. > You mean it couldn't copy the A/V data, but it would have to re-encode it? Exactly. lavfi can currently only work with decoded video and audio frames, not encoded data packets (nor subtitles, for that matter). But that, also, could be changed. Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From stozher at gmail.com Thu Feb 16 16:41:12 2012 From: stozher at gmail.com (John Saturday) Date: Thu, 16 Feb 2012 17:41:12 +0200 Subject: [FFmpeg-user] Sound level In-Reply-To: References: Message-ID: Yes, but in my version of FFMPEG "filter:a" don't work... -af too. On Thu, Feb 16, 2012 at 5:25 PM, Tom Evans wrote: > Why the hard to understand calculation, and not: > > ffmpeg -c:a libfaac -b:a 128k -filter:a volume=-12dB > > Cheers > > Tom > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From rob.kirkby at gmail.com Thu Feb 16 11:00:42 2012 From: rob.kirkby at gmail.com (Robert Kirkby) Date: Thu, 16 Feb 2012 10:00:42 +0000 Subject: [FFmpeg-user] Audio and Video editing Message-ID: Hi All I am looking for a developer to help with an online audio and video editing solution. If there is anyone out there who is interested please email me and I will email more details of the project. Many thanks Rob Kirkby From ml at access-dev.com Thu Feb 16 19:09:38 2012 From: ml at access-dev.com (Access-Dev) Date: Thu, 16 Feb 2012 19:09:38 +0100 Subject: [FFmpeg-user] audio delay while converting flv to avi Message-ID: <4F3D4662.9080403@access-dev.com> Hello, this command line produces and audio delay of 2-3 seconds /usr/bin/ffmpeg -loglevel 0 -i 202.flv -ar 44100 -b 700k -sameq -f avi -ab 160k 202.avi any ideas why ? Thanks From jdxsolutions at gmail.com Thu Feb 16 19:13:15 2012 From: jdxsolutions at gmail.com (John Dexter) Date: Thu, 16 Feb 2012 18:13:15 +0000 Subject: [FFmpeg-user] max_analyze_duration 5000000 reached at 5000000 Message-ID: I feel this must be a really obvious question but after searching online I find many mentions but no explanation: a)what exactly this message means b)what will happen as a result c)what I'm supposed to do about it My final output looks like this (running under Windows): >ffmpeg.exe -r 10 -i %06d.jpg -vcodec libx264 h264.avi ffmpeg version N-37586-g6833fe4 Copyright (c) 2000-2012 the FFmpeg developers built on Feb 6 2012 16:02:04 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. 38.100 / 51. 38.100 libavcodec 54. 1.100 / 54. 1.100 libavformat 54. 0.100 / 54. 0.100 libavdevice 53. 4.100 / 53. 4.100 libavfilter 2. 62.100 / 2. 62.100 libswscale 2. 1.100 / 2. 1.100 libswresample 0. 6.100 / 0. 6.100 libpostproc 52. 0.100 / 52. 0.100 [image2 @ 003B9B40] max_analyze_duration 5000000 reached at 5000000 Input #0, image2, from '%06d.jpg': Duration: 00:01:53.60, start: 0.000000, bitrate: N/A Stream #0:0: Video: mjpeg, yuvj420p, 1092x564 [SAR 72:72 DAR 91:47], 10 fps, 10 tbr, 10 tbn, 10 tbc [buffer @ 003BFF60] w:1092 h:564 pixfmt:yuvj420p tb:1/1000000 sar:72/72 sws_para m: [libx264 @ 03D820E0] using SAR=1/1 [libx264 @ 03D820E0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE 4.1 Cache64 [libx264 @ 03D820E0] profile High, level 3.1 Output #0, avi, to 'h264.avi': Metadata: ISFT : Lavf54.0.100 Stream #0:0: Video: h264 (H264 / 0x34363248), yuvj420p, 1092x564 [SAR 72:72 DAR 91:47], q=-1--1, 10 tbn, 10 tbc Stream mapping: Stream #0:0 -> #0:0 (mjpeg -> libx264) Press [q] to stop, [?] for help frame= 1136 fps= 20 q=-2.0 Lsize= 10846kB time=00:01:53.40 bitrate= 783.5kbits /s video:10813kB audio:0kB global headers:0kB muxing overhead 0.303605% [libx264 @ 03D820E0] frame I:6 Avg QP:17.94 size: 43550 [libx264 @ 03D820E0] frame P:542 Avg QP:23.23 size: 13050 [libx264 @ 03D820E0] frame B:588 Avg QP:22.09 size: 6358 [libx264 @ 03D820E0] consecutive B-frames: 14.5% 46.7% 8.2% 30.6% [libx264 @ 03D820E0] mb I I16..4: 60.9% 30.9% 8.2% [libx264 @ 03D820E0] mb P I16..4: 33.8% 5.7% 0.8% P16..4: 11.5% 6.6% 5.7% 0.0% 0.0% skip:35.9% [libx264 @ 03D820E0] mb B I16..4: 1.5% 1.1% 0.2% B16..8: 13.8% 5.3% 2.6% direct:13.3% skip:62.1% L0:50.2% L1:39.3% BI:10.5% [libx264 @ 03D820E0] 8x8 transform intra:16.3% inter:71.6% [libx264 @ 03D820E0] coded y,uvDC,uvAC intra: 15.2% 10.8% 6.8% inter: 12.5% 14.5 % 3.4% [libx264 @ 03D820E0] i16 v,h,dc,p: 88% 12% 1% 0% [libx264 @ 03D820E0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 23% 29% 4% 5% 4% 7% 6% 8% [libx264 @ 03D820E0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 34% 20% 4% 4% 4% 6% 4% 5% [libx264 @ 03D820E0] i8c dc,h,v,p: 78% 16% 5% 1% [libx264 @ 03D820E0] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 03D820E0] ref P L0: 39.9% 10.7% 22.0% 27.3% [libx264 @ 03D820E0] ref B L0: 69.4% 23.8% 6.8% [libx264 @ 03D820E0] ref B L1: 92.6% 7.4% [libx264 @ 03D820E0] kb/s:779.78 From bostjan.strojan at gmail.com Thu Feb 16 21:07:05 2012 From: bostjan.strojan at gmail.com (=?UTF-8?Q?Bo=C5=A1tjan_Strojan?=) Date: Thu, 16 Feb 2012 21:07:05 +0100 Subject: [FFmpeg-user] Sound level In-Reply-To: References: Message-ID: On Thu, Feb 16, 2012 at 8:44 AM, jacky wrote: > Hi > > I have to modify the sound level from several flv files > I have to check first how much it must be increased > And then later apply the ffmpeg -vol command > Is there a command for such ? > > Thanks for your insight > > Regards > Jacky The procedure i would try first would be: 1. demux audio, should be mp3? 2. apply mp3gain (i'am sure there are several ways to do that today) 3. remux the audio and video back and voila, no losses at all and audio should be leveled, b. From sjames at susanjamescompany.com Fri Feb 17 01:04:27 2012 From: sjames at susanjamescompany.com (Susan James) Date: Thu, 16 Feb 2012 16:04:27 -0800 Subject: [FFmpeg-user] ffmpeg 0.10 on Linux In-Reply-To: <4F3C89C2.8030401@gmail.com> References: <4F3C89C2.8030401@gmail.com> Message-ID: <4F3D998B.2020500@susanjamescompany.com> dE . wrote: > On 02/15/12 22:24, Tom Evans wrote: >> On Wed, Feb 15, 2012 at 2:26 PM, Susan James >> wrote: >>> Hi All, >>> >>> I'm running into issues with the 'AC EOB marker is absent' on both >>> Linux and MAC ffmpeg, and my output file has no video. >>> Below is my command string and full output. >>> >>> I'm encoding an H.264 hi res to mp4. The output file has good audio >>> but no video. see the output below. >>> >>> I would really appreciate any help or leads on how to resolve this >>> issue. >>> >>> thank you, >>> Susan >>> >> Hmm. Are you sure it has no video? The last status line says: >> >> frame=107998 fps= 5 q=-1.0 Lsize= 935583kB time=01:00:03.47 >> bitrate=2126.9kbits/s >> video:879389kB audio:52320kB global headers:0kB muxing overhead 0.415819% >> >> ie it has encoded ~850MB of video data. >> >> Also the stream map says: >> >> Stream #0:0 -> #0:0 (dvvideo -> libx264) >> Stream #0:1 -> #0:1 (pcm_s16le -> libfaac) >> >> How are you testing the output file? Could you show ffprobe output on >> the output file? >> >> Cheers >> >> Tom >> _______________________________________________ > > Apart from this, what's '-vol', It's undocumented in the man page. Can > you please remove and try? Yes, I will try without the -vol flag and post the results to the list. > Also I think you should check and post ffmpeg USE flags on Gentoo. % emerge -pv ffmpeg These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ~] media-video/ffmpeg-0.10 USE="X aac alsa bzip2 cdio encode faac gnutls hardcoded-tables ieee1394 jpeg2k mmx mp3 openal openssl oss qt-faststart sdl theora truetype vdpau vorbis vpx x264 xvid zlib -3dnow -3dnowext -aacplus (-altivec) -amr -ass -avx -bindist (-celt) -cpudetection -debug -dirac -doc -frei0r -gsm (-iwmmxt) -jack -libv4l -mmxext -modplug (-neon) -network -pic -pulseaudio -rtmp -schroedinger -speex -ssse3 -static-libs -test -threads -v4l -vaapi (-vis)" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB From marlon.smith10 at gmail.com Fri Feb 17 01:30:32 2012 From: marlon.smith10 at gmail.com (Marlon Smith) Date: Thu, 16 Feb 2012 16:30:32 -0800 Subject: [FFmpeg-user] Error decoding raw h.264 Message-ID: <1329438632.2795.36.camel@marlon-Z68X-UD3H-B3> Hi everyone, I'm using MPlayer compiled with the latest version of ffmpeg, and I'm trying to play back an h.264 raw video file. I'm doing this using MinGW under Windows. I'm getting this error when I try to play the video: [h264 @ 012fab60]Reference 6 >= 4 [h264 @ 012fab60]error while decoding MB 7 21, bytestream (2) [h264 @ 012fab60] concealing 178 DC, 178 AC, 178 MV errors I've looked all over online, and tried checking out older commits of ffmpeg, but with no success. The video plays fine with a similar checkout of MPlayer and ffmpeg in Ubuntu. Does anyone know what the cause of this error could be? Thanks! Marlon From lytc at vega.com.vn Fri Feb 17 02:40:08 2012 From: lytc at vega.com.vn (Ly Tran Cong) Date: Fri, 17 Feb 2012 08:40:08 +0700 Subject: [FFmpeg-user] Ffmpeg run in long time Message-ID: Dear ffmpeg expert, I use ffmpeg 10 receive live multicast video signal and transcode to h264. If I run ffmpeg more than 12 hour to 1 day, I only receive audio output and I know ffmpeg didn't transcode video anymore. Sometimes, ffmpeg didn't transcode both video and audio, in that case the memory increase to 2.1G (or more) top - 08:17:09 up 2 days, 19:12, 2 users, load average: 16.25, 15.74, 15.12 Tasks: 348 total, 11 running, 337 sleeping, 0 stopped, 0 zombie Cpu(s): 44.6%us, 1.5%sy, 4.2%ni, 49.2%id, 0.0%wa, 0.1%hi, 0.5%si, 0.0%st Mem: 8167452k total, 5944152k used, 2223300k free, 320116k buffers Swap: 2096472k total, 0k used, 2096472k free, 1068932k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 6230 transcod 25 0 2609m *2.1g* 3660 R 92.8 26.5 465:02.66 ffmpeg Please let me know, is there any parameter to stop ffmpeg when those above case happen. I use xerror in the command but it not work. -- Regards, Tran Ly Vega Corporation 98 Hoang Quoc Viet Str, Hanoi, Vietnam Tel: 84 4 755 4190 Fax: 84 4 755 4190 Mobile: 84 91 487 1115 www.vega.com.vn; www.clip.vn; www.chacha.vn; www.ringring.vn From andrey.krieger.utkin at gmail.com Fri Feb 17 12:06:47 2012 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Fri, 17 Feb 2012 13:06:47 +0200 Subject: [FFmpeg-user] Ffmpeg run in long time In-Reply-To: References: Message-ID: 2012/2/17 Ly Tran Cong : > Please let me know, is there any parameter to stop ffmpeg when those above > case happen. I use xerror in the command but it not work. Try -timelimit option. This must be a memory leak bug. If you are able to, please try debugging it, e.g. with Valgrind. -- Andrey Utkin From andrey.krieger.utkin at gmail.com Fri Feb 17 12:15:19 2012 From: andrey.krieger.utkin at gmail.com (Andrey Utkin) Date: Fri, 17 Feb 2012 13:15:19 +0200 Subject: [FFmpeg-user] How can I join video files? In-Reply-To: <20120216161947.29422vhh2lnnlu37@webmail.tuwien.ac.at> References: <20120216093224.13326ky8pjqjwuu0@webmail.tuwien.ac.at> <20120216084136.GA25175@phare.normalesup.org> <20120216143423.76826ap0s0cllc67@webmail.tuwien.ac.at> <20120216135852.GA19589@phare.normalesup.org> <20120216161947.29422vhh2lnnlu37@webmail.tuwien.ac.at> Message-ID: 2012/2/16 Peter B. : > But would it be possible to integrate it into FFmpeg at all, or would it be > necessary to implement this in an external application, using libavformat's > API? I'm not sure if ffmpeg util functionality should be expanded for this use case. Introducing it will complicate this (already complicated) application. And, anyway, what will take place is converting to h264 Annex B flavour, and concatenating like concat: proto will do. So this "functionality", if included into ffmpeg utility, IMO is not more than sugarization of already mentioned sequence of actions. >> There is a vague project of concat filters in lavfi, but it would only >> work >> with decoded audio and video. > > > You mean it couldn't copy the A/V data, but it would have to re-encode it? It was meant about some implementation of concatenation at filters level. Using recipe mentioned above, if you have video in h264, you mustn't re-encode it. -- Andrey Utkin From stozher at gmail.com Fri Feb 17 14:26:43 2012 From: stozher at gmail.com (John Saturday) Date: Fri, 17 Feb 2012 15:26:43 +0200 Subject: [FFmpeg-user] audio delay while converting flv to avi In-Reply-To: <4F3D4662.9080403@access-dev.com> References: <4F3D4662.9080403@access-dev.com> Message-ID: > this command line produces and audio delay of 2-3 seconds > > ?/usr/bin/ffmpeg -loglevel 0 -i 202.flv -ar 44100 -b 700k -sameq -f avi ?-ab > 160k 202.avi Check with "async" option: ffmpeg -loglevel 0 -async 1 -i 202.flv -f avi -b 700k -sameq -ab 160k -ar 44100 202.avi see also "shortest" option -- finish encoding when the shortest input stream ends. From de.techno at gmail.com Fri Feb 17 15:56:19 2012 From: de.techno at gmail.com (dE .) Date: Fri, 17 Feb 2012 20:26:19 +0530 Subject: [FFmpeg-user] ffmpeg 0.10 on Linux In-Reply-To: <4F3D998B.2020500@susanjamescompany.com> References: <4F3C89C2.8030401@gmail.com> <4F3D998B.2020500@susanjamescompany.com> Message-ID: <4F3E6A93.9050704@gmail.com> On 02/17/12 05:34, Susan James wrote: > > > dE . wrote: >> On 02/15/12 22:24, Tom Evans wrote: >>> On Wed, Feb 15, 2012 at 2:26 PM, Susan James >>> wrote: >>>> Hi All, >>>> >>>> I'm running into issues with the 'AC EOB marker is absent' on both >>>> Linux and MAC ffmpeg, and my output file has no video. >>>> Below is my command string and full output. >>>> >>>> I'm encoding an H.264 hi res to mp4. The output file has good >>>> audio but no video. see the output below. >>>> >>>> I would really appreciate any help or leads on how to resolve this >>>> issue. >>>> >>>> thank you, >>>> Susan >>>> >>> Hmm. Are you sure it has no video? The last status line says: >>> >>> frame=107998 fps= 5 q=-1.0 Lsize= 935583kB time=01:00:03.47 >>> bitrate=2126.9kbits/s >>> video:879389kB audio:52320kB global headers:0kB muxing overhead >>> 0.415819% >>> >>> ie it has encoded ~850MB of video data. >>> >>> Also the stream map says: >>> >>> Stream #0:0 -> #0:0 (dvvideo -> libx264) >>> Stream #0:1 -> #0:1 (pcm_s16le -> libfaac) >>> >>> How are you testing the output file? Could you show ffprobe output on >>> the output file? >>> >>> Cheers >>> >>> Tom >>> _______________________________________________ >> >> Apart from this, what's '-vol', It's undocumented in the man page. >> Can you please remove and try? > > Yes, I will try without the -vol flag and post the results to the list. > > >> Also I think you should check and post ffmpeg USE flags on Gentoo. > > % emerge -pv ffmpeg > > These are the packages that would be merged, in order: > > Calculating dependencies... done! > [ebuild R ~] media-video/ffmpeg-0.10 USE="X aac alsa bzip2 cdio > encode faac gnutls hardcoded-tables ieee1394 jpeg2k mmx mp3 openal > openssl oss qt-faststart sdl theora truetype vdpau vorbis vpx x264 > xvid zlib -3dnow -3dnowext -aacplus (-altivec) -amr -ass -avx -bindist > (-celt) -cpudetection -debug -dirac -doc -frei0r -gsm (-iwmmxt) -jack > -libv4l -mmxext -modplug (-neon) -network -pic -pulseaudio -rtmp > -schroedinger -speex -ssse3 -static-libs -test -threads -v4l -vaapi > (-vis)" 0 kB > > Total: 1 package (1 reinstall), Size of downloads: 0 kB > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user What's the ffprobe output of the input file, and does it play using ffplay? Try doing the same with the output too. From pb at das-werkstatt.com Fri Feb 17 15:58:59 2012 From: pb at das-werkstatt.com (Peter B.) Date: Fri, 17 Feb 2012 15:58:59 +0100 Subject: [FFmpeg-user] How can I join video files? In-Reply-To: References: <20120216093224.13326ky8pjqjwuu0@webmail.tuwien.ac.at> <20120216084136.GA25175@phare.normalesup.org> <20120216143423.76826ap0s0cllc67@webmail.tuwien.ac.at> <20120216135852.GA19589@phare.normalesup.org> <20120216161947.29422vhh2lnnlu37@webmail.tuwien.ac.at> Message-ID: <20120217155859.31762wb04n8jrsc3@webmail.tuwien.ac.at> Quoting Andrey Utkin : > Using recipe mentioned above, if you have video in h264, you mustn't > re-encode it. Clear :) For the sake of completeness, I'd just like to mention 2 things: 1) For codecs which are specified and supported to be wrapped in an MPEG-TS stream, this might be possible (such as h264), but for others (e.g. FFv1) it's not possible to concat it that way. 2) I agree with you that concat+remux+transcode in one step might be "sugarization", compared to subsequent FFmpeg calls, when you only have to transcode a handful of files - but with mass transcoding (several hundred files per day) of "heavy" stuff (like e.g. FFv1 with 350-600 MB/Minute), intermediate steps add up runtime-wise. For example: At the Austrian Mediathek (=national audio/video archive), we're producing several hundred FFv1 encoded minute-sequences per day as archive format. Now, transcoding this archive material into e.g. DVD-MPEG or web-videos, they need to be concatenated *and* transcoded. Intermediately "touching" the harddisk would add a tremendous slowdown of this already slow transcoding process (FFv1->MPEG on 3.6Ghz CPU: ~20-25fps). I know it's a super-rare-extremely-special-and-not-so-everyday usecase, but currently I need to use mencoder for this - but would looooove to use FFmpeg (because I think it's better supported). Regards, Pb From sjames at susanjamescompany.com Fri Feb 17 17:04:32 2012 From: sjames at susanjamescompany.com (Susan James) Date: Fri, 17 Feb 2012 08:04:32 -0800 Subject: [FFmpeg-user] ffmpeg 0.10 on Linux In-Reply-To: <4F3E6A93.9050704@gmail.com> References: <4F3C89C2.8030401@gmail.com> <4F3D998B.2020500@susanjamescompany.com> <4F3E6A93.9050704@gmail.com> Message-ID: <4F3E7A90.1010101@susanjamescompany.com> dE . wrote: > On 02/17/12 05:34, Susan James wrote: >> >> >> dE . wrote: >>> On 02/15/12 22:24, Tom Evans wrote: >>>> On Wed, Feb 15, 2012 at 2:26 PM, Susan James >>>> wrote: >>>>> Hi All, >>>>> >>>>> I'm running into issues with the 'AC EOB marker is absent' on both >>>>> Linux and MAC ffmpeg, and my output file has no video. >>>>> Below is my command string and full output. >>>>> >>>>> I'm encoding an H.264 hi res to mp4. The output file has good >>>>> audio but no video. see the output below. >>>>> >>>>> I would really appreciate any help or leads on how to resolve this >>>>> issue. >>>>> >>>>> thank you, >>>>> Susan >>>>> >>>> Hmm. Are you sure it has no video? The last status line says: >>>> >>>> frame=107998 fps= 5 q=-1.0 Lsize= 935583kB time=01:00:03.47 >>>> bitrate=2126.9kbits/s >>>> video:879389kB audio:52320kB global headers:0kB muxing overhead >>>> 0.415819% >>>> >>>> ie it has encoded ~850MB of video data. >>>> >>>> Also the stream map says: >>>> >>>> Stream #0:0 -> #0:0 (dvvideo -> libx264) >>>> Stream #0:1 -> #0:1 (pcm_s16le -> libfaac) >>>> >>>> How are you testing the output file? Could you show ffprobe output on >>>> the output file? >>>> >>>> Cheers >>>> >>>> Tom >>>> _______________________________________________ >>> >>> Apart from this, what's '-vol', It's undocumented in the man page. >>> Can you please remove and try? >> >> Yes, I will try without the -vol flag and post the results to the list. >> >> >>> Also I think you should check and post ffmpeg USE flags on Gentoo. >> >> % emerge -pv ffmpeg >> >> These are the packages that would be merged, in order: >> >> Calculating dependencies... done! >> [ebuild R ~] media-video/ffmpeg-0.10 USE="X aac alsa bzip2 cdio >> encode faac gnutls hardcoded-tables ieee1394 jpeg2k mmx mp3 openal >> openssl oss qt-faststart sdl theora truetype vdpau vorbis vpx x264 >> xvid zlib -3dnow -3dnowext -aacplus (-altivec) -amr -ass -avx -bindist >> (-celt) -cpudetection -debug -dirac -doc -frei0r -gsm (-iwmmxt) -jack >> -libv4l -mmxext -modplug (-neon) -network -pic -pulseaudio -rtmp >> -schroedinger -speex -ssse3 -static-libs -test -threads -v4l -vaapi >> (-vis)" 0 kB >> >> Total: 1 package (1 reinstall), Size of downloads: 0 kB >> >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > What's the ffprobe output of the input file, and does it play using > ffplay? Try doing the same with the output too. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user below are the ffprobe of input and output files. I will run the ffplay on both when I get to the location, in a separate email. I'm offsite at the moment. INPUT file: % ffprobe 1.Chandi.HiRes ffprobe version 0.10 Copyright (c) 2007-2012 the FFmpeg developers built on Feb 16 2012 07:52:44 with gcc 4.5.3 configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -fomit-frame-pointer -march=core2' --extra-cflags='-O2 -pipe -fomit-frame-pointer -march=core2' --extra-cxxflags='-O2 -pipe -fomit-frame-pointer -march=core2' --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --disable-stripping --disable-debug --disable-doc --disable-network --disable-vaapi --enable-openssl --enable-nonfree --enable-gnutls --enable-libmp3lame --enable-libvo-aacenc --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libfaac --enable-nonfree --enable-libcdio --enable-libdc1394 --enable-openal --disable-indev=v4l --disable-indev=v4l2 --disable-indev=jack --enable-x11grab --enable-libfreetype --enable-pthreads --enable-libvpx --enable-libopenjpeg --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable- 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.Chandi.HiRes': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2008-02-08 12:52:46 Duration: 01:00:03.53, start: 0.000000, bitrate: 30313 kb/s Stream #0:0(eng): Video: dvvideo (dvc / 0x20637664), yuv411p, 720x480 [SAR 8:9 DAR 4:3], 28771 kb/s, SAR 10:11 DAR 15:11, 29.97 fps, 29.97 tbr, 2997 tbn, 29.97 tbc Metadata: creation_time : 2008-02-08 12:52:46 handler_name : ?Apple Alias Data Handler Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: creation_time : 2008-02-08 12:52:46 handler_name : ?Apple Alias Data Handler Stream #0:2(eng): Data: none (tmcd / 0x64636D74) Metadata: creation_time : 2008-02-08 13:00:46 handler_name : ?Apple Alias Data Handler timecode : 01:00:00;00 Unsupported codec with id 0 for input stream 2 using this command pipeline for the encoding: ffmpeg -i 1.Chandi.HiRes -ab 320k -vcodec libx264 -b:v 2000k 1.Chandi.HiRes.tv.mp4 OUTPUT file: % ffprobe 1.Chandi.HiRes.tv2.mp4 ffprobe version 0.10 Copyright (c) 2007-2012 the FFmpeg developers built on Feb 16 2012 07:52:44 with gcc 4.5.3 configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -fomit-frame-pointer -march=core2' --extra-cflags='-O2 -pipe -fomit-frame-pointer -march=core2' --extra-cxxflags='-O2 -pipe -fomit-frame-pointer -march=core2' --disable-static --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --disable-stripping --disable-debug --disable-doc --disable-network --disable-vaapi --enable-openssl --enable-nonfree --enable-gnutls --enable-libmp3lame --enable-libvo-aacenc --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libfaac --enable-nonfree --enable-libcdio --enable-libdc1394 --enable-openal --disable-indev=v4l --disable-indev=v4l2 --disable-indev=jack --enable-x11grab --enable-libfreetype --enable-pthreads --enable-libvpx --enable-libopenjpeg --disable-amd3dnow --disable-amd3dnowext --disable-altivec --disable- 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 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.Chandi.HiRes.tv2.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 creation_time : 2008-02-08 12:52:46 encoder : Lavf53.31.100 Duration: 01:00:03.56, start: 0.000000, bitrate: 2126 kb/s Stream #0:0(eng): Video: h264 (High 4:2:2) (avc1 / 0x31637661), yuv422p, 720x480 [SAR 10:11 DAR 15:11], 1999 kb/s, SAR 8:9 DAR 4:3, 29.97 fps, 29.97 tbr, 2997 tbn, 59.94 tbc Metadata: creation_time : 2008-02-08 12:52:46 handler_name : VideoHandler Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, s16, 118 kb/s Metadata: creation_time : 2008-02-08 12:52:46 handler_name : From fernanda.rebelatto at gmail.com Fri Feb 17 17:05:38 2012 From: fernanda.rebelatto at gmail.com (Fernanda Rebelatto) Date: Fri, 17 Feb 2012 13:05:38 -0300 Subject: [FFmpeg-user] web videos with flv Message-ID: Hi everyone, I'm working with web videos. So I need to make light videos without losing much quality. Searching I concluded that the best codec for this is flv. Testing multiple extensions, I noted that the codec flv resulted in a higher video. Does anyone have a tip for me? Os testes foram: ffmpeg -y -sameq -i video.avi -ar 44100 -f flv avi.flv ffmpeg -y -sameq -i video.mpg -ar 44100 -f flv mpg.flv ffmpeg -y -sameq -i video.3gp -f flv 3gp.flv ffmpeg -y -sameq -i video.mp4 -f flv mp4.flv Att., Fernanda Rebelatto -- Analista de Sistemas http://www.brazip.com.br From h.reindl at thelounge.net Fri Feb 17 17:11:59 2012 From: h.reindl at thelounge.net (Reindl Harald) Date: Fri, 17 Feb 2012 17:11:59 +0100 Subject: [FFmpeg-user] web videos with flv In-Reply-To: References: Message-ID: <4F3E7C4F.70600@thelounge.net> Am 17.02.2012 17:05, schrieb Fernanda Rebelatto: > Hi everyone, > > I'm working with web videos. So I need to make light videos without > losing much quality. > > Searching I concluded that the best codec for this is flv FLV is crap use H264 baseline flash supports it and HTML5 supports it on iphone/ipod with HTML5-