From baptiste.coudurier at gmail.com Wed Jun 1 00:47:29 2011 From: baptiste.coudurier at gmail.com (Baptiste Coudurier) Date: Tue, 31 May 2011 15:47:29 -0700 Subject: [FFmpeg-user] Streaming MP4 In-Reply-To: <898767.86226.qm@web86408.mail.ird.yahoo.com> References: <898767.86226.qm@web86408.mail.ird.yahoo.com> Message-ID: <4DE57001.2010209@gmail.com> On 05/30/2011 06:33 PM, JULIAN GARDNER wrote: > I was wondering if anybody has managed to get ffmpeg to stream out MP4 video/audio. > > I have a working system using mpeg-ts and h264/aac and i now need to dual send some channels in MP4 as well, but when i change the output format to mp4 i get > > "could not write header for output file #0" > > Anybody have any ideas to why this does not work or a way of getting it to work. MP4 is not a "streamable" format by essence. There are features that can make it streamable, the muxer don't support them currently. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org From lugoteehalt at yahoo.co.uk Wed Jun 1 01:20:36 2011 From: lugoteehalt at yahoo.co.uk (lugoteehalt) Date: Tue, 31 May 2011 16:20:36 -0700 (PDT) Subject: [FFmpeg-user] Complete beginner - no sound with screencasting using x11grab? Message-ID: <1306884036891-3564621.post@n4.nabble.com> Trying to use ffmpeg to record the screen. The following command does not work, but remove '-i pulse' and it works perfectly, but without sound. ffmpeg -f x11grab -i pulse -s `xdpyinfo | grep 'dimensions:'| awk '{print $2}'` -r 25 -i :0.0 -sameq out.mpg ffmpeg version git-N-30155-g01a73d6, Copyright (c) 2000-2011 the FFmpeg developers built on May 23 2011 22:32:40 with gcc 4.4.5 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab libavutil 51. 2. 1 / 51. 2. 1 libavcodec 53. 6. 0 / 53. 6. 0 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 10. 0 / 2. 10. 0 libswscale 0. 14. 0 / 0. 14. 0 libpostproc 51. 2. 0 / 51. 2. 0 [x11grab @ 0x9456b40] device: pulse -> display: pulse x: 0 y: 0 width: 0 height: 0 [x11grab @ 0x9456b40] Could not open X display. pulse: Input/output error Current stable version of Debian. Have installed the package 'pulseaudio'. Put in this in /etc/asound.conf: pcm.pulse { type pulse } ctl.pulse { type pulse } pcm.!default { type pulse } ctl.!default { type pulse } As suggested in this forum. Any help appreciated. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Complete-beginner-no-sound-with-screencasting-using-x11grab-tp3564621p3564621.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lugoteehalt at yahoo.co.uk Wed Jun 1 02:26:46 2011 From: lugoteehalt at yahoo.co.uk (lugoteehalt) Date: Tue, 31 May 2011 17:26:46 -0700 (PDT) Subject: [FFmpeg-user] Complete beginner - no sound with screencasting using x11grab? In-Reply-To: <1306884036891-3564621.post@n4.nabble.com> References: <1306884036891-3564621.post@n4.nabble.com> Message-ID: <1306888006636-3564707.post@n4.nabble.com> Sorry girls, just worked out how to get sound . Changed command to: ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s `xdpyinfo | grep 'dimensions:'| awk '{print $2}'` -r 25 -i :0.0 -sameq out.mpg I'll probably need to ask about other issues if I may. Thanks. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Complete-beginner-no-sound-with-screencasting-using-x11grab-tp3564621p3564707.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From dotancohen at gmail.com Wed Jun 1 11:34:47 2011 From: dotancohen at gmail.com (Dotan Cohen) Date: Wed, 1 Jun 2011 12:34:47 +0300 Subject: [FFmpeg-user] What video formats to support? Message-ID: A user has a collection of video files from various sources. He need to know exactly which video formats he has in use so that he can buy a compatible media player such as this: http://cgi.ebay.com/H-264-RM-RMVB-MKV-FLV-HDD-TV-MEDIA-PLAYER-VGA-HDMI-720P-/390317355636?pt=UK_AudioTVElectronics_HomeAudioHiFi_CDPlayerSeparates&hash=item5ae0ba3274 Can ffmpeg tell use which container formats and codecs are in use on a particular file? I went through the fine manpage but saw no mention of it. Googling finds me nothing relevant either. Thanks! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com From bahamutzero8825 at gmail.com Wed Jun 1 11:37:28 2011 From: bahamutzero8825 at gmail.com (Andrew Berg) Date: Wed, 01 Jun 2011 04:37:28 -0500 Subject: [FFmpeg-user] What video formats to support? In-Reply-To: References: Message-ID: <4DE60858.5020709@gmail.com> On 2011.06.01 04:34 AM, Dotan Cohen wrote: > Can ffmpeg tell use which container formats and codecs are in use on a > particular file? MediaInfo does this wonderfully. http://mediainfo.sourceforge.net From dotancohen at gmail.com Wed Jun 1 11:51:00 2011 From: dotancohen at gmail.com (Dotan Cohen) Date: Wed, 1 Jun 2011 12:51:00 +0300 Subject: [FFmpeg-user] What video formats to support? In-Reply-To: <4DE60858.5020709@gmail.com> References: <4DE60858.5020709@gmail.com> Message-ID: On Wed, Jun 1, 2011 at 12:37, Andrew Berg wrote: > MediaInfo does this wonderfully. > > http://mediainfo.sourceforge.net > Thanks. However, that GUI app does not seem to be scriptable. I'd like to script it as there are a few tens of files. It's not my computer, I don't want to be there all day! I noticed just now that simply passing a file to ffmpeg with no other parameters gives some information: $ ffmpeg -i file.avi Stream #0.0: Video: mpeg4, yuv420p, 684x282 [PAR 1:1 DAR 114:47], 25 tbr, 25 tbn, 25 tbc Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 112 kb/s So am I to understand that "avi" is the container and "mpeg4" is the codec? Is the yuv420p information important? I see that it is a colour space, would that possibly affect player compatibility in general? Thanks! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com From richard at richsim900.plus.com Wed Jun 1 12:10:21 2011 From: richard at richsim900.plus.com (richard) Date: Wed, 01 Jun 2011 11:10:21 +0100 Subject: [FFmpeg-user] Problem editing m4a files with ffmpeg In-Reply-To: <1305899021.8150.2.camel@base-desktop> Message-ID: <1306923021.6793.4.camel@base-desktop> On Fri May 20 Richard wrote: > > When I edit an m4a file using ffmpeg using command like this: > > ffmpeg -i filename.m4a -ss 00:02:34 -t 00:28:35 -acodec copy > outputfile.m4a > > the edited file will play OK on software media players, but large m4a > files won't play on my Marantz CD6003. The files timeout after 30 > seconds. > > If I use mp4creator to optimize the edited m4a file using command like > this: > > mp4creator -optimize filename.m4a > >the optimized file plays OK on the Marantz. > > I found out using AtomicParsley that editing an m4a file with ffmpeg > moves the mdat atoms from the end of the file to near the front. This > seems to be an issue for the Marantz. mp4creator moves the mdat atoms > back to the end of the file again. > > Is this a bug in ffmpeg? fmpeg also moves mdat atoms from the end of a m4a file to near the front (before the moov atom) when extracting audio from a video file using: ffmpeg -i filename.mp4 -vn -acodec copy output.m4a So I guess ffmpeg moves mdat atoms when modifying mp4 and m4a files. This is a problem for my Marantz CD6003 player as it seems to need to read some metadata before it will play. If the mdat atoms are moved to near the front of the file, it has to read through all the mdat atoms before it reaches the metadata. That causes it to timeout after 30 seconds and will not play. I can work around this problem using the -optimize option of mp4creator. This puts the mdat atoms back to the end of the file (where they were before ffmpeg moved them). As I've received no response to this topic, I assume the ffmpeg developers are not concerned with this issue. From bahamutzero8825 at gmail.com Wed Jun 1 12:06:42 2011 From: bahamutzero8825 at gmail.com (Andrew Berg) Date: Wed, 01 Jun 2011 05:06:42 -0500 Subject: [FFmpeg-user] What video formats to support? In-Reply-To: References: <4DE60858.5020709@gmail.com> Message-ID: <4DE60F32.1040300@gmail.com> On 2011.06.01 04:51 AM, Dotan Cohen wrote: > However, that GUI app does not seem to be scriptable. I'd like to > script it as there are a few tens of files. It's not my computer, I > don't want to be there all day! There's a CLI version on the download page. I haven't used it myself, but I doubt it's difficult to wrap in a script. > So am I to understand that "avi" is the container and "mpeg4" is the > codec? Yes. Do take note that "mpeg4" means MPEG-4 Part 2 (its two most common implementations are DivX and Xvid). MPEG-4 Part 10 is called "h264" (implemented by x264 and others). > Is the yuv420p information important? AFAIK, aside from a few very specialized codecs, everything can be decoded into a usable colorspace. From wernam at hotmail.com Wed Jun 1 12:30:40 2011 From: wernam at hotmail.com (Wernam Wer) Date: Wed, 1 Jun 2011 12:30:40 +0200 Subject: [FFmpeg-user] Reading M4V files from UDP In-Reply-To: References: Message-ID: Hi all, I'm trying to read a livestream video from a camera, that send it trough UDP, the format is m4v (mpeg4 raw). If I use a program to read this stream and write into a pipe, ffmpeg can read it without problem, but ffmpeg can't read it directly, what I'm doing wrong? This is the command to read from a pipe: ffmpeg -vcodec copy -i pipe -an -f rtp rtp://224.52.52.22:7000 -sameq FFmpeg version 0.6.3, Copyright (c) 2000-2010 the FFmpeg developers built on May 31 2011 12:39:29 with gcc 4.4.3 configuration: libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0.11. 0 / 0.11. 0 [m4v @ 0x9bf4420]max_analyze_duration reached [m4v @ 0x9bf4420]Estimating duration from bitrate, this may be inaccurate Input #0, m4v, from 'pipe:': Duration: N/A, bitrate: N/A Stream #0.0: Video: mpeg4, yuv420p, 352x288 [PAR 1:1 DAR 11:9], 25 fps, 25 tbr, 1200k tbn, 25 tbc Output #0, rtp, to 'rtp://224.52.52.22:7004': Metadata: encoder : Lavf52.64.2 Stream #0.0: Video: mpeg4, yuv420p, 352x288 [PAR 1:1 DAR 11:9], q=2-31, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 SDP: v=0 o=- 0 0 IN IP4 127.0.0.1 s=No Name c=IN IP4 224.52.52.22 t=0 0 a=tool:libavformat 52.64.2 m=video 7004 RTP/AVP 96 a=rtpmap:96 MP4V-ES/90000 a=fmtp:96 profile-level-id=1; config=000001B003000001B50900000100000001200086C400668582120A31 ^Cframe= 1462 fps= 23 q=-1.0 Lsize= 3249kB time=58.48 bitrate= 455.1kbits/s video:3212kB audio:0kB global headers:0kB muxing overhead 1.137337% Received signal 2: terminating. And its work fine, to read directly from udp I use those: ffmpeg -vcodec copy -i udp://172.16.16.128:3000?localport=3000 -an -f rtp rtp://224.52.52.22:7000 -sameq ffmpeg -vcodec copy -f m4v -i udp://172.16.16.128:3000?localport=3000 -an -f rtp rtp://224.52.52.22:7004 -sameq And I get this errors: FFmpeg version 0.6.3, Copyright (c) 2000-2010 the FFmpeg developers built on May 31 2011 12:39:29 with gcc 4.4.3 configuration: libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0.11. 0 / 0.11. 0 [mpeg4 @ 0xa4f2d40]hmm, seems the headers are not complete, trying to guess time_increment_bits [mpeg4 @ 0xa4f2d40]my guess is 5 bits ;) [mpeg4 @ 0xa4f2d40]hmm, seems the headers are not complete, trying to guess time_increment_bits [mpeg4 @ 0xa4f2d40]my guess is 5 bits ;) [mpeg4 @ 0xa4f2d40]looks like this file was encoded with (divx4/(old)xvid/opendivx) -> forcing low_delay flag [mpeg4 @ 0xa4f2d40]picture size invalid (0x0) [mpeg4 @ 0xa4f2d40]get_buffer() failed (-1 0 0 (nil)) [m4v @ 0xa4f1420]Could not find codec parameters (Video: mpeg4, yuv420p) [m4v @ 0xa4f1420]Estimating duration from bitrate, this may be inaccurate From sheen.andy at googlemail.com Wed Jun 1 12:43:42 2011 From: sheen.andy at googlemail.com (Andy Sheen) Date: Wed, 01 Jun 2011 11:43:42 +0100 Subject: [FFmpeg-user] What video formats to support? In-Reply-To: References: <4DE60858.5020709@gmail.com> Message-ID: <4DE617DE.1060100@googlemail.com> Dotan Cohen wrote on Wed 01 Jun at 10:51 UK time > On Wed, Jun 1, 2011 at 12:37, Andrew Berg wrote: >> MediaInfo does this wonderfully. >> >> http://mediainfo.sourceforge.net >> > > Thanks. > > However, that GUI app does not seem to be scriptable. I'd like to > script it as there are a few tens of files. It's not my computer, I > don't want to be there all day! > MediaInfo has a CLI version and is scriptable, as is ffprobe (supplied with ffmpeg). You do need to do some manipulation of the output though. > I noticed just now that simply passing a file to ffmpeg with no other > parameters gives some information: > > $ ffmpeg -i file.avi > Stream #0.0: Video: mpeg4, yuv420p, 684x282 [PAR 1:1 DAR 114:47], 25 > tbr, 25 tbn, 25 tbc > Stream #0.1: Audio: mp3, 48000 Hz, 2 channels, s16, 112 kb/s > > So am I to understand that "avi" is the container and "mpeg4" is the > codec? Is the yuv420p information important? I see that it is a colour > space, would that possibly affect player compatibility in general? > It tells you that the encoded info, when decoded will give you a yuv 4:2:0 progressive format of data (most things play this). As to compatibility with media players, there is more to it than what format it is in. In general, it will include the resolution and what "profile" the video has been encoded in. In general, the newer the machine, the better the support. From dotancohen at gmail.com Wed Jun 1 12:50:19 2011 From: dotancohen at gmail.com (Dotan Cohen) Date: Wed, 1 Jun 2011 13:50:19 +0300 Subject: [FFmpeg-user] What video formats to support? In-Reply-To: <4DE60F32.1040300@gmail.com> References: <4DE60858.5020709@gmail.com> <4DE60F32.1040300@gmail.com> Message-ID: On Wed, Jun 1, 2011 at 13:06, Andrew Berg wrote: >> However, that GUI app does not seem to be scriptable. I'd like to >> script it as there are a few tens of files. It's not my computer, I >> don't want to be there all day! > > There's a CLI version on the download page. I haven't used it myself, > but I doubt it's difficult to wrap in a script. Thanks, I will take a look. >> So am I to understand that "avi" is the container and "mpeg4" is the >> codec? > > Yes. Do take note that "mpeg4" means MPEG-4 Part 2 (its two most common > implementations are DivX and Xvid). MPEG-4 Part 10 is called "h264" > (implemented by x264 and others). Here is the confusion! Reading the Wikipedia page for DivX is a headache, there are so many things with that name apparently. Let me see if I understand correctly: to play this file: $ ffmpeg -i file.avi Stream #0.0: Video: mpeg4 The player must support the avi container and the mpeg4 codec. However, their are multiple implementations of the mpeg4 codec, and the implementation is not specified here. So to ensure compatibility the player should support all common implementations of mpeg4, two of which are DivX and Xvid. Futhermore, there exists differing mpeg4 "parts" which require codecs different to the ones mentioned above. >> Is the yuv420p information important? > > AFAIK, aside from a few very specialized codecs, everything can be > decoded into a usable colorspace. Thanks. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com From dotancohen at gmail.com Wed Jun 1 12:54:49 2011 From: dotancohen at gmail.com (Dotan Cohen) Date: Wed, 1 Jun 2011 13:54:49 +0300 Subject: [FFmpeg-user] What video formats to support? In-Reply-To: References: Message-ID: If I understand correctly, if a machine states that it supports: M/RMVB, MKV, MOV, FLV, H.264, VOB, AVC, AVI, DIVX, HDMOV DAT, PMP, mp4, MPEG1/2/4 Then that is a mix of container formats, codecs, implementations, and parts? What are the _common_ formats, codecs, implementations, and parts? Such that if one were to buy a media player without knowing beforehand the video file in question, one might reasonably assume that it would play them all if it supported those formats? Thanks. I had not idea that the field is so fragmented. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com From vadimm at cellnets.com Wed Jun 1 13:14:14 2011 From: vadimm at cellnets.com (Vadim Mushayev) Date: Wed, 1 Jun 2011 14:14:14 +0300 Subject: [FFmpeg-user] ffmpeg and hardware encoder Message-ID: <63912F50C29F2B458CEFE4C60B471C2C94B4FD@azrex03.elgadcom.com> Hi I want to work with ffmpeg//ffserver in order to send video stream from my device. CPU of the device has hardware encoder. 1. How can I pass encoding result to the ffmpeg? 2. Can I send encoding result to the ffserver? Thanks From bahamutzero8825 at gmail.com Wed Jun 1 13:15:51 2011 From: bahamutzero8825 at gmail.com (Andrew Berg) Date: Wed, 01 Jun 2011 06:15:51 -0500 Subject: [FFmpeg-user] What video formats to support? In-Reply-To: References: <4DE60858.5020709@gmail.com> <4DE60F32.1040300@gmail.com> Message-ID: <4DE61F67.70002@gmail.com> On 2011.06.01 05:50 AM, Dotan Cohen wrote: > Let me see if I understand correctly: to play this file: > $ ffmpeg -i file.avi > Stream #0.0: Video: mpeg4 > The player must support the avi container and the mpeg4 codec. > However, their are multiple implementations of the mpeg4 codec, and > the implementation is not specified here. So to ensure compatibility > the player should support all common implementations of mpeg4, two of > which are DivX and Xvid. Yes. All (working) encoders conform to the standard. Decoders are supposed to support all parts of a standard, though this isn't always the case (decoder developers may not bother to implement certain things if popular encoders don't use them). In general, if a player supports a certain standard, it supports all (common) implementations. > Futhermore, there exists differing mpeg4 "parts" which require codecs > different to the ones mentioned above. Two parts are video compression standards (MPEG-4 video and AVC), one is an audio compression standard (AAC), one is the container standard, one is a subtitle standard, and I forget what the others are. The parts are simply the formal names for the standards. For example, MPEG-4 Part 10 is another name for AVC, which is another name for H.264. I didn't mean to confuse you; I only wanted to point out that "mpeg4" does not mean AVC/H.264. The only name for that standard that couldn't be confused with AVC is "MPEG-4 Part 2". > If I understand correctly, if a machine states that it supports: > M/RMVB, MKV, MOV, FLV, H.264, VOB, AVC, AVI, DIVX, HDMOV DAT, PMP, > mp4, MPEG1/2/4 > Then that is a mix of container formats, codecs, implementations, and parts? Codecs and implementations are the same thing, but yes, that is a mix. It can be confusing, but the idea is to drop a word that someone is familiar with. From dotancohen at gmail.com Wed Jun 1 13:39:00 2011 From: dotancohen at gmail.com (Dotan Cohen) Date: Wed, 1 Jun 2011 14:39:00 +0300 Subject: [FFmpeg-user] What video formats to support? In-Reply-To: <4DE61F67.70002@gmail.com> References: <4DE60858.5020709@gmail.com> <4DE60F32.1040300@gmail.com> <4DE61F67.70002@gmail.com> Message-ID: On Wed, Jun 1, 2011 at 14:15, Andrew Berg wrote: > On 2011.06.01 05:50 AM, Dotan Cohen wrote: >> Let me see if I understand correctly: to play this file: >> $ ffmpeg -i file.avi >> Stream #0.0: Video: mpeg4 >> The player must support the avi container and the mpeg4 codec. >> However, their are multiple implementations of the mpeg4 codec, and >> the implementation is not specified here. So to ensure compatibility >> the player should support all common implementations of mpeg4, two of >> which are DivX and Xvid. >> > Yes. All (working) encoders conform to the standard. Decoders are > supposed to support all parts of a standard, though this isn't always > the case (decoder developers may not bother to implement certain things > if popular encoders don't use them). In general, if a player supports a > certain standard, it supports all (common) implementations. > The problem is that some players on Ebay say that they support MPEG4, but mention that they don't support h264. That seems to contract the statement that supporting a codec means supporting all implementations of the codec. Is there a fine manual that I should be reading to explain all this? >> Futhermore, there exists differing mpeg4 "parts" which require codecs >> different to the ones mentioned above. > Two parts are video compression standards (MPEG-4 video and AVC), one is > an audio compression standard (AAC), one is the container standard, one > is a subtitle standard, and I forget what the others are. The parts are > simply the formal names for the standards. For example, MPEG-4 Part 10 > is another name for AVC, which is another name for H.264. I didn't mean > to confuse you; I only wanted to point out that "mpeg4" does not mean > AVC/H.264. The only name for that standard that couldn't be confused > with AVC is "MPEG-4 Part 2". > Then h264 isn't a codec? Wikipedia implies that it is: http://en.wikipedia.org/wiki/H264 >> If I understand correctly, if a machine states that it supports: >> M/RMVB, MKV, MOV, FLV, H.264, VOB, AVC, AVI, DIVX, HDMOV DAT, PMP, >> mp4, MPEG1/2/4 >> Then that is a mix of container formats, codecs, implementations, and parts? > Codecs and implementations are the same thing, but yes, that is a mix. > It can be confusing, but the idea is to drop a word that someone is > familiar with. I see. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com From bahamutzero8825 at gmail.com Wed Jun 1 13:53:50 2011 From: bahamutzero8825 at gmail.com (Andrew Berg) Date: Wed, 01 Jun 2011 06:53:50 -0500 Subject: [FFmpeg-user] What video formats to support? In-Reply-To: References: <4DE60858.5020709@gmail.com> <4DE60F32.1040300@gmail.com> <4DE61F67.70002@gmail.com> Message-ID: <4DE6284E.1050509@gmail.com> On 2011.06.01 06:39 AM, Dotan Cohen wrote: > The problem is that some players on Ebay say that they support MPEG4, > but mention that they don't support h264. That seems to contract the > statement that supporting a codec means supporting all implementations > of the codec. Is there a fine manual that I should be reading to > explain all this? AVC/H.264 and MPEG-4 Part 2 (which many call MPEG-4 video, even though that can easily be confused with the MP4 container, which often holds AVC video) are two completely different standards. Wikipedia is pretty helpful. > Then h264 isn't a codec? Wikipedia implies that it is: > http://en.wikipedia.org/wiki/H264 It's a standard. There are several implementations of this standard (e.g. x264), which would be considered codecs. See http://en.wikipedia.org/wiki/Codec. From martins.bisenieks at coastcore.com Wed Jun 1 15:19:52 2011 From: martins.bisenieks at coastcore.com (=?UTF-8?B?TcSBcnRpxYbFoSBCaXNlbmlla3M=?=) Date: Wed, 01 Jun 2011 16:19:52 +0300 Subject: [FFmpeg-user] UDP converting Message-ID: <4DE63C78.4070705@coastcore.com> Hi I'm trying to encode udp live stream and send to wowza meda server with ffmpeg. At the beginning ffmpeg works fine but after some errors it crashes and dont do anything. Mybe someone can help me with this. There is my console log: martins at topaz:~$ ffmpeg -i "udp://225.1.1.4:5000" -vcodec libx264 -vpre baseline -g 60 -vb 150000 -strict experimental -acodec aac -ab 96000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -f mpegts udp://127.0.0.1:10000?pkt_size=1316 ffmpeg version git-N-30421-gc328122, Copyright (c) 2000-2011 the FFmpeg developers built on May 30 2011 13:45:56 with gcc 4.4.3 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab libavutil 51. 3. 0 / 51. 3. 0 libavcodec 53. 6. 1 / 53. 6. 1 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 1. 0 / 53. 1. 0 libavfilter 2. 11. 0 / 2. 11. 0 libswscale 0. 14. 0 / 0. 14. 0 libpostproc 51. 2. 0 / 51. 2. 0 [mpegts @ 0x26b23e0] Unable to seek back to the start [mpeg2video @ 0x26b3560] mpeg_decode_postinit() failure Last message repeated 7 times [mpegts @ 0x26b23e0] max_analyze_duration 5000000 reached at 5016000 [mpegts @ 0x26b23e0] Estimating duration from bitrate, this may be inaccurate Input #0, mpegts, from 'udp://225.1.1.4:5000': Duration: N/A, start: 90805.007222, bitrate: 4192 kb/s Program 113 Stream #0.0[0x65]: Video: mpeg2video (Main), yuv420p, 720x576 [PAR 16:15 DAR 4:3], 4000 kb/s, 26.27 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x66](eng): Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s [buffer @ 0x274c5e0] w:720 h:576 pixfmt:yuv420p tb:1/1000000 sar:16/15 sws_param: [libx264 @ 0x26cabe0] Default settings detected, using medium profile [libx264 @ 0x26cabe0] using SAR=16/15 [libx264 @ 0x26cabe0] using cpu capabilities: MMX2 SSE2 SSE3 Cache64 [libx264 @ 0x26cabe0] profile High, level 3.0 [mpegts @ 0x26ab040] muxrate VBR, pcr every 2 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to 'udp://127.0.0.1:10000?pkt_size=1316': Metadata: encoder : Lavf53.2.0 Stream #0.0: Video: libx264, yuv420p, 720x576 [PAR 16:15 DAR 4:3], q=2-31, 150 kb/s, 90k tbn, 25 tbc Stream #0.1(eng): Audio: libfaac, 48000 Hz, stereo, s16, 96 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop, [?] for help [mpeg2video @ 0x26b3560] warning: first frame is no keyframe [udp @ 0x26b2960] circular_buffer: OVERRUN time=9.08 bitrate= 316.0kbits/s dup=9 drop=0 frame= 520 fps= 18 q=50.0 size= 693kB time=19.08 bitrate= 297.7kbits/s dup=9 drop=0 -- Coast Core *M?rti?? Bisenieks* Lead programmer Phone: +371 26129622 E-mail: martins.bisenieks at coastcore.com Web: http://www.coastcore.com From dotancohen at gmail.com Wed Jun 1 15:39:52 2011 From: dotancohen at gmail.com (Dotan Cohen) Date: Wed, 1 Jun 2011 16:39:52 +0300 Subject: [FFmpeg-user] What video formats to support? In-Reply-To: <4DE6284E.1050509@gmail.com> References: <4DE60858.5020709@gmail.com> <4DE60F32.1040300@gmail.com> <4DE61F67.70002@gmail.com> <4DE6284E.1050509@gmail.com> Message-ID: On Wed, Jun 1, 2011 at 14:53, Andrew Berg wrote: > On 2011.06.01 06:39 AM, Dotan Cohen wrote: >> The problem is that some players on Ebay say that they support MPEG4, >> but mention that they don't support h264. That seems to contract the >> statement that supporting a codec means supporting all implementations >> of the codec. Is there a fine manual that I should be reading to >> explain all this? > AVC/H.264 and MPEG-4 Part 2 (which many call MPEG-4 video, even though > that can easily be confused with the MP4 container, which often holds > AVC video) are two completely different standards. Wikipedia is pretty > helpful. >> Then h264 isn't a codec? Wikipedia implies that it is: >> http://en.wikipedia.org/wiki/H264 > It's a standard. There are several implementations of this standard > (e.g. x264), which would be considered codecs. > See http://en.wikipedia.org/wiki/Codec. > Thanks, I see, the point being: "A codec (the program) should not be confused with a coding or compression format or standard ? a format is a document (the standard), a way of storing data, while a codec is a program (an implementation) which can read or write such files. In practice "codec" is sometimes used loosely to refer to formats, however." With that in mind I'll go back over all the material that I've read so far. Thank you! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com From betonpfeiler at googlemail.com Wed Jun 1 15:41:29 2011 From: betonpfeiler at googlemail.com (betonpfeiler) Date: Wed, 01 Jun 2011 15:41:29 +0200 Subject: [FFmpeg-user] x264 with 4:2:2 colorspace In-Reply-To: <4DE6284E.1050509@gmail.com> References: <4DE60858.5020709@gmail.com> <4DE60F32.1040300@gmail.com> <4DE61F67.70002@gmail.com> <4DE6284E.1050509@gmail.com> Message-ID: <4DE64189.5040107@googlemail.com> Hey! I'm trying to encode a file to an AVC-intra like codec. For testing I'm using the following command: ffmpeg -i test.avi' -vcodec libx264 -pix_fmt yuv422p -vpre fast -b 100M -intra 'avcintra.mp4' The problem is, I can't get ffmpeg to keep the 4:2:2 pix format, it always falls back to 4:2:0 on the High-Level. How can I set ffmpeg to the high4:2:2-Level? Thanks! J From lists at glidos.net Wed Jun 1 16:09:30 2011 From: lists at glidos.net (Paul Gardiner) Date: Wed, 01 Jun 2011 15:09:30 +0100 Subject: [FFmpeg-user] -crf ignored Message-ID: <4DE6481A.9050104@glidos.net> Hi, I've been using this command: ffmpeg -i -f mp4 -vcodec libx264 -crf 18.0 -acodec ac3 -ab 160k and it works to some extent, but the report on stdout/stderr says that it is using crf=23.0. The results support 23.0 being used, plus if I change the value I pass in, it has no effect on the file size or quality. Can anyone tell me what I'm doing wrongly? I can easily supply more info if that helps. Paul. From rodney.baker at iinet.net.au Wed Jun 1 16:14:52 2011 From: rodney.baker at iinet.net.au (Rodney Baker) Date: Wed, 1 Jun 2011 23:44:52 +0930 Subject: [FFmpeg-user] Problem editing m4a files with ffmpeg In-Reply-To: <1306923021.6793.4.camel@base-desktop> References: <1306923021.6793.4.camel@base-desktop> Message-ID: <201106012344.52846.rodney.baker@iinet.net.au> On Wed, 1 Jun 2011 19:40:21 richard wrote: > [...] > > As I've received no response to this topic, I assume the ffmpeg > developers are not concerned with this issue. > Not all the ffmpeg developers frequent this list (a few do, but maybe not the maintainer of the parts causing you the problem). If you want a response from the developers, raise an issue on the bug tracker (instructions on the ffmpeg.org web site). -- =================================================== Rodney Baker VK5ZTV rodney.baker at iinet.net.au =================================================== From rodney.baker at iinet.net.au Wed Jun 1 16:19:44 2011 From: rodney.baker at iinet.net.au (Rodney Baker) Date: Wed, 1 Jun 2011 23:49:44 +0930 Subject: [FFmpeg-user] x264 with 4:2:2 colorspace In-Reply-To: <4DE64189.5040107@googlemail.com> References: <4DE6284E.1050509@gmail.com> <4DE64189.5040107@googlemail.com> Message-ID: <201106012349.44909.rodney.baker@iinet.net.au> On Wed, 1 Jun 2011 23:11:29 betonpfeiler wrote: > Hey! > > I'm trying to encode a file to an AVC-intra like codec. For testing I'm > using the following command: > > ffmpeg -i test.avi' -vcodec libx264 -pix_fmt yuv422p -vpre fast -b 100M > -intra 'avcintra.mp4' > > The problem is, I can't get ffmpeg to keep the 4:2:2 pix format, it > always falls back to 4:2:0 on the High-Level. How can I set ffmpeg to > the high4:2:2-Level? > > Thanks! > J > Please don't hijack threads, which you just did by replying to an existing message and changing the subject line. This messes up the flow for people who uses mail programs that display the list by thread and your question is likely to get missed. To start a new thread, send a new message to the list. If you're replying to an existing thread, don't change the subject line. -- =================================================== Rodney Baker VK5ZTV rodney.baker at iinet.net.au =================================================== From betonpfeiler at googlemail.com Wed Jun 1 16:34:14 2011 From: betonpfeiler at googlemail.com (betonpfeiler) Date: Wed, 01 Jun 2011 16:34:14 +0200 Subject: [FFmpeg-user] x264 with 4:2:2 colorspace Message-ID: <4DE64DE6.6070607@googlemail.com> Oh, thanks for the advice... I didn't know that this would hijack the thread. Sorry for that! So here comes my question in a new Thread: Hey! > > I'm trying to encode a file to an AVC-intra like codec. For testing I'm > using the following command: > > ffmpeg -i test.avi' -vcodec libx264 -pix_fmt yuv422p -vpre fast -b 100M > -intra 'avcintra.mp4' > > The problem is, I can't get ffmpeg to keep the 4:2:2 pix format, it > always falls back to 4:2:0 on the High-Level. How can I set ffmpeg to > the high4:2:2-Level? > > Thanks! > J From james.darnley at gmail.com Wed Jun 1 16:37:34 2011 From: james.darnley at gmail.com (James Darnley) Date: Wed, 1 Jun 2011 16:37:34 +0200 Subject: [FFmpeg-user] x264 with 4:2:2 colorspace In-Reply-To: <4DE64DE6.6070607@googlemail.com> References: <4DE64DE6.6070607@googlemail.com> Message-ID: On 01/06/2011, betonpfeiler wrote: >> I'm trying to encode a file to an AVC-intra like codec. For testing I'm >> using the following command: >> >> ffmpeg -i test.avi' -vcodec libx264 -pix_fmt yuv422p -vpre fast -b 100M >> -intra 'avcintra.mp4' >> >> The problem is, I can't get ffmpeg to keep the 4:2:2 pix format, it >> always falls back to 4:2:0 on the High-Level. How can I set ffmpeg to >> the high4:2:2-Level? You can't because x264 only supports 420 From betonpfeiler at googlemail.com Wed Jun 1 17:04:22 2011 From: betonpfeiler at googlemail.com (betonpfeiler) Date: Wed, 01 Jun 2011 17:04:22 +0200 Subject: [FFmpeg-user] x264 with 4:2:2 colorspace In-Reply-To: References: <4DE64DE6.6070607@googlemail.com> Message-ID: <4DE654F6.5090309@googlemail.com> Am 01.06.2011 16:37, schrieb James Darnley: > On 01/06/2011, betonpfeiler wrote: >>> I'm trying to encode a file to an AVC-intra like codec. For testing I'm >>> using the following command: >>> >>> ffmpeg -i test.avi' -vcodec libx264 -pix_fmt yuv422p -vpre fast -b 100M >>> -intra 'avcintra.mp4' >>> >>> The problem is, I can't get ffmpeg to keep the 4:2:2 pix format, it >>> always falls back to 4:2:0 on the High-Level. How can I set ffmpeg to >>> the high4:2:2-Level? > You can't because x264 only supports 420 > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > bollocks. Does anyone know an opensource, or at least affordable AVC-Intra (h.264, 100Mbit/s, Intraframe only, 4:2:2 colorsampling) encoder? From dave at avpreserve.com Wed Jun 1 17:08:18 2011 From: dave at avpreserve.com (Dave Rice) Date: Wed, 1 Jun 2011 11:08:18 -0400 Subject: [FFmpeg-user] x264 with 4:2:2 colorspace In-Reply-To: <4DE654F6.5090309@googlemail.com> References: <4DE64DE6.6070607@googlemail.com> <4DE654F6.5090309@googlemail.com> Message-ID: <9150BAD0-62FB-4F02-A2E6-20C02BA0DF7A@avpreserve.com> On Jun 1, 2011, at 11:04 AM, betonpfeiler wrote: > Am 01.06.2011 16:37, schrieb James Darnley: >> On 01/06/2011, betonpfeiler wrote: >>>> I'm trying to encode a file to an AVC-intra like codec. For testing I'm >>>> using the following command: >>>> >>>> ffmpeg -i test.avi' -vcodec libx264 -pix_fmt yuv422p -vpre fast -b 100M >>>> -intra 'avcintra.mp4' >>>> >>>> The problem is, I can't get ffmpeg to keep the 4:2:2 pix format, it >>>> always falls back to 4:2:0 on the High-Level. How can I set ffmpeg to >>>> the high4:2:2-Level? >> You can't because x264 only supports 420 >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > > bollocks. Does anyone know an opensource, or at least affordable AVC-Intra (h.264, 100Mbit/s, Intraframe only, 4:2:2 colorsampling) encoder? This wikipedia table shows that h264 encoders that do support 4:2:2 (not many), http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Software_encoder_feature_comparison. I don't know if any are open source. Dave Rice avpreserve.com From betonpfeiler at googlemail.com Wed Jun 1 17:22:41 2011 From: betonpfeiler at googlemail.com (betonpfeiler) Date: Wed, 01 Jun 2011 17:22:41 +0200 Subject: [FFmpeg-user] x264 with 4:2:2 colorspace In-Reply-To: <9150BAD0-62FB-4F02-A2E6-20C02BA0DF7A@avpreserve.com> References: <4DE64DE6.6070607@googlemail.com> <4DE654F6.5090309@googlemail.com> <9150BAD0-62FB-4F02-A2E6-20C02BA0DF7A@avpreserve.com> Message-ID: <4DE65941.5010809@googlemail.com> Am 01.06.2011 17:08, schrieb Dave Rice: > On Jun 1, 2011, at 11:04 AM, betonpfeiler wrote: > >> Am 01.06.2011 16:37, schrieb James Darnley: >>> On 01/06/2011, betonpfeiler wrote: >>>>> I'm trying to encode a file to an AVC-intra like codec. For testing I'm >>>>> using the following command: >>>>> >>>>> ffmpeg -i test.avi' -vcodec libx264 -pix_fmt yuv422p -vpre fast -b 100M >>>>> -intra 'avcintra.mp4' >>>>> >>>>> The problem is, I can't get ffmpeg to keep the 4:2:2 pix format, it >>>>> always falls back to 4:2:0 on the High-Level. How can I set ffmpeg to >>>>> the high4:2:2-Level? >>> You can't because x264 only supports 420 >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user at ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>> >> bollocks. Does anyone know an opensource, or at least affordable AVC-Intra (h.264, 100Mbit/s, Intraframe only, 4:2:2 colorsampling) encoder? > This wikipedia table shows that h264 encoders that do support 4:2:2 (not many), http://en.wikipedia.org/wiki/H.264/MPEG-4_AVC#Software_encoder_feature_comparison. I don't know if any are open source. > Dave Rice > avpreserve.com > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Thanks for the List. these encoder aren' t open source... but I found an AVC-Intra Plug-In for the Compressor on the Panasonic website. And as I have access to a final cut workstation, I'll go with this. Thanks for your effort! From funnylookinhat at gmail.com Wed Jun 1 17:38:48 2011 From: funnylookinhat at gmail.com (David Overcash) Date: Wed, 1 Jun 2011 09:38:48 -0600 Subject: [FFmpeg-user] -crf ignored In-Reply-To: <4DE6481A.9050104@glidos.net> References: <4DE6481A.9050104@glidos.net> Message-ID: Try -crf 18 instead of 18.0 - I seem to remember decimal values being... screwy. On Wed, Jun 1, 2011 at 8:09 AM, Paul Gardiner wrote: > Hi, > I've been using this command: > > ffmpeg -i -f mp4 -vcodec libx264 -crf 18.0 -acodec ac3 -ab > 160k > > and it works to some extent, but the report on stdout/stderr says > that it is using crf=23.0. The results support 23.0 being used, > plus if I change the value I pass in, it has no effect on the file > size or quality. Can anyone tell me what I'm doing wrongly? I > can easily supply more info if that helps. > > Paul. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From etienne.buira.lists at free.fr Wed Jun 1 17:56:05 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Wed, 1 Jun 2011 17:56:05 +0200 Subject: [FFmpeg-user] -crf ignored In-Reply-To: <4DE6481A.9050104@glidos.net> References: <4DE6481A.9050104@glidos.net> Message-ID: <20110601155604.GE28878@epicure.lazyet.homelinux.net> On Wed, Jun 01, 2011 at 03:09:30PM +0100, Paul Gardiner wrote: > Hi, > I've been using this command: > > ffmpeg -i -f mp4 -vcodec libx264 -crf 18.0 -acodec ac3 -ab > 160k > > and it works to some extent, but the report on stdout/stderr says > that it is using crf=23.0. The results support 23.0 being used, > plus if I change the value I pass in, it has no effect on the file > size or quality. Can anyone tell me what I'm doing wrongly? I > can easily supply more info if that helps. > > Paul. Hi. This is because of the weird way libx264 options are handled. You're best bet is to use presets (-preset, look at x264 --help to see which exists and what they do). From funnylookinhat at gmail.com Wed Jun 1 17:57:13 2011 From: funnylookinhat at gmail.com (David Overcash) Date: Wed, 1 Jun 2011 09:57:13 -0600 Subject: [FFmpeg-user] -crf ignored In-Reply-To: <20110601155604.GE28878@epicure.lazyet.homelinux.net> References: <4DE6481A.9050104@glidos.net> <20110601155604.GE28878@epicure.lazyet.homelinux.net> Message-ID: Ah yes - You should add, at minimum, -vpre normal On Wed, Jun 1, 2011 at 9:56 AM, Etienne Buira wrote: > On Wed, Jun 01, 2011 at 03:09:30PM +0100, Paul Gardiner wrote: > > Hi, > > I've been using this command: > > > > ffmpeg -i -f mp4 -vcodec libx264 -crf 18.0 -acodec ac3 -ab > > 160k > > > > and it works to some extent, but the report on stdout/stderr says > > that it is using crf=23.0. The results support 23.0 being used, > > plus if I change the value I pass in, it has no effect on the file > > size or quality. Can anyone tell me what I'm doing wrongly? I > > can easily supply more info if that helps. > > > > Paul. > > Hi. > > This is because of the weird way libx264 options are handled. > > You're best bet is to use presets (-preset, look at x264 --help to see > which exists and what they do). > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From lists at glidos.net Wed Jun 1 18:13:16 2011 From: lists at glidos.net (Paul Gardiner) Date: Wed, 01 Jun 2011 17:13:16 +0100 Subject: [FFmpeg-user] -crf ignored In-Reply-To: <20110601155604.GE28878@epicure.lazyet.homelinux.net> References: <4DE6481A.9050104@glidos.net> <20110601155604.GE28878@epicure.lazyet.homelinux.net> Message-ID: <4DE6651C.1020803@glidos.net> On 01/06/2011 16:56, Etienne Buira wrote: > On Wed, Jun 01, 2011 at 03:09:30PM +0100, Paul Gardiner wrote: >> Hi, >> I've been using this command: >> >> ffmpeg -i -f mp4 -vcodec libx264 -crf 18.0 -acodec ac3 -ab >> 160k >> >> and it works to some extent, but the report on stdout/stderr says >> that it is using crf=23.0. The results support 23.0 being used, >> plus if I change the value I pass in, it has no effect on the file >> size or quality. Can anyone tell me what I'm doing wrongly? I >> can easily supply more info if that helps. >> >> Paul. > > Hi. > > This is because of the weird way libx264 options are handled. > > You're best bet is to use presets (-preset, look at x264 --help to see > which exists and what they do). Thanks. First I thought that wouldn't help because I tried -preset medium and it was producing a far lower bit rate than I was getting before, but strangely, adding -crf after the -preset arg works and the crf value is honoured. And thanks to David for suggestions too. Cheers, Paul. From jsd at cluttered.com Wed Jun 1 18:36:51 2011 From: jsd at cluttered.com (Jon Drukman) Date: Wed, 1 Jun 2011 16:36:51 +0000 (UTC) Subject: [FFmpeg-user] What happened to faad/channel element not allocated Message-ID: I have a .mov file which shows up with zero audio channels, and produces the famous "[aac @ 0xad45c60] channel element 1.0 is not allocated" message when ffmpeg tries to read it. I found this blog post: http://lzone.de/aac+decoding+with+ffmpeg+doesn%27t+work which suggests that using libfaad to decode the audio stream will give satisfactory results. However, it seems that the current version of ffmpeg does not support libfaad any more. There are no faad-related configure options, at least, in a fresh git checkout. What can I do to process these files successfully? $ ffprobe Title_02.mov ffprobe version UNKNOWN, Copyright (c) 2007-2011 the FFmpeg developers built on May 25 2011 22:23:12 with gcc 4.4.4 20100726 (Red Hat 4.4.4-13) configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libx264 --enable-pthreads --enable-static --disable-shared --disable-network --enable-nonfree libavutil 51. 2. 2 / 51. 2. 2 libavcodec 53. 6. 0 / 53. 6. 0 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 11. 0 / 2. 11. 0 libswscale 0. 14. 0 / 0. 14. 0 libpostproc 51. 2. 0 / 51. 2. 0 [aac @ 0x902ec60] channel element 1.0 is not allocated (message repeated 1000 times) [mov,mp4,m4a,3gp,3g2,mj2 @ 0x902a500] max_analyze_duration 5000000 reached at 5005000 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Title_02.mov': Metadata: creation_time : 2011-04-28 20:41:51 Duration: 00:02:49.31, start: 0.000000, bitrate: 1299 kb/s Stream #0.0(eng): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 1198 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc Metadata: creation_time : 1945-04-27 20:41:51 Stream #0.1(eng): Audio: aac, 0 channels, s16, 96 kb/s Metadata: creation_time : 1945-04-27 20:41:51 From jsd at cluttered.com Wed Jun 1 19:16:41 2011 From: jsd at cluttered.com (Jon Drukman) Date: Wed, 1 Jun 2011 17:16:41 +0000 (UTC) Subject: [FFmpeg-user] What video formats to support? References: Message-ID: Dotan Cohen gmail.com> writes: > > A user has a collection of video files from various sources. He need > to know exactly which video formats he has in use so that he can buy a > compatible media player such as this: > http://cgi.ebay.com/H-264-RM-RMVB-MKV-FLV-HDD-TV-MEDIA-PLAYER-VGA-HDMI-720P-/390317355636?pt=UK_AudioTVElectronics_HomeAudioHiFi_CDPlayerSeparates&hash=item5ae0ba3274 > > Can ffmpeg tell use which container formats and codecs are in use on a > particular file? I went through the fine manpage but saw no mention of > it. Googling finds me nothing relevant either. > > Thanks! > I bought one of these. http://www.wdc.com/en/products/products.aspx?id=320 I suspect that it uses ffmpeg internally. The list of formats it supports seems to tally very closely with that of ffmpeg. Anyway, I haven't yet found anything that it can't play. From dotancohen at gmail.com Wed Jun 1 19:39:55 2011 From: dotancohen at gmail.com (Dotan Cohen) Date: Wed, 1 Jun 2011 20:39:55 +0300 Subject: [FFmpeg-user] What video formats to support? In-Reply-To: References: Message-ID: On Wed, Jun 1, 2011 at 20:16, Jon Drukman wrote: > I bought one of these. > http://www.wdc.com/en/products/products.aspx?id=320 > > I suspect that it uses ffmpeg internally. ?The list of formats it supports seems > to tally very closely with that of ffmpeg. > > Anyway, I haven't yet found anything that it can't play. > Nice. The local price here is only about 12% more than the list price on the website. That is good, we usually pay about three times as much! However, the Ebay knockoff is $37 USD including shipping, that is about one fourth the price of the WD unit even before shipping is added! FFmpeg is LGPL I think, so the WD website would have mentioned it. Of course, the LGPL need only be mentioned on downlaod pages and the product manual itself in the stricktest sense. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com From lugoteehalt at yahoo.co.uk Wed Jun 1 20:42:25 2011 From: lugoteehalt at yahoo.co.uk (lugoteehalt) Date: Wed, 1 Jun 2011 11:42:25 -0700 (PDT) Subject: [FFmpeg-user] Picture jerky when screencasting? Message-ID: <1306953745653-3566577.post@n4.nabble.com> As beginner trying to use ffmpeg to record screen, screencasting. Problem is the recorded picture jerks - as though only every 4th. frame, say, is being recorded. This recording, say, BBC iplayer at full screen. ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s `xdpyinfo | grep 'dimensions:'| awk '{print $2}'` -r 25 -i :0.0 -sameq out.mpg Tried this: ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1360x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast output.mkv ffmpeg version git-N-30155-g01a73d6, Copyright (c) 2000-2011 the FFmpeg developers built on May 23 2011 22:32:40 with gcc 4.4.5 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab libavutil 51. 2. 1 / 51. 2. 1 libavcodec 53. 6. 0 / 53. 6. 0 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 10. 0 / 2. 10. 0 libswscale 0. 14. 0 / 0. 14. 0 libpostproc 51. 2. 0 / 51. 2. 0 [alsa @ 0x9b5cb40] capture with some ALSA plugins, especially dsnoop, may hang. [alsa @ 0x9b5cb40] Estimating duration from bitrate, this may be inaccurate Input #0, alsa, from 'pulse': Duration: N/A, start: 1306952159.991708, bitrate: N/A Stream #0.0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s [x11grab @ 0x9b6ec00] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1360 height: 768 [x11grab @ 0x9b6ec00] shared memory extension found [x11grab @ 0x9b6ec00] Estimating duration from bitrate, this may be inaccurate Input #1, x11grab, from ':0.0': Duration: N/A, start: 1306952160.163753, bitrate: 1002700 kb/s Stream #1.0: Video: rawvideo, bgra, 1360x768, 1002700 kb/s, 30 tbr, 1000k tbn, 30 tbc Incompatible pixel format 'bgra' for codec 'libx264', auto-selecting format 'yuv420p' [buffer @ 0x9b5e680] w:1360 h:768 pixfmt:bgra tb:1/1000000 sar:0/1 sws_param: [ffsink @ 0x9b5d520] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' [scale @ 0x9b5dee0] w:1360 h:768 fmt:bgra -> w:1360 h:768 fmt:yuv420p flags:0xa0000004 [libx264 @ 0x9b558e0] --psnr used with psy on: results will be invalid! [libx264 @ 0x9b558e0] --tune psnr should be used if attempting to benchmark psnr! [libx264 @ 0x9b558e0] interlace + weightp is not implemented [libx264 @ 0x9b558e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle Cache64 [libx264 @ 0x9b558e0] constant rate-factor is incompatible with 2pass. Output #0, matroska, to 'output.mkv': Stream #0.0: Video: libx264, yuv420p, 1360x768, q=0-69, pass 1, pass 2, 200 kb/s, 90k tbn, 30 tbc Stream #0.1: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, pass 1, pass 2, 1411 kb/s Stream mapping: Stream #1.0 -> #0.0 Stream #0.0 -> #0.1 Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height Any suggestions? 'constant rate-factor in incompatible with 2pass' is in red. Thanks any help. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Picture-jerky-when-screencasting-tp3566577p3566577.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From belcampo at zonnet.nl Wed Jun 1 22:38:05 2011 From: belcampo at zonnet.nl (belcampo) Date: Wed, 01 Jun 2011 22:38:05 +0200 Subject: [FFmpeg-user] Picture jerky when screencasting? In-Reply-To: <1306953745653-3566577.post@n4.nabble.com> References: <1306953745653-3566577.post@n4.nabble.com> Message-ID: <4DE6A32D.8070908@zonnet.nl> On 06/01/11 20:42, lugoteehalt wrote: > As beginner trying to use ffmpeg to record screen, screencasting. Problem is > the recorded picture jerks - as though only every 4th. frame, say, is being > recorded. This recording, say, BBC iplayer at full screen. > > ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s `xdpyinfo | grep 'dimensions:'| > awk '{print $2}'` -r 25 -i :0.0 -sameq out.mpg > > Tried this: > > ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1360x768 -i :0.0 -acodec > pcm_s16le -vcodec libx264 -vpre lossless_ultrafast output.mkv > ffmpeg version git-N-30155-g01a73d6, Copyright (c) 2000-2011 the FFmpeg > developers > built on May 23 2011 22:32:40 with gcc 4.4.5 > configuration: --enable-gpl --enable-version3 --enable-nonfree > --enable-postproc --enable-libfaac --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora > --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab > libavutil 51. 2. 1 / 51. 2. 1 > libavcodec 53. 6. 0 / 53. 6. 0 > libavformat 53. 2. 0 / 53. 2. 0 > libavdevice 53. 0. 0 / 53. 0. 0 > libavfilter 2. 10. 0 / 2. 10. 0 > libswscale 0. 14. 0 / 0. 14. 0 > libpostproc 51. 2. 0 / 51. 2. 0 > [alsa @ 0x9b5cb40] capture with some ALSA plugins, especially dsnoop, may > hang. > [alsa @ 0x9b5cb40] Estimating duration from bitrate, this may be inaccurate > Input #0, alsa, from 'pulse': > Duration: N/A, start: 1306952159.991708, bitrate: N/A > Stream #0.0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s > [x11grab @ 0x9b6ec00] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1360 > height: 768 > [x11grab @ 0x9b6ec00] shared memory extension found > [x11grab @ 0x9b6ec00] Estimating duration from bitrate, this may be > inaccurate > Input #1, x11grab, from ':0.0': > Duration: N/A, start: 1306952160.163753, bitrate: 1002700 kb/s > Stream #1.0: Video: rawvideo, bgra, 1360x768, 1002700 kb/s, 30 tbr, > 1000k tbn, 30 tbc > Incompatible pixel format 'bgra' for codec 'libx264', auto-selecting format > 'yuv420p' > [buffer @ 0x9b5e680] w:1360 h:768 pixfmt:bgra tb:1/1000000 sar:0/1 > sws_param: > [ffsink @ 0x9b5d520] auto-inserting filter 'auto-inserted scaler 0' between > the filter 'src' and the filter 'out' > [scale @ 0x9b5dee0] w:1360 h:768 fmt:bgra -> w:1360 h:768 fmt:yuv420p > flags:0xa0000004 > [libx264 @ 0x9b558e0] --psnr used with psy on: results will be invalid! > [libx264 @ 0x9b558e0] --tune psnr should be used if attempting to benchmark > psnr! > [libx264 @ 0x9b558e0] interlace + weightp is not implemented > [libx264 @ 0x9b558e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 > FastShuffle Cache64 > [libx264 @ 0x9b558e0] constant rate-factor is incompatible with 2pass. > Output #0, matroska, to 'output.mkv': > Stream #0.0: Video: libx264, yuv420p, 1360x768, q=0-69, pass 1, pass 2, > 200 kb/s, 90k tbn, 30 tbc > Stream #0.1: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, pass 1, pass > 2, 1411 kb/s > Stream mapping: > Stream #1.0 -> #0.0 > Stream #0.0 -> #0.1 > Error while opening encoder for output stream #0.0 - maybe incorrect > parameters such as bit_rate, rate, width or height > > Any suggestions? 'constant rate-factor in incompatible with 2pass' is in > red. Thanks any help. I don't know what ultimately your intention is, but you're playing iplayer, which is 25fps, so grabbing at -r 30, isn't .... AFAIK You've choosen lossles which results in 1002700kb/s which is an awfull lot of data to process. Your system also has to decode and display the iplayer stuff, don't know how taxing that is on your system, but all in all I think it's way too much for any system. I'm not 100% sure though. > > > -- > View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Picture-jerky-when-screencasting-tp3566577p3566577.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 etienne.buira.lists at free.fr Wed Jun 1 23:01:18 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Wed, 1 Jun 2011 23:01:18 +0200 Subject: [FFmpeg-user] Picture jerky when screencasting? In-Reply-To: <1306953745653-3566577.post@n4.nabble.com> References: <1306953745653-3566577.post@n4.nabble.com> Message-ID: <20110601210118.GG28878@epicure.lazyet.homelinux.net> Hi. On Wed, Jun 01, 2011 at 11:42:25AM -0700, lugoteehalt wrote: > As beginner trying to use ffmpeg to record screen, screencasting. Problem is > the recorded picture jerks - as though only every 4th. frame, say, is being > recorded. This recording, say, BBC iplayer at full screen. > > ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s `xdpyinfo | grep 'dimensions:'| > awk '{print $2}'` -r 25 -i :0.0 -sameq out.mpg > > Tried this: > > ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1360x768 -i :0.0 -acodec > pcm_s16le -vcodec libx264 -vpre lossless_ultrafast output.mkv > ffmpeg version git-N-30155-g01a73d6, Copyright (c) 2000-2011 the FFmpeg > developers > built on May 23 2011 22:32:40 with gcc 4.4.5 > configuration: --enable-gpl --enable-version3 --enable-nonfree > --enable-postproc --enable-libfaac --enable-libmp3lame > --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora > --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab > libavutil 51. 2. 1 / 51. 2. 1 > libavcodec 53. 6. 0 / 53. 6. 0 > libavformat 53. 2. 0 / 53. 2. 0 > libavdevice 53. 0. 0 / 53. 0. 0 > libavfilter 2. 10. 0 / 2. 10. 0 > libswscale 0. 14. 0 / 0. 14. 0 > libpostproc 51. 2. 0 / 51. 2. 0 > [alsa @ 0x9b5cb40] capture with some ALSA plugins, especially dsnoop, may > hang. > [alsa @ 0x9b5cb40] Estimating duration from bitrate, this may be inaccurate > Input #0, alsa, from 'pulse': > Duration: N/A, start: 1306952159.991708, bitrate: N/A > Stream #0.0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s > [x11grab @ 0x9b6ec00] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1360 > height: 768 > [x11grab @ 0x9b6ec00] shared memory extension found > [x11grab @ 0x9b6ec00] Estimating duration from bitrate, this may be > inaccurate > Input #1, x11grab, from ':0.0': > Duration: N/A, start: 1306952160.163753, bitrate: 1002700 kb/s > Stream #1.0: Video: rawvideo, bgra, 1360x768, 1002700 kb/s, 30 tbr, > 1000k tbn, 30 tbc > Incompatible pixel format 'bgra' for codec 'libx264', auto-selecting format > 'yuv420p' > [buffer @ 0x9b5e680] w:1360 h:768 pixfmt:bgra tb:1/1000000 sar:0/1 > sws_param: > [ffsink @ 0x9b5d520] auto-inserting filter 'auto-inserted scaler 0' between > the filter 'src' and the filter 'out' > [scale @ 0x9b5dee0] w:1360 h:768 fmt:bgra -> w:1360 h:768 fmt:yuv420p > flags:0xa0000004 > [libx264 @ 0x9b558e0] --psnr used with psy on: results will be invalid! Not in my libx264-lossless_ultrafast.ffpreset, you should check where ffmpeg will search for them. Please try the same with a genuine ffpreset before tweaking. > [libx264 @ 0x9b558e0] --tune psnr should be used if attempting to benchmark > psnr! > [libx264 @ 0x9b558e0] interlace + weightp is not implemented > FastShuffle Cache64 > [libx264 @ 0x9b558e0] constant rate-factor is incompatible with 2pass. Ditto * 3 > Output #0, matroska, to 'output.mkv': > Stream #0.0: Video: libx264, yuv420p, 1360x768, q=0-69, pass 1, pass 2, > 200 kb/s, 90k tbn, 30 tbc > Stream #0.1: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, pass 1, pass > 2, 1411 kb/s > Stream mapping: > Stream #1.0 -> #0.0 > Stream #0.0 -> #0.1 > Error while opening encoder for output stream #0.0 - maybe incorrect > parameters such as bit_rate, rate, width or height > > Any suggestions? 'constant rate-factor in incompatible with 2pass' is in > red. Thanks any help. From lugoteehalt at yahoo.co.uk Thu Jun 2 00:25:52 2011 From: lugoteehalt at yahoo.co.uk (lugoteehalt) Date: Wed, 1 Jun 2011 15:25:52 -0700 (PDT) Subject: [FFmpeg-user] Picture jerky when screencasting? In-Reply-To: <4DE6A32D.8070908@zonnet.nl> References: <1306953745653-3566577.post@n4.nabble.com> <4DE6A32D.8070908@zonnet.nl> Message-ID: <1306967152325-3567141.post@n4.nabble.com> belcampo wrote: > > > I don't know what ultimately your intention is, but you're playing > iplayer, which is 25fps, so grabbing at -r 30, isn't .... AFAIK > You've choosen lossles which results in 1002700kb/s which is an awfull > lot of data to process. > Your system also has to decode and display the iplayer stuff, don't know > how taxing that is on your system, but all in all I think it's way too > much for any system. I'm not 100% sure though. >> >> >> -- >> View this message in context: >> http://ffmpeg-users.933282.n4.nabble.com/Picture-jerky-when-screencasting-tp3566577p3566577.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 > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Thanks. Don't know if realistic but just want to be able to repeat > whatever was on the screen, especially things like iplayer. Using bog > standard laptop, my best Sunday thing just went down the tubes. Put in > Ubuntu for a short time and http://verb3k.wordpress.com/2010/01/26/how-to-do-proper-screencasts-on-linux/ which first grabs to a big file and then takes a long time to compress it. This seemed to work perfectly but may not have stressed it very much, don't know. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Picture-jerky-when-screencasting-tp3566577p3567141.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lugoteehalt at yahoo.co.uk Thu Jun 2 00:42:10 2011 From: lugoteehalt at yahoo.co.uk (lugoteehalt) Date: Wed, 1 Jun 2011 15:42:10 -0700 (PDT) Subject: [FFmpeg-user] Picture jerky when screencasting? In-Reply-To: <20110601210118.GG28878@epicure.lazyet.homelinux.net> References: <1306953745653-3566577.post@n4.nabble.com> <20110601210118.GG28878@epicure.lazyet.homelinux.net> Message-ID: <1306968130735-3567174.post@n4.nabble.com> Etienne Buira wrote: > >> [libx264 @ 0x9b558e0] --psnr used with psy on: results will be invalid! > > Not in my libx264-lossless_ultrafast.ffpreset, you should check where > ffmpeg will search for them. > Please try the same with a genuine ffpreset before tweaking. > >> [libx264 @ 0x9b558e0] --tune psnr should be used if attempting to >> benchmark >> psnr! >> [libx264 @ 0x9b558e0] interlace + weightp is not implemented >> FastShuffle Cache64 >> [libx264 @ 0x9b558e0] constant rate-factor is incompatible with 2pass. > > Ditto * 3 > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.orgT > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Thanks. Completely new to ffmpeg, bit mystified. Is this at all helpful? ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s `xdpyinfo | grep 'dimensions:'| awk '{print $2}'` -r 25 -i :0.0 -fpre /usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset -sameq out.mpg ffmpeg version git-N-30155-g01a73d6, Copyright (c) 2000-2011 the FFmpeg developers built on May 23 2011 22:32:40 with gcc 4.4.5 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab libavutil 51. 2. 1 / 51. 2. 1 libavcodec 53. 6. 0 / 53. 6. 0 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 10. 0 / 2. 10. 0 libswscale 0. 14. 0 / 0. 14. 0 libpostproc 51. 2. 0 / 51. 2. 0 [alsa @ 0x8fa8b40] capture with some ALSA plugins, especially dsnoop, may hang. [alsa @ 0x8fa8b40] Estimating duration from bitrate, this may be inaccurate Input #0, alsa, from 'pulse': Duration: N/A, start: 1306964284.983240, bitrate: N/A Stream #0.0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s [x11grab @ 0x8fbac00] device: :0.0 -> display: :0.0 x: 0 y: 0 width: 1360 height: 768 [x11grab @ 0x8fbac00] shared memory extension found [x11grab @ 0x8fbac00] Estimating duration from bitrate, this may be inaccurate Input #1, x11grab, from ':0.0': Duration: N/A, start: 1306964285.866767, bitrate: 835584 kb/s Stream #1.0: Video: rawvideo, bgra, 1360x768, 835584 kb/s, 25 tbr, 1000k tbn, 25 tbc Incompatible pixel format 'bgra' for codec 'mpeg1video', auto-selecting format 'yuv420p' [buffer @ 0x8f98c40] w:1360 h:768 pixfmt:bgra tb:1/1000000 sar:0/1 sws_param: [ffsink @ 0x8f98200] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' [scale @ 0x8fa9400] w:1360 h:768 fmt:bgra -> w:1360 h:768 fmt:yuv420p flags:0xa0000004 [mpeg1video @ 0x8fa18e0] 4MV not supported by codec Output #0, mpeg, to 'out.mpg': Stream #0.0: Video: mpeg1video, yuv420p, 1360x768, q=0-69, pass 1, pass 2, 200 kb/s, 90k tbn, 25 tbc Stream #0.1: Audio: mp2, 44100 Hz, 2 channels, s16, pass 1, pass 2, 64 kb/s Stream mapping: Stream #1.0 -> #0.0 Stream #0.0 -> #0.1 Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height '4MV not supported by codec' in red. Thanks for the help. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Picture-jerky-when-screencasting-tp3566577p3567174.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From phil_rhodes at rocketmail.com Thu Jun 2 00:50:50 2011 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Wed, 01 Jun 2011 23:50:50 +0100 Subject: [FFmpeg-user] -crf ignored In-Reply-To: <4DE6651C.1020803@glidos.net> References: <4DE6481A.9050104@glidos.net> <20110601155604.GE28878@epicure.lazyet.homelinux.net> <4DE6651C.1020803@glidos.net> Message-ID: I have historically found it very difficult to make ffmpeg obey bitrate commands - it seems to encode at the rate it thinks it wants to encode and woe betide you if you want anything else. Presets can be tricky becuase many windows builds don't include them, if you can get them they're very difficult to edit because they have Unix linefeeds, and in any case I don't think I've ever once got a windows build of ffmpeg to read a preset - no matter how hard you try, it always seems to complain it can't find them, even when they're colocated with the executable or in the current directory or whatever. This is presumably an issue of directory resolution which has failed to port cleanly but if you're not on a Unix-like OS then that may be a problem for you. P From dev at rarevision.com Thu Jun 2 01:09:19 2011 From: dev at rarevision.com (Thomas Worth) Date: Wed, 1 Jun 2011 16:09:19 -0700 Subject: [FFmpeg-user] -crf ignored In-Reply-To: References: <4DE6481A.9050104@glidos.net> <20110601155604.GE28878@epicure.lazyet.homelinux.net> <4DE6651C.1020803@glidos.net> Message-ID: On Wed, Jun 1, 2011 at 3:50 PM, Phil Rhodes wrote: > I have historically found it very difficult to make ffmpeg obey bitrate > commands - it seems to encode at the rate it thinks it wants to encode and > woe betide you if you want anything else. > > Presets can be tricky becuase many windows builds don't include them, if > you can get them they're very difficult to edit because they have Unix > linefeeds, and in any case I don't think I've ever once got a windows build > of ffmpeg to read a preset - no matter how hard you try, it always seems to > complain it can't find them, even when they're colocated with the executable > or in the current directory or whatever. This is presumably an issue of > directory resolution which has failed to port cleanly but if you're not on a > Unix-like OS then that may be a problem for you. I don't use libx264 with FFmpeg. I use standalone x264 and just pipe from FFmpeg. Most of the time, I don't need 2-pass encoding because I don't care about hitting a particular file size so piping works for me. Plus, when new x264 features arise, we have to wait for FFmpeg to support them with its command line options. I find it easier to just pipe raw yuv420p to x264. That said, doesn't standalone x264 have presets built-in? Perhaps you could avoid the directory hassle by using standalone x264, although I haven't tried this on Windows. t From baptiste.coudurier at gmail.com Thu Jun 2 01:33:48 2011 From: baptiste.coudurier at gmail.com (Baptiste Coudurier) Date: Wed, 01 Jun 2011 16:33:48 -0700 Subject: [FFmpeg-user] -crf ignored In-Reply-To: References: <4DE6481A.9050104@glidos.net> <20110601155604.GE28878@epicure.lazyet.homelinux.net> <4DE6651C.1020803@glidos.net> Message-ID: <4DE6CC5C.9050305@gmail.com> On 6/1/11 4:09 PM, Thomas Worth wrote: > On Wed, Jun 1, 2011 at 3:50 PM, Phil Rhodes wrote: > >> I have historically found it very difficult to make ffmpeg obey bitrate >> commands - it seems to encode at the rate it thinks it wants to encode and >> woe betide you if you want anything else. >> >> Presets can be tricky becuase many windows builds don't include them, if >> you can get them they're very difficult to edit because they have Unix >> linefeeds, and in any case I don't think I've ever once got a windows build >> of ffmpeg to read a preset - no matter how hard you try, it always seems to >> complain it can't find them, even when they're colocated with the executable >> or in the current directory or whatever. This is presumably an issue of >> directory resolution which has failed to port cleanly but if you're not on a >> Unix-like OS then that may be a problem for you. > > > I don't use libx264 with FFmpeg. I use standalone x264 and just pipe from > FFmpeg. Most of the time, I don't need 2-pass encoding because I don't care > about hitting a particular file size so piping works for me. Plus, when new > x264 features arise, we have to wait for FFmpeg to support them with its > command line options. I find it easier to just pipe raw yuv420p to x264. Piping produces all sort of side-effects, I don't recommend it at all. Plus, the new features should be added fairly quickly. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org From baptiste.coudurier at gmail.com Thu Jun 2 01:34:19 2011 From: baptiste.coudurier at gmail.com (Baptiste Coudurier) Date: Wed, 01 Jun 2011 16:34:19 -0700 Subject: [FFmpeg-user] -crf ignored In-Reply-To: References: <4DE6481A.9050104@glidos.net> <20110601155604.GE28878@epicure.lazyet.homelinux.net> <4DE6651C.1020803@glidos.net> Message-ID: <4DE6CC7B.3040309@gmail.com> On 6/1/11 3:50 PM, Phil Rhodes wrote: > I have historically found it very difficult to make ffmpeg obey bitrate > commands - it seems to encode at the rate it thinks it wants to encode > and woe betide you if you want anything else. > > Presets can be tricky becuase many windows builds don't include them, if > you can get them they're very difficult to edit because they have Unix > linefeeds, and in any case I don't think I've ever once got a windows > build of ffmpeg to read a preset - no matter how hard you try, it always > seems to complain it can't find them, even when they're colocated with > the executable or in the current directory or whatever. This is > presumably an issue of directory resolution which has failed to port > cleanly but if you're not on a Unix-like OS then that may be a problem > for you. Presets are now directly mapped to libx264, so you should not need files anymore. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org From dev at rarevision.com Thu Jun 2 01:48:53 2011 From: dev at rarevision.com (Thomas Worth) Date: Wed, 1 Jun 2011 16:48:53 -0700 Subject: [FFmpeg-user] -crf ignored In-Reply-To: <4DE6CC5C.9050305@gmail.com> References: <4DE6481A.9050104@glidos.net> <20110601155604.GE28878@epicure.lazyet.homelinux.net> <4DE6651C.1020803@glidos.net> <4DE6CC5C.9050305@gmail.com> Message-ID: On Wed, Jun 1, 2011 at 4:33 PM, Baptiste Coudurier < baptiste.coudurier at gmail.com> wrote: > On 6/1/11 4:09 PM, Thomas Worth wrote: > > On Wed, Jun 1, 2011 at 3:50 PM, Phil Rhodes >wrote: > > > >> I have historically found it very difficult to make ffmpeg obey bitrate > >> commands - it seems to encode at the rate it thinks it wants to encode > and > >> woe betide you if you want anything else. > >> > >> Presets can be tricky becuase many windows builds don't include them, if > >> you can get them they're very difficult to edit because they have Unix > >> linefeeds, and in any case I don't think I've ever once got a windows > build > >> of ffmpeg to read a preset - no matter how hard you try, it always seems > to > >> complain it can't find them, even when they're colocated with the > executable > >> or in the current directory or whatever. This is presumably an issue of > >> directory resolution which has failed to port cleanly but if you're not > on a > >> Unix-like OS then that may be a problem for you. > > > > > > I don't use libx264 with FFmpeg. I use standalone x264 and just pipe from > > FFmpeg. Most of the time, I don't need 2-pass encoding because I don't > care > > about hitting a particular file size so piping works for me. Plus, when > new > > x264 features arise, we have to wait for FFmpeg to support them with its > > command line options. I find it easier to just pipe raw yuv420p to x264. > > Piping produces all sort of side-effects, I don't recommend it at all. > Plus, the new features should be added fairly quickly. Can you elaborate? My first thought would be a performance penalty, but does piping differ any from simply dumping yuv420 to disk and then encoding the raw yuv file with x264? Now that libx264 keeps it presets to itself, I'd be willing to give FFmpeg/libx264 another shot. From namsuk at wmgus.net Thu Jun 2 05:32:55 2011 From: namsuk at wmgus.net (Namsuk Kim) Date: Wed, 1 Jun 2011 20:32:55 -0700 Subject: [FFmpeg-user] Is this a bug? Message-ID: <01ee01cc20d5$c46814a0$4d383de0$@net> Hi, I am a newbie to ffmpeg. But, I have noticed lately that ffmpeg?s ?-ss xx:xx:xx? option is totally broken and ?-t 0:02:00? (without -ss) will result continuing encoding but no sound after 2 minutes. If there are tickets for these problems, just silently ignore this. Thanks, Namsuk Kim/??? R&D/?? ???, WMG Ltd. From lists at glidos.net Thu Jun 2 10:09:38 2011 From: lists at glidos.net (Paul Gardiner) Date: Thu, 02 Jun 2011 09:09:38 +0100 Subject: [FFmpeg-user] -crf ignored In-Reply-To: References: <4DE6481A.9050104@glidos.net> <20110601155604.GE28878@epicure.lazyet.homelinux.net> <4DE6651C.1020803@glidos.net> Message-ID: <4DE74542.6030700@glidos.net> On 01/06/2011 23:50, Phil Rhodes wrote: > I have historically found it very difficult to make ffmpeg obey bitrate > commands - it seems to encode at the rate it thinks it wants to encode > and woe betide you if you want anything else. > > Presets can be tricky becuase many windows builds don't include them, if > you can get them they're very difficult to edit because they have Unix > linefeeds, and in any case I don't think I've ever once got a windows > build of ffmpeg to read a preset - no matter how hard you try, it always > seems to complain it can't find them, even when they're colocated with > the executable or in the current directory or whatever. This is > presumably an issue of directory resolution which has failed to port > cleanly but if you're not on a Unix-like OS then that may be a problem > for you. Yeah I had trouble with ffmpeg presets (-vpre), but that wasn't what Etienne suggested I use. He suggested -preset which seems to map directly to x264 presets. Plus once I'd specified a preset, my -crf flag was also honoured. I'm getting excellent results now. Cheers, Paul. From etienne.buira.lists at free.fr Thu Jun 2 10:12:43 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Thu, 2 Jun 2011 10:12:43 +0200 Subject: [FFmpeg-user] Picture jerky when screencasting? In-Reply-To: <1306968130735-3567174.post@n4.nabble.com> References: <1306953745653-3566577.post@n4.nabble.com> <20110601210118.GG28878@epicure.lazyet.homelinux.net> <1306968130735-3567174.post@n4.nabble.com> Message-ID: <20110602081243.GI28878@epicure.lazyet.homelinux.net> On Wed, Jun 01, 2011 at 03:42:10PM -0700, lugoteehalt wrote: > > Etienne Buira wrote: > > > >> [libx264 @ 0x9b558e0] --psnr used with psy on: results will be invalid! > > > > Not in my libx264-lossless_ultrafast.ffpreset, you should check where > > ffmpeg will search for them. > > Please try the same with a genuine ffpreset before tweaking. > > > >> [libx264 @ 0x9b558e0] --tune psnr should be used if attempting to > >> benchmark > >> psnr! > >> [libx264 @ 0x9b558e0] interlace + weightp is not implemented > >> FastShuffle Cache64 > >> [libx264 @ 0x9b558e0] constant rate-factor is incompatible with 2pass. > > > > Ditto * 3 > > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.orgT > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > Thanks. Completely new to ffmpeg, bit mystified. Is this at all helpful? Hi > ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s `xdpyinfo | grep 'dimensions:'| > awk '{print $2}'` -r 25 -i :0.0 -fpre > /usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset -sameq out.mpg > Output #0, mpeg, to 'out.mpg': > Stream #0.0: Video: mpeg1video, yuv420p, 1360x768, q=0-69, pass 1, pass > 2, 200 kb/s, 90k tbn, 25 tbc Your preset file contains well more things than it should, please use an unmodified one. (deleting it, reinstalling, comparing with the one checked out in your tree or whatever). From belcampo at zonnet.nl Thu Jun 2 14:28:37 2011 From: belcampo at zonnet.nl (belcampo) Date: Thu, 02 Jun 2011 14:28:37 +0200 Subject: [FFmpeg-user] Picture jerky when screencasting? In-Reply-To: <1306967152325-3567141.post@n4.nabble.com> References: <1306953745653-3566577.post@n4.nabble.com> <4DE6A32D.8070908@zonnet.nl> <1306967152325-3567141.post@n4.nabble.com> Message-ID: <4DE781F5.8030804@zonnet.nl> On 06/02/11 00:25, lugoteehalt wrote: > > belcampo wrote: >> >> >> I don't know what ultimately your intention is, but you're playing >> iplayer, which is 25fps, so grabbing at -r 30, isn't .... AFAIK >> You've choosen lossles which results in 1002700kb/s which is an awfull >> lot of data to process. >> Your system also has to decode and display the iplayer stuff, don't know >> how taxing that is on your system, but all in all I think it's way too >> much for any system. I'm not 100% sure though. To place some things in perspective: You've choosen lossles which results in 1002700kb/s which is an awfull lot of data to process. 1002700kb/s is 1Gb/s Only the fastest single desktop disks can be written to at that speed. The average modern non-laptop disk does between 80MB/s and 175MB/s. So only the fastest desktop-disks g\could theoratically do that. The average laptop-disk can do between 30MB/s and 60MB/s, the fastest can only accept half, and that is theoratically, of what you are trying to capture. Capturing non compressed video like iPlayer at 720p is more or less 'impossible'. But I like to be proven wrong. >>> >>> >>> -- >>> View this message in context: >>> http://ffmpeg-users.933282.n4.nabble.com/Picture-jerky-when-screencasting-tp3566577p3566577.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 >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> Thanks. Don't know if realistic but just want to be able to repeat >> whatever was on the screen, especially things like iplayer. Using bog >> standard laptop, my best Sunday thing just went down the tubes. Put in >> Ubuntu for a short time and > http://verb3k.wordpress.com/2010/01/26/how-to-do-proper-screencasts-on-linux/ > which first grabs to a big file and then takes a long time to compress it. > This seemed to work perfectly but may not have stressed it very much, don't > know. > > > -- > View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Picture-jerky-when-screencasting-tp3566577p3567141.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 lists at glidos.net Thu Jun 2 14:47:25 2011 From: lists at glidos.net (Paul Gardiner) Date: Thu, 02 Jun 2011 13:47:25 +0100 Subject: [FFmpeg-user] -crf ignored In-Reply-To: References: <4DE6481A.9050104@glidos.net> <20110601155604.GE28878@epicure.lazyet.homelinux.net> <4DE6651C.1020803@glidos.net> <4DE6CC5C.9050305@gmail.com> Message-ID: <4DE7865D.4060905@glidos.net> On 02/06/2011 00:48, Thomas Worth wrote: > On Wed, Jun 1, 2011 at 4:33 PM, Baptiste Coudurier< >> Piping produces all sort of side-effects, I don't recommend it at all. >> Plus, the new features should be added fairly quickly. > > > Can you elaborate? My first thought would be a performance penalty, but does > piping differ any from simply dumping yuv420 to disk and then encoding the > raw yuv file with x264? I'm also interested to know what problems use of pipes might lead to. My target application is to use ffmpeg to compress movies from mythtv which are passed via a pair of pipes, one for audio, one for video. Paul. From etienne.buira.lists at free.fr Thu Jun 2 14:57:54 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Thu, 2 Jun 2011 14:57:54 +0200 Subject: [FFmpeg-user] Picture jerky when screencasting? In-Reply-To: <4DE781F5.8030804@zonnet.nl> References: <1306953745653-3566577.post@n4.nabble.com> <4DE6A32D.8070908@zonnet.nl> <1306967152325-3567141.post@n4.nabble.com> <4DE781F5.8030804@zonnet.nl> Message-ID: <20110602125754.GJ28878@epicure.lazyet.homelinux.net> On Thu, Jun 02, 2011 at 02:28:37PM +0200, belcampo wrote: > On 06/02/11 00:25, lugoteehalt wrote: > > > > belcampo wrote: > >> > >> > >> I don't know what ultimately your intention is, but you're playing > >> iplayer, which is 25fps, so grabbing at -r 30, isn't .... AFAIK > >> You've choosen lossles which results in 1002700kb/s which is an awfull > >> lot of data to process. > >> Your system also has to decode and display the iplayer stuff, don't know > >> how taxing that is on your system, but all in all I think it's way too > >> much for any system. I'm not 100% sure though. > To place some things in perspective: > You've choosen lossles which results in 1002700kb/s which is an awfull > lot of data to process. That's the input rate, before compression. With a single threaded h264 decoding/x264 lossless_ultrafast encoding, my host reaches 15~17fps. Going multithreaded it should be manageable to do 25/30 fps on multicore decent box. From stefano.sabatini-lala at poste.it Thu Jun 2 15:51:14 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Thu, 2 Jun 2011 15:51:14 +0200 Subject: [FFmpeg-user] Is this a bug? In-Reply-To: <01ee01cc20d5$c46814a0$4d383de0$@net> References: <01ee01cc20d5$c46814a0$4d383de0$@net> Message-ID: <20110602135114.GA16632@geppetto> On date Wednesday 2011-06-01 20:32:55 -0700, Namsuk Kim encoded: > Hi, > > I am a newbie to ffmpeg. But, I have noticed lately that ffmpeg??s ??-ss > xx:xx:xx?? option is totally broken and ??-t 0:02:00?? (without -ss) will > result continuing encoding but no sound after 2 minutes. If there are > tickets for these problems, just silently ignore this. Please file a bug report if you think there is such, specifying the commandline and the issued output (and adding a samples in case there is specific problem triggered by a file): https://ffmpeg.org/trac/ffmpeg Thanks for your collaboration. -- ffmpeg-user random tip #20 VHOOK has been removed, check out libavfilter: http://wiki.multimedia.cx/index.php?title=Libavfilter From baptiste.coudurier at gmail.com Thu Jun 2 17:37:25 2011 From: baptiste.coudurier at gmail.com (Baptiste Coudurier) Date: Thu, 02 Jun 2011 08:37:25 -0700 Subject: [FFmpeg-user] Encoding v210 fails when using PIX_FMT_YUV422P16LE even though PIX_FMT_YUV422P10LE is deprecated In-Reply-To: References: <4DE05DFD.8050109@gmail.com> Message-ID: <4DE7AE35.2070809@gmail.com> Hi Thomas, On 05/27/2011 10:50 PM, Thomas Worth wrote: >> >>> If I change pix_fmt to PIX_FMT_YUV422P10LE, I don't get any errors but >>> the >>>> packing appears to be wrong. My code is already set up to pack >>> YUV422P16. >>> >>> Appears to be wrong ? >>> >> >> Sorry, I should have clarified that. The packing is different, and doesn't >> work with my code. It is different from YUV422P16 so I'd like to get it >> working in that format so I don't have to rewrite my packing code. This all >> worked before the ffmpeg/libav split and now only works with libav. I >> believe the first go at supporting v210 in ffmpeg was with YUV422P16, which >> is why my code expects frames in that format. >> > > Never mind. The encoder expects planar data, so it was easier than I > thought. The reason it wasn't working before is because the endian order was > reversed for each unsigned 16 bit value (since v210 expects uint16_t). It's > working now with YUV422P10LE. Thanks for your help! No problem. Although you may not that it is YUV422P10, and not only YUV422P10LE, it means it's native endian. That is you must write the values as int16_t directly in your buffer like: int16_t data[0][0] = for the first Y value for example, wether you are on a little or big endian architecture. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org From baptiste.coudurier at gmail.com Thu Jun 2 17:38:45 2011 From: baptiste.coudurier at gmail.com (Baptiste Coudurier) Date: Thu, 02 Jun 2011 08:38:45 -0700 Subject: [FFmpeg-user] -crf ignored In-Reply-To: <4DE7865D.4060905@glidos.net> References: <4DE6481A.9050104@glidos.net> <20110601155604.GE28878@epicure.lazyet.homelinux.net> <4DE6651C.1020803@glidos.net> <4DE6CC5C.9050305@gmail.com> <4DE7865D.4060905@glidos.net> Message-ID: <4DE7AE85.8030809@gmail.com> On 06/02/2011 05:47 AM, Paul Gardiner wrote: > On 02/06/2011 00:48, Thomas Worth wrote: >> On Wed, Jun 1, 2011 at 4:33 PM, Baptiste Coudurier< >>> Piping produces all sort of side-effects, I don't recommend it at all. >>> Plus, the new features should be added fairly quickly. >> >> >> Can you elaborate? My first thought would be a performance penalty, >> but does >> piping differ any from simply dumping yuv420 to disk and then encoding >> the >> raw yuv file with x264? > > I'm also interested to know what problems use of pipes might lead to. > My target application is to use ffmpeg to compress movies from mythtv > which are passed via a pair of pipes, one for audio, one for video. Interlacing information not kept across the pipe for example. Also, you are losing the sync engine when encoding video separately. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org From lugoteehalt at yahoo.co.uk Thu Jun 2 18:34:14 2011 From: lugoteehalt at yahoo.co.uk (lugoteehalt) Date: Thu, 2 Jun 2011 09:34:14 -0700 (PDT) Subject: [FFmpeg-user] Picture jerky when screencasting? In-Reply-To: <20110602081243.GI28878@epicure.lazyet.homelinux.net> References: <1306953745653-3566577.post@n4.nabble.com> <20110601210118.GG28878@epicure.lazyet.homelinux.net> <1306968130735-3567174.post@n4.nabble.com> <20110602081243.GI28878@epicure.lazyet.homelinux.net> Message-ID: <1307032454007-3568789.post@n4.nabble.com> Etienne Buira wrote: > > >> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> > >> >> Thanks. Completely new to ffmpeg, bit mystified. Is this at all >> helpful? > > Hi > >> ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s `xdpyinfo | grep >> 'dimensions:'| >> awk '{print $2}'` -r 25 -i :0.0 -fpre >> /usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset -sameq >> out.mpg >> Output #0, mpeg, to 'out.mpg': >> Stream #0.0: Video: mpeg1video, yuv420p, 1360x768, q=0-69, pass 1, >> pass >> 2, 200 kb/s, 90k tbn, 25 tbc > > Your preset file contains well more things than it should, please use an > unmodified one. (deleting it, reinstalling, comparing with the one > checked out in your tree or whatever). Thanks. Compiled ffmpeg myself: built on May 23 2011 22:32:40 with gcc 4.4.5 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab libavutil 51. 2. 1 / 51. 2. 1 libavcodec 53. 6. 0 / 53. 6. 0 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 10. 0 / 2. 10. 0 libswscale 0. 14. 0 / 0. 14. 0 libpostproc 51. 2. 0 / 51. 2. 0 And turned it into a Debian package: ffmpeg_201105232235-git-1_i386.deb. Uninstalled then installed above. Still have same problem. Is there a simple way to get hold of appropriate presets, perhaps? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Picture-jerky-when-screencasting-tp3566577p3568789.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lists at glidos.net Thu Jun 2 20:30:40 2011 From: lists at glidos.net (Paul Gardiner) Date: Thu, 02 Jun 2011 19:30:40 +0100 Subject: [FFmpeg-user] -crf ignored In-Reply-To: <4DE7AE85.8030809@gmail.com> References: <4DE6481A.9050104@glidos.net> <20110601155604.GE28878@epicure.lazyet.homelinux.net> <4DE6651C.1020803@glidos.net> <4DE6CC5C.9050305@gmail.com> <4DE7865D.4060905@glidos.net> <4DE7AE85.8030809@gmail.com> Message-ID: <4DE7D6D0.5020804@glidos.net> On 02/06/2011 16:38, Baptiste Coudurier wrote: > On 06/02/2011 05:47 AM, Paul Gardiner wrote: >> On 02/06/2011 00:48, Thomas Worth wrote: >>> On Wed, Jun 1, 2011 at 4:33 PM, Baptiste Coudurier< >>>> Piping produces all sort of side-effects, I don't recommend it at all. >>>> Plus, the new features should be added fairly quickly. >>> >>> >>> Can you elaborate? My first thought would be a performance penalty, >>> but does >>> piping differ any from simply dumping yuv420 to disk and then encoding >>> the >>> raw yuv file with x264? >> >> I'm also interested to know what problems use of pipes might lead to. >> My target application is to use ffmpeg to compress movies from mythtv >> which are passed via a pair of pipes, one for audio, one for video. > > Interlacing information not kept across the pipe for example. I'm hoping to deal with interlaced content (recompressing as interlaced if possible). I was assuming interlaced content was sent in whole frames. Is that not right? > Also, you are losing the sync engine when encoding video separately. Is that true also for using ffmpeg with the source coming from two pipes? I did wonder if sync could be a problem. Paul. From lugoteehalt at yahoo.co.uk Thu Jun 2 20:39:36 2011 From: lugoteehalt at yahoo.co.uk (lugoteehalt) Date: Thu, 2 Jun 2011 11:39:36 -0700 (PDT) Subject: [FFmpeg-user] Picture jerky when screencasting? In-Reply-To: <4DE781F5.8030804@zonnet.nl> References: <1306953745653-3566577.post@n4.nabble.com> <4DE6A32D.8070908@zonnet.nl> <1306967152325-3567141.post@n4.nabble.com> <4DE781F5.8030804@zonnet.nl> Message-ID: <1307039976582-3569066.post@n4.nabble.com> belcampo wrote: > > On 06/02/11 00:25, lugoteehalt wrote: >> >> belcampo wrote: >>> >>> >>> I don't know what ultimately your intention is, but you're playing >>> iplayer, which is 25fps, so grabbing at -r 30, isn't .... AFAIK >>> You've choosen lossles which results in 1002700kb/s which is an awfull >>> lot of data to process. >>> Your system also has to decode and display the iplayer stuff, don't know >>> how taxing that is on your system, but all in all I think it's way too >>> much for any system. I'm not 100% sure though. > To place some things in perspective: > You've choosen lossles which results in 1002700kb/s which is an awfull > lot of data to process. > 1002700kb/s is 1Gb/s Only the fastest single desktop disks can be > written to at that speed. The average modern non-laptop disk does > between 80MB/s and 175MB/s. So only the fastest desktop-disks g\could > theoratically do that. The average laptop-disk can do between 30MB/s and > 60MB/s, the fastest can only accept half, and that is theoratically, of > what you are trying to capture. Capturing non compressed video like > iPlayer at 720p is more or less 'impossible'. But I like to be proven > wrong. >>>> > Thanks. Intel Celeron C900, single core presumably. 2GB RAM. Cheap laptop. Have got it vaughly working. It is still webcammy on iplayer fullscreen, not on non-fullscreen. But the webcammyness is almost acceptable. The command is: ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s cif -r 25 -s `xdpyinfo | grep 'dimensions:'| awk '{print $2}'` -i :0.0 ~/out.mpg The file for 3 mins, about 1/2 min at iplayer fullscreen, has size: video:21370kB audio:1504kB global headers:0kB muxing overhead 0.550217% Would not object to a much bigger, say 10x, file if it got less webcammy. Assume it could be compressed at leasure later. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Picture-jerky-when-screencasting-tp3566577p3569066.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From dheianevans at gmail.com Fri Jun 3 03:56:20 2011 From: dheianevans at gmail.com (Ian Evans) Date: Fri, 3 Jun 2011 09:56:20 +0800 Subject: [FFmpeg-user] relabeling an audio track Message-ID: Just curious if there's anyway to label singly or in batch a specific audio track in a Meg 2 file? One of the networks in my Toronto is broadcasting it's main audio track as "undetermined AC3 5.1ch" while the second track is "English AC3 2ch". MythTV automatically chooses the English track, which is the descriptive audio track. I'd love to change the first track in these files to "English". Any way of doing it? Thanks. From michaelni at gmx.at Fri Jun 3 03:56:41 2011 From: michaelni at gmx.at (Michael Niedermayer) Date: Fri, 3 Jun 2011 03:56:41 +0200 Subject: [FFmpeg-user] [FFmpeg-devel] [PATCH 3/3] In print_report, print progression time in hours:mins:secs:us In-Reply-To: <2DF639A5-3EBC-4E4C-8847-1F7568B87C4E@signal7.de> References: <1301521980-11457-1-git-send-email-baptiste.coudurier@gmail.com> <1301521980-11457-3-git-send-email-baptiste.coudurier@gmail.com> <20110330215903.GA19660@kiste2> <2DF639A5-3EBC-4E4C-8847-1F7568B87C4E@signal7.de> Message-ID: <20110603015641.GE9243@kiste2> On Thu, Mar 31, 2011 at 09:16:53AM +0200, Robert Kr?ger wrote: > > On Mar 30, 2011, at 11:59 PM, Michael Niedermayer wrote: > > > On Wed, Mar 30, 2011 at 02:53:00PM -0700, Baptiste Coudurier wrote: > >> --- > >> ffmpeg.c | 16 ++++++++++++++-- > >> 1 files changed, 14 insertions(+), 2 deletions(-) > > > > LGTM > > > > maybe it would be nice to actively make people on the users list aware of that change because that will break lots of people's scripts/programs which parse the command line output to monitor transcoding progress, which seems to be common practice. maybe a good idea, so iam CC ing -user [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB I have often repented speaking, but never of holding my tongue. -- Xenocrates -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature URL: From tom_a_sparks at yahoo.com.au Fri Jun 3 06:20:24 2011 From: tom_a_sparks at yahoo.com.au (Tom Sparks) Date: Thu, 2 Jun 2011 21:20:24 -0700 (PDT) Subject: [FFmpeg-user] stereo images conversion changes aspect ratio Message-ID: <383776.74166.qm@web36408.mail.mud.yahoo.com> I am converting a stereo images that top/bottom to left/right I am using this command ./ffmpeg -i "elphelimg_2421643.jpg" -qscale 1 -vf 'mp=down3dright' "output.jpg" here is the source imge http://www.lightningridgecommunity.com/panorama/elphelimg_2421643.jpeg here is the result image http://www.lightningridgecommunity.com/panorama/output.jpg As you can see the circle have changed into ovals, is there any way to stop this from happening? -- tom_a_sparks "It's a nerdy thing I like to do" Please use ISO approved file formats excluding Office Open XML - http://www.gnu.org/philosophy/no-word-attachments.html 3 x (x)Ubuntu 10.04, Amiga A1200 WB 3.1, UAE AF 2006 WB 3.X, Sam440 AOS 4.1 From tim.nicholson at bbc.co.uk Fri Jun 3 08:58:23 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Fri, 03 Jun 2011 07:58:23 +0100 Subject: [FFmpeg-user] [FFmpeg-devel] [PATCH 3/3] In print_report, print progression time in hours:mins:secs:us In-Reply-To: <20110603015641.GE9243@kiste2> References: <1301521980-11457-1-git-send-email-baptiste.coudurier@gmail.com> <1301521980-11457-3-git-send-email-baptiste.coudurier@gmail.com> <20110330215903.GA19660@kiste2> <2DF639A5-3EBC-4E4C-8847-1F7568B87C4E@signal7.de> <20110603015641.GE9243@kiste2> Message-ID: <4DE8860F.7010103@bbc.co.uk> On 03/06/11 02:56, Michael Niedermayer wrote: > On Thu, Mar 31, 2011 at 09:16:53AM +0200, Robert Kr?ger wrote: >> >> On Mar 30, 2011, at 11:59 PM, Michael Niedermayer wrote: >> >>> On Wed, Mar 30, 2011 at 02:53:00PM -0700, Baptiste Coudurier wrote: >>>> --- >>>> ffmpeg.c | 16 ++++++++++++++-- >>>> 1 files changed, 14 insertions(+), 2 deletions(-) >>> >>> LGTM >>> >> >> maybe it would be nice to actively make people on the users list aware of that change because that will break lots of people's scripts/programs which parse the command line output to monitor transcoding progress, which seems to be common practice. > Very nice, but even more useful if the commit it related to was noted somehow. I am assuming dd471070215c5ca78f2cb99efc66ea5e33b39808 Which seems to match the conditions. > maybe a good idea, so iam CC ing -user > > [...] > :) -- 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 sdbhabal at gmail.com Fri Jun 3 10:14:39 2011 From: sdbhabal at gmail.com (santosh bhabal) Date: Fri, 3 Jun 2011 13:44:39 +0530 Subject: [FFmpeg-user] FFmpeg version git-N-28849-ga82cfad-Sherpya Message-ID: Hi, I have "FFmpeg version git-N-28849-ga82cfad-Sherpya" for windows platform. That works fine for me. But i wanted to implement my project on linux platform. I have googled alot, but not able to find any url to download this built for linux platform. Kindly suggest. Any advise will be apperitiated. Regards Santosh From gavr.mail at gmail.com Fri Jun 3 10:25:34 2011 From: gavr.mail at gmail.com (Kirill Gavrilov) Date: Fri, 3 Jun 2011 12:25:34 +0400 Subject: [FFmpeg-user] FFmpeg version git-N-28849-ga82cfad-Sherpya In-Reply-To: References: Message-ID: Hi, I have "FFmpeg version git-N-28849-ga82cfad-Sherpya" for windows platform. > I have googled alot, but not able to find any url to download this built > for > linux platform. > I think nobody provide *same* FFmpeg builds for Linux and Windows. If you want to get same revision - use git to checkout specified version. If you want to get similar functionality - you need to use similar configure options (they will not be same and due to 'automatic' bechaviour of FFmpeg build system - some options are not listed when you launch ffmpeg.exe) and install needed 3rd-party products. Anyway - you need to retrieve sources from GIT a build yourself. However many Linux distribs provide precompiled FFmpeg builds that may satisfy your needs - try them (but probably not up-to-date). ----------------------------------------------- Kirill Gavrilov, Software designer. From etienne.buira.lists at free.fr Fri Jun 3 18:52:01 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Fri, 3 Jun 2011 18:52:01 +0200 Subject: [FFmpeg-user] Picture jerky when screencasting? In-Reply-To: <1307032454007-3568789.post@n4.nabble.com> References: <1306953745653-3566577.post@n4.nabble.com> <20110601210118.GG28878@epicure.lazyet.homelinux.net> <1306968130735-3567174.post@n4.nabble.com> <20110602081243.GI28878@epicure.lazyet.homelinux.net> <1307032454007-3568789.post@n4.nabble.com> Message-ID: <20110603165200.GN28878@epicure.lazyet.homelinux.net> On Thu, Jun 02, 2011 at 09:34:14AM -0700, lugoteehalt wrote: > > Etienne Buira wrote: > > > > > >> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >> > > >> > >> Thanks. Completely new to ffmpeg, bit mystified. Is this at all > >> helpful? > > > > Hi > > > >> ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s `xdpyinfo | grep > >> 'dimensions:'| > >> awk '{print $2}'` -r 25 -i :0.0 -fpre > >> /usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset -sameq > >> out.mpg > >> Output #0, mpeg, to 'out.mpg': > >> Stream #0.0: Video: mpeg1video, yuv420p, 1360x768, q=0-69, pass 1, > >> pass > >> 2, 200 kb/s, 90k tbn, 25 tbc > > > > Your preset file contains well more things than it should, please use an > > unmodified one. (deleting it, reinstalling, comparing with the one > > checked out in your tree or whatever). > Thanks. Compiled ffmpeg myself: ../.. So, is your /usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset an exact copy of the original preset (that you can find in your git tree or here: http://git.videolan.org/?p=ffmpeg.git;a=blob_plain;f=ffpresets/libx264-lossless_ultrafast.ffpreset;hb=HEAD)? If not an exact copy, make it one. If you still have same trouble after that, check that the loaded preset is actually the one you think (strace can help). From batguano999 at hotmail.com Sat Jun 4 04:29:14 2011 From: batguano999 at hotmail.com (bat guano) Date: Sat, 4 Jun 2011 02:29:14 +0000 Subject: [FFmpeg-user] "target" commands don't seem to work any more. Message-ID: Hi I used to be able to convert files to DVD format using commands like this:- ffmpeg -i foo -target pal-dvd foo.mpg But when I try that now I get an error like this:- Invalid encoder type 'ac3 There are errors with all these commands:- ffmpeg -i foo -target dvd foo.mpg Invalid encoder type 'ac3' ffmpeg -i foo -target pal-dvd foo.mpg Invalid encoder type 'ac3' ffmpeg -i foo -target vcd foo.mpg Invalid encoder type 'mp2' ffmpeg -i foo -target pal-vcd foo.mpg Invalid encoder type 'mp2' I know that both my ac3 and mp2 encoders work OK. So has something changed recently with the 'target' commands? *********************************** This is the output when using "-target pal-dvd" @ubuntu:~$ ffmpeg -i foo -target pal-dvd foo.mpg ffmpeg version git-N-30508-gc1daf07, Copyright (c) 2000-2011 the FFmpeg developers ? built on Jun? 3 2011 20:17:25 with gcc 4.4.1 ? configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --disable-encoder=vorbis --enable-libvo-amrwbenc --enable-libvo-aacenc ? libavutil??? 51.? 4. 0 / 51.? 4. 0 ? libavcodec?? 53.? 6. 1 / 53.? 6. 1 ? libavformat? 53.? 2. 0 / 53.? 2. 0 ? libavdevice? 53.? 1. 0 / 53.? 1. 0 ? libavfilter?? 2. 12. 0 /? 2. 12. 0 ? libswscale??? 0. 14. 1 /? 0. 14. 1 ? libpostproc? 51.? 2. 0 / 51.? 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1) Input #0, asf, from 'foo': ? Metadata: ??? duration??????? : 270 ??? lasttimestamp?? : 270 ??? datasize??????? : 26326655 ??? metadatacreator : FlixEngineLinux_8.0.16.0 (www.on2.com) ??? canSeekToEnd??? : true ??? videocodecid??? : 4 ??? width?????????? : 640 ??? height????????? : 360 ??? videodatarate?? : 698 ??? framerate?????? : 24 ??? videosize?????? : 24163299 ??? audiocodecid??? : 2 ??? audiodatarate?? : 63 ??? audiosize?????? : 2163356 ??? encoder???????? : Lavf53.2.0 ? Duration: 00:04:30.41, start: 0.000000, bitrate: 1202 kb/s ??? Stream #0.0: Video: wmv2, yuv420p, 640x360, 25 tbr, 1k tbn, 1k tbc ??? Stream #0.1: Audio: wmav2, 44100 Hz, 2 channels, s16, 160 kb/s Invalid encoder type 'ac3' From baptiste.coudurier at gmail.com Sat Jun 4 04:38:24 2011 From: baptiste.coudurier at gmail.com (Baptiste Coudurier) Date: Fri, 03 Jun 2011 19:38:24 -0700 Subject: [FFmpeg-user] stereo images conversion changes aspect ratio In-Reply-To: <383776.74166.qm@web36408.mail.mud.yahoo.com> References: <383776.74166.qm@web36408.mail.mud.yahoo.com> Message-ID: <4DE99AA0.4060309@gmail.com> Hi, On 06/02/2011 09:20 PM, Tom Sparks wrote: > I am converting a stereo images that top/bottom to left/right > > I am using this command > ./ffmpeg -i "elphelimg_2421643.jpg" -qscale 1 -vf 'mp=down3dright' "output.jpg" > > here is the source imge > http://www.lightningridgecommunity.com/panorama/elphelimg_2421643.jpeg > > here is the result image > http://www.lightningridgecommunity.com/panorama/output.jpg > > As you can see the circle have changed into ovals, is there any way to stop this from happening? Try settings "mp=down3dright=2:2" For some reason I don't know, it keeps the same width by default. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org From baptiste.coudurier at gmail.com Sat Jun 4 04:54:06 2011 From: baptiste.coudurier at gmail.com (Baptiste Coudurier) Date: Fri, 03 Jun 2011 19:54:06 -0700 Subject: [FFmpeg-user] "target" commands don't seem to work any more. In-Reply-To: References: Message-ID: <4DE99E4E.90505@gmail.com> Hi, On 06/03/2011 07:29 PM, bat guano wrote: > > Hi > I used to be able to convert files to DVD format using commands like this:- > ffmpeg -i foo -target pal-dvd foo.mpg > > But when I try that now I get an error like this:- > Invalid encoder type 'ac3 > > There are errors with all these commands:- > > ffmpeg -i foo -target dvd foo.mpg > Invalid encoder type 'ac3' > > ffmpeg -i foo -target pal-dvd foo.mpg > Invalid encoder type 'ac3' > > ffmpeg -i foo -target vcd foo.mpg > Invalid encoder type 'mp2' > > ffmpeg -i foo -target pal-vcd foo.mpg > Invalid encoder type 'mp2' > > I know that both my ac3 and mp2 encoders work OK. > So has something changed recently with the 'target' commands? Thanks for the report, this should be fixed in latest git. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org From lugoteehalt at yahoo.co.uk Sat Jun 4 06:14:21 2011 From: lugoteehalt at yahoo.co.uk (lugoteehalt) Date: Fri, 3 Jun 2011 21:14:21 -0700 (PDT) Subject: [FFmpeg-user] Picture jerky when screencasting? In-Reply-To: <20110603165200.GN28878@epicure.lazyet.homelinux.net> References: <1306953745653-3566577.post@n4.nabble.com> <20110601210118.GG28878@epicure.lazyet.homelinux.net> <1306968130735-3567174.post@n4.nabble.com> <20110602081243.GI28878@epicure.lazyet.homelinux.net> <1307032454007-3568789.post@n4.nabble.com> <20110603165200.GN28878@epicure.lazyet.homelinux.net> Message-ID: <1307160861338-3572705.post@n4.nabble.com> Etienne Buira wrote: > > On Thu, Jun 02, 2011 at 09:34:14AM -0700, lugoteehalt wrote: >> >> Etienne Buira wrote: >> > >> > >> >> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> > >> >> >> >> Thanks. Completely new to ffmpeg, bit mystified. Is this at all >> >> helpful? >> > >> > Hi >> > >> >> ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s `xdpyinfo | grep >> >> 'dimensions:'| >> >> awk '{print $2}'` -r 25 -i :0.0 -fpre >> >> /usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset -sameq >> >> out.mpg >> >> Output #0, mpeg, to 'out.mpg': >> >> Stream #0.0: Video: mpeg1video, yuv420p, 1360x768, q=0-69, pass 1, >> >> pass >> >> 2, 200 kb/s, 90k tbn, 25 tbc >> > >> > Your preset file contains well more things than it should, please use >> an >> > unmodified one. (deleting it, reinstalling, comparing with the one >> > checked out in your tree or whatever). >> Thanks. Compiled ffmpeg myself: > ../.. > > So, is your /usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset > an exact copy of the original preset (that you can find in your git tree > or here: > http://git.videolan.org/?p=ffmpeg.git;a=blob_plain;f=ffpresets/libx264-lossless_ultrafast.ffpreset;hb=HEAD)? > If not an exact copy, make it one. > If you still have same trouble after that, check that the loaded preset > is actually the one you think (strace can help). > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Great thanks. Seems to be an exact copy. It now works with: ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s cif -r 25 -s `xdpyinfo | grep 'dimensions:'| awk '{print $2}'` -fpre /usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset -i :0.0 ~/out.mkv The picture no longer jerks on iplayer fullscreen, nor is it much webcammy. But the quality, while acceptable for most things, is not high. Colour gradients are stepped for instance. Hope this not off topic but could you suggest how to tweek the quality - it is a complex piece of software for someone new? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Picture-jerky-when-screencasting-tp3566577p3572705.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From etienne.buira.lists at free.fr Sat Jun 4 11:18:26 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Sat, 4 Jun 2011 11:18:26 +0200 Subject: [FFmpeg-user] Picture jerky when screencasting? In-Reply-To: <1307160861338-3572705.post@n4.nabble.com> References: <1306953745653-3566577.post@n4.nabble.com> <20110601210118.GG28878@epicure.lazyet.homelinux.net> <1306968130735-3567174.post@n4.nabble.com> <20110602081243.GI28878@epicure.lazyet.homelinux.net> <1307032454007-3568789.post@n4.nabble.com> <20110603165200.GN28878@epicure.lazyet.homelinux.net> <1307160861338-3572705.post@n4.nabble.com> Message-ID: <20110604091826.GO28878@epicure.lazyet.homelinux.net> On Fri, Jun 03, 2011 at 09:14:21PM -0700, lugoteehalt wrote: > Great thanks. Seems to be an exact copy. It now works with: Make sure of it (you can use diff -s file1 file2). > ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s cif -r 25 -s `xdpyinfo | grep > 'dimensions:'| awk '{print $2}'` -fpre > /usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset -i :0.0 > ~/out.mkv > > The picture no longer jerks on iplayer fullscreen, nor is it much webcammy. > But the quality, while acceptable for most things, is not high. Colour > gradients are stepped for instance. Hope this not off topic but could you > suggest how to tweek the quality - it is a complex piece of software for > someone new? The command you give is not the initial one, and here, you don't use libx264 at all. Use your initial command, with only -vpre changed to -fpre pointing to a file you know for sure is an exact copy of the original preset. Bear in mind that options ordering matters. From batguano999 at hotmail.com Sat Jun 4 13:34:16 2011 From: batguano999 at hotmail.com (bat guano) Date: Sat, 4 Jun 2011 11:34:16 +0000 Subject: [FFmpeg-user] "target" commands don't seem to work any more. In-Reply-To: <4DE99E4E.90505@gmail.com> References: , <4DE99E4E.90505@gmail.com> Message-ID: ---------------------------------------- > Date: Fri, 3 Jun 2011 19:54:06 -0700 > From: baptiste.coudurier at gmail.com > To: ffmpeg-user at ffmpeg.org > CC: batguano999 at hotmail.com > Subject: Re: [FFmpeg-user] "target" commands don't seem to work any more. > > Hi, > > On 06/03/2011 07:29 PM, bat guano wrote: > > > > Hi > > I used to be able to convert files to DVD format using commands like this:- > > ffmpeg -i foo -target pal-dvd foo.mpg > > > > But when I try that now I get an error like this:- > > Invalid encoder type 'ac3 > > > > There are errors with all these commands:- > > > > ffmpeg -i foo -target dvd foo.mpg > > Invalid encoder type 'ac3' > > > > ffmpeg -i foo -target pal-dvd foo.mpg > > Invalid encoder type 'ac3' > > > > ffmpeg -i foo -target vcd foo.mpg > > Invalid encoder type 'mp2' > > > > ffmpeg -i foo -target pal-vcd foo.mpg > > Invalid encoder type 'mp2' > > > > I know that both my ac3 and mp2 encoders work OK. > > So has something changed recently with the 'target' commands? > > Thanks for the report, this should be fixed in latest git. > > -- > Baptiste COUDURIER > Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA > FFmpeg maintainer http://www.ffmpeg.org Yes, it's fixed. These commands work OK now:- ffmpeg -i foo -target dvd foo.mpg ffmpeg -i foo -target pal-dvd foo.mpg ffmpeg -i foo -target vcd foo.mpg ffmpeg -i foo -target pal-vcd foo.mpg Thanks. *********************************** @ubuntu:~$ ffmpeg -i foo -target pal-dvd foo.mpg ffmpeg version git-N-30534-g87f4036, Copyright (c) 2000-2011 the FFmpeg developers ? built on Jun? 4 2011 12:17:34 with gcc 4.4.1 ? configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --disable-encoder=vorbis --enable-libvo-amrwbenc --enable-libvo-aacenc ? libavutil??? 51.? 4. 0 / 51.? 4. 0 ? libavcodec?? 53.? 6. 1 / 53.? 6. 1 ? libavformat? 53.? 2. 0 / 53.? 2. 0 ? libavdevice? 53.? 1. 0 / 53.? 1. 0 ? libavfilter?? 2. 12. 0 /? 2. 12. 0 ? libswscale??? 0. 14. 1 /? 0. 14. 1 ? libpostproc? 51.? 2. 0 / 51.? 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1) Input #0, asf, from 'foo': ? Metadata: ??? duration??????? : 270 ??? lasttimestamp?? : 270 ??? datasize??????? : 26326655 ??? metadatacreator : FlixEngineLinux_8.0.16.0 (www.on2.com) ??? canSeekToEnd??? : true ??? videocodecid??? : 4 ??? width?????????? : 640 ??? height????????? : 360 ??? videodatarate?? : 698 ??? framerate?????? : 24 ??? videosize?????? : 24163299 ??? audiocodecid??? : 2 ??? audiodatarate?? : 63 ??? audiosize?????? : 2163356 ??? encoder???????? : Lavf53.2.0 ? Duration: 00:04:30.41, start: 0.000000, bitrate: 1202 kb/s ??? Stream #0.0: Video: wmv2, yuv420p, 640x360, 25 tbr, 1k tbn, 1k tbc ??? Stream #0.1: Audio: wmav2, 44100 Hz, 2 channels, s16, 160 kb/s [buffer @ 0xaa8b8e0] w:640 h:360 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: [scale @ 0xaa8bd00] w:640 h:360 fmt:yuv420p -> w:720 h:576 fmt:yuv420p flags:0x4 [ac3 @ 0xaa93440] channel_layout not specified [ac3 @ 0xaa93440] No channel layout specified. The encoder will guess the layout, but it might be incorrect. Output #0, dvd, to 'foo.mpg': ? Metadata: ??? duration??????? : 270 ??? lasttimestamp?? : 270 ??? datasize??????? : 26326655 ??? metadatacreator : FlixEngineLinux_8.0.16.0 (www.on2.com) ??? canSeekToEnd??? : true ??? videocodecid??? : 4 ??? width?????????? : 640 ??? height????????? : 360 ??? videodatarate?? : 698 ??? framerate?????? : 24 ??? videosize?????? : 24163299 ??? audiocodecid??? : 2 ??? audiodatarate?? : 63 ??? audiosize?????? : 2163356 ??? encoder???????? : Lavf53.2.0 ??? Stream #0.0: Video: mpeg2video, yuv420p, 720x576, q=2-31, 6000 kb/s, 90k tbn, 25 tbc ??? Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 448 kb/s Stream mapping: ? Stream #0.0 -> #0.0 ? Stream #0.1 -> #0.1 Press [q] to stop, [?] for help frame=?? 22 fps=? 0 q=2.0 size=???? 144kB time=00:00:00.84 bitrate=1404.3kbits/s frame=?? 41 fps= 38 q=2.0 size=???? 322kB time=00:00:01.60 bitrate=1648.6kbits/s frame=?? 53 fps= 33 q=2.0 size=???? 436kB time=00:00:02.08 bitrate=1717.2kbits/s frame=?? 73 fps= 34 q=2.0 size=???? 620kB time=00:00:02.88 bitrate=1763.6kbits/s frame=?? 91 fps= 35 q=1.6 size=???? 836kB time=00:00:03.60 bitrate=1902.4kbits/s etc. etc. etc. From tom_a_sparks at yahoo.com.au Sat Jun 4 13:49:56 2011 From: tom_a_sparks at yahoo.com.au (Tom Sparks) Date: Sat, 4 Jun 2011 04:49:56 -0700 (PDT) Subject: [FFmpeg-user] stereo images conversion changes aspect ratio In-Reply-To: <4DE99AA0.4060309@gmail.com> Message-ID: <19709.20975.qm@web36401.mail.mud.yahoo.com> --- On Sat, 4/6/11, Baptiste Coudurier wrote: > From: Baptiste Coudurier > Subject: Re: [FFmpeg-user] stereo images conversion changes aspect ratio > To: "FFmpeg user questions and RTFMs" > Received: Saturday, 4 June, 2011, 12:38 PM > Hi, > > On 06/02/2011 09:20 PM, Tom Sparks wrote: > > I am converting a stereo images that top/bottom to > left/right > > > > I am using this command > > ./ffmpeg -i "elphelimg_2421643.jpg" -qscale 1 -vf > 'mp=down3dright' "output.jpg" > > > > here is the source imge > > http://www.lightningridgecommunity.com/panorama/elphelimg_2421643.jpeg > > > > here is the result image > > http://www.lightningridgecommunity.com/panorama/output.jpg > > > > As you can see the circle have changed into ovals, is > there any way to stop this from happening? > > Try settings "mp=down3dright=2:2" > > For some reason I don't know, it keeps the same width by > default. > that did not work :( Error initializing filter 'mp' with args 'down3dright=2:2' I am starting to think my version need to be updated (ffmpeg built on Mar 19 2011 08:54:17) :( tom From mjs973 at optonline.net Sat Jun 4 16:12:41 2011 From: mjs973 at optonline.net (Mike Scheutzow) Date: Sat, 04 Jun 2011 10:12:41 -0400 Subject: [FFmpeg-user] Streaming MP4 In-Reply-To: <4DE57001.2010209@gmail.com> References: <898767.86226.qm@web86408.mail.ird.yahoo.com> <4DE57001.2010209@gmail.com> Message-ID: <4DEA3D59.9080800@optonline.net> Baptiste Coudurier wrote: > On 05/30/2011 06:33 PM, JULIAN GARDNER wrote: > > I was wondering if anybody has managed to get ffmpeg to stream out > > MP4 video/audio. > > > > I have a working system using mpeg-ts and h264/aac and i now need > > to dual send some channels in MP4 as well, but when i change the > > output format to mp4 i get > > > > "could not write header for output file #0" > > > > Anybody have any ideas to why this does not work or a way of > > getting it to work. > > MP4 is not a "streamable" format by essence. There are features that > can make it streamable, the muxer don't support them currently. The usual way to send mp4 video over a network is to wrap it in RTP. rfc3984 describes one way to do this. One huge problem of rfc3984 is that it relies on an SDP file to tell the client how to interpret the RTP content. So rfc3984 isn't really useful for broadcast-style use, because the bitstream is not self-contained (it does not contain all the information necessary to decode the bitstream.) A second problem is that FFmpeg (the library) implements only a tiny subset of rfc3984, and it has many bugs. If you want to experiment with rtp streams using ffmpeg (the app), specify '-re' to slow down the output rate, specify an output format of '-f rtp' and an output filename of 'rtp://client:clientPort' e.g. 'rtp://127.0.0.1:5000'. If you use vlc as the client, you must give vlc a valid .sdp file. The FFmpeg library currently supports only 1 AVStream in an rtp output, so audio and video will have to be sent as separate bitstreams. Be prepared to do a lot of debugging with wireshark. Mike Scheutzow From baptiste.coudurier at gmail.com Sat Jun 4 22:35:42 2011 From: baptiste.coudurier at gmail.com (Baptiste Coudurier) Date: Sat, 04 Jun 2011 13:35:42 -0700 Subject: [FFmpeg-user] stereo images conversion changes aspect ratio In-Reply-To: <19709.20975.qm@web36401.mail.mud.yahoo.com> References: <19709.20975.qm@web36401.mail.mud.yahoo.com> Message-ID: <4DEA971E.6030604@gmail.com> On 6/4/11 4:49 AM, Tom Sparks wrote: > --- On Sat, 4/6/11, Baptiste Coudurier wrote: > >> From: Baptiste Coudurier >> Subject: Re: [FFmpeg-user] stereo images conversion changes aspect ratio >> To: "FFmpeg user questions and RTFMs" >> Received: Saturday, 4 June, 2011, 12:38 PM >> Hi, >> >> On 06/02/2011 09:20 PM, Tom Sparks wrote: >>> I am converting a stereo images that top/bottom to >> left/right >>> >>> I am using this command >>> ./ffmpeg -i "elphelimg_2421643.jpg" -qscale 1 -vf >> 'mp=down3dright' "output.jpg" >>> >>> here is the source imge >>> http://www.lightningridgecommunity.com/panorama/elphelimg_2421643.jpeg >>> >>> here is the result image >>> http://www.lightningridgecommunity.com/panorama/output.jpg >>> >>> As you can see the circle have changed into ovals, is >> there any way to stop this from happening? >> >> Try settings "mp=down3dright=2:2" >> >> For some reason I don't know, it keeps the same width by >> default. >> > that did not work :( > > Error initializing filter 'mp' with args 'down3dright=2:2' > > I am starting to think my version need to be updated (ffmpeg built on Mar 19 2011 08:54:17) :( > Yes, you need to update. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org From lugoteehalt at yahoo.co.uk Sun Jun 5 03:31:24 2011 From: lugoteehalt at yahoo.co.uk (lugoteehalt) Date: Sat, 4 Jun 2011 18:31:24 -0700 (PDT) Subject: [FFmpeg-user] Picture jerky when screencasting? In-Reply-To: <20110604091826.GO28878@epicure.lazyet.homelinux.net> References: <1306953745653-3566577.post@n4.nabble.com> <20110601210118.GG28878@epicure.lazyet.homelinux.net> <1306968130735-3567174.post@n4.nabble.com> <20110602081243.GI28878@epicure.lazyet.homelinux.net> <1307032454007-3568789.post@n4.nabble.com> <20110603165200.GN28878@epicure.lazyet.homelinux.net> <1307160861338-3572705.post@n4.nabble.com> <20110604091826.GO28878@epicure.lazyet.homelinux.net> Message-ID: <1307237484838-3574489.post@n4.nabble.com> Etienne Buira wrote: > > On Fri, Jun 03, 2011 at 09:14:21PM -0700, lugoteehalt wrote: >> Great thanks. Seems to be an exact copy. It now works with: > > Make sure of it (you can use diff -s file1 file2). > >> ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s cif -r 25 -s `xdpyinfo | grep >> 'dimensions:'| awk '{print $2}'` -fpre >> /usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset -i :0.0 >> ~/out.mkv >> >> The picture no longer jerks on iplayer fullscreen, nor is it much >> webcammy. >> But the quality, while acceptable for most things, is not high. Colour >> gradients are stepped for instance. Hope this not off topic but could >> you >> suggest how to tweek the quality - it is a complex piece of software for >> someone new? > > The command you give is not the initial one, and here, you don't use > libx264 at all. Use your initial command, with only -vpre changed to > -fpre pointing to a file you know for sure is an exact copy of the > original preset. > Bear in mind that options ordering matters. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > Great thanks. Did as you asked but the result was the same as before with [libx264 @ 0x9093f40] constant rate-factor is incompatible with 2pass. in red. The command was: ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 25 -s 1360x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -fpre /usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset output.mkv The preset files are the same used diff like you said. Tried strace, don't remotely know if this is relevant but did: grep '= -1' strace.txt access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) futex(0xbf9f2360, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1, NULL, bf9f2370) = -1 EAGAIN (Resource temporarily unavailable) access("/home/eric/.asoundrc", R_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory) open("/home/eric/.pulse/client.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory) read(7, 0xa3f3e10, 8) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(7, 0xa3eece0, 4096) = -1 EAGAIN (Resource temporarily unavailable) kill(3206, SIG_0) = -1 ESRCH (No such process) send(6, "W", 1, MSG_NOSIGNAL) = -1 ENOTSOCK (Socket operation on non-socket) ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf9f1c38) = -1 ENOTTY (Inappropriate ioctl for device) ioctl(2, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf9f1c38) = -1 ENOTTY (Inappropriate ioctl for device) read(8, 0xa3f2b48, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(8, 0xa3f2b48, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(8, 0xa3f2b48, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(8, 0xa3f2b48, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(8, 0xa3f2b48, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(8, 0xa3f2b48, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(8, 0xa3f2b48, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(8, 0xa3f2b48, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(8, 0xa3f2b48, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(8, 0xa3f2b48, 4096) = -1 EAGAIN (Resource temporarily unavailable) read(8, 0xa3f2b48, 4096) = -1 EAGAIN (Resource temporarily unavailable) stat64("output.mkv", 0xbf9f20e0) = -1 ENOENT (No such file or directory) futex(0xa3edba4, FUTEX_WAIT_PRIVATE, 11, NULL) = -1 EAGAIN (Resource temporarily unavailable) read(8, 0xa3f2b48, 4096) = -1 EAGAIN (Resource temporarily unavailable) Also strace said: open("/usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset", O_RDONLY|O_LARGEFILE) = 9 so seems like it is going to the correct preset. Had not realised I was not using libx264 in the most recent command that works, above. Do not remotely know what I'm talking about but looked for libx264 and the only files the thing can presumably find are: /usr/lib/libx264.so.112 /usr/local/lib/libx264.a Is it possible it simply has no libx264? Thanks again. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Picture-jerky-when-screencasting-tp3566577p3574489.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From leegold at operamail.com Sun Jun 5 04:26:53 2011 From: leegold at operamail.com (Lee Gold) Date: Sat, 04 Jun 2011 19:26:53 -0700 Subject: [FFmpeg-user] Always get very large files when I convert Message-ID: <1307240813.26571.1459603469@webmail.messagingengine.com> When I convert an mpeg-4 (or most any file type) to an flv I notice the flv files are much larger. For example the mpeg-4 might be 40mb and the resulting flv is 210mb. This is really a big difference! I do want the flv files to be every bit as good in quality as any source file I convert from. I use: ffmpeg -i input.mp4 -sameq -ar 44100 output.flv This has worked well for every file type I have tried. But would appreciate if someone could explain the reason for the large file sizes that result. Thanks. -- http://www.fastmail.fm - The professional email service From tom_a_sparks at yahoo.com.au Sun Jun 5 06:19:43 2011 From: tom_a_sparks at yahoo.com.au (Tom Sparks) Date: Sat, 4 Jun 2011 21:19:43 -0700 (PDT) Subject: [FFmpeg-user] stereo images conversion changes aspect ratio In-Reply-To: <4DEA971E.6030604@gmail.com> Message-ID: <384209.46675.qm@web36406.mail.mud.yahoo.com> --- On Sun, 5/6/11, Baptiste Coudurier wrote: > From: Baptiste Coudurier > Subject: Re: [FFmpeg-user] stereo images conversion changes aspect ratio > To: "FFmpeg user questions and RTFMs" > Received: Sunday, 5 June, 2011, 6:35 AM > On 6/4/11 4:49 AM, Tom Sparks wrote: > > --- On Sat, 4/6/11, Baptiste Coudurier? > wrote: > > > >> From: Baptiste Coudurier > >> Subject: Re: [FFmpeg-user] stereo images > conversion changes aspect ratio > >> To: "FFmpeg user questions and RTFMs" > >> Received: Saturday, 4 June, 2011, 12:38 PM > >> Hi, > >> > >> On 06/02/2011 09:20 PM, Tom Sparks wrote: > >>> I am converting a stereo images that > top/bottom to > >> left/right > >>> > >>> I am using this command > >>> ./ffmpeg -i "elphelimg_2421643.jpg" -qscale 1 > -vf > >> 'mp=down3dright' "output.jpg" > >>> > >>> here is the source imge > >>> http://www.lightningridgecommunity.com/panorama/elphelimg_2421643.jpeg > >>> > >>> here is the result image > >>> http://www.lightningridgecommunity.com/panorama/output.jpg > >>> > >>> As you can see the circle have changed into > ovals, is > >> there any way to stop this from happening? > >> > >> Try settings "mp=down3dright=2:2" > >> > >> For some reason I don't know, it keeps the same > width by > >> default. > >> > > that did not work :( > > > > Error initializing filter 'mp' with args > 'down3dright=2:2' > > > > I am starting to think my version need to be updated > (ffmpeg built on Mar 19 2011 08:54:17) :( > > > > Yes, you need to update. > update to Jun 5 2011 03:07:12 thanks to http://firefogg.org/nightly/ it works with 'down3dright=2:2' :) tom From andycivil at gmail.com Sun Jun 5 07:58:44 2011 From: andycivil at gmail.com (Andy Civil) Date: Sun, 05 Jun 2011 01:58:44 -0400 Subject: [FFmpeg-user] Always get very large files when I convert In-Reply-To: <1307240813.26571.1459603469@webmail.messagingengine.com> References: <1307240813.26571.1459603469@webmail.messagingengine.com> Message-ID: <4DEB1B14.3090401@gmail.com> On 2011-06-04 10:26 PM, Lee Gold wrote: > > When I convert an mpeg-4 (or most any file type) to an flv I notice the > flv files are much larger. For example the mpeg-4 might be 40mb and the > resulting flv is 210mb. This is really a big difference! I do want the > flv files to be every bit as good in quality as any source file I > convert from. I use: > > ffmpeg -i input.mp4 -sameq -ar 44100 output.flv > > This has worked well for every file type I have tried. But would > appreciate if someone could explain the reason for the large file sizes > that result. > Unfortunately, "sameq" does not mean 'same quality' as presented on the documentation page, this is a myth that started on the documentation page (it's still there) and spread throughout the Internet: it means 'same quantizer'. Take out the "-sameq" and use instead "-crf " choosing an appropriate value by experimentation. (I suggest reducing the file size until you can see a quality problem, then backing off to maintain a margin of error.) -- Andy From bahamutzero8825 at gmail.com Sun Jun 5 08:10:37 2011 From: bahamutzero8825 at gmail.com (Andrew Berg) Date: Sun, 05 Jun 2011 01:10:37 -0500 Subject: [FFmpeg-user] Always get very large files when I convert In-Reply-To: <1307240813.26571.1459603469@webmail.messagingengine.com> References: <1307240813.26571.1459603469@webmail.messagingengine.com> Message-ID: <4DEB1DDD.2070806@gmail.com> On 2011.06.04 09:26 PM, Lee Gold wrote: > I do want the > flv files to be every bit as good in quality as any source file I > convert from. If the video in the MP4 file is AVC, you can probably just remux. If that doesn't work, then you likely cannot get transparency or even near-transparency at the same bitrate since it probably means you need to use a less efficient codec (H.263 or Xvid) or use less efficient options (i.e. your video is restricted to certain options within AVC). I don't know why you need a Flash video container or what restrictions (if any) you have or what kind of video is in your source file, so I can't be more specific. From etienne.buira.lists at free.fr Sun Jun 5 09:50:44 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Sun, 5 Jun 2011 09:50:44 +0200 Subject: [FFmpeg-user] Picture jerky when screencasting? In-Reply-To: <1307237484838-3574489.post@n4.nabble.com> References: <1306953745653-3566577.post@n4.nabble.com> <20110601210118.GG28878@epicure.lazyet.homelinux.net> <1306968130735-3567174.post@n4.nabble.com> <20110602081243.GI28878@epicure.lazyet.homelinux.net> <1307032454007-3568789.post@n4.nabble.com> <20110603165200.GN28878@epicure.lazyet.homelinux.net> <1307160861338-3572705.post@n4.nabble.com> <20110604091826.GO28878@epicure.lazyet.homelinux.net> <1307237484838-3574489.post@n4.nabble.com> Message-ID: <20110605075044.GP28878@epicure.lazyet.homelinux.net> On Sat, Jun 04, 2011 at 06:31:24PM -0700, lugoteehalt wrote: > > Etienne Buira wrote: > > > > On Fri, Jun 03, 2011 at 09:14:21PM -0700, lugoteehalt wrote: > >> Great thanks. Seems to be an exact copy. It now works with: > > > > Make sure of it (you can use diff -s file1 file2). > > > >> ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s cif -r 25 -s `xdpyinfo | grep > >> 'dimensions:'| awk '{print $2}'` -fpre > >> /usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset -i :0.0 > >> ~/out.mkv > >> > >> The picture no longer jerks on iplayer fullscreen, nor is it much > >> webcammy. > >> But the quality, while acceptable for most things, is not high. Colour > >> gradients are stepped for instance. Hope this not off topic but could > >> you > >> suggest how to tweek the quality - it is a complex piece of software for > >> someone new? > > > > The command you give is not the initial one, and here, you don't use > > libx264 at all. Use your initial command, with only -vpre changed to > > -fpre pointing to a file you know for sure is an exact copy of the > > original preset. > > Bear in mind that options ordering matters. > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > Great thanks. Did as you asked but the result was the same as before with > > [libx264 @ 0x9093f40] constant rate-factor is incompatible with 2pass. Hi Then, you have a bug I cannot reproduce. > in red. The command was: > > ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 25 -s 1360x768 -i :0.0 -acodec > pcm_s16le -vcodec libx264 -fpre > /usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset output.mkv > > The preset files are the same used diff like you said. > > Tried strace, don't remotely know if this is relevant but did: strace -e trace=file is less verbose, but as you are using fpre instead of vpre, we know yet what preset ffmpeg should load. (Well, you can give it a try, with -vpre lossless_ultrafast, and grep strace for 'ffpreset'). > open("/usr/local/share/ffmpeg/libx264-lossless_ultrafast.ffpreset", > O_RDONLY|O_LARGEFILE) = 9 > > so seems like it is going to the correct preset. > > Had not realised I was not using libx264 in the most recent command that > works, above. Do not remotely know what I'm talking about but looked for > libx264 and the only files the thing can presumably find are: The -vcodec instructs which video codec to use, same with -acodec and audio. If not specified, it will default depending on the container. > /usr/lib/libx264.so.112 > /usr/local/lib/libx264.a > > Is it possible it simply has no libx264? Thanks again. libx264 is installed as it is the software that tells you [libx264...] lines. Last thing I see you might look at is to check if you did any modification to your git source tree. From rickcorteza at gmail.com Sun Jun 5 13:27:15 2011 From: rickcorteza at gmail.com (Rick C.) Date: Sun, 5 Jun 2011 19:27:15 +0800 Subject: [FFmpeg-user] mkv to avi errors In-Reply-To: References: <5ED1C756-4C55-4FEC-A808-357EBD79DD3B@gmail.com> Message-ID: <917BAD64-7A02-40C2-931E-85A752CF84C6@gmail.com> On May 27, 2011, at 8:05 AM, Jon Drukman wrote: > Rick C. gmail.com> writes: > >> Great thanks for the quick replies. I actually thought lame could do surround > (obviously I was wrong) or >> either that FFmpeg would downmix it automatically (I guess not the case). If > I would specify -ac 2 then it >> should work correct? >> >> And yes to avoid losing my surround I will go ac3. Thank you! > > -ac 2 will give you a stereo mp3. if you want to preserve the ac3, just use > -acodec copy. > Hello again, If I can continue this thread I thought I understood everything, but now that I make some more tests I keep getting the error that I cannot resample from 6 channels to 2 channels. But what is my other choice if I'm going from AC3 to mp3lame for example? Here's the output and any additional help would be great thank you: FFmpeg version git-N-28698-g621f4c9, Copyright (c) 2000-2011 the FFmpeg developers built on Mar 30 2011 13:29:37 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 50. 40. 0 / 50. 40. 0 libavcodec 52.116. 0 / 52.116. 0 libavformat 52.104. 0 / 52.104. 0 libavdevice 52. 4. 0 / 52. 4. 0 libavfilter 1. 76. 0 / 1. 76. 0 libswscale 0. 13. 0 / 0. 13. 0 Seems stream 0 codec frame rate differs from container frame rate: 47.95 (66893/1395) -> 23.98 (66893/2790) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/mahalko/Movies/myMovies/Cars.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isom creation_time : 2010-08-26 04:14:05 Duration: 01:56:36.05, start: 0.000000, bitrate: 2189 kb/s Stream #0.0(und): Video: h264 (High), yuv420p, 1280x528 [PAR 1:1 DAR 80:33], 1803 kb/s, 23.98 fps, 23.98 tbr, 66893 tbn, 47.95 tbc Metadata: creation_time : 2010-08-26 23:11:34 Stream #0.1(eng): Audio: aac, 48000 Hz, 5.1, s16, 381 kb/s Metadata: creation_time : 2010-08-26 04:16:00 [buffer @ 0x1012011d0] w:1280 h:528 pixfmt:yuv420p [setdar @ 0x1012018e0] a:80/33 [setdar @ 0x1012018e0] w:1280 h:528 -> dar:80/33 sar:1/1 Output #0, avi, to '/Users/mahalko/Movies/myMovies/Cars-VC01.avi': Metadata: major_brand : isom minor_version : 1 compatible_brands: isom creation_time : 2010-08-26 04:14:05 ISFT : Lavf52.104.0 Stream #0.0(und): Video: mpeg4 (hq), yuv420p, 1280x528 [PAR 1:1 DAR 80:33], q=2-31, 2000 kb/s, 29.97 tbn, 29.97 tbc Metadata: creation_time : 2010-08-26 23:11:34 Stream #0.1(eng): Audio: libmp3lame, 48000 Hz, 2 channels, s16, 64 kb/s Metadata: creation_time : 2010-08-26 04:16:00 Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press ctrl-c to stop encoding Resampling with input channels greater than 2 unsupported. Can not resample 6 channels @ 48000 Hz to 2 channels @ 48000 Hz From benoit at friry.net Sun Jun 5 14:10:04 2011 From: benoit at friry.net (Benoit) Date: Sun, 5 Jun 2011 14:10:04 +0200 Subject: [FFmpeg-user] Advice for webm conversion Message-ID: <20110605121004.GA19939@friry.net> Hi! I try to convert VHS videos to webm. First step was to acquire to mjpeg/pcm. The files are huge: 500MB for 5 minutes! Second step is now to convert to something smaller. I chose webm. Question 1 ---------- I'm looking for "good" quality, file size and compression duration are not my primary concern. After a lot of search, my command is: ffmpeg \ -threads 0 \ -i input.avi \ -acodec libvorbis \ -aq 40 -ac 2 \ -vcodec libvpx \ -vf "yadif=1:0,crop=in_w-24:in_h-8:8:0" \ -g 200 -keyint_min 0 \ -qmax 40 \ -rc_lookahead 16 -skip_threshold 0 -level 116 \ -r 50 \ -f webm \ output.webm This seems good to me. Has anyone any advice? Some options may be useless, and there may be better choices. There is a lot parameters, without a lot of documentation. I've seen -altref, -token_partitions, -lag, -mb_static_threshold, -rc_buf_aggressivity, with no explanation. Question 2 ---------- Encoding fails for some files. When failing, encoding ends with a message like that: Killed 6294 fps= 7 q=0.0 size= 93503kB time=540.71 bitrate=1416.6kbits/s (Seems to be "Killed" with the remaining of the progress status line) Example file #1: Duration: 00:16:11.92, start: 0.000000, bitrate: 21295 kb/s Stream #0.0: Video: mjpeg, yuvj420p, 720x576, 25 tbr, 25 tbn, 25 tbc Stream #0.1: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s First try: the result for my example is a 68MB file. Duration: N/A, start: 0.000000, bitrate: N/A Stream #0.0: Video: vp8, yuv420p, 696x568, PAR 1:1 DAR 348:283, 50 fps, 50 tbr, 1k tbn, 50 tbc (default) Stream #0.1: Audio: vorbis, 44100 Hz, stereo, s16 (default) Second try: the file is 92M Duration: N/A, start: 0.000000, bitrate: N/A Stream #0.0: Video: vp8, yuv420p, 696x568, PAR 1:1 DAR 87:71, 50 fps, 50 tbr, 1k tbn, 50 tbc (default) Stream #0.1: Audio: vorbis, 44100 Hz, stereo, s16 (default) ffplay does not let moving in the file. Moving with right/left arrays is ok, but clicking on the video fails: [matroska,webm @ 0x1cb93c0] Unknown entry 0xC5B [matroska,webm @ 0x1cb93c0] Unknown entry 0x4028 [matroska,webm @ 0x1cb93c0] Unknown entry 0xB8 [matroska,webm @ 0x1cb93c0] Unknown entry 0x92 [matroska,webm @ 0x1cb93c0] Unknown entry 0x4408 [matroska,webm @ 0x1cb93c0] Unknown entry 0x6892 [matroska,webm @ 0x1cb93c0] Invalid EBML number size tag 0x05 at pos 30435518 (0x1d068be) [vp8 @ 0x1cedfe0] Discarding interframe without a prior keyframe! 18.03 A-V: 5.851 s:0.0 aq= 0KB vq= 0KB sq= 0B f=0/0 Last message repeated 103 times (Playing with VLC is similar.) Example file #2: Duration: 00:00:41.32, start: 0.000000, bitrate: 20899 kb/s Stream #0.0: Video: mjpeg, yuvj420p, 720x576, 25 tbr, 25 tbn, 25 tbc Stream #0.1: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s Output file, successfully encoded: [matroska,webm @ 0x1ed6d00] Estimating duration from bitrate, this may be inaccurate Input #0, matroska,webm, from 'file.webm': Duration: 00:00:41.32, start: 0.000000, bitrate: N/A Stream #0.0: Video: vp8, yuv420p, 696x568, PAR 1:1 DAR 87:71, 50 fps, 50 tbr, 1k tbn, 50 tbc (default) Stream #0.1: Audio: vorbis, 44100 Hz, stereo, s16 (default) Playing with ffplay and vlc are OK. Is it a bug? How to investigate encoding failure? Thanks, Benoit From tisch.daniel at gmail.com Sun Jun 5 17:52:19 2011 From: tisch.daniel at gmail.com (=?UTF-8?B?VGlzY2ggRMOhbmllbA==?=) Date: Sun, 05 Jun 2011 17:52:19 +0200 Subject: [FFmpeg-user] AVCHD recoding problem Message-ID: <4DEBA633.7050707@gmail.com> Hi, I want to recode files produced by an AVCHD camera. These are MTSs with H.264 video, AC3 audio and PGS subtitle. I am trying to use the following command: ffmpeg -top 1 -i test.mts -vcodec libx264 -top 1 -crf 23.0 -preset slower -tune fastdecode -acodec copy -sn -threads 5 test.mp4 My problem is, that x264 encodes video as 50FPS progressive, however it is 25FPS top-field-first. I also tried adding -x264opts "tff=1", but nothing changed. What can I do to get correct scan type during the whole process? I got this output: ffmpeg version git-N-30558-ge844abc, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 5 2011 15:41:41 with gcc 4.4.3 configuration: --arch=x86_64 --enable-shared --enable-gpl --enable-nonfree --enable-runtime-cpudetect --enable-libfaac --enable-libtheora --enable-libx264 --enable-libmp3lame libavutil 51. 4. 0 / 51. 4. 0 libavcodec 53. 6. 1 / 53. 6. 1 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 12. 0 / 2. 12. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 50.00 (50/1) Input #0, mpegts, from 'test.mts': Duration: 00:01:00.87, start: 1.000033, bitrate: 22363 kb/s Program 1 Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s Stream #0.2[0x1200]: Subtitle: pgssub [buffer @ 0xe83a00] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: [libx264 @ 0xe76760] using SAR=1/1 [libx264 @ 0xe76760] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2 [libx264 @ 0xe76760] profile High, level 5.0 [libx264 @ 0xe76760] 264 - core 115 - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 ref=8 deblock=0:0:0 analyse=0x3:0x133 me=umh subme=9 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=5 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=0 open_gop=1 weightp=0 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=60 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 'test.mp4': Metadata: encoder : Lavf53.2.0 Stream #0.0: Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 50 tbn, 50 tbc Stream #0.1: Audio: ac3, 48000 Hz, stereo, 256 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop, [?] for help frame= 70 fps= 3 q=31.0 Lsize= 1877kB time=00:00:01.22 bitrate=12565.3kbits/s dup=36 drop=0 video:1838kB audio:37kB global headers:0kB muxing overhead 0.129483% frame I:1 Avg QP:24.66 size:244547 [libx264 @ 0xe76760] frame P:30 Avg QP:25.73 size: 46540 [libx264 @ 0xe76760] frame B:39 Avg QP:32.16 size: 6169 [libx264 @ 0xe76760] consecutive B-frames: 21.4% 0.0% 38.6% 40.0% [libx264 @ 0xe76760] mb I I16..4: 4.9% 62.3% 32.9% [libx264 @ 0xe76760] mb P I16..4: 0.2% 0.5% 0.1% P16..4: 38.0% 15.2% 2.1% 0.1% 0.1% skip:43.6% [libx264 @ 0xe76760] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 30.3% 1.6% 0.2% direct: 1.0% skip:66.9% L0:44.2% L1:50.8% BI: 5.0% [libx264 @ 0xe76760] 8x8 transform intra:62.6% inter:49.6% [libx264 @ 0xe76760] direct mvs spatial:94.9% temporal:5.1% [libx264 @ 0xe76760] coded y,uvDC,uvAC intra: 85.6% 85.6% 44.4% inter: 11.7% 13.1% 0.1% [libx264 @ 0xe76760] i16 v,h,dc,p: 39% 11% 4% 46% [libx264 @ 0xe76760] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 9% 5% 8% 12% 16% 11% 13% 10% [libx264 @ 0xe76760] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 14% 3% 9% 14% 15% 13% 10% 11% [libx264 @ 0xe76760] i8c dc,h,v,p: 41% 17% 25% 17% [libx264 @ 0xe76760] ref P L0: 60.6% 11.9% 15.8% 3.4% 2.0% 2.5% 2.4% 1.4% [libx264 @ 0xe76760] ref B L0: 85.1% 5.6% 5.3% 2.0% 0.7% 0.8% 0.5% [libx264 @ 0xe76760] ref B L1: 97.1% 2.9% [libx264 @ 0xe76760] kb/s:10750.62 Thanks! Daniel From mark at mdsh.com Sun Jun 5 19:51:28 2011 From: mark at mdsh.com (Mark Himsley) Date: Sun, 05 Jun 2011 18:51:28 +0100 Subject: [FFmpeg-user] AVCHD recoding problem In-Reply-To: <4DEBA633.7050707@gmail.com> References: <4DEBA633.7050707@gmail.com> Message-ID: <4DEBC220.8070200@mdsh.com> On 05/06/2011 16:52, Tisch D?niel wrote: > Hi, Hi Tisch, > I want to recode files produced by an AVCHD camera. These are MTSs with > H.264 video, AC3 audio and PGS subtitle. I am trying to use the > following command: > ffmpeg -top 1 -i test.mts -vcodec libx264 -top 1 -crf 23.0 -preset > slower -tune fastdecode -acodec copy -sn -threads 5 test.mp4 -top 1 before your input .mts file is doing nothing. > My problem is, that x264 encodes video as 50FPS progressive, however it > is 25FPS top-field-first. I also tried adding -x264opts "tff=1", but > nothing changed. I don't mean to sould rude, but are you really sure test.mts is 25i? If it isn't too large, can you upload it? Can you also tellus where it came from, which AVCHD camera. Thanks. > What can I do to get correct scan type during the whole process? > > I got this output: > > ffmpeg version git-N-30558-ge844abc, Copyright (c) 2000-2011 the FFmpeg > developers > built on Jun 5 2011 15:41:41 with gcc 4.4.3 > configuration: --arch=x86_64 --enable-shared --enable-gpl > --enable-nonfree --enable-runtime-cpudetect --enable-libfaac > --enable-libtheora --enable-libx264 --enable-libmp3lame > libavutil 51. 4. 0 / 51. 4. 0 > libavcodec 53. 6. 1 / 53. 6. 1 > libavformat 53. 2. 0 / 53. 2. 0 > libavdevice 53. 1. 1 / 53. 1. 1 > libavfilter 2. 12. 0 / 2. 12. 0 > libswscale 0. 14. 1 / 0. 14. 1 > libpostproc 51. 2. 0 / 51. 2. 0 > > Seems stream 0 codec frame rate differs from container frame rate: 50.00 > (50/1) -> 50.00 (50/1) > Input #0, mpegts, from 'test.mts': > Duration: 00:01:00.87, start: 1.000033, bitrate: 22363 kb/s > Program 1 > Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR > 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc > Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s > Stream #0.2[0x1200]: Subtitle: pgssub > [buffer @ 0xe83a00] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1 > sws_param: > [libx264 @ 0xe76760] using SAR=1/1 > [libx264 @ 0xe76760] using cpu capabilities: MMX2 SSE2Fast SSSE3 > FastShuffle SSE4.2 > [libx264 @ 0xe76760] profile High, level 5.0 > [libx264 @ 0xe76760] 264 - core 115 - H.264/MPEG-4 AVC codec - Copyleft > 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 ref=8 > deblock=0:0:0 analyse=0x3:0x133 me=umh subme=9 psy=1 psy_rd=1.00:0.00 > mixed_ref=1 me_range=16 chroma_me=1 trellis=2 8x8dct=1 cqm=0 > deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=5 > sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 > constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 > weightb=0 open_gop=1 weightp=0 keyint=250 keyint_min=25 scenecut=40 > intra_refresh=0 rc_lookahead=60 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 'test.mp4': > Metadata: > encoder : Lavf53.2.0 > Stream #0.0: Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], > q=2-31, 200 kb/s, 50 tbn, 50 tbc > Stream #0.1: Audio: ac3, 48000 Hz, stereo, 256 kb/s > Stream mapping: > Stream #0.0 -> #0.0 > Stream #0.1 -> #0.1 > Press [q] to stop, [?] for help > frame= 70 fps= 3 q=31.0 Lsize= 1877kB time=00:00:01.22 > bitrate=12565.3kbits/s dup=36 drop=0 > video:1838kB audio:37kB global headers:0kB muxing overhead 0.129483% > frame I:1 Avg QP:24.66 size:244547 > [libx264 @ 0xe76760] frame P:30 Avg QP:25.73 size: 46540 > [libx264 @ 0xe76760] frame B:39 Avg QP:32.16 size: 6169 > [libx264 @ 0xe76760] consecutive B-frames: 21.4% 0.0% 38.6% 40.0% > [libx264 @ 0xe76760] mb I I16..4: 4.9% 62.3% 32.9% > [libx264 @ 0xe76760] mb P I16..4: 0.2% 0.5% 0.1% P16..4: 38.0% 15.2% > 2.1% 0.1% 0.1% skip:43.6% > [libx264 @ 0xe76760] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 30.3% 1.6% 0.2% > direct: 1.0% skip:66.9% L0:44.2% L1:50.8% BI: 5.0% > [libx264 @ 0xe76760] 8x8 transform intra:62.6% inter:49.6% > [libx264 @ 0xe76760] direct mvs spatial:94.9% temporal:5.1% > [libx264 @ 0xe76760] coded y,uvDC,uvAC intra: 85.6% 85.6% 44.4% inter: > 11.7% 13.1% 0.1% > [libx264 @ 0xe76760] i16 v,h,dc,p: 39% 11% 4% 46% > [libx264 @ 0xe76760] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 9% 5% 8% 12% 16% > 11% 13% 10% > [libx264 @ 0xe76760] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 14% 3% 9% 14% > 15% 13% 10% 11% > [libx264 @ 0xe76760] i8c dc,h,v,p: 41% 17% 25% 17% > [libx264 @ 0xe76760] ref P L0: 60.6% 11.9% 15.8% 3.4% 2.0% 2.5% 2.4% 1.4% > [libx264 @ 0xe76760] ref B L0: 85.1% 5.6% 5.3% 2.0% 0.7% 0.8% 0.5% > [libx264 @ 0xe76760] ref B L1: 97.1% 2.9% > [libx264 @ 0xe76760] kb/s:10750.62 > > > Thanks! > Daniel -- Mark From tisch.daniel at gmail.com Sun Jun 5 21:00:41 2011 From: tisch.daniel at gmail.com (=?ISO-8859-1?Q?Tisch_D=E1niel?=) Date: Sun, 05 Jun 2011 21:00:41 +0200 Subject: [FFmpeg-user] AVCHD recoding problem In-Reply-To: <4DEBC220.8070200@mdsh.com> References: <4DEBA633.7050707@gmail.com> <4DEBC220.8070200@mdsh.com> Message-ID: <4DEBD259.3080606@gmail.com> On 2011.06.05. 19:51, Mark Himsley wrote: > On 05/06/2011 16:52, Tisch D?niel wrote: >> Hi, > > Hi Tisch, > >> I want to recode files produced by an AVCHD camera. These are MTSs with >> H.264 video, AC3 audio and PGS subtitle. I am trying to use the >> following command: >> ffmpeg -top 1 -i test.mts -vcodec libx264 -top 1 -crf 23.0 -preset >> slower -tune fastdecode -acodec copy -sn -threads 5 test.mp4 > > -top 1 before your input .mts file is doing nothing. Ok, I just tried everything might help. :) > >> My problem is, that x264 encodes video as 50FPS progressive, however it >> is 25FPS top-field-first. I also tried adding -x264opts "tff=1", but >> nothing changed. > > I don't mean to sould rude, but are you really sure test.mts is 25i? > If it isn't too large, can you upload it? It is sure to be 25i. MediaInfo tells that, and interlacement is also visible when played. Actually it is huge, because it's 1080i, but if it will be necessary to work out a solution, I will capture a short sample. > > Can you also tellus where it came from, which AVCHD camera. It is from a Sony HDR-CX115, European version. Thanks for any advice. > > Thanks. > >> What can I do to get correct scan type during the whole process? >> >> I got this output: >> >> ffmpeg version git-N-30558-ge844abc, Copyright (c) 2000-2011 the FFmpeg >> developers >> built on Jun 5 2011 15:41:41 with gcc 4.4.3 >> configuration: --arch=x86_64 --enable-shared --enable-gpl >> --enable-nonfree --enable-runtime-cpudetect --enable-libfaac >> --enable-libtheora --enable-libx264 --enable-libmp3lame >> libavutil 51. 4. 0 / 51. 4. 0 >> libavcodec 53. 6. 1 / 53. 6. 1 >> libavformat 53. 2. 0 / 53. 2. 0 >> libavdevice 53. 1. 1 / 53. 1. 1 >> libavfilter 2. 12. 0 / 2. 12. 0 >> libswscale 0. 14. 1 / 0. 14. 1 >> libpostproc 51. 2. 0 / 51. 2. 0 >> >> Seems stream 0 codec frame rate differs from container frame rate: 50.00 >> (50/1) -> 50.00 (50/1) >> Input #0, mpegts, from 'test.mts': >> Duration: 00:01:00.87, start: 1.000033, bitrate: 22363 kb/s >> Program 1 >> Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR >> 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc >> Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s >> Stream #0.2[0x1200]: Subtitle: pgssub >> [buffer @ 0xe83a00] w:1920 h:1080 pixfmt:yuv420p tb:1/1000000 sar:1/1 >> sws_param: >> [libx264 @ 0xe76760] using SAR=1/1 >> [libx264 @ 0xe76760] using cpu capabilities: MMX2 SSE2Fast SSSE3 >> FastShuffle SSE4.2 >> [libx264 @ 0xe76760] profile High, level 5.0 >> [libx264 @ 0xe76760] 264 - core 115 - H.264/MPEG-4 AVC codec - Copyleft >> 2003-2011 - http://www.videolan.org/x264.html - options: cabac=0 ref=8 >> deblock=0:0:0 analyse=0x3:0x133 me=umh subme=9 psy=1 psy_rd=1.00:0.00 >> mixed_ref=1 me_range=16 chroma_me=1 trellis=2 8x8dct=1 cqm=0 >> deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=5 >> sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 >> constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 >> weightb=0 open_gop=1 weightp=0 keyint=250 keyint_min=25 scenecut=40 >> intra_refresh=0 rc_lookahead=60 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 'test.mp4': >> Metadata: >> encoder : Lavf53.2.0 >> Stream #0.0: Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], >> q=2-31, 200 kb/s, 50 tbn, 50 tbc >> Stream #0.1: Audio: ac3, 48000 Hz, stereo, 256 kb/s >> Stream mapping: >> Stream #0.0 -> #0.0 >> Stream #0.1 -> #0.1 >> Press [q] to stop, [?] for help >> frame= 70 fps= 3 q=31.0 Lsize= 1877kB time=00:00:01.22 >> bitrate=12565.3kbits/s dup=36 drop=0 >> video:1838kB audio:37kB global headers:0kB muxing overhead 0.129483% >> frame I:1 Avg QP:24.66 size:244547 >> [libx264 @ 0xe76760] frame P:30 Avg QP:25.73 size: 46540 >> [libx264 @ 0xe76760] frame B:39 Avg QP:32.16 size: 6169 >> [libx264 @ 0xe76760] consecutive B-frames: 21.4% 0.0% 38.6% 40.0% >> [libx264 @ 0xe76760] mb I I16..4: 4.9% 62.3% 32.9% >> [libx264 @ 0xe76760] mb P I16..4: 0.2% 0.5% 0.1% P16..4: 38.0% 15.2% >> 2.1% 0.1% 0.1% skip:43.6% >> [libx264 @ 0xe76760] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 30.3% 1.6% 0.2% >> direct: 1.0% skip:66.9% L0:44.2% L1:50.8% BI: 5.0% >> [libx264 @ 0xe76760] 8x8 transform intra:62.6% inter:49.6% >> [libx264 @ 0xe76760] direct mvs spatial:94.9% temporal:5.1% >> [libx264 @ 0xe76760] coded y,uvDC,uvAC intra: 85.6% 85.6% 44.4% inter: >> 11.7% 13.1% 0.1% >> [libx264 @ 0xe76760] i16 v,h,dc,p: 39% 11% 4% 46% >> [libx264 @ 0xe76760] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 9% 5% 8% 12% 16% >> 11% 13% 10% >> [libx264 @ 0xe76760] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 14% 3% 9% 14% >> 15% 13% 10% 11% >> [libx264 @ 0xe76760] i8c dc,h,v,p: 41% 17% 25% 17% >> [libx264 @ 0xe76760] ref P L0: 60.6% 11.9% 15.8% 3.4% 2.0% 2.5% 2.4% >> 1.4% >> [libx264 @ 0xe76760] ref B L0: 85.1% 5.6% 5.3% 2.0% 0.7% 0.8% 0.5% >> [libx264 @ 0xe76760] ref B L1: 97.1% 2.9% >> [libx264 @ 0xe76760] kb/s:10750.62 >> >> >> Thanks! >> Daniel > From longkerdandy at gmail.com Mon Jun 6 08:47:08 2011 From: longkerdandy at gmail.com (LongkerDandy) Date: Mon, 6 Jun 2011 14:47:08 +0800 Subject: [FFmpeg-user] libfaac how to select AAC profile Message-ID: Hi I believe ffmpeg with libfaac can select AAC profile, like AAC LC, AAC Main etc. But I don't know how, I can't find it on document or google. Can someone point me out? Thanks LongkerDandy From sweetthdevil at gmail.com Tue Jun 7 11:33:13 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 10:33:13 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, Message-ID: <4DEDF059.9070308@gmail.com> Hi all, I am recording my Logitech Ultra Vison using ffmpeg with the following command, "ffmpeg -f video4linux2 -i /dev/video0 -s 640x480 -vcodec mpeg4 -sameq cam_`date +%F_%T`.mp4" However the video quality isn't as it's best, if I am using mencoder (which I understand isn't maintain any more) with x264 codec then the picture is much clearer and sharp (same size than ffmpeg) If I am trying to record the webcam with ffmpeg and libx264 (with the -vpre medium option) than the picture quality is the same as mpeg4 codec. So the question would be, how to have a sharper and clearer image the same as using mencoder (see below for the mencoder command line for reference) (mencoder tv:// -tv driver=v4l2:width=800:height=600:fps=15:device=/dev/video0 -ovc x264 -nosound -o cam_`date +%F_%T`.avi) Also, I would very much like to be able to record the video with the time on the bottom corner it, is there such a command? Should you require any further details, please do not hesitate to contact me, Looking forward for your replies, From peter at gpscam.nl Tue Jun 7 11:49:40 2011 From: peter at gpscam.nl (Peter Hassing) Date: Tue, 7 Jun 2011 09:49:40 +0000 (UTC) Subject: [FFmpeg-user] Unknown standard 'NTSC' in v4l2 In-Reply-To: <6f047e2f-996b-48c1-8f7a-3db7a4060ed5@mackie.local> Message-ID: Hi all, I'm having some trouble with video4linux2 The error I'm getting is : [video4linux2 @ 0x97f2540] Unknown standard 'NTSC' [video4linux2 @ 0x97f2540] Could not find codec parameters (Invalid Codec type -1) This is happening on the git version 263f57c6d76b27e1895c4001f815824a463b1592 (which is of 6-6-2011) This doesn't happen on git version d84f191d37b8123203dff250531a4b4c0d5f587a (which is of 26-4-2011) I did find a commit which I think must be related (b3da2692115ea17190544883d15efa36219da99e) ... something about a video standard option, but my C knowledge is non existent. I'm aiming to keep up with the latest ffmpeg, so I'd rather not revert back to before that commit. My system is running on openwrt, kernel 2.6.32.27, which might be the problem. Am I missing something in the v4l2 driver maybe ? From belcampo at zonnet.nl Tue Jun 7 11:56:32 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 07 Jun 2011 11:56:32 +0200 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEDF059.9070308@gmail.com> References: <4DEDF059.9070308@gmail.com> Message-ID: <4DEDF5D0.2020603@zonnet.nl> On 06/07/11 11:33, Sw at g wrote: > Hi all, > > I am recording my Logitech Ultra Vison using ffmpeg with the following > command, > > "ffmpeg -f video4linux2 -i /dev/video0 -s 640x480 -vcodec mpeg4 -sameq > cam_`date +%F_%T`.mp4" > > However the video quality isn't as it's best, if I am using mencoder > (which I understand isn't maintain any more) with x264 codec then the > picture is much clearer and sharp (same size than ffmpeg) > > If I am trying to record the webcam with ffmpeg and libx264 (with the > -vpre medium option) than the picture quality is the same as mpeg4 codec. > > So the question would be, how to have a sharper and clearer image the > same as using mencoder (see below for the mencoder command line for > reference) > > (mencoder tv:// -tv > driver=v4l2:width=800:height=600:fps=15:device=/dev/video0 -ovc x264 > -nosound -o cam_`date +%F_%T`.avi) To be able to say something meaningful, you should inspect your mencoder produced file with mediainfo. With mediainfo -f mencoder-produced.avi you get info like: Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=4 / psy_rd=0.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=0 / threads=3 / nr=0 / decimate=1 / mbaff=0 / bframes=0 / keyint=250 / keyint_min=25 / scenecut=40(pre) / rc=abr / bitrate=1672 / ratetol=2.4 / qcomp=0.50 / qpmin=22 / qpmax=27 / qpstep=3 / ip_ratio=1.25 / aq=1:1.00 Then you know the default settings of mencoder, which can be replicated in ffmpeg. mencoder and ffmpeg use the same libx264 so if the settings are equal, the results will be equal. > > Also, I would very much like to be able to record the video with the > time on the bottom corner it, is there such a command? > > Should you require any further details, please do not hesitate to > contact me, > > Looking forward for your replies, > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From ubitux at gmail.com Tue Jun 7 12:05:39 2011 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Tue, 7 Jun 2011 12:05:39 +0200 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEDF059.9070308@gmail.com> References: <4DEDF059.9070308@gmail.com> Message-ID: <20110607100539.GC2231@leki> On Tue, Jun 07, 2011 at 10:33:13AM +0100, Sw at g wrote: > Hi all, > > I am recording my Logitech Ultra Vison using ffmpeg with the > following command, > > "ffmpeg -f video4linux2 -i /dev/video0 -s 640x480 -vcodec mpeg4 > -sameq cam_`date +%F_%T`.mp4" > > However the video quality isn't as it's best, if I am using mencoder > (which I understand isn't maintain any more) with x264 codec then > the picture is much clearer and sharp (same size than ffmpeg) > > If I am trying to record the webcam with ffmpeg and libx264 (with > the -vpre medium option) than the picture quality is the same as > mpeg4 codec. > You have to find a better profile I guess ; the other reply in the same thread is more explicit. > So the question would be, how to have a sharper and clearer image > the same as using mencoder (see below for the mencoder command line > for reference) > > (mencoder tv:// -tv > driver=v4l2:width=800:height=600:fps=15:device=/dev/video0 -ovc > x264 -nosound -o cam_`date +%F_%T`.avi) > > Also, I would very much like to be able to record the video with the > time on the bottom corner it, is there such a command? > Check for -vf drawtext. -- 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 sweetthdevil at gmail.com Tue Jun 7 12:16:36 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 11:16:36 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEDF059.9070308@gmail.com> References: <4DEDF059.9070308@gmail.com> Message-ID: <4DEDFA84.8090805@gmail.com> Many thanks for the reply, please the the ouput for both mencoder.avi and ffpmeg.avi mediainfo: http://pastebin.com/K6pwUnSz I also run into an error while running with the libx264 codec: any idea on the error? FFmpeg version git-N-28713-g65daa94, Copyright (c) 2000-2011 the FFmpeg developers built on May 7 2011 11:46:29 with gcc 4.6.0 20110429 (prerelease) configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug libavutil 50. 40. 0 / 50. 40. 0 libavcodec 52.116. 0 / 52.116. 0 libavformat 52.104. 0 / 52.104. 0 libavdevice 52. 4. 0 / 52. 4. 0 libavfilter 1. 76. 0 / 1. 76. 0 libswscale 0. 13. 0 / 0. 13. 0 libpostproc 51. 2. 0 / 51. 2. 0 [video4linux2 @ 0x9e58600] Cannot find a proper format for codec_id 0, pix_fmt -1. /dev/video0: Input/output error I will be looking into the -vf drawtext command now, many thanks for your quick replies and assistance in the matter, On 06/07/2011 11:05 AM, Cl?ment Boesch wrote: > On Tue, Jun 07, 2011 at 10:33:13AM +0100, Sw at g wrote: >> Hi all, >> >> I am recording my Logitech Ultra Vison using ffmpeg with the >> following command, >> >> "ffmpeg -f video4linux2 -i /dev/video0 -s 640x480 -vcodec mpeg4 >> -sameq cam_`date +%F_%T`.mp4" >> >> However the video quality isn't as it's best, if I am using mencoder >> (which I understand isn't maintain any more) with x264 codec then >> the picture is much clearer and sharp (same size than ffmpeg) >> >> If I am trying to record the webcam with ffmpeg and libx264 (with >> the -vpre medium option) than the picture quality is the same as >> mpeg4 codec. >> > You have to find a better profile I guess ; the other reply in the same > thread is more explicit. > >> So the question would be, how to have a sharper and clearer image >> the same as using mencoder (see below for the mencoder command line >> for reference) >> >> (mencoder tv:// -tv >> driver=v4l2:width=800:height=600:fps=15:device=/dev/video0 -ovc >> x264 -nosound -o cam_`date +%F_%T`.avi) >> >> Also, I would very much like to be able to record the video with the >> time on the bottom corner it, is there such a command? >> > Check for -vf drawtext. > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user On 06/07/2011 10:33 AM, Sw at g wrote: > Hi all, > > I am recording my Logitech Ultra Vison using ffmpeg with the following > command, > > "ffmpeg -f video4linux2 -i /dev/video0 -s 640x480 -vcodec mpeg4 -sameq > cam_`date +%F_%T`.mp4" > > However the video quality isn't as it's best, if I am using mencoder > (which I understand isn't maintain any more) with x264 codec then the > picture is much clearer and sharp (same size than ffmpeg) > > If I am trying to record the webcam with ffmpeg and libx264 (with the > -vpre medium option) than the picture quality is the same as mpeg4 codec. > > So the question would be, how to have a sharper and clearer image the > same as using mencoder (see below for the mencoder command line for > reference) > > (mencoder tv:// -tv > driver=v4l2:width=800:height=600:fps=15:device=/dev/video0 -ovc x264 > -nosound -o cam_`date +%F_%T`.avi) > > Also, I would very much like to be able to record the video with the > time on the bottom corner it, is there such a command? > > Should you require any further details, please do not hesitate to > contact me, > > Looking forward for your replies, From lists at glidos.net Tue Jun 7 12:19:57 2011 From: lists at glidos.net (Paul Gardiner) Date: Tue, 07 Jun 2011 11:19:57 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEDF059.9070308@gmail.com> References: <4DEDF059.9070308@gmail.com> Message-ID: <4DEDFB4D.7080705@glidos.net> On 07/06/2011 10:33, Sw at g wrote: > Hi all, > > I am recording my Logitech Ultra Vison using ffmpeg with the following > command, > > "ffmpeg -f video4linux2 -i /dev/video0 -s 640x480 -vcodec mpeg4 -sameq > cam_`date +%F_%T`.mp4" > > However the video quality isn't as it's best, if I am using mencoder > (which I understand isn't maintain any more) with x264 codec then the > picture is much clearer and sharp (same size than ffmpeg) > > If I am trying to record the webcam with ffmpeg and libx264 (with the > -vpre medium option) than the picture quality is the same as mpeg4 codec. I've recently been using ffmpeg with libx264 to transcode from some BBC HD recordings and the results were indistinguishable from the original. I was doing it in a way that avoided any scaling, so I wonder if the loss of sharpness is because of the scaling stage. Paul. From peter at gpscam.nl Tue Jun 7 13:24:28 2011 From: peter at gpscam.nl (Peter Hassing) Date: Tue, 7 Jun 2011 11:24:28 +0000 (UTC) Subject: [FFmpeg-user] Unknown standard 'NTSC' in v4l2 In-Reply-To: Message-ID: <1879029f-3410-469d-8427-3012c4b06528@mackie.local> Hi all, I'm having some trouble with video4linux2 The error I'm getting is : [video4linux2 @ 0x97f2540] Unknown standard 'NTSC' [video4linux2 @ 0x97f2540] Could not find codec parameters (Invalid Codec type -1) This is happening on the git version 263f57c6d76b27e1895c4001f815824a463b1592 (which is of 6-6-2011) This doesn't happen on git version d84f191d37b8123203dff250531a4b4c0d5f587a (which is of 26-4-2011) I did find a commit which I think must be related (b3da2692115ea17190544883d15efa36219da99e) ... something about a video standard option, but my C knowledge is non existent. I'm aiming to keep up with the latest ffmpeg, so I'd rather not revert back to before that commit. My system is running on openwrt, kernel 2.6.32.27, which might be the problem. Am I missing something in the v4l2 driver maybe ? _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user --->update seems there was already a fix in git (af344a69f3a8240b508183586617fba6af698bb2) but it isn't in the definitive v4l2.c ...... strange, maybe a later commit changes it back ?? will investigate and report here... From sweetthdevil at gmail.com Tue Jun 7 13:38:46 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 12:38:46 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEDFB4D.7080705@glidos.net> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> Message-ID: <4DEE0DC6.9010900@gmail.com> Hi all, with the addition of "-b 64m" option using mpeg4 codec the video quality is great, similar to mencoder! Now I am still searching on how to add the current time on the video, can't find any command yet with -vf drawtext, and I still have the same issue as previously reported some times to times. any help will be appreciated, Regards, On 06/07/2011 11:19 AM, Paul Gardiner wrote: > On 07/06/2011 10:33, Sw at g wrote: >> Hi all, >> >> I am recording my Logitech Ultra Vison using ffmpeg with the following >> command, >> >> "ffmpeg -f video4linux2 -i /dev/video0 -s 640x480 -vcodec mpeg4 -sameq >> cam_`date +%F_%T`.mp4" >> >> However the video quality isn't as it's best, if I am using mencoder >> (which I understand isn't maintain any more) with x264 codec then the >> picture is much clearer and sharp (same size than ffmpeg) >> >> If I am trying to record the webcam with ffmpeg and libx264 (with the >> -vpre medium option) than the picture quality is the same as mpeg4 >> codec. > > I've recently been using ffmpeg with libx264 to transcode from some > BBC HD recordings and the results were indistinguishable from the > original. I was doing it in a way that avoided any scaling, so I > wonder if the loss of sharpness is because of the scaling stage. > > Paul. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From stefano.sabatini-lala at poste.it Tue Jun 7 14:14:45 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Tue, 7 Jun 2011 14:14:45 +0200 Subject: [FFmpeg-user] Unknown standard 'NTSC' in v4l2 In-Reply-To: References: <6f047e2f-996b-48c1-8f7a-3db7a4060ed5@mackie.local> Message-ID: <20110607121445.GA18294@geppetto> On date Tuesday 2011-06-07 09:49:40 +0000, Peter Hassing encoded: > Hi all, > > I'm having some trouble with video4linux2 > > The error I'm getting is : > > [video4linux2 @ 0x97f2540] Unknown standard 'NTSC' > [video4linux2 @ 0x97f2540] Could not find codec parameters (Invalid Codec type -1) > > This is happening on the git version 263f57c6d76b27e1895c4001f815824a463b1592 (which is of 6-6-2011) > This doesn't happen on git version d84f191d37b8123203dff250531a4b4c0d5f587a (which is of 26-4-2011) > > I did find a commit which I think must be related (b3da2692115ea17190544883d15efa36219da99e) ... something about a video standard option, but my C knowledge is non existent. > > I'm aiming to keep up with the latest ffmpeg, so I'd rather not revert back to before that commit. > My system is running on openwrt, kernel 2.6.32.27, which might be the problem. > > Am I missing something in the v4l2 driver maybe ? It was a bug (re-)introduced this night, should be fixed now. From ubitux at gmail.com Tue Jun 7 14:39:10 2011 From: ubitux at gmail.com (=?utf-8?B?Q2zDqW1lbnQgQsWTc2No?=) Date: Tue, 7 Jun 2011 14:39:10 +0200 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE0DC6.9010900@gmail.com> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> Message-ID: <20110607123910.GD2231@leki> On Tue, Jun 07, 2011 at 12:38:46PM +0100, Sw at g wrote: > Hi all, > > with the addition of "-b 64m" option using mpeg4 codec the video > quality is great, similar to mencoder! > H.264 is far superiour to mpeg4, you should try to find a better profile/setting. > Now I am still searching on how to add the current time on the > video, can't find any command yet Something like: -vf drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf:text='TS\: %H\:%M\:%S':fontsize=48:fontcolor=white" maybe? There are some examples in the documentation. > with -vf drawtext, and I still have the same issue as previously > reported some times to times. > What are you talking about? -- Cl?ment B. From sweetthdevil at gmail.com Tue Jun 7 14:43:31 2011 From: sweetthdevil at gmail.com (Sweetth Devil) Date: Tue, 7 Jun 2011 13:43:31 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <20110607123910.GD2231@leki> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> Message-ID: Well I tried with the same nitrate info using 264 and that didn't change the quality. And I have tried the drawtext command but it returned an invalid argument. Not in front of the PC at the moment so cannot give the exact error. Fyi I'm running arch Linux (up to date) Regards, On Jun 7, 2011 1:39 PM, "Cl?ment B?sch" wrote: > On Tue, Jun 07, 2011 at 12:38:46PM +0100, Sw at g wrote: >> Hi all, >> >> with the addition of "-b 64m" option using mpeg4 codec the video >> quality is great, similar to mencoder! >> > > H.264 is far superiour to mpeg4, you should try to find a better > profile/setting. > >> Now I am still searching on how to add the current time on the >> video, can't find any command yet > > Something like: > > -vf > drawtext="fontfile=/usr/share/fonts/truetype/freefont/FreeSerif.ttf:text='TS\: > %H\:%M\:%S':fontsize=48:fontcolor=white" > > maybe? > > There are some examples in the documentation. > >> with -vf drawtext, and I still have the same issue as previously >> reported some times to times. >> > > What are you talking about? > > -- > Cl?ment B. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From lists at glidos.net Tue Jun 7 14:45:33 2011 From: lists at glidos.net (Paul Gardiner) Date: Tue, 07 Jun 2011 13:45:33 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <20110607123910.GD2231@leki> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> Message-ID: <4DEE1D6D.7@glidos.net> On 07/06/2011 13:39, Cl?ment B?sch wrote: > On Tue, Jun 07, 2011 at 12:38:46PM +0100, Sw at g wrote: >> Hi all, >> >> with the addition of "-b 64m" option using mpeg4 codec the video >> quality is great, similar to mencoder! >> > > H.264 is far superiour to mpeg4, you should try to find a better > profile/setting. And control the quality not the bit rate. Replace "-b 64m" by "-crf 18" although 18 is probably overkill. 20-22 may be fine. Paul. From sweetthdevil at gmail.com Tue Jun 7 14:48:55 2011 From: sweetthdevil at gmail.com (Sweetth Devil) Date: Tue, 7 Jun 2011 13:48:55 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE1D6D.7@glidos.net> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> <4DEE1D6D.7@glidos.net> Message-ID: Cheers for the quick reply, will give it a go later. Also I think the ffmpeg package in arch might carry a bug related to drawtext or is out of date. Again will check it when I'm back. Regards On Jun 7, 2011 1:45 PM, "Paul Gardiner" wrote: > On 07/06/2011 13:39, Cl?ment B?sch wrote: >> On Tue, Jun 07, 2011 at 12:38:46PM +0100, Sw at g wrote: >>> Hi all, >>> >>> with the addition of "-b 64m" option using mpeg4 codec the video >>> quality is great, similar to mencoder! >>> >> >> H.264 is far superiour to mpeg4, you should try to find a better >> profile/setting. > > And control the quality not the bit rate. Replace "-b 64m" by "-crf 18" > although 18 is probably overkill. 20-22 may be fine. > > Paul. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From sweetthdevil at gmail.com Tue Jun 7 15:49:04 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 14:49:04 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE1D6D.7@glidos.net> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> <4DEE1D6D.7@glidos.net> Message-ID: <4DEE2C50.9070802@gmail.com> Right, So I am back in front of the PC and the error from -vf drawtext is the the following: Incompatible pixel format 'yuyv422' for codec 'mpeg4', auto-selecting format 'yuv420p' ffmpeg: missing argument for option 'vf' FFmpeg version git-N-28713-g65daa94, Copyright (c) 2000-2011 the FFmpeg developers And I tried the -crf 18 or 20 or 22 and that didn't change the quality. But it's weird the quality with the -b 64m is back to bad, wondering if the amount of light will affect the quality (as the weather is turning dark now). Regards, On 06/07/2011 01:45 PM, Paul Gardiner wrote: > On 07/06/2011 13:39, Cl?ment B?sch wrote: >> On Tue, Jun 07, 2011 at 12:38:46PM +0100, Sw at g wrote: >>> Hi all, >>> >>> with the addition of "-b 64m" option using mpeg4 codec the video >>> quality is great, similar to mencoder! >>> >> >> H.264 is far superiour to mpeg4, you should try to find a better >> profile/setting. > > And control the quality not the bit rate. Replace "-b 64m" by "-crf 18" > although 18 is probably overkill. 20-22 may be fine. > > Paul. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From sweetthdevil at gmail.com Tue Jun 7 16:27:42 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 15:27:42 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE1D6D.7@glidos.net> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> <4DEE1D6D.7@glidos.net> Message-ID: <4DEE355E.5050902@gmail.com> Right, So I am still trying to get the best possible video quality, and looking at the mencoder command the x264 profile is set to high - but trying to use the -vpre setting doesn't work since it refer to x264 --preset, I was trying to get the ffmpeg command for x264 --profile without success. Presets: --profile Force the limits of an H.264 profile Overrides all settings. - baseline,main,high,high10 --preset Use a preset to select encoding settings [medium] Overridden by user settings. - ultrafast,superfast,veryfast,faster,fast - medium,slow,slower,veryslow,placebo So any idea what is the command? On 06/07/2011 01:45 PM, Paul Gardiner wrote: > On 07/06/2011 13:39, Cl?ment B?sch wrote: >> On Tue, Jun 07, 2011 at 12:38:46PM +0100, Sw at g wrote: >>> Hi all, >>> >>> with the addition of "-b 64m" option using mpeg4 codec the video >>> quality is great, similar to mencoder! >>> >> >> H.264 is far superiour to mpeg4, you should try to find a better >> profile/setting. > > And control the quality not the bit rate. Replace "-b 64m" by "-crf 18" > although 18 is probably overkill. 20-22 may be fine. > > Paul. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From jshupert at pps-inc.com Tue Jun 7 16:44:07 2011 From: jshupert at pps-inc.com (Jim Shupert) Date: Tue, 07 Jun 2011 10:44:07 -0400 Subject: [FFmpeg-user] trying to convert raw yuv Message-ID: <4DEE3937.4020301@pps-inc.com> Friends, I have some video that i captured via a BlackMagic decklink card the files are : raw yuv video & 2 wav files i am unsuccessful it fails with : jimbo.yuv: could not find codec parameters here is my command: D:\0>c:\ffmbc\ffmbc -i jimbo.yuv -f yuv420p -acodec -i audio1.wav -i audio2.wav libfaac -aq 100 -vcodec libx264 -b 900k -s 720x486 -r 29.97 -preset slow -crf 22 -threads 0 muxed.mp4 FFmpeg version FFmbc-0.5, Copyright (c) 2000-2010 the FFmpeg developers built on Nov 22 2010 01:04:07 with gcc 4.4.2 configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable-libopencore_amrnb -- enable-libvpx --disable-decoder=libvpx --arch=x86 --enable-runtime-cpudetect --enable-libxvid --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisynth --cross-pref ix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack libavutil 50.31. 0 / 50.31. 0 libavcore 0. 9. 0 / 0. 9. 0 libavcodec 52.91. 1 / 52.91. 1 libavformat 52.78. 5 / 52.78. 5 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.47. 1 / 1.47. 1 libswscale 0.12. 0 / 0.12. 0 [IMGUTILS @ 002130c4] Picture size 0x0 is invalid [rawvideo @ 01b7d4e0] Could not find codec parameters (Video: rawvideo, yuv420p) [rawvideo @ 01b7d4e0] Estimating duration from bitrate, this may be inaccurate jimbo.yuv: could not find codec parameters ( i have tried ffmpeg & ffmbc ) thanks much j From lists at glidos.net Tue Jun 7 16:44:55 2011 From: lists at glidos.net (Paul Gardiner) Date: Tue, 07 Jun 2011 15:44:55 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE355E.5050902@gmail.com> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> Message-ID: <4DEE3967.3090209@glidos.net> On 07/06/2011 15:27, Sw at g wrote: > Right, > > So I am still trying to get the best possible video quality, and looking > at the mencoder command the x264 profile is set to high - but trying to > use the -vpre setting doesn't work since it refer to x264 --preset, I > was trying to get the ffmpeg command for x264 --profile without success. > > Presets: > > --profile Force the limits of an H.264 profile > Overrides all settings. > - baseline,main,high,high10 > --preset Use a preset to select encoding settings [medium] > Overridden by user settings. > - ultrafast,superfast,veryfast,faster,fast > - medium,slow,slower,veryslow,placebo > > > So any idea what is the command? -crf is what you want if you care more about quality than file size. If you saw no difference in the range 18-22 then perhaps you're losing quality elsewhere before you get to ffmpeg. Then selecting a preset via --preset will just alter how hard libx264 tries to compress, so it will affect file size while having very little affect on quality. Paul. From sweetthdevil at gmail.com Tue Jun 7 16:50:16 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 15:50:16 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE3967.3090209@glidos.net> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> Message-ID: <4DEE3AA8.7050401@gmail.com> Many thanks for your reply and assistance, I don't really care about file size but quality, the -crf doesn't change anything and doesn't work without the -vpre option. On 06/07/2011 03:44 PM, Paul Gardiner wrote: > On 07/06/2011 15:27, Sw at g wrote: >> Right, >> >> So I am still trying to get the best possible video quality, and looking >> at the mencoder command the x264 profile is set to high - but trying to >> use the -vpre setting doesn't work since it refer to x264 --preset, I >> was trying to get the ffmpeg command for x264 --profile without success. >> >> Presets: >> >> --profile Force the limits of an H.264 profile >> Overrides all settings. >> - baseline,main,high,high10 >> --preset Use a preset to select encoding settings [medium] >> Overridden by user settings. >> - ultrafast,superfast,veryfast,faster,fast >> - medium,slow,slower,veryslow,placebo >> >> >> So any idea what is the command? > > -crf is what you want if you care more about quality than file size. > If you saw no difference in the range 18-22 then perhaps you're losing > quality elsewhere before you get to ffmpeg. Then selecting a preset > via --preset will just alter how hard libx264 tries to compress, so > it will affect file size while having very little affect on quality. > > Paul. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From stefano.sabatini-lala at poste.it Tue Jun 7 16:47:57 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Tue, 7 Jun 2011 16:47:57 +0200 Subject: [FFmpeg-user] trying to convert raw yuv In-Reply-To: <4DEE3937.4020301@pps-inc.com> References: <4DEE3937.4020301@pps-inc.com> Message-ID: <20110607144757.GA20773@geppetto> On date Tuesday 2011-06-07 10:44:07 -0400, Jim Shupert encoded: > Friends, > > I have some video that i captured via a BlackMagic decklink card > the files are : raw yuv video & 2 wav files > > i am unsuccessful it fails with : jimbo.yuv: could not find codec parameters > > here is my command: > > D:\0>c:\ffmbc\ffmbc -i jimbo.yuv -f yuv420p -acodec -i audio1.wav -i > audio2.wav libfaac -aq 100 -vcodec libx264 -b 900k -s 720x486 -r > 29.97 -preset slow -crf 22 -threads 0 muxed.mp4 > FFmpeg version FFmbc-0.5, Copyright (c) 2000-2010 the FFmpeg developers > built on Nov 22 2010 01:04:07 with gcc 4.4.2 > configuration: --enable-gpl --enable-version3 --enable-libgsm > --enable-pthreads --enable-libvorbis --enable-libtheora > --enable-libspeex --enable-libmp3lame --enable-libopenjpeg > --enable-libschroedinger --enable-libopencore_amrwb > --enable-libopencore_amrnb -- > enable-libvpx --disable-decoder=libvpx --arch=x86 > --enable-runtime-cpudetect --enable-libxvid --enable-libx264 > --extra-libs='-lx264 -lpthread' --enable-librtmp > --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' > --target-os=mingw32 --enable-avisynth --cross-pref > ix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack > libavutil 50.31. 0 / 50.31. 0 > libavcore 0. 9. 0 / 0. 9. 0 > libavcodec 52.91. 1 / 52.91. 1 > libavformat 52.78. 5 / 52.78. 5 > libavdevice 52. 2. 2 / 52. 2. 2 > libavfilter 1.47. 1 / 1.47. 1 > libswscale 0.12. 0 / 0.12. 0 > [IMGUTILS @ 002130c4] Picture size 0x0 is invalid > [rawvideo @ 01b7d4e0] Could not find codec parameters (Video: > rawvideo, yuv420p) > [rawvideo @ 01b7d4e0] Estimating duration from bitrate, this may be > inaccurate > jimbo.yuv: could not find codec parameters > > ( i have tried ffmpeg & ffmbc ) You need to specify input size with -s WxH. -- ffmpeg-user random tip #2 The -y option will force the overwrite of the output, without to prompt you for your confirmation. Example: ffmpeg -i movie.avi -y movie.mp4 From jshupert at pps-inc.com Tue Jun 7 16:52:32 2011 From: jshupert at pps-inc.com (Jim Shupert) Date: Tue, 07 Jun 2011 10:52:32 -0400 Subject: [FFmpeg-user] trying to convert raw yuv In-Reply-To: <4DEE3937.4020301@pps-inc.com> References: <4DEE3937.4020301@pps-inc.com> Message-ID: <4DEE3B30.3070606@pps-inc.com> I have also tried adding ffmpeg -s 720x480 -pix_fmt yuv422p16le -r 29.97 in attempt to 'tell' ffmpeg what the raw vid is I am thinking that since it is raw ( no header ) i have to 'tell' it many things about the video. From lists at glidos.net Tue Jun 7 16:57:54 2011 From: lists at glidos.net (Paul Gardiner) Date: Tue, 07 Jun 2011 15:57:54 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE3AA8.7050401@gmail.com> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> Message-ID: <4DEE3C72.6030302@glidos.net> On 07/06/2011 15:50, Sw at g wrote: > Many thanks for your reply and assistance, > > I don't really care about file size but quality, the -crf doesn't change > anything and doesn't work without the -vpre option. No, it doesn't work without -preset. I don't know why. I had the same problem. I used -crf and I could see from the output on stdout/stderr that it had been ignored. I asked on here. Someone said you have to specify a preset using -preset (not -vpre), then -crf will work. I tried it. It did. Paul. From jshupert at pps-inc.com Tue Jun 7 17:01:08 2011 From: jshupert at pps-inc.com (Jim Shupert) Date: Tue, 07 Jun 2011 11:01:08 -0400 Subject: [FFmpeg-user] trying to convert raw yuv In-Reply-To: <4DEE3B30.3070606@pps-inc.com> References: <4DEE3937.4020301@pps-inc.com> <4DEE3B30.3070606@pps-inc.com> Message-ID: <4DEE3D34.1010901@pps-inc.com> On 6/7/2011 10:52 AM, Jim Shupert wrote: > > I have also tried adding > ffmpeg -s 720x480 -pix_fmt yuv422p16le -r 29.97 > > in attempt to 'tell' ffmpeg what the raw vid is > I am thinking that since it is raw ( no header ) i have to 'tell' it > many things about the video. > I tried adding the input size & pixel format -- still no luck D:\0>c:\ffmbc\ffmbc -i jimbo.yuv -f yuv420p -s 720x480 -pix_fmt yuv422p16le -r 29.97 -acodec -i audio1.wav -i audio2.wav libfaac -aq 100 -vcodec libx264 -b 900k -r 29.97 -preset slow -crf 22 -threads 0 muxed.mp4 FFmpeg version FFmbc-0.5, Copyright (c) 2000-2010 the FFmpeg developers built on Nov 22 2010 01:04:07 with gcc 4.4.2 configuration: --enable-gpl --enable-version3 --enable-libgsm --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libopencore_amrwb --enable-libopencore_amrnb -- enable-libvpx --disable-decoder=libvpx --arch=x86 --enable-runtime-cpudetect --enable-libxvid --enable-libx264 --extra-libs='-lx264 -lpthread' --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --target-os=mingw32 --enable-avisynth --cross-pref ix=i686-mingw32- --cc='ccache i686-mingw32-gcc' --enable-memalign-hack libavutil 50.31. 0 / 50.31. 0 libavcore 0. 9. 0 / 0. 9. 0 libavcodec 52.91. 1 / 52.91. 1 libavformat 52.78. 5 / 52.78. 5 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.47. 1 / 1.47. 1 libswscale 0.12. 0 / 0.12. 0 [IMGUTILS @ 002130c4] Picture size 0x0 is invalid [rawvideo @ 01b7d240] Could not find codec parameters (Video: rawvideo, yuv420p) [rawvideo @ 01b7d240] Estimating duration from bitrate, this may be inaccurate jimbo.yuv: could not find codec parameters From sweetthdevil at gmail.com Tue Jun 7 17:05:24 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 16:05:24 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE3C72.6030302@glidos.net> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> Message-ID: <4DEE3E34.7000207@gmail.com> Hi Paul, Well with the -preset this is the terminal output: Unrecognized option 'preset' Regards, On 06/07/2011 03:57 PM, Paul Gardiner wrote: > On 07/06/2011 15:50, Sw at g wrote: >> Many thanks for your reply and assistance, >> >> I don't really care about file size but quality, the -crf doesn't change >> anything and doesn't work without the -vpre option. > > No, it doesn't work without -preset. I don't know why. I had the same > problem. I used -crf and I could see from the output on stdout/stderr > that it had been ignored. I asked on here. Someone said you > have to specify a preset using -preset (not -vpre), then -crf > will work. I tried it. It did. > > Paul. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From lists at glidos.net Tue Jun 7 17:27:13 2011 From: lists at glidos.net (Paul Gardiner) Date: Tue, 07 Jun 2011 16:27:13 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE3E34.7000207@gmail.com> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> Message-ID: <4DEE4351.2070607@glidos.net> On 07/06/2011 16:05, Sw at g wrote: > Hi Paul, > > Well with the -preset this is the terminal output: > > Unrecognized option 'preset' > > Regards, Perhaps your ffmpeg is too old. I'm using one built on 28th May. P. From etienne.buira.lists at free.fr Tue Jun 7 17:28:21 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Tue, 7 Jun 2011 17:28:21 +0200 Subject: [FFmpeg-user] trying to convert raw yuv In-Reply-To: <4DEE3D34.1010901@pps-inc.com> References: <4DEE3937.4020301@pps-inc.com> <4DEE3B30.3070606@pps-inc.com> <4DEE3D34.1010901@pps-inc.com> Message-ID: <20110607152821.GT28878@epicure.lazyet.homelinux.net> On Tue, Jun 07, 2011 at 11:01:08AM -0400, Jim Shupert wrote: > > > On 6/7/2011 10:52 AM, Jim Shupert wrote: > > > > I have also tried adding > > ffmpeg -s 720x480 -pix_fmt yuv422p16le -r 29.97 > > > > in attempt to 'tell' ffmpeg what the raw vid is > > I am thinking that since it is raw ( no header ) i have to 'tell' it > > many things about the video. > > > > I tried adding the input size & pixel format -- still no luck > > D:\0>c:\ffmbc\ffmbc -i jimbo.yuv -f yuv420p -s 720x480 -pix_fmt > yuv422p16le -r 29.97 -acodec -i audio1.wav -i audio2.wav libfaac -aq 100 > -vcodec libx264 -b 900k -r 29.97 -preset slow -crf 22 -threads 0 muxed.mp4 Hi. Argument ordering matters a lot for ffmpeg. To tell what format an input is, you have to specify it *before* the matching -i. Also, your -acodec -i [...] -i [...] libfaac won't be liked by ffmpeg (and the two -i [...].wav might not do what you want). From lists at glidos.net Tue Jun 7 17:29:20 2011 From: lists at glidos.net (Paul Gardiner) Date: Tue, 07 Jun 2011 16:29:20 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE3E34.7000207@gmail.com> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> Message-ID: <4DEE43D0.1030904@glidos.net> On 07/06/2011 16:05, Sw at g wrote: > Hi Paul, > > Well with the -preset this is the terminal output: > > Unrecognized option 'preset' > > Regards, Oh just a thought. You may need to put "-preset medium" AFTER "-vcodec libx264". P. From sweetthdevil at gmail.com Tue Jun 7 17:35:53 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 16:35:53 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE43D0.1030904@glidos.net> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> <4DEE43D0.1030904@glidos.net> Message-ID: <4DEE4559.6030102@gmail.com> Hi again, Well with " " or ` ` it doesn't work "Unrecognized option 'preset medium'" only the -vpre works. ffmpeg -f video4linux2 -i /dev/video0 -pix_fmt yuv420p -s 800x600 -vcodec libx264 -vpre medium -crf 18 -r 15 -t 20 cam_`date +%F_%T`.mp4 And sorry to bring it up, but mencoder call the profile high and the quality is great, but I do not know the command to call it. Presets: --profile Force the limits of an H.264 profile Overrides all settings. - baseline,main,high,high10 --preset Use a preset to select encoding settings [medium] Overridden by user settings. - ultrafast,superfast,veryfast,faster,fast - medium,slow,slower,veryslow,placebo --tune Tune the settings for a particular type of source or situation Overridden by user settings. Multiple tunings are separated by commas. Only one psy tuning can be used at a time. - psy tunings: film,animation,grain, stillimage,psnr,ssim - other tunings: fastdecode,zerolatency On 06/07/2011 04:29 PM, Paul Gardiner wrote: > On 07/06/2011 16:05, Sw at g wrote: >> Hi Paul, >> >> Well with the -preset this is the terminal output: >> >> Unrecognized option 'preset' >> >> Regards, > > Oh just a thought. You may need to put "-preset medium" AFTER "-vcodec > libx264". > > P. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From lists at glidos.net Tue Jun 7 17:52:28 2011 From: lists at glidos.net (Paul Gardiner) Date: Tue, 07 Jun 2011 16:52:28 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE4559.6030102@gmail.com> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> <4DEE43D0.1030904@glidos.net> <4DEE4559.6030102@gmail.com> Message-ID: <4DEE493C.3080506@glidos.net> On 07/06/2011 16:35, Sw at g wrote: > Hi again, > > Well with " " or ` ` it doesn't work "Unrecognized option 'preset > medium'" only the -vpre works. -vpre is a completely different thing. You definitely need -preset. If that's not accepted, then it has to be that you have a version of ffmpeg that is too old. -vpre is just a way to provoke long lists of ffmpeg paramaters stored in a preset file. It is -preset that communicates to libx264. There's never been a time when -vpre did what -preset does now, so it will not help to try using it. P. From sweetthdevil at gmail.com Tue Jun 7 17:56:20 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 16:56:20 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE493C.3080506@glidos.net> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> <4DEE43D0.1030904@glidos.net> <4DEE4559.6030102@gmail.com> <4DEE493C.3080506@glidos.net> Message-ID: <4DEE4A24.5070402@gmail.com> Yes that what I am assuming a On 06/07/2011 04:52 PM, Paul Gardiner wrote: > On 07/06/2011 16:35, Sw at g wrote: >> Hi again, >> >> Well with " " or ` ` it doesn't work "Unrecognized option 'preset >> medium'" only the -vpre works. > > -vpre is a completely different thing. You definitely need -preset. If > that's not accepted, then it has to be that you have a version of > ffmpeg that is too old. > > -vpre is just a way to provoke long lists of ffmpeg paramaters stored > in a preset file. It is -preset that communicates to libx264. There's > never been a time when -vpre did what -preset does now, so it will > not help to try using it. > > P. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From myemaillist at gmail.com Tue Jun 7 18:12:45 2011 From: myemaillist at gmail.com (M el) Date: Tue, 7 Jun 2011 12:12:45 -0400 Subject: [FFmpeg-user] 1) Windows Cmd Line to convert to Mpeg-2 (ts) - not Mpeg-2 (ps)? 2) Please correct errors Message-ID: 1 - Using a Windows PC (xp pro) what is the command line for converting Video1.avs to Video1.mpg ... where Video1.mpg will be a Mpeg-2 (ts) format? 2 - And what is wrong with the command line below that converts to Mpeg-2 (ps) ?? c:\utilities\ffmpeg\ffmpeg -i video1.avi -vcodec mpeg2video -b 400k -s 620x480 -aspect 4:3 -acodec mp2 -ab 128k -ar 22050 video1.mpg I get two error messages... a - Incompatible pixel format 'bgra' for codec 'mpeg2video', auto-selecting format ' yuv420p' b - [mpeg @ 01EF5E20] VBV buffer size not set, muxing may fail How can I correct the command line to fix these? From pgoldweic at northwestern.edu Tue Jun 7 18:52:51 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Tue, 7 Jun 2011 09:52:51 -0700 (PDT) Subject: [FFmpeg-user] need help with 'drawtext' usage Message-ID: <1307465571825-3580172.post@n4.nabble.com> Hi, I'm a newbie to ffmpeg and I would like to draw a title on top of a video clip. I've installed an ffmpeg executable for Windows (just downloaded), compiled with the following options: --enable-gpl --enable-version3 --enable-memalign-hack --enable-runtime-cpudetect --enable-avisynth --enablebzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-armwb --enable-libfreetype -- enable-libgsm -- enable-libmp3lame --enable-libopenjpeg --enablelibrtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs -- enable-libxvid -- enable-zlib --pkg-config=pkg-config When I run the following command, I get no text whatsoever on my clip. Any suggestions on what could be wrong? ffmpeg -i mymovie.mov -vcodec copy -acodec copy -vf "drawtext=fontfile=c:\Windows\Fonts\arial.ttf:text='test'" mytitledmovie.mov Thanks in advance for any suggestions. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/need-help-with-drawtext-usage-tp3580172p3580172.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From nasy.un at gmail.com Tue Jun 7 19:16:01 2011 From: nasy.un at gmail.com (nasy .) Date: Tue, 7 Jun 2011 22:46:01 +0530 Subject: [FFmpeg-user] Android video using ffmpeg Message-ID: I'm creating ogv video for android using ffmpeg -i video.flv -ac 2 -vcodec libtheora -f ogg -qmax 8 -y video.ogv out put of ffmpeg -i video.ogv is Input #0, ogg, from '213893.ogv': Duration: 00:00:05.61, start: 0.000000, bitrate: 2907 kb/s Stream #0.0: Video: theora, yuv420p, 720x405 [PAR 1:1 DAR 16:9], 83.33 tbr, 1k tbn, 1k tbc Stream #0.1: Audio: flac, 22050 Hz, 2 channels, s16 Metadata: DURATION : 6 CREATIONDATE : Wed May 11 11:11:08 ENCODER : Lavf52.93.0 It's not playing in android.. Can any one help me to know why it's not playing in android ? Nasy From sweetthdevil at gmail.com Tue Jun 7 19:18:50 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 18:18:50 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE493C.3080506@glidos.net> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> <4DEE43D0.1030904@glidos.net> <4DEE4559.6030102@gmail.com> <4DEE493C.3080506@glidos.net> Message-ID: <4DEE5D7A.3000305@gmail.com> Right, so I have compile the latest git to try resolving the issue and now nothing work, for example the command I was using to record my desktop return the following errors: [sweetth at myhost test]$ ffmpeg -s 2720x1024 -r 25 -f x11grab -i :0.0 -acodec libmp3lame -ab 128k -vcodec mpeg4 -sameq -y -t 60 /media/z/.cam/screen/screen_`date +%F_%T`.avi ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) configuration: libavutil 51. 6. 1 / 51. 6. 1 libavcodec 53. 6. 1 / 53. 6. 1 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 14. 0 / 2. 14. 0 libswscale 0. 14. 1 / 0. 14. 1 Unknown input format: 'x11grab' and while trying to capture the webcam using the mpeg4 codec or the libx264 then the terminal just hang: [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -b 64m -crf 22 -s 640x480 -vcodec mpeg4 -t 20 cam_`date +%F_%T`.mp4 ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) configuration: libavutil 51. 6. 1 / 51. 6. 1 libavcodec 53. 6. 1 / 53. 6. 1 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 14. 0 / 2. 14. 0 libswscale 0. 14. 1 / 0. 14. 1 [video4linux2 @ 0xa75c360] The driver changed the time per frame from 1228/32 to 1/5 [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -pix_fmt yuv420p -s 800x600 -vcodec libx264 --preset medium -crf 18 -r 15 -t 20 cam_`date +%F_%T`.mp4 ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) configuration: libavutil 51. 6. 1 / 51. 6. 1 libavcodec 53. 6. 1 / 53. 6. 1 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 14. 0 / 2. 14. 0 libswscale 0. 14. 1 / 0. 14. 1 [video4linux2 @ 0x9287360] The driver changed the time per frame from 1228/32 to 1/5 Any help would be appreciated, On 06/07/2011 04:52 PM, Paul Gardiner wrote: > On 07/06/2011 16:35, Sw at g wrote: >> Hi again, >> >> Well with " " or ` ` it doesn't work "Unrecognized option 'preset >> medium'" only the -vpre works. > > -vpre is a completely different thing. You definitely need -preset. If > that's not accepted, then it has to be that you have a version of > ffmpeg that is too old. > > -vpre is just a way to provoke long lists of ffmpeg paramaters stored > in a preset file. It is -preset that communicates to libx264. There's > never been a time when -vpre did what -preset does now, so it will > not help to try using it. > > P. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From rajanaresh89 at gmail.com Tue Jun 7 19:21:00 2011 From: rajanaresh89 at gmail.com (raja naresh) Date: Tue, 7 Jun 2011 13:21:00 -0400 Subject: [FFmpeg-user] Filters Message-ID: Hello Everyone, I am a fairly new user of ffmpeg tool and I am stuck at one of my projects. I have a set of images and their associated timestamps and a video. I want to overlay these images on the video or vice versa according to their timestamps. For instance consider there are two images: Picture-1 and Picture-2, their timestamps are 3 and 9. I want Picture-1 over the video at 3 seconds and stay until 9th second of the video play. Picture-2 should be over the video after 9 seconds. I want to know if this is possible with the libavfilter. I have gone through the documentation vaguely and I think the Select option has something close to what I am talking. I would be obliged if someone could give directions in this regard. Thank you. Regards Raja Naresh From etienne.buira.lists at free.fr Tue Jun 7 19:29:47 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Tue, 7 Jun 2011 19:29:47 +0200 Subject: [FFmpeg-user] need help with 'drawtext' usage In-Reply-To: <1307465571825-3580172.post@n4.nabble.com> References: <1307465571825-3580172.post@n4.nabble.com> Message-ID: <20110607172947.GU28878@epicure.lazyet.homelinux.net> On Tue, Jun 07, 2011 at 09:52:51AM -0700, pgoldweic wrote: > Hi, > I'm a newbie to ffmpeg and I would like to draw a title on top of a video > clip. I've installed an ffmpeg executable for Windows (just downloaded), > compiled with the following options: > --enable-gpl --enable-version3 --enable-memalign-hack > --enable-runtime-cpudetect --enable-avisynth --enablebzlib --enable-frei0r > --enable-libopencore-amrnb --enable-libopencore-armwb --enable-libfreetype > -- enable-libgsm -- enable-libmp3lame --enable-libopenjpeg --enablelibrtmp > --enable-libschroedinger --enable-libspeex --enable-libtheora > --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs -- > enable-libxvid -- enable-zlib --pkg-config=pkg-config > > > When I run the following command, I get no text whatsoever on my clip. Any > suggestions on what could be wrong? > ffmpeg -i mymovie.mov -vcodec copy -acodec copy -vf > "drawtext=fontfile=c:\Windows\Fonts\arial.ttf:text='test'" mytitledmovie.mov With -vcodec copy, you ask for a copy, so it is normal that the video does not get modified. If you want to change the video, you have to reencode the video track. From lou at lrcd.com Tue Jun 7 19:35:26 2011 From: lou at lrcd.com (Lou) Date: Tue, 7 Jun 2011 09:35:26 -0800 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE5D7A.3000305@gmail.com> References: <4DEDF059.9070308@gmail.com> <4DEDFB4D.7080705@glidos.net> <4DEE0DC6.9010900@gmail.com> <20110607123910.GD2231@leki> <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> <4DEE43D0.1030904@glidos.net> <4DEE4559.6030102@gmail.com> <4DEE493C.3080506@glidos.net> <4DEE5D7A.3000305@gmail.com> Message-ID: <20110607093526.55e1b504@lrcd.com> On Tue, 07 Jun 2011 18:18:50 +0100 Sw at g wrote: > Right, > > so I have compile the latest git to try resolving the issue and now > nothing work, for example the command I was using to record my > desktop return the following errors: > > [sweetth at myhost test]$ ffmpeg -s 2720x1024 -r 25 -f x11grab -i :0.0 > -acodec libmp3lame -ab 128k -vcodec mpeg4 -sameq -y -t 60 > /media/z/.cam/screen/screen_`date +%F_%T`.avi > ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the > FFmpeg developers > built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) > configuration: > libavutil 51. 6. 1 / 51. 6. 1 > libavcodec 53. 6. 1 / 53. 6. 1 > libavformat 53. 2. 0 / 53. 2. 0 > libavdevice 53. 1. 1 / 53. 1. 1 > libavfilter 2. 14. 0 / 2. 14. 0 > libswscale 0. 14. 1 / 0. 14. 1 > Unknown input format: 'x11grab' Your ./configure is blank. You need --enable-x11grab. I think you mentioned you were using Arch Linux. FFmpeg from the repository is kept fairly up to date, and has --enable-x11grab, but if you need a newer version or want to customize it then see ffmpeg-git in AUR. > and while trying to capture the webcam using the mpeg4 codec or the > libx264 then the terminal just hang: > > [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -b 64m > -crf 22 -s 640x480 -vcodec mpeg4 -t 20 cam_`date +%F_%T`.mp4 > ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the > FFmpeg developers > built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) > configuration: > libavutil 51. 6. 1 / 51. 6. 1 > libavcodec 53. 6. 1 / 53. 6. 1 > libavformat 53. 2. 0 / 53. 2. 0 > libavdevice 53. 1. 1 / 53. 1. 1 > libavfilter 2. 14. 0 / 2. 14. 0 > libswscale 0. 14. 1 / 0. 14. 1 > [video4linux2 @ 0xa75c360] The driver changed the time per frame from > 1228/32 to 1/5 > > [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -pix_fmt > yuv420p -s 800x600 -vcodec libx264 --preset medium -crf 18 -r 15 -t > 20 cam_`date +%F_%T`.mp4 > ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the > FFmpeg developers > built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) > configuration: Once again, your configure is blank. Usage of libx264 requires --enable-gpl and --enable-libx264. Also, it's -preset, not --preset. > libavutil 51. 6. 1 / 51. 6. 1 > libavcodec 53. 6. 1 / 53. 6. 1 > libavformat 53. 2. 0 / 53. 2. 0 > libavdevice 53. 1. 1 / 53. 1. 1 > libavfilter 2. 14. 0 / 2. 14. 0 > libswscale 0. 14. 1 / 0. 14. 1 > [video4linux2 @ 0x9287360] The driver changed the time per frame from > 1228/32 to 1/5 > > > Any help would be appreciated, > > > > On 06/07/2011 04:52 PM, Paul Gardiner wrote: > > On 07/06/2011 16:35, Sw at g wrote: > >> Hi again, > >> > >> Well with " " or ` ` it doesn't work "Unrecognized option 'preset > >> medium'" only the -vpre works. > > > > -vpre is a completely different thing. You definitely need -preset. > > If that's not accepted, then it has to be that you have a version of > > ffmpeg that is too old. > > > > -vpre is just a way to provoke long lists of ffmpeg paramaters > > stored in a preset file. It is -preset that communicates to > > libx264. There's never been a time when -vpre did what -preset does > > now, so it will not help to try using it. > > > > P. From pgoldweic at northwestern.edu Tue Jun 7 19:38:48 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Tue, 7 Jun 2011 10:38:48 -0700 (PDT) Subject: [FFmpeg-user] need help with 'drawtext' usage In-Reply-To: <20110607172947.GU28878@epicure.lazyet.homelinux.net> References: <1307465571825-3580172.post@n4.nabble.com> <20110607172947.GU28878@epicure.lazyet.homelinux.net> Message-ID: <1307468328442-3580304.post@n4.nabble.com> Thanks Ettiene for your response. My intention was to use whatever settings were used when the video was created; is there an alternative way to achieve this? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/need-help-with-drawtext-usage-tp3580172p3580304.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From etienne.buira.lists at free.fr Tue Jun 7 19:39:22 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Tue, 7 Jun 2011 19:39:22 +0200 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE5D7A.3000305@gmail.com> References: <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> <4DEE43D0.1030904@glidos.net> <4DEE4559.6030102@gmail.com> <4DEE493C.3080506@glidos.net> <4DEE5D7A.3000305@gmail.com> Message-ID: <20110607173922.GV28878@epicure.lazyet.homelinux.net> On Tue, Jun 07, 2011 at 06:18:50PM +0100, Sw at g wrote: > Right, > > so I have compile the latest git to try resolving the issue and now > nothing work, for example the command I was using to record my desktop > return the following errors: > > [sweetth at myhost test]$ ffmpeg -s 2720x1024 -r 25 -f x11grab -i :0.0 > -acodec libmp3lame -ab 128k -vcodec mpeg4 -sameq -y -t 60 > /media/z/.cam/screen/screen_`date +%F_%T`.avi > ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg > developers > built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) > configuration: > libavutil 51. 6. 1 / 51. 6. 1 > libavcodec 53. 6. 1 / 53. 6. 1 > libavformat 53. 2. 0 / 53. 2. 0 > libavdevice 53. 1. 1 / 53. 1. 1 > libavfilter 2. 14. 0 / 2. 14. 0 > libswscale 0. 14. 1 / 0. 14. 1 > Unknown input format: 'x11grab' You need to give --enable-gpl --enable-x11grab to configure script. > and while trying to capture the webcam using the mpeg4 codec or the > libx264 then the terminal just hang: > > [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -b 64m -crf > 22 -s 640x480 -vcodec mpeg4 -t 20 cam_`date +%F_%T`.mp4 > ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg > developers > built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) > configuration: > libavutil 51. 6. 1 / 51. 6. 1 > libavcodec 53. 6. 1 / 53. 6. 1 > libavformat 53. 2. 0 / 53. 2. 0 > libavdevice 53. 1. 1 / 53. 1. 1 > libavfilter 2. 14. 0 / 2. 14. 0 > libswscale 0. 14. 1 / 0. 14. 1 > [video4linux2 @ 0xa75c360] The driver changed the time per frame from > 1228/32 to 1/5 For that I don't know. > [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -pix_fmt > yuv420p -s 800x600 -vcodec libx264 --preset medium -crf 18 -r 15 -t 20 > cam_`date +%F_%T`.mp4 > ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg > developers > built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) > configuration: > libavutil 51. 6. 1 / 51. 6. 1 > libavcodec 53. 6. 1 / 53. 6. 1 > libavformat 53. 2. 0 / 53. 2. 0 > libavdevice 53. 1. 1 / 53. 1. 1 > libavfilter 2. 14. 0 / 2. 14. 0 > libswscale 0. 14. 1 / 0. 14. 1 > [video4linux2 @ 0x9287360] The driver changed the time per frame from > 1228/32 to 1/5 > > > Any help would be appreciated, > > > > On 06/07/2011 04:52 PM, Paul Gardiner wrote: > > On 07/06/2011 16:35, Sw at g wrote: > >> Hi again, > >> > >> Well with " " or ` ` it doesn't work "Unrecognized option 'preset > >> medium'" only the -vpre works. > > > > -vpre is a completely different thing. You definitely need -preset. If > > that's not accepted, then it has to be that you have a version of > > ffmpeg that is too old. > > > > -vpre is just a way to provoke long lists of ffmpeg paramaters stored > > in a preset file. It is -preset that communicates to libx264. There's > > never been a time when -vpre did what -preset does now, so it will > > not help to try using it. vpre was just a way to do the same thing as preset does now. From etienne.buira.lists at free.fr Tue Jun 7 19:45:08 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Tue, 7 Jun 2011 19:45:08 +0200 Subject: [FFmpeg-user] need help with 'drawtext' usage In-Reply-To: <1307468328442-3580304.post@n4.nabble.com> References: <1307465571825-3580172.post@n4.nabble.com> <20110607172947.GU28878@epicure.lazyet.homelinux.net> <1307468328442-3580304.post@n4.nabble.com> Message-ID: <20110607174508.GW28878@epicure.lazyet.homelinux.net> On Tue, Jun 07, 2011 at 10:38:48AM -0700, pgoldweic wrote: > Thanks Ettiene for your response. My intention was to use whatever settings > were used when the video was created; is there an alternative way to achieve > this? You can use mediainfo to see/guess what settings have been used for the former encode, but I advise you to test following your own requirements. From sweetthdevil at gmail.com Tue Jun 7 19:50:04 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 18:50:04 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <20110607173922.GV28878@epicure.lazyet.homelinux.net> References: <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> <4DEE43D0.1030904@glidos.net> <4DEE4559.6030102@gmail.com> <4DEE493C.3080506@glidos.net> <4DEE5D7A.3000305@gmail.com> <20110607173922.GV28878@epicure.lazyet.homelinux.net> Message-ID: <4DEE64CC.5040101@gmail.com> Many thanks for your replies, I am now installing x264 and ffmpeg from aur, will let you know the outcome On 06/07/2011 06:39 PM, Etienne Buira wrote: > On Tue, Jun 07, 2011 at 06:18:50PM +0100, Sw at g wrote: >> Right, >> >> so I have compile the latest git to try resolving the issue and now >> nothing work, for example the command I was using to record my desktop >> return the following errors: >> >> [sweetth at myhost test]$ ffmpeg -s 2720x1024 -r 25 -f x11grab -i :0.0 >> -acodec libmp3lame -ab 128k -vcodec mpeg4 -sameq -y -t 60 >> /media/z/.cam/screen/screen_`date +%F_%T`.avi >> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg >> developers >> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) >> configuration: >> libavutil 51. 6. 1 / 51. 6. 1 >> libavcodec 53. 6. 1 / 53. 6. 1 >> libavformat 53. 2. 0 / 53. 2. 0 >> libavdevice 53. 1. 1 / 53. 1. 1 >> libavfilter 2. 14. 0 / 2. 14. 0 >> libswscale 0. 14. 1 / 0. 14. 1 >> Unknown input format: 'x11grab' > You need to give --enable-gpl --enable-x11grab to configure script. > >> and while trying to capture the webcam using the mpeg4 codec or the >> libx264 then the terminal just hang: >> >> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -b 64m -crf >> 22 -s 640x480 -vcodec mpeg4 -t 20 cam_`date +%F_%T`.mp4 >> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg >> developers >> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) >> configuration: >> libavutil 51. 6. 1 / 51. 6. 1 >> libavcodec 53. 6. 1 / 53. 6. 1 >> libavformat 53. 2. 0 / 53. 2. 0 >> libavdevice 53. 1. 1 / 53. 1. 1 >> libavfilter 2. 14. 0 / 2. 14. 0 >> libswscale 0. 14. 1 / 0. 14. 1 >> [video4linux2 @ 0xa75c360] The driver changed the time per frame from >> 1228/32 to 1/5 > For that I don't know. > >> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -pix_fmt >> yuv420p -s 800x600 -vcodec libx264 --preset medium -crf 18 -r 15 -t 20 >> cam_`date +%F_%T`.mp4 >> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg >> developers >> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) >> configuration: >> libavutil 51. 6. 1 / 51. 6. 1 >> libavcodec 53. 6. 1 / 53. 6. 1 >> libavformat 53. 2. 0 / 53. 2. 0 >> libavdevice 53. 1. 1 / 53. 1. 1 >> libavfilter 2. 14. 0 / 2. 14. 0 >> libswscale 0. 14. 1 / 0. 14. 1 >> [video4linux2 @ 0x9287360] The driver changed the time per frame from >> 1228/32 to 1/5 >> >> >> Any help would be appreciated, >> >> >> >> On 06/07/2011 04:52 PM, Paul Gardiner wrote: >>> On 07/06/2011 16:35, Sw at g wrote: >>>> Hi again, >>>> >>>> Well with " " or ` ` it doesn't work "Unrecognized option 'preset >>>> medium'" only the -vpre works. >>> -vpre is a completely different thing. You definitely need -preset. If >>> that's not accepted, then it has to be that you have a version of >>> ffmpeg that is too old. >>> >>> -vpre is just a way to provoke long lists of ffmpeg paramaters stored >>> in a preset file. It is -preset that communicates to libx264. There's >>> never been a time when -vpre did what -preset does now, so it will >>> not help to try using it. > vpre was just a way to do the same thing as preset does now. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From sweetthdevil at gmail.com Tue Jun 7 20:07:10 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 19:07:10 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE64CC.5040101@gmail.com> References: <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> <4DEE43D0.1030904@glidos.net> <4DEE4559.6030102@gmail.com> <4DEE493C.3080506@glidos.net> <4DEE5D7A.3000305@gmail.com> <20110607173922.GV28878@epicure.lazyet.homelinux.net> <4DEE64CC.5040101@gmail.com> Message-ID: <4DEE68CE.3000005@gmail.com> Right, me again, installing ffmpeg-git from aur didn't change any outcome, I am now recompiling the latest git with ./configure --enable-gpl --enable-libx264 --enable-x11g is there any other option I should add? regards, On 06/07/2011 06:50 PM, Sw at g wrote: > Many thanks for your replies, > > I am now installing x264 and ffmpeg from aur, will let you know the > outcome > > > On 06/07/2011 06:39 PM, Etienne Buira wrote: >> On Tue, Jun 07, 2011 at 06:18:50PM +0100, Sw at g wrote: >>> Right, >>> >>> so I have compile the latest git to try resolving the issue and now >>> nothing work, for example the command I was using to record my desktop >>> return the following errors: >>> >>> [sweetth at myhost test]$ ffmpeg -s 2720x1024 -r 25 -f x11grab -i :0.0 >>> -acodec libmp3lame -ab 128k -vcodec mpeg4 -sameq -y -t 60 >>> /media/z/.cam/screen/screen_`date +%F_%T`.avi >>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg >>> developers >>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) >>> configuration: >>> libavutil 51. 6. 1 / 51. 6. 1 >>> libavcodec 53. 6. 1 / 53. 6. 1 >>> libavformat 53. 2. 0 / 53. 2. 0 >>> libavdevice 53. 1. 1 / 53. 1. 1 >>> libavfilter 2. 14. 0 / 2. 14. 0 >>> libswscale 0. 14. 1 / 0. 14. 1 >>> Unknown input format: 'x11grab' >> You need to give --enable-gpl --enable-x11grab to configure script. >> >>> and while trying to capture the webcam using the mpeg4 codec or the >>> libx264 then the terminal just hang: >>> >>> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -b 64m >>> -crf >>> 22 -s 640x480 -vcodec mpeg4 -t 20 cam_`date +%F_%T`.mp4 >>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg >>> developers >>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) >>> configuration: >>> libavutil 51. 6. 1 / 51. 6. 1 >>> libavcodec 53. 6. 1 / 53. 6. 1 >>> libavformat 53. 2. 0 / 53. 2. 0 >>> libavdevice 53. 1. 1 / 53. 1. 1 >>> libavfilter 2. 14. 0 / 2. 14. 0 >>> libswscale 0. 14. 1 / 0. 14. 1 >>> [video4linux2 @ 0xa75c360] The driver changed the time per frame from >>> 1228/32 to 1/5 >> For that I don't know. >> >>> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -pix_fmt >>> yuv420p -s 800x600 -vcodec libx264 --preset medium -crf 18 -r 15 -t 20 >>> cam_`date +%F_%T`.mp4 >>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg >>> developers >>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 (prerelease) >>> configuration: >>> libavutil 51. 6. 1 / 51. 6. 1 >>> libavcodec 53. 6. 1 / 53. 6. 1 >>> libavformat 53. 2. 0 / 53. 2. 0 >>> libavdevice 53. 1. 1 / 53. 1. 1 >>> libavfilter 2. 14. 0 / 2. 14. 0 >>> libswscale 0. 14. 1 / 0. 14. 1 >>> [video4linux2 @ 0x9287360] The driver changed the time per frame from >>> 1228/32 to 1/5 >>> >>> >>> Any help would be appreciated, >>> >>> >>> >>> On 06/07/2011 04:52 PM, Paul Gardiner wrote: >>>> On 07/06/2011 16:35, Sw at g wrote: >>>>> Hi again, >>>>> >>>>> Well with " " or ` ` it doesn't work "Unrecognized option 'preset >>>>> medium'" only the -vpre works. >>>> -vpre is a completely different thing. You definitely need -preset. If >>>> that's not accepted, then it has to be that you have a version of >>>> ffmpeg that is too old. >>>> >>>> -vpre is just a way to provoke long lists of ffmpeg paramaters stored >>>> in a preset file. It is -preset that communicates to libx264. There's >>>> never been a time when -vpre did what -preset does now, so it will >>>> not help to try using it. >> vpre was just a way to do the same thing as preset does now. >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user From lou at lrcd.com Tue Jun 7 20:24:43 2011 From: lou at lrcd.com (Lou) Date: Tue, 7 Jun 2011 10:24:43 -0800 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE68CE.3000005@gmail.com> References: <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> <4DEE43D0.1030904@glidos.net> <4DEE4559.6030102@gmail.com> <4DEE493C.3080506@glidos.net> <4DEE5D7A.3000305@gmail.com> <20110607173922.GV28878@epicure.lazyet.homelinux.net> <4DEE64CC.5040101@gmail.com> <4DEE68CE.3000005@gmail.com> Message-ID: <20110607102443.523adb88@lrcd.com> On Tue, 07 Jun 2011 19:07:10 +0100 "Sw at g" wrote: > Right, > > me again, installing ffmpeg-git from aur didn't change any outcome, I What outcome? You didn't show your command and the complete output. > am now recompiling the latest git with ./configure --enable-gpl > --enable-libx264 --enable-x11g is there any other option I should add? ffmpeg-git and ffmpeg from the repository already use these options. Re-compiling probably won't help you. > regards, > > On 06/07/2011 06:50 PM, Sw at g wrote: > > Many thanks for your replies, > > > > I am now installing x264 and ffmpeg from aur, will let you know the > > outcome > > > > > > On 06/07/2011 06:39 PM, Etienne Buira wrote: > >> On Tue, Jun 07, 2011 at 06:18:50PM +0100, Sw at g wrote: > >>> Right, > >>> > >>> so I have compile the latest git to try resolving the issue and > >>> now nothing work, for example the command I was using to record > >>> my desktop return the following errors: > >>> > >>> [sweetth at myhost test]$ ffmpeg -s 2720x1024 -r 25 -f x11grab > >>> -i :0.0 -acodec libmp3lame -ab 128k -vcodec mpeg4 -sameq -y -t 60 > >>> /media/z/.cam/screen/screen_`date +%F_%T`.avi > >>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the > >>> FFmpeg developers > >>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 > >>> (prerelease) configuration: > >>> libavutil 51. 6. 1 / 51. 6. 1 > >>> libavcodec 53. 6. 1 / 53. 6. 1 > >>> libavformat 53. 2. 0 / 53. 2. 0 > >>> libavdevice 53. 1. 1 / 53. 1. 1 > >>> libavfilter 2. 14. 0 / 2. 14. 0 > >>> libswscale 0. 14. 1 / 0. 14. 1 > >>> Unknown input format: 'x11grab' > >> You need to give --enable-gpl --enable-x11grab to configure script. > >> > >>> and while trying to capture the webcam using the mpeg4 codec or > >>> the libx264 then the terminal just hang: > >>> > >>> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -b > >>> 64m -crf > >>> 22 -s 640x480 -vcodec mpeg4 -t 20 cam_`date +%F_%T`.mp4 > >>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the > >>> FFmpeg developers > >>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 > >>> (prerelease) configuration: > >>> libavutil 51. 6. 1 / 51. 6. 1 > >>> libavcodec 53. 6. 1 / 53. 6. 1 > >>> libavformat 53. 2. 0 / 53. 2. 0 > >>> libavdevice 53. 1. 1 / 53. 1. 1 > >>> libavfilter 2. 14. 0 / 2. 14. 0 > >>> libswscale 0. 14. 1 / 0. 14. 1 > >>> [video4linux2 @ 0xa75c360] The driver changed the time per frame > >>> from 1228/32 to 1/5 > >> For that I don't know. > >> > >>> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 > >>> -pix_fmt yuv420p -s 800x600 -vcodec libx264 --preset medium -crf > >>> 18 -r 15 -t 20 cam_`date +%F_%T`.mp4 > >>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the > >>> FFmpeg developers > >>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 > >>> (prerelease) configuration: > >>> libavutil 51. 6. 1 / 51. 6. 1 > >>> libavcodec 53. 6. 1 / 53. 6. 1 > >>> libavformat 53. 2. 0 / 53. 2. 0 > >>> libavdevice 53. 1. 1 / 53. 1. 1 > >>> libavfilter 2. 14. 0 / 2. 14. 0 > >>> libswscale 0. 14. 1 / 0. 14. 1 > >>> [video4linux2 @ 0x9287360] The driver changed the time per frame > >>> from 1228/32 to 1/5 > >>> > >>> > >>> Any help would be appreciated, > >>> > >>> > >>> > >>> On 06/07/2011 04:52 PM, Paul Gardiner wrote: > >>>> On 07/06/2011 16:35, Sw at g wrote: > >>>>> Hi again, > >>>>> > >>>>> Well with " " or ` ` it doesn't work "Unrecognized option > >>>>> 'preset medium'" only the -vpre works. > >>>> -vpre is a completely different thing. You definitely need > >>>> -preset. If that's not accepted, then it has to be that you have > >>>> a version of ffmpeg that is too old. > >>>> > >>>> -vpre is just a way to provoke long lists of ffmpeg paramaters > >>>> stored in a preset file. It is -preset that communicates to > >>>> libx264. There's never been a time when -vpre did what -preset > >>>> does now, so it will not help to try using it. > >> vpre was just a way to do the same thing as preset does now. From sweetthdevil at gmail.com Tue Jun 7 20:27:28 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 19:27:28 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <20110607102443.523adb88@lrcd.com> References: <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> <4DEE43D0.1030904@glidos.net> <4DEE4559.6030102@gmail.com> <4DEE493C.3080506@glidos.net> <4DEE5D7A.3000305@gmail.com> <20110607173922.GV28878@epicure.lazyet.homelinux.net> <4DEE64CC.5040101@gmail.com> <4DEE68CE.3000005@gmail.com> <20110607102443.523adb88@lrcd.com> Message-ID: <4DEE6D90.6070508@gmail.com> well it did, now the command ffmpeg -f video4linux2 -i /dev/video0 -pix_fmt yuv420p -s 800x600 -vcodec libx264 -preset medium -profile high -crf 18 -r 15 -t 20 cam_`date +%F_%T`.avi works, but I cannot open it, I suspect is because x264-git isn't link and gnome-mplayer doesn't see the codec. regards, On 06/07/2011 07:24 PM, Lou wrote: > On Tue, 07 Jun 2011 19:07:10 +0100 > "Sw at g" wrote: > >> Right, >> >> me again, installing ffmpeg-git from aur didn't change any outcome, I > What outcome? You didn't show your command and the complete output. > >> am now recompiling the latest git with ./configure --enable-gpl >> --enable-libx264 --enable-x11g is there any other option I should add? > ffmpeg-git and ffmpeg from the repository already use these options. > Re-compiling probably won't help you. > >> regards, >> >> On 06/07/2011 06:50 PM, Sw at g wrote: >>> Many thanks for your replies, >>> >>> I am now installing x264 and ffmpeg from aur, will let you know the >>> outcome >>> >>> >>> On 06/07/2011 06:39 PM, Etienne Buira wrote: >>>> On Tue, Jun 07, 2011 at 06:18:50PM +0100, Sw at g wrote: >>>>> Right, >>>>> >>>>> so I have compile the latest git to try resolving the issue and >>>>> now nothing work, for example the command I was using to record >>>>> my desktop return the following errors: >>>>> >>>>> [sweetth at myhost test]$ ffmpeg -s 2720x1024 -r 25 -f x11grab >>>>> -i :0.0 -acodec libmp3lame -ab 128k -vcodec mpeg4 -sameq -y -t 60 >>>>> /media/z/.cam/screen/screen_`date +%F_%T`.avi >>>>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the >>>>> FFmpeg developers >>>>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 >>>>> (prerelease) configuration: >>>>> libavutil 51. 6. 1 / 51. 6. 1 >>>>> libavcodec 53. 6. 1 / 53. 6. 1 >>>>> libavformat 53. 2. 0 / 53. 2. 0 >>>>> libavdevice 53. 1. 1 / 53. 1. 1 >>>>> libavfilter 2. 14. 0 / 2. 14. 0 >>>>> libswscale 0. 14. 1 / 0. 14. 1 >>>>> Unknown input format: 'x11grab' >>>> You need to give --enable-gpl --enable-x11grab to configure script. >>>> >>>>> and while trying to capture the webcam using the mpeg4 codec or >>>>> the libx264 then the terminal just hang: >>>>> >>>>> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -b >>>>> 64m -crf >>>>> 22 -s 640x480 -vcodec mpeg4 -t 20 cam_`date +%F_%T`.mp4 >>>>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the >>>>> FFmpeg developers >>>>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 >>>>> (prerelease) configuration: >>>>> libavutil 51. 6. 1 / 51. 6. 1 >>>>> libavcodec 53. 6. 1 / 53. 6. 1 >>>>> libavformat 53. 2. 0 / 53. 2. 0 >>>>> libavdevice 53. 1. 1 / 53. 1. 1 >>>>> libavfilter 2. 14. 0 / 2. 14. 0 >>>>> libswscale 0. 14. 1 / 0. 14. 1 >>>>> [video4linux2 @ 0xa75c360] The driver changed the time per frame >>>>> from 1228/32 to 1/5 >>>> For that I don't know. >>>> >>>>> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 >>>>> -pix_fmt yuv420p -s 800x600 -vcodec libx264 --preset medium -crf >>>>> 18 -r 15 -t 20 cam_`date +%F_%T`.mp4 >>>>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the >>>>> FFmpeg developers >>>>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 >>>>> (prerelease) configuration: >>>>> libavutil 51. 6. 1 / 51. 6. 1 >>>>> libavcodec 53. 6. 1 / 53. 6. 1 >>>>> libavformat 53. 2. 0 / 53. 2. 0 >>>>> libavdevice 53. 1. 1 / 53. 1. 1 >>>>> libavfilter 2. 14. 0 / 2. 14. 0 >>>>> libswscale 0. 14. 1 / 0. 14. 1 >>>>> [video4linux2 @ 0x9287360] The driver changed the time per frame >>>>> from 1228/32 to 1/5 >>>>> >>>>> >>>>> Any help would be appreciated, >>>>> >>>>> >>>>> >>>>> On 06/07/2011 04:52 PM, Paul Gardiner wrote: >>>>>> On 07/06/2011 16:35, Sw at g wrote: >>>>>>> Hi again, >>>>>>> >>>>>>> Well with " " or ` ` it doesn't work "Unrecognized option >>>>>>> 'preset medium'" only the -vpre works. >>>>>> -vpre is a completely different thing. You definitely need >>>>>> -preset. If that's not accepted, then it has to be that you have >>>>>> a version of ffmpeg that is too old. >>>>>> >>>>>> -vpre is just a way to provoke long lists of ffmpeg paramaters >>>>>> stored in a preset file. It is -preset that communicates to >>>>>> libx264. There's never been a time when -vpre did what -preset >>>>>> does now, so it will not help to try using it. >>>> vpre was just a way to do the same thing as preset does now. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From sweetthdevil at gmail.com Tue Jun 7 20:34:13 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 19:34:13 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE6D90.6070508@gmail.com> References: <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> <4DEE43D0.1030904@glidos.net> <4DEE4559.6030102@gmail.com> <4DEE493C.3080506@glidos.net> <4DEE5D7A.3000305@gmail.com> <20110607173922.GV28878@epicure.lazyet.homelinux.net> <4DEE64CC.5040101@gmail.com> <4DEE68CE.3000005@gmail.com> <20110607102443.523adb88@lrcd.com> <4DEE6D90.6070508@gmail.com> Message-ID: <4DEE6F25.40105@gmail.com> Right, tried to play the file on window with VLC and the file isn't readable so I don't know what to do now.... On 06/07/2011 07:27 PM, Sw at g wrote: > well it did, now the command ffmpeg -f video4linux2 -i /dev/video0 > -pix_fmt yuv420p -s 800x600 -vcodec libx264 -preset medium -profile > high -crf 18 -r 15 -t 20 cam_`date +%F_%T`.avi > > works, but I cannot open it, I suspect is because x264-git isn't link > and gnome-mplayer doesn't see the codec. > > regards, > > On 06/07/2011 07:24 PM, Lou wrote: >> On Tue, 07 Jun 2011 19:07:10 +0100 >> "Sw at g" wrote: >> >>> Right, >>> >>> me again, installing ffmpeg-git from aur didn't change any outcome, I >> What outcome? You didn't show your command and the complete output. >> >>> am now recompiling the latest git with ./configure --enable-gpl >>> --enable-libx264 --enable-x11g is there any other option I should add? >> ffmpeg-git and ffmpeg from the repository already use these options. >> Re-compiling probably won't help you. >> >>> regards, >>> >>> On 06/07/2011 06:50 PM, Sw at g wrote: >>>> Many thanks for your replies, >>>> >>>> I am now installing x264 and ffmpeg from aur, will let you know the >>>> outcome >>>> >>>> >>>> On 06/07/2011 06:39 PM, Etienne Buira wrote: >>>>> On Tue, Jun 07, 2011 at 06:18:50PM +0100, Sw at g wrote: >>>>>> Right, >>>>>> >>>>>> so I have compile the latest git to try resolving the issue and >>>>>> now nothing work, for example the command I was using to record >>>>>> my desktop return the following errors: >>>>>> >>>>>> [sweetth at myhost test]$ ffmpeg -s 2720x1024 -r 25 -f x11grab >>>>>> -i :0.0 -acodec libmp3lame -ab 128k -vcodec mpeg4 -sameq -y -t 60 >>>>>> /media/z/.cam/screen/screen_`date +%F_%T`.avi >>>>>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the >>>>>> FFmpeg developers >>>>>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 >>>>>> (prerelease) configuration: >>>>>> libavutil 51. 6. 1 / 51. 6. 1 >>>>>> libavcodec 53. 6. 1 / 53. 6. 1 >>>>>> libavformat 53. 2. 0 / 53. 2. 0 >>>>>> libavdevice 53. 1. 1 / 53. 1. 1 >>>>>> libavfilter 2. 14. 0 / 2. 14. 0 >>>>>> libswscale 0. 14. 1 / 0. 14. 1 >>>>>> Unknown input format: 'x11grab' >>>>> You need to give --enable-gpl --enable-x11grab to configure script. >>>>> >>>>>> and while trying to capture the webcam using the mpeg4 codec or >>>>>> the libx264 then the terminal just hang: >>>>>> >>>>>> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -b >>>>>> 64m -crf >>>>>> 22 -s 640x480 -vcodec mpeg4 -t 20 cam_`date +%F_%T`.mp4 >>>>>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the >>>>>> FFmpeg developers >>>>>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 >>>>>> (prerelease) configuration: >>>>>> libavutil 51. 6. 1 / 51. 6. 1 >>>>>> libavcodec 53. 6. 1 / 53. 6. 1 >>>>>> libavformat 53. 2. 0 / 53. 2. 0 >>>>>> libavdevice 53. 1. 1 / 53. 1. 1 >>>>>> libavfilter 2. 14. 0 / 2. 14. 0 >>>>>> libswscale 0. 14. 1 / 0. 14. 1 >>>>>> [video4linux2 @ 0xa75c360] The driver changed the time per frame >>>>>> from 1228/32 to 1/5 >>>>> For that I don't know. >>>>> >>>>>> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 >>>>>> -pix_fmt yuv420p -s 800x600 -vcodec libx264 --preset medium -crf >>>>>> 18 -r 15 -t 20 cam_`date +%F_%T`.mp4 >>>>>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the >>>>>> FFmpeg developers >>>>>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 >>>>>> (prerelease) configuration: >>>>>> libavutil 51. 6. 1 / 51. 6. 1 >>>>>> libavcodec 53. 6. 1 / 53. 6. 1 >>>>>> libavformat 53. 2. 0 / 53. 2. 0 >>>>>> libavdevice 53. 1. 1 / 53. 1. 1 >>>>>> libavfilter 2. 14. 0 / 2. 14. 0 >>>>>> libswscale 0. 14. 1 / 0. 14. 1 >>>>>> [video4linux2 @ 0x9287360] The driver changed the time per frame >>>>>> from 1228/32 to 1/5 >>>>>> >>>>>> >>>>>> Any help would be appreciated, >>>>>> >>>>>> >>>>>> >>>>>> On 06/07/2011 04:52 PM, Paul Gardiner wrote: >>>>>>> On 07/06/2011 16:35, Sw at g wrote: >>>>>>>> Hi again, >>>>>>>> >>>>>>>> Well with " " or ` ` it doesn't work "Unrecognized option >>>>>>>> 'preset medium'" only the -vpre works. >>>>>>> -vpre is a completely different thing. You definitely need >>>>>>> -preset. If that's not accepted, then it has to be that you have >>>>>>> a version of ffmpeg that is too old. >>>>>>> >>>>>>> -vpre is just a way to provoke long lists of ffmpeg paramaters >>>>>>> stored in a preset file. It is -preset that communicates to >>>>>>> libx264. There's never been a time when -vpre did what -preset >>>>>>> does now, so it will not help to try using it. >>>>> vpre was just a way to do the same thing as preset does now. >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user From lou at lrcd.com Tue Jun 7 20:36:35 2011 From: lou at lrcd.com (Lou) Date: Tue, 7 Jun 2011 10:36:35 -0800 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <4DEE6D90.6070508@gmail.com> References: <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> <4DEE43D0.1030904@glidos.net> <4DEE4559.6030102@gmail.com> <4DEE493C.3080506@glidos.net> <4DEE5D7A.3000305@gmail.com> <20110607173922.GV28878@epicure.lazyet.homelinux.net> <4DEE64CC.5040101@gmail.com> <4DEE68CE.3000005@gmail.com> <20110607102443.523adb88@lrcd.com> <4DEE6D90.6070508@gmail.com> Message-ID: <20110607103635.21a140f0@lrcd.com> On Tue, 07 Jun 2011 19:27:28 +0100 "Sw at g" wrote: > well it did, now the command ffmpeg -f video4linux2 -i /dev/video0 > -pix_fmt yuv420p -s 800x600 -vcodec libx264 -preset medium -profile > high -crf 18 -r 15 -t 20 cam_`date +%F_%T`.avi You should use something other than avi for your output (such as mkv or mp4) if you're going to use libx264. If you require avi, then don't use b-frames. -pix_fmt yuv420p and -profile high are probably redundant. Consider adding -threads 0. > works, but I cannot open it, I suspect is because x264-git isn't link > and gnome-mplayer doesn't see the codec. Either compile MPlayer, or remove x264-git and ffmpeg-git and use the versions from the repository. Your command would work with the repository packages. > regards, > > On 06/07/2011 07:24 PM, Lou wrote: > > On Tue, 07 Jun 2011 19:07:10 +0100 > > "Sw at g" wrote: > > > >> Right, > >> > >> me again, installing ffmpeg-git from aur didn't change any > >> outcome, I > > What outcome? You didn't show your command and the complete output. > > > >> am now recompiling the latest git with ./configure --enable-gpl > >> --enable-libx264 --enable-x11g is there any other option I should > >> add? > > ffmpeg-git and ffmpeg from the repository already use these options. > > Re-compiling probably won't help you. > > > >> regards, > >> > >> On 06/07/2011 06:50 PM, Sw at g wrote: > >>> Many thanks for your replies, > >>> > >>> I am now installing x264 and ffmpeg from aur, will let you know > >>> the outcome > >>> > >>> > >>> On 06/07/2011 06:39 PM, Etienne Buira wrote: > >>>> On Tue, Jun 07, 2011 at 06:18:50PM +0100, Sw at g wrote: > >>>>> Right, > >>>>> > >>>>> so I have compile the latest git to try resolving the issue and > >>>>> now nothing work, for example the command I was using to record > >>>>> my desktop return the following errors: > >>>>> > >>>>> [sweetth at myhost test]$ ffmpeg -s 2720x1024 -r 25 -f x11grab > >>>>> -i :0.0 -acodec libmp3lame -ab 128k -vcodec mpeg4 -sameq -y -t > >>>>> 60 /media/z/.cam/screen/screen_`date +%F_%T`.avi > >>>>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the > >>>>> FFmpeg developers > >>>>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 > >>>>> (prerelease) configuration: > >>>>> libavutil 51. 6. 1 / 51. 6. 1 > >>>>> libavcodec 53. 6. 1 / 53. 6. 1 > >>>>> libavformat 53. 2. 0 / 53. 2. 0 > >>>>> libavdevice 53. 1. 1 / 53. 1. 1 > >>>>> libavfilter 2. 14. 0 / 2. 14. 0 > >>>>> libswscale 0. 14. 1 / 0. 14. 1 > >>>>> Unknown input format: 'x11grab' > >>>> You need to give --enable-gpl --enable-x11grab to configure > >>>> script. > >>>> > >>>>> and while trying to capture the webcam using the mpeg4 codec or > >>>>> the libx264 then the terminal just hang: > >>>>> > >>>>> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -b > >>>>> 64m -crf > >>>>> 22 -s 640x480 -vcodec mpeg4 -t 20 cam_`date +%F_%T`.mp4 > >>>>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the > >>>>> FFmpeg developers > >>>>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 > >>>>> (prerelease) configuration: > >>>>> libavutil 51. 6. 1 / 51. 6. 1 > >>>>> libavcodec 53. 6. 1 / 53. 6. 1 > >>>>> libavformat 53. 2. 0 / 53. 2. 0 > >>>>> libavdevice 53. 1. 1 / 53. 1. 1 > >>>>> libavfilter 2. 14. 0 / 2. 14. 0 > >>>>> libswscale 0. 14. 1 / 0. 14. 1 > >>>>> [video4linux2 @ 0xa75c360] The driver changed the time per frame > >>>>> from 1228/32 to 1/5 > >>>> For that I don't know. > >>>> > >>>>> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 > >>>>> -pix_fmt yuv420p -s 800x600 -vcodec libx264 --preset medium -crf > >>>>> 18 -r 15 -t 20 cam_`date +%F_%T`.mp4 > >>>>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the > >>>>> FFmpeg developers > >>>>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 > >>>>> (prerelease) configuration: > >>>>> libavutil 51. 6. 1 / 51. 6. 1 > >>>>> libavcodec 53. 6. 1 / 53. 6. 1 > >>>>> libavformat 53. 2. 0 / 53. 2. 0 > >>>>> libavdevice 53. 1. 1 / 53. 1. 1 > >>>>> libavfilter 2. 14. 0 / 2. 14. 0 > >>>>> libswscale 0. 14. 1 / 0. 14. 1 > >>>>> [video4linux2 @ 0x9287360] The driver changed the time per frame > >>>>> from 1228/32 to 1/5 > >>>>> > >>>>> > >>>>> Any help would be appreciated, > >>>>> > >>>>> > >>>>> > >>>>> On 06/07/2011 04:52 PM, Paul Gardiner wrote: > >>>>>> On 07/06/2011 16:35, Sw at g wrote: > >>>>>>> Hi again, > >>>>>>> > >>>>>>> Well with " " or ` ` it doesn't work "Unrecognized option > >>>>>>> 'preset medium'" only the -vpre works. > >>>>>> -vpre is a completely different thing. You definitely need > >>>>>> -preset. If that's not accepted, then it has to be that you > >>>>>> have a version of ffmpeg that is too old. > >>>>>> > >>>>>> -vpre is just a way to provoke long lists of ffmpeg paramaters > >>>>>> stored in a preset file. It is -preset that communicates to > >>>>>> libx264. There's never been a time when -vpre did what -preset > >>>>>> does now, so it will not help to try using it. > >>>> vpre was just a way to do the same thing as preset does now. From sweetthdevil at gmail.com Tue Jun 7 20:49:46 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 19:49:46 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <20110607103635.21a140f0@lrcd.com> References: <4DEE1D6D.7@glidos.net> <4DEE355E.5050902@gmail.com> <4DEE3967.3090209@glidos.net> <4DEE3AA8.7050401@gmail.com> <4DEE3C72.6030302@glidos.net> <4DEE3E34.7000207@gmail.com> <4DEE43D0.1030904@glidos.net> <4DEE4559.6030102@gmail.com> <4DEE493C.3080506@glidos.net> <4DEE5D7A.3000305@gmail.com> <20110607173922.GV28878@epicure.lazyet.homelinux.net> <4DEE64CC.5040101@gmail.com> <4DEE68CE.3000005@gmail.com> <20110607102443.523adb88@lrcd.com> <4DEE6D90.6070508@gmail.com> <20110607103635.21a140f0@lrcd.com> Message-ID: <4DEE72CA.2050005@gmail.com> Right, I remove all those git version to re-install rep version, and strangely enough the -preset & -profile command are still working - they weren't previously. but the quality is still rubish compare to the mencoder command (issue with mencoder and the kernel, and the fact it isn't maintain any more force me to change) See mencoder command use previously: mencoder tv:// -tv driver=v4l2:width=800:height=600:fps=15:device=/dev/video0 -ovc x264 -nosound -o cam_`date +%F_%T`.avi On 06/07/2011 07:36 PM, Lou wrote: > On Tue, 07 Jun 2011 19:27:28 +0100 > "Sw at g" wrote: > >> well it did, now the command ffmpeg -f video4linux2 -i /dev/video0 >> -pix_fmt yuv420p -s 800x600 -vcodec libx264 -preset medium -profile >> high -crf 18 -r 15 -t 20 cam_`date +%F_%T`.avi > You should use something other than avi for your output (such as mkv or > mp4) if you're going to use libx264. If you require avi, then don't use > b-frames. > > -pix_fmt yuv420p and -profile high are probably redundant. Consider > adding -threads 0. > >> works, but I cannot open it, I suspect is because x264-git isn't link >> and gnome-mplayer doesn't see the codec. > Either compile MPlayer, or remove x264-git and ffmpeg-git and use the > versions from the repository. Your command would work with the > repository packages. > >> regards, >> >> On 06/07/2011 07:24 PM, Lou wrote: >>> On Tue, 07 Jun 2011 19:07:10 +0100 >>> "Sw at g" wrote: >>> >>>> Right, >>>> >>>> me again, installing ffmpeg-git from aur didn't change any >>>> outcome, I >>> What outcome? You didn't show your command and the complete output. >>> >>>> am now recompiling the latest git with ./configure --enable-gpl >>>> --enable-libx264 --enable-x11g is there any other option I should >>>> add? >>> ffmpeg-git and ffmpeg from the repository already use these options. >>> Re-compiling probably won't help you. >>> >>>> regards, >>>> >>>> On 06/07/2011 06:50 PM, Sw at g wrote: >>>>> Many thanks for your replies, >>>>> >>>>> I am now installing x264 and ffmpeg from aur, will let you know >>>>> the outcome >>>>> >>>>> >>>>> On 06/07/2011 06:39 PM, Etienne Buira wrote: >>>>>> On Tue, Jun 07, 2011 at 06:18:50PM +0100, Sw at g wrote: >>>>>>> Right, >>>>>>> >>>>>>> so I have compile the latest git to try resolving the issue and >>>>>>> now nothing work, for example the command I was using to record >>>>>>> my desktop return the following errors: >>>>>>> >>>>>>> [sweetth at myhost test]$ ffmpeg -s 2720x1024 -r 25 -f x11grab >>>>>>> -i :0.0 -acodec libmp3lame -ab 128k -vcodec mpeg4 -sameq -y -t >>>>>>> 60 /media/z/.cam/screen/screen_`date +%F_%T`.avi >>>>>>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the >>>>>>> FFmpeg developers >>>>>>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 >>>>>>> (prerelease) configuration: >>>>>>> libavutil 51. 6. 1 / 51. 6. 1 >>>>>>> libavcodec 53. 6. 1 / 53. 6. 1 >>>>>>> libavformat 53. 2. 0 / 53. 2. 0 >>>>>>> libavdevice 53. 1. 1 / 53. 1. 1 >>>>>>> libavfilter 2. 14. 0 / 2. 14. 0 >>>>>>> libswscale 0. 14. 1 / 0. 14. 1 >>>>>>> Unknown input format: 'x11grab' >>>>>> You need to give --enable-gpl --enable-x11grab to configure >>>>>> script. >>>>>> >>>>>>> and while trying to capture the webcam using the mpeg4 codec or >>>>>>> the libx264 then the terminal just hang: >>>>>>> >>>>>>> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 -b >>>>>>> 64m -crf >>>>>>> 22 -s 640x480 -vcodec mpeg4 -t 20 cam_`date +%F_%T`.mp4 >>>>>>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the >>>>>>> FFmpeg developers >>>>>>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 >>>>>>> (prerelease) configuration: >>>>>>> libavutil 51. 6. 1 / 51. 6. 1 >>>>>>> libavcodec 53. 6. 1 / 53. 6. 1 >>>>>>> libavformat 53. 2. 0 / 53. 2. 0 >>>>>>> libavdevice 53. 1. 1 / 53. 1. 1 >>>>>>> libavfilter 2. 14. 0 / 2. 14. 0 >>>>>>> libswscale 0. 14. 1 / 0. 14. 1 >>>>>>> [video4linux2 @ 0xa75c360] The driver changed the time per frame >>>>>>> from 1228/32 to 1/5 >>>>>> For that I don't know. >>>>>> >>>>>>> [sweetth at myhost test]$ ffmpeg -f video4linux2 -i /dev/video0 >>>>>>> -pix_fmt yuv420p -s 800x600 -vcodec libx264 --preset medium -crf >>>>>>> 18 -r 15 -t 20 cam_`date +%F_%T`.mp4 >>>>>>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the >>>>>>> FFmpeg developers >>>>>>> built on Jun 7 2011 18:01:52 with gcc 4.6.0 20110513 >>>>>>> (prerelease) configuration: >>>>>>> libavutil 51. 6. 1 / 51. 6. 1 >>>>>>> libavcodec 53. 6. 1 / 53. 6. 1 >>>>>>> libavformat 53. 2. 0 / 53. 2. 0 >>>>>>> libavdevice 53. 1. 1 / 53. 1. 1 >>>>>>> libavfilter 2. 14. 0 / 2. 14. 0 >>>>>>> libswscale 0. 14. 1 / 0. 14. 1 >>>>>>> [video4linux2 @ 0x9287360] The driver changed the time per frame >>>>>>> from 1228/32 to 1/5 >>>>>>> >>>>>>> >>>>>>> Any help would be appreciated, >>>>>>> >>>>>>> >>>>>>> >>>>>>> On 06/07/2011 04:52 PM, Paul Gardiner wrote: >>>>>>>> On 07/06/2011 16:35, Sw at g wrote: >>>>>>>>> Hi again, >>>>>>>>> >>>>>>>>> Well with " " or ` ` it doesn't work "Unrecognized option >>>>>>>>> 'preset medium'" only the -vpre works. >>>>>>>> -vpre is a completely different thing. You definitely need >>>>>>>> -preset. If that's not accepted, then it has to be that you >>>>>>>> have a version of ffmpeg that is too old. >>>>>>>> >>>>>>>> -vpre is just a way to provoke long lists of ffmpeg paramaters >>>>>>>> stored in a preset file. It is -preset that communicates to >>>>>>>> libx264. There's never been a time when -vpre did what -preset >>>>>>>> does now, so it will not help to try using it. >>>>>> vpre was just a way to do the same thing as preset does now. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From belcampo at zonnet.nl Tue Jun 7 23:26:16 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 07 Jun 2011 23:26:16 +0200 Subject: [FFmpeg-user] 1) Windows Cmd Line to convert to Mpeg-2 (ts) - not Mpeg-2 (ps)? 2) Please correct errors In-Reply-To: References: Message-ID: <4DEE9778.7050608@zonnet.nl> On 06/07/11 18:12, M el wrote: > 1 - Using a Windows PC (xp pro) what is the command line for > converting Video1.avs to Video1.mpg > ... where Video1.mpg will be a Mpeg-2 (ts) format? > > 2 - And what is wrong with the command line below that converts to > Mpeg-2 (ps) ?? > > c:\utilities\ffmpeg\ffmpeg -i video1.avi -vcodec mpeg2video -b 400k -s > 620x480 -aspect 4:3 -acodec mp2 -ab 128k -ar 22050 video1.mpg Insert -f mpegts before video1.mpg > > I get two error messages... > > a - Incompatible pixel format 'bgra' for codec 'mpeg2video', > auto-selecting format ' yuv420p' > b - [mpeg @ 01EF5E20] VBV buffer size not set, muxing may fail > > How can I correct the command line to fix these? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From rich.mme at gmail.com Wed Jun 8 03:38:54 2011 From: rich.mme at gmail.com (Rich deRobles) Date: Tue, 7 Jun 2011 20:38:54 -0500 Subject: [FFmpeg-user] Convert P2 720 30P material for editing in Cinelerra Message-ID: This is P2 720 30P material processed by MXFSPLIT. FFMPEG recognizes it as 59.94. My end objective is to edit with Cinelerra.? All attempts have created a file that plays at 2X. I have tried -r 29.97 on the input. Please help. Thanks in advance. Rich rich at rich-2c3ghz:~$ ffprobe _0002-G18010201.Stream FFprobe version 0.6-4:0.6-2ubuntu6.1, Copyright (c) 2007-2010 the FFmpeg developers ? built on Mar 31 2011 18:43:47 with gcc 4.4.5 [dv @ 0xb542f0]Estimating duration from bitrate, this may be inaccurate Input #0, dv, from '_0002-G18010201.Stream': ? Duration: 00:03:59.37, start: 0.000000, bitrate: 115084 kb/s ??? Stream #0.0: Video: dvvideo, yuv422p, 960x720, 115084 kb/s, PAR 4:3 DAR 16:9, 59.94 tbr, 59.94 tbn, 59.94 tbc ??? Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s ??? Stream #0.2: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s ??? Stream #0.3: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s ??? Stream #0.4: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s rich at rich-2c3ghz:~$ rich at rich-2c3ghz:~$ mediainfo -f _0002-G18010201.Stream General Count??????????????????????????? : 277 Count of stream of this kind???? : 1 Kind of stream?????????????????? : General Kind of stream?????????????????? : General Stream identifier??????????????? : 0 Count of video streams?????????? : 1 Count of audio streams?????????? : 4 Video_Format_List??????????????? : DV Video_Format_WithHint_List?????? : DV Codecs Video???????????????????? : DV Audio_Format_List??????????????? : PCM / PCM / PCM / PCM Audio_Format_WithHint_List?????? : PCM / PCM / PCM / PCM Audio codecs???????????????????? : PCM / PCM / PCM / PCM Complete name??????????????????? : _0002-G18010201.Stream File name??????????????????????? : _0002-G18010201.Stream File extension?????????????????? : stream Format?????????????????????????? : DV Format?????????????????????????? : DV Format/Extensions usually used?? : dv dif Commercial name????????????????? : DVCPRO HD Format_Commercial_IfAny????????? : DVCPRO HD Internet media type????????????? : video/DV Codec??????????????????????????? : DV Codec??????????????????????????? : DV Codec/Extensions usually used??? : dv dif File size??????????????????????? : 3443520000 File size??????????????????????? : 3.21 GiB File size??????????????????????? : 3 GiB File size??????????????????????? : 3.2 GiB File size??????????????????????? : 3.21 GiB File size??????????????????????? : 3.207 GiB Duration???????????????????????? : 239372 Duration???????????????????????? : 3mn 59s Duration???????????????????????? : 3mn 59s 372ms Duration???????????????????????? : 3mn 59s Duration???????????????????????? : 00:03:59.372 Overall bit rate???????????????? : 115084916 Overall bit rate???????????????? : 115 Mbps Stream size????????????????????? : 136797436 Stream size????????????????????? : 130 MiB (4%) Stream size????????????????????? : 130 MiB Stream size????????????????????? : 130 MiB Stream size????????????????????? : 130 MiB Stream size????????????????????? : 130.5 MiB Stream size????????????????????? : 130 MiB (4%) Proportion of this stream??????? : 0.03973 Recorded date??????????????????? : 2011-06-04 09:32:32 File last modification date????? : UTC 2011-06-05 18:56:18 File last modification date (loc : 2011-06-05 13:56:18 Video Count??????????????????????????? : 193 Count of stream of this kind???? : 1 Kind of stream?????????????????? : Video Kind of stream?????????????????? : Video Stream identifier??????????????? : 0 Format?????????????????????????? : DV Commercial name????????????????? : DVCPRO HD Format_Commercial_IfAny????????? : DVCPRO HD Internet media type????????????? : video/DV Codec??????????????????????????? : DV Codec??????????????????????????? : DV Duration???????????????????????? : 239373 Duration???????????????????????? : 3mn 59s Duration???????????????????????? : 3mn 59s 373ms Duration???????????????????????? : 3mn 59s Duration???????????????????????? : 00:03:59.373 Bit rate mode??????????????????? : VBR Bit rate mode??????????????????? : Variable Bit rate???????????????????????? : 107440813 Bit rate???????????????????????? : 107 Mbps Maximum bit rate???????????????? : 97668732 Maximum bit rate???????????????? : 97.7 Mbps Width??????????????????????????? : 960 Width??????????????????????????? : 960 pixels Height?????????????????????????? : 720 Height?????????????????????????? : 720 pixels Pixel aspect ratio?????????????? : 1.333 Display aspect ratio???????????? : 1.778 Display aspect ratio???????????? : 16:9 Frame rate mode????????????????? : CFR Frame rate mode????????????????? : Constant Frame rate?????????????????????? : 29.970 Frame rate?????????????????????? : 29.970 fps Frame count????????????????????? : 7174 Standard???????????????????????? : NTSC Resolution?????????????????????? : 10 Resolution?????????????????????? : 10 bits Colorimetry????????????????????? : 4:2:2 Chroma subsampling?????????????? : 4:2:2 Bit depth??????????????????????? : 10 Bit depth??????????????????????? : 10 bits Scan type??????????????????????? : Progressive Scan type??????????????????????? : Progressive Interlacement??????????????????? : Progressive Interlacement??????????????????? : Progressive Compression mode???????????????? : Lossy Compression mode???????????????? : Lossy Bits/(Pixel*Frame)?????????????? : 5.187 Delay??????????????????????????? : 34352133 Delay??????????????????????????? : 9h 32mn Delay??????????????????????????? : 9h 32mn 32s 133ms Delay??????????????????????????? : 9h 32mn Delay??????????????????????????? : 09:32:32.133 Delay, origin??????????????????? : Stream Delay, origin??????????????????? : Raw stream Stream size????????????????????? : 3214803716 Stream size????????????????????? : 2.99 GiB (93%) Stream size????????????????????? : 3 GiB Stream size????????????????????? : 3.0 GiB Stream size????????????????????? : 2.99 GiB Stream size????????????????????? : 2.994 GiB Stream size????????????????????? : 2.99 GiB (93%) Proportion of this stream??????? : 0.93358 . . . From baptiste.coudurier at gmail.com Wed Jun 8 04:11:40 2011 From: baptiste.coudurier at gmail.com (Baptiste Coudurier) Date: Tue, 07 Jun 2011 19:11:40 -0700 Subject: [FFmpeg-user] Convert P2 720 30P material for editing in Cinelerra In-Reply-To: References: Message-ID: <4DEEDA5C.5040302@gmail.com> Hi, On 06/07/2011 06:38 PM, Rich deRobles wrote: > This is P2 720 30P material processed by MXFSPLIT. FFMPEG recognizes > it as 59.94. > My end objective is to edit with Cinelerra. All attempts have created > a file that plays at 2X. > I have tried -r 29.97 on the input. > Please upload your file somewhere so devs can have a look. Thanks. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org From tim.nicholson at bbc.co.uk Wed Jun 8 09:26:46 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Wed, 08 Jun 2011 08:26:46 +0100 Subject: [FFmpeg-user] Convert P2 720 30P material for editing in Cinelerra In-Reply-To: <4DEEDA5C.5040302@gmail.com> References: <4DEEDA5C.5040302@gmail.com> Message-ID: <4DEF2436.4070406@bbc.co.uk> On 08/06/11 03:11, Baptiste Coudurier wrote: > Hi, > > On 06/07/2011 06:38 PM, Rich deRobles wrote: >> This is P2 720 30P material processed by MXFSPLIT. FFMPEG recognizes >> it as 59.94. >> My end objective is to edit with Cinelerra. All attempts have created >> a file that plays at 2X. >> I have tried -r 29.97 on the input. >> > > Please upload your file somewhere so devs can have a look. > > Thanks. > ISTR that P2 records PSF DVCProHD in "progressive" mode so that it passes through interlaced systems without issue. -- 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 dev at rarevision.com Wed Jun 8 11:13:35 2011 From: dev at rarevision.com (Thomas Worth) Date: Wed, 8 Jun 2011 02:13:35 -0700 Subject: [FFmpeg-user] Detect if an MTS file is interlaced or not? Message-ID: I'd like to know if there's a way to tell if an MTS file is interlaced, preferably without having to decode it first. The problem I have is that libav always returns 59.94 for the frame rate of interlaced NTSC streams, even though we know it's 29.97. And of course, r_frame_rate always returns 0 with the "mpegts" format so I am left to calculate the frame count manually. I need the correct frame rate to do this, however and there's no way of telling ahead of time whether the input video will be interlaced or not. Any ideas? From tomi.myllyla at screenpeak.com Wed Jun 8 12:27:54 2011 From: tomi.myllyla at screenpeak.com (Tomi) Date: Wed, 8 Jun 2011 03:27:54 -0700 (PDT) Subject: [FFmpeg-user] Clock gap problem Message-ID: <1307528874995-3582114.post@n4.nabble.com> Hi, There seems to be following hanging problem when ffmpeg is used for transcoding from vlc: 2011-05-18 00:24:53 [0x1021970] main input warning: clock gap, unexpected stream discontinuity 0x1021970] main input warning: feeding synchro with a new reference point trying to recover from clock gap 2011-05-18 13:16:20 mb incr damaged 2011-05-18 13:16:20 [0x7fab300343e0] avcodec encoder warning: almost fed libavcodec with a frame in the past (current: 1695556067861, last: 1699689600301) It seems that this 'almost fed libavcodec..' error at VLC comes from modules/codec/avcodec/encoder.c:907 check, iirc in libav/ffmpeg didn't like if pts-values weren't monotonic. We could comment out that if clause in code and recompile that module but it might not be good idea as it is doing this timing check. Any ideas what is causing this? We would really appreciate help in this. Tomi -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Clock-gap-problem-tp3582114p3582114.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From rich.mme at gmail.com Wed Jun 8 15:59:09 2011 From: rich.mme at gmail.com (Rich deRobles) Date: Wed, 8 Jun 2011 08:59:09 -0500 Subject: [FFmpeg-user] Convert P2 720 30P material for editing in Cinelerra In-Reply-To: <4DEF2436.4070406@bbc.co.uk> References: <4DEEDA5C.5040302@gmail.com> <4DEF2436.4070406@bbc.co.uk> Message-ID: This is a short example. http://www.mediafire.com/file/wy41duqt18u9q2r/0001CZ.MXF http://www.mediafire.com/file/rb3kns7y31oghse/P2%20viewer.rtf Rich On Wed, Jun 8, 2011 at 2:26 AM, Tim Nicholson wrote: > On 08/06/11 03:11, Baptiste Coudurier wrote: >> >> Hi, >> >> On 06/07/2011 06:38 PM, Rich deRobles wrote: >>> >>> This is P2 720 30P material processed by MXFSPLIT. FFMPEG recognizes >>> it as 59.94. >>> My end objective is to edit with Cinelerra. All attempts have created >>> a file that plays at 2X. >>> I have tried -r 29.97 on the input. >>> >> >> Please upload your file somewhere so devs can have a look. >> >> Thanks. >> > > ISTR that P2 records PSF DVCProHD in "progressive" mode so that it passes > through interlaced systems without issue. > > -- > 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. > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From myemaillist at gmail.com Wed Jun 8 16:14:57 2011 From: myemaillist at gmail.com (M el) Date: Wed, 8 Jun 2011 10:14:57 -0400 Subject: [FFmpeg-user] How to correct Windows cmd line to fix - "Incompatible pixel format 'bgra' for codec 'mpeg2video', auto-selecting format 'yuv420p' " ? Message-ID: How to correct this Windows Command Line... C:\Documents and Settings\All Users\Documents\My Videos\Originals>c:\utilities\ffmpeg\ffmpeg -i video1.avi -vcodec mpeg2video -b 400k -s 620x480 -aspect 4:3 -acodec mp2 -ab 128k -ar 22050 -f mpegts video1.mpg To avoid this error message? "Incompatible pixel format 'bgra' for codec 'mpeg2video', auto-selecting format 'yuv420p' Thanks for any help. From pgoldweic at northwestern.edu Wed Jun 8 22:16:22 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Wed, 8 Jun 2011 13:16:22 -0700 (PDT) Subject: [FFmpeg-user] need help with 'drawtext' usage In-Reply-To: <20110607174508.GW28878@epicure.lazyet.homelinux.net> References: <1307465571825-3580172.post@n4.nabble.com> <20110607172947.GU28878@epicure.lazyet.homelinux.net> <1307468328442-3580304.post@n4.nabble.com> <20110607174508.GW28878@epicure.lazyet.homelinux.net> Message-ID: <1307564182965-3583508.post@n4.nabble.com> I see. Thanks again for your response. Unfortunately I now run into a different error when I try to encode the video (using h264), as ffmpeg gives me an 'invalid pixel format string '-1' (error opening filters). I am using the following command: ffmpeg -i mymovie.mov -vcodec libx264 -acodec copy -vf "drawtext=fontfile=arial.ttf:text='test'" -f mp4 mymovie.mp4 I did not get the error above when I tried using a different type of movie instead (an 'mpg' movie). Is there a way to get ffmpeg to work with Quicktime movies, perhaps passing in further arguments? Thanks in advance -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/need-help-with-drawtext-usage-tp3580172p3583508.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From etienne.buira.lists at free.fr Wed Jun 8 22:25:15 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Wed, 8 Jun 2011 22:25:15 +0200 Subject: [FFmpeg-user] need help with 'drawtext' usage In-Reply-To: <1307564182965-3583508.post@n4.nabble.com> References: <1307465571825-3580172.post@n4.nabble.com> <20110607172947.GU28878@epicure.lazyet.homelinux.net> <1307468328442-3580304.post@n4.nabble.com> <20110607174508.GW28878@epicure.lazyet.homelinux.net> <1307564182965-3583508.post@n4.nabble.com> Message-ID: <20110608202515.GC28878@epicure.lazyet.homelinux.net> On Wed, Jun 08, 2011 at 01:16:22PM -0700, pgoldweic wrote: > I see. Thanks again for your response. Unfortunately I now run into a > different error when I try to encode the video (using h264), as ffmpeg gives > me an 'invalid pixel format string '-1' (error opening filters). > I am using the following command: > ffmpeg -i mymovie.mov -vcodec libx264 -acodec copy -vf > "drawtext=fontfile=arial.ttf:text='test'" -f mp4 mymovie.mp4 > > > I did not get the error above when I tried using a different type of movie > instead (an 'mpg' movie). Is there a way to get ffmpeg to work with > Quicktime movies, perhaps passing in further arguments? > Thanks in advance New problem => your best bet is to open a new thread, quoting the whole command line as well as whole output. Only advice I can give you are: - Check that your ffmpeg knows the drawtext filter (mine which dates from yesterday does not know it), using ffmpeg -filters / Check that the ffmpeg you call is the one you think if you have more than one on the same system in different places (which ffmpeg). - Check that all required arguments are there (I would expect coordinates). From pgoldweic at northwestern.edu Wed Jun 8 22:32:21 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Wed, 8 Jun 2011 13:32:21 -0700 (PDT) Subject: [FFmpeg-user] need help with 'drawtext' usage In-Reply-To: <20110608202515.GC28878@epicure.lazyet.homelinux.net> References: <1307465571825-3580172.post@n4.nabble.com> <20110607172947.GU28878@epicure.lazyet.homelinux.net> <1307468328442-3580304.post@n4.nabble.com> <20110607174508.GW28878@epicure.lazyet.homelinux.net> <1307564182965-3583508.post@n4.nabble.com> <20110608202515.GC28878@epicure.lazyet.homelinux.net> Message-ID: <1307565141548-3583541.post@n4.nabble.com> OK. Will start a different thread then. Thanks. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/need-help-with-drawtext-usage-tp3580172p3583541.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From pgoldweic at northwestern.edu Wed Jun 8 22:47:59 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Wed, 8 Jun 2011 13:47:59 -0700 (PDT) Subject: [FFmpeg-user] getting 'Invalid pixel format string '-1' when encoding Message-ID: <1307566079762-3583577.post@n4.nabble.com> I am trying to encode a Quicktime movie with a h264 codec in an mp4 container. However, I get the following error message when I try to do so: 'Invalid pixel format string '-1' Error opening filters!. My command is as follows: ffmpeg -i mymovie.mov -vcodec xlib264 -acodec copy -f mp4 mymovie.mp4 Note the following: - The same command works on other movies which are not Quicktime movies. - I am using a Windows 64 bit version of ffmpeg I downloaded a couple of days ago - When I searched for similar posts in this list, I came across a recent one describing the same kind of error message, and the response given to the post at the time was: 'The problem is that the input file is missing the pixel format information, the decoder doesn't guess it and ffmpeg fails because of that. File a bug report, and we'll try to fix it.' Am I hitting the same ffmpeg bug here? And if so, is there a way to tell ffmpeg what the missing pixel information is for that input movie, to work around this problem? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/getting-Invalid-pixel-format-string-1-when-encoding-tp3583577p3583577.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lou at lrcd.com Wed Jun 8 22:59:44 2011 From: lou at lrcd.com (Lou) Date: Wed, 8 Jun 2011 12:59:44 -0800 Subject: [FFmpeg-user] getting 'Invalid pixel format string '-1' when encoding In-Reply-To: <1307566079762-3583577.post@n4.nabble.com> References: <1307566079762-3583577.post@n4.nabble.com> Message-ID: <20110608125944.3cba100c@lrcd.com> On Wed, 8 Jun 2011 13:47:59 -0700 (PDT) pgoldweic wrote: > I am trying to encode a Quicktime movie with a h264 codec in an mp4 > container. However, I get the following error message when I try to > do so: 'Invalid pixel format string '-1' Error opening filters!. > > My command is as follows: > ffmpeg -i mymovie.mov -vcodec xlib264 -acodec copy -f mp4 mymovie.mp4 xlib264 is incorrect. Should be libx264. Can you show your complete FFmpeg terminal output too? Also useful would be a sample input file that is giving you the troubles if you have the ability to upload one. If you simply want to dump the input into a new container (assuming your input is suitable for mp4 container): ffmpeg -i mymovie.mov -vcodec copy -acodec copy output.mp4 This will avoid re-encoding. Think of it as a copy and paste. > Note the following: > - The same command works on other movies which are not Quicktime > movies. > - I am using a Windows 64 bit version of ffmpeg I downloaded a couple > of days ago > - When I searched for similar posts in this list, I came across a > recent one describing the same kind of error message, and the > response given to the post at the time was: 'The problem is that the > input file is missing the pixel format information, the decoder > doesn't guess it and ffmpeg fails because of > that. > File a bug report, and we'll try to fix it.' > > Am I hitting the same ffmpeg bug here? And if so, is there a way to > tell ffmpeg what the missing pixel information is for that input > movie, to work around this problem? From pgoldweic at northwestern.edu Wed Jun 8 23:22:16 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Wed, 8 Jun 2011 14:22:16 -0700 (PDT) Subject: [FFmpeg-user] getting 'Invalid pixel format string '-1' when encoding In-Reply-To: <20110608125944.3cba100c@lrcd.com> References: <1307566079762-3583577.post@n4.nabble.com> <20110608125944.3cba100c@lrcd.com> Message-ID: <1307568136799-3583647.post@n4.nabble.com> Thanks for your prompt response. Actually, the 'xlib264' typo was only in my post and not in the original command :-). The complete ffmpeg terminal output is as follows: ------------------------------------------------------------------------------ built on May 27 2011 22:41:22 with gcc 4.5.3 configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-runtime-cpudetect --enable-avisynth --enablebzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-armwb --enable-libfreetype -- enable-libgsm -- enable-libmp3lame --enable-libopenjpeg --enablelibrtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs -- enable-libxvid -- enable-zlib --pkg-config=pkg-config libavutil 51. 2. 2 / 51. 2. 2 libavcodec 53. 6. 0 / 53. 6. 0 libavformat 53. 2. 0. /53. 2. 0 libavdevice 53. 0. 0. / 53. 0 0 libavfilter 2. 11. 0 / 2. 11. 0 libswscale 0. 14. 0 / 0. 14. 0 libpostproc 51. 2. 0 / 51. 2. 0 [mov,mp4,m4a,3gp,3g2,mj2, @ 0000000001899B40] max_analyze_duration 5000000 reached at 5005005 Seems stream 0 codec frame rate differs from container frame rate: 2997.00 (2997/1) -> 29.97 (2997/100) Input #0: mov, mp4,m4a,3gp,3g2,mj2, from 'mymovie.mov': Metadata: major_brand : qt manor_version : 512 compatible_brands : qt creation_time : 1970-01-01 00:00:00 encoder : Lavf53.2.0 Duration: 00:00:05.53, start: 0.000000, bitrate: 4623 kb/s Stream #0.0(eng): Video: apch / 0x68637061, 1440x1080, 4620 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc Metadata: creation_time : 1970-01-01 00:00:00 File 'mymovie.mp4' already exists. Overwrite ? [y/N] y [buffer @ 00000000018AFDEO] Invalid pixel format string '-1' Error opening filters! http://ffmpeg-users.933282.n4.nabble.com/file/n3583647/OpenPGEnding.mov OpenPGEnding.mov -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/getting-Invalid-pixel-format-string-1-when-encoding-tp3583577p3583647.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lou at lrcd.com Wed Jun 8 23:47:55 2011 From: lou at lrcd.com (Lou) Date: Wed, 8 Jun 2011 13:47:55 -0800 Subject: [FFmpeg-user] getting 'Invalid pixel format string '-1' when encoding In-Reply-To: <1307568136799-3583647.post@n4.nabble.com> References: <1307566079762-3583577.post@n4.nabble.com> <20110608125944.3cba100c@lrcd.com> <1307568136799-3583647.post@n4.nabble.com> Message-ID: <20110608134755.2e77c0d5@lrcd.com> On Wed, 8 Jun 2011 14:22:16 -0700 (PDT) pgoldweic wrote: > Thanks for your prompt response. Actually, the 'xlib264' typo was > only in my post and not in the original command :-). > > The complete ffmpeg terminal output is as follows: > ------------------------------------------------------------------------------ > built on May 27 2011 22:41:22 with gcc 4.5.3 > configuration: --enable-gpl --enable-version3 --enable-memalign-hack > --enable-runtime-cpudetect --enable-avisynth --enablebzlib > --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-armwb > --enable-libfreetype -- enable-libgsm -- enable-libmp3lame > --enable-libopenjpeg --enablelibrtmp --enable-libschroedinger > --enable-libspeex --enable-libtheora --enable-libvorbis > --enable-libvpx --enable-libx264 --enable-libxavs -- enable-libxvid > -- enable-zlib --pkg-config=pkg-config > > libavutil 51. 2. 2 / 51. 2. 2 > libavcodec 53. 6. 0 / 53. 6. 0 > libavformat 53. 2. 0. /53. 2. 0 > libavdevice 53. 0. 0. / 53. 0 0 > libavfilter 2. 11. 0 / 2. 11. 0 > libswscale 0. 14. 0 / 0. 14. 0 > libpostproc 51. 2. 0 / 51. 2. 0 > > [mov,mp4,m4a,3gp,3g2,mj2, @ 0000000001899B40] max_analyze_duration > 5000000 reached at 5005005 > > Seems stream 0 codec frame rate differs from container frame rate: > 2997.00 (2997/1) -> 29.97 (2997/100) > Input #0: mov, mp4,m4a,3gp,3g2,mj2, from 'mymovie.mov': > Metadata: > major_brand : qt > manor_version : 512 > compatible_brands : qt > creation_time : 1970-01-01 00:00:00 > encoder : Lavf53.2.0 > Duration: 00:00:05.53, start: 0.000000, bitrate: 4623 kb/s > Stream #0.0(eng): Video: apch / 0x68637061, 1440x1080, 4620 kb/s, > 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc > Metadata: > creation_time : 1970-01-01 00:00:00 > File 'mymovie.mp4' already exists. Overwrite ? [y/N] y > [buffer @ 00000000018AFDEO] Invalid pixel format string '-1' > Error opening filters! > > > > http://ffmpeg-users.933282.n4.nabble.com/file/n3583647/OpenPGEnding.mov > OpenPGEnding.mov Unfortunately I do not believe FFmpeg supports Apple ProRes 422 decoding. From stefano.sabatini-lala at poste.it Thu Jun 9 00:14:08 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Thu, 9 Jun 2011 00:14:08 +0200 Subject: [FFmpeg-user] How to correct Windows cmd line to fix - "Incompatible pixel format 'bgra' for codec 'mpeg2video', auto-selecting format 'yuv420p' " ? In-Reply-To: References: Message-ID: <20110608221408.GA16078@geppetto> On date Wednesday 2011-06-08 10:14:57 -0400, M el encoded: > How to correct this Windows Command Line... > > C:\Documents and Settings\All Users\Documents\My > Videos\Originals>c:\utilities\ffmpeg\ffmpeg -i video1.avi -vcodec > mpeg2video -b 400k -s 620x480 -aspect 4:3 -acodec mp2 -ab 128k -ar > 22050 -f mpegts video1.mpg > > To avoid this error message? > > "Incompatible pixel format 'bgra' for codec 'mpeg2video', > auto-selecting format 'yuv420p' It's not an error, it's an informatio, it's telling that it's converting the input pixel format, to match one of the formats accepted by the mpeg2video encoder. > Thanks for any help. -- ffmpeg-user random tip #4 ffmpeg -i FILE prints information about the container format and the streams in a file. From eanna.apple at gmail.com Thu Jun 9 15:21:28 2011 From: eanna.apple at gmail.com (Eanna Sheehan) Date: Thu, 9 Jun 2011 14:21:28 +0100 Subject: [FFmpeg-user] Errors transcoding Astra DVB-S channels via UDP Message-ID: Hi, I am inputting a UDP multicast stream (containing UK TV channels from the Astra 2D satellite) to FFmpeg and transcoding it to H264 + AAC. On some channels (the Channel-4 family) everything is OK, but on most other channels I can see a lot of errors in the FFmpeg log output, and the quality of the transcoded video output is not so good (there's a strip of distortion along the bottom edge of the picture, and occasionally some distortion blocks in other parts of the picture when there's fast motion). Increasing the output H264 bitrate doesn't solve the problem. My FFmpeg and x264 came from git yesterday, and I've also seen the problem with FFmpeg 0.7. As a test I have used FFmpeg to grab the original stream to a file (using -acodec copy -vcodec copy) and viewed it using vlc. It looks OK. If I then transcode this file to H264 + AAC I get the same problems as if I was transcoding the live stream. Some background info: The stream is originating on a different server, from MuMuDVB reading a Mystique SaTiX-S2 Dual DVB-S card. I have several of these cards, and the problem happens on all of them. I have also tried DVBlast instead of MuMuDVB, but I get the same problem. In the server where I am running FFmpeg, there is 2 quad-core CPUs, and they are only being utilised 15% so I don't think it's a problem with lack of CPU power. The OS is Ubuntu 10.04 LTS. My FFmpeg command is: ffmpeg -v 9 -loglevel 99 -er 4 -y -t 40 -i udp://224.201.0.19:1234 -threads 0 -f mpegts -acodec libfaac -ar 48000 -ab 64k -s 640x360 -vcodec libx264 -profile baseline -preset fast -b 800k -bt 250k -maxrate 800k -bufsize 800k -aspect 16:9 -g 10 -r 30 -async 2 /home/omni/test19h.ts Here are some excerpts from the log output ( [--snip--] indicates where I have cut it): ffmpeg version git-N-30644-gd552f61, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 8 2011 14:25:19 with gcc 4.4.3 configuration: --arch=x86_64 --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libmp3lame libavutil 51. 7. 0 / 51. 7. 0 libavcodec 53. 6. 1 / 53. 6. 1 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 14. 0 / 2. 14. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 [NULL @ 0x1540820] Format mpegts probed with size=2048 and score=100 [mpegts @ 0x1540820] Unable to seek back to the start [mpegts @ 0x1540820] stream=0 stream_type=0 pid=d0d prog_reg_desc= [mpegts @ 0x1540820] stream=1 stream_type=0 pid=d0c prog_reg_desc= [mpegts @ 0x1540820] probing stream 0 pp:2500 [mpegts @ 0x1540820] Probe with size=5872, packets=1 detected mp3 with score=25 [mpegts @ 0x1540820] probing stream 1 pp:2500 [mpegts @ 0x1540820] Probe with size=204773, packets=1 detected mpegvideo with score=51 [mpegts @ 0x1540820] probed stream 1 [mpegts @ 0x1540820] probing stream 0 pp:2499 [mpegts @ 0x1540820] Probe with size=11744, packets=2 detected mp3 with score=25 [mpegts @ 0x1540820] probing stream 0 pp:2498 [mpegts @ 0x1540820] Probe with size=17616, packets=3 detected mp3 with score=25 [mpegts @ 0x1540820] probing stream 0 pp:2497 [mpegts @ 0x1540820] probing stream 0 pp:2496 [mpegts @ 0x1540820] probing stream 0 pp:2495 [mpegts @ 0x1540820] Probe with size=35232, packets=6 detected mp3 with score=25 [mpegts @ 0x1540820] probing stream 0 pp:2494 [mpegts @ 0x1540820] probing stream 0 pp:2493 [mpegts @ 0x1540820] probing stream 0 pp:2492 [mpegts @ 0x1540820] probing stream 0 pp:2491 [mpegts @ 0x1540820] probing stream 0 pp:2490 [mpegts @ 0x1540820] probing stream 0 pp:2489 [mpegts @ 0x1540820] Probe with size=70464, packets=12 detected mp3 with score=25 [mpegts @ 0x1540820] probing stream 0 pp:2488 [mpegts @ 0x1540820] probing stream 0 pp:2487 [mpegts @ 0x1540820] probing stream 0 pp:2486 [mpegts @ 0x1540820] probing stream 0 pp:2485 [mpegts @ 0x1540820] probing stream 0 pp:2484 [mpegts @ 0x1540820] probing stream 0 pp:2483 [mpegts @ 0x1540820] probing stream 0 pp:2482 [mpegts @ 0x1540820] probing stream 0 pp:2481 [mpegts @ 0x1540820] Probe with size=117440, packets=20 detected mp3 with score=25 [mpegts @ 0x1540820] probed stream 0 [mp2 @ 0x1556e40] Header missing [mpegts @ 0x1540820] max_analyze_duration 5000000 reached at 5016000 [mpegts @ 0x1540820] Estimating duration from bitrate, this may be inaccurate Input #0, mpegts, from 'udp://224.201.0.19:1234': Duration: N/A, start: 74264.775856, bitrate: 10192 kb/s Program 10060 Metadata: service_name : ITV1 London service_provider: BSkyB Program 10070 Metadata: service_name : ITV2 service_provider: BSkyB Program 10071 Metadata: service_name : CITV service_provider: BSkyB Program 10072 Metadata: service_name : ITV4 service_provider: BSkyB Program 10079 Metadata: service_name : ITVi Stream 44 service_provider: BSkyB Program 10080 Metadata: service_name : ITV1 Granada service_provider: BSkyB Program 10090 Metadata: service_name : ITV1 Anglia E service_provider: BSkyB Program 10100 Metadata: service_name : ITV1 Central W service_provider: BSkyB No Program Stream #0.0[0xd0d], 211, 1/90000: Audio: mp2, 48000 Hz, stereo, s16, 192 kb/s Stream #0.1[0xd0c], 119, 1/90000: Video: mpeg2video (Main), yuv420p, 704x576 [PAR 16:11 DAR 16:9], 1/50, 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc [buffer @ 0x1556120] w:704 h:576 pixfmt:yuv420p tb:1/1000000 sar:16/11 sws_param: [scale @ 0x1723940] w:704 h:576 fmt:yuv420p -> w:640 h:360 fmt:yuv420p flags:0x4 [libx264 @ 0x153a680] using mv_range_thread = 24 [libx264 @ 0x153a680] using SAR=1/1 [libx264 @ 0x153a680] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0x153a680] profile Constrained Baseline, level 3.0 [mpegts @ 0x153a120] muxrate VBR, pcr every 3 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to '/home/omni/test19h.ts': Metadata: encoder : Lavf53.2.0 Stream #0.0, 0, 1/90000: Video: libx264, yuv420p, 640x360 [PAR 1:1 DAR 16:9], 1/30, q=2-31, 800 kb/s, 90k tbn, 30 tbc Stream #0.1, 0, 1/90000: Audio: libfaac, 48000 Hz, stereo, s16, 64 kb/s Stream mapping: Stream #0.1 -> #0.0 Stream #0.0 -> #0.1 Press [q] to stop, [?] for help [mp2 @ 0x1556e40] Header missing Error while decoding stream #0.0 discarding 1142 audio samples [mpeg2video @ 0x15572e0] end mismatch left=27 0 [mpeg2video @ 0x15572e0] Warning MVs not available [mpeg2video @ 0x15572e0] concealing 44 DC, 44 AC, 44 MV errors *** 14 dup! Last message repeated 7 times [mpeg2video @ 0x15572e0] end mismatch left=26 0 [mpeg2video @ 0x15572e0] Warning MVs not available [mpeg2video @ 0x15572e0] concealing 44 DC, 44 AC, 44 MV errors *** 1 dup! compensating audio timestamp drift:2304.000000 compensation:2 in:48000 compensating audio timestamp drift:2303.000000 compensation:2 in:48000 compensating audio timestamp drift:2303.000000 compensation:2 in:48000 compensating audio timestamp drift:2303.000000 compensation:2 in:48000 compensating audio timestamp drift:2303.000000 compensation:2 in:48000 compensating audio timestamp drift:2303.000000 compensation:2 in:48000 compensating audio timestamp drift:2303.000000 compensation:2 in:48000 compensating audio timestamp drift:2303.000000 compensation:2 in:48000 compensating audio timestamp drift:2303.000000 compensation:2 in:48000 [mpeg2video @ 0x15572e0] end mismatch left=23 0 [mpeg2video @ 0x15572e0] concealing 44 DC, 44 AC, 44 MV errors [mpeg2video @ 0x15572e0] end mismatch left=28 0 [mpeg2video @ 0x15572e0] concealing 44 DC, 44 AC, 44 MV errors [mpeg2video @ 0x15572e0] end mismatch left=19 0 [mpeg2video @ 0x15572e0] concealing 44 DC, 44 AC, 44 MV errors [mpeg2video @ 0x15572e0] MPEG motion vector out of boundary (13 573) [mpeg2video @ 0x15572e0] MPEG motion vector out of boundary (95 568) [mpeg2video @ 0x15572e0] MPEG motion vector out of boundary (232 567) Last message repeated 1 times [mpeg2video @ 0x15572e0] MPEG motion vector out of boundary (476 574) [mpeg2video @ 0x15572e0] MPEG motion vector out of boundary (627 572) Last message repeated 1 times [mpeg2video @ 0x15572e0] MPEG motion vector out of boundary (23 562) [mpeg2video @ 0x15572e0] MPEG motion vector out of boundary (33 573) [mpeg2video @ 0x15572e0] MPEG motion vector out of boundary (216 567) [mpeg2video @ 0x15572e0] MPEG motion vector out of boundary (248 567) [mpeg2video @ 0x15572e0] MPEG motion vector out of boundary (242 567) [mpeg2video @ 0x15572e0] MPEG motion vector out of boundary (227 562) [mpeg2video @ 0x15572e0] MPEG motion vector out of boundary (242 567) [mpeg2video @ 0x15572e0] MPEG motion vector out of boundary (392 572) Last message repeated 1 times [--snip--] [libx264 @ 0x153a680] frame=1196 QP=24.21 NAL=2 Slice:P Poc:110 I:188 P:524 SKIP:208 size=4253 bytes [libx264 @ 0x153a680] frame=1197 QP=22.88 NAL=2 Slice:P Poc:112 I:210 P:544 SKIP:166 size=5437 bytes [libx264 @ 0x153a680] frame=1198 QP=21.26 NAL=2 Slice:P Poc:114 I:12 P:293 SKIP:615 size=1366 bytes [libx264 @ 0x153a680] frame=1199 QP=24.75 NAL=2 Slice:P Poc:116 I:175 P:528 SKIP:217 size=4033 bytes [libx264 @ 0x153a680] frame=1200 QP=24.76 NAL=2 Slice:P Poc:118 I:126 P:546 SKIP:248 size=3507 bytes [libx264 @ 0x153a680] frame=1201 QP=26.30 NAL=2 Slice:P Poc:120 I:229 P:515 SKIP:176 size=4735 bytes frame= 1202 fps= 34 q=191999.0 Lsize= 4643kB time=00:00:40.00 bitrate= 950.9kbits/s dup=212 drop=0 video:3847kB audio:313kB global headers:0kB muxing overhead 11.597043% frame I:11 Avg QP:22.95 size: 21453 [libx264 @ 0x153a680] frame P:1191 Avg QP:27.41 size: 3110 [libx264 @ 0x153a680] mb I I16..4: 22.9% 0.0% 77.1% [libx264 @ 0x153a680] mb P I16..4: 3.0% 0.0% 2.6% P16..4: 37.2% 11.3% 3.4% 0.0% 0.0% skip:42.5% [libx264 @ 0x153a680] coded y,uvDC,uvAC intra: 44.1% 51.7% 14.9% inter: 14.1% 18.6% 1.1% [libx264 @ 0x153a680] i16 v,h,dc,p: 27% 29% 9% 35% [libx264 @ 0x153a680] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 20% 23% 21% 5% 8% 6% 7% 4% 5% [libx264 @ 0x153a680] i8c dc,h,v,p: 65% 18% 14% 3% [libx264 @ 0x153a680] ref P L0: 79.5% 20.5% [libx264 @ 0x153a680] kb/s:786.64 Any help much appreciated. Thanks. Eanna From pgoldweic at northwestern.edu Thu Jun 9 16:29:31 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Thu, 9 Jun 2011 07:29:31 -0700 (PDT) Subject: [FFmpeg-user] getting 'Invalid pixel format string '-1' when encoding In-Reply-To: <20110608134755.2e77c0d5@lrcd.com> References: <1307566079762-3583577.post@n4.nabble.com> <20110608125944.3cba100c@lrcd.com> <1307568136799-3583647.post@n4.nabble.com> <20110608134755.2e77c0d5@lrcd.com> Message-ID: <1307629771743-3585728.post@n4.nabble.com> OK. Thanks for clarifying this. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/getting-Invalid-pixel-format-string-1-when-encoding-tp3583577p3585728.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From it at sca-uk.com Fri Jun 10 17:03:49 2011 From: it at sca-uk.com (Steve) Date: Fri, 10 Jun 2011 12:03:49 -0300 Subject: [FFmpeg-user] Codecs and containers. Message-ID: Hi People, First of all, let me say how impressed by Ffmpeg and the community that surrounds it. This is a real example to us all of how an open-source project can be run. I am building a medical application with a video component that I would like to be lossless within the application, but then can be copied or exported to other applications via a USB flash-drive in any supported format. I am using Kubuntu operating system with wxWidgets as a frontend (ie GStreamer). I'd like to be sure that within the application I have no video copyright issues, so I am thinking of using the .mkv container format with the ffv1 codec. Are these compatible with each other, or can someone suggest a better combination? Up until now I have been using .avi with default settings (ie I don't know which codec settings!). Anyhow I would be grateful for your advice. Regards Steve -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 145 bytes Desc: not available URL: From dave at avpreserve.com Fri Jun 10 18:01:54 2011 From: dave at avpreserve.com (Dave Rice) Date: Fri, 10 Jun 2011 12:01:54 -0400 Subject: [FFmpeg-user] Codecs and containers. In-Reply-To: References: Message-ID: On Jun 10, 2011, at 11:03 AM, Steve wrote: > I am using Kubuntu operating system with wxWidgets as a frontend (ie > GStreamer). I'd like to be sure that within the application I have no video > copyright issues, so I am thinking of using the .mkv container format with > the ffv1 codec. Are these compatible with each other, or can someone > suggest a better combination? Hi Steve, FFmpeg can generate a Matroska file with FFV1 video. There isn't a custom Matroska codec ID for FFV1 but the file ffmpeg makes uses: Codec ID: V_MS/VFW/FOURCC CodecPrivate, length 40 (FourCC: FFV1, 0x31564646) I have also found that if I then run the output through mkvalidator I get an outcome that "the file appears to be valid", but do receive an error "WRN0C0: First Block for video track #1 in Cluster at 1638670 is not a keyframe". The warning is removed by running "mkvmerge --remux filefromffmpeg.mkv outfile.mkv" after ffmpeg. Dave Rice avpreserve.com From it at sca-uk.com Fri Jun 10 20:00:32 2011 From: it at sca-uk.com (Steve) Date: Fri, 10 Jun 2011 15:00:32 -0300 Subject: [FFmpeg-user] Codecs and containers. In-Reply-To: References: Message-ID: <6A4AF26B0EA44C989CCCAA9BA8186A1E@SACWS001> Hi Dave, >FFmpeg can generate a Matroska file with FFV1 video. There isn't a custom Matroska codec ID for FFV1 but the file ffmpeg makes uses: >Codec ID: V_MS/VFW/FOURCC Thanks for this. Do you think it's a good combination for a lossless, copyright-free, cross-platform video? What would you recommend? Secondly, I thought ffv1 *was* the codec, am I missing something? What is the difference between codec id and codec? Thanks Steve From dave at avpreserve.com Fri Jun 10 20:25:54 2011 From: dave at avpreserve.com (Dave Rice) Date: Fri, 10 Jun 2011 14:25:54 -0400 Subject: [FFmpeg-user] Codecs and containers. In-Reply-To: <6A4AF26B0EA44C989CCCAA9BA8186A1E@SACWS001> References: <6A4AF26B0EA44C989CCCAA9BA8186A1E@SACWS001> Message-ID: Hi Steve, On Jun 10, 2011, at 2:00 PM, Steve wrote: >> FFmpeg can generate a Matroska file with FFV1 video. There isn't a custom > Matroska codec ID for FFV1 but the file ffmpeg makes uses: >> Codec ID: V_MS/VFW/FOURCC > > Thanks for this. > > Do you think it's a good combination for a lossless, copyright-free, > cross-platform video? There are probably others here (and on Matroska-devel) that can answer better than I, but: lossless: ffv1 is lossless and probably supports the most comprehensive list of pixel formats of ffmpeg's lossless video options, copyright-free: ffv1.c says "Copyright (c) 2003 Michael Niedermayer" licensed under LGPL v2.1 or later cross-platform: ffmpeg and mkvtoolnix are cross-platform. There are cross-platform players (mplayer, vlc, etc) that will play ffv1 in mkv. > What would you recommend? For the three criteria you mention above it seems to meet the set of standards. You could also consider huffyuv or jpeg2000. As far as I know the combination of MKV and ffv1 seems rare but offers a lot of potential. I made up a sample file that utilizes lossless 10 bit yuv 4:2:2, Matroska attachments, and a mix of official and unofficial matroska tags here: http://www.avpreserve.com/pres_metadata_sample_20110608.mkv. > Secondly, I thought ffv1 *was* the codec, am I missing something? What is > the difference between codec id and codec? See http://matroska.org/technical/specs/codecid/index.html. Matroska defines specific codecID for some codecs with V_MS/VFW/FOURCC + private codec data used for things off the list. Dave > Thanks > > Steve > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From rcoursey at gmail.com Sat Jun 11 17:06:38 2011 From: rcoursey at gmail.com (magic-chef) Date: Sat, 11 Jun 2011 08:06:38 -0700 (PDT) Subject: [FFmpeg-user] Issues with conversion Message-ID: <1307804798460-3590626.post@n4.nabble.com> I am new to ff* and am trying to convert files for a website. The files are from users who wish to post their own videos. When I convert files to .ogg I do not get any sound. I am including the CLI results from the conversion: /usr/bin/ffmpeg -i /home/goal_v_rochester-YTMOV.mov -ab 5600 -ar 22050 /home/goal_v_rochester-YTMOV.ogg FFmpeg version r11872+debian_0.svn20080206-18+lenny3, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-gpl --enable-libfaad --enable-pp --enable-swscaler --enable-x11grab --prefix=/usr --enable-libgsm --enable-libtheora --enable-libvorbis --enable-pthreads --disable-strip --enable-libdc1394 --disable-armv5te --disable-armv6 --disable-altivec --disable-vis --enable-shared --disable-static libavutil version: 49.6.0 libavcodec version: 51.50.0 libavformat version: 52.7.0 libavdevice version: 52.0.0 built on Feb 13 2011 03:56:05, gcc: 4.3.2 Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 29.97 (30000/1001) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/goal_v_rochester-YTMOV.mov': Duration: 00:01:06.7, start: 0.000000, bitrate: 1351 kb/s Stream #0.0(eng): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 29.97 tb(r) Stream #0.1(eng): Audio: mpeg4aac, 44100 Hz, stereo Output #0, ogg, to '/home/goal_v_rochester-YTMOV.ogg': Stream #0.0(eng): Video: libtheora, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 29.97 tb(c) Stream #0.1(eng): Audio: flac, 22050 Hz, stereo, 5 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding frame= 2001 fps= 79 q=0.0 Lsize= 5506kB time=66.7 bitrate= 676.7kbits/s video:2258kB audio:3153kB global headers:3kB muxing overhead 1.704861% If this is a basic issue I apologize in advance for my lack of knowledge. Also, when I try to convert to an .mp4 I get the following: /usr/bin/ffmpeg -i /home/goal_v_rochester-YTMOV.mov -ab 5600 -ar 22050 /home/pcsports/public_html/Test_Upload/testconvert/goal_v_rochester-YTMOV.mp4 FFmpeg version r11872+debian_0.svn20080206-18+lenny3, Copyright (c) 2000-2008 Fabrice Bellard, et al. configuration: --enable-gpl --enable-libfaad --enable-pp --enable-swscaler --enable-x11grab --prefix=/usr --enable-libgsm --enable-libtheora --enable-libvorbis --enable-pthreads --disable-strip --enable-libdc1394 --disable-armv5te --disable-armv6 --disable-altivec --disable-vis --enable-shared --disable-static libavutil version: 49.6.0 libavcodec version: 51.50.0 libavformat version: 52.7.0 libavdevice version: 52.0.0 built on Feb 13 2011 03:56:05, gcc: 4.3.2 Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 29.97 (30000/1001) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/goal_v_rochester-YTMOV.mov': Duration: 00:01:06.7, start: 0.000000, bitrate: 1351 kb/s Stream #0.0(eng): Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 29.97 tb(r) Stream #0.1(eng): Audio: mpeg4aac, 44100 Hz, stereo Output #0, mp4, to '/home/goal_v_rochester-YTMOV.mp4': Stream #0.0(eng): Video: 0x0000, yuv420p, 320x240 [PAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 29.97 tb(c) Stream #0.1(eng): Audio: 0x0000, 22050 Hz, stereo, 5 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Unsupported codec for output stream #0.0 Thanks inadvance! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issues-with-conversion-tp3590626p3590626.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From bahamutzero8825 at gmail.com Sat Jun 11 17:20:36 2011 From: bahamutzero8825 at gmail.com (Andrew Berg) Date: Sat, 11 Jun 2011 10:20:36 -0500 Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <1307804798460-3590626.post@n4.nabble.com> References: <1307804798460-3590626.post@n4.nabble.com> Message-ID: <4DF387C4.1060300@gmail.com> On 2011.06.11 10:06 AM, magic-chef wrote: > I am including the CLI > results from the conversion: You don't specify any -vcodec or -acodec. How is FFmpeg supposed to know which encoders to use? From etienne.buira.lists at free.fr Sat Jun 11 17:44:36 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Sat, 11 Jun 2011 17:44:36 +0200 Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <1307804798460-3590626.post@n4.nabble.com> References: <1307804798460-3590626.post@n4.nabble.com> Message-ID: <20110611154436.GJ28878@epicure.lazyet.homelinux.net> On Sat, Jun 11, 2011 at 08:06:38AM -0700, magic-chef wrote: > FFmpeg version r11872+debian_0.svn20080206-18+lenny3, Copyright (c) > 2000-2008 Fabrice Bellard, et al. You version is way too old. The best is to install from git repo. Alternatively, you can find a trusted source that packages it for debian (sorry, I have no links for that). From h.reindl at thelounge.net Sat Jun 11 18:17:08 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 11 Jun 2011 18:17:08 +0200 Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <1307804798460-3590626.post@n4.nabble.com> References: <1307804798460-3590626.post@n4.nabble.com> Message-ID: <4DF39504.8030107@thelounge.net> > FFmpeg version r11872+debian_0.svn20080206-18+lenny3 first you should overthink using a more than 3 years old version and generally the use of debian for ffmpeg since they are sleeping with software-versions > When I convert files to .ogg I do not get any sound. I am including the CLI > results from the conversion: > > /usr/bin/ffmpeg -i /home/goal_v_rochester-YTMOV.mov -ab 5600 -ar 22050 > /home/goal_v_rochester-YTMOV.ogg specify what you really want and not "do anything with my missing input" ffmpeg -i inputfile -f ogg -vcodec libtheora -acodec libvorbis outputfile.ogg for bitrates i am not sure if your museum-version supports -ab 96k -vb 512k as example > Also, when I try to convert to an .mp4 I get the following: > > /usr/bin/ffmpeg -i /home/goal_v_rochester-YTMOV.mov -ab 5600 -ar 22050 > /home/pcsports/public_html/Test_Upload/testconvert/goal_v_rochester-YTMOV.mp4 the same what video-codec? what audio-codec? ffmpeg -i inputfile -f mp4 -vcodec mpeg4 -acodec libfaac outputfile.mp4 for bitrates i am not sure if your museum-version supports -ab 96k -vb 512k as example -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From rcoursey at gmail.com Sat Jun 11 18:44:31 2011 From: rcoursey at gmail.com (magic-chef) Date: Sat, 11 Jun 2011 09:44:31 -0700 (PDT) Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <4DF387C4.1060300@gmail.com> References: <1307804798460-3590626.post@n4.nabble.com> <4DF387C4.1060300@gmail.com> Message-ID: <1307810671980-3590755.post@n4.nabble.com> Thanks for your prompt reply. As I stated I am new to this and was not aware of the need to specify encoders. That said, which encoders do you suggest? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issues-with-conversion-tp3590626p3590755.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From rcoursey at gmail.com Sat Jun 11 18:45:12 2011 From: rcoursey at gmail.com (magic-chef) Date: Sat, 11 Jun 2011 09:45:12 -0700 (PDT) Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <20110611154436.GJ28878@epicure.lazyet.homelinux.net> References: <1307804798460-3590626.post@n4.nabble.com> <20110611154436.GJ28878@epicure.lazyet.homelinux.net> Message-ID: <1307810712527-3590756.post@n4.nabble.com> I forwarded your comments to the hosting company. Thanks! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issues-with-conversion-tp3590626p3590756.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From h.reindl at thelounge.net Sat Jun 11 19:09:08 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 11 Jun 2011 19:09:08 +0200 Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <1307810671980-3590755.post@n4.nabble.com> References: <1307804798460-3590626.post@n4.nabble.com> <4DF387C4.1060300@gmail.com> <1307810671980-3590755.post@n4.nabble.com> Message-ID: <4DF3A134.10005@thelounge.net> Am 11.06.2011 18:44, schrieb magic-chef: > Thanks for your prompt reply. As I stated I am new to this and was not aware > of the need to specify encoders. That said, which encoders do you suggest? do not kill the whole message from your reply because nobody knows for which post your reply on the list is in my message i explicit answered with acodec/vcodec for ogg/mp4 for mp4 i would prefer H264 (libx264) but i guess the same problem with your debian system - not available or stoneold -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From rcoursey at gmail.com Sat Jun 11 19:25:10 2011 From: rcoursey at gmail.com (magic-chef) Date: Sat, 11 Jun 2011 10:25:10 -0700 (PDT) Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <4DF3A134.10005@thelounge.net> References: <1307804798460-3590626.post@n4.nabble.com> <4DF387C4.1060300@gmail.com> <1307810671980-3590755.post@n4.nabble.com> <4DF3A134.10005@thelounge.net> Message-ID: <1307813110233-3590803.post@n4.nabble.com> @ Reindl: I did not kill the message body. It doesn't appear in the message box when I click reply in the browser. Let me know if there is a way to have the original message quoted. I clicked on the reply button for the specific message. Is there something else I can do? I have requested the hosting company to the latest version. Since we are addressing this, what would you suggest be included when the new version is installed? And again, thank you. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issues-with-conversion-tp3590626p3590803.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From h.reindl at thelounge.net Sat Jun 11 19:32:19 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 11 Jun 2011 19:32:19 +0200 Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <1307813110233-3590803.post@n4.nabble.com> References: <1307804798460-3590626.post@n4.nabble.com> <4DF387C4.1060300@gmail.com> <1307810671980-3590755.post@n4.nabble.com> <4DF3A134.10005@thelounge.net> <1307813110233-3590803.post@n4.nabble.com> Message-ID: <4DF3A6A3.4070802@thelounge.net> Am 11.06.2011 19:25, schrieb magic-chef: > @ Reindl: I did not kill the message body. It doesn't appear in the message > box when I click reply in the browser. use a proper mail-client / webmail :-) > Let me know if there is a way to > have the original message quoted. in each normal mail-client simply "reply" and in most webmail-clients too > I have requested the hosting company to the latest version. Since we are > addressing this, what would you suggest be included when the new version is > installed? below my configuration on Fedira 14 x86_64 but thats not at easy as the params looks because you need the depending libraries also in the right version for complile and if have no idea how to build a proper package on debian-like systems ffmpeg version git-N-29954-g33651e3, Copyright (c) 2000-2011 the FFmpeg developers built on May 26 2011 18:52:42 with gcc 4.5.1 20100924 (Red Hat 4.5.1-4) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libvpx --enable-librtmp --enable-avfilter --enable-postproc --enable-swscale --enable-bzlib --enable-zlib --enable-libfreetype --enable-pthreads --enable-fastdiv --enable-pic --enable-libopencv --enable-shared --disable-vdpau --disable-vaapi --disable-hwaccels --disable-static --disable-debug --shlibdir=/usr/lib64 -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From lou at lrcd.com Sat Jun 11 22:59:36 2011 From: lou at lrcd.com (Lou) Date: Sat, 11 Jun 2011 12:59:36 -0800 Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <4DF3A6A3.4070802@thelounge.net> References: <1307804798460-3590626.post@n4.nabble.com> <4DF387C4.1060300@gmail.com> <1307810671980-3590755.post@n4.nabble.com> <4DF3A134.10005@thelounge.net> <1307813110233-3590803.post@n4.nabble.com> <4DF3A6A3.4070802@thelounge.net> Message-ID: <20110611125936.32046fe0@lrcd.com> On Sat, 11 Jun 2011 19:32:19 +0200 Reindl Harald wrote: > > > Am 11.06.2011 19:25, schrieb magic-chef: > > @ Reindl: I did not kill the message body. It doesn't appear in > > the message box when I click reply in the browser. > > use a proper mail-client / webmail :-) > > > Let me know if there is a way to > > have the original message quoted. > > in each normal mail-client simply "reply" and in most webmail-clients > too > > > I have requested the hosting company to the latest version. Since > > we are addressing this, what would you suggest be included when the > > new version is installed? It depends on what you want to do. Since your output was ogg and mp4 in your original post you will at least want: --enable-gpl --enable-libtheora --enable-libvorbis --enable-libx264 > below my configuration on Fedira 14 x86_64 but thats not at easy as > the params looks because you need the depending libraries also in the > right version for complile and if have no idea how to build a proper > package on debian-like systems I recommend this: HOWTO: Install and use the latest FFmpeg and x264 on Ubuntu http://ubuntuforums.org/showthread.php?t=786095 Should work on Debian with a few modifications. Perhaps one of the guides listed for an older Ubuntu version would be more suitable for Debian. > ffmpeg version git-N-29954-g33651e3, Copyright (c) 2000-2011 the > FFmpeg developers built on May 26 2011 18:52:42 with gcc 4.5.1 > 20100924 (Red Hat 4.5.1-4) configuration: --prefix=/usr > --bindir=/usr/bin --datadir=/usr/share/ffmpeg > --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 > --mandir=/usr/share/man --arch=x86_64 --enable-nonfree --enable-gpl > --enable-version3 --enable-libopencore-amrnb > --enable-libopencore-amrwb --enable-version3 --enable-libdc1394 > --enable-libdirac --enable-libfaac --enable-libgsm > --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger > --enable-libspeex --enable-libtheora --enable-libvorbis > --enable-libx264 --enable-libxvid --enable-libvpx --enable-librtmp > --enable-avfilter --enable-postproc --enable-swscale --enable-bzlib > --enable-zlib --enable-libfreetype --enable-pthreads --enable-fastdiv > --enable-pic --enable-libopencv --enable-shared --disable-vdpau > --disable-vaapi --disable-hwaccels --disable-static --disable-debug > --shlibdir=/usr/lib64 Reindl's ./configure is quite impressive, (and contains some redundant options) so don't let that scare you. From h.reindl at thelounge.net Sat Jun 11 23:07:59 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 11 Jun 2011 23:07:59 +0200 Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <20110611125936.32046fe0@lrcd.com> References: <1307804798460-3590626.post@n4.nabble.com> <4DF387C4.1060300@gmail.com> <1307810671980-3590755.post@n4.nabble.com> <4DF3A134.10005@thelounge.net> <1307813110233-3590803.post@n4.nabble.com> <4DF3A6A3.4070802@thelounge.net> <20110611125936.32046fe0@lrcd.com> Message-ID: <4DF3D92F.1020706@thelounge.net> Am 11.06.2011 22:59, schrieb Lou: >> ffmpeg version git-N-29954-g33651e3, Copyright (c) 2000-2011 the >> FFmpeg developers built on May 26 2011 18:52:42 with gcc 4.5.1 >> 20100924 (Red Hat 4.5.1-4) configuration: --prefix=/usr >> --bindir=/usr/bin --datadir=/usr/share/ffmpeg >> --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 >> --mandir=/usr/share/man --arch=x86_64 --enable-nonfree --enable-gpl >> --enable-version3 --enable-libopencore-amrnb >> --enable-libopencore-amrwb --enable-version3 --enable-libdc1394 >> --enable-libdirac --enable-libfaac --enable-libgsm >> --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger >> --enable-libspeex --enable-libtheora --enable-libvorbis >> --enable-libx264 --enable-libxvid --enable-libvpx --enable-librtmp >> --enable-avfilter --enable-postproc --enable-swscale --enable-bzlib >> --enable-zlib --enable-libfreetype --enable-pthreads --enable-fastdiv >> --enable-pic --enable-libopencv --enable-shared --disable-vdpau >> --disable-vaapi --disable-hwaccels --disable-static --disable-debug >> --shlibdir=/usr/lib64 > > Reindl's ./configure is quite impressive, (and contains some redundant > options) so don't let that scare you Hm - what is there redundant? the disabled hwaccel is because ffmpeg runs most time on VMware-Machines and is reducing dependencies - maybe --disable-hwaccels is enough and "--disable-vdpau --disable-vaapi" is implicit, however it works :-) i did not post my cpu-options because you should really know what hardware you are running, since there are two older machines i can not use -msse4.2 :-( --cpu=core2 --extra-cflags='-O6 -march=core2 -mtune=core2 -mmmx -msse2 -msse3 -msse4.1 -fopenmp -mfpmath=sse -fno-delete-null-pointer-checks -fstack-protector -pipe -D_FORTIFY_SOURCE=2' -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From lou at lrcd.com Sat Jun 11 23:29:31 2011 From: lou at lrcd.com (Lou) Date: Sat, 11 Jun 2011 13:29:31 -0800 Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <4DF3D92F.1020706@thelounge.net> References: <1307804798460-3590626.post@n4.nabble.com> <4DF387C4.1060300@gmail.com> <1307810671980-3590755.post@n4.nabble.com> <4DF3A134.10005@thelounge.net> <1307813110233-3590803.post@n4.nabble.com> <4DF3A6A3.4070802@thelounge.net> <20110611125936.32046fe0@lrcd.com> <4DF3D92F.1020706@thelounge.net> Message-ID: <20110611132931.2e46591c@lrcd.com> On Sat, 11 Jun 2011 23:07:59 +0200 Reindl Harald wrote: > > Am 11.06.2011 22:59, schrieb Lou: > > >> ffmpeg version git-N-29954-g33651e3, Copyright (c) 2000-2011 the > >> FFmpeg developers built on May 26 2011 18:52:42 with gcc 4.5.1 > >> 20100924 (Red Hat 4.5.1-4) configuration: --prefix=/usr > >> --bindir=/usr/bin --datadir=/usr/share/ffmpeg > >> --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 > >> --mandir=/usr/share/man --arch=x86_64 --enable-nonfree --enable-gpl > >> --enable-version3 --enable-libopencore-amrnb > >> --enable-libopencore-amrwb --enable-version3 --enable-libdc1394 > >> --enable-libdirac --enable-libfaac --enable-libgsm > >> --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger > >> --enable-libspeex --enable-libtheora --enable-libvorbis > >> --enable-libx264 --enable-libxvid --enable-libvpx --enable-librtmp > >> --enable-avfilter --enable-postproc --enable-swscale --enable-bzlib > >> --enable-zlib --enable-libfreetype --enable-pthreads > >> --enable-fastdiv --enable-pic --enable-libopencv --enable-shared > >> --disable-vdpau --disable-vaapi --disable-hwaccels > >> --disable-static --disable-debug --shlibdir=/usr/lib64 > > > > Reindl's ./configure is quite impressive, (and contains some > > redundant options) so don't let that scare you > > Hm - what is there redundant? Just a few unimportant things: VAAPI and VDPAU are disabled by default, IIRC. --enable-version3 is listed twice. --enable-pthreads, --enable-zlib, --enable-bzlib are autodetected > the disabled hwaccel is because ffmpeg runs most time on > VMware-Machines and is reducing dependencies - maybe > --disable-hwaccels is enough and "--disable-vdpau --disable-vaapi" is > implicit, however it works :-) > > i did not post my cpu-options because you should really know what > hardware you are running, since there are two older machines i can > not use -msse4.2 :-( > > --cpu=core2 --extra-cflags='-O6 -march=core2 -mtune=core2 -mmmx > -msse2 -msse3 -msse4.1 -fopenmp -mfpmath=sse > -fno-delete-null-pointer-checks -fstack-protector -pipe > -D_FORTIFY_SOURCE=2' From h.reindl at thelounge.net Sat Jun 11 23:36:09 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Sat, 11 Jun 2011 23:36:09 +0200 Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <20110611132931.2e46591c@lrcd.com> References: <1307804798460-3590626.post@n4.nabble.com> <4DF387C4.1060300@gmail.com> <1307810671980-3590755.post@n4.nabble.com> <4DF3A134.10005@thelounge.net> <1307813110233-3590803.post@n4.nabble.com> <4DF3A6A3.4070802@thelounge.net> <20110611125936.32046fe0@lrcd.com> <4DF3D92F.1020706@thelounge.net> <20110611132931.2e46591c@lrcd.com> Message-ID: <4DF3DFC9.9020209@thelounge.net> Am 11.06.2011 23:29, schrieb Lou: > Just a few unimportant things: > VAAPI and VDPAU are disabled by default, IIRC OK, but better do it explicit, defaults sometimes are changing :-) > --enable-version3 is listed twice what the hell - you are right! > --enable-pthreads, --enable-zlib, --enable-bzlib are autodetected i do not love autodetecting since i am developer and konw how often this which are happening automatically are doing the wrong :-) thank you for the hint of multiple "--enable-version3" -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From fturco at fastmail.fm Sun Jun 12 13:53:28 2011 From: fturco at fastmail.fm (Francesco Turco) Date: Sun, 12 Jun 2011 13:53:28 +0200 Subject: [FFmpeg-user] Automatically scaling videos and adding padding Message-ID: <1307879608.2391.1462229145@webmail.messagingengine.com> Hello, I need to convert some random videos to MPEG files with a 720x576 resolution in order for my TV decoder to play them. That is, I usually need to scale movies and add padding because source files are almost never 720x576 already. For now, I use the following command: ffmpeg -i input.avi -b 1536k -ab 192k -vf scale='gte(iw/ih\,720/576)*720+lt(iw/ih\,720/576)*((576*iw)/ih):lte(iw/ih\,720/576)*576+gt(iw/ih\,720/576)*((720*ih)/iw)',pad='720:576:(720-gte(iw/ih\,720/576)*720-lt(iw/ih\,720/576)*((576*iw)/ih))/2:(576-lte(iw/ih\,720/576)*576-gt(iw/ih\,720/576)*((720*ih)/iw))/2:black' -acodec mp2 -vcodec mpeg2video -f mpeg -r 25 -ar 48k output.mpeg As you can see, the main problem is the -vf option, which is by far too complex. In plain English, it does the following things: - It automatically scales the source video in order for it to be put inside a 720x576 rectangle without altering its original aspect ratio (at this point the video is less than or equal to 720 pixels in width and less than or equal to 576 pixels in height) - It automatically adds padding around the scaled video, either at top/bottom or at left/right, because the output file should be 720x576 exactly The basic idea is that iw/ih is the aspect ratio of the source file, which is compared to 720/576, the desired aspect ratio. There are three possibilities: iw/ih is less than, equal to or greater than 720/576. Each case is treated separately, both when scaling the video and when adding padding. My question is: there is some other way to accomplish this? A better formula perhaps? Thank you. From dev at rarevision.com Sun Jun 12 14:40:37 2011 From: dev at rarevision.com (Thomas Worth) Date: Sun, 12 Jun 2011 05:40:37 -0700 Subject: [FFmpeg-user] Detect if an MTS file is interlaced or not? In-Reply-To: References: Message-ID: On Wed, Jun 8, 2011 at 2:13 AM, Thomas Worth wrote: > I'd like to know if there's a way to tell if an MTS file is > interlaced, preferably without having to decode it first. The problem > I have is that libav always returns 59.94 for the frame rate of > interlaced NTSC streams, even though we know it's 29.97. And of > course, r_frame_rate always returns 0 with the "mpegts" format so I am > left to calculate the frame count manually. I need the correct frame > rate to do this, however and there's no way of telling ahead of time > whether the input video will be interlaced or not. Any ideas? > Sorry to nag, but I didn't get a response to this. All I need is a way to determine whether an input MTS file (with an H.264 stream) is interlaced or not. I thought this could be accomplished by reading values from the MTS format context, but I've had no luck. I even tried decoding an AVFrame and reading the avframe->interlaced_frame value, but it did not report the frame as interlaced even though the video is indeed interlaced (comments in avcodec.h say this value is set by the decoder). Obviously VLC is playing the file back at its intended frame rate even though the frame rate reported by avformat is 59.94 (the actual frame, not field rate should be 29.97). Where is it getting this information? It doesn't seem to be getting it from r_frame_rate, since that is always double the playback rate with MTS it seems. From stefano.sabatini-lala at poste.it Sun Jun 12 20:20:51 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Sun, 12 Jun 2011 20:20:51 +0200 Subject: [FFmpeg-user] Automatically scaling videos and adding padding In-Reply-To: <1307879608.2391.1462229145@webmail.messagingengine.com> References: <1307879608.2391.1462229145@webmail.messagingengine.com> Message-ID: <20110612182051.GA14960@geppetto> On date Sunday 2011-06-12 13:53:28 +0200, Francesco Turco encoded: > Hello, > > I need to convert some random videos to MPEG files with a 720x576 > resolution in order for my TV decoder to play them. That is, I usually > need to scale movies and add padding because source files are almost > never 720x576 already. For now, I use the following command: > > ffmpeg -i input.avi -b 1536k -ab 192k -vf > scale='gte(iw/ih\,720/576)*720+lt(iw/ih\,720/576)*((576*iw)/ih):lte(iw/ih\,720/576)*576+gt(iw/ih\,720/576)*((720*ih)/iw)',pad='720:576:(720-gte(iw/ih\,720/576)*720-lt(iw/ih\,720/576)*((576*iw)/ih))/2:(576-lte(iw/ih\,720/576)*576-gt(iw/ih\,720/576)*((720*ih)/iw))/2:black' > -acodec mp2 -vcodec mpeg2video -f mpeg -r 25 -ar 48k output.mpeg > > As you can see, the main problem is the -vf option, which is by far too > complex. In plain English, it does the following things: > > - It automatically scales the source video in order for it to be put > inside a 720x576 rectangle without altering its original aspect ratio > (at this point the video is less than or equal to 720 pixels in width > and less than or equal to 576 pixels in height) > - It automatically adds padding around the scaled video, either at > top/bottom or at left/right, because the output file should be 720x576 > exactly > > The basic idea is that iw/ih is the aspect ratio of the source file, > which is compared to 720/576, the desired aspect ratio. There are three > possibilities: iw/ih is less than, equal to or greater than 720/576. > Each case is treated separately, both when scaling the video and when > adding padding. > > My question is: there is some other way to accomplish this? A better > formula perhaps? gte(iw/ih\,720/576)*720+lt(iw/ih\,720/576)*((576*iw)/ih) iw/ih = a gte(a\,720/576)*720+lt(a\,720/576)*(576*a) this could be better expressed as: if(gte(a,720/576)\, 720\, 576*a) unfortunately we don't support if(cond,expr1,expr2), patches are welcome ;-). -- ffmpeg-user random tip #20 VHOOK has been removed, check out libavfilter: http://wiki.multimedia.cx/index.php?title=Libavfilter From fabian at lesniak-it.de Sun Jun 12 22:33:24 2011 From: fabian at lesniak-it.de (Fabian Lesniak) Date: Sun, 12 Jun 2011 13:33:24 -0700 (PDT) Subject: [FFmpeg-user] "mmco: unref short failure" since ffmpeg/x264 syntax change Message-ID: <1307910804682-3592555.post@n4.nabble.com> When playing any file encoded with a syntax similar to the following: ffmpeg -i input.mpg -vcodec libx264 -b 1200k -preset slow -tune film -pass 1 -an -f rawvideo -y /dev/null ffmpeg -i input.mpg -vcodec libx264 -b 1200k -preset slow -tune film -pass 2 -acodec libmp3lame -ac 2 -ab 128k output.avi I get errors from mplayer/vlc/ffplay when seeking in the video: ffplay: ffplay version GIT-r201106041541, Copyright (c) 2003-2011 the FFmpeg developers built on Jun 4 2011 15:38:01 with gcc 4.5.1 20101208 [gcc-4_5-branch revision 167585] configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-postproc --enable-gpl --enable-x11grab --extra-cflags='-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-debug --disable-stripping --enable-libgsm --enable-libschroedinger --enable-libdirac --enable-avfilter --enable-libvpx --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libdc1394 --enable-pthreads --enable-librtmp libavutil 51. 4. 0 / 51. 4. 0 libavcodec 53. 6. 1 / 53. 6. 1 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 1. 0 / 53. 1. 0 libavfilter 2. 12. 0 / 2. 12. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 [avi @ 0x6b5760] max_analyze_duration 5000000 reached at 5000000 Input #0, avi, from 'output.avi': Metadata: encoder : Lavf53.2.0 Duration: 01:37:04.84, start: 0.000000, bitrate: 1364 kb/s Stream #0.0: Video: h264 (High), yuv420p, 704x380 [PAR 1:1 DAR 176:95], 25 fps, 25 tbr, 25 tbn, 50 tbc Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s [h264 @ 0x6b3c00] mmco: unref short failure78KB sq= 0B f=0/0 f=0/0 280.08 A-V: 0.002 s:0.0 aq= 320KB vq= 2012KB sq= 0B f=0/0 Last message repeated 18 times I can also provide mplayer/vlc/ffmpeg output if you need. AFAIK, "unref"-errors are somehow related to reference frames, but I don't know what to do about it. This problem occurs since the syntax change of ffmpeg ("-vpre" to "-preset" & "-tune"). I'm not experiencing any playback issues (no crippled frames or the like) and the errors won't occur when I do not seek in the stream. Other containers (I tried mkv) won't do anything about it. Best regards, Fabian -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/mmco-unref-short-failure-since-ffmpeg-x264-syntax-change-tp3592555p3592555.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From h.reindl at thelounge.net Mon Jun 13 02:10:46 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 13 Jun 2011 02:10:46 +0200 Subject: [FFmpeg-user] problem build "oldabi" under Feodra 15 Message-ID: <4DF55586.1030000@thelounge.net> hm - with "oldabi" i get this error /home/builduser/rpmbuild/BUILD/ffmpeg-20110613/libavfilter/vf_libopencv.c:29:28: fatal error: opencv/cxtypes.h: No such file or directory ______________ fetching head results in missing dependencies of vlc and other packages from rpmfusion i have really no idea what they are cooking sometimes 0.6.90.0.2.rc0 for their own can simply not be true on the other hand they rely on x264 ABI 114, ffmpeg heads hangs on 115 my x264 is 115, hacked to 114 in x264.h and tthis works even for Fedora 13 i wll try the source-tarball from rpmfusion, but guess it is older than the latest "newabi"-snapshot :-( -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From h.reindl at thelounge.net Mon Jun 13 02:26:21 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 13 Jun 2011 02:26:21 +0200 Subject: [FFmpeg-user] problem build "oldabi" under Feodra 15 In-Reply-To: <4DF55586.1030000@thelounge.net> References: <4DF55586.1030000@thelounge.net> Message-ID: <4DF5592D.6090405@thelounge.net> sorry i forgot: Fedora 14: opencv-devel-2.1.0-6.fc14.x86_64 (OK) Fedora 15: opencv-devel-2.2.0-3.fc15.x86_64 (FAILS) Am 13.06.2011 02:10, schrieb Reindl Harald: > hm - with "oldabi" i get this error > > /home/builduser/rpmbuild/BUILD/ffmpeg-20110613/libavfilter/vf_libopencv.c:29:28: fatal error: opencv/cxtypes.h: No > such file or directory > ______________ > > fetching head results in missing dependencies of vlc and other packages from rpmfusion > i have really no idea what they are cooking sometimes > 0.6.90.0.2.rc0 for their own can simply not be true > > on the other hand they rely on x264 ABI 114, ffmpeg heads hangs on 115 > my x264 is 115, hacked to 114 in x264.h and tthis works even for Fedora 13 > > i wll try the source-tarball from rpmfusion, but guess it is older than > the latest "newabi"-snapshot :-( > > > > > _______________________________________________ > 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: 261 bytes Desc: OpenPGP digital signature URL: From dashing.meng at gmail.com Mon Jun 13 03:27:20 2011 From: dashing.meng at gmail.com (littlebat) Date: Mon, 13 Jun 2011 09:27:20 +0800 Subject: [FFmpeg-user] Automatically scaling videos and adding padding In-Reply-To: <20110612182051.GA14960@geppetto> References: <1307879608.2391.1462229145@webmail.messagingengine.com> <20110612182051.GA14960@geppetto> Message-ID: <20110613092720.32f65653.dashing.meng@gmail.com> On Sun, 12 Jun 2011 20:20:51 +0200 Stefano Sabatini wrote: > On date Sunday 2011-06-12 13:53:28 +0200, Francesco Turco encoded: > > Hello, > > > > I need to convert some random videos to MPEG files with a 720x576 > > resolution in order for my TV decoder to play them. That is, I > > usually need to scale movies and add padding because source files > > are almost never 720x576 already. For now, I use the following > > command: > > > > ffmpeg -i input.avi -b 1536k -ab 192k -vf > > scale='gte(iw/ih\,720/576)*720+lt(iw/ih\,720/576)*((576*iw)/ih):lte > > (iw/ih\,720/576)*576+gt(iw/ih\,720/576)*((720*ih)/iw)',pad='720:576: > > (720-gte(iw/ih\,720/576)*720-lt(iw/ih\,720/576)*((576*iw)/ih))/2: > > (576-lte(iw/ih\,720/576)*576-gt(iw/ih\,720/576)* > > ((720*ih)/iw))/2:black' -acodec mp2 -vcodec mpeg2video -f mpeg -r > > 25 -ar 48k output.mpeg > > > > As you can see, the main problem is the -vf option, which is by far > > too complex. In plain English, it does the following things: > > > > - It automatically scales the source video in order for it to be put > > inside a 720x576 rectangle without altering its original aspect > > ratio (at this point the video is less than or equal to 720 pixels > > in width and less than or equal to 576 pixels in height) > > - It automatically adds padding around the scaled video, either at > > top/bottom or at left/right, because the output file should be > > 720x576 exactly > > > > The basic idea is that iw/ih is the aspect ratio of the source file, > > which is compared to 720/576, the desired aspect ratio. There are > > three possibilities: iw/ih is less than, equal to or greater than > > 720/576. Each case is treated separately, both when scaling the > > video and when adding padding. > > > > My question is: there is some other way to accomplish this? A better > > formula perhaps? > > gte(iw/ih\,720/576)*720+lt(iw/ih\,720/576)*((576*iw)/ih) > > iw/ih = a > gte(a\,720/576)*720+lt(a\,720/576)*(576*a) > > this could be better expressed as: > if(gte(a,720/576)\, 720\, 576*a) > > unfortunately we don't support if(cond,expr1,expr2), patches are > welcome ;-). Why don't calculate with other tool? "bash" or "bc"? Ffmpeg is a video processing tool, calculating shouldn't its main function, I think. >From my personal opinion, ffmpeg should be an all purpose video tool, it should can decode every video format and encode as much format as it can. I don't think ffmpeg has reached this level, for example, ffmpeg can not decode video format as much as mencoder can, but, I heard mencoder seem has stoped its development. isn't it? --littlebat From Bradley at NorthTech.US Mon Jun 13 03:54:47 2011 From: Bradley at NorthTech.US (Bradley D. Thornton) Date: Sun, 12 Jun 2011 18:54:47 -0700 Subject: [FFmpeg-user] Sound or Video - but I can't get both to work... Message-ID: <4DF56DE7.3090200@NorthTech.US> -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 I am having problems trying to screencast with audio. I've got a pastebin with example output here: http://pastebin.com/6D8zUxq8 and I've posted that link below too. I've tried both cli (examples below) and recorditnow. When choosing recordmydesktop in recorditnow, I get sound and video (but not very good video). I'm trying to do screencasts with audio and video, mostly of a single xterm window, but some with apps on the desktop in X - no games though. On the cli, with ffmpeg, I either get good sound, or good video, but not both together :( Everything dexcribed below is using ffmpeg on the cli only (which I have come to prefer during this debugging process: I get sound when I do this: ffmpeg -f alsa -i plughw:0 alsaout.wav (does not work with just hw:0 though) I get video but no sound when I do this: ffmpeg -f alsa -i plughw:0,0 -f x11grab -r 25 -s 1440x900 -i :0.0 - -acodec pcm_s16le -vcodec huffyuv -sameq screencast.avi or this: ffmpeg -f alsa -ac 2 -i plughw:0,0 -f x11grab -r 25 -s 1440x900 -i :0.0 - -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 output.mkv - -f oss (gives an error - no device) and I do not have pulse. There is no hw:0,1 hw:0,2 or plughw:0,1 plughw:0,2 - just 0 or 0,0 works in the command line, but no sound when I do video. I get various errors like: [alsa @ 0x63a4f0]ALSA buffer xrun. but all with "alsa buffer xrun." when i try video and sound. I found: http://www.alsa-project.org/main/index.php/XRUN_Debug but got this: # echo 1 > /proc/asound/card0/pcm0p/xrun_debug - -bash: /proc/asound/card0/pcm0p/xrun_debug: No such file or directory So I looked: # ls /proc/asound NVidia@ card0/ cards devices hwdep modules oss/ pcm seq/ timers version # ls /proc/asound/card0 codec#0 id oss_mixer pcm0c/ pcm0p/ pcm1p/ # ls /proc/asound/card0/pcm0p info oss sub0/ # ls /proc/asound/card0/pcm0p/info /proc/asound/card0/pcm0p/info # cat /proc/asound/card0/pcm0p/info card: 0 device: 0 subdevice: 0 stream: PLAYBACK id: CONEXANT Analog name: CONEXANT Analog subname: subdevice #0 class: 0 subclass: 0 subdevices_count: 1 subdevices_avail: 0 NVidia@ is a symlink to card0. I have an HP DV9000 laptop w/2GB RAM. I am running KDE on Slackware64 13.1. I want to screencast, mostly things I do in the xterm, but also my desktop apps - no games, just tutorial like stuff. Can you help me to figure out how I can make my screencasts work? Thank you so much in advance if you can :) I've got a pastebin with example output here: http://pastebin.com/6D8zUxq8 So far I haven't had much success in chan #ffmpeg on freenode, but I'm still there, being hopeful, but perhaps it's time to bring this to the more comprehensive community - besides, once I get this working I'm going to want to see everyone elses tips and tweaks too :) - -- Bradley D. Thornton Manager Network Services NorthTech Computer TEL: +1.760.666.2703 (US) TEL: +44.203.318.2755 (UK) http://NorthTech.US -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Find this cert at x-hkp://pool.sks-keyservers.net iQEcBAEBAwAGBQJN9W3mAAoJEE1wgkIhr9j3B04H/1xX+e6c1hIs+jWv8XJhD0Fo zoS92pQZMiQY8FRHkHJd6TOxwxT6Pwvy9Zlo5oKUde2nrCjon07PyX8pnaC4Cv6K U9v46moypHzUYaqKc6sAy9LGcB56vfCMzdQ/cXA9NlG16rwQawSPA8w/UU42AW1B Daw9p/Wht+7xQp/Jr1WM6rlM8RjVltKYcJhXfzjaI3qMhb5SjMzfSEc90WiIoyqz 7b8fl01HLPTnw9S8gDyxkbI9lff0/kWNfkZtpmCyUibcMSePiX3pTsHluOY5/Msg 96oqz6EnC43XQXOCmgztto1jPifJZZKa2XRffvT9Y3JWpBrzqcU6jV9XQmr+3ZU= =LI1R -----END PGP SIGNATURE----- From h.reindl at thelounge.net Mon Jun 13 03:58:06 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 13 Jun 2011 03:58:06 +0200 Subject: [FFmpeg-user] Sound or Video - but I can't get both to work... In-Reply-To: <4DF56DE7.3090200@NorthTech.US> References: <4DF56DE7.3090200@NorthTech.US> Message-ID: <4DF56EAE.9080401@thelounge.net> Am 13.06.2011 03:54, schrieb Bradley D. Thornton: > I get video but no sound when I do this: > > ffmpeg -f alsa -i plughw:0,0 -f x11grab -r 25 -s 1440x900 -i :0.0 > -acodec pcm_s16le -vcodec huffyuv -sameq screencast.avi > > or this: > > ffmpeg -f alsa -ac 2 -i plughw:0,0 -f x11grab -r 25 -s 1440x900 -i :0.0 > -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 > output.mkv > > -f oss (gives an error - no device) and I do not have pulse. why do you specifiy params before "-i"? these are normally for the input-file and i guess ffmpeg will in most cases know better what the input is -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From Bradley at NorthTech.US Mon Jun 13 04:11:26 2011 From: Bradley at NorthTech.US (Bradley D. Thornton) Date: Sun, 12 Jun 2011 19:11:26 -0700 Subject: [FFmpeg-user] Sound or Video - but I can't get both to work... In-Reply-To: <4DF56EAE.9080401@thelounge.net> References: <4DF56DE7.3090200@NorthTech.US> <4DF56EAE.9080401@thelounge.net> Message-ID: <4DF571CE.6080003@NorthTech.US> -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 On 06/12/2011 06:58 PM, Reindl Harald wrote: > > > Am 13.06.2011 03:54, schrieb Bradley D. Thornton: > >> I get video but no sound when I do this: >> >> ffmpeg -f alsa -i plughw:0,0 -f x11grab -r 25 -s 1440x900 -i :0.0 >> -acodec pcm_s16le -vcodec huffyuv -sameq screencast.avi >> >> or this: >> >> ffmpeg -f alsa -ac 2 -i plughw:0,0 -f x11grab -r 25 -s 1440x900 -i :0.0 >> -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 >> output.mkv >> >> -f oss (gives an error - no device) and I do not have pulse. > > why do you specifiy params before "-i"? > these are normally for the input-file and i guess > ffmpeg will in most cases know better what the input is That's what the tutorial here: http://verb3k.wordpress.com/2010/01/26/how-to-do-proper-screencasts-on-linux/ gave as examples, and also what other people were offering up. I get the following errors when I try your suggestion with the corresponding command: ffmpeg -i plughw:0 -f x11grab -r 25 -s 1440x900 -i :0.0 -acodec pcm_s16le -vcodec huffyuv -sameq screencast.avi FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers built on Feb 3 2011 00:17:04 with gcc 4.4.4 configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 - --mandir=/usr/man --enable-libmp3lame --enable-libfaac --enable-nonfree - --enable-gpl --enable-version3 --enable-postproc --enable-avfilter - --enable-libdc1394 --enable-libfaad --enable-libgsm - --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp - --enable-libschroedinger --enable-libspeex --enable-libtheora - --enable-libvpx --enable-libx264 --enable-runtime-cpudetect - --enable-vaapi --disable-vdpau --enable-memalign-hack --enable-pthreads - --enable-x11grab --enable-bzlib --enable-zlib --enable-shared - --enable-static --disable-debug --arch=x86_64 --enable-pic - --extra-cflags='-I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include - -DRUNTIME_CPUDETECT' - --extra-ldflags='-L/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib64 -lssl - -lcrypto -lz -lusb' libavutil 50.15. 1 / 50.15. 1 libavcodec 52.73. 2 / 52.73. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 plughw:0,0: No such file or directory And I only removed the first -f for the audio device. I get the same error when I remove both -f parameters, although it doesn't make sense to me why I would not have them there anyway, and even if they were optional to specify, why it would be better not to? > > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user - -- Bradley D. Thornton Manager Network Services NorthTech Computer TEL: +1.760.666.2703 (US) TEL: +44.203.318.2755 (UK) http://NorthTech.US -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Find this cert at x-hkp://pool.sks-keyservers.net iQEcBAEBAwAGBQJN9XHOAAoJEE1wgkIhr9j3LpUIAKQhB4mkGZcxPADrSJrR3Xit baYuDqDP7nEwV9jzq1ju4MCJ4u4onYg1gf6cbcNS7QBEhtOdMVAmY7l0153UvoCX lg5NLok4d3YQDQKaUsjkJjJHB7mlXgLfBi5BidSPZb/iU1Xz22Y1iYQESSFmUJy2 U1QImsNXismHOjln2l5BXblroc8M+5qBcZk2J3tdRNXiOWXI07xjZxvb5/5rj7dl rNjvGU1IdZL3z+lmptsrl74YoIPybcnYCLJ/ViMdJHvXfxkZ6Ee/NED+hkZe06iX F0rfrB8PLQgdC6TmMoFY4fV1gbQLyRtfTIfBGYbkQt/IuzKyEG9ZbztcPz2AcGg= =dbJh -----END PGP SIGNATURE----- From fturco at fastmail.fm Mon Jun 13 10:07:50 2011 From: fturco at fastmail.fm (Francesco Turco) Date: Mon, 13 Jun 2011 10:07:50 +0200 Subject: [FFmpeg-user] Automatically scaling videos and adding padding In-Reply-To: <20110613092720.32f65653.dashing.meng@gmail.com> References: <1307879608.2391.1462229145@webmail.messagingengine.com><20110612182051.GA14960@geppetto><20110613092720.32f65653.dashing.meng@gmail.com> Message-ID: <1307952470.22304.1462474977@webmail.messagingengine.com> > Why don't calculate with other tool? "bash" or "bc"? Ffmpeg is a video > processing tool, calculating shouldn't its main function, I think. Yes, I could do as you suggest, but that way I have to manually tell the bash script the resolution of the source video. FFmpeg, instead, is able to determine it automatically, and provides the iw/ih variables which are very handy. From stefano.sabatini-lala at poste.it Mon Jun 13 10:50:43 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Mon, 13 Jun 2011 10:50:43 +0200 Subject: [FFmpeg-user] problem build "oldabi" under Feodra 15 In-Reply-To: <4DF55586.1030000@thelounge.net> References: <4DF55586.1030000@thelounge.net> Message-ID: <20110613085043.GA13903@geppetto> On date Monday 2011-06-13 02:10:46 +0200, Reindl Harald encoded: > hm - with "oldabi" i get this error > > /home/builduser/rpmbuild/BUILD/ffmpeg-20110613/libavfilter/vf_libopencv.c:29:28: fatal error: opencv/cxtypes.h: No > such file or directory Try to apply this patch (already applied to git master): commit f1b3f33d48b366dd7b3b915b4de90d9ad4c4ae39 Author: Stefano Sabatini Date: Fri May 20 11:36:16 2011 +0200 vf_libopencv: prefer opencv/cxcore.h over cxtypes.h Require the presence of opencv/cxcore.h in place of opencv/cxtypes.h, which has been removed. Fix compilation with libopencv > 2.1.0. Fix trac issue #221. diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c index 55e0a7f..b789c8e 100644 --- a/libavfilter/vf_libopencv.c +++ b/libavfilter/vf_libopencv.c @@ -26,7 +26,7 @@ /* #define DEBUG */ #include -#include +#include #include "libavutil/avstring.h" #include "libavutil/file.h" #include "avfilter.h" -- ffmpeg-user random tip #6 Please follow netiquette rules while posting to ffmpeg-user: http://linux.sgms-centre.com/misc/netiquette.php From fabian at lesniak-it.de Mon Jun 13 11:03:00 2011 From: fabian at lesniak-it.de (Fabian Lesniak) Date: Mon, 13 Jun 2011 11:03:00 +0200 Subject: [FFmpeg-user] Automatically scaling videos and adding padding In-Reply-To: <1307952470.22304.1462474977@webmail.messagingengine.com> References: <1307879608.2391.1462229145@webmail.messagingengine.com> <20110613092720.32f65653.dashing.meng@gmail.com> <1307952470.22304.1462474977@webmail.messagingengine.com> Message-ID: <201106131103.00427.fabian@lesniak-it.de> Am Montag, 13. Juni 2011, 10:07:50 schrieb Francesco Turco: > > Why don't calculate with other tool? "bash" or "bc"? Ffmpeg is a video > > processing tool, calculating shouldn't its main function, I think. > > Yes, I could do as you suggest, but that way I have to manually tell the > bash script the resolution of the source video. FFmpeg, instead, is able > to determine it automatically, and provides the iw/ih variables which > are very handy. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user I wrote some bigger bash script to convert mpeg tv-recordings: This is what I did to get the resolution out of ffmpeg: ffmpeg -i file.avi 2>&1 | grep 'Video:' | awk -F ', ' '{printf $3}' | sed -e 's/\[PAR//g' -e 's/x/:/g' | awk '{printf $1 " " $2}' This gives me the following format: resolutionx:resolutiony parx:pary This is because normally, you also need the PAR to calculate a new PAR 1:1 resolution. From davidkempers at gmail.com Mon Jun 13 12:13:01 2011 From: davidkempers at gmail.com (David Kempers) Date: Mon, 13 Jun 2011 11:13:01 +0100 Subject: [FFmpeg-user] same encode for multiple output Message-ID: Hi guys, Is it possible for ffmpeg to encode an input stream once and have it output to more than one file? I'd like to record from a capture card and write to a file and a tcp connection. The only way i can do this is setting the encode options twice and having ffmpeg encode the input stream twice. David From fabian at lesniak-it.de Mon Jun 13 12:14:04 2011 From: fabian at lesniak-it.de (Fabian Lesniak) Date: Mon, 13 Jun 2011 12:14:04 +0200 Subject: [FFmpeg-user] Sound or Video - but I can't get both to work... In-Reply-To: <4DF571CE.6080003@NorthTech.US> References: <4DF56DE7.3090200@NorthTech.US> <4DF56EAE.9080401@thelounge.net> <4DF571CE.6080003@NorthTech.US> Message-ID: <201106131214.04865.fabian@lesniak-it.de> The problem may be your sound card: AFAIK, you can only record your local playback (PCM) when your sound card supports to set it as a "recording" channel. You may try if you can set capture to your pcm via alsamixer. And specifying the -f parameter before -i is okay in this case, because it tells ffmpeg to not read a file named "hw:0,0" but open hw:0,0 using alsa. You may also try to open the "default" device. I did my last screen capture some time ago, but I noted the following: sox -t alsa "hw:0,0" -t ogg -A -2 -c1 -r44100 - | ffmpeg -i - -f x11grab -s 1280x1024 -g 300 -r 15 -i :0.0 -s 640x512 -ab 128k -ar 44100 -b 1500k -vc mpeg4 out.avi As you can see, I used sox to record audio, but I don't actually know anymore why I did... Am Montag, 13. Juni 2011, 04:11:26 schrieb Bradley D. Thornton: > On 06/12/2011 06:58 PM, Reindl Harald wrote: > > Am 13.06.2011 03:54, schrieb Bradley D. Thornton: > >> I get video but no sound when I do this: > >> > >> ffmpeg -f alsa -i plughw:0,0 -f x11grab -r 25 -s 1440x900 -i :0.0 > >> -acodec pcm_s16le -vcodec huffyuv -sameq screencast.avi > >> > >> or this: > >> > >> ffmpeg -f alsa -ac 2 -i plughw:0,0 -f x11grab -r 25 -s 1440x900 -i :0.0 > >> -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 > >> output.mkv > >> > >> -f oss (gives an error - no device) and I do not have pulse. > > > > why do you specifiy params before "-i"? > > these are normally for the input-file and i guess > > ffmpeg will in most cases know better what the input is > > That's what the tutorial here: > http://verb3k.wordpress.com/2010/01/26/how-to-do-proper-screencasts-on-linu > x/ gave as examples, and also what other people were offering up. > > I get the following errors when I try your suggestion with the > corresponding command: > > > > ffmpeg -i plughw:0 -f x11grab -r 25 -s 1440x900 -i :0.0 -acodec > pcm_s16le -vcodec huffyuv -sameq screencast.avi > > FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers > built on Feb 3 2011 00:17:04 with gcc 4.4.4 > configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 > --mandir=/usr/man --enable-libmp3lame --enable-libfaac --enable-nonfree > --enable-gpl --enable-version3 --enable-postproc --enable-avfilter > --enable-libdc1394 --enable-libfaad --enable-libgsm > --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp > --enable-libschroedinger --enable-libspeex --enable-libtheora > --enable-libvpx --enable-libx264 --enable-runtime-cpudetect > --enable-vaapi --disable-vdpau --enable-memalign-hack --enable-pthreads > --enable-x11grab --enable-bzlib --enable-zlib --enable-shared > --enable-static --disable-debug --arch=x86_64 --enable-pic > --extra-cflags='-I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include > -DRUNTIME_CPUDETECT' > --extra-ldflags='-L/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib64 -lssl > -lcrypto -lz -lusb' > libavutil 50.15. 1 / 50.15. 1 > libavcodec 52.73. 2 / 52.73. 2 > libavformat 52.64. 2 / 52.64. 2 > libavdevice 52. 2. 0 / 52. 2. 0 > libavfilter 1.19. 0 / 1.19. 0 > libswscale 0.11. 0 / 0.11. 0 > libpostproc 51. 2. 0 / 51. 2. 0 > plughw:0,0: No such file or directory > > > > > And I only removed the first -f for the audio device. I get the same > error when I remove both -f parameters, although it doesn't make sense > to me why I would not have them there anyway, and even if they were > optional to specify, why it would be better not to? > > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From fabian at lesniak-it.de Mon Jun 13 12:18:34 2011 From: fabian at lesniak-it.de (Fabian Lesniak) Date: Mon, 13 Jun 2011 12:18:34 +0200 Subject: [FFmpeg-user] same encode for multiple output In-Reply-To: References: Message-ID: <201106131218.34524.fabian@lesniak-it.de> You may simply have a look at the GNU tool tee: ffmpeg -i [...] -f avi - | tee file1.avi >file2.avi Did not test it, but may work. Am Montag, 13. Juni 2011, 12:13:01 schrieb David Kempers: > Hi guys, > > Is it possible for ffmpeg to encode an input stream once and have it output > to more than one file? > > I'd like to record from a capture card and write to a file and a tcp > connection. The only way i can do this is setting the encode options twice > and having ffmpeg encode the input stream twice. > > David > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From Bradley at NorthTech.US Mon Jun 13 12:23:53 2011 From: Bradley at NorthTech.US (Bradley D. Thornton) Date: Mon, 13 Jun 2011 03:23:53 -0700 Subject: [FFmpeg-user] Sound or Video - but I can't get both to work... In-Reply-To: <201106131214.04865.fabian@lesniak-it.de> References: <4DF56DE7.3090200@NorthTech.US> <4DF56EAE.9080401@thelounge.net> <4DF571CE.6080003@NorthTech.US> <201106131214.04865.fabian@lesniak-it.de> Message-ID: <4DF5E539.2070408@NorthTech.US> -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 On 06/13/2011 03:14 AM, Fabian Lesniak wrote: > The problem may be your sound card: AFAIK, you can only record your local > playback (PCM) when your sound card supports to set it as a "recording" > channel. You may try if you can set capture to your pcm via alsamixer. > And specifying the -f parameter before -i is okay in this case, because it > tells ffmpeg to not read a file named "hw:0,0" but open hw:0,0 using alsa. You > may also try to open the "default" device. > I did my last screen capture some time ago, but I noted the following: > > sox -t alsa "hw:0,0" -t ogg -A -2 -c1 -r44100 - | ffmpeg -i - -f x11grab -s > 1280x1024 -g 300 -r 15 -i :0.0 -s 640x512 -ab 128k -ar 44100 -b 1500k -vc > mpeg4 out.avi > > As you can see, I used sox to record audio, but I don't actually know anymore > why I did... ah... You may be on to something there. I saw a mention *somewhere* about recording audio w/sox while screencasting with ffmpeg. I'm about 40 minutes from crashing out for the evening yet I will definitely give this a good look over in the morning when I get up and test this type of scenario. I am used to using sox from a long time ago when I used it for my Asterisk prompts back in the 1.2 days and before. I will definately report back here with my findings one way or another regards to success :) And thank you Fabian! > > Am Montag, 13. Juni 2011, 04:11:26 schrieb Bradley D. Thornton: >> On 06/12/2011 06:58 PM, Reindl Harald wrote: >>> Am 13.06.2011 03:54, schrieb Bradley D. Thornton: >>>> I get video but no sound when I do this: >>>> >>>> ffmpeg -f alsa -i plughw:0,0 -f x11grab -r 25 -s 1440x900 -i :0.0 >>>> -acodec pcm_s16le -vcodec huffyuv -sameq screencast.avi >>>> >>>> or this: >>>> >>>> ffmpeg -f alsa -ac 2 -i plughw:0,0 -f x11grab -r 25 -s 1440x900 -i :0.0 >>>> -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 >>>> output.mkv >>>> >>>> -f oss (gives an error - no device) and I do not have pulse. >>> >>> why do you specifiy params before "-i"? >>> these are normally for the input-file and i guess >>> ffmpeg will in most cases know better what the input is >> >> That's what the tutorial here: >> http://verb3k.wordpress.com/2010/01/26/how-to-do-proper-screencasts-on-linu >> x/ gave as examples, and also what other people were offering up. >> >> I get the following errors when I try your suggestion with the >> corresponding command: >> >> >> >> ffmpeg -i plughw:0 -f x11grab -r 25 -s 1440x900 -i :0.0 -acodec >> pcm_s16le -vcodec huffyuv -sameq screencast.avi >> >> FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers >> built on Feb 3 2011 00:17:04 with gcc 4.4.4 >> configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 >> --mandir=/usr/man --enable-libmp3lame --enable-libfaac --enable-nonfree >> --enable-gpl --enable-version3 --enable-postproc --enable-avfilter >> --enable-libdc1394 --enable-libfaad --enable-libgsm >> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp >> --enable-libschroedinger --enable-libspeex --enable-libtheora >> --enable-libvpx --enable-libx264 --enable-runtime-cpudetect >> --enable-vaapi --disable-vdpau --enable-memalign-hack --enable-pthreads >> --enable-x11grab --enable-bzlib --enable-zlib --enable-shared >> --enable-static --disable-debug --arch=x86_64 --enable-pic >> --extra-cflags='-I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include >> -DRUNTIME_CPUDETECT' >> --extra-ldflags='-L/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib64 -lssl >> -lcrypto -lz -lusb' >> libavutil 50.15. 1 / 50.15. 1 >> libavcodec 52.73. 2 / 52.73. 2 >> libavformat 52.64. 2 / 52.64. 2 >> libavdevice 52. 2. 0 / 52. 2. 0 >> libavfilter 1.19. 0 / 1.19. 0 >> libswscale 0.11. 0 / 0.11. 0 >> libpostproc 51. 2. 0 / 51. 2. 0 >> plughw:0,0: No such file or directory >> >> >> >> >> And I only removed the first -f for the audio device. I get the same >> error when I remove both -f parameters, although it doesn't make sense >> to me why I would not have them there anyway, and even if they were >> optional to specify, why it would be better not to? >> >>> _______________________________________________ >>> 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 - -- Bradley D. Thornton Manager Network Services NorthTech Computer TEL: +1.760.666.2703 (US) TEL: +44.203.318.2755 (UK) http://NorthTech.US -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Find this cert at x-hkp://pool.sks-keyservers.net iQEcBAEBAwAGBQJN9eU5AAoJEE1wgkIhr9j38k0H/3ZhH6PQYhnxx1FnkKugZZrZ LNRYQ2f47/RWc5t4jfjYJjRXHFth2Xzb9EM9F0T/g4SvMOAAjn31eXQE7D02Eka4 FFNCivG5juU42B1qAehlEG+E+SBauNj6T6taY5yfVnOLZwKAtD1qcLGXwCxI+dpS tIkg2PSfYNu7ZIkcWVxgC66WmTMQRuH4sKFXa6yyRszr42INIa/tVobahXrcRFg0 DCFz7svpJW0fsZ3DmWhCvDZpPmCMRXgzB7+beof9rp8/J2wmte16TYYQXOcslBXa QV+H4L/KwJHT0K9G5lHg2MQt1cszAJHqz4ZqNLgxUnTbVdlvCza07pMCUwodH1E= =pjb0 -----END PGP SIGNATURE----- From davidkempers at gmail.com Mon Jun 13 13:39:08 2011 From: davidkempers at gmail.com (David Kempers) Date: Mon, 13 Jun 2011 12:39:08 +0100 Subject: [FFmpeg-user] same encode for multiple output In-Reply-To: <201106131218.34524.fabian@lesniak-it.de> References: <201106131218.34524.fabian@lesniak-it.de> Message-ID: On 13 June 2011 11:18, Fabian Lesniak wrote: > You may simply have a look at the GNU tool tee: > > ffmpeg -i [...] -f avi - | tee file1.avi >file2.avi > > Did not test it, but may work. > Thanks for the reply. I decided to pipe to another ffmpeg instance and copy the streams. Would this be a good feature to add to ffmpeg or are there technical reasons why it would not be a good idea? David From soho123.2012 at gmail.com Mon Jun 13 13:59:46 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Mon, 13 Jun 2011 19:59:46 +0800 Subject: [FFmpeg-user] ffmpeg can not grap mjpeg stream from UVC Cam in high fps Message-ID: Dears, Any one know how to decode mjpeg stream from UVC Cam when using ffmpeg? When I try the options: ffmpeg -f video4linux2 -vcodec mjpeg -r 10 -s 640x480 -i /dev/video0 -r 10 -vcodec copy http://localhost:8090/feed1.ffm ffmpeg will hang, since system memory has been exhausted. When UVC Cam pass mjpeg format via v4l2 to ffmpeg, I use 'copy' to pass to outptu file , but the function is fail when system is exhausted. Why ffmpeg will occupy system memory for stream? Thanks! Best Regards, Soho From soho123.2012 at gmail.com Mon Jun 13 14:56:08 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Mon, 13 Jun 2011 20:56:08 +0800 Subject: [FFmpeg-user] ffmpeg can not run in background In-Reply-To: References: Message-ID: Dears, how to run ffmpeg in daemon mode ? or how to run ffmpeg in background? Best Regards, Soho From av at bsbc.nb.ca Mon Jun 13 15:10:42 2011 From: av at bsbc.nb.ca (Anthony Brown) Date: Mon, 13 Jun 2011 10:10:42 -0300 Subject: [FFmpeg-user] ffmpeg can not run in background In-Reply-To: References: Message-ID: <4DF60C52.5080703@bsbc.nb.ca> On 11-06-13 09:56 AM, Soho Soho123 wrote: > Dears, > > how to run ffmpeg in daemon mode ? > or how to run ffmpeg in background? Use nohup ffmpeg ... & -- 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 mathieu_g1 at gmx.fr Mon Jun 13 18:47:14 2011 From: mathieu_g1 at gmx.fr (Mathieu Goutfreind) Date: Mon, 13 Jun 2011 18:47:14 +0200 Subject: [FFmpeg-user] Webm Wrong Displaysize Message-ID: <20110613184714.6dd6d1db@Beast> Hello, I've got a small problem with webm. Using ffmpeg the displaysize is incorrect. Have you got a clue ? Regards Command used : #ffmpeg -i M2U00008.MPG -threads 4 -f webm -vcodec libvpx -deinterlace -sameq -acodec libvorbis -alang fr -aq 90 -ac 2 -ab 160k -y M2U00008.webm FFmpeg version SVN-r25767, Copyright (c) 2000-2010 the FFmpeg developers built on Jun 11 2011 20:21:36 with gcc 4.4.5 configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --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-libtheora --enable-libvorbis --enable-libx264 --enable-libfaac --enable-nonfree --disable-indev=v4l --disable-indev=v4l2 --disable-indev=oss --disable-indev=jack --enable-x11grab --disable-outdev=oss --enable-pthreads --enable-libgsm --enable-libdirac --enable-libspeex --enable-libvpx --enable-libopenjpeg --disable-altivec --enable-hardcoded-tables libavutil 50.33. 0 / 50.33. 0 libavcore 0.13. 0 / 0.13. 0 libavcodec 52.96. 0 / 52.96. 0 libavformat 52.84. 0 / 52.84. 0 libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.62. 0 / 1.62. 0 libswscale 0.12. 0 / 0.12. 0 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, mpeg, from 'M2U00008.MPG': Duration: 00:03:58.55, start: 0.072389, bitrate: 9624 kb/s Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], 9100 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s [buffer @ 0x28c8280] w:720 h:576 pixfmt:yuv420p [scale @ 0x28c0f30] w:720 h:576 fmt:yuv420p -> w:768 h:576 fmt:yuv420p flags:0xa0000004 [libvpx @ 0x23a4090] v0.9.5 Output #0, webm, to 'M2U00008.webm': Metadata: encoder : Lavf52.84.0 Stream #0.0: Video: libvpx, yuv420p, 768x576 [PAR 4:3 DAR 16:9], q=2-31, 200 kb/s, 1k tbn, 25 tbc Stream #0.1(fr): Audio: libvorbis, 48000 Hz, 2 channels, s16, 160 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 # mkvinfo M2U00008.webm + EBML head |+ EBML version: 1 |+ EBML read version: 1 |+ EBML maximum ID length: 4 |+ EBML maximum size length: 8 |+ Doc type: webm |+ Doc type version: 2 |+ Doc type read version: 2 + Segment, size 23370077 |+ Seek head (subentries will be skipped) |+ EbmlVoid (size: 162) |+ Segment information | + Timecode scale: 1000000 | + Muxing application: Lavf52.84.0 | + Writing application: Lavf52.84.0 | + Segment UID: 0xe8 0x37 0x5c 0x8a 0xb7 0xae 0x41 0x57 0x4f 0xc3 0x1b 0xe6 0x8f 0xdc 0xf7 0x00 | + Duration: 106.480s (00:01:46.480) |+ Segment tracks | + A track | + Track number: 1 | + Track UID: 1 | + Lacing flag: 0 | + Language: und | + Codec ID: V_VP8 | + Track type: video | + Default duration: 40.000ms (25.000 fps for a video track) | + Video track | + Pixel width: 768 | + Pixel height: 576 | + Display width: 1024 | + Display height: 576 | + Display unit: 3 | + A track | + Track number: 2 | + Track UID: 2 | + Lacing flag: 0 | + Language: fr | + Codec ID: A_VORBIS | + Track type: audio | + Audio track | + Channels: 2 | + Sampling frequency: 48000 | + Bit depth: 16 | + CodecPrivate, length 4022 |+ Cluster From startx at plentyfact.org Mon Jun 13 18:07:11 2011 From: startx at plentyfact.org (startx) Date: Mon, 13 Jun 2011 17:07:11 +0100 Subject: [FFmpeg-user] Webm Wrong Displaysize In-Reply-To: <20110613184714.6dd6d1db@Beast> References: <20110613184714.6dd6d1db@Beast> Message-ID: <20110613170711.6e0714b9@worthil> On Mon, 13 Jun 2011 18:47:14 +0200 Mathieu Goutfreind wrote: > Hello, > > I've got a small problem with webm. > Using ffmpeg the displaysize is incorrect. > libpostproc 51. 2. 0 / 51. 2. 0 Input #0, mpeg, from 'M2U00008.MPG': > Duration: 00:03:58.55, start: 0.072389, bitrate: 9624 kb/s Stream > #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], this is probably because of "[PAR 4:3 DAR 16:9]" in the original, the pixel aspect ratio is 4:3 ( anamorphic widescreen ). you need to set the aspect ratio or calculate the outcome manually. startx From mathieu_g1 at gmx.fr Mon Jun 13 22:50:17 2011 From: mathieu_g1 at gmx.fr (Mathieu Goutfreind) Date: Mon, 13 Jun 2011 22:50:17 +0200 Subject: [FFmpeg-user] Webm Wrong Displaysize In-Reply-To: <20110613170711.6e0714b9@worthil> References: <20110613184714.6dd6d1db@Beast> <20110613170711.6e0714b9@worthil> Message-ID: <20110613225017.1ad962f9@Beast> Le Mon, 13 Jun 2011 17:07:11 +0100, startx a ?crit : > On Mon, 13 Jun 2011 18:47:14 +0200 > Mathieu Goutfreind wrote: > > > Hello, > > > > I've got a small problem with webm. > > Using ffmpeg the displaysize is incorrect. > > > libpostproc 51. 2. 0 / 51. 2. 0 Input #0, mpeg, from > > 'M2U00008.MPG': Duration: 00:03:58.55, start: 0.072389, bitrate: > > 9624 kb/s Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 > > [PAR 64:45 DAR 16:9], > > this is probably because of "[PAR 4:3 DAR 16:9]" in the original, the > pixel aspect ratio is 4:3 ( anamorphic widescreen ). > > you need to set the aspect ratio or calculate the outcome manually. > > startx > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user I've tried -aspect 16:9 but i've still the same result. Maybe I'm using the wrong command ? From fabian at lesniak-it.de Mon Jun 13 21:23:35 2011 From: fabian at lesniak-it.de (Fabian Lesniak) Date: Mon, 13 Jun 2011 21:23:35 +0200 Subject: [FFmpeg-user] Webm Wrong Displaysize In-Reply-To: <20110613225017.1ad962f9@Beast> References: <20110613184714.6dd6d1db@Beast> <20110613170711.6e0714b9@worthil> <20110613225017.1ad962f9@Beast> Message-ID: <201106132123.35913.fabian@lesniak-it.de> I suggest to select a real 16:9 resolution, i.e. 768x432 # ffmpeg -i file.mpg -vf scale=768:432 -aspect 16:9 ... You may also want to crop some black borders, depending on your source, then I'd put the crop=x:y:a:b in front of the scale filter. Am Montag, 13. Juni 2011, 22:50:17 schrieb Mathieu Goutfreind: > Le Mon, 13 Jun 2011 17:07:11 +0100, > > startx a ?crit : > > On Mon, 13 Jun 2011 18:47:14 +0200 > > > > Mathieu Goutfreind wrote: > > > Hello, > > > > > > I've got a small problem with webm. > > > Using ffmpeg the displaysize is incorrect. > > > > > > libpostproc 51. 2. 0 / 51. 2. 0 Input #0, mpeg, from > > > 'M2U00008.MPG': Duration: 00:03:58.55, start: 0.072389, bitrate: > > > 9624 kb/s Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 > > > [PAR 64:45 DAR 16:9], > > > > this is probably because of "[PAR 4:3 DAR 16:9]" in the original, the > > pixel aspect ratio is 4:3 ( anamorphic widescreen ). > > > > you need to set the aspect ratio or calculate the outcome manually. > > > > startx > > _______________________________________________ > > ffmpeg-user mailing list > > ffmpeg-user at ffmpeg.org > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > I've tried -aspect 16:9 but i've still the same result. > > Maybe I'm using the wrong command ? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From h.reindl at thelounge.net Mon Jun 13 22:06:36 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 13 Jun 2011 22:06:36 +0200 Subject: [FFmpeg-user] problem build "oldabi" under Feodra 15 In-Reply-To: <20110613085043.GA13903@geppetto> References: <4DF55586.1030000@thelounge.net> <20110613085043.GA13903@geppetto> Message-ID: <4DF66DCC.5010806@thelounge.net> thank you! rpmbuild on F15 has eaten it :-) ffmpeg.x86_64 0:0.6.90-0.2.rc0.20110613git29954.fc15.rh.20110613 "oldabi", no idea why rpmfusion call it 0.6.90 but it works with the rest of dependencies Am 13.06.2011 10:50, schrieb Stefano Sabatini: > diff --git a/libavfilter/vf_libopencv.c b/libavfilter/vf_libopencv.c > index 55e0a7f..b789c8e 100644 > --- a/libavfilter/vf_libopencv.c > +++ b/libavfilter/vf_libopencv.c > @@ -26,7 +26,7 @@ > /* #define DEBUG */ > > #include > -#include > +#include > #include "libavutil/avstring.h" > #include "libavutil/file.h" > #include "avfilter.h" -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From lou at lrcd.com Mon Jun 13 22:54:06 2011 From: lou at lrcd.com (Lou) Date: Mon, 13 Jun 2011 12:54:06 -0800 Subject: [FFmpeg-user] Webm Wrong Displaysize In-Reply-To: <20110613184714.6dd6d1db@Beast> References: <20110613184714.6dd6d1db@Beast> Message-ID: <20110613125406.4ce8234e@lrcd.com> On Mon, 13 Jun 2011 18:47:14 +0200 Mathieu Goutfreind wrote: > Hello, > > I've got a small problem with webm. > Using ffmpeg the displaysize is incorrect. What size are you expecting? > Have you got a clue ? Before trying a bunch of suggested commands you should see if recent FFmpeg and libvpx work as expected. FFmpeg SVN-r25767 is nearly 7 months old and I'm not sure how old your libvpx is. Development is active in both projects and you may be experiencing a bug that has already been fixed. > Regards > > Command used : > #ffmpeg -i M2U00008.MPG -threads 4 -f webm -vcodec libvpx -deinterlace > -sameq -acodec libvorbis -alang fr -aq 90 -ac 2 -ab 160k -y > M2U00008.webm > > FFmpeg version SVN-r25767, Copyright (c) 2000-2010 the FFmpeg > developers built on Jun 11 2011 20:21:36 with gcc 4.4.5 > configuration: --prefix=/usr --libdir=/usr/lib64 > --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared > --cc=x86_64-pc-linux-gnu-gcc --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-libtheora > --enable-libvorbis --enable-libx264 --enable-libfaac --enable-nonfree > --disable-indev=v4l --disable-indev=v4l2 --disable-indev=oss > --disable-indev=jack --enable-x11grab --disable-outdev=oss > --enable-pthreads --enable-libgsm --enable-libdirac --enable-libspeex > --enable-libvpx --enable-libopenjpeg --disable-altivec > --enable-hardcoded-tables libavutil 50.33. 0 / 50.33. 0 > libavcore 0.13. 0 / 0.13. 0 libavcodec 52.96. 0 / 52.96. 0 > libavformat 52.84. 0 / 52.84. 0 libavdevice 52. 2. 2 / 52. 2. 2 > libavfilter 1.62. 0 / 1.62. 0 libswscale 0.12. 0 / 0.12. 0 > libpostproc 51. 2. 0 / 51. 2. 0 Input #0, mpeg, from 'M2U00008.MPG': > Duration: 00:03:58.55, start: 0.072389, bitrate: 9624 kb/s Stream > #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR 16:9], > 9100 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1[0x80]: Audio: > ac3, 48000 Hz, 5.1, s16, 448 kb/s [buffer @ 0x28c8280] w:720 h:576 > pixfmt:yuv420p [scale @ 0x28c0f30] w:720 h:576 fmt:yuv420p -> w:768 > h:576 fmt:yuv420p flags:0xa0000004 [libvpx @ 0x23a4090] v0.9.5 Output > #0, webm, to 'M2U00008.webm': Metadata: encoder : Lavf52.84.0 > Stream #0.0: Video: libvpx, yuv420p, 768x576 [PAR 4:3 DAR 16:9], > q=2-31, 200 kb/s, 1k tbn, 25 tbc Stream #0.1(fr): Audio: libvorbis, > 48000 Hz, 2 channels, s16, 160 kb/s Stream mapping: Stream #0.0 -> > #0.0 Stream #0.1 -> #0.1 > > # mkvinfo M2U00008.webm > + EBML head > |+ EBML version: 1 > |+ EBML read version: 1 > |+ EBML maximum ID length: 4 > |+ EBML maximum size length: 8 > |+ Doc type: webm > |+ Doc type version: 2 > |+ Doc type read version: 2 > + Segment, size 23370077 > |+ Seek head (subentries will be skipped) > |+ EbmlVoid (size: 162) > |+ Segment information > | + Timecode scale: 1000000 > | + Muxing application: Lavf52.84.0 > | + Writing application: Lavf52.84.0 > | + Segment UID: 0xe8 0x37 0x5c 0x8a 0xb7 0xae 0x41 0x57 0x4f 0xc3 > 0x1b 0xe6 0x8f 0xdc 0xf7 0x00 | + Duration: 106.480s (00:01:46.480) > |+ Segment tracks > | + A track > | + Track number: 1 > | + Track UID: 1 > | + Lacing flag: 0 > | + Language: und > | + Codec ID: V_VP8 > | + Track type: video > | + Default duration: 40.000ms (25.000 fps for a video track) > | + Video track > | + Pixel width: 768 > | + Pixel height: 576 > | + Display width: 1024 > | + Display height: 576 > | + Display unit: 3 > | + A track > | + Track number: 2 > | + Track UID: 2 > | + Lacing flag: 0 > | + Language: fr > | + Codec ID: A_VORBIS > | + Track type: audio > | + Audio track > | + Channels: 2 > | + Sampling frequency: 48000 > | + Bit depth: 16 > | + CodecPrivate, length 4022 > |+ Cluster From vipakun at hotmail.com Mon Jun 13 23:19:59 2011 From: vipakun at hotmail.com (Kale Yang) Date: Mon, 13 Jun 2011 14:19:59 -0700 Subject: [FFmpeg-user] How to record video and audio from webcam and microphone Message-ID: Hi Guys, I am new in ffmpeg. But, getting a project to use ffmpeg to capture MP4 video AAC audio from external webcam and microphone. I downloaded win32 built version and used command lines to testing result: The video format is correct but there is no sound track in output file. Some people said on Windows, audio part can NOT be captured by ffmpeg. Is that correct? Or do you know any other solution to record MP4/AAC from external devices? Many thanks From mathieu_g1 at gmx.fr Tue Jun 14 01:25:20 2011 From: mathieu_g1 at gmx.fr (Mathieu Goutfreind) Date: Tue, 14 Jun 2011 01:25:20 +0200 Subject: [FFmpeg-user] Webm Wrong Displaysize In-Reply-To: <201106132123.35913.fabian@lesniak-it.de> References: <20110613184714.6dd6d1db@Beast> <20110613170711.6e0714b9@worthil> <20110613225017.1ad962f9@Beast> <201106132123.35913.fabian@lesniak-it.de> Message-ID: <20110614012520.75982083@Beast> 720x576 (anamorphic DV-PAL 16:9) has been resized following your instructions, the picture is stretched and the results seems worst : mkvinfo : |+ Segment tracks | + A track | + Track number: 1 | + Track UID: 1 | + Lacing flag: 0 | + Language: und | + Codec ID: V_VP8 | + Track type: video | + Default duration: 40.000ms (25.000 fps for a video track) | + Video track | + Pixel width: 768 | + Pixel height: 432 | + Display width: 1092 | + Display height: 432 | + Display unit: 3 But you're right it needs to be scaled to a 16:9 resolution without "anamorphic", but the aspect has to be set to 1.22 not 16:9 (1.77) in order to avoid distorsion. Here is what I've done : ffmpeg -i MPG/M2U00019.MPG -vf scale=768:432 -aspect 1.22 -threads 4 -f webm -vcodec libvpx -deinterlace -sameq -acodec libvorbis -alang fr -aq 90 -ac 2 -ab 160k -y M.webm Thanks to you I've solved my problem. Thank You Le Mon, 13 Jun 2011 21:23:35 +0200, Fabian Lesniak a ?crit : > I suggest to select a real 16:9 resolution, i.e. 768x432 > # ffmpeg -i file.mpg -vf scale=768:432 -aspect 16:9 ... > > You may also want to crop some black borders, depending on your > source, then I'd put the crop=x:y:a:b in front of the scale filter. > > Am Montag, 13. Juni 2011, 22:50:17 schrieb Mathieu Goutfreind: > > Le Mon, 13 Jun 2011 17:07:11 +0100, > > > > startx a ?crit : > > > On Mon, 13 Jun 2011 18:47:14 +0200 > > > > > > Mathieu Goutfreind wrote: > > > > Hello, > > > > > > > > I've got a small problem with webm. > > > > Using ffmpeg the displaysize is incorrect. > > > > > > > > libpostproc 51. 2. 0 / 51. 2. 0 Input #0, mpeg, from > > > > 'M2U00008.MPG': Duration: 00:03:58.55, start: 0.072389, bitrate: > > > > 9624 kb/s Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, > > > > 720x576 [PAR 64:45 DAR 16:9], > > > > > > this is probably because of "[PAR 4:3 DAR 16:9]" in the original, > > > the pixel aspect ratio is 4:3 ( anamorphic widescreen ). > > > > > > you need to set the aspect ratio or calculate the outcome > > > manually. > > > > > > startx > > > _______________________________________________ > > > ffmpeg-user mailing list > > > ffmpeg-user at ffmpeg.org > > > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > > I've tried -aspect 16:9 but i've still the same result. > > > > Maybe I'm using the wrong command ? > > _______________________________________________ > > 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 stefano.sabatini-lala at poste.it Mon Jun 13 23:53:24 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Mon, 13 Jun 2011 23:53:24 +0200 Subject: [FFmpeg-user] How to record video and audio from webcam and microphone In-Reply-To: References: Message-ID: <20110613215324.GC12112@geppetto> On date Monday 2011-06-13 14:19:59 -0700, Kale Yang encoded: > > Hi Guys, > > I am new in ffmpeg. But, getting a project to use ffmpeg to capture > MP4 video AAC audio from external webcam and microphone. I > downloaded win32 built version and used command lines to testing > result: The video format is correct but there is no sound track in > output file. Some people said on Windows, audio part can NOT be > captured by ffmpeg. Is that correct? Or do you know any other > solution to record MP4/AAC from external devices? Many thanks You can find a recent patch for an Openal input device on the ffmpeg-devel ML which should allow audio capture in Windows, hopefully it will be applied soon, in the meanwhile you could test it and report if it works for you. -- 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 mathieu_g1 at gmx.fr Tue Jun 14 02:57:46 2011 From: mathieu_g1 at gmx.fr (Mathieu Goutfreind) Date: Tue, 14 Jun 2011 02:57:46 +0200 Subject: [FFmpeg-user] Webm Wrong Displaysize In-Reply-To: <20110613125406.4ce8234e@lrcd.com> References: <20110613184714.6dd6d1db@Beast> <20110613125406.4ce8234e@lrcd.com> Message-ID: <20110614025746.013f0486@Beast> Le Mon, 13 Jun 2011 12:54:06 -0800, Lou a ?crit : > On Mon, 13 Jun 2011 18:47:14 +0200 > Mathieu Goutfreind wrote: > > > Hello, > > > > I've got a small problem with webm. > > Using ffmpeg the displaysize is incorrect. > > What size are you expecting? The expected size was something like 720x576 but it's not usable for webm, cause it's not 16:9 nor 4:3 and it seems it can't handle it well. But that's my fault, I should have scaled it. I've solved it now thanks to Fabian Lesniak. > > > Have you got a clue ? > > Before trying a bunch of suggested commands you should see if recent > FFmpeg and libvpx work as expected. FFmpeg SVN-r25767 is nearly 7 > months old and I'm not sure how old your libvpx is. Development is > active in both projects and you may be experiencing a bug that has > already been fixed. > I agree it's an old version but Gentoo GNU/Linux haven't a more recent version in the stable tree. Maybe I will compile a recent version later and help the gentoo maintainer. Thank you for your mail. > > Regards > > > > Command used : > > #ffmpeg -i M2U00008.MPG -threads 4 -f webm -vcodec libvpx > > -deinterlace -sameq -acodec libvorbis -alang fr -aq 90 -ac 2 -ab > > 160k -y M2U00008.webm > > > > FFmpeg version SVN-r25767, Copyright (c) 2000-2010 the FFmpeg > > developers built on Jun 11 2011 20:21:36 with gcc 4.4.5 > > configuration: --prefix=/usr --libdir=/usr/lib64 > > --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared > > --cc=x86_64-pc-linux-gnu-gcc --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-libtheora --enable-libvorbis --enable-libx264 > > --enable-libfaac --enable-nonfree --disable-indev=v4l > > --disable-indev=v4l2 --disable-indev=oss --disable-indev=jack > > --enable-x11grab --disable-outdev=oss --enable-pthreads > > --enable-libgsm --enable-libdirac --enable-libspeex --enable-libvpx > > --enable-libopenjpeg --disable-altivec --enable-hardcoded-tables > > libavutil 50.33. 0 / 50.33. 0 libavcore 0.13. 0 / 0.13. 0 > > libavcodec 52.96. 0 / 52.96. 0 libavformat 52.84. 0 / 52.84. 0 > > libavdevice 52. 2. 2 / 52. 2. 2 libavfilter 1.62. 0 / 1.62. 0 > > libswscale 0.12. 0 / 0.12. 0 libpostproc 51. 2. 0 / 51. 2. 0 > > Input #0, mpeg, from 'M2U00008.MPG': Duration: 00:03:58.55, start: > > 0.072389, bitrate: 9624 kb/s Stream #0.0[0x1e0]: Video: mpeg2video, > > yuv420p, 720x576 [PAR 64:45 DAR 16:9], 9100 kb/s, 25 fps, 25 tbr, > > 90k tbn, 50 tbc Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, > > 448 kb/s [buffer @ 0x28c8280] w:720 h:576 pixfmt:yuv420p [scale @ > > 0x28c0f30] w:720 h:576 fmt:yuv420p -> w:768 h:576 fmt:yuv420p > > flags:0xa0000004 [libvpx @ 0x23a4090] v0.9.5 Output #0, webm, to > > 'M2U00008.webm': Metadata: encoder : Lavf52.84.0 Stream > > #0.0: Video: libvpx, yuv420p, 768x576 [PAR 4:3 DAR 16:9], q=2-31, > > 200 kb/s, 1k tbn, 25 tbc Stream #0.1(fr): Audio: libvorbis, 48000 > > Hz, 2 channels, s16, 160 kb/s Stream mapping: Stream #0.0 -> #0.0 > > Stream #0.1 -> #0.1 > > > > # mkvinfo M2U00008.webm > > + EBML head > > |+ EBML version: 1 > > |+ EBML read version: 1 > > |+ EBML maximum ID length: 4 > > |+ EBML maximum size length: 8 > > |+ Doc type: webm > > |+ Doc type version: 2 > > |+ Doc type read version: 2 > > + Segment, size 23370077 > > |+ Seek head (subentries will be skipped) > > |+ EbmlVoid (size: 162) > > |+ Segment information > > | + Timecode scale: 1000000 > > | + Muxing application: Lavf52.84.0 > > | + Writing application: Lavf52.84.0 > > | + Segment UID: 0xe8 0x37 0x5c 0x8a 0xb7 0xae 0x41 0x57 0x4f 0xc3 > > 0x1b 0xe6 0x8f 0xdc 0xf7 0x00 | + Duration: 106.480s (00:01:46.480) > > |+ Segment tracks > > | + A track > > | + Track number: 1 > > | + Track UID: 1 > > | + Lacing flag: 0 > > | + Language: und > > | + Codec ID: V_VP8 > > | + Track type: video > > | + Default duration: 40.000ms (25.000 fps for a video track) > > | + Video track > > | + Pixel width: 768 > > | + Pixel height: 576 > > | + Display width: 1024 > > | + Display height: 576 > > | + Display unit: 3 > > | + A track > > | + Track number: 2 > > | + Track UID: 2 > > | + Lacing flag: 0 > > | + Language: fr > > | + Codec ID: A_VORBIS > > | + Track type: audio > > | + Audio track > > | + Channels: 2 > > | + Sampling frequency: 48000 > > | + Bit depth: 16 > > | + CodecPrivate, length 4022 > > |+ Cluster > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From dashing.meng at gmail.com Tue Jun 14 02:14:10 2011 From: dashing.meng at gmail.com (littlebat) Date: Tue, 14 Jun 2011 08:14:10 +0800 Subject: [FFmpeg-user] ffmpeg can not run in background In-Reply-To: References: Message-ID: <20110614081410.c9f5c6d1.dashing.meng@gmail.com> On Mon, 13 Jun 2011 20:56:08 +0800 Soho Soho123 wrote: > Dears, > > how to run ffmpeg in daemon mode ? > or how to run ffmpeg in background? > Try: ffmpeg ... References: <5ED1C756-4C55-4FEC-A808-357EBD79DD3B@gmail.com> Message-ID: On Thu, May 26, 2011 at 20:05, Jon Drukman wrote: > Rick C. gmail.com> writes: > >> Great thanks for the quick replies. ?I actually thought lame could do surround > (obviously I was wrong) or >> either that FFmpeg would downmix it automatically (I guess not the case). ?If > I would specify -ac 2 then it >> should work correct? >> >> And yes to avoid losing my surround I will go ac3. ?Thank you! > > -ac 2 will give you a stereo mp3. ?if you want to preserve the ac3, just use > -acodec copy. >From my experience, avi (xvid) files and AAC do not mix. Transcoding AAC -> AC3 will be more reliable than leaving AAC as is. I know for a fact that DivX DVD players, and the Xbox 360, both require AC/3 for 5.1 in avi file. From soho123.2012 at gmail.com Tue Jun 14 15:08:34 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 14 Jun 2011 21:08:34 +0800 Subject: [FFmpeg-user] ffmpeg can not run in background In-Reply-To: <20110614081410.c9f5c6d1.dashing.meng@gmail.com> References: <20110614081410.c9f5c6d1.dashing.meng@gmail.com> Message-ID: Thanks! it can work with ": > On Mon, 13 Jun 2011 20:56:08 +0800 > Soho Soho123 wrote: > >> Dears, >> >> how to run ffmpeg in daemon mode ? >> or how to run ffmpeg in background? >> > Try: > ffmpeg ... > But I still can't know why need append " work in background, anyone can explain this? > > --littlebat > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From soho123.2012 at gmail.com Tue Jun 14 15:15:08 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 14 Jun 2011 21:15:08 +0800 Subject: [FFmpeg-user] screen flicker when reduce desired_video_buffers in ffmpeg Message-ID: dears : We use ffserver as stream server, and use ffmpeg to grap data from uvc cam. ffmpeg option is list below. ffmpeg -f video4linux2 -vcodec mjpeg -r 30 -s 640x480 -i /dev/video0 -r 30 -vcodec copy http://localhost:8090/feed1.ffm when we usc VLC the receive stream data (MJPEG stream), and if desired_video_buffers is set to 12, then screen on VLC is flicker very serious. Because memory issue, we should to reduce the value of desired_video_buffers. Does any one have any idea? Thanks! best Regards, Soho From soho123.2012 at gmail.com Tue Jun 14 15:20:15 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 14 Jun 2011 21:20:15 +0800 Subject: [FFmpeg-user] ffmpeg limitation about kernel version Message-ID: Dears, we use ffmpeg 0.7-rc1, is there any limitation about kernel version and UVC driver? because kernel version we use is 2.6.30. is it too old about uvc driver ? Thnaks Soho From mike.scheutzow at alcatel-lucent.com Tue Jun 14 15:48:00 2011 From: mike.scheutzow at alcatel-lucent.com (Mike Scheutzow) Date: Tue, 14 Jun 2011 09:48:00 -0400 Subject: [FFmpeg-user] Detect if an MTS file is interlaced or not? In-Reply-To: References: Message-ID: <4DF76690.8070409@alcatel-lucent.com> Thomas Worth wrote: > On Wed, Jun 8, 2011 at 2:13 AM, Thomas Worth wrote: >> I'd like to know if there's a way to tell if an MTS file is >> interlaced, preferably without having to decode it first. The problem >> I have is that libav always returns 59.94 for the frame rate of >> interlaced NTSC streams, even though we know it's 29.97. And of >> course, r_frame_rate always returns 0 with the "mpegts" format so I am >> left to calculate the frame count manually. I need the correct frame >> rate to do this, however and there's no way of telling ahead of time >> whether the input video will be interlaced or not. Any ideas? >> > > Sorry to nag, but I didn't get a response to this. All I need is a way > to determine whether an input MTS file (with an H.264 stream) is > interlaced or not. I thought this could be accomplished by reading > values from the MTS format context, but I've had no luck. I even tried > decoding an AVFrame and reading the avframe->interlaced_frame value, > but it did not report the frame as interlaced even though the video is > indeed interlaced (comments in avcodec.h say this value is set by the > decoder). > > Obviously VLC is playing the file back at its intended frame rate even > though the frame rate reported by avformat is 59.94 (the actual frame, > not field rate should be 29.97). Where is it getting this information? > It doesn't seem to be getting it from r_frame_rate, since that is > always double the playback rate with MTS it seems. It sounds as if you are trying to decode a file with video field pictures (as opposed to frame pictures.) The ffmpeg rate-estimation code always makes a mistake and doubles the frame rate in this situation. I use '-r 30000/1001' on the command line to just tell ffmpeg the correct frame rate. > It doesn't seem to be getting it from r_frame_rate, since that is > always double the playback rate with MTS it seems. The double rate is not an artifact of the container. The container knows nothing about the frame rate. Mike Scheutzow From lazarusportugalwebmasters at gmail.com Tue Jun 14 16:06:27 2011 From: lazarusportugalwebmasters at gmail.com (lazarusportugalwebmasters at gmail.com) Date: Tue, 14 Jun 2011 15:06:27 +0100 Subject: [FFmpeg-user] Examples of recording screen comands to I study In-Reply-To: <623849.20273.qm@web39301.mail.mud.yahoo.com> References: <623849.20273.qm@web39301.mail.mud.yahoo.com> Message-ID: <4DF76AE3.30706@gmail.com> I tryed the examples of documentation of ffmpeg to record my screen and I not found nothing that work on Windows. anyone can write here anyone. I need it for make an application that record the screen. -- # #lazarus-br em irc.freenode.org Lazarus, o pascal ainda tem futuro. # Comunidade portuguesa Lazarus, Delphi, Lazarus e Pascal. # IRC online ou #lazrusportugal em irc.ptnet.org From soho123.2012 at gmail.com Tue Jun 14 16:15:40 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 14 Jun 2011 22:15:40 +0800 Subject: [FFmpeg-user] how to set ffmpeg copy MJPEG stream to output file without decode? just unchanged psss to output file Message-ID: dears , We use the option below for passing MJPEG stream to output. But it seems slow to grab video data . ffmpeg -f video4linux2 -vcodec mjpeg -r 30 -s 640x480 -i /dev/video0 -r 30 -vcodec copy http://localhost:8090/feed1.ffm Does any one konw how to set : ffmpeg transcode mjpeg stream data without decode, just unchaged pass to output file ? Thanks! Soho From dotancohen at gmail.com Tue Jun 14 17:54:17 2011 From: dotancohen at gmail.com (Dotan Cohen) Date: Tue, 14 Jun 2011 18:54:17 +0300 Subject: [FFmpeg-user] Converting to mp3 in batch Message-ID: Hi all, I have many files that I need to convert to mp3 to play on my portable device. The files are in many different formats, and have spaces and unicode characters in the file names. I'm not well versed in awk or bash, I'm piecing this together from google searches. My current idea for changing all the files is this: $ mkdir mp3 $ for file in *; do `ffmpeg -i $file mp3/$file.mp3`;done However, it fails on files with spaces in the filenames. Furthermore, it renames files by appending .mp3 to the end, but it leaves the old filename extension intact: name.amr becomes name.amr.mp3. What code should I be using to alleviate these too issues? This is on Kubuntu Linux, ffmpeg version 0.6.2. Thanks. -- Dotan Cohen http://gibberish.co.il http://what-is-what.com From jshupert at pps-inc.com Tue Jun 14 19:54:27 2011 From: jshupert at pps-inc.com (Jim Shupert) Date: Tue, 14 Jun 2011 13:54:27 -0400 Subject: [FFmpeg-user] to make ffv1 from uncompressed 10 bit avi ( decklink capture ) Message-ID: <4DF7A053.8080308@pps-inc.com> friends, I have a ubuntu 10.04 64 bit machine with a blackmagic decklink card I am capturing a 10 bit uncompressed avi [ v210 ] using mediaexpress. that i wish to transcode into several things - one being a ffv1 file w pcm audio. i get an error of *Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height* below please find the ffmpeg command and then some mediainfo details on the source file. Maybe i need to tell ffmpeg something about the input file ( 005-10bit.avi ) I would be grateful for any good advice . Thanks -j ss at aldrin:~$ ffmpeg -i /media/data/cap/005-10bit.avi -vcodec ffv1 -acodec pcm_s16le /media/data/cap/005_ffv1.mov ffmpeg version git-N-30697-g36204ed, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 13 2011 12:00:18 with gcc 4.4.3 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libx264 --enable-libxvid --enable-x11grab --enable-libmp3lame --enable-libvpx --arch=x86_64 libavutil 51. 8. 0 / 51. 8. 0 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 3. 0 / 53. 3. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 15. 0 / 2. 15. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, avi, from '/media/data/cap/005-10bit.avi': Duration: 00:00:18.35, start: 0.000000, bitrate: 226597 kb/s Stream #0.0: Video: v210, yuv422p10le, 720x486, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s File '/media/data/cap/005_ffv1.mov' already exists. Overwrite ? [y/N] y [buffer @ 0x1c646c0] w:720 h:486 pixfmt:yuv422p10le tb:1/1000000 sar:0/1 sws_param: [ffv1 @ 0x1c62e60] bits_per_raw_sample of more than 8 needs -coder 1 currently Output #0, mov, to '/media/data/cap/005_ffv1.mov': Stream #0.0: Video: ffv1, yuv422p10le, 720x486, q=2-31, 200 kb/s, 90k tbn, 29.97 tbc Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height ss at aldrin:~$ ubuntu 10.04 64bit blackmagic decklink sdi media express mediainfo on the 10 bit uncompressed avi ss at aldrin:~$ mediainfo /media/data/cap/005-10bit.avi General Complete name : /media/data/cap/005-10bit.avi Format : AVI Format/Info : Audio Video Interleave File size : 496 MiB Duration : 18s 352ms Overall bit rate : 227 Mbps Video ID : 0 Format : v210 Codec ID : v210 Duration : 18s 352ms Bit rate : 224 Mbps Width : 720 pixels Height : 486 pixels Display aspect ratio : 3:2 Frame rate : 29.970 fps Standard : NTSC Bit depth : 10 bits Bits/(Pixel*Frame) : 21.333 Stream size : 489 MiB (99%) Audio ID : 1 Format : PCM Format settings, Endianness : Little Format settings, Sign : Signed Codec ID : 1 Codec ID/Hint : Microsoft Duration : 18s 352ms Bit rate mode : Constant Bit rate : 1 536 Kbps Channel(s) : 2 channels Sampling rate : 48.0 KHz Bit depth : 16 bits Stream size : 3.36 MiB (1%) Interleave, duration : 1020 ms (30.56 video frames) thanks j From dave at avpreserve.com Tue Jun 14 20:08:19 2011 From: dave at avpreserve.com (Dave Rice) Date: Tue, 14 Jun 2011 14:08:19 -0400 Subject: [FFmpeg-user] to make ffv1 from uncompressed 10 bit avi ( decklink capture ) In-Reply-To: <4DF7A053.8080308@pps-inc.com> References: <4DF7A053.8080308@pps-inc.com> Message-ID: <15EB96F7-29E5-465D-BBFF-2D5C7F9B795F@avpreserve.com> On Jun 14, 2011, at 1:54 PM, Jim Shupert wrote: > I have a ubuntu 10.04 64 bit machine with a blackmagic decklink card > I am capturing a 10 bit uncompressed avi [ v210 ] using mediaexpress. > that i wish to transcode into several things - one being a ffv1 file w pcm audio. > > i get an error of > *Error while opening encoder for output stream #0.0 - maybe incorrect > parameters such as bit_rate, rate, width or height* Add -coder 1 after -vcodec ffv1 Dave Rice avpreserve.com From james.darnley at gmail.com Tue Jun 14 20:12:50 2011 From: james.darnley at gmail.com (James Darnley) Date: Tue, 14 Jun 2011 20:12:50 +0200 Subject: [FFmpeg-user] Converting to mp3 in batch In-Reply-To: References: Message-ID: On 14/06/2011, Dotan Cohen wrote: > Hi all, I have many files that I need to convert to mp3 to play on my > portable device. The files are in many different formats, and have > spaces and unicode characters in the file names. I'm not well versed > in awk or bash, I'm piecing this together from google searches. > > My current idea for changing all the files is this: > $ mkdir mp3 > $ for file in *; do `ffmpeg -i $file mp3/$file.mp3`;done > > However, it fails on files with spaces in the filenames. Furthermore, > it renames files by appending .mp3 to the end, but it leaves the old > filename extension intact: name.amr becomes name.amr.mp3. What code > should I be using to alleviate these too issues? Quote the filename. Use the appropriate expansion feature for your shell. Bash: ${file/%.*/.mp3} From programmingkidx at gmail.com Tue Jun 14 20:19:19 2011 From: programmingkidx at gmail.com (Programmingkid) Date: Tue, 14 Jun 2011 14:19:19 -0400 Subject: [FFmpeg-user] How to make mkv file with divx video codec? Message-ID: I am trying to make a mkv file that can play on a Samsung Blue Ray player. It order to do this, I need to have the video codec of the file be recognized as either xvid or divx. Anyone know the command to use to accomplish this? From dotancohen at gmail.com Tue Jun 14 20:43:05 2011 From: dotancohen at gmail.com (Dotan Cohen) Date: Tue, 14 Jun 2011 21:43:05 +0300 Subject: [FFmpeg-user] Converting to mp3 in batch In-Reply-To: References: Message-ID: On Tue, Jun 14, 2011 at 21:12, James Darnley wrote: > Quote the filename. Thanks. I was quoting in the wrong places, now I see how to do it. > Use the appropriate expansion feature for your shell. ?Bash: ${file/%.*/.mp3} > Thank you! To have ffmpeg recognize the .mp3 extension I replaced the old extension with nothing. The resulting command is as follows: $ for file in *; do `ffmpeg -i "$file" "mp3/${file/%.*/}.mp3"`;done It works great for the mp4 and amr files, but the wavs sound terrible. These are voice recordings from various cellphones. I'll google for some better settings. Thank you! -- Dotan Cohen http://gibberish.co.il http://what-is-what.com From jshupert at pps-inc.com Tue Jun 14 21:47:03 2011 From: jshupert at pps-inc.com (Jim Shupert) Date: Tue, 14 Jun 2011 15:47:03 -0400 Subject: [FFmpeg-user] How to make mkv file with divx video codec? In-Reply-To: References: Message-ID: <4DF7BAB7.1060506@pps-inc.com> either xvid or divx. Anyone know the command to use to accomplish this? maybe something like ffmpeg -i D:\path\vid\00_dog.mpg -ab 192 -ar 48000 -b 8000000 -s 720x480 -vcodec xvid -acodec mp3 D:\path\vid\00_dog.avi From belcampo at zonnet.nl Tue Jun 14 21:55:09 2011 From: belcampo at zonnet.nl (belcampo) Date: Tue, 14 Jun 2011 21:55:09 +0200 Subject: [FFmpeg-user] How to make mkv file with divx video codec? In-Reply-To: <4DF7BAB7.1060506@pps-inc.com> References: <4DF7BAB7.1060506@pps-inc.com> Message-ID: <4DF7BC9D.4070102@zonnet.nl> On 06/14/11 21:47, Jim Shupert wrote: > either xvid or divx. Anyone know the command to use to accomplish this? > > maybe something like > > ffmpeg -i D:\path\vid\00_dog.mpg -ab 192 -ar 48000 -b 8000000 -s 720x480 > -vcodec xvid -acodec mp3 D:\path\vid\00_dog.avi D:\path\vid\00_dog.mkv if you want an mkv > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From soho123.2012 at gmail.com Wed Jun 15 04:09:50 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 15 Jun 2011 10:09:50 +0800 Subject: [FFmpeg-user] how to set ffmpeg copy MJPEG stream to output file without decode? just unchanged psss to output file In-Reply-To: References: Message-ID: dears , We use the option below for passing MJPEG stream to output. But it seems slow to grab video data . ffmpeg -f video4linux2 -vcodec mjpeg -r 30 -s 640x480 -i /dev/video0 -r 30 -vcodec copy http://localhost:8090/feed1.ffm Does any one konw how to set : ffmpeg transcode mjpeg stream data without decode, just unchaged pass to output file ? Thanks! Soho From frox at theindianmaiden.com Wed Jun 15 07:31:10 2011 From: frox at theindianmaiden.com (Lawrence) Date: Tue, 14 Jun 2011 22:31:10 -0700 Subject: [FFmpeg-user] DPX Sequence Encode Message-ID: I am unable to encode a dpx sequence. Can someone point me in the right direction? ffmpeg -vcodec copy -i *.dpx -an o.avi FFmpeg version 0.6-4:0.6-2ubuntu6, Copyright (c) 2000-2010 the FFmpeg developers built on Oct 6 2010 00:27:06 with gcc 4.4.5 configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-pic --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --disable-altivec --enable-shared --disable-static WARNING: library configuration mismatch libavutil configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-pic --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/altivec --cpu=g4 --enable-shared --disable-static --enable-altivec --disable-ffmpeg --disable-ffplay libavcodec configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-pic --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/altivec --cpu=g4 --enable-shared --disable-static --enable-altivec --disable-ffmpeg --disable-ffplay libavformat configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-pic --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/altivec --cpu=g4 --enable-shared --disable-static --enable-altivec --disable-ffmpeg --disable-ffplay libavdevice configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-pic --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/altivec --cpu=g4 --enable-shared --disable-static --enable-altivec --disable-ffmpeg --disable-ffplay libavfilter configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-pic --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/altivec --cpu=g4 --enable-shared --disable-static --enable-altivec --disable-ffmpeg --disable-ffplay libswscale configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-pic --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/altivec --cpu=g4 --enable-shared --disable-static --enable-altivec --disable-ffmpeg --disable-ffplay libpostproc configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-vaapi --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-pic --enable-gpl --enable-postproc --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/altivec --cpu=g4 --enable-shared --disable-static --enable-altivec --disable-ffmpeg --disable-ffplay libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 Input #0, image2, from 'c4562F0001.dpx': Duration: 00:00:00.04, start: 0.000000, bitrate: N/A Stream #0.0: Video: dpx, rgb48be, 3888x2272, 25 tbr, 25 tbn, 25 tbc Unable to find a suitable output format for 'c4562F0002.dpx' From phamsyquybk at gmail.com Wed Jun 15 07:58:49 2011 From: phamsyquybk at gmail.com (Quy Pham Sy) Date: Wed, 15 Jun 2011 14:58:49 +0900 Subject: [FFmpeg-user] [FFmpeg-users] Play encoder's output video as it's being encoded Message-ID: Hi all, Is it possible to play output video of encoding while it's being encoded. AFAIK, ffmpeg always put 'moov atom' at the end of file so that player can not play video file until encoding process finish. so is there anyway that player can play raw output from encoding without moov atom presence? Thanks. Quy From belcampo at zonnet.nl Wed Jun 15 09:36:53 2011 From: belcampo at zonnet.nl (belcampo) Date: Wed, 15 Jun 2011 09:36:53 +0200 Subject: [FFmpeg-user] [FFmpeg-users] Play encoder's output video as it's being encoded In-Reply-To: References: Message-ID: <4DF86115.2020502@zonnet.nl> On 06/15/11 07:58, Quy Pham Sy wrote: > Hi all, > > Is it possible to play output video of encoding while it's being encoded. > > AFAIK, ffmpeg always put 'moov atom' at the end of file so that player can > not play video file until encoding process finish. > so is there anyway that player can play raw output from encoding without > moov atom presence? Does this question refer to any former question ? Out of this I can't see what your encoding options are. You mention 'moov atom', so I guess it's mp4 ?? Encoding to mpegts, that's what digital broadcasting uses, makes such things possible. > > Thanks. > Quy > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From soho123.2012 at gmail.com Wed Jun 15 10:34:14 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 15 Jun 2011 16:34:14 +0800 Subject: [FFmpeg-user] is it possible set ffmpeg in block mode Message-ID: Hi all, is it possible to set ffmpeg in BLOCK mode when grab image data from UVC Cam? Or can ffmpeg support BLOCK mode currently? Thanks Soho From ankuj2004 at gmail.com Wed Jun 15 13:17:17 2011 From: ankuj2004 at gmail.com (Ankuj Gupta) Date: Wed, 15 Jun 2011 16:47:17 +0530 Subject: [FFmpeg-user] Encode MPEG4 video with RVLC Message-ID: Hi, How can one encode MPEG4 video having RVLC ? There was option for data partitioning but could not find option for RVLC. Ankuj From nicolas.george at normalesup.org Wed Jun 15 13:37:40 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Wed, 15 Jun 2011 13:37:40 +0200 Subject: [FFmpeg-user] [FFmpeg-devel] is it possible set ffmpeg in block mode In-Reply-To: References: Message-ID: <20110615113740.GA16620@phare.normalesup.org> Le septidi 27 prairial, an CCXIX, Soho Soho123 a ?crit?: > is it possible to set ffmpeg in BLOCK mode when grab image data from UVC Cam? > Or can ffmpeg support BLOCK mode currently? Could you please cross-posting your user questions to the development mailing-list? Since you post on both, you know that both exist, you do not have that excuse. I do not think that posting to Michael's personal address is ok either. 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 richard at richsim900.plus.com Wed Jun 15 13:46:42 2011 From: richard at richsim900.plus.com (richard) Date: Wed, 15 Jun 2011 12:46:42 +0100 Subject: [FFmpeg-user] Invalid non monotonically increasing dts Message-ID: <1308138402.16160.2.camel@base-desktop> Downloaded a live concert (320 kbps) using get_iplayer. Unpacked the flv file using: ffmpeg -i input.flv -acodec copy output.m4a but ffmpeg aborts with this error message: [ipod @ 0x8dff810] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 634952 >= 634599 av_interleaved_write_frame(): Invalid data found when processing input MP4ERROR: MP4File::FindIntegerProperty: no such property - moov.mvhd.modificationTime Searching for a solution or workaround I found: https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2011-March/110053.html and http://ffmpeg.org/pipermail/ffmpeg-user/2011-May/001053.html Not sure whether the suggested patches would break something else. Tried to re-encode the flv with: ffmpeg -i input.flv -acodec libfaac -ab 320k output.m4a This produced a playable m4a but it encoded at 152kbps instead of 320kbps. I wanted 320 kbps sound quality. I'm trying to find a way to unpack this flv to m4a at 320 kbps without losing sound quality. From dev at rarevision.com Wed Jun 15 14:03:55 2011 From: dev at rarevision.com (Thomas Worth) Date: Wed, 15 Jun 2011 05:03:55 -0700 Subject: [FFmpeg-user] Detect if an MTS file is interlaced or not? In-Reply-To: <4DF76690.8070409@alcatel-lucent.com> References: <4DF76690.8070409@alcatel-lucent.com> Message-ID: On Tue, Jun 14, 2011 at 6:48 AM, Mike Scheutzow wrote: > Thomas Worth wrote: >> >> On Wed, Jun 8, 2011 at 2:13 AM, Thomas Worth wrote: >>> >>> I'd like to know if there's a way to tell if an MTS file is >>> interlaced, preferably without having to decode it first. The problem >>> I have is that libav always returns 59.94 for the frame rate of >>> interlaced NTSC streams, even though we know it's 29.97. And of >>> course, r_frame_rate always returns 0 with the "mpegts" format so I am >>> left to calculate the frame count manually. I need the correct frame >>> rate to do this, however and there's no way of telling ahead of time >>> whether the input video will be interlaced or not. Any ideas? >>> >> >> Sorry to nag, but I didn't get a response to this. All I need is a way >> to determine whether an input MTS file (with an H.264 stream) is >> interlaced or not. I thought this could be accomplished by reading >> values from the MTS format context, but I've had no luck. I even tried >> decoding an AVFrame and reading the avframe->interlaced_frame value, >> but it did not report the frame as interlaced even though the video is >> indeed interlaced (comments in avcodec.h say this value is set by the >> decoder). >> >> Obviously VLC is playing the file back at its intended frame rate even >> though the frame rate reported by avformat is 59.94 (the actual frame, >> not field rate should be 29.97). Where is it getting this information? >> It doesn't seem to be getting it from r_frame_rate, since that is >> always double the playback rate with MTS it seems. > > > It sounds as if you are trying to decode a file with video field pictures > (as opposed to frame pictures.) The ffmpeg rate-estimation code always makes > a mistake and doubles the frame rate in this situation. Yes, this is exactly what I'm trying to do. I decode an interlaced (field-based) MTS stream, and avcodec is reporting the frame rate as double of what it should be. >> It doesn't seem to be getting it from r_frame_rate, since that is >> always double the playback rate with MTS it seems. > > The double rate is not an artifact of the container. The container knows > nothing about the frame rate. The container, or at least the streams should be flagged as field-based and have some type of field order flag (top first / bottom first). Otherwise, a playback device wouldn't know how to play it back. It is this information I need to interpret, but I just can't seem to get it. I know the information is there, I just need to know how to retrieve it from avcodec. I don't know much about how avcodec handles MTS files, so I was hoping this would be an easy answer for one of the devs that's worked on the MTS demuxer. From soho123.2012 at gmail.com Wed Jun 15 14:15:51 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 15 Jun 2011 20:15:51 +0800 Subject: [FFmpeg-user] how to convert MJPEG stream to FLV for ffserver In-Reply-To: References: Message-ID: Hi all, Does anyone have idea about: /dev/video0 is input device, codec is MJPEG, and we would like to output .flv stream by ffserver. ======================================================================= in ffserver config : Feed feed1.ffm Format flv VideoFrameRate 30 VideoSize 640x480 VideoBitRate 256 VideoBufferSize 400 VideoGopSize 3 Noaudio in ffmpeg command : ffmpeg -f video4linux2 -vcodec mjpeg -r 30 -s 640x480 -i /dev/video0 http://localhost:8090/feed1.ffm ============================================================================== we see the output by ffmpeg: [video4linux2 @ 0x6f4c70]Estimating duration from bitrate, this may be inaccurate Input #0, video4linux2, from '/dev/video0': ?Duration: N/A, start: 1308168391.590000, bitrate: 0 kb/s ? ?Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 0 kb/s, 30 tbr, 1000k tbn, 30 tbc Wed Jun 15 20:06:31 2011 127.0.0.1 - - [GET] "/feed1.ffm HTTP/1.1" 200 4149 Output #0, ffm, to 'http://localhost:8090/feed1.ffm': ?Metadata: ? ?encoder ? ? ? ? : Lavf52.64.2 ? ?Stream #0.0: Video: flv, yuv420p, 640x480, q=2-31, 256 kb/s, 1000k tbn, 30 tbc Stream mapping: ?Stream #0.0 -> #0.0 Press [q] to stop encoding ==================================================================== the error is : Codec for stream 0 does not use global headers but container format requires global headers then we can not see the image from flv media player smoothly. Any idea? Thanks! Soho From soho123.2012 at gmail.com Wed Jun 15 14:16:18 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 15 Jun 2011 20:16:18 +0800 Subject: [FFmpeg-user] is it possible set ffmpeg in block mode In-Reply-To: References: Message-ID: Hi all, is it possible to set ffmpeg in BLOCK mode when grab image data from UVC Cam? Or can ffmpeg support BLOCK mode currently? Thanks Soho From batguano999 at hotmail.com Wed Jun 15 14:16:44 2011 From: batguano999 at hotmail.com (bat guano) Date: Wed, 15 Jun 2011 12:16:44 +0000 Subject: [FFmpeg-user] Invalid non monotonically increasing dts In-Reply-To: <1308138402.16160.2.camel@base-desktop> References: <1308138402.16160.2.camel@base-desktop> Message-ID: ---------------------------------------- > From: richard at richsim900.plus.com > To: ffmpeg-user at ffmpeg.org > Date: Wed, 15 Jun 2011 12:46:42 +0100 > Subject: [FFmpeg-user] Invalid non monotonically increasing dts > > Downloaded a live concert (320 kbps) using get_iplayer. Unpacked the flv > file using: > > ffmpeg -i input.flv -acodec copy output.m4a > > but ffmpeg aborts with this error message: > > [ipod @ 0x8dff810] Application provided invalid, non monotonically > increasing dts to muxer in stream 0: 634952 >= 634599 > av_interleaved_write_frame(): Invalid data found when processing input > MP4ERROR: MP4File::FindIntegerProperty: no such property - > moov.mvhd.modificationTime > > Searching for a solution or workaround I found: > > https://lists.ffmpeg.org/pipermail/ffmpeg-devel/2011-March/110053.html > > and > > http://ffmpeg.org/pipermail/ffmpeg-user/2011-May/001053.html > > Not sure whether the suggested patches would break something else. > > Tried to re-encode the flv with: > > ffmpeg -i input.flv -acodec libfaac -ab 320k output.m4a > > This produced a playable m4a but it encoded at 152kbps instead of > 320kbps. I wanted 320 kbps sound quality. > > I'm trying to find a way to unpack this flv to m4a at 320 kbps without > losing sound quality. > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Hi Richard. I don't know how to CURE the 'non monotonically increasing dts' problem with your file. But I know how to help PREVENT it happening in future. Use '--rtmp-liveradio-opts --live' option. Information is in the thread here:- http://lists.infradead.org/pipermail/get_iplayer/2011-May/001504.html From gnanapoongothai at tataelxsi.co.in Wed Jun 15 14:17:41 2011 From: gnanapoongothai at tataelxsi.co.in (S Gnanapoongothai) Date: Wed, 15 Jun 2011 17:47:41 +0530 Subject: [FFmpeg-user] FFMPEG options to download fron ustream Message-ID: Hai, I need to download from ustream using rtmp to a flv file.Can you give any examples. From mike.scheutzow at alcatel-lucent.com Wed Jun 15 16:06:26 2011 From: mike.scheutzow at alcatel-lucent.com (Mike Scheutzow) Date: Wed, 15 Jun 2011 10:06:26 -0400 Subject: [FFmpeg-user] Detect if an MTS file is interlaced or not? In-Reply-To: References: <4DF76690.8070409@alcatel-lucent.com> Message-ID: <4DF8BC62.9090507@alcatel-lucent.com> Thomas Worth wrote: >>> On Wed, Jun 8, 2011 at 2:13 AM, Thomas Worth wrote: >>> It doesn't seem to be getting it from r_frame_rate, since that is >>> always double the playback rate with MTS it seems. >> The double rate is not an artifact of the container. The container knows >> nothing about the frame rate. > > The container, or at least the streams should be flagged as > field-based and have some type of field order flag (top first / bottom > first). For a transport stream container, this is not the case. There is no field/frame info at the container level. There is no field/frame info at the global stream level. For H.264, this information is placed at the Frame level. For H.264, you have to examine the Slice NAL to determine field/frame and top/bottom status. This is because H.264 is very flexible, and allows mixing field pictures and frame pictures in the same elementary stream. > Otherwise, a playback device wouldn't know how to play it > back. It is this information I need to interpret, but I just can't > seem to get it. I know the information is there, I just need to know > how to retrieve it from avcodec. There are two fields, but they don't tell you what you seem to want. See AVFrame.interlaced_frame and AVFrame.top_field_first in avcodec.h. These fields are part of the AVFrame information returned by avcodec_decode_video2(). Be careful though: these fields do NOT tell you whether the input to the decoder was 2 field pictures or 1 frame picture, because a frame picture can also can also contain interlaced top/bottom content (this is very common.) As far as I know, FFmpeg does not provide an easy way to determine if a particular AVPacket holds 1 field or 1 frame. > I don't know much about how avcodec > handles MTS files, so I was hoping this would be an easy answer for > one of the devs that's worked on the MTS demuxer. Mike Scheutzow From dev at rarevision.com Wed Jun 15 16:52:10 2011 From: dev at rarevision.com (Thomas Worth) Date: Wed, 15 Jun 2011 07:52:10 -0700 Subject: [FFmpeg-user] Detect if an MTS file is interlaced or not? In-Reply-To: <4DF8BC62.9090507@alcatel-lucent.com> References: <4DF76690.8070409@alcatel-lucent.com> <4DF8BC62.9090507@alcatel-lucent.com> Message-ID: On Wed, Jun 15, 2011 at 7:06 AM, Mike Scheutzow wrote: > Thomas Worth wrote: >>>> >>>> On Wed, Jun 8, 2011 at 2:13 AM, Thomas Worth wrote: >>>> It doesn't seem to be getting it from r_frame_rate, since that is >>>> always double the playback rate with MTS it seems. > >>> The double rate is not an artifact of the container. The container knows >>> nothing about the frame rate. >> >> The container, or at least the streams should be flagged as >> field-based and have some type of field order flag (top first / bottom >> first). > > For a transport stream container, this is not the case. There is no > field/frame info at the container level. There is no field/frame info at the > global stream level. For H.264, this information is placed at the Frame > level. > > For H.264, you have to examine the Slice NAL to determine field/frame and > top/bottom status. This is because H.264 is very flexible, and allows mixing > field pictures and frame pictures in the same elementary stream. > >> Otherwise, a playback device wouldn't know how to play it >> back. It is this information I need to interpret, but I just can't >> seem to get it. I know the information is there, I just need to know >> how to retrieve it from avcodec. > > There are two fields, but they don't tell you what you seem to want. > > See AVFrame.interlaced_frame and AVFrame.top_field_first in avcodec.h. These > fields are part of the AVFrame information returned by > avcodec_decode_video2(). > > Be careful though: these fields do NOT tell you whether the input to the > decoder was 2 field pictures or 1 frame picture, because a frame picture can > also can also contain interlaced top/bottom content (this is very common.) > > As far as I know, FFmpeg does not provide an easy way to determine if a > particular AVPacket holds 1 field or 1 frame. Thanks, Mike. That's very helpful. I've tried decoding a single frame and inspecting the AVFrame.interlaced_frame, but as you suspected it doesn't tell me what I need to know (even though avcodec.h suggests that this should be set by the decoder). What is perplexing is that VLC will play back these videos at the correct frame rate, and I suspect FFplay will as well. VLC also deinterlaces the video properly and with the correct field order. Since this is the case, how are these apps figuring this out? From ben at cardinalpeak.com Wed Jun 15 16:57:00 2011 From: ben at cardinalpeak.com (Ben Mesander) Date: Wed, 15 Jun 2011 07:57:00 -0700 (PDT) Subject: [FFmpeg-user] Detect if an MTS file is interlaced or not? In-Reply-To: <4DF8BC62.9090507@alcatel-lucent.com> References: <4DF76690.8070409@alcatel-lucent.com> <4DF8BC62.9090507@alcatel-lucent.com> Message-ID: <63300.93852.qm@web161304.mail.bf1.yahoo.com> > For a transport stream container, this is not the case. There is no field/frame >info at the container > level. There is no field/frame info at the global stream level. For H.264, this >information is placed at > the Frame level. > For H.264, you have to examine the Slice NAL to determine field/frame and >top/bottom status. This is > because H.264 is very flexible, and allows mixing field pictures and frame >pictures in the same > elementary stream. Yes, H.264 is very complex and wonderful. Once you get your hands on the NAL you can use the h264bitstream library to parse the information out of the NAL. Regards, Ben From drurowin at gmail.com Wed Jun 15 17:58:10 2011 From: drurowin at gmail.com (Lucien Pullen) Date: Wed, 15 Jun 2011 10:58:10 -0500 Subject: [FFmpeg-user] FFMPEG options to download fron ustream In-Reply-To: References: Message-ID: <4DF8D692.8070809@gmail.com> Also sprach S Gnanapoongothai at 6/15/11 7:17 AM: > I need to download from ustream using rtmp to a flv file.Can you > give any examples. I don't think UStream uses RTMP, if my research memory is correct. Do you mean live or recorded? There are plenty of ways to download a recorded video (GreaseMonkey, if your browser supports it), but getting the live feed is another story. From mike.scheutzow at alcatel-lucent.com Wed Jun 15 18:20:07 2011 From: mike.scheutzow at alcatel-lucent.com (Mike Scheutzow) Date: Wed, 15 Jun 2011 12:20:07 -0400 Subject: [FFmpeg-user] Detect if an MTS file is interlaced or not? In-Reply-To: References: <4DF76690.8070409@alcatel-lucent.com> <4DF8BC62.9090507@alcatel-lucent.com> Message-ID: <4DF8DBB7.1030709@alcatel-lucent.com> Thomas Worth wrote: > On Wed, Jun 15, 2011 at 7:06 AM, Mike Scheutzow > wrote: >> Thomas Worth wrote: >>>>> On Wed, Jun 8, 2011 at 2:13 AM, Thomas Worth wrote: >>>>> It doesn't seem to be getting it from r_frame_rate, since that is >>>>> always double the playback rate with MTS it seems. >>>> The double rate is not an artifact of the container. The container knows >>>> nothing about the frame rate. >>> The container, or at least the streams should be flagged as >>> field-based and have some type of field order flag (top first / bottom >>> first). >> For a transport stream container, this is not the case. There is no >> field/frame info at the container level. There is no field/frame info at the >> global stream level. For H.264, this information is placed at the Frame >> level. >> >> For H.264, you have to examine the Slice NAL to determine field/frame and >> top/bottom status. This is because H.264 is very flexible, and allows mixing >> field pictures and frame pictures in the same elementary stream. >> >>> Otherwise, a playback device wouldn't know how to play it >>> back. It is this information I need to interpret, but I just can't >>> seem to get it. I know the information is there, I just need to know >>> how to retrieve it from avcodec. >> There are two fields, but they don't tell you what you seem to want. >> >> See AVFrame.interlaced_frame and AVFrame.top_field_first in avcodec.h. These >> fields are part of the AVFrame information returned by >> avcodec_decode_video2(). >> >> Be careful though: these fields do NOT tell you whether the input to the >> decoder was 2 field pictures or 1 frame picture, because a frame picture can >> also can also contain interlaced top/bottom content (this is very common.) >> >> As far as I know, FFmpeg does not provide an easy way to determine if a >> particular AVPacket holds 1 field or 1 frame. > > Thanks, Mike. That's very helpful. I've tried decoding a single frame > and inspecting the AVFrame.interlaced_frame, but as you suspected it > doesn't tell me what I need to know (even though avcodec.h suggests > that this should be set by the decoder). The AVFrame.interlaced_frame value is set correctly for me when field pictures are fed to the h264 decoder. (I'm not using latest git, but it seems unlikely this got broken.) Are you sure that avcodec_decode_video2() said that a decoded frame was available? If your stream has P slices, you should have fed it at least four AVPackets before the AVFrame valid flag was set. > but as you suspected it doesn't tell me what I need to know My warning was that your plan has a *conceptual* problem; I was not saying that AVFrame.interlaced_frame is wrong for some situations. > What is perplexing is that > VLC will play back these videos at the correct frame rate, and I > suspect FFplay will as well. VLC also deinterlaces the video properly > and with the correct field order. Since this is the case, how are > these apps figuring this out? Mike Scheutzow From mike.scheutzow at alcatel-lucent.com Wed Jun 15 19:11:15 2011 From: mike.scheutzow at alcatel-lucent.com (Mike Scheutzow) Date: Wed, 15 Jun 2011 13:11:15 -0400 Subject: [FFmpeg-user] Detect if an MTS file is interlaced or not? In-Reply-To: <4DF8DBB7.1030709@alcatel-lucent.com> References: <4DF76690.8070409@alcatel-lucent.com> <4DF8BC62.9090507@alcatel-lucent.com> <4DF8DBB7.1030709@alcatel-lucent.com> Message-ID: <4DF8E7B3.50006@alcatel-lucent.com> Mike Scheutzow wrote: > If your stream has P slices, you should have fed it at least > four AVPackets before the AVFrame valid flag was set. Grrrr. This should say "B slices", not "P slices". Mike Scheutzow From richard at richsim900.plus.com Wed Jun 15 21:42:18 2011 From: richard at richsim900.plus.com (richard) Date: Wed, 15 Jun 2011 20:42:18 +0100 Subject: [FFmpeg-user] Invalid non monotonically increasing dts In-Reply-To: Message-ID: <1308166938.6868.4.camel@base-desktop> On Wed Jun 15 14:16:44 CEST 2011 bat guano wrote: > > I don't know how to CURE the 'non monotonically increasing dts' > problem with your file. > But I know how to help PREVENT it happening in future. > Use '--rtmp-liveradio-opts --live' option. > Information is in the thread here:- > http://lists.infradead.org/pipermail/get_iplayer/2011-May/001504.html Hi bat I had used the '--rtmp-liveradio-opts --live' option, so it doesn't always prevent the invalid dts error, but may help prevent it. I suspect (but I'm not certain) the invalid dts error may be due to poor broadband connection at the time of downloading. I have poor broadband due to distance from the BT exchange, which is worse at peak times in the evening. The live download that produced the invalid dts error was made between 7.30-8.25pm. A later live download between 8.45-10.00pm was OK. When I downloaded the same radio concert using the 'listen again' iplayer, it downloaded at 195kbps. From mark at mdsh.com Wed Jun 15 22:24:50 2011 From: mark at mdsh.com (Mark Himsley) Date: Wed, 15 Jun 2011 21:24:50 +0100 Subject: [FFmpeg-user] DPX Sequence Encode In-Reply-To: References: Message-ID: <4DF91512.6030101@mdsh.com> On 15/06/2011 06:31, Lawrence wrote: > I am unable to encode a dpx sequence. Can someone point me in the right > direction? > > ffmpeg -vcodec copy -i *.dpx -an o.avi > FFmpeg version 0.6-4:0.6-2ubuntu6, Copyright (c) 2000-2010 the FFmpeg > developers > built on Oct 6 2010 00:27:06 with gcc 4.4.5 [...] > Input #0, image2, from 'c4562F0001.dpx': > Duration: 00:00:00.04, start: 0.000000, bitrate: N/A > Stream #0.0: Video: dpx, rgb48be, 3888x2272, 25 tbr, 25 tbn, 25 tbc > Unable to find a suitable output format for 'c4562F0002.dpx' Your command interpreter has has expanded *.dpx, which is not what you wanted. You also want to have -i before -vcodec copy try ... -i c4562f%04d.dpx -vcodec copy ... I'm assuming that your frames all start with c4562f and are followed with 4 numbers that are the frame number and end with .dpx see http://www.ffmpeg.org/ffmpeg.html#SEC48 -- Mark From dev at rarevision.com Thu Jun 16 00:02:55 2011 From: dev at rarevision.com (Thomas Worth) Date: Wed, 15 Jun 2011 15:02:55 -0700 Subject: [FFmpeg-user] Detect if an MTS file is interlaced or not? In-Reply-To: <4DF8DBB7.1030709@alcatel-lucent.com> References: <4DF76690.8070409@alcatel-lucent.com> <4DF8BC62.9090507@alcatel-lucent.com> <4DF8DBB7.1030709@alcatel-lucent.com> Message-ID: On Wed, Jun 15, 2011 at 9:20 AM, Mike Scheutzow wrote: > > Thomas Worth wrote: >> >> On Wed, Jun 15, 2011 at 7:06 AM, Mike Scheutzow >> wrote: >>> >>> Thomas Worth wrote: >>>>>> >>>>>> On Wed, Jun 8, 2011 at 2:13 AM, Thomas Worth >>>>>> wrote: >>>>>> It doesn't seem to be getting it from r_frame_rate, since that is >>>>>> always double the playback rate with MTS it seems. >>>>> >>>>> The double rate is not an artifact of the container. The container >>>>> knows >>>>> nothing about the frame rate. >>>> >>>> The container, or at least the streams should be flagged as >>>> field-based and have some type of field order flag (top first / bottom >>>> first). >>> >>> For a transport stream container, this is not the case. There is no >>> field/frame info at the container level. There is no field/frame info at >>> the >>> global stream level. For H.264, this information is placed at the Frame >>> level. >>> >>> For H.264, you have to examine the Slice NAL to determine field/frame and >>> top/bottom status. This is because H.264 is very flexible, and allows >>> mixing >>> field pictures and frame pictures in the same elementary stream. >>> >>>> Otherwise, a playback device wouldn't know how to play it >>>> back. It is this information I need to interpret, but I just can't >>>> seem to get it. I know the information is there, I just need to know >>>> how to retrieve it from avcodec. >>> >>> There are two fields, but they don't tell you what you seem to want. >>> >>> See AVFrame.interlaced_frame and AVFrame.top_field_first in avcodec.h. >>> These >>> fields are part of the AVFrame information returned by >>> avcodec_decode_video2(). >>> >>> Be careful though: these fields do NOT tell you whether the input to the >>> decoder was 2 field pictures or 1 frame picture, because a frame picture >>> can >>> also can also contain interlaced top/bottom content (this is very >>> common.) >>> >>> As far as I know, FFmpeg does not provide an easy way to determine if a >>> particular AVPacket holds 1 field or 1 frame. >> >> Thanks, Mike. That's very helpful. I've tried decoding a single frame >> and inspecting the AVFrame.interlaced_frame, but as you suspected it >> doesn't tell me what I need to know (even though avcodec.h suggests >> that this should be set by the decoder). > > The AVFrame.interlaced_frame value is set correctly for me when field > pictures are fed to the h264 decoder. (I'm not using latest git, but it > seems unlikely this got broken.) > > Are you sure that avcodec_decode_video2() said that a decoded frame was > available? If your stream has P slices, you should have fed it at least four > AVPackets before the AVFrame valid flag was set. Yep, that was the problem. It's working now. Thanks! From soho123.2012 at gmail.com Thu Jun 16 03:31:55 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Thu, 16 Jun 2011 09:31:55 +0800 Subject: [FFmpeg-user] [FFmpeg-devel] is it possible set ffmpeg in block mode In-Reply-To: <20110615113740.GA16620@phare.normalesup.org> References: <20110615113740.GA16620@phare.normalesup.org> Message-ID: Hi, You mean : I can post my question : either on ffmpeg-devel or on ffmpeg-user right? Thanks! Soho 2011/6/15 Nicolas George : > Le septidi 27 prairial, an CCXIX, Soho Soho123 a ?crit?: >> is it possible to set ffmpeg in BLOCK mode when grab image data from UVC Cam? >> Or can ffmpeg support BLOCK mode currently? > > Could you please cross-posting your user questions to the development > mailing-list? Since you post on both, you know that both exist, you do not > have that excuse. > > I do not think that posting to Michael's personal address is ok either. > > Regards, > > -- > ?Nicolas George > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.11 (GNU/Linux) > > iEYEARECAAYFAk34mYQACgkQsGPZlzblTJO+EwCaA230n9NY9gHF1FBTZdGNftPV > l6gAoJ4vdKW+lIoAOkdwhorYw9eKR0n2 > =IGZW > -----END PGP SIGNATURE----- > > _______________________________________________ > ffmpeg-devel mailing list > ffmpeg-devel at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > From phamsyquybk at gmail.com Thu Jun 16 03:55:02 2011 From: phamsyquybk at gmail.com (Quy Pham Sy) Date: Thu, 16 Jun 2011 10:55:02 +0900 Subject: [FFmpeg-user] [FFmpeg-users] Play encoder's output video as it's being encoded In-Reply-To: <4DF86115.2020502@zonnet.nl> References: <4DF86115.2020502@zonnet.nl> Message-ID: Hi, sorry i didnt make that clear in my question. >> Out of this I can't see what your encoding options are. I use H264/AVC encoding to mpegts >> You mention 'moov atom', so I guess it's mp4 ?? Yes, And here the question again: Is it possible to play output video of encoding while it's being encoded? AFAIK, ffmpeg always put 'moov atom' at the end of file so that player can not play video file until encoding process finish. Is there anyway that make ffmpeg put "moov atom" to beginning of video file, or players can play raw output from encoding without moov atom? Thanks, Quy From rickcorteza at gmail.com Thu Jun 16 05:37:38 2011 From: rickcorteza at gmail.com (Rick C.) Date: Thu, 16 Jun 2011 11:37:38 +0800 Subject: [FFmpeg-user] Apple prores issue Message-ID: <3E2838F6-5482-4565-A69A-F37D22FE89E5@gmail.com> Hi, Does anyone know why I might be getting this? I tried with 2 different FFmpeg builds: older build: mahalkos-MacBook:~ mahalko$ /Users/mahalko/Desktop/ffmpeg -i /Users/mahalko/Desktop/Test422.mov /Users/mahalko/Desktop/test.mp4FFmpeg version git-N-28698-g621f4c9, Copyright (c) 2000-2011 the FFmpeg developers built on Mar 30 2011 13:29:37 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 50. 40. 0 / 50. 40. 0 libavcodec 52.116. 0 / 52.116. 0 libavformat 52.104. 0 / 52.104. 0 libavdevice 52. 4. 0 / 52. 4. 0 libavfilter 1. 76. 0 / 1. 76. 0 libswscale 0. 13. 0 / 0. 13. 0 Seems stream 0 codec frame rate differs from container frame rate: 2997.00 (2997/1) -> 29.97 (2997/100) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/mahalko/Desktop/Test422.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-06-15 13:41:56 Duration: 00:02:45.13, start: -132.693360, bitrate: 24875 kb/s Stream #0.0(eng): Video: Apple ProRes 422, 1920x1080, 141114 kb/s, PAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc Metadata: creation_time : 2011-06-15 13:41:56 Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: creation_time : 2011-06-15 13:41:56 Stream #0.2(eng): Data: tmcd / 0x64636D74 Metadata: creation_time : 2011-06-15 13:41:56 Segmentation fault newer build: mahalkos-MacBook:~ mahalko$ /Users/mahalko/Desktop/ffmpeg -i /Users/mahalko/Desktop/Test422.mov /Users/mahalko/Desktop/test.mp4 ffmpeg version git-N-29814-gf1e7822, Copyright (c) 2000-2011 the FFmpeg developers built on May 12 2011 14:28:32 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. 2. 1 / 51. 2. 1 libavcodec 53. 5. 0 / 53. 5. 0 libavformat 53. 0. 3 / 53. 0. 3 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 5. 0 / 2. 5. 0 libswscale 0. 14. 0 / 0. 14. 0 Seems stream 0 codec frame rate differs from container frame rate: 2997.00 (2997/1) -> 29.97 (2997/100) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/mahalko/Desktop/Test422.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-06-15 13:41:56 Duration: 00:02:45.13, start: -132.693360, bitrate: 24875 kb/s Stream #0.0(eng): Video: Apple ProRes 422, 1920x1080, 141114 kb/s, PAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc Metadata: creation_time : 2011-06-15 13:41:56 Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: creation_time : 2011-06-15 13:41:56 Stream #0.2(eng): Data: tmcd / 0x64636D74 Metadata: creation_time : 2011-06-15 13:41:56 [buffer @ 0x101303a60] Invalid pixel format string '-1' Error opening filters! Thanks! From ankuj2004 at gmail.com Thu Jun 16 05:37:46 2011 From: ankuj2004 at gmail.com (Ankuj Gupta) Date: Thu, 16 Jun 2011 09:07:46 +0530 Subject: [FFmpeg-user] Encode MPEG4 video with RVLC In-Reply-To: References: Message-ID: Hi, Can someone throw some light on this ? Ankuj On Wed, Jun 15, 2011 at 4:47 PM, Ankuj Gupta wrote: > Hi, > > How can one encode MPEG4 video having RVLC ? There was option for data > partitioning but could not find option for RVLC. > > Ankuj > From soho123.2012 at gmail.com Thu Jun 16 08:36:25 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Thu, 16 Jun 2011 14:36:25 +0800 Subject: [FFmpeg-user] is it possible set ffmpeg in block mode In-Reply-To: References: Message-ID: Hi All, any one have idea? 2011/6/15 Soho Soho123 : > Hi all, > > is it possible to set ffmpeg in BLOCK mode when grab image data from UVC Cam? > Or can ffmpeg support BLOCK mode currently? > > Thanks > Soho > From peter at gpscam.nl Thu Jun 16 08:50:07 2011 From: peter at gpscam.nl (Peter Hassing) Date: Thu, 16 Jun 2011 06:50:07 +0000 (UTC) Subject: [FFmpeg-user] how to send arbitrary data on top of video stream. Message-ID: <2000ca22-cf70-4ca5-9a00-4eb28c1f01e3@mackie.local> Hi all, I'm streaming video over rtp to a wowza server, which re-streams over (mostly) rtmp. I would like to send extra data over the same connection, like status of the cam, gps-position, state of switches, and so on. This data is needed on the client side (flowplayer) but should not always be visible to the viewers. ( so overlay is not the solution) Is it possible to add (one or more) subtitle tracks that read from a fifo instead of from a srt file ? And would this be doable without knowing the quepoints for display timing ? This is a live stream, so easiest would be if the data was just added as soon as it is in the fifo. Or is there maybe a better / easier / more common way ? Thanks for your insights. Peter. From belcampo at zonnet.nl Thu Jun 16 10:08:15 2011 From: belcampo at zonnet.nl (belcampo) Date: Thu, 16 Jun 2011 10:08:15 +0200 Subject: [FFmpeg-user] is it possible set ffmpeg in block mode In-Reply-To: References: Message-ID: <4DF9B9EF.1060706@zonnet.nl> On 06/16/11 08:36, Soho Soho123 wrote: > Hi All, > > > any one have idea? Maybe you could 1st explain what you mean by block-mode. What is the problem you are trying to solve ? > > 2011/6/15 Soho Soho123: >> Hi all, >> >> is it possible to set ffmpeg in BLOCK mode when grab image data from UVC Cam? >> Or can ffmpeg support BLOCK mode currently? >> >> Thanks >> Soho >> > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From belcampo at zonnet.nl Thu Jun 16 10:13:24 2011 From: belcampo at zonnet.nl (belcampo) Date: Thu, 16 Jun 2011 10:13:24 +0200 Subject: [FFmpeg-user] [FFmpeg-users] Play encoder's output video as it's being encoded In-Reply-To: References: <4DF86115.2020502@zonnet.nl> Message-ID: <4DF9BB24.2090903@zonnet.nl> On 06/16/11 03:55, Quy Pham Sy wrote: > Hi, > sorry i didnt make that clear in my question. >>> Out of this I can't see what your encoding options are. > I use H264/AVC encoding to mpegts > >>> You mention 'moov atom', so I guess it's mp4 ?? > Yes, > > > And here the question again: > > Is it possible to play output video of encoding while it's being encoded? > AFAIK, ffmpeg always put 'moov atom' at the end of file so that player > can not play video file until encoding process finish. Is there anyway that > make ffmpeg put "moov atom" to beginning of video file, or players can > play raw output from encoding without moov atom? ffmpeg -i source.mp4 -vcodec libx264 -acodec xxxxx -f mpegts encoded.mpg The source.mp4 already is an existing file incl. the moov atom which can be played by any suitable player, and the resulting encoded.mpg als can be played while being encoded/created. > > > Thanks, > Quy > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From ronag89 at gmail.com Thu Jun 16 10:14:31 2011 From: ronag89 at gmail.com (Robert Nagy) Date: Thu, 16 Jun 2011 10:14:31 +0200 Subject: [FFmpeg-user] Transcoding 1080i5000 using libx264 Message-ID: Hi I would like to transcode a 1080i5000 to H264 using ffmpeg and libx264. Currently I'm using the following command-line: ffmpeg -i -vcodec libx264 -tune fastdecode -crf 18 -preset medium -threads 0 My question is what additional options do I need to provide in order to properly transcode tff interlaced video? Best Regards From lists at glidos.net Thu Jun 16 11:58:35 2011 From: lists at glidos.net (Paul Gardiner) Date: Thu, 16 Jun 2011 10:58:35 +0100 Subject: [FFmpeg-user] Transcoding 1080i5000 using libx264 In-Reply-To: References: Message-ID: <4DF9D3CB.4080508@glidos.net> On 16/06/2011 09:14, Robert Nagy wrote: > Hi > > I would like to transcode a 1080i5000 to H264 using ffmpeg and libx264. > > Currently I'm using the following command-line: > > ffmpeg -i -vcodec libx264 -tune fastdecode -crf 18 -preset medium > -threads 0 > > My question is what additional options do I need to provide in order to > properly transcode tff interlaced video? -flags +ilme+ildct It should recognise tff automatically. Otherwise you need -top 1 That works for me beautifully. Another option that wont make a much bigger file, but may make one that requires more grunt to play is to deinterlace and encode at double frame rate. Instead of above, add: -vf yadif=3 (before -vcodec libx264) and -r 50 (after -vcodec libx264) I'm not sure that the placement matters, but that's what's working for me. If you want to downscale to 720p50 then -vf yadif=3,scale=1280:720 Cheers, Paul. From ankuj2004 at gmail.com Thu Jun 16 12:00:04 2011 From: ankuj2004 at gmail.com (Ankuj Gupta) Date: Thu, 16 Jun 2011 15:30:04 +0530 Subject: [FFmpeg-user] Encode MPEG4 video with Reversible VLC Message-ID: Can someone help me with it ? Ankuj On Thu, Jun 16, 2011 at 9:07 AM, Ankuj Gupta wrote: > Hi, > > Can someone throw some light on this ? > > Ankuj > > On Wed, Jun 15, 2011 at 4:47 PM, Ankuj Gupta wrote: >> Hi, >> >> How can one encode MPEG4 video having RVLC ? There was option for data >> partitioning but could not find option for RVLC. >> >> Ankuj >> > From Bradley at NorthTech.US Thu Jun 16 12:05:45 2011 From: Bradley at NorthTech.US (Bradley D. Thornton) Date: Thu, 16 Jun 2011 03:05:45 -0700 Subject: [FFmpeg-user] Sound or Video - but I can't get both to work... In-Reply-To: <4DF5E539.2070408@NorthTech.US> References: <4DF56DE7.3090200@NorthTech.US> <4DF56EAE.9080401@thelounge.net> <4DF571CE.6080003@NorthTech.US> <201106131214.04865.fabian@lesniak-it.de> <4DF5E539.2070408@NorthTech.US> Message-ID: <4DF9D579.60502@NorthTech.US> This is really, really weird if you ask me... On 06/13/2011 03:23 AM, Bradley D. Thornton wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: RIPEMD160 > > > > On 06/13/2011 03:14 AM, Fabian Lesniak wrote: >> The problem may be your sound card: AFAIK, you can only record your local >> playback (PCM) when your sound card supports to set it as a "recording" >> channel. You may try if you can set capture to your pcm via alsamixer. >> And specifying the -f parameter before -i is okay in this case, because it >> tells ffmpeg to not read a file named "hw:0,0" but open hw:0,0 using alsa. You >> may also try to open the "default" device. >> I did my last screen capture some time ago, but I noted the following: >> >> sox -t alsa "hw:0,0" -t ogg -A -2 -c1 -r44100 - | ffmpeg -i - -f x11grab -s >> 1280x1024 -g 300 -r 15 -i :0.0 -s 640x512 -ab 128k -ar 44100 -b 1500k -vc >> mpeg4 out.avi >> >> As you can see, I used sox to record audio, but I don't actually know anymore >> why I did... > Okay, there's quality issues, and the sound lags a bit... but I suppose if it's consistently lagging by x% or X seconds I can fix that when I edit in kdenlive or openshot, etc. Here's a variation on your command line that is beginning to pan out for me, but like I said, there's some issues to be worked out, and I'm basically blindfoled, with a stick in my hand, spun around and told to whack the pinata. IOW: I'll have to sort out everything on the command line later and begin to mold it into something workable. sox -t alsa plughw:0 -t ogg -A -2 -c1 -r44100 - | ffmpeg -i - -f x11grab -s 1440x900 -g 300 -r 15 -i :0.0 -s 1440x900 -ab 128k -ar 44100 -b 1500k -vc mpeg4 out.avi Interestingly enough, I have found that if I set the screen resolution to 400x600 - I can get audio with a few other different command lines along the lines of: ffmpeg -f alsa -i plughw:0 -f x11grab -r 30 -s 400x600 -i :0.0 -acodec libmp3lame -vcodec libx264 -vpre lossless_ultrafast output.avi and... ffmpeg -f alsa -i plughw:0 -f x11grab -r 30 -s 400x600 -i :0.0 -acodec libmp3lame -ab 128k -vcodec mpeg4 -b 1000k -qscale 10 output.avi If I increase to even 800x600 - no audio. As I was telling someone else, it's as if I've got all these straws, and I keep stacking the resolution higher with them until the camel just goes on strike :) My resolution is 1440x900 too on this laptop! LOL. And although I *could* probably get by with just a capture of a single window of an xterm for now, and then add the audio in later for the entire desktop shots, I'm finding this rather weird, with consideration to the resolution breaking audio at anyhthing higher than 400x600. ~/$ ffmpeg -f alsa -i plughw:0 -f x11grab -r 30 -s 400x600 -i :0.0 -acodec libmp3lame -vcodec libx264 -vpre lossless_ultrafast output.avi FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers built on Feb 3 2011 00:17:04 with gcc 4.4.4 configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/man --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-libdc1394 --enable-libfaad --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvpx --enable-libx264 --enable-runtime-cpudetect --enable-vaapi --disable-vdpau --enable-memalign-hack --enable-pthreads --enable-x11grab --enable-bzlib --enable-zlib --enable-shared --enable-static --disable-debug --arch=x86_64 --enable-pic --extra-cflags='-I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include -DRUNTIME_CPUDETECT' --extra-ldflags='-L/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib64 -lssl -lcrypto -lz -lusb' libavutil 50.15. 1 / 50.15. 1 libavcodec 52.73. 2 / 52.73. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 [alsa @ 0x63a4f0]capture with some ALSA plugins, especially dsnoop, may hang. [alsa @ 0x63a4f0]Estimating duration from bitrate, this may be inaccurate Input #0, alsa, from 'plughw:0': Duration: N/A, start: 443109.438166, bitrate: N/A Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s [x11grab @ 0x65d0e0]device: :0.0 -> display: :0.0 x: 0 y: 0 width: 400 height: 600 [x11grab @ 0x65d0e0]shared memory extension found [x11grab @ 0x65d0e0]Estimating duration from bitrate, this may be inaccurate Input #1, x11grab, from ':0.0': Duration: N/A, start: 1308215546.644068, bitrate: 230400 kb/s Stream #1.0: Video: rawvideo, bgra, 400x600, 230400 kb/s, 30 tbr, 1000k tbn, 30 tbc File 'output.avi' already exists. Overwrite ? [y/N] y [libx264 @ 0x66a6b0]using cpu capabilities: MMX2 SSE2Slow SlowCTZ [libx264 @ 0x66a6b0]profile High 4:4:4 Predictive, level 3.0, bit depth 8 Output #0, avi, to 'output.avi': Metadata: ISFT : Lavf52.64.2 Stream #0.0: Video: libx264, yuv420p, 400x600, q=10-51, 200 kb/s, 30 tbn, 30 tbc Stream #0.1: Audio: libmp3lame, 44100 Hz, 1 channels, s16, 64 kb/s Stream mapping: Stream #1.0 -> #0.0 Stream #0.0 -> #0.1 Press [q] to stop encoding [alsa @ 0x63a4f0]ALSA buffer xrun. frame= 35 fps= 6 q=-1.0 Lsize= 115kB time=5.64 bitrate= 167.2kbits/s video:50kB audio:44kB global headers:0kB muxing overhead 22.449107% [libx264 @ 0x66a6b0]frame I:1 Avg QP: 0.00 size: 29906 [libx264 @ 0x66a6b0]frame P:34 Avg QP: 0.00 size: 626 [libx264 @ 0x66a6b0]mb I I16..4: 76.8% 0.0% 23.2% [libx264 @ 0x66a6b0]mb P I16..4: 53.4% 0.0% 0.0% P16..4: 0.0% 0.0% 0.0% 0.0% 0.0% skip:46.6% [libx264 @ 0x66a6b0]coded y,uvDC,uvAC intra: 1.8% 2.7% 2.6% inter: 0.0% 0.0% 0.0% [libx264 @ 0x66a6b0]i16 v,h,dc,p: 99% 1% 0% 0% [libx264 @ 0x66a6b0]i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 45% 5% 2% 1% 1% 1% 1% 2% [libx264 @ 0x66a6b0]i8c dc,h,v,p: 93% 2% 5% 0% [libx264 @ 0x66a6b0]kb/s:351.02 ~/$ Thanks again Fabian :) > >> >> Am Montag, 13. Juni 2011, 04:11:26 schrieb Bradley D. Thornton: >>> On 06/12/2011 06:58 PM, Reindl Harald wrote: >>>> Am 13.06.2011 03:54, schrieb Bradley D. Thornton: >>>>> I get video but no sound when I do this: >>>>> >>>>> ffmpeg -f alsa -i plughw:0,0 -f x11grab -r 25 -s 1440x900 -i :0.0 >>>>> -acodec pcm_s16le -vcodec huffyuv -sameq screencast.avi >>>>> >>>>> or this: >>>>> >>>>> ffmpeg -f alsa -ac 2 -i plughw:0,0 -f x11grab -r 25 -s 1440x900 -i :0.0 >>>>> -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 >>>>> output.mkv >>>>> >>>>> -f oss (gives an error - no device) and I do not have pulse. >>>> >>>> why do you specifiy params before "-i"? >>>> these are normally for the input-file and i guess >>>> ffmpeg will in most cases know better what the input is >>> >>> That's what the tutorial here: >>> http://verb3k.wordpress.com/2010/01/26/how-to-do-proper-screencasts-on-linu >>> x/ gave as examples, and also what other people were offering up. >>> >>> I get the following errors when I try your suggestion with the >>> corresponding command: >>> >>> >>> >>> ffmpeg -i plughw:0 -f x11grab -r 25 -s 1440x900 -i :0.0 -acodec >>> pcm_s16le -vcodec huffyuv -sameq screencast.avi >>> >>> FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers >>> built on Feb 3 2011 00:17:04 with gcc 4.4.4 >>> configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 >>> --mandir=/usr/man --enable-libmp3lame --enable-libfaac --enable-nonfree >>> --enable-gpl --enable-version3 --enable-postproc --enable-avfilter >>> --enable-libdc1394 --enable-libfaad --enable-libgsm >>> --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp >>> --enable-libschroedinger --enable-libspeex --enable-libtheora >>> --enable-libvpx --enable-libx264 --enable-runtime-cpudetect >>> --enable-vaapi --disable-vdpau --enable-memalign-hack --enable-pthreads >>> --enable-x11grab --enable-bzlib --enable-zlib --enable-shared >>> --enable-static --disable-debug --arch=x86_64 --enable-pic >>> --extra-cflags='-I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include >>> -DRUNTIME_CPUDETECT' >>> --extra-ldflags='-L/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib64 -lssl >>> -lcrypto -lz -lusb' >>> libavutil 50.15. 1 / 50.15. 1 >>> libavcodec 52.73. 2 / 52.73. 2 >>> libavformat 52.64. 2 / 52.64. 2 >>> libavdevice 52. 2. 0 / 52. 2. 0 >>> libavfilter 1.19. 0 / 1.19. 0 >>> libswscale 0.11. 0 / 0.11. 0 >>> libpostproc 51. 2. 0 / 51. 2. 0 >>> plughw:0,0: No such file or directory >>> >>> >>> >>> >>> And I only removed the first -f for the audio device. I get the same >>> error when I remove both -f parameters, although it doesn't make sense >>> to me why I would not have them there anyway, and even if they were >>> optional to specify, why it would be better not to? >>> >>>> _______________________________________________ >>>> 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 > > - -- > Bradley D. Thornton > Manager Network Services > NorthTech Computer > TEL: +1.760.666.2703 (US) > TEL: +44.203.318.2755 (UK) > http://NorthTech.US > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Find this cert at x-hkp://pool.sks-keyservers.net > > iQEcBAEBAwAGBQJN9eU5AAoJEE1wgkIhr9j38k0H/3ZhH6PQYhnxx1FnkKugZZrZ > LNRYQ2f47/RWc5t4jfjYJjRXHFth2Xzb9EM9F0T/g4SvMOAAjn31eXQE7D02Eka4 > FFNCivG5juU42B1qAehlEG+E+SBauNj6T6taY5yfVnOLZwKAtD1qcLGXwCxI+dpS > tIkg2PSfYNu7ZIkcWVxgC66WmTMQRuH4sKFXa6yyRszr42INIa/tVobahXrcRFg0 > DCFz7svpJW0fsZ3DmWhCvDZpPmCMRXgzB7+beof9rp8/J2wmte16TYYQXOcslBXa > QV+H4L/KwJHT0K9G5lHg2MQt1cszAJHqz4ZqNLgxUnTbVdlvCza07pMCUwodH1E= > =pjb0 > -----END PGP SIGNATURE----- > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user -- Bradley D. Thornton Manager Network Services NorthTech Computer TEL: +1.760.666.2703 (US) TEL: +44.203.318.2755 (UK) http://NorthTech.US From nicolas.george at normalesup.org Thu Jun 16 12:56:04 2011 From: nicolas.george at normalesup.org (Nicolas George) Date: Thu, 16 Jun 2011 12:56:04 +0200 Subject: [FFmpeg-user] [FFmpeg-devel] is it possible set ffmpeg in block mode In-Reply-To: References: <20110615113740.GA16620@phare.normalesup.org> Message-ID: <20110616105604.GA20063@phare.normalesup.org> L'octidi 28 prairial, an CCXIX, Soho Soho123 a ?crit?: > You mean : > I can post my question : > either on ffmpeg-devel > or > on ffmpeg-user > right? I mean you must read the mailing-lists' rules ( http://lists.ffmpeg.org/contact.html ) and obey to them. You broke yet another one in this very mail. I do not intend to reply again on this matter, and I apologize to the other readers for the useless noise. 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 phamsyquybk at gmail.com Thu Jun 16 13:02:28 2011 From: phamsyquybk at gmail.com (Quy Pham Sy) Date: Thu, 16 Jun 2011 20:02:28 +0900 Subject: [FFmpeg-user] [FFmpeg-users] Play encoder's output video as it's being encoded In-Reply-To: <4DF9BB24.2090903@zonnet.nl> References: <4DF86115.2020502@zonnet.nl> <4DF9BB24.2090903@zonnet.nl> Message-ID: > ffmpeg -i source.mp4 -vcodec libx264 -acodec xxxxx -f mpegts encoded.mpg > The source.mp4 already is an existing file incl. the moov atom which can be > played by any suitable player, and the resulting encoded.mpg als can be > played while being encoded/created. Hi, Here is my encoding command: ffmpeg -i test.avi -acodec libfaac -ar 48000 -ab 128k -ac 2 -vcodec libx264 -s 480x320 -b 256k -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 200k -maxrate 256k -bufsize 256k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 480:320 -g 30 -async 2 test.mpg the result can be played with vlc. Quicktime and android's player can not play resulting file. is that because they are not a suitable player? What i about to do is sending output of encoding to android and iphone to player while it's being encode. Do i need to implement my own player? very thanks Quy From soho123.2012 at gmail.com Thu Jun 16 14:18:47 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Thu, 16 Jun 2011 20:18:47 +0800 Subject: [FFmpeg-user] how to output .mov stream In-Reply-To: References: Message-ID: Hi all, I would like to output .mov stream with the url http://localhost:8090/test.mov for QuickTime . But it is fail. Does any one have idea? my ffserver conf for mov stream : Feed feed1.ffm Format mov NoAudio VideoCodec mpeg4 AVOptionVideo flags +global_header VideoBitRate 256 VideoBufferSize 4000 VideoFrameRate 10 VideoSize 320x240 Preroll 15 and the command to start ffmpeg ffmpeg -vglobal 1 -intra -f video4linux2 -vcodec mjpeg -r 10 -s 320x240 -qscale 4 -i /dev/video0 -vcodec mpeg4 http://localhost:8090/feed1.ffm then i get the error:muxer does not support non seekable output It seems .mov can not output with http url, right? Thanks! Soho From belcampo at zonnet.nl Thu Jun 16 14:27:32 2011 From: belcampo at zonnet.nl (belcampo) Date: Thu, 16 Jun 2011 14:27:32 +0200 Subject: [FFmpeg-user] [FFmpeg-users] Play encoder's output video as it's being encoded In-Reply-To: References: <4DF86115.2020502@zonnet.nl> <4DF9BB24.2090903@zonnet.nl> Message-ID: <4DF9F6B4.6070800@zonnet.nl> On 06/16/11 13:02, Quy Pham Sy wrote: >> ffmpeg -i source.mp4 -vcodec libx264 -acodec xxxxx -f mpegts encoded.mpg >> The source.mp4 already is an existing file incl. the moov atom which can be >> played by any suitable player, and the resulting encoded.mpg als can be >> played while being encoded/created. > > Hi, > > Here is my encoding command: > > ffmpeg -i test.avi -acodec libfaac -ar 48000 -ab 128k -ac 2 -vcodec > libx264 -s 480x320 -b 256k -flags +loop -cmp +chroma -partitions > +parti4x4+partp8x8+partb8x8 -subq 5 -trellis 1 -refs 1 -coder 0 > -me_range 16 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -bt 200k > -maxrate 256k -bufsize 256k -rc_eq 'blurCplx^(1-qComp)' -qcomp 0.6 > -qmin 10 -qmax 51 -qdiff 4 -level 30 -aspect 480:320 -g 30 -async 2 > test.mpg > > the result can be played with vlc. Quicktime and android's player can > not play resulting file. > is that because they are not a suitable player? AFAIK not for the above command. Search for the exact specs that QuickTime and Android need. BTW your command is not een mpegts but an mpegps stream. You'll have to specify -f mpegts to make it an mpegts format. I don't know if that will make THE difference though, to make them playable. > > What i about to do is sending output of encoding to android and iphone > to player while it's being encode. > Do i need to implement my own player? > > very thanks > Quy > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From richard at richsim900.plus.com Thu Jun 16 15:09:56 2011 From: richard at richsim900.plus.com (richard) Date: Thu, 16 Jun 2011 14:09:56 +0100 Subject: [FFmpeg-user] Invalid non monotonically increasing dts In-Reply-To: <1308166938.6868.4.camel@base-desktop> Message-ID: <1308229796.6411.11.camel@base-desktop> On Wed, 15 Jun 2011 12:46:42 Richard wrote: > > Downloaded a live concert (320 kbps) using get_iplayer. Unpacked the > flv file using: > > ffmpeg -i input.flv -acodec copy output.m4a > > but ffmpeg aborts with this error message: > > [ipod @ 0x8dff810] Application provided invalid, non monotonically > increasing dts to muxer in stream 0: 634952 >= 634599 > av_interleaved_write_frame(): Invalid data found when processing input > MP4ERROR: MP4File::FindIntegerProperty: no such property - > moov.mvhd.modificationTime > >> Tried to re-encode the flv with: > > ffmpeg -i input.flv -acodec libfaac -ab 320k output.m4a > > This produced a playable m4a but it encoded at 152 kbps instead of > 320kbps. I wanted 320 kbps sound quality. Found a workaround. Re-encoded the flv with: ffmpeg -i input.flv -acodec aac -strict experimental -ab 325k output.m4a This produced playable m4a encoded at 300 kbps. Odd that libfaac should encode at 152 kbps (instead of 320 kpbs) yet acc (which ffmpeg reports as an experimental encoder) encodes at 300 kpbs. From e.lesage at skynet.be Wed Jun 1 12:05:54 2011 From: e.lesage at skynet.be (higgins0) Date: Wed, 01 Jun 2011 10:05:54 -0000 Subject: [FFmpeg-user] MXF wrapping with fixed length BER (4Byte) Message-ID: <1306922713617-3565401.post@n4.nabble.com> is there a way to force FFMBC command lines versions to work that way : encode KLV length in fixed 4 bytes, instead of a variable length? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/MXF-wrapping-with-fixed-length-BER-4Byte-tp3565401p3565401.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From nr at cs.tufts.edu Thu Jun 2 02:42:55 2011 From: nr at cs.tufts.edu (Norman Ramsey) Date: Wed, 1 Jun 2011 20:42:55 -0400 (EDT) Subject: [FFmpeg-user] difficulty getting any filters to work in Jun 1 development snapshot Message-ID: <20110602004255.4B8F2601C8028@labrador.cs.tufts.edu> I'm trying to use ffmpeg's blackframe filter to find black frames. I've pulled and compiled the development snapshot, but the -vf option seems to have no effect. I've tried '-vf blackframe', '-vf showinfo', and even '-vf drooble' (which I hoped would lead to an error message). Nothing unusual happens. I'm using options -loglevel info and -v 10. My full command line is ffmpeg -i auto-ind-dal at 16.18.ts -loglevel verbose -v 10 \ -vf 'blackframe=90:64' -acodec copy -vcodec copy -f mpegts /dev/null As you can see, I've tweaked various parameters to try to get output. By comparison, avidemux finds black frames in the same input file, so I know they are there. I hope I'm just doing something stupid. Any and all advice welcome. In particular, can someone confirm that this is an appropriate command line to get the location of black frames, or suggest a better command line? Norman Ramsey P.S. Here is the version I am using: ffmpeg version git-N-30446-g06a9da7, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 1 2011 18:07:44 with gcc 4.4.5 configuration: --prefix=/usr/local/ffmpeg --enable-gpl --enable-nonfree --enable-libmp3lame --enable-libx264 libavutil 51. 3. 0 / 51. 3. 0 libavcodec 53. 6. 1 / 53. 6. 1 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 1. 0 / 53. 1. 0 libavfilter 2. 11. 0 / 2. 11. 0 libswscale 0. 14. 0 / 0. 14. 0 libpostproc 51. 2. 0 / 51. 2. 0 And here are the last couple of commit messages: commit 06a9da736554197601e4062298fcf45a5e8d49ff Author: Reimar D fffffffinger Date: Wed Jun 1 20:29:27 2011 +0200 Simplify code and avoid compiler warning about incompatible types. commit bf19c871012644fe27c69531b5f733c472aa858b Author: Reimar Dfffffffinger Date: Wed Jun 1 20:26:54 2011 +0200 Fix type of out[] variable, it should not be const. Fixes compiler warning about incompatible types in sws_scale call. From d.velkin at ids-imaging.de Wed Jun 1 12:44:17 2011 From: d.velkin at ids-imaging.de (Dmitrij Velkin) Date: Wed, 01 Jun 2011 10:44:17 -0000 Subject: [FFmpeg-user] I try to compile VLC, I had a error message about ffmpeg. Message-ID: <77620E5D-41D4-4054-94C9-9E9047E57AC0@ids-imaging.de> Hi Tim, Did you solve this Problem? I Have the same problem with compiling ffmpeg! Thanks! From andreas.chlache at designerator.de Wed Jun 1 19:50:57 2011 From: andreas.chlache at designerator.de (Andreas Chlache) Date: Wed, 01 Jun 2011 19:50:57 +0200 Subject: [FFmpeg-user] Designerator FFmpeg Message-ID: HI! I would like to notify the FFmpeg community about Designerator, which is an open source software based on Eclipse, which makes use of the precompiled FFmpeg binary. For now - due to lack of resources - Designerator is only available for Windows. FFmpeg is added to Designerator/Eclipse as an independent plugin, but other versions can be added by the user by a preferences dialog. Designerator is still in development as a release candidate. Mayor FFmpeg based components are: # Gui Dialog with an FFmpeg text editor with auto complete. # A Wizard for the Dialog. # Video thumbails(filmstrips) view to scroll through video collections. # A Youtube wizard to upload videos. You find detailed information on my homepage: http://www.designerator.org or view the intro to Video: http://www.designerator.org/index.php?id=firstStepsVideo.htm&side=off Andreas Chlache E-mail: andreas.chlache at designerator.de www.designerator.org From viejodani at gmail.com Fri Jun 3 06:17:58 2011 From: viejodani at gmail.com (Daniel Mosquera) Date: Thu, 2 Jun 2011 23:17:58 -0500 Subject: [FFmpeg-user] Distributing the binary exe file with an application Message-ID: Hello. I am an user of FFmpeg and I have developed a capturing library that creates movies from what's on the screen. However I can only crate raw files (which are really big). So I thought about using FFmpeg.exe and use a command to compress the video. the exe I got it here http://ffmpeg.zeranoe.com/builds/ So I was wondering if I can distribute my application with the ffmpeg.exe (without modification) and if so, What do I need to do to comply with the license Regards From zimmerma at yahoo.com Sat Jun 4 04:12:43 2011 From: zimmerma at yahoo.com (Bob Zimmerman) Date: Fri, 3 Jun 2011 19:12:43 -0700 (PDT) Subject: [FFmpeg-user] Exclude ALL Metadata? Message-ID: <263580.68246.qm@web161422.mail.bf1.yahoo.com> I'm attempting to strip ALL TAGS (metadata) off of an MP3.? While I have found other tools to do this, I naturally thought of FFMPEG first.? I was sure FFMPEG could easily extract ONLY the AUDIO stream from an MP3 file and ignore everything else (ex. tags). The closest FFMPEG command I could come up with to attempt this was "ffmpeg -i original.mp3 -acodec copy -map_metadata 0:-1 notags.mp3".? But with this command, FFMPEG still writes an ID3v2.4 header with a "TSSE" tag set to "Lavf53.2.0" to the "notags.mp3" file.? Are there any other FFMPEG options I could specify to have it NOT create the ID3 header? From leeper at molalla.net Sat Jun 4 17:01:23 2011 From: leeper at molalla.net (Jarhead) Date: Sat, 4 Jun 2011 08:01:23 -0700 (PDT) Subject: [FFmpeg-user] FFMPEG CFR Message-ID: <1307199683762-3573518.post@n4.nabble.com> I am trying to get a contant frame rate, and it varies. This is my first time with FFMPEG, sorry if I'm not up to your level- but I am learning. I've got most of my problems fixed but these (that I am aware of): I would like: -to hold a constant frame rate of 29.97 -Format_Profile :High @ L4.1 -Format_Settings_RefFrames/String : 2 frame2 -BitDepth/String : 24 bit3 My Command Line: chcp 1252 title Converting Red flash 2 & 1 AVCHD UltraQuality.mpg (1/1) "C:\Program Files\WinFF\ffmpeg.exe" -threads 4 -i "R:\Dougs work\2011_05_27\Red flash 2 & 1 AVCHD UltraQuality.mpg" -deinterlace -crf 15.0 -vcodec libx264 -acodec libfaac -ar 48000 -ab 144k -coder 1 -flags +loop -cmp +chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads 0 -b 750k -r 29.97 -s 1280x720 -aspect 16:9 -ac 2 -maxrate 750k -bufsize 500k -level 41 "R:\Dougs work\2011_05_27\Red flash 2 & 1 AVCHD UltraQuality.mp4" pause What I actually get: General CompleteName : R:\Dougs work\2011_05_27\Red flash 2 & 1 AVCHD UltraQuality to 750k 500k crf 15.mp4 Format : MPEG-4 Format_Profile : Base Media CodecID : isom FileSize/String : 66.7 MiB Duration/String : 10mn 26s OverallBitRate/String : 893 Kbps Encoded_Application : Lavf52.32.0 Video ID/String : 1 Format : AVC Format/Info : Advanced Video Codec Format_Profile : Main at L4.1 Format_Settings_CABAC/String : Yes Format_Settings_RefFrames/String : 1 frame1 CodecID : avc1 CodecID/Info : Advanced Video Coding Duration/String : 10mn 26s BitRate_Mode/String : VBR BitRate/String : 758 Kbps Width/String : 1280 pixel3 Height/String : 720 pixel3 DisplayAspectRatio/String : 16:9 FrameRate_Mode/String : VFR FrameRate/String : 29.970 fps3 FrameRate_Minimum/String : 14.985 fps3 FrameRate_Maximum/String : 29.970 fps3 ColorSpace : YUV ChromaSubsampling : 4:2:0 BitDepth/String : 8 bit3 ScanType/String : Progressive Bits-(Pixel*Frame) : 0.027 StreamSize/String : 56.6 MiB (85%) Audio ID/String : 2 Format : AAC Format/Info : Advanced Audio Codec Format_Version : Version 4 Format_Profile : LC CodecID : 40 Duration/String : 10mn 26s BitRate_Mode/String : VBR BitRate/String : 132.3 Kbps Channel(s)/String : 2 channel2 ChannelPositions : Front: L R SamplingRate/String : 48.0 KHz StreamSize/String : 9.77 MiB (15%) -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/FFMPEG-CFR-tp3573518p3573518.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From d.zlatanidis at gmail.com Mon Jun 6 22:59:43 2011 From: d.zlatanidis at gmail.com (Dimitris Zlatanidis) Date: Mon, 6 Jun 2011 23:59:43 +0300 Subject: [FFmpeg-user] my error Message-ID: If you think configure made a mistake, make sure you are using the latest version from SVN. If the latest version fails, report the problem to the ffmpeg-user at mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net. Include the log file "config.err" produced by configure as this will help solving the problem. Please Help !!! -------------- next part -------------- A non-text attachment was scrubbed... Name: my error Type: application/octet-stream Size: 41814 bytes Desc: not available URL: From sweetthdevil at gmail.com Tue Jun 7 12:12:29 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Tue, 07 Jun 2011 11:12:29 +0100 Subject: [FFmpeg-user] Recording logitech ultra vison, In-Reply-To: <20110607100539.GC2231@leki> References: <4DEDF059.9070308@gmail.com> <20110607100539.GC2231@leki> Message-ID: <4DEDF98D.1030509@gmail.com> Many thanks for the reply, see the output for mediainfo -f mencoder.avi [sweetth at myhost ~]$ mediainfo -f mencoder.avi General Count : 277 Count of stream of this kind : 1 Kind of stream : General Kind of stream : General Stream identifier : 0 Count of video streams : 1 Video_Format_List : AVC Video_Format_WithHint_List : AVC Codecs Video : AVC Complete name : mencoder.avi File name : mencoder.avi File extension : avi Format : AVI Format : AVI Format/Info : Audio Video Interleave Format/Extensions usually used : avi Commercial name : AVI Internet media type : video/vnd.avi Codec : AVI Codec : AVI Codec/Info : Audio Video Interleave Codec/Extensions usually used : avi File size : 536002 File size : 523 KiB File size : 523 KiB File size : 523 KiB File size : 523 KiB File size : 523.4 KiB Duration : 67 Duration : 67ms Duration : 67ms Duration : 67ms Duration : 00:00:00.067 Overall bit rate : 64000238 Overall bit rate : 64.0 Mbps Stream size : 9382 Stream size : 9.16 KiB (2%) Stream size : 9 KiB Stream size : 9.2 KiB Stream size : 9.16 KiB Stream size : 9.162 KiB Stream size : 9.16 KiB (2%) Proportion of this stream : 0.01750 File last modification date : UTC 2011-06-07 10:00:41 File last modification date (loc : 2011-06-07 11:00:41 Writing application : MEncoder SVN-r33159-4.5.2 Writing library : MPlayer Writing library : MPlayer Video Count : 193 Count of stream of this kind : 1 Kind of stream : Video Kind of stream : Video Stream identifier : 0 ID : 0 ID : 0 Format : AVC Format/Info : Advanced Video Codec Format/Url : http://developers.videolan.org/x264.html Commercial name : AVC Format profile : High at L2.2 Format settings : CABAC / 4 Ref Frames Format settings, CABAC : Yes Format settings, CABAC : Yes Format settings, ReFrames : 4 Format settings, ReFrames : 4 frames Internet media type : video/H264 Codec ID : h264 Codec : h264 Codec : AVC Codec/Family : AVC Codec/Info : Intel H.264 Codec/CC : h264 Codec profile : High at L2.2 Codec settings : CABAC / 4 Ref Frames Codec settings, CABAC : Yes Codec_Settings_RefFrames : 4 Duration : 67 Duration : 67ms Duration : 67ms Duration : 67ms Duration : 00:00:00.067 Bit rate : 293927 Bit rate : 294 Kbps Width : 640 Width : 640 pixels Height : 480 Height : 480 pixels Pixel aspect ratio : 1.000 Display aspect ratio : 1.333 Display aspect ratio : 4:3 Frame rate : 15.000 Frame rate : 15.000 fps Frame count : 215 Resolution : 8 Resolution : 8 bits Colorimetry : 4:2:0 Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 Bit depth : 8 bits Scan type : Progressive Scan type : Progressive Interlacement : PPF Interlacement : Progressive Bits/(Pixel*Frame) : 0.064 Stream size : 526620 Stream size : 514 KiB (98%) Stream size : 514 KiB Stream size : 514 KiB Stream size : 514 KiB Stream size : 514.3 KiB Stream size : 514 KiB (98%) Proportion of this stream : 0.98250 Writing library : x264 - core 114 Writing library : x264 core 114 Writing library/Name : x264 Writing library/Version : core 114 Encoding settings : 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=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=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=15 / 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 and the output for mediainfo -f ffmpeg.avi mediainfo -f ffmpeg.avi General Count : 277 Count of stream of this kind : 1 Kind of stream : General Kind of stream : General Stream identifier : 0 Count of video streams : 1 Video_Format_List : AVC Video_Format_WithHint_List : AVC Codecs Video : AVC Complete name : ffmpeg.avi File name : ffmpeg.avi File extension : avi Format : AVI Format : AVI Format/Info : Audio Video Interleave Format/Extensions usually used : avi Commercial name : AVI Internet media type : video/vnd.avi Codec : AVI Codec : AVI Codec/Info : Audio Video Interleave Codec/Extensions usually used : avi File size : 185026 File size : 181 KiB File size : 181 KiB File size : 181 KiB File size : 181 KiB File size : 180.7 KiB Duration : 67 Duration : 67ms Duration : 67ms Duration : 67ms Duration : 00:00:00.067 Overall bit rate : 22092656 Overall bit rate : 22.1 Mbps Stream size : 8889 Stream size : 8.68 KiB (5%) Stream size : 9 KiB Stream size : 8.7 KiB Stream size : 8.68 KiB Stream size : 8.681 KiB Stream size : 8.68 KiB (5%) Proportion of this stream : 0.04804 File last modification date : UTC 2011-06-07 10:03:39 File last modification date (loc : 2011-06-07 11:03:39 Writing application : Lavf52.104.0 Video Count : 193 Count of stream of this kind : 1 Kind of stream : Video Kind of stream : Video Stream identifier : 0 ID : 0 ID : 0 Format : AVC Format/Info : Advanced Video Codec Format/Url : http://developers.videolan.org/x264.html Commercial name : AVC Format profile : High at L2.2 Format settings : CABAC / 4 Ref Frames Format settings, CABAC : Yes Format settings, CABAC : Yes Format settings, ReFrames : 4 Format settings, ReFrames : 4 frames Internet media type : video/H264 Codec ID : H264 Codec : H264 Codec : AVC Codec/Family : AVC Codec/Info : Intel H.264 Codec/CC : H264 Codec profile : High at L2.2 Codec settings : CABAC / 4 Ref Frames Codec settings, CABAC : Yes Codec_Settings_RefFrames : 4 Duration : 67 Duration : 67ms Duration : 67ms Duration : 67ms Duration : 00:00:00.067 Bit rate : 161347 Bit rate : 161 Kbps Nominal bit rate : 200000 Nominal bit rate : 200 Kbps Width : 640 Width : 640 pixels Height : 480 Height : 480 pixels Pixel aspect ratio : 1.000 Display aspect ratio : 1.333 Display aspect ratio : 4:3 Frame rate mode : VFR Frame rate mode : Variable Frame rate : 15.000 Frame rate : 15.000 fps Frame count : 131 Resolution : 8 Resolution : 8 bits Colorimetry : 4:2:0 Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 Bit depth : 8 bits Scan type : Progressive Scan type : Progressive Interlacement : PPF Interlacement : Progressive Bits/(Pixel*Frame) : 0.035 Stream size : 176137 Stream size : 172 KiB (95%) Stream size : 172 KiB Stream size : 172 KiB Stream size : 172 KiB Stream size : 172.0 KiB Stream size : 172 KiB (95%) Proportion of this stream : 0.95196 Writing library : x264 - core 114 Writing library : x264 core 114 Writing library/Name : x264 Writing library/Version : core 114 Encoding settings : 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=-4 / threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=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=200 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.41 / aq=1:1.00 I also run into an error while running with the libx264 codec: FFmpeg version git-N-28713-g65daa94, Copyright (c) 2000-2011 the FFmpeg developers built on May 7 2011 11:46:29 with gcc 4.6.0 20110429 (prerelease) configuration: --prefix=/usr --enable-libmp3lame --enable-libvorbis --enable-libxvid --enable-libx264 --enable-libvpx --enable-libtheora --enable-postproc --enable-shared --enable-x11grab --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libschroedinger --enable-libopenjpeg --enable-gpl --enable-version3 --enable-runtime-cpudetect --disable-debug libavutil 50. 40. 0 / 50. 40. 0 libavcodec 52.116. 0 / 52.116. 0 libavformat 52.104. 0 / 52.104. 0 libavdevice 52. 4. 0 / 52. 4. 0 libavfilter 1. 76. 0 / 1. 76. 0 libswscale 0. 13. 0 / 0. 13. 0 libpostproc 51. 2. 0 / 51. 2. 0 [video4linux2 @ 0x9e58600] Cannot find a proper format for codec_id 0, pix_fmt -1. /dev/video0: Input/output error I will be looking into the -vf drawtext command now, many thanks for your quick replies and assistance in the matter, On 06/07/2011 11:05 AM, Cl?ment Boesch wrote: > On Tue, Jun 07, 2011 at 10:33:13AM +0100, Sw at g wrote: >> Hi all, >> >> I am recording my Logitech Ultra Vison using ffmpeg with the >> following command, >> >> "ffmpeg -f video4linux2 -i /dev/video0 -s 640x480 -vcodec mpeg4 >> -sameq cam_`date +%F_%T`.mp4" >> >> However the video quality isn't as it's best, if I am using mencoder >> (which I understand isn't maintain any more) with x264 codec then >> the picture is much clearer and sharp (same size than ffmpeg) >> >> If I am trying to record the webcam with ffmpeg and libx264 (with >> the -vpre medium option) than the picture quality is the same as >> mpeg4 codec. >> > You have to find a better profile I guess ; the other reply in the same > thread is more explicit. > >> So the question would be, how to have a sharper and clearer image >> the same as using mencoder (see below for the mencoder command line >> for reference) >> >> (mencoder tv:// -tv >> driver=v4l2:width=800:height=600:fps=15:device=/dev/video0 -ovc >> x264 -nosound -o cam_`date +%F_%T`.avi) >> >> Also, I would very much like to be able to record the video with the >> time on the bottom corner it, is there such a command? >> > Check for -vf drawtext. > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From mr-spazzaneve at live.it Fri Jun 10 02:01:43 2011 From: mr-spazzaneve at live.it (Manlio Valenti) Date: Fri, 10 Jun 2011 02:01:43 +0200 Subject: [FFmpeg-user] Install FFMpeg on FOX Board LX832 Message-ID: Do you know if it is possible to install FFMpeg on a FOX Board LX832 or if there are any restrictions? Thanks in advance From lclemens at gmail.com Fri Jun 10 03:02:51 2011 From: lclemens at gmail.com (Ph0t0n) Date: Thu, 9 Jun 2011 18:02:51 -0700 (PDT) Subject: [FFmpeg-user] Reading RTSP from Axis cameras via FFMPEG In-Reply-To: <77938bc20903190238hb2c828bof5155f3140819448@mail.gmail.com> References: <77938bc20903190238hb2c828bof5155f3140819448@mail.gmail.com> Message-ID: <1307667771597-3587181.post@n4.nabble.com> I'm having this same problem with two axis ip cameras and two panasonic ip cameras!! The video gets messed up with ghosting and things, especially in the lower half. The console spits out hundreds of errors each minute. To reproduce the error, go to: http://ffmpeg.zeranoe.com/builds/ and get the latest 32 bit static build for, (the one I have is 1929807). Then open a IP camera rtsp stream via ffplay. If you don't have one, I found one that's accessible online that you can access using: ffplay rtsp://195.200.199.8/mpeg4/media.amp A few years ago we used some older versions that didn't have any mpeg4 errors, but they had another problem that caused the video to timeout after 1 minute. So it seems like the timeout problem was fixed, but replaced by this mpeg4 issue. I don't know if it's the mpeg4 that's bad, or if it's the rtp parsing. It's not just ffplay either. I tried it with several example apps like the ffmpeg sdl tutorial here: http://dranger.com/ffmpeg/ and my own code - they all get the same mpeg4 errors. I've tried it on several different windows computers. I'm going to try it on Ubuntu tonight. BTW, the errors I'm getting look like: C:\ffmpeg\bin>ffplay rtsp://195.200.199.8/mpeg4/media.amp ffplay version git-N-30344-g5501afa, Copyright (c) 2003-2011 the FFmpeg develope rs built on May 27 2011 22:37:57 with gcc 4.5.3 configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable- runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm -- enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl e-libx264 --enable-libxavs --enable-libxvid --enable-zlib --pkg-config=pkg-confi g libavutil 51. 2. 2 / 51. 2. 2 libavcodec 53. 6. 0 / 53. 6. 0 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 0. 0 / 53. 0. 0 libavfilter 2. 11. 0 / 2. 11. 0 libswscale 0. 14. 0 / 0. 14. 0 libpostproc 51. 2. 0 / 51. 2. 0 [rtsp @ 01E57B60] Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://195.200.199.8/mpeg4/media.amp': Metadata: title : Media Presentation Duration: N/A, start: 0.030000, bitrate: N/A Stream #0.0: Video: mpeg4, yuv420p, 352x288 [PAR 12:11 DAR 4:3], 100 tbr, 90 k tbn, 100 tbc [mpeg4 @ 01E5BA40] ac-tex damaged at 16 4B vq= 17KB sq= 0B f=0/0 [mpeg4 @ 01E5BA40] Error at MB: 108 [mpeg4 @ 01E5BA40] concealing 44 DC, 44 AC, 44 MV errors [mpeg4 @ 01E5BA40] 1. marker bit missing in 3. esc= 0B f=0/0 [mpeg4 @ 01E5BA40] Error at MB: 61 [mpeg4 @ 01E5BA40] concealing 110 DC, 110 AC, 110 MV errors [mpeg4 @ 01E5BA40] concealing 49 DC, 49 AC, 49 MV errorsB f=0/0 [mpeg4 @ 01E5BA40] ac-tex damaged at 12 9 0KB sq= 0B f=0/0 [mpeg4 @ 01E5BA40] Error at MB: 219 [mpeg4 @ 01E5BA40] concealing 44 DC, 44 AC, 44 MV errors [mpeg4 @ 01E5BA40] ac-tex damaged at 4 7 0KB sq= 0B f=0/0 [mpeg4 @ 01E5BA40] Error at MB: 165 [mpeg4 @ 01E5BA40] concealing 66 DC, 66 AC, 66 MV errors [mpeg4 @ 01E5BA40] concealing 30 DC, 30 AC, 30 MV errorsB f=0/0 [mpeg4 @ 01E5BA40] ac-tex damaged at 5 5 0KB sq= 0B f=0/0 [mpeg4 @ 01E5BA40] Error at MB: 120 [mpeg4 @ 01E5BA40] concealing 287 DC, 287 AC, 287 MV errors ........... ........... and billions more errors like that :-) -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Reading-RTSP-from-Axis-cameras-via-FFMPEG-tp940680p3587181.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From narukajsingh at gmail.com Fri Jun 10 08:44:13 2011 From: narukajsingh at gmail.com (JITENDRA SINGH) Date: Fri, 10 Jun 2011 12:14:13 +0530 Subject: [FFmpeg-user] Building for ARM Message-ID: Hi, Were you able to solve this problem: undefined reference to `ff_find_pix_fmt' I am facing the same while trying to build for arm9.. PS: I face this warning "pkg-config not found, library detection may fail" during ./configure. Thank you, Naruka ================================ Hi all, I'm building ffmpeg for an ARM with Linux headers 2.6 to send video frames over RTP, ffmpeg only have to packet these frames and send it. I need to optimize the space so I use the minimal configuration. I have compile the revision 26400 with this configuration and works fine: ./configure --enable-cross-compile --cross-prefix=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu- --target-os=linux --cc=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc --host-cc=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc --cpu=armv5te --arch=arm --enable-static --disable-asm --enable-armv5te --disable-stripping --disable-debug --disable-encoders --disable-decoders --disable-parsers --disable-ffplay --disable-ffserver --disable-devices --disable-bsfs --disable-muxers --enable-parser=mpeg4video --enable-muxer=rtp --enable-parser=aac --disable-filters --disable-demuxers --enable-demuxer=m4v --extra-libs=-static --extra-cflags=--static --disable-ffprobe I use with this command (with this output): # ffmpeg -vcodec copy -i pipe -an -f rtp rtp://224.52.52.22:7004 -sameq -v 0 < /dev/null & [3] 178 # FFmpeg version SVN-r26400, Copyright (c) 2000-2011 the FFmpeg developers built on Jan 18 2011 09:48:17 with gcc 4.1.2 configuration: --enable-cross-compile --cross-prefix=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu- --target-os=linux --cc=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc --host-cc=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc --cpu=armv5te --arch=arm --enable-static --disable-asm --enable-armv5te --disable-stripping --disable-debug --disable-encoders --disable-decoders --disable-parsers --disable-ffplay --disable-ffserver --disable-devices --disable-bsfs --disable-muxers --enable-parser=mpeg4video --enable-muxer=rtp --enable-parser=aac --disable-filters --disable-demuxers --enable-demuxer=m4v --extra-libs=-static --extra-cflags=--static libavutil 50.36. 0 / 50.36. 0 libavcore 0.16. 1 / 0.16. 1 libavcodec 52.108. 0 / 52.108. 0 libavformat 52.93. 0 / 52.93. 0 libavdevice 52. 2. 3 / 52. 2. 3 libavfilter 1.74. 0 / 1.74. 0 libswscale 0.12. 0 / 0.12. 0 puntero a frame (fis): 0xc2780004 [m4v @ 0x3538a0] max_analyze_duration reached [m4v @ 0x3538a0] Estimating duration from bitrate, this may be inaccurate Input #0, m4v, from 'pipe': Duration: N/A, bitrate: N/A Stream #0.0: Video: [0][0][0][0] / 0x0000, 352x288 [PAR 1:1 DAR 11:9], 25 fps, 25 tbr, 1200k tbn, 25 tbc Output #0, rtp, to 'rtp://224.52.52.22:7004': Metadata: encoder : Lavf52.93.0 Stream #0.0: Video: [0][0][0][0] / 0x0000, 352x288 [PAR 1:1 DAR 11:9], q=2-31, 90k tbn, 25 tbc Stream mapping: Stream #0.0 -> #0.0 SDP: v=0 o=- 0 0 IN IP4 127.0.0.1 s=No Name c=IN IP4 224.52.52.22 t=0 0 a=tool:libavformat 52.93.0 m=video 7004 RTP/AVP 96 a=rtpmap:96 MP4V-ES/90000 a=fmtp:96 profile-level-id=1; config=000001B003000001B50900000100000001200086C400668582120A31 Press [q] to stop encoding If I try to use the version 0.6.3, I can compile it fine, but it doesn't work, i get this output: # ./ffmpeg.last -vcodec copy -i pipe -an -f rtp rtp://224.52.52.22:7004 -sameq -re FFmpeg version 0.6.3, Copyright (c) 2000-2010 the FFmpeg developers built on May 12 2011 13:00:49 with gcc 4.1.2 configuration: --enable-cross-compile --cross-prefix=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu- --target-os=linux --cc=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc --host-cc=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc --cpu=armv5te --arch=arm --enable-static --disable-asm --enable-armv5te --disable-stripping --disable-debug --disable-encoders --disable-decoders --disable-parsers --disable-ffplay --disable-ffserver --disable-devices --disable-bsfs --disable-muxers --enable-parser=mpeg4video --enable-muxer=rtp --enable-parser=aac --disable-filters --disable-demuxers --enable-demuxer=m4v --extra-libs=-static --extra-cflags=--static --disable-ffprobe libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0.11. 0 / 0.11. 0 [m4v @ 0x30e360]max_analyze_duration reached [m4v @ 0x30e360]Estimating duration from bitrate, this may be inaccurate Input #0, m4v, from 'pipe': Duration: N/A, bitrate: N/A Stream #0.0: Video: 0x0000, 352x288 [PAR 1:1 DAR 11:9], 25 fps, 25 tbr, 1200k tbn, 25 tbc And doesn't sent anything. My question is I how can I debug it or if I'm doing anything wrong. I also try to use the last version or the 0.7.rc1 but both doesn't compile, I get this error: /home/john/ffmpeg/ffmpeg-0.7-rc1/libavformat/libavformat.a(utils.o): In function `.L2670': utils.c:(.text+0x928c): undefined reference to `ff_find_pix_fmt' collect2: ld returned 1 exit status make: *** [ffmpeg_g] Error 1 Thanks for the answers. Wernam ========================================== From Ben.Murphy at migcan.com Fri Jun 10 11:25:04 2011 From: Ben.Murphy at migcan.com (Ben Murphy) Date: Fri, 10 Jun 2011 10:25:04 +0100 Subject: [FFmpeg-user] Audio/Video Synchronization Issue Message-ID: <98A31722-79FE-431E-9D09-8AA25801DF9A@migcan.com> I tried to transcode a video and the audio and video went out of sync. I tried to use the async option but this did not improve the video. In fact the video produced was exactly the same. I think the issue might have something to do with a warning message ffmpeg throws up when it tries to read the file: Seems stream 1 codec frame rate differs from container frame rate: 5994.00 (5994/1) -> 29.97 (2997/100) If I read the metadata of the original file I get: According to the TrackHeaderBoxes the two tracks have the same duration but according to the mediaheaderbox/movieheaderbox the durations are slightly different. In the transcoded file the TrackHeaderBoxes of the two tracks have different durations: -- Ben Murphy | Developer | Mobile Interactive Group M: +447796354848 A: The Tower Building, 7th Floor, 11 York Road, London, SE1 7NX W: www.migcan.com Twitter: @migcan Book your place at the BLN Money in Mobile Forum 2011, 14th June, London, UK to find out how to build profitable mobile strategies This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. Mobile Interactive Group therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of the author's employer - Mobile Interactive Group. Mobile Interactive Group does not take any responsibility for the views of the author and reserves the right to monitor, review and retain all emails entering its systems, in accordance with local law. Registered in England and Wales - Company Number 4672067 From rafa21 at interia.pl Tue Jun 14 14:38:24 2011 From: rafa21 at interia.pl (kapraf) Date: Tue, 14 Jun 2011 05:38:24 -0700 (PDT) Subject: [FFmpeg-user] read out DCT-Coefficients In-Reply-To: <1297887017179-3309648.post@n4.nabble.com> References: <4D53F5D6.1050608@googlemail.com> <1297887017179-3309648.post@n4.nabble.com> Message-ID: <1308055104533-3596428.post@n4.nabble.com> What about data in AVFrame.dct_coeff ? But I don't know what its structure is, i.e., it's just a pointer to the matrix but I don't know where are stored Y, Cb, Cr DCT coefficients for each macroblock. If you have any information about that please let me know since I'm struggling with it recently. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/read-out-DCT-Coefficients-tp3299220p3596428.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From itsthesource at gmail.com Wed Jun 15 00:47:45 2011 From: itsthesource at gmail.com (Philip Hoffman) Date: Tue, 14 Jun 2011 18:47:45 -0400 Subject: [FFmpeg-user] Piping audio from ffmpeg to faad Message-ID: I'm trying to develop a list of commands to transcode a h.264 encoded video with 5.1 aac audio to flv with stereo mp3. I believe I can do this by using the following process: - Extract audio with ffmpeg - Downmix audio with faad - Encode with lame - Encode video with new audio stream with ffmpeg However, I cannot seem to get ffmpeg to pipe it's output to faad. This is an example of the kind of command that will not work. ffmpeg -v 0 -i Avatar\ \(HD\).mp4 -acodec copy - | faad --downmix -o avatar.wav - I get the following output: FFmpeg version 0.6.3, Copyright (c) 2000-2010 the FFmpeg developers built on Jun 12 2011 15:33:39 with gcc 4.6.0 20110509 (Red Hat 4.6.0-7) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --enable-runtime-cpudetect --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-avfilter --enable-pthreads --enable-x11grab --enable-vdpau --disable-avisynth --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --disable-stripping libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 Error opening file: - Stream #0.0(und): Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 7040 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc Stream #0.1(eng): Audio: aac, 48000 Hz, 5.1, s16, 259 kb/s Unable to find a suitable output format for 'pipe:' Thanks, Philip From karl.jonas at fokus.fraunhofer.de Wed Jun 15 21:10:54 2011 From: karl.jonas at fokus.fraunhofer.de (Jonas, Karl) Date: Wed, 15 Jun 2011 21:10:54 +0200 Subject: [FFmpeg-user] (auto-)mapping audio channels in ffmpeg conversion Message-ID: <804B13F8F3D94A4AB18B9B01ACB68FA1044F5E2D@EXCHSRV.fokus.fraunhofer.de> Available input: a set of recorded movie.wtv files Targeted output: a set of movie.avi or movie.mpg, possibly with lower datarate/resolution Current approach: for %%f in (%SRC_DIR%\*.wtv) do ( echo next is %%f %FFMPEG% -i "%%f" -target vcd -bufsize 300k -vsync 1 -async 20 -map 0.2 -map 0.1 "%%f".avi ) THE PROBLEM: The original files come with multiple streams, including one "regular audio" and one for "hearing impaired" (which is, obviously, for people that cannot SEE !!). I want the "regular" audio, but the mapping is not constant among the different original files, so sometimes stream #0.0 is the regular audio, sometimes #0.1 is the regular audio. Is there an automatic way to always select the correct audio stream? Thanks for help and best regards, Karl From sureshkmsc at hotmail.com Thu Jun 16 14:13:28 2011 From: sureshkmsc at hotmail.com (suresh k) Date: Thu, 16 Jun 2011 17:43:28 +0530 Subject: [FFmpeg-user] problem Message-ID: gcc is unable to create an executable file. If gcc is a cross-compiler, use the --enable-cross-compile option. Only do this if you know what cross compiling means. C compiler test failed. If you think configure made a mistake, make sure you are using the latest version from SVN. If the latest version fails, report the problem to the ffmpeg-user at mplayerhq.hu 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. Regrads, Suresh K. Sykpe: ksuresh83 Hotmail: sureshkmsc at hotmail.com Yahoo Messenger: sureshkmsc at yahoo.com Gmail: sureshkmsc2001 at gmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 7197 bytes Desc: not available URL: From batguano999 at hotmail.com Thu Jun 16 16:53:23 2011 From: batguano999 at hotmail.com (bat guano) Date: Thu, 16 Jun 2011 07:53:23 -0700 (PDT) Subject: [FFmpeg-user] Invalid non monotonically increasing dts In-Reply-To: <1308229796.6411.11.camel@base-desktop> References: <1308138402.16160.2.camel@base-desktop> <1308166938.6868.4.camel@base-desktop> <1308229796.6411.11.camel@base-desktop> Message-ID: <1308236003187-3602720.post@n4.nabble.com> Hi I've posted a reply here:- http://lists.infradead.org/pipermail/get_iplayer/2011-June/001622.html (Was confused about which mailing list to use). -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Invalid-non-monotonically-increasing-dts-tp3599164p3602720.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From james.darnley at gmail.com Thu Jun 16 17:25:44 2011 From: james.darnley at gmail.com (James Darnley) Date: Thu, 16 Jun 2011 17:25:44 +0200 Subject: [FFmpeg-user] my error In-Reply-To: References: Message-ID: On 06/06/2011, Dimitris Zlatanidis wrote: > If you think configure made a mistake, make sure you are using the latest > version from SVN. If the latest version fails, report the problem to the > ffmpeg-user at mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net. > Include the log file "config.err" produced by configure as this will help > solving the problem. > > > Please Help !!! > So... What's the problem? Your attachment tells us exactly one thing more than your email. You have a problem with configure and lame. My suggestion would be to install it. Next time do what the error says, attach config.err. From programmingkidx at gmail.com Thu Jun 16 17:38:52 2011 From: programmingkidx at gmail.com (G 3) Date: Thu, 16 Jun 2011 11:38:52 -0400 Subject: [FFmpeg-user] How to make mkv file with divx video codec? In-Reply-To: <4DF7BC9D.4070102@zonnet.nl> References: <4DF7BAB7.1060506@pps-inc.com> <4DF7BC9D.4070102@zonnet.nl> Message-ID: On Tue, Jun 14, 2011 at 3:55 PM, belcampo wrote: > On 06/14/11 21:47, Jim Shupert wrote: >> >> either xvid or divx. Anyone know the command to use to accomplish this? >> >> maybe something like >> >> ffmpeg -i D:\path\vid\00_dog.mpg -ab 192 -ar 48000 -b 8000000 -s 720x480 >> -vcodec xvid -acodec mp3 D:\path\vid\00_dog.avi > > D:\path\vid\00_dog.mkv > if you want an mkv >> I tried this command out, but it didn't work. I think I need to enable libxvid when I compile ffmpeg. Thanks for the help. From james.darnley at gmail.com Thu Jun 16 17:39:26 2011 From: james.darnley at gmail.com (James Darnley) Date: Thu, 16 Jun 2011 17:39:26 +0200 Subject: [FFmpeg-user] problem In-Reply-To: References: Message-ID: On 16/06/2011, suresh k wrote: > gcc is unable to create an executable file. > If gcc is a cross-compiler, use the --enable-cross-compile option. > Only do this if you know what cross compiling means. > C compiler test failed. > > If you think configure made a mistake, make sure you are using the latest > version from SVN. If the latest version fails, report the problem to the > ffmpeg-user at mplayerhq.hu 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. > Perhaps you should attach the right config.log. You sent us one from lame. It does suggest that you don't have a compiler installed. > configure:2715: checking for gcc > configure:2745: result: no > configure:2812: checking for cc > configure:2859: result: no > configure:2915: checking for cl.exe > configure:2945: result: no > configure:2974: error: no acceptable C compiler found in $PATH From hardik.sharma22 at yahoo.com Thu Jun 16 18:40:46 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Thu, 16 Jun 2011 09:40:46 -0700 (PDT) Subject: [FFmpeg-user] SLICE-MAX-SIZE and error resiliency Message-ID: <626585.99221.qm@web46201.mail.sp1.yahoo.com> Hi, I have two quick questions, please help me. Slice-max-size feature is just for I frame or it control slice size for P and B frame too?? Do ffmpeg provide support for any error resiliency features like FMO as I want to use FMO for some experiments with ffmpeg. I will appreciate your help. Thanks. Regards, Hardik Sharma ? ? ?? From fturco at fastmail.fm Thu Jun 16 20:43:20 2011 From: fturco at fastmail.fm (Francesco Turco) Date: Thu, 16 Jun 2011 20:43:20 +0200 Subject: [FFmpeg-user] Exclude ALL Metadata? In-Reply-To: <263580.68246.qm@web161422.mail.bf1.yahoo.com> References: <263580.68246.qm@web161422.mail.bf1.yahoo.com> Message-ID: <1308249800.14484.1463961817@webmail.messagingengine.com> > I'm attempting to strip ALL TAGS (metadata) off of an MP3.? While I have > found > other tools to do this, I naturally thought of FFMPEG first.? I was sure > FFMPEG > could easily extract ONLY the AUDIO stream from an MP3 file and ignore > everything else (ex. tags). > > The closest FFMPEG command I could come up with to attempt this was > "ffmpeg -i > original.mp3 -acodec copy -map_metadata 0:-1 notags.mp3".? But with this > command, FFMPEG still writes an ID3v2.4 header with a "TSSE" tag set to > "Lavf53.2.0" to the "notags.mp3" file.? Are there any other FFMPEG > options I > could specify to have it NOT create the ID3 header? I'm not sure it will work, but you can try with the following command: ffmpeg -i original.mp3 -acodec copy -map_metadata -1,g:-1,g -map_metadata -1,s0:-1,s0 notags.mp3 This tells ffmpeg to strip both global (g) metadata and metadata for the first stream (s0). From hardik.sharma22 at yahoo.com Thu Jun 16 21:49:28 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Thu, 16 Jun 2011 12:49:28 -0700 (PDT) Subject: [FFmpeg-user] getting error while encoding yuv raw video Message-ID: <938641.56244.qm@web46204.mail.sp1.yahoo.com> Hi guys, I am getting error while doing encoding of yuv video to h264 format. Please suggest any changes for the following command but I was using the same command previously and it was working fine. I updated ffmpeg recently I am not sure if that affected it. Command and error is as following- ffmpeg$ ffmpeg -y -s 720x480 -b 256k -r 30 -f rawvideo -i akiyo_720x480.yuv -pass 1 -vcodec libx264 -y -b 256k -r 30 -preset fast -g 10 -s 720x480 -coder 1 -flags +loop -cmp +chroma -flags2 -fastpskip -partitions +parti4x4+partp8x8+partb8x8+parti8x8+partp4x4 -chromaoffset 0 -b_qfactor 0.45 -flags2 +wpred -subq 8 -flags2 +mixed_refs -flags2 +dct8x8 -me_range 16 -me_method umh -keyint_min 10 -sc_threshold 40 -trellis 2 -i_qfactor 0.71 -qcomp 0.5 -rc_eq 'blurCplx^(1-qComp)' -level 40 -bf 16 -b_strategy 1 -flags2 +bpyramid -bidir_refine 1 -refs 6 -cqp 28 -qmin 8 -qmax 48 - f -deblockalpha 0 -f h264 -deblockbeta 0 -threads 0? output.264 ffmpeg version git-N-30805-g7a02527, Copyright (c) 2000-2011 the FFmpeg developers ? built on Jun 16 2011 10:06:03 with gcc 4.4.5 ? configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab ? libavutil??? 51.? 8. 0 / 51.? 8. 0 ? libavcodec?? 53.? 7. 0 / 53.? 7. 0 ? libavformat? 53.? 3. 1 / 53.? 3. 1 ? libavdevice? 53.? 1. 1 / 53.? 1. 1 ? libavfilter?? 2. 18. 0 /? 2. 18. 0 ? libswscale??? 0. 14. 1 /? 0. 14. 1 ? libpostproc? 51.? 2. 0 / 51.? 2. 0 [rawvideo @ 0x92203a0] Pixel format was not specified and cannot be detected [rawvideo @ 0x92165e0] Could not find codec parameters (Video: rawvideo, 720x480) [rawvideo @ 0x92165e0] Estimating duration from bitrate, this may be inaccurate akiyo_720x480.yuv: could not find codec parameters From mark at mdsh.com Thu Jun 16 21:56:41 2011 From: mark at mdsh.com (Mark Himsley) Date: Thu, 16 Jun 2011 20:56:41 +0100 Subject: [FFmpeg-user] Apple prores issue In-Reply-To: <3E2838F6-5482-4565-A69A-F37D22FE89E5@gmail.com> References: <3E2838F6-5482-4565-A69A-F37D22FE89E5@gmail.com> Message-ID: <4DFA5FF9.7020202@mdsh.com> On 16/06/11 04:37, Rick C. wrote: > Hi, > > Does anyone know why I might be getting this? I tried with 2 different FFmpeg builds: [...] > [buffer @ 0x101303a60] Invalid pixel format string '-1' > Error opening filters! Because Apple ProRes is not supported in FFmpeg... -- Mark From mark at mdsh.com Thu Jun 16 22:07:50 2011 From: mark at mdsh.com (Mark Himsley) Date: Thu, 16 Jun 2011 21:07:50 +0100 Subject: [FFmpeg-user] getting error while encoding yuv raw video In-Reply-To: <938641.56244.qm@web46204.mail.sp1.yahoo.com> References: <938641.56244.qm@web46204.mail.sp1.yahoo.com> Message-ID: <4DFA6296.3010407@mdsh.com> On 16/06/2011 20:49, Hardik Sharma wrote: > Hi guys, > > I am getting error while doing encoding of yuv video to h264 format. Please suggest any changes for the following command but I was using the same command previously and it was working fine. I updated ffmpeg recently I am not sure if that affected it. Command and error is as following- > > > ffmpeg$ ffmpeg -y -s 720x480 -b 256k -r 30 -f rawvideo -i akiyo_720x480.yuv [...] > [rawvideo @ 0x92203a0] Pixel format was not specified and cannot be detected You need to tell FFmpeg the pixel format of the input video file. Add the appropriate -pix_fmt parameter before -i with the -r and -f. -- Mark From jshupert at pps-inc.com Thu Jun 16 23:33:09 2011 From: jshupert at pps-inc.com (Jim Shupert) Date: Thu, 16 Jun 2011 17:33:09 -0400 Subject: [FFmpeg-user] Apple prores issue In-Reply-To: <4DFA5FF9.7020202@mdsh.com> References: <3E2838F6-5482-4565-A69A-F37D22FE89E5@gmail.com> <4DFA5FF9.7020202@mdsh.com> Message-ID: <4DFA7695.9050506@pps-inc.com> > Because Apple ProRes is not supported in FFmpeg... > True. also true is : ProRes want it , need it Could the ..many.. of us who need it combine force$... if we all tossed in $X , could it happen? Or is all a sticky apple mess? From jshupert at pps-inc.com Thu Jun 16 23:38:05 2011 From: jshupert at pps-inc.com (Jim Shupert) Date: Thu, 16 Jun 2011 17:38:05 -0400 Subject: [FFmpeg-user] where is my ffplay? Message-ID: <4DFA77BD.7090809@pps-inc.com> friends, I have recently built ffmpeg from source. I am without ffplay. ---( here is my ffmpeg info ss at aldrin:~/ffmpeg$ ffmpeg FFmpeg version 0.6.3, Copyright (c) 2000-2010 the FFmpeg developers built on Jun 16 2011 16:44:59 with gcc 4.4.3 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libx264 --enable-libxvid --enable-x11grab --enable-libmp3lame --enable-libvpx --enable-ffplay --arch=x86_64 libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Use -h to get full help or, even better, run 'man ffmpeg' sss at aldrin:~/ffmpeg$ ffplay The program 'ffplay' is currently not installed. You can install it by typing: sudo apt-get install ffmpeg if i do a make clean and do a make i see: ( much of this is snipped - because there is a ton of it ) ffplay.c:2636: error: ?VideoState? has no member named ?parse_tid? ffplay.c: In function ?stream_close?: ffplay.c:2648: error: ?VideoState? has no member named ?abort_request? ffplay.c:2649: error: ?VideoState? has no member named ?parse_tid? ffplay.c:2650: error: ?VideoState? has no member named ?refresh_tid? ffplay.c:2654: error: ?VideoState? has no member named ?pictq? ffplay.c:2661: error: ?VideoPicture? has no member named ?bmp? ffplay.c:2662: error: ?VideoPicture? has no member named ?bmp? ffplay.c:2663: error: ?VideoPicture? has no member named ?bmp? ffplay.c:2666: error: ?VideoState? has no member named ?pictq_mutex? ffplay.c:2667: error: ?VideoState? has no member named ?pictq_cond? ffplay.c:2668: error: ?VideoState? has no member named ?subpq_mutex? ffplay.c:2669: error: ?VideoState? has no member named ?subpq_cond? ffplay.c:2671: error: ?VideoState? has no member named ?img_convert_ctx? ffplay.c:2672: error: ?VideoState? has no member named ?img_convert_ctx? ffplay.c: In function ?stream_cycle_channel?: ffplay.c:2679: error: ?VideoState? has no member named ?ic? ffplay.c:2684: error: ?VideoState? has no member named ?video_stream? ffplay.c:2686: error: ?VideoState? has no member named ?audio_stream? ffplay.c:2688: error: ?VideoState? has no member named ?subtitle_stream? ffplay.c:2693: error: ?VideoState? has no member named ?ic? ffplay.c: In function ?step_to_next_frame?: ffplay.c:2748: error: ?VideoState? has no member named ?paused? ffplay.c: In function ?do_exit?: ffplay.c:2770: warning: implicit declaration of function ?SDL_Quit? ffplay.c: In function ?toggle_audio_display?: ffplay.c:2777: error: ?screen? undeclared (first use in this function) ffplay.c:2778: error: ?VideoState? has no member named ?show_audio? ffplay.c:2778: error: ?VideoState? has no member named ?show_audio? ffplay.c:2780: error: ?VideoState? has no member named ?xleft? ffplay.c:2780: error: ?VideoState? has no member named ?ytop? ffplay.c:2780: error: ?VideoState? has no member named ?width? ffplay.c:2780: error: ?VideoState? has no member named ?height? ffplay.c:2782: error: ?VideoState? has no member named ?xleft? ffplay.c:2782: error: ?VideoState? has no member named ?ytop? ffplay.c:2782: error: ?VideoState? has no member named ?width? ffplay.c:2782: error: ?VideoState? has no member named ?height? ffplay.c: In function ?event_loop?: ffplay.c:2789: error: ?SDL_Event? undeclared (first use in this function) ffplay.c:2789: error: expected ?;? before ?event? ffplay.c:2790: warning: ISO C90 forbids mixed declarations and code ffplay.c:2794: warning: implicit declaration of function ?SDL_WaitEvent? ffplay.c:2794: error: ?event? undeclared (first use in this function) ffplay.c:2796: error: ?SDL_KEYDOWN? undeclared (first use in this function) ffplay.c:2798: error: ?SDLK_ESCAPE? undeclared (first use in this function) ffplay.c:2799: error: ?SDLK_q? undeclared (first use in this function) ffplay.c:2802: error: ?SDLK_f? undeclared (first use in this function) ffplay.c:2805: error: ?SDLK_p? undeclared (first use in this function) ffplay.c:2806: error: ?SDLK_SPACE? undeclared (first use in this function) ffplay.c:2809: error: ?SDLK_s? undeclared (first use in this function) ffplay.c:2812: error: ?SDLK_a? undeclared (first use in this function) ffplay.c:2816: error: ?SDLK_v? undeclared (first use in this function) ffplay.c:2820: error: ?SDLK_t? undeclared (first use in this function) ffplay.c:2824: error: ?SDLK_w? undeclared (first use in this function) ffplay.c:2827: error: ?SDLK_LEFT? undeclared (first use in this function) ffplay.c:2830: error: ?SDLK_RIGHT? undeclared (first use in this function) ffplay.c:2833: error: ?SDLK_UP? undeclared (first use in this function) ffplay.c:2836: error: ?SDLK_DOWN? undeclared (first use in this function) ffplay.c:2841: error: ?VideoState? has no member named ?video_stream? ffplay.c:2841: error: ?VideoState? has no member named ?video_current_pos? ffplay.c:2842: error: ?VideoState? has no member named ?video_current_pos? ffplay.c:2843: error: ?VideoState? has no member named ?audio_stream? ffplay.c:2843: error: ?VideoState? has no member named ?audio_pkt? ffplay.c:2844: error: ?VideoState? has no member named ?audio_pkt? ffplay.c:2846: error: ?VideoState? has no member named ?ic? ffplay.c:2847: error: ?VideoState? has no member named ?ic? ffplay.c:2848: error: ?VideoState? has no member named ?ic? ffplay.c:2864: error: ?SDL_MOUSEBUTTONDOWN? undeclared (first use in this function) ffplay.c:2865: error: ?SDL_MOUSEMOTION? undeclared (first use in this function) ffplay.c:2869: error: ?SDL_PRESSED? undeclared (first use in this function) ffplay.c:2874: error: ?VideoState? has no member named ?ic? ffplay.c:2875: error: ?VideoState? has no member named ?ic? ffplay.c:2876: error: ?VideoState? has no member named ?width? ffplay.c:2881: error: ?VideoState? has no member named ?ic? ffplay.c:2885: error: ?VideoState? has no member named ?width? ffplay.c:2892: error: ?VideoState? has no member named ?ic? ffplay.c:2893: error: ?VideoState? has no member named ?ic? ffplay.c:2894: error: ?VideoState? has no member named ?ic? ffplay.c:2899: error: ?SDL_VIDEORESIZE? undeclared (first use in this function) ffplay.c:2901: error: ?screen? undeclared (first use in this function) ffplay.c:2902: error: ?SDL_HWSURFACE? undeclared (first use in this function) ffplay.c:2902: error: ?SDL_RESIZABLE? undeclared (first use in this function) ffplay.c:2902: error: ?SDL_ASYNCBLIT? undeclared (first use in this function) ffplay.c:2902: error: ?SDL_HWACCEL? undeclared (first use in this function) ffplay.c:2903: error: ?VideoState? has no member named ?width? ffplay.c:2904: error: ?VideoState? has no member named ?height? ffplay.c:2907: error: ?SDL_QUIT? undeclared (first use in this function) ffplay.c:2908: error: ?SDL_USEREVENT? undeclared (first use in this function) ffplay.c:2917: error: ?VideoState? has no member named ?refresh? ffplay.c: In function ?main?: ffplay.c:3135: error: ?SDL_INIT_VIDEO? undeclared (first use in this function) ffplay.c:3135: error: ?SDL_INIT_AUDIO? undeclared (first use in this function) ffplay.c:3135: error: ?SDL_INIT_TIMER? undeclared (first use in this function) ffplay.c:3137: error: ?SDL_INIT_EVENTTHREAD? undeclared (first use in this function) ffplay.c:3139: warning: implicit declaration of function ?SDL_Init? ffplay.c:3140: warning: format ?%s? expects type ?char *?, but argument 3 has type ?int? ffplay.c:3152: warning: implicit declaration of function ?SDL_EventState? ffplay.c:3152: error: ?SDL_ACTIVEEVENT? undeclared (first use in this function) ffplay.c:3152: error: ?SDL_IGNORE? undeclared (first use in this function) ffplay.c:3153: error: ?SDL_SYSWMEVENT? undeclared (first use in this function) ffplay.c:3154: error: ?SDL_USEREVENT? undeclared (first use in this function) ffplay.c:3157: warning: assignment discards qualifiers from pointer target type make: *** [ffplay.o] Error 1 ss at aldrin:~/ffmpeg$ make install INSTALL libavdevice/libavdevice.a install: cannot remove `/usr/local/lib/libavdevice.a': Permission denied make: *** [install-libavdevice-static] Error 1 so the above must be it ....but why? around line 240 of my config.mak i uncommented the config_ffplay=yes { removed the leading ! } CONFIG_FFMPEG=yes CONFIG_FFPLAY=yes CONFIG_FFPROBE=yes CONFIG_FFSERVER=yes ------- i have libsdl1.2debian-al and libsdl1.2-dev installed via symantic --------------- so my Q is _ why do I not get an ffplay how can i get ffplay? i am thinking that " sudo apt-get install ffmpeg " is not a best option. I have never *not* gotten ffplay upon a ffmpeg install note : i do have ffprobe , ffserver thanks Q -- should i be posting this to devel instead? maybe i should send to BOTH ! ---{ just kidding;) platform is ubuntu 10.04 64 bit jim From frox at theindianmaiden.com Thu Jun 16 17:29:18 2011 From: frox at theindianmaiden.com (Lawrence) Date: Thu, 16 Jun 2011 08:29:18 -0700 Subject: [FFmpeg-user] DPX Sequence Encode In-Reply-To: <4DF91512.6030101@mdsh.com> References: <4DF91512.6030101@mdsh.com> Message-ID: Thanks! On Wed, Jun 15, 2011 at 13:24, Mark Himsley wrote: > On 15/06/2011 06:31, Lawrence wrote: > >> I am unable to encode a dpx sequence. Can someone point me in the right >> direction? >> >> ffmpeg -vcodec copy -i *.dpx -an o.avi >> FFmpeg version 0.6-4:0.6-2ubuntu6, Copyright (c) 2000-2010 the FFmpeg >> developers >> built on Oct 6 2010 00:27:06 with gcc 4.4.5 >> > [...] > > Input #0, image2, from 'c4562F0001.dpx': >> Duration: 00:00:00.04, start: 0.000000, bitrate: N/A >> Stream #0.0: Video: dpx, rgb48be, 3888x2272, 25 tbr, 25 tbn, 25 tbc >> Unable to find a suitable output format for 'c4562F0002.dpx' >> > > Your command interpreter has has expanded *.dpx, which is not what you > wanted. > > You also want to have -i before -vcodec copy > > try ... -i c4562f%04d.dpx -vcodec copy ... > > I'm assuming that your frames all start with c4562f and are followed with 4 > numbers that are the frame number and end with .dpx > > see http://www.ffmpeg.org/ffmpeg.html#SEC48 > > -- > Mark > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From core.rus at gmail.com Thu Jun 16 17:01:45 2011 From: core.rus at gmail.com (xCOREx) Date: Thu, 16 Jun 2011 19:01:45 +0400 Subject: [FFmpeg-user] Not breaking on bp during h264 decoding Message-ID: Hi there. I made some changes in x264 for my investigation and used it for encoding y4m stream to mkv-file. I also put some breakpoints in ffmpeg\libavcodec\h264.c, e.g. in ff_h264_decode_init() and hl_decode_mb_internal(), but I just don't break on them during transcoding my h264-stream to YUV though I guess I should. The following command is used: *ffmpeg_g.exe -i in.mkv out.yuv* and here's the output: Input #0, matroska,webm, from 'in.mkv': Duration: 00:00:02.04, start: 0.000000, bitrate: N/A Stream #0.0(eng): Video: h264 (High), yuv420p, 384x288, PAR 1:1 DAR 4:3, 25 fps, 25 tbr, 20k tbn, 50 tbc (default) [buffer @ 02610920] w:384 h:288 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param: Output #0, rawvideo, to 'out.yuv': Metadata: encoder : Lavf53.2.0 Stream #0.0(eng): Video: rawvideo, yuv420p, 384x288 [PAR 1:1 DAR 4:3], q=2-3 1, 200 kb/s, 90k tbn, 25 tbc (default) Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop, [?] for help frame= 51 fps= 0 q=0.0 Lsize= 8262kB time=00:00:02.04 bitrate=33177.6kbits /s video:8262kB audio:0kB global headers:0kB muxing overhead 0.000000% x264 and ffmpeg are compiled by mingw32 on win7-64. Please tell me what's wrong with my case? Thanks in advance. From paulj at arrakis.es Fri Jun 17 00:24:56 2011 From: paulj at arrakis.es (paulj at arrakis.es) Date: Fri, 17 Jun 2011 00:24:56 +0200 Subject: [FFmpeg-user] Change frame rate without reencoding Message-ID: <4DFA82B8.1846.C85257@paulj.arrakis.es> Hi all: Is it possible to change the frame rate in, say, a H264 Quicktime video without having to reencode it again? From what I know, the frame rate is just a piece of metadata in the headers of the file, so it should be possible to do this (switch just that field in the header), and in fact, some software like Apple's Cinema Tools can do it (for Quicktimes at least). But I haven't been able to do that in ffmpeg, and reading through the docs, there doesn't seem to be a way. Is it possible at all? Paulo. ------------------------------------------- "Oh, don't worry kids. Most of you will never fall in love. You'll just marry for fear of dying alone." The Simpsons. ------------------------------------------- From hendricks266 at gmail.com Thu Jun 16 20:19:34 2011 From: hendricks266 at gmail.com (J. Hendricks) Date: Thu, 16 Jun 2011 13:19:34 -0500 Subject: [FFmpeg-user] FFplay duration switch not working Message-ID: Hi. I'm trying to use FFplay to display an image for exactly 5 seconds using the -t parameter. For some reason, it does not work. Here is an example, using the attached image: ffplay -t 5 image.png ffplay -t 00:00:05 image.png ffplay -t 00:00:05.00 image.png These commands display the image indefinitely. ffplay -t 5 -autoexit image.png ffplay -t 00:00:05 -autoexit image.png ffplay -t 00:00:05.00 -autoexit image.png These commands flash the image on the screen, but close it immediately after rendering the solitary frame. As another example, if you're on Windows XP, you can try this: ffplay -t 1 -autoexit "C:\WINDOWS\Media\Windows XP Startup.wav" ffplay -t 00:00:01 -autoexit "C:\WINDOWS\Media\Windows XP Startup.wav" ffplay -t 00:00:01.00 -autoexit "C:\WINDOWS\Media\Windows XP Startup.wav" (You could replace the file name with something else to fill the same purpose.) Neither of these commands stop after 1 second. Is there a problem with FFplay or am I doing something wrong? -H -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 1431 bytes Desc: not available URL: From remy.hennuyer at gmail.com Thu Jun 16 21:24:55 2011 From: remy.hennuyer at gmail.com (=?ISO-8859-1?Q?R=E9my_Hennuyer?=) Date: Thu, 16 Jun 2011 21:24:55 +0200 Subject: [FFmpeg-user] ERROR: libx264 not found Message-ID: Hi, Today, to install FFMPEG on my computer MAC OSX 10.6, I meet this problem : ERROR: libx264 not found Here my command line : ./configure --enable-libx264 --enable-gpl --enable-pthreads --enable-libfaac --enable-libxvid --enable-nonfree --enable-libmp3lame --disable-ffplay --disable-ffserver --enable-libvpx --enable-libvorbis I download today and install the last x264 before install ffmpeg git clone git://git.videolan.org/x264.git Thanks for your help ! Best Regards R?my From gcoppa at nyc.rr.com Fri Jun 17 00:58:17 2011 From: gcoppa at nyc.rr.com (gcoppa at nyc.rr.com) Date: Thu, 16 Jun 2011 18:58:17 -0400 Subject: [FFmpeg-user] SMPTE302 (DolbyE) demux Message-ID: <20110616225817.6Z7IU.53519.root@hrndva-web14-z01> Hi - I'd like to demux a SMPTE302 stream from an MPEG2 TS, ffprobe reports the stream as DATA and using show_packets it displays the DTS, etc. I would either like to extract this from the TS for further analysis or would like to have show_packets simply extract the info about this stream. Is this possible with ffprobe? Any suggestions as to how to use ffmpeg to do something similar? My motivation is to analyze a problem whereby the SMPTE302 data goes missing from the TS and I want to see if there's a discontinuity in the DTS/PTS. Thanks. Greg From lou at lrcd.com Fri Jun 17 01:02:21 2011 From: lou at lrcd.com (Lou) Date: Thu, 16 Jun 2011 15:02:21 -0800 Subject: [FFmpeg-user] ERROR: libx264 not found In-Reply-To: References: Message-ID: <20110616150221.318e34e5@lrcd.com> On Thu, 16 Jun 2011 21:24:55 +0200 R?my Hennuyer wrote: > Hi, > > Today, to install FFMPEG on my computer MAC OSX 10.6, > I meet this problem : ERROR: libx264 not found > > Here my command line : > ./configure --enable-libx264 --enable-gpl --enable-pthreads > --enable-libfaac --enable-libxvid --enable-nonfree > --enable-libmp3lame --disable-ffplay --disable-ffserver > --enable-libvpx --enable-libvorbis > > I download today and install the last x264 before install ffmpeg > git clone git://git.videolan.org/x264.git > > Thanks for your help ! > Best Regards > > R?my Try compiling x264 with --enable-static. From soho123.2012 at gmail.com Fri Jun 17 03:37:16 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Fri, 17 Jun 2011 09:37:16 +0800 Subject: [FFmpeg-user] how to output .mov stream for QuickTime(apple device) Message-ID: Hi all, Any one have idea about output stream for Apple device? it is really need your help!! Thanks! Soho 2011/6/16 Soho Soho123 : > Hi all, > > I would like to output .mov stream with the url > http://localhost:8090/test.mov for QuickTime . > But it is fail. > Does any one have idea? > my ffserver conf for mov stream : > > Feed feed1.ffm > Format mov > NoAudio > VideoCodec mpeg4 > AVOptionVideo flags +global_header > VideoBitRate 256 > VideoBufferSize 4000 > VideoFrameRate 10 > VideoSize 320x240 > Preroll 15 > > > and the command to start ffmpeg > ffmpeg -vglobal 1 -intra -f video4linux2 -vcodec mjpeg -r 10 -s > 320x240 -qscale 4 -i /dev/video0 -vcodec mpeg4 > http://localhost:8090/feed1.ffm > > then i get the error:muxer does not support non seekable output > It seems .mov can not output with http url, right? > > > Thanks! > Soho > From rickcorteza at gmail.com Fri Jun 17 03:51:19 2011 From: rickcorteza at gmail.com (Rick C.) Date: Fri, 17 Jun 2011 09:51:19 +0800 Subject: [FFmpeg-user] Apple prores issue In-Reply-To: <4DFA5FF9.7020202@mdsh.com> References: <3E2838F6-5482-4565-A69A-F37D22FE89E5@gmail.com> <4DFA5FF9.7020202@mdsh.com> Message-ID: On Jun 17, 2011, at 3:56 AM, Mark Himsley wrote: > On 16/06/11 04:37, Rick C. wrote: >> Hi, >> >> Does anyone know why I might be getting this? I tried with 2 different FFmpeg builds: > > [...] > >> [buffer @ 0x101303a60] Invalid pixel format string '-1' >> Error opening filters! > > Because Apple ProRes is not supported in FFmpeg... > > -- > Mark Thanks for the reply. I was thinking that at first but I came across an older tool that could handle it...it must have been using something other than FFmpeg... From bahamutzero8825 at gmail.com Fri Jun 17 05:15:12 2011 From: bahamutzero8825 at gmail.com (Andrew Berg) Date: Thu, 16 Jun 2011 22:15:12 -0500 Subject: [FFmpeg-user] Change frame rate without reencoding In-Reply-To: <4DFA82B8.1846.C85257@paulj.arrakis.es> References: <4DFA82B8.1846.C85257@paulj.arrakis.es> Message-ID: <4DFAC6C0.2000301@gmail.com> On 2011.06.16 05:24 PM, paulj at arrakis.es wrote: > Is it possible to change the frame rate in, say, a H264 Quicktime video without having > to reencode it again? There are better tools for this than FFmpeg. MP4Box can do this with MP4 containers, tsMuxeR with MPEG-TS, mkvtoolnix for Matroska, and so on. I don't know what to use for a MOV container. AVC streams (at least those produced by x264, but I pretty sure it's common among all implementations) contain frame rate info as well, and there is at least one program (the name of which I forget) that will modify raw AVC streams. Note that changing frame rate info in the container is easier and less messy than modifying the raw video stream. From belcampo at zonnet.nl Fri Jun 17 07:57:26 2011 From: belcampo at zonnet.nl (belcampo) Date: Fri, 17 Jun 2011 07:57:26 +0200 Subject: [FFmpeg-user] FFplay duration switch not working In-Reply-To: References: Message-ID: <4DFAECC6.9010201@zonnet.nl> On 06/16/11 20:19, J. Hendricks wrote: > Hi. I'm trying to use FFplay to display an image for exactly 5 seconds using > the -t parameter. For some reason, it does not work. > > Here is an example, using the attached image: > > > ffplay -t 5 image.png > ffplay -t 00:00:05 image.png > ffplay -t 00:00:05.00 image.png > > These commands display the image indefinitely. > > > ffplay -t 5 -autoexit image.png > ffplay -t 00:00:05 -autoexit image.png > ffplay -t 00:00:05.00 -autoexit image.png > > These commands flash the image on the screen, but close it immediately after > rendering the solitary frame. > > > As another example, if you're on Windows XP, you can try this: > > ffplay -t 1 -autoexit "C:\WINDOWS\Media\Windows XP Startup.wav" > ffplay -t 00:00:01 -autoexit "C:\WINDOWS\Media\Windows XP Startup.wav" > ffplay -t 00:00:01.00 -autoexit "C:\WINDOWS\Media\Windows XP Startup.wav" > > (You could replace the file name with something else to fill the same > purpose.) > > Neither of these commands stop after 1 second. > > > Is there a problem with FFplay or am I doing something wrong? Search this thread with: [FFmpeg-user] -t duration option doesn't work sometimes from March 7th 2011 which discusses the same problem. > > -H > > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From joolzg at btinternet.com Fri Jun 17 09:24:47 2011 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Fri, 17 Jun 2011 08:24:47 +0100 (BST) Subject: [FFmpeg-user] Any ideas thoughts on this Message-ID: <492161.97307.qm@web86404.mail.ird.yahoo.com> We have 4 encoders running and the ffmpeg used was from just before the libav split, so as we were undertaking a major update of our streamer box i took the oppertunity to update the ffmpegs and x264 to the latest and greatest, what a night, finally got to bed around 5am. Now the reason for this, each box runs around 10 streams and give depending on rates of the streams a load average of between 3.5 and 6.5, icore7 950 @3.06 ghz So command line before changeover ffmpeg -metadata service_name="52" -metadata service_provider="Encoder1" -i udp://xxx.xxx.xxx.xxx:yyyy?reuse -vcodec libx264 -preset faster -g 75 -s 512x288 -b 850k -bt 50k -bufsize 2M -r 25 -acodec libfaac -ab 128k -ar 32k -ac 2 -async 1 -f mpegts udp://ooo.ooo.ooo.ooo:pppp?pkt_size=1316;buffer_size=1048576 And after the changeover ffmpeg -metadata service_name="52" -metadata service_provider="Encoder1" -i udp://xxx.xxx.xxx.xxx:yyyy?reuse -vcodec libx264 -preset faster? -x264opts keyint=75 -s 512x288 -b 850k -bt 50k -bufsize 2M -r 25 -acodec libfaac -ab 128k -ar 32k -ac 2 -async 1 -f mpegts udp://ooo.ooo.ooo.ooo:pppp?pkt_size=1316;buffer_size=1048576 And now when running these streams x 10, i end up with all 8 cores maxed out and a load average of between 11 and 14, i changed the -preset faster to -preset veryfast and now the load average is way down around 3.5 Does anybody know why this could be happening, and why the massive differnce between faster and veryfast joolz From sverker at abrahamsson.com Fri Jun 17 10:33:24 2011 From: sverker at abrahamsson.com (Sverker Abrahamsson) Date: Fri, 17 Jun 2011 10:33:24 +0200 Subject: [FFmpeg-user] Apple prores issue In-Reply-To: <4DFA7695.9050506@pps-inc.com> References: <3E2838F6-5482-4565-A69A-F37D22FE89E5@gmail.com> <4DFA5FF9.7020202@mdsh.com> <4DFA7695.9050506@pps-inc.com> Message-ID: Wouldn't it be possible to use Apple's dll to do the decoding? Mencoder does similar tricks for many codecs. > -----Original Message----- > From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- > bounces at ffmpeg.org] On Behalf Of Jim Shupert > Sent: den 16 juni 2011 11:33 > To: FFmpeg user questions and RTFMs > Subject: Re: [FFmpeg-user] Apple prores issue > > > > > Because Apple ProRes is not supported in FFmpeg... > > > True. > > also true is : ProRes want it , need it > > Could the ..many.. of us who need it combine force$... > if we all tossed in $X , > could it happen? Or is all a sticky apple mess? > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From soho123.2012 at gmail.com Fri Jun 17 12:11:35 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Fri, 17 Jun 2011 18:11:35 +0800 Subject: [FFmpeg-user] invalid stream index Message-ID: Hi all, We are new in ffmpeg and IP cam stream server. We user ffserver as stream server for IP Cam application. When we do testing, the error is occur very offen, such we can not do long time test. We test it by url :http://:8090/test.mjpg the error is :"invalid stream index 101", the message is output by ffm_read_packet() in ffmdec.c. Does any one know the meaning of invalid stream index? =============================================================== The configuration we used : ffserver conf : Feed feed1.ffm Format mjpeg VideoFrameRate 30 VideoSize 1280x720 VideoBitRate 256 VideoBufferSize 400 VideoIntraOnly NoAudio Strict -1 ffmpeg command: ffmpeg -intra -f video4linux2 -vcodec mjpeg -r 30 -s 1280x720 -i /dev/video0 -r 30 -vcodec copy http://localhost:8090/feed1.ffm References: Message-ID: <20110617102114.GA28120@geppetto> On date Thursday 2011-06-16 13:19:34 -0500, J. Hendricks encoded: > Hi. I'm trying to use FFplay to display an image for exactly 5 seconds using > the -t parameter. For some reason, it does not work. > > Here is an example, using the attached image: > > > ffplay -t 5 image.png > ffplay -t 00:00:05 image.png > ffplay -t 00:00:05.00 image.png > > These commands display the image indefinitely. > > > ffplay -t 5 -autoexit image.png > ffplay -t 00:00:05 -autoexit image.png > ffplay -t 00:00:05.00 -autoexit image.png > > These commands flash the image on the screen, but close it immediately after > rendering the solitary frame. > > > As another example, if you're on Windows XP, you can try this: > > ffplay -t 1 -autoexit "C:\WINDOWS\Media\Windows XP Startup.wav" > ffplay -t 00:00:01 -autoexit "C:\WINDOWS\Media\Windows XP Startup.wav" > ffplay -t 00:00:01.00 -autoexit "C:\WINDOWS\Media\Windows XP Startup.wav" > > (You could replace the file name with something else to fill the same > purpose.) That's not the assumed behavior of -t. -t TIME will make ffplay play the input file for no more than TIME seconds, then ffplay will stop on the last frame (and exit if -autoexit is specified). From soho123.2012 at gmail.com Fri Jun 17 13:22:15 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Fri, 17 Jun 2011 19:22:15 +0800 Subject: [FFmpeg-user] MJPEG stream include Audio Message-ID: Hi All, Does anyone have idea about : MJPEG stream include Audio? using ffmpeg to get video and audio data and then output to http for ffserver . this is ip cam application. currently we can get video data to ffserver by the configuration below, and ffmpeg command option. ================================================================= Feed feed1.ffm Format mjpeg VideoFrameRate 30 VideoSize 1280x720 VideoBitRate 256 VideoBufferSize 400 VideoIntraOnly NoAudio Strict -1 ffmpeg -intra -f video4linux2 -vcodec mjpeg -r 30 -s 1280x720 -i /dev/video0 -r 30 -vcodec copy http://localhost:8090/feed1.ffm References: <4DFA77BD.7090809@pps-inc.com> Message-ID: <4DFB4B9D.3060804@pps-inc.com> > > thanks > > Q -- should i be posting this to devel instead? > maybe i should send to BOTH ! ---{ just kidding;) > > platform is ubuntu 10.04 64 bit > also i suspect that adding ' --enable-ffplay ' to the config does zero.... i was just trying to make ffplay happen configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libx264 --enable-libxvid --enable-x11grab --enable-libmp3lame --enable-libvpx --enable-ffplay --arch=x86_64 From stefano.sabatini-lala at poste.it Fri Jun 17 15:18:46 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Fri, 17 Jun 2011 15:18:46 +0200 Subject: [FFmpeg-user] where is my ffplay? In-Reply-To: <4DFB4B9D.3060804@pps-inc.com> References: <4DFA77BD.7090809@pps-inc.com> <4DFB4B9D.3060804@pps-inc.com> Message-ID: <20110617131846.GD28120@geppetto> On date Friday 2011-06-17 08:42:05 -0400, Jim Shupert encoded: > > > > >thanks > > > >Q -- should i be posting this to devel instead? > >maybe i should send to BOTH ! ---{ just kidding;) > > > >platform is ubuntu 10.04 64 bit > > > also > i suspect that adding ' --enable-ffplay ' to the config does zero.... > i was just trying to make ffplay happen > > configuration: --enable-gpl --enable-version3 --enable-nonfree > --enable-postproc --enable-libfaac --enable-libx264 --enable-libxvid > --enable-x11grab --enable-libmp3lame --enable-libvpx --enable-ffplay > --arch=x86_64 ffplay depends on libsdl, so you should verify that SDL headers and libraries are installed on your system. Then you may try to do --enable-libsdl explicitely when configuring. -- ffmpeg-user random tip #8 Multimedia related stuff web site promo: http://wiki.multimedia.cx/ From nishant at huskerit.com Fri Jun 17 13:38:56 2011 From: nishant at huskerit.com (Nishant Rajput) Date: Fri, 17 Jun 2011 17:08:56 +0530 Subject: [FFmpeg-user] libfaac Not Found While Cross Compiling FFMPEG on ARM Message-ID: Hello, I am trying to cross compile ffmpeg on ARCH "ARM" to get libfaac support to encode raw PCM data to AAC. I have latest source of ffmpeg downloded from SVN. The error is "*libfaac not found*". *Here is my Script* : #!/bin/sh ./configure --prefix=/usr/ \ --target-os=linux \ --arch=arm \ --enable-libfaac \ --enable-libmp3lame \ --enable-gpl \ --enable-nonfree \ --enable-shared \ --enable-encoders \ --enable-avfilter \ --enable-cross-compile \ --cc=/home/admin1/Desktop/android/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-gcc \ --cross-prefix=/home/admin1/Desktop/android/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi- \ --nm=/home/admin1/Desktop/android/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/bin/arm-eabi-nm \ --extra-cflags="-fPIC -DANDROID" \ --enable-neon \ --enable-armv5te \ --extra-ldflags="-Wl,-T,/home/admin1/Desktop/android/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/arm-eabi/lib/ldscripts/armelf.x -Wl,-rpath-link=/home/admin1/Desktop/android/android-ndk-r5b/platforms/android-8/arch-arm/usr/lib -L/home/admin1/Desktop/android/android-ndk-r5b/platforms/android-8/arch-arm/usr/lib -nostdlib /home/admin1/Desktop/android/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/lib/gcc/arm-eabi/4.4.0/crtbegin.o /home/admin1/Desktop/android/android-ndk-r5b/toolchains/arm-eabi-4.4.0/prebuilt/linux-x86/lib/gcc/arm-eabi/4.4.0/crtend.o -lc -lm -ldl" *I have Attached copy of config.log* Thanks, -Nishant -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: text/x-log Size: 138763 bytes Desc: not available URL: From soho123.2012 at gmail.com Fri Jun 17 17:19:02 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Fri, 17 Jun 2011 23:19:02 +0800 Subject: [FFmpeg-user] MJPEG stream include Audio In-Reply-To: References: Message-ID: Hi, Anyone ever use ffmpeg as stream server IP Cam?? How to include Audio for IP Cam? Could you kindly help to provide idea? Thanks a lot! Best Regards, Soho 2011/6/17 Soho Soho123 : > Hi All, > > Does anyone have idea about : > MJPEG stream include Audio? > > using ffmpeg to get video and audio data and then output to http for ffserver . > this is ip cam application. > currently we can get video data to ffserver by the configuration > below, and ffmpeg command option. > ================================================================= > > Feed feed1.ffm > Format mjpeg > VideoFrameRate 30 > VideoSize 1280x720 > VideoBitRate 256 > VideoBufferSize 400 > VideoIntraOnly > NoAudio > Strict -1 > > ffmpeg -intra -f video4linux2 -vcodec mjpeg -r 30 -s 1280x720 -i > /dev/video0 -r 30 -vcodec copy http://localhost:8090/feed1.ffm > =============================================================================== > What is need to modify? > > Thanks! > Soho > From soho123.2012 at gmail.com Fri Jun 17 17:20:04 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Fri, 17 Jun 2011 23:20:04 +0800 Subject: [FFmpeg-user] invalid stream index In-Reply-To: References: Message-ID: Hi all, Could you all kindly help provide idea for me??? Thanks a lot! Best Regards, Soho 2011/6/17 Soho Soho123 : > Hi all, > > We are new in ffmpeg and IP cam stream server. > We user ffserver as stream server for IP Cam application. When we do > testing, the error is occur very offen, such we can not do long time > test. > We test it by url :http://:8090/test.mjpg > > the error is :"invalid stream index 101", the message is output by > ffm_read_packet() in ffmdec.c. > Does any one know the meaning of invalid stream index? > =============================================================== > The configuration we used : > ffserver conf : > > Feed feed1.ffm > Format mjpeg > VideoFrameRate 30 > VideoSize 1280x720 > VideoBitRate 256 > VideoBufferSize 400 > VideoIntraOnly > NoAudio > Strict -1 > > ffmpeg command: > ffmpeg -intra -f video4linux2 -vcodec mjpeg -r 30 -s 1280x720 -i > /dev/video0 -r 30 -vcodec copy http://localhost:8090/feed1.ffm > ================================================================ > > thanks > Soho > From jshupert at pps-inc.com Fri Jun 17 19:13:30 2011 From: jshupert at pps-inc.com (Jim Shupert) Date: Fri, 17 Jun 2011 13:13:30 -0400 Subject: [FFmpeg-user] where is my ffplay? In-Reply-To: <20110617131846.GD28120@geppetto> References: <4DFA77BD.7090809@pps-inc.com> <4DFB4B9D.3060804@pps-inc.com> <20110617131846.GD28120@geppetto> Message-ID: <4DFB8B3A.8030903@pps-inc.com> > ffplay depends on libsdl, so you should verify that SDL headers and > libraries are installed on your system. Then you may try to do > --enable-libsdl explicitely when configuring. Thanks for the wisdom.. ( i may be way way wrong about something here - but to check for the hearders & libs i think i wish to do a sdl-config --cflags ( for headers ) , sdl-config --libs ( for libs ) well - i do not have sdl-config > > sdl-config --cflags > > The program 'sdl-config' is currently not installed. You can install it > > by typing: > > sudo apt-get install libsdl1.2-dev this leads me down a trail of dependency hell - that ends in unInstalling the dsktop. Really? I *must* be misunderstanding something ( it cannot be this hard ) > > do sudo apt-get install libsdl1.2-dev > > > > The following packages have unmet dependencies: > > libsdl1.2-dev: Depends: libglu1-mesa-dev but it is not going to be > > installed > > E: Broken packages > > > > > > > > The following packages have unmet dependencies: > > libsdl1.2-dev: Depends: libglu1-mesa-dev but it is not going to be > > installed > > E: Broken packages > > scn at aldrin:~$ sudo apt-get install libglu1-mesa-dev > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > Some packages could not be installed. This may mean that you have > > requested an impossible situation or if you are using the unstable > > distribution that some required packages have not yet been created > > or been moved out of Incoming. > > The following information may help to resolve the situation: > > > > The following packages have unmet dependencies: > > libglu1-mesa-dev: Depends: libgl1-mesa-dev but it is not going to be > > installed or > > libgl-dev > > E: Broken packages > > > > so i tried > > > > scn at aldrin:~$ sudo apt-get install libgl-dev > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > Package libgl-dev is a virtual package provided by: > > libgl1-mesa-swx11-dev 7.7.1-1ubuntu3 > > libgl1-mesa-dev 7.7.1-1ubuntu3 > > You should explicitly select one to install. > > E: Package libgl-dev has no installation candidate > > scn at aldrin:~$ sudo apt-get install libgl1-mesa-swx11-dev > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > Some packages could not be installed. This may mean that you have > > requested an impossible situation or if you are using the unstable > > distribution that some required packages have not yet been created > > or been moved out of Incoming. > > The following information may help to resolve the situation: > > > > The following packages have unmet dependencies: > > libgl1-mesa-swx11-dev: Depends: mesa-common-dev (= 7.7.1-1ubuntu3) but > > it is not going to be installed > > E: Broken packages > > > > so i tried > > scn at aldrin:~$ sudo apt-get install mesa-common-dev > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > Some packages could not be installed. This may mean that you have > > requested an impossible situation or if you are using the unstable > > distribution that some required packages have not yet been created > > or been moved out of Incoming. > > The following information may help to resolve the situation: > > > > The following packages have unmet dependencies: > > mesa-common-dev: Depends: libdrm-dev but it is not going to be installed > > E: Broken packages > > > > so i tried > > scn at aldrin:~$ sudo apt-get install libdrm-dev > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > Some packages could not be installed. This may mean that you have > > requested an impossible situation or if you are using the unstable > > distribution that some required packages have not yet been created > > or been moved out of Incoming. > > The following information may help to resolve the situation: > > > > The following packages have unmet dependencies: > > libdrm-dev: Depends: libdrm-nouveau1a (= 2.4.23-0.0) but it is not going > > to be installed > > E: Broken packages > > > > so i tried > > scn at aldrin:~$ sudo apt-get install libdrm-nouveau1a > > Reading package lists... Done > > Building dependency tree > > Reading state information... Done > > The following packages were automatically installed and are no longer > > required: > > libopenal1 lirc libjaxp1.3-java libdb-je-java dvgrab libecj-java > > libxml++2.6-2 libwxbase2.8-0 realpath > > libdb4.7-java eclipse-platform-data libxerces2-java libgcj-bc > > gcj-4.4-base libx264-114 libx264-115 > > libjtidy-java lives-data libicu4j-java libcvaux4 libservlet2.4-java > > libdb4.7-java-gcj libftdi1 > > libcommons-beanutils-java libsvga1 libsubtitleeditor0 libqt4-network > > libftgl2 libglademm-2.4-1c2a > > libflac++6 gcj-4.4-jre-lib libiso9660-7 libhsqldb-java libbs2b0 libcddb2 > > libavdevice52 > > libcommons-logging-java libweed0 libcommons-compress-java libdvbpsi5 > > grub-pc libgcj10 libalut0 > > libbabl-0.0-0 setserial libvlc2 gettext ant libjsch-java > > libdirac-decoder0 mplayer-skins > > linux-headers-2.6.32-28 vlc-nox jarwrapper openshot-doc cvs ant-optional > > libqtcore4 ogmtools libgii1 > > libupnp3 libvpx0 libgavl1 libmatroska0 icedax libxcb-keysyms1 > > frei0r-plugins audacity-data > > libpostproc51 libcommons-el-java libservlet2.5-java libcv4 > > libcommons-httpclient-java libgii1-target-x > > os-prober libqt4-xml vdr libavformat52 libslf4j-java filezilla-common > > libgimp2.0 ttf-dejavu > > libregexp-java libhighgui4 fastjar libjasper-java libvdpau1 liblua5.1-0 > > ant-optional-gcj > > libcommons-codec-java vlc-data linux-headers-2.6.32-28-generic > > liblucene2-java libtar libvamp-hostsdk3 > > libcommons-collections3-java libgcj-common grub-common libmlt-data > > ant-gcj libcommons-digester-java > > gimp-data libvlccore2 libvcdinfo0 libjetty-java libebml0 libjline-java > > libmng1 libgtkhtml2-0 > > Use 'apt-get autoremove' to remove them. > > The following extra packages will be installed: > > icedtea-6-jre-cacao openjdk-6-jre-headless openjdk-6-jre-lib > > Suggested packages: > > sun-java6-fonts ttf-sazanami-gothic ttf-kochi-gothic ttf-sazanami-mincho > > ttf-kochi-mincho > > ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts > > The following packages will be REMOVED: > > acpi-support acpid aisleriot alsa-base alsa-utils anacron apparmor > > apparmor-utils apport apport-gtk > > apport-hooks-medibuntu aptdaemon apturl at at-spi audacity avahi-daemon > > avahi-utils blender bluefish > > bluez bluez-cups brasero brasero-common brltty brltty-x11 byobu > > capplets-data checkbox checkbox-gtk > > compiz compiz-core compiz-fusion-plugins-main compiz-gnome > > compiz-plugins compizconfig-backend-gconf > > computer-janitor-gtk console-setup consolekit couchdb-bin cron cups > > cups-driver-gutenprint dbus > > dbus-x11 desktopcouch desktopvideo dkms dmsetup e2fsprogs > > eclipse-platform eclipse-rcp empathy > > empathy-common entagged eog erlang-base erlang-crypto erlang-inets > > erlang-mnesia erlang-public-key > > erlang-runtime-tools erlang-ssl erlang-syntax-tools erlang-xmerl evince > > evolution evolution-couchdb > > evolution-data-server evolution-exchange evolution-indicator > > evolution-plugins evolution-webcal f-spot > > file-roller filezilla firefox firefox-branding firefox-gnome-support > > flashplugin-installer foo2zjs > > foomatic-db foomatic-db-engine friendly-recovery ftp gbrainy gcalctool > > gconf-defaults-service > > gconf-editor gconf2 gconf2-common gdebi gdm gdm-guest-session gedit > > ghostscript-cups ghostscript-x > > gimp gksu gnome-about gnome-applets gnome-applets-data gnome-bluetooth > > gnome-codec-install > > gnome-control-center gnome-disk-utility gnome-games-common gnome-keyring > > gnome-mag gnome-mahjongg > > gnome-media gnome-media-common gnome-nettool gnome-orca gnome-panel > > gnome-panel-data > > gnome-power-manager gnome-screensaver gnome-session gnome-session-bin > > gnome-session-canberra > > gnome-settings-daemon gnome-sudoku gnome-system-monitor > > gnome-system-tools gnome-terminal > > gnome-terminal-data gnome-user-guide gnome-user-share gnome-utils > > gnomine gphpedit > > gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-good > > gstreamer0.10-pulseaudio gucharmap > > gvfs gvfs-backends gvfs-bin gvfs-fuse gwibber gwibber-service hal > > hostname hplip ibus ibus-m17n > > ibus-table icedtea6-plugin ifupdown imagemagick indicator-applet > > indicator-applet-session indicator-me > > indicator-session indicator-sound initramfs-tools initscripts irqbalance > > jockey-common jockey-gtk kbd > > language-selector lftp libaccess-bridge-java libaccess-bridge-java-jni > > libasound2-plugins > > libatspi1.0-0 libaudio2 libbonoboui2-0 libbrasero-media0 libcamel1.2-14 > > libcanberra-pulse > > libcompizconfig0 libcouchdb-glib-1.0-2 libcryptui0 > > libdesktopcouch-glib-1.0-2 libdrm-nouveau1 > > libebackend1.2-0 libebook1.2-9 libecal1.2-7 libedata-book1.2-2 > > libedata-cal1.2-6 libedataserver1.2-11 > > libedataserverui1.2-8 libegroupwise1.2-13 libequinox-osgi-java > > libexchange-storage1.2-3 > > libgail-gnome-module libgconf2-4 libgconf2.0-cil libgdata6 libgdu0 > > libgegl-0.0-0 libggi-target-x > > libggi2 libggiwmh0 libggiwmh0-target-x libgksu2-0 libglu1-xorg > > libgnome-desktop-2-17 libgnome-media0 > > libgnome-pilot2 libgnome-vfs2.0-cil libgnome-window-settings1 > > libgnome2-0 libgnome2-common > > libgnome2-perl libgnome2-vfs-perl libgnome2.24-cil libgnomekbd-common > > libgnomekbd4 > > libgnomepanel2.24-cil libgnomeui-0 libgnomevfs2-0 libgnomevfs2-common > > libgnomevfs2-extra > > libgstfarsight0.10-0 libgtkhtml-editor0 libgtkhtml3.14-19 > > libgweather-common libgweather1 libice6 > > liblpint-bonobo0 libm17n-0 libmagickcore2 libmagickcore2-extra > > libmagickwand2 libmetacity-private0 > > libmjpegtools-1.9 libmlt++3 libmlt2 libnet-dbus-perl libnss-mdns > > liboobs-1-4 libpanel-applet2-0 > > libpolkit-gtk-1-0 libpulse-browse0 libpulse-mainloop-glib0 libpulse0 > > libpurple0 libqt4-svg libqtgui4 > > librpc-xml-perl libsdl-image1.2 libsdl1.2debian > > libsdl1.2debian-pulseaudio libsm6 libsoup-gnome2.4-1 > > libstartup-notification0 libtelepathy-farsight0 libtheora-bin > > libubuntuone-1.0-1 libwebkit-1.0-2 > > libwnck22 libwww-perl libwxgtk2.8-0 libxaw7 libxklavier16 > > libxml-parser-perl libxml-sax-expat-perl > > libxml-twig-perl libxml-xpath-perl libxmu6 libxres1 libxss1 libxt6 > > libxtst6 libxvmc1 libxxf86dga1 > > light-themes linux-generic linux-image-2.6.32-28-generic > > linux-image-2.6.32-32-generic > > linux-image-generic linux-sound-base lives logrotate m17n-contrib > > m17n-db media-player-info > > mediaexpress melt metacity metacity-common mkvtoolnix-gui > > module-init-tools mountall mousetweaks > > mplayer mplayer-gui nautilus nautilus-data nautilus-sendto > > nautilus-sendto-empathy nautilus-share > > netbase network-manager network-manager-gnome network-manager-pptp > > network-manager-pptp-gnome > > notify-osd nspluginwrapper ntfs-3g ntpdate obex-data-server onboard > > openjdk-6-jre > > openoffice.org-base-core openoffice.org-calc openoffice.org-core > > openoffice.org-draw > > openoffice.org-emailmerge openoffice.org-gnome openoffice.org-gtk > > openoffice.org-help-en-us > > openoffice.org-impress openoffice.org-math openoffice.org-writer > > openprinting-ppds openshot > > pcmciautils pitivi plymouth plymouth-label plymouth-theme-ubuntu-logo > > plymouth-theme-ubuntu-text > > plymouth-x11 pm-utils pm-utils-powersave-policy policykit-1 > > policykit-1-gnome powermgmt-base ppp > > pppconfig pppoeconf pptp-linux procps pulseaudio > > pulseaudio-esound-compat pulseaudio-module-bluetooth > > pulseaudio-module-gconf pulseaudio-module-x11 pulseaudio-utils pxljr > > python-aptdaemon > > python-aptdaemon-gtk python-desktopcouch python-desktopcouch-records > > python-farsight python-gconf > > python-gnome2 python-gnomeapplet python-mlt2 python-papyon > > python-pyatspi python-speechd > > python-ubuntuone python-uno python-virtkey python-webkit python-wnck > > quadrapassel rhythmbox > > rhythmbox-plugin-cdrecorder rhythmbox-plugins > > rhythmbox-ubuntuone-music-store rsyslog samba sat4j > > screen screen-resolution-extra screensaver-default-images seahorse > > simple-scan smplayer > > smplayer-themes smplayer-translations software-center > > software-properties-gtk speech-dispatcher splix > > squareness subtitleeditor system-config-printer-gnome > > system-tools-backends telepathy-butterfly > > telepathy-haze telepathy-salut telnet tomboy totem totem-common > > totem-mozilla totem-plugins > > transmission-gtk tsclient ttf-mscorefonts-installer ubufox > > ubuntu-artwork ubuntu-desktop ubuntu-docs > > ubuntu-minimal ubuntu-standard ubuntu-system-service ubuntu-tweak > > ubuntu-wallpapers > > ubuntuone-client-gnome udev udisks ufw update-manager update-notifier > > upower upstart ureadahead > > usb-creator-common usb-creator-gtk util-linux vdr-plugin-mplayer vinagre > > vino vlc vlc-plugin-pulse > > wireless-crda x-ttcidfont-conf x11-apps x11-common x11-session-utils > > x11-utils x11-xfs-utils > > x11-xkb-utils x11-xserver-utils xfonts-100dpi xfonts-75dpi xfonts-base > > xfonts-encodings xfonts-mathml > > xfonts-scalable xfonts-utils xinit xorg xscreensaver-data > > xscreensaver-gl xserver-common xserver-xorg > > xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-evdev > > xserver-xorg-input-mouse > > xserver-xorg-input-synaptics xserver-xorg-input-vmmouse > > xserver-xorg-input-wacom > > xserver-xorg-video-all xserver-xorg-video-apm xserver-xorg-video-ark > > xserver-xorg-video-ati > > xserver-xorg-video-chips xserver-xorg-video-cirrus > > xserver-xorg-video-fbdev xserver-xorg-video-i128 > > xserver-xorg-video-intel xserver-xorg-video-mach64 > > xserver-xorg-video-mga xserver-xorg-video-neomagic > > xserver-xorg-video-nouveau xserver-xorg-video-nv > > xserver-xorg-video-openchrome xserver-xorg-video-r128 > > xserver-xorg-video-radeon xserver-xorg-video-rendition > > xserver-xorg-video-s3 > > xserver-xorg-video-s3virge xserver-xorg-video-savage > > xserver-xorg-video-siliconmotion > > xserver-xorg-video-sis xserver-xorg-video-sisusb xserver-xorg-video-tdfx > > xserver-xorg-video-trident > > xserver-xorg-video-tseng xserver-xorg-video-v4l xserver-xorg-video-vesa > > xserver-xorg-video-vmware > > xserver-xorg-video-voodoo xterm xulrunner-1.9.2 yelp > > The following NEW packages will be installed: > > libdrm-nouveau1a > > The following packages will be upgraded: > > icedtea-6-jre-cacao openjdk-6-jre-headless openjdk-6-jre-lib > > WARNING: The following essential packages will be removed. > > This should NOT be done unless you know exactly what you are doing! > > e2fsprogs util-linux (due to e2fsprogs) hostname upstart (due to > > hostname) > > 3 upgraded, 1 newly installed, 487 to remove and 10 not upgraded. > > Need to get 32.7MB of archives. > > After this operation, 1,862MB disk space will be freed. > > You are about to do something potentially harmful. > > To continue type in the phrase 'Yes, do as I say!' > > > > > > --------------- > > the potentially harmful - has me spooked > > > > and if i use the pkg manager - to help me with my thinking.. symantec Quick search for sdl installed is libsdl1.2-dev libsdl1.2debian-oss libsdl1.2debian-alsa libsdl1.2debian-pulseaudio libsdl1.2debian-all libsdl1.2debian libsdl-image1.2 not installed libsdl1.2-dev [ maybe the dev pkg will give headers & libs ] when try to mark for install -- it complains with libsdl1.2-dev: Depends: libglu1-mesa-dev but it is not going to be installed i do a quick search for libglu1-mesa-dev an attempt to mark for install it complains with libglu1-mesa-dev: Depends: libgl1-mesa-dev but it is not going to be installed or libgl-dev when i try libgl1-mesa-dev it needs mesa-common-dev when i try mesa-common-dev it needs libdrm-dev when i try libdrm-dev :: it is a crazy long list :: e2fsprogs (essential) will be removed hostname (essential) will be removed util-linux (essential) will be removed acpi-support will be removed acpid will be removed aisleriot will be removed alsa-base will be removed alsa-utils will be removed anacron will be removed apparmor will be removed apparmor-utils will be removed apport will be removed apport-gtk will be removed apport-hooks-medibuntu will be removed aptdaemon will be removed apturl will be removed at will be removed at-spi will be removed audacity will be removed avahi-daemon will be removed avahi-utils will be removed blender will be removed bluefish will be removed bluez will be removed bluez-cups will be removed brasero will be removed brasero-common will be removed brltty will be removed brltty-x11 will be removed byobu will be removed capplets-data will be removed checkbox will be removed checkbox-gtk will be removed compiz will be removed compiz-core will be removed compiz-fusion-plugins-main will be removed compiz-gnome will be removed compiz-plugins will be removed compizconfig-backend-gconf will be removed computer-janitor-gtk will be removed console-setup will be removed consolekit will be removed couchdb-bin will be removed cron will be removed cups will be removed cups-driver-gutenprint will be removed dbus will be removed dbus-x11 will be removed desktopcouch will be removed desktopvideo will be removed dkms will be removed dmsetup will be removed eclipse-platform will be removed eclipse-rcp will be removed empathy will be removed empathy-common will be removed entagged will be removed eog will be removed erlang-base will be removed erlang-crypto will be removed erlang-inets will be removed erlang-mnesia will be removed erlang-public-key will be removed erlang-runtime-tools will be removed erlang-ssl will be removed erlang-syntax-tools will be removed erlang-xmerl will be removed evince will be removed evolution will be removed evolution-couchdb will be removed evolution-data-server will be removed evolution-exchange will be removed evolution-indicator will be removed evolution-plugins will be removed evolution-webcal will be removed f-spot will be removed file-roller will be removed filezilla will be removed firefox will be removed firefox-branding will be removed firefox-gnome-support will be removed flashplugin-installer will be removed foo2zjs will be removed foomatic-db will be removed foomatic-db-engine will be removed friendly-recovery will be removed ftp will be removed gbrainy will be removed gcalctool will be removed gconf-defaults-service will be removed gconf-editor will be removed gconf2 will be removed gconf2-common will be removed gdebi will be removed gdm will be removed gdm-guest-session will be removed gedit will be removed ghostscript-cups will be removed ghostscript-x will be removed gimp will be removed gksu will be removed gnome-about will be removed gnome-applets will be removed gnome-applets-data will be removed gnome-bluetooth will be removed gnome-codec-install will be removed gnome-control-center will be removed gnome-disk-utility will be removed gnome-games-common will be removed gnome-keyring will be removed gnome-mag will be removed gnome-mahjongg will be removed gnome-media will be removed gnome-media-common will be removed gnome-nettool will be removed gnome-orca will be removed gnome-panel will be removed gnome-panel-data will be removed gnome-power-manager will be removed gnome-screensaver will be removed gnome-session will be removed gnome-session-bin will be removed gnome-session-canberra will be removed gnome-settings-daemon will be removed gnome-sudoku will be removed gnome-system-monitor will be removed gnome-system-tools will be removed gnome-terminal will be removed gnome-terminal-data will be removed gnome-user-guide will be removed gnome-user-share will be removed gnome-utils will be removed gnomine will be removed gphpedit will be removed gstreamer0.10-plugins-bad-multiverse will be removed gstreamer0.10-plugins-good will be removed gstreamer0.10-pulseaudio will be removed gstreamer0.10-sdl will be removed gucharmap will be removed gvfs will be removed gvfs-backends will be removed gvfs-bin will be removed gvfs-fuse will be removed gwibber will be removed gwibber-service will be removed hal will be removed hplip will be removed ibus will be removed ibus-m17n will be removed ibus-table will be removed icedtea6-plugin will be removed ifupdown will be removed imagemagick will be removed indicator-applet will be removed indicator-applet-session will be removed indicator-me will be removed indicator-session will be removed indicator-sound will be removed initramfs-tools will be removed initscripts will be removed irqbalance will be removed jockey-common will be removed jockey-gtk will be removed kbd will be removed language-selector will be removed lftp will be removed libaccess-bridge-java will be removed libaccess-bridge-java-jni will be removed libasound2-plugins will be removed libatspi1.0-0 will be removed libaudio2 will be removed libbonoboui2-0 will be removed libbrasero-media0 will be removed libcamel1.2-14 will be removed libcanberra-pulse will be removed libcompizconfig0 will be removed libcouchdb-glib-1.0-2 will be removed libcryptui0 will be removed libdesktopcouch-glib-1.0-2 will be removed libdrm-nouveau1 will be removed libebackend1.2-0 will be removed libebook1.2-9 will be removed libecal1.2-7 will be removed libedata-book1.2-2 will be removed libedata-cal1.2-6 will be removed libedataserver1.2-11 will be removed libedataserverui1.2-8 will be removed libegroupwise1.2-13 will be removed libequinox-osgi-java will be removed libexchange-storage1.2-3 will be removed libgail-gnome-module will be removed libgconf2-4 will be removed libgconf2.0-cil will be removed libgdata6 will be removed libgdu0 will be removed libgegl-0.0-0 will be removed libggi-target-x will be removed libggi2 will be removed libggiwmh0 will be removed libggiwmh0-target-x will be removed libgksu2-0 will be removed libglu1-xorg will be removed libgnome-desktop-2-17 will be removed libgnome-media0 will be removed libgnome-pilot2 will be removed libgnome-vfs2.0-cil will be removed libgnome-window-settings1 will be removed libgnome2-0 will be removed libgnome2-common will be removed libgnome2-perl will be removed libgnome2-vfs-perl will be removed libgnome2.24-cil will be removed libgnomekbd-common will be removed libgnomekbd4 will be removed libgnomepanel2.24-cil will be removed libgnomeui-0 will be removed libgnomevfs2-0 will be removed libgnomevfs2-common will be removed libgnomevfs2-extra will be removed libgstfarsight0.10-0 will be removed libgtkhtml-editor0 will be removed libgtkhtml3.14-19 will be removed libgweather-common will be removed libgweather1 will be removed libice6 will be removed liblpint-bonobo0 will be removed libm17n-0 will be removed libmagickcore2 will be removed libmagickcore2-extra will be removed libmagickwand2 will be removed libmetacity-private0 will be removed libmjpegtools-1.9 will be removed libmlt++3 will be removed libmlt2 will be removed libnet-dbus-perl will be removed libnss-mdns will be removed liboobs-1-4 will be removed libpanel-applet2-0 will be removed libpolkit-gtk-1-0 will be removed libpulse-browse0 will be removed libpulse-mainloop-glib0 will be removed libpulse0 will be removed libpurple0 will be removed libqt4-svg will be removed libqtgui4 will be removed librpc-xml-perl will be removed libsdl-image1.2 will be removed libsdl1.2debian will be removed libsdl1.2debian-pulseaudio will be removed libsm6 will be removed libsoup-gnome2.4-1 will be removed libstartup-notification0 will be removed libtelepathy-farsight0 will be removed libtheora-bin will be removed libubuntuone-1.0-1 will be removed libwebkit-1.0-2 will be removed libwnck22 will be removed libwww-perl will be removed libwxgtk2.8-0 will be removed libxaw7 will be removed libxklavier16 will be removed libxml-parser-perl will be removed libxml-sax-expat-perl will be removed libxml-twig-perl will be removed libxml-xpath-perl will be removed libxmu6 will be removed libxres1 will be removed libxss1 will be removed libxt6 will be removed libxtst6 will be removed libxvmc1 will be removed libxxf86dga1 will be removed light-themes will be removed linux-generic will be removed linux-image-2.6.32-28-generic will be removed linux-image-2.6.32-32-generic will be removed linux-image-generic will be removed linux-sound-base will be removed lives will be removed logrotate will be removed m17n-contrib will be removed m17n-db will be removed media-player-info will be removed mediaexpress will be removed melt will be removed metacity will be removed metacity-common will be removed mkvtoolnix-gui will be removed module-init-tools will be removed mountall will be removed mousetweaks will be removed mplayer will be removed mplayer-gui will be removed nautilus will be removed nautilus-data will be removed nautilus-sendto will be removed nautilus-sendto-empathy will be removed nautilus-share will be removed netbase will be removed network-manager will be removed network-manager-gnome will be removed network-manager-pptp will be removed network-manager-pptp-gnome will be removed notify-osd will be removed nspluginwrapper will be removed ntfs-3g will be removed ntpdate will be removed obex-data-server will be removed onboard will be removed openjdk-6-jre will be removed openoffice.org-base-core will be removed openoffice.org-calc will be removed openoffice.org-core will be removed openoffice.org-draw will be removed openoffice.org-emailmerge will be removed openoffice.org-gnome will be removed openoffice.org-gtk will be removed openoffice.org-help-en-us will be removed openoffice.org-impress will be removed openoffice.org-math will be removed openoffice.org-writer will be removed openprinting-ppds will be removed openshot will be removed pcmciautils will be removed pitivi will be removed plymouth will be removed plymouth-label will be removed plymouth-theme-ubuntu-logo will be removed plymouth-theme-ubuntu-text will be removed plymouth-x11 will be removed pm-utils will be removed pm-utils-powersave-policy will be removed policykit-1 will be removed policykit-1-gnome will be removed powermgmt-base will be removed ppp will be removed pppconfig will be removed pppoeconf will be removed pptp-linux will be removed procps will be removed pulseaudio will be removed pulseaudio-esound-compat will be removed pulseaudio-module-bluetooth will be removed pulseaudio-module-gconf will be removed pulseaudio-module-x11 will be removed pulseaudio-utils will be removed pxljr will be removed python-aptdaemon will be removed python-aptdaemon-gtk will be removed python-desktopcouch will be removed python-desktopcouch-records will be removed python-farsight will be removed python-gconf will be removed python-gnome2 will be removed python-gnomeapplet will be removed python-mlt2 will be removed python-papyon will be removed python-pyatspi will be removed python-speechd will be removed python-ubuntuone will be removed python-uno will be removed python-virtkey will be removed python-webkit will be removed python-wnck will be removed quadrapassel will be removed rhythmbox will be removed rhythmbox-plugin-cdrecorder will be removed rhythmbox-plugins will be removed rhythmbox-ubuntuone-music-store will be removed rsyslog will be removed samba will be removed sat4j will be removed screen will be removed screen-resolution-extra will be removed screensaver-default-images will be removed seahorse will be removed simple-scan will be removed smplayer will be removed smplayer-themes will be removed smplayer-translations will be removed software-center will be removed software-properties-gtk will be removed speech-dispatcher will be removed splix will be removed squareness will be removed subtitleeditor will be removed system-config-printer-gnome will be removed system-tools-backends will be removed telepathy-butterfly will be removed telepathy-haze will be removed telepathy-salut will be removed telnet will be removed tomboy will be removed totem will be removed totem-common will be removed totem-mozilla will be removed totem-plugins will be removed transmission-gtk will be removed tsclient will be removed ttf-mscorefonts-installer will be removed ubufox will be removed ubuntu-artwork will be removed ubuntu-docs will be removed ubuntu-minimal will be removed ubuntu-standard will be removed ubuntu-system-service will be removed ubuntu-tweak will be removed ubuntu-wallpapers will be removed ubuntuone-client-gnome will be removed udev will be removed udisks will be removed ufw will be removed update-manager will be removed update-notifier will be removed upower will be removed upstart will be removed ureadahead will be removed usb-creator-common will be removed usb-creator-gtk will be removed vdr-plugin-mplayer will be removed vinagre will be removed vino will be removed vlc will be removed vlc-plugin-pulse will be removed wireless-crda will be removed x-ttcidfont-conf will be removed x11-apps will be removed x11-common will be removed x11-session-utils will be removed x11-utils will be removed x11-xfs-utils will be removed x11-xkb-utils will be removed x11-xserver-utils will be removed xfonts-100dpi will be removed xfonts-75dpi will be removed xfonts-base will be removed xfonts-encodings will be removed xfonts-mathml will be removed xfonts-scalable will be removed xfonts-utils will be removed xinit will be removed xorg will be removed xscreensaver-data will be removed xscreensaver-gl will be removed xserver-common will be removed xserver-xorg will be removed xserver-xorg-core will be removed xserver-xorg-input-all will be removed xserver-xorg-input-evdev will be removed xserver-xorg-input-mouse will be removed xserver-xorg-input-synaptics will be removed xserver-xorg-input-vmmouse will be removed xserver-xorg-input-wacom will be removed xserver-xorg-video-all will be removed xserver-xorg-video-apm will be removed xserver-xorg-video-ark will be removed xserver-xorg-video-ati will be removed xserver-xorg-video-chips will be removed xserver-xorg-video-cirrus will be removed xserver-xorg-video-fbdev will be removed xserver-xorg-video-i128 will be removed xserver-xorg-video-intel will be removed xserver-xorg-video-mach64 will be removed xserver-xorg-video-mga will be removed xserver-xorg-video-neomagic will be removed xserver-xorg-video-nouveau will be removed xserver-xorg-video-nv will be removed xserver-xorg-video-openchrome will be removed xserver-xorg-video-r128 will be removed xserver-xorg-video-radeon will be removed xserver-xorg-video-rendition will be removed xserver-xorg-video-s3 will be removed xserver-xorg-video-s3virge will be removed xserver-xorg-video-savage will be removed xserver-xorg-video-siliconmotion will be removed xserver-xorg-video-sis will be removed xserver-xorg-video-sisusb will be removed xserver-xorg-video-tdfx will be removed xserver-xorg-video-trident will be removed xserver-xorg-video-tseng will be removed xserver-xorg-video-v4l will be removed xserver-xorg-video-vesa will be removed xserver-xorg-video-vmware will be removed xserver-xorg-video-voodoo will be removed xterm will be removed xulrunner-1.9.2 will be removed yelp will be removed icedtea-6-jre-cacao (version 6b20-1.9.7-0ubuntu1~10.04.1) will be upgraded to version 6b20-1.9.8-0ubuntu1~10.04.1 openjdk-6-jre-headless (version 6b20-1.9.7-0ubuntu1~10.04.1) will be upgraded to version 6b20-1.9.8-0ubuntu1~10.04.1 openjdk-6-jre-lib (version 6b20-1.9.7-0ubuntu1~10.04.1) will be upgraded to version 6b20-1.9.8-0ubuntu1~10.04.1 libdrm-dev (version 2.4.23-0.0) will be installed libdrm-nouveau1a (version 2.4.23-0.0) will be installed libkms1 (version 2.4.23-0.0) will be installed again -- off scale spooky ----------------- so my Q is dare i go down that road? and if so am i hobbled in other ways? Is there a diffrent way to get the sdl headers & libs and the real Q in my mind is could i have done something at the time of original ubuntu install - that would have given me SDL so that when i build ffmpeg -- i get ffplay i cannot help but think - it should not be this hard. thanks [ my current solution is to make files on the ubuntu sys and play (ffplay) on an openSUSE 64 system ] From karl.jonas at fokus.fraunhofer.de Fri Jun 17 19:45:03 2011 From: karl.jonas at fokus.fraunhofer.de (Jonas, Karl) Date: Fri, 17 Jun 2011 19:45:03 +0200 Subject: [FFmpeg-user] (auto-)mapping audio channels in ffmpeg conversion Message-ID: <804B13F8F3D94A4AB18B9B01ACB68FA1044F5F0D@EXCHSRV.fokus.fraunhofer.de> Available input: a set of recorded movie.wtv files Targeted output: a set of movie.avi or movie.mpg, possibly with lower datarate/resolution Current approach: for %%f in (%SRC_DIR%\*.wtv) do ( echo next is %%f %FFMPEG% -i "%%f" -target vcd -bufsize 300k -vsync 1 -async 20 -map 0.2 -map 0.1 "%%f".avi ) THE PROBLEM: The original files come with multiple streams, including one "regular audio" and one for "hearing impaired" (which is, obviously, for people that cannot SEE !!). I want the "regular" audio, but the mapping is not constant among the different original files, so sometimes stream #0.0 is the regular audio, sometimes #0.1 is the regular audio. Is there an automatic way to always select the correct audio stream? Thanks for help and best regards, Karl From hardik.sharma22 at yahoo.com Sat Jun 18 01:14:52 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Fri, 17 Jun 2011 16:14:52 -0700 (PDT) Subject: [FFmpeg-user] slice-max-size command is not working with ffmpeg Message-ID: <204325.73678.qm@web46211.mail.sp1.yahoo.com> Hi guys, I tried slice-max-size command with x264 and it's working fine but it's not working with ffmpeg. I am getting following error- ffmpeg/x264$ ffmpeg -y -s 720x480 -b 256k -r 30 -pix_fmt yuv420p -f rawvideo -i akiyo_720x480.yuv -vcodec libx264 -y -b 256k -r 30 -preset fast -g 10 -s 720x480 -flags +loop -cmp +chroma -flags2 -fastpskip -partitions +parti4x4+partp8x8+partb8x8+parti8x8+partp4x4 -chromaoffset 0 -b_qfactor 0.45 -flags2 +wpred -subq 8 -flags2 +mixed_refs -flags2 +dct8x8 -me_range 16 -me_method umh -keyint_min 10 -sc_threshold 40 -trellis 2 -i_qfactor 0.71 -qcomp 0.5 -rc_eq 'blurCplx^(1-qComp)' -level 40 -bf 16 -b_strategy 1 -flags2 +bpyramid -bidir_refine 1 -refs 6 -cqp 28 -qmin 8 -qmax 48 -slice-max-size 100 -deinterlace -f h264 -deblockalpha 0 -deblockbeta 0 -threads 0 out.264 ffmpeg version git-N-30805-g7a02527, Copyright (c) 2000-2011 the FFmpeg developers ? built on Jun 16 2011 10:06:03 with gcc 4.4.5 ? configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab ? libavutil??? 51.? 8. 0 / 51.? 8. 0 ? libavcodec?? 53.? 7. 0 / 53.? 7. 0 ? libavformat? 53.? 3. 1 / 53.? 3. 1 ? libavdevice? 53.? 1. 1 / 53.? 1. 1 ? libavfilter?? 2. 18. 0 /? 2. 18. 0 ? libswscale??? 0. 14. 1 /? 0. 14. 1 ? libpostproc? 51.? 2. 0 / 51.? 2. 0 [rawvideo @ 0x906c5e0] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from 'akiyo_720x480.yuv': ? Duration: N/A, start: 0.000000, bitrate: N/A ??? Stream #0.0: Video: rawvideo, yuv420p, 720x480, 30 tbr, 30 tbn, 30 tbc Unrecognized option 'slice-max-size' Please suggest me what to do. Really appreciate any help. Thanks. Regards, Hardik Sharma ? ? From catufunwa at gmail.com Fri Jun 17 23:25:40 2011 From: catufunwa at gmail.com (Chima Atufunwa) Date: Fri, 17 Jun 2011 14:25:40 -0700 Subject: [FFmpeg-user] Transcoding to WebM Audio Problems. Message-ID: I am having problems when it comes to encoding to webm. If my audio track has a few seconds of blank/silent audio in the beginning, it seems that when i use ffmpeg to encode it to webm, it gets removed/deleted. When i go to play it it, the player jumps to the begging of when audio data can be read. I can not even scrub to the beginning because it will keep on jumping to where the audio track begins. I am using the lastest stable ffmpeg, .6.3 and i have the libvpx and libvorbis. The command line setup is this: ffmpeg -i "input file" "output file" The help will be much appreciated. Thank you. -- Chima A. From rickcorteza at gmail.com Sat Jun 18 01:48:39 2011 From: rickcorteza at gmail.com (Rick C.) Date: Sat, 18 Jun 2011 07:48:39 +0800 Subject: [FFmpeg-user] Apple prores issue In-Reply-To: References: <3E2838F6-5482-4565-A69A-F37D22FE89E5@gmail.com> <4DFA5FF9.7020202@mdsh.com> <4DFA7695.9050506@pps-inc.com> Message-ID: On Jun 17, 2011, at 4:33 PM, Sverker Abrahamsson wrote: > Wouldn't it be possible to use Apple's dll to do the decoding? Mencoder does > similar tricks for many codecs. > >> -----Original Message----- >> From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user- >> bounces at ffmpeg.org] On Behalf Of Jim Shupert >> Sent: den 16 juni 2011 11:33 >> To: FFmpeg user questions and RTFMs >> Subject: Re: [FFmpeg-user] Apple prores issue >> >> >> >>> Because Apple ProRes is not supported in FFmpeg... >>> >> True. >> >> also true is : ProRes want it , need it >> >> Could the ..many.. of us who need it combine force$... >> if we all tossed in $X , >> could it happen? Or is all a sticky apple mess? I'm wondering is this a related issue (Apple Intermediate Codec)? And yes if there are some workarounds using Apple's dll that would be great! FFmpeg version git-N-28698-g621f4c9, Copyright (c) 2000-2011 the FFmpeg developers built on Mar 30 2011 13:29:37 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 50. 40. 0 / 50. 40. 0 libavcodec 52.116. 0 / 52.116. 0 libavformat 52.104. 0 / 52.104. 0 libavdevice 52. 4. 0 / 52. 4. 0 libavfilter 1. 76. 0 / 1. 76. 0 libswscale 0. 13. 0 / 0. 13. 0 Seems stream 0 codec frame rate differs from container frame rate: 2997.00 (2997/1) -> 29.97 (2997/100) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/KidVideo/Video Projects/1738_TOKTOKS/TOK TOKs HD sizzle VER 4.mov': Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-05-27 00:44:23 Duration: 00:01:16.81, start: 0.000000, bitrate: 70584 kb/s Stream #0.0(eng): Video: Apple Intermediate Codec, 1440x1080, 69036 kb/s, PAR 4:3 DAR 16:9, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc Metadata: creation_time : 2011-05-27 00:44:23 Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: creation_time : 2011-05-27 00:44:23 Stream #0.2(eng): Data: tmcd / 0x64636D74 Metadata: creation_time : 2011-05-27 00:45:13 From phil_rhodes at rocketmail.com Sat Jun 18 03:24:43 2011 From: phil_rhodes at rocketmail.com (Phil Rhodes) Date: Sat, 18 Jun 2011 02:24:43 +0100 Subject: [FFmpeg-user] Apple prores issue In-Reply-To: References: <3E2838F6-5482-4565-A69A-F37D22FE89E5@gmail.com> <4DFA5FF9.7020202@mdsh.com> <4DFA7695.9050506@pps-inc.com> Message-ID: >> Wouldn't it be possible to use Apple's dll to do the decoding? Possible? Probably. I suspect it might be tough to sell the developers on doing that, as it's a rather jury-rigged and imperfect solution. Doing this sort of thing tends to beg a lot of future maintenance work as well. And even then, it's still a big reverse-engineering effort. >>> Could the ..many.. of us who need it combine force$... >>> if we all tossed in $X , >>> could it happen? Or is all a sticky apple mess? ...and doing it properly is an even bigger reverse-engineering effort. I was once told (by someone who works a company making hardware which does both DNxHD and ProRes) that it's possible to transcode DNxHD and ProRes losslessly; the internals are sufficiently similar. This might not tell us much, since they're both ultimately fairly run-of-the-mill DCT codecs, but it does suggest that it is possible. I would suspect the costs are in the many-tens-of-thousands range if you wanted to simply hire a software engineer to attack the problem and nobody's going to spend that sort of money on something they're forced to give away. Presumably doing this would also cause Apple to have one of their spasms. They've so far exhibited an almost Gollum-like protectiveness of "their ProResssssss....". P From faxrecipient at gmail.com Sat Jun 18 07:42:02 2011 From: faxrecipient at gmail.com (patronanejo) Date: Fri, 17 Jun 2011 22:42:02 -0700 (PDT) Subject: [FFmpeg-user] where is my ffplay? In-Reply-To: <4DFB8B3A.8030903@pps-inc.com> References: <4DFA77BD.7090809@pps-inc.com> <4DFB4B9D.3060804@pps-inc.com> <20110617131846.GD28120@geppetto> <4DFB8B3A.8030903@pps-inc.com> Message-ID: <1308375722647-3607294.post@n4.nabble.com> Christ Almighty--have you found the balls to go forward with this, or have you resolved this in some less sphincter-puckering fashion? While I wish I could offer more than moral support, I hope you don't mind that I have a keen interest in how you work this out. I fly by the seat of my pants when it comes to anything command-line--the only reason I have a Linux machine is because I couldn't get a --no-sse2 build to work under XP; every time I install or upgrade anything I'm in constant fear of spiraling into just this sort of dependency hell. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/where-is-my-ffplay-tp3603845p3607294.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From hardik.sharma22 at yahoo.com Sat Jun 18 09:59:43 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Sat, 18 Jun 2011 00:59:43 -0700 (PDT) Subject: [FFmpeg-user] Error for pass2 Message-ID: <553258.56632.qm@web46207.mail.sp1.yahoo.com> Hi guys, I am encoding raw video to .264 format. My 1st pass worked fine bt even after nt changing anything other then pass 2 command and putting output file name, it's not working. Let me know if I did any silly mistake. ? ffmpeg -y -s 720x480 -b 256k -r 30 -pix_fmt yuv420p -f rawvideo -i akiyo_720x480.yuv -pass 2 -vcodec libx264 -y -b 256k -r 30 -preset fast -g 10 -s 720x480 -flags +loop -cmp +chroma -flags2 -fastpskip -partitions +parti4x4+partp8x8+partb8x8+parti8x8+partp4x4 -chromaoffset 0 -b_qfactor 0.45 -flags2 +wpred -subq 8 -flags2 +mixed_refs -flags2 +dct8x8 -me_range 32 -me_method umh -keyint_min 10 -sc_threshold 40 -trellis 2 -i_qfactor 0.71 -qcomp 0.5 -rc_eq 'blurCplx^(1-qComp)' -level 40 -b_strategy 1 -flags2 +bpyramid -bidir_refine 1 -refs 6 -cqp 28 -qmin 8 -qmax 48 -x264opts slice-max-size=100 -deinterlace -f h264 -mbd 1 -psnr -profile high -bf 1 -tune psnr -deblockalpha 0 -deblockbeta 0 -threads 0 out1.264 ffmpeg version git-N-30805-g7a02527, Copyright (c) 2000-2011 the FFmpeg developers ? built on Jun 16 2011 10:06:03 with gcc 4.4.5 ? configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab ? libavutil??? 51.? 8. 0 / 51.? 8. 0 ? libavcodec?? 53.? 7. 0 / 53.? 7. 0 ? libavformat? 53.? 3. 1 / 53.? 3. 1 ? libavdevice? 53.? 1. 1 / 53.? 1. 1 ? libavfilter?? 2. 18. 0 /? 2. 18. 0 ? libswscale??? 0. 14. 1 /? 0. 14. 1 ? libpostproc? 51.? 2. 0 / 51.? 2. 0 [rawvideo @ 0xa5895e0] Estimating duration from bitrate, this may be inaccurate Input #0, rawvideo, from 'akiyo_720x480.yuv': ? Duration: N/A, start: 0.000000, bitrate: N/A ??? Stream #0.0: Video: rawvideo, yuv420p, 720x480, 30 tbr, 30 tbn, 30 tbc [buffer @ 0xa585ae0] w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: [libx264 @ 0xa587de0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 [libx264 @ 0xa587de0] constant rate-factor is incompatible with 2pass. Output #0, h264, to 'out1.264': ??? Stream #0.0: Video: libx264 (hq), yuv420p, 720x480, q=8-48, pass 2, 256 kb/s, 90k tbn, 30 tbc Stream mapping: ? Stream #0.0 -> #0.0 Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height Thanks, Hardik Sharma From etienne.buira.lists at free.fr Sat Jun 18 10:12:40 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Sat, 18 Jun 2011 10:12:40 +0200 Subject: [FFmpeg-user] Error for pass2 In-Reply-To: <553258.56632.qm@web46207.mail.sp1.yahoo.com> References: <553258.56632.qm@web46207.mail.sp1.yahoo.com> Message-ID: <20110618081240.GC21173@epicure.lazyet.homelinux.net> On Sat, Jun 18, 2011 at 12:59:43AM -0700, Hardik Sharma wrote: > Hi guys, > > I am encoding raw video to .264 format. My 1st pass worked fine bt even after nt changing anything other then pass 2 command and putting output file name, it's not working. Let me know if I did any silly mistake. ? > > > ffmpeg -y -s 720x480 -b 256k -r 30 -pix_fmt yuv420p -f rawvideo -i akiyo_720x480.yuv -pass 2 -vcodec libx264 -y -b 256k -r 30 -preset fast -g 10 -s 720x480 -flags +loop -cmp +chroma -flags2 -fastpskip -partitions +parti4x4+partp8x8+partb8x8+parti8x8+partp4x4 -chromaoffset 0 -b_qfactor 0.45 -flags2 +wpred -subq 8 -flags2 +mixed_refs -flags2 +dct8x8 -me_range 32 -me_method umh -keyint_min 10 -sc_threshold 40 -trellis 2 -i_qfactor 0.71 -qcomp 0.5 -rc_eq 'blurCplx^(1-qComp)' -level 40 -b_strategy 1 -flags2 +bpyramid -bidir_refine 1 -refs 6 -cqp 28 -qmin 8 -qmax 48 -x264opts slice-max-size=100 -deinterlace -f h264 -mbd 1 -psnr -profile high -bf 1 -tune psnr -deblockalpha 0 -deblockbeta 0 -threads 0 out1.264 > ffmpeg version git-N-30805-g7a02527, Copyright (c) 2000-2011 the FFmpeg developers > ? built on Jun 16 2011 10:06:03 with gcc 4.4.5 > ? configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab > ? libavutil??? 51.? 8. 0 / 51.? 8. 0 > ? libavcodec?? 53.? 7. 0 / 53.? 7. 0 > ? libavformat? 53.? 3. 1 / 53.? 3. 1 > ? libavdevice? 53.? 1. 1 / 53.? 1. 1 > ? libavfilter?? 2. 18. 0 /? 2. 18. 0 > ? libswscale??? 0. 14. 1 /? 0. 14. 1 > ? libpostproc? 51.? 2. 0 / 51.? 2. 0 > [rawvideo @ 0xa5895e0] Estimating duration from bitrate, this may be inaccurate > Input #0, rawvideo, from 'akiyo_720x480.yuv': > ? Duration: N/A, start: 0.000000, bitrate: N/A > ??? Stream #0.0: Video: rawvideo, yuv420p, 720x480, 30 tbr, 30 tbn, 30 tbc > [buffer @ 0xa585ae0] w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: > [libx264 @ 0xa587de0] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64 > [libx264 @ 0xa587de0] constant rate-factor is incompatible with 2pass. Hi. You set both bitrate (for which it is useful to do 2 pass) and constant quantization (-cqp) (for which a second pass is not useful). You have to choose what ratecontrol method you want. > Output #0, h264, to 'out1.264': > ??? Stream #0.0: Video: libx264 (hq), yuv420p, 720x480, q=8-48, pass 2, 256 kb/s, 90k tbn, 30 tbc > Stream mapping: > ? Stream #0.0 -> #0.0 > Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height > > > Thanks, > Hardik Sharma > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From belcampo at zonnet.nl Sat Jun 18 12:46:57 2011 From: belcampo at zonnet.nl (belcampo) Date: Sat, 18 Jun 2011 12:46:57 +0200 Subject: [FFmpeg-user] where is my ffplay? In-Reply-To: <4DFB8B3A.8030903@pps-inc.com> References: <4DFA77BD.7090809@pps-inc.com> <4DFB4B9D.3060804@pps-inc.com> <20110617131846.GD28120@geppetto> <4DFB8B3A.8030903@pps-inc.com> Message-ID: <4DFC8221.1070008@zonnet.nl> On 06/17/11 19:13, Jim Shupert wrote: > >> ffplay depends on libsdl, so you should verify that SDL headers and >> libraries are installed on your system. Then you may try to do >> --enable-libsdl explicitely when configuring. > Thanks for the wisdom.. > ( i may be way way wrong about something here - but to check for the > hearders & libs > i think i wish to do > > a sdl-config --cflags ( for headers ) , sdl-config --libs ( for libs ) > > well - i do not have sdl-config Then you'll have to install libsdl-devel to get them. > > > > sdl-config --cflags > > > The program 'sdl-config' is currently not installed. You can > install it > > > by typing: > > > sudo apt-get install libsdl1.2-dev > > this leads me down a trail of dependency hell - that ends in > unInstalling the dsktop. > Really? I *must* be misunderstanding something ( it cannot be this hard ) > > > > do sudo apt-get install libsdl1.2-dev > > > > > > The following packages have unmet dependencies: > > > libsdl1.2-dev: Depends: libglu1-mesa-dev but it is not going to be > > > installed > > > E: Broken packages > > > > > > > > > > > > The following packages have unmet dependencies: > > > libsdl1.2-dev: Depends: libglu1-mesa-dev but it is not going to be > > > installed > > > E: Broken packages > > > > scn at aldrin:~$ sudo apt-get install libglu1-mesa-dev > > > Reading package lists... Done > > > Building dependency tree > > > Reading state information... Done > > > Some packages could not be installed. This may mean that you have > > > requested an impossible situation or if you are using the unstable > > > distribution that some required packages have not yet been created > > > or been moved out of Incoming. > > > The following information may help to resolve the situation: > > > > > > The following packages have unmet dependencies: > > > libglu1-mesa-dev: Depends: libgl1-mesa-dev but it is not going to be > > > installed or > > > libgl-dev > > > E: Broken packages > > > > > > so i tried > > > > > > scn at aldrin:~$ sudo apt-get install libgl-dev > > > Reading package lists... Done > > > Building dependency tree > > > Reading state information... Done > > > Package libgl-dev is a virtual package provided by: > > > libgl1-mesa-swx11-dev 7.7.1-1ubuntu3 > > > libgl1-mesa-dev 7.7.1-1ubuntu3 > > > You should explicitly select one to install. > > > E: Package libgl-dev has no installation candidate > > > scn at aldrin:~$ sudo apt-get install libgl1-mesa-swx11-dev > > > Reading package lists... Done > > > Building dependency tree > > > Reading state information... Done > > > Some packages could not be installed. This may mean that you have > > > requested an impossible situation or if you are using the unstable > > > distribution that some required packages have not yet been created > > > or been moved out of Incoming. > > > The following information may help to resolve the situation: > > > > > > The following packages have unmet dependencies: > > > libgl1-mesa-swx11-dev: Depends: mesa-common-dev (= 7.7.1-1ubuntu3) but > > > it is not going to be installed > > > E: Broken packages > > > > > > so i tried > > > scn at aldrin:~$ sudo apt-get install mesa-common-dev > > > Reading package lists... Done > > > Building dependency tree > > > Reading state information... Done > > > Some packages could not be installed. This may mean that you have > > > requested an impossible situation or if you are using the unstable > > > distribution that some required packages have not yet been created > > > or been moved out of Incoming. > > > The following information may help to resolve the situation: > > > > > > The following packages have unmet dependencies: > > > mesa-common-dev: Depends: libdrm-dev but it is not going to be > installed > > > E: Broken packages > > > > > > so i tried > > > scn at aldrin:~$ sudo apt-get install libdrm-dev > > > Reading package lists... Done > > > Building dependency tree > > > Reading state information... Done > > > Some packages could not be installed. This may mean that you have > > > requested an impossible situation or if you are using the unstable > > > distribution that some required packages have not yet been created > > > or been moved out of Incoming. > > > The following information may help to resolve the situation: > > > > > > The following packages have unmet dependencies: > > > libdrm-dev: Depends: libdrm-nouveau1a (= 2.4.23-0.0) but it is not > going > > > to be installed > > > E: Broken packages > > > > > > so i tried > > > scn at aldrin:~$ sudo apt-get install libdrm-nouveau1a > > > Reading package lists... Done > > > Building dependency tree > > > Reading state information... Done > > > The following packages were automatically installed and are no longer > > > required: > > > libopenal1 lirc libjaxp1.3-java libdb-je-java dvgrab libecj-java > > > libxml++2.6-2 libwxbase2.8-0 realpath > > > libdb4.7-java eclipse-platform-data libxerces2-java libgcj-bc > > > gcj-4.4-base libx264-114 libx264-115 > > > libjtidy-java lives-data libicu4j-java libcvaux4 libservlet2.4-java > > > libdb4.7-java-gcj libftdi1 > > > libcommons-beanutils-java libsvga1 libsubtitleeditor0 libqt4-network > > > libftgl2 libglademm-2.4-1c2a > > > libflac++6 gcj-4.4-jre-lib libiso9660-7 libhsqldb-java libbs2b0 > libcddb2 > > > libavdevice52 > > > libcommons-logging-java libweed0 libcommons-compress-java libdvbpsi5 > > > grub-pc libgcj10 libalut0 > > > libbabl-0.0-0 setserial libvlc2 gettext ant libjsch-java > > > libdirac-decoder0 mplayer-skins > > > linux-headers-2.6.32-28 vlc-nox jarwrapper openshot-doc cvs > ant-optional > > > libqtcore4 ogmtools libgii1 > > > libupnp3 libvpx0 libgavl1 libmatroska0 icedax libxcb-keysyms1 > > > frei0r-plugins audacity-data > > > libpostproc51 libcommons-el-java libservlet2.5-java libcv4 > > > libcommons-httpclient-java libgii1-target-x > > > os-prober libqt4-xml vdr libavformat52 libslf4j-java filezilla-common > > > libgimp2.0 ttf-dejavu > > > libregexp-java libhighgui4 fastjar libjasper-java libvdpau1 > liblua5.1-0 > > > ant-optional-gcj > > > libcommons-codec-java vlc-data linux-headers-2.6.32-28-generic > > > liblucene2-java libtar libvamp-hostsdk3 > > > libcommons-collections3-java libgcj-common grub-common libmlt-data > > > ant-gcj libcommons-digester-java > > > gimp-data libvlccore2 libvcdinfo0 libjetty-java libebml0 libjline-java > > > libmng1 libgtkhtml2-0 > > > Use 'apt-get autoremove' to remove them. > > > The following extra packages will be installed: > > > icedtea-6-jre-cacao openjdk-6-jre-headless openjdk-6-jre-lib > > > Suggested packages: > > > sun-java6-fonts ttf-sazanami-gothic ttf-kochi-gothic > ttf-sazanami-mincho > > > ttf-kochi-mincho > > > ttf-telugu-fonts ttf-oriya-fonts ttf-kannada-fonts ttf-bengali-fonts > > > The following packages will be REMOVED: > > > acpi-support acpid aisleriot alsa-base alsa-utils anacron apparmor > > > apparmor-utils apport apport-gtk > > > apport-hooks-medibuntu aptdaemon apturl at at-spi audacity > avahi-daemon > > > avahi-utils blender bluefish > > > bluez bluez-cups brasero brasero-common brltty brltty-x11 byobu > > > capplets-data checkbox checkbox-gtk > > > compiz compiz-core compiz-fusion-plugins-main compiz-gnome > > > compiz-plugins compizconfig-backend-gconf > > > computer-janitor-gtk console-setup consolekit couchdb-bin cron cups > > > cups-driver-gutenprint dbus > > > dbus-x11 desktopcouch desktopvideo dkms dmsetup e2fsprogs > > > eclipse-platform eclipse-rcp empathy > > > empathy-common entagged eog erlang-base erlang-crypto erlang-inets > > > erlang-mnesia erlang-public-key > > > erlang-runtime-tools erlang-ssl erlang-syntax-tools erlang-xmerl > evince > > > evolution evolution-couchdb > > > evolution-data-server evolution-exchange evolution-indicator > > > evolution-plugins evolution-webcal f-spot > > > file-roller filezilla firefox firefox-branding firefox-gnome-support > > > flashplugin-installer foo2zjs > > > foomatic-db foomatic-db-engine friendly-recovery ftp gbrainy gcalctool > > > gconf-defaults-service > > > gconf-editor gconf2 gconf2-common gdebi gdm gdm-guest-session gedit > > > ghostscript-cups ghostscript-x > > > gimp gksu gnome-about gnome-applets gnome-applets-data gnome-bluetooth > > > gnome-codec-install > > > gnome-control-center gnome-disk-utility gnome-games-common > gnome-keyring > > > gnome-mag gnome-mahjongg > > > gnome-media gnome-media-common gnome-nettool gnome-orca gnome-panel > > > gnome-panel-data > > > gnome-power-manager gnome-screensaver gnome-session gnome-session-bin > > > gnome-session-canberra > > > gnome-settings-daemon gnome-sudoku gnome-system-monitor > > > gnome-system-tools gnome-terminal > > > gnome-terminal-data gnome-user-guide gnome-user-share gnome-utils > > > gnomine gphpedit > > > gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-good > > > gstreamer0.10-pulseaudio gucharmap > > > gvfs gvfs-backends gvfs-bin gvfs-fuse gwibber gwibber-service hal > > > hostname hplip ibus ibus-m17n > > > ibus-table icedtea6-plugin ifupdown imagemagick indicator-applet > > > indicator-applet-session indicator-me > > > indicator-session indicator-sound initramfs-tools initscripts > irqbalance > > > jockey-common jockey-gtk kbd > > > language-selector lftp libaccess-bridge-java libaccess-bridge-java-jni > > > libasound2-plugins > > > libatspi1.0-0 libaudio2 libbonoboui2-0 libbrasero-media0 > libcamel1.2-14 > > > libcanberra-pulse > > > libcompizconfig0 libcouchdb-glib-1.0-2 libcryptui0 > > > libdesktopcouch-glib-1.0-2 libdrm-nouveau1 > > > libebackend1.2-0 libebook1.2-9 libecal1.2-7 libedata-book1.2-2 > > > libedata-cal1.2-6 libedataserver1.2-11 > > > libedataserverui1.2-8 libegroupwise1.2-13 libequinox-osgi-java > > > libexchange-storage1.2-3 > > > libgail-gnome-module libgconf2-4 libgconf2.0-cil libgdata6 libgdu0 > > > libgegl-0.0-0 libggi-target-x > > > libggi2 libggiwmh0 libggiwmh0-target-x libgksu2-0 libglu1-xorg > > > libgnome-desktop-2-17 libgnome-media0 > > > libgnome-pilot2 libgnome-vfs2.0-cil libgnome-window-settings1 > > > libgnome2-0 libgnome2-common > > > libgnome2-perl libgnome2-vfs-perl libgnome2.24-cil libgnomekbd-common > > > libgnomekbd4 > > > libgnomepanel2.24-cil libgnomeui-0 libgnomevfs2-0 libgnomevfs2-common > > > libgnomevfs2-extra > > > libgstfarsight0.10-0 libgtkhtml-editor0 libgtkhtml3.14-19 > > > libgweather-common libgweather1 libice6 > > > liblpint-bonobo0 libm17n-0 libmagickcore2 libmagickcore2-extra > > > libmagickwand2 libmetacity-private0 > > > libmjpegtools-1.9 libmlt++3 libmlt2 libnet-dbus-perl libnss-mdns > > > liboobs-1-4 libpanel-applet2-0 > > > libpolkit-gtk-1-0 libpulse-browse0 libpulse-mainloop-glib0 libpulse0 > > > libpurple0 libqt4-svg libqtgui4 > > > librpc-xml-perl libsdl-image1.2 libsdl1.2debian > > > libsdl1.2debian-pulseaudio libsm6 libsoup-gnome2.4-1 > > > libstartup-notification0 libtelepathy-farsight0 libtheora-bin > > > libubuntuone-1.0-1 libwebkit-1.0-2 > > > libwnck22 libwww-perl libwxgtk2.8-0 libxaw7 libxklavier16 > > > libxml-parser-perl libxml-sax-expat-perl > > > libxml-twig-perl libxml-xpath-perl libxmu6 libxres1 libxss1 libxt6 > > > libxtst6 libxvmc1 libxxf86dga1 > > > light-themes linux-generic linux-image-2.6.32-28-generic > > > linux-image-2.6.32-32-generic > > > linux-image-generic linux-sound-base lives logrotate m17n-contrib > > > m17n-db media-player-info > > > mediaexpress melt metacity metacity-common mkvtoolnix-gui > > > module-init-tools mountall mousetweaks > > > mplayer mplayer-gui nautilus nautilus-data nautilus-sendto > > > nautilus-sendto-empathy nautilus-share > > > netbase network-manager network-manager-gnome network-manager-pptp > > > network-manager-pptp-gnome > > > notify-osd nspluginwrapper ntfs-3g ntpdate obex-data-server onboard > > > openjdk-6-jre > > > openoffice.org-base-core openoffice.org-calc openoffice.org-core > > > openoffice.org-draw > > > openoffice.org-emailmerge openoffice.org-gnome openoffice.org-gtk > > > openoffice.org-help-en-us > > > openoffice.org-impress openoffice.org-math openoffice.org-writer > > > openprinting-ppds openshot > > > pcmciautils pitivi plymouth plymouth-label plymouth-theme-ubuntu-logo > > > plymouth-theme-ubuntu-text > > > plymouth-x11 pm-utils pm-utils-powersave-policy policykit-1 > > > policykit-1-gnome powermgmt-base ppp > > > pppconfig pppoeconf pptp-linux procps pulseaudio > > > pulseaudio-esound-compat pulseaudio-module-bluetooth > > > pulseaudio-module-gconf pulseaudio-module-x11 pulseaudio-utils pxljr > > > python-aptdaemon > > > python-aptdaemon-gtk python-desktopcouch python-desktopcouch-records > > > python-farsight python-gconf > > > python-gnome2 python-gnomeapplet python-mlt2 python-papyon > > > python-pyatspi python-speechd > > > python-ubuntuone python-uno python-virtkey python-webkit python-wnck > > > quadrapassel rhythmbox > > > rhythmbox-plugin-cdrecorder rhythmbox-plugins > > > rhythmbox-ubuntuone-music-store rsyslog samba sat4j > > > screen screen-resolution-extra screensaver-default-images seahorse > > > simple-scan smplayer > > > smplayer-themes smplayer-translations software-center > > > software-properties-gtk speech-dispatcher splix > > > squareness subtitleeditor system-config-printer-gnome > > > system-tools-backends telepathy-butterfly > > > telepathy-haze telepathy-salut telnet tomboy totem totem-common > > > totem-mozilla totem-plugins > > > transmission-gtk tsclient ttf-mscorefonts-installer ubufox > > > ubuntu-artwork ubuntu-desktop ubuntu-docs > > > ubuntu-minimal ubuntu-standard ubuntu-system-service ubuntu-tweak > > > ubuntu-wallpapers > > > ubuntuone-client-gnome udev udisks ufw update-manager update-notifier > > > upower upstart ureadahead > > > usb-creator-common usb-creator-gtk util-linux vdr-plugin-mplayer > vinagre > > > vino vlc vlc-plugin-pulse > > > wireless-crda x-ttcidfont-conf x11-apps x11-common x11-session-utils > > > x11-utils x11-xfs-utils > > > x11-xkb-utils x11-xserver-utils xfonts-100dpi xfonts-75dpi xfonts-base > > > xfonts-encodings xfonts-mathml > > > xfonts-scalable xfonts-utils xinit xorg xscreensaver-data > > > xscreensaver-gl xserver-common xserver-xorg > > > xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-evdev > > > xserver-xorg-input-mouse > > > xserver-xorg-input-synaptics xserver-xorg-input-vmmouse > > > xserver-xorg-input-wacom > > > xserver-xorg-video-all xserver-xorg-video-apm xserver-xorg-video-ark > > > xserver-xorg-video-ati > > > xserver-xorg-video-chips xserver-xorg-video-cirrus > > > xserver-xorg-video-fbdev xserver-xorg-video-i128 > > > xserver-xorg-video-intel xserver-xorg-video-mach64 > > > xserver-xorg-video-mga xserver-xorg-video-neomagic > > > xserver-xorg-video-nouveau xserver-xorg-video-nv > > > xserver-xorg-video-openchrome xserver-xorg-video-r128 > > > xserver-xorg-video-radeon xserver-xorg-video-rendition > > > xserver-xorg-video-s3 > > > xserver-xorg-video-s3virge xserver-xorg-video-savage > > > xserver-xorg-video-siliconmotion > > > xserver-xorg-video-sis xserver-xorg-video-sisusb > xserver-xorg-video-tdfx > > > xserver-xorg-video-trident > > > xserver-xorg-video-tseng xserver-xorg-video-v4l > xserver-xorg-video-vesa > > > xserver-xorg-video-vmware > > > xserver-xorg-video-voodoo xterm xulrunner-1.9.2 yelp > > > The following NEW packages will be installed: > > > libdrm-nouveau1a > > > The following packages will be upgraded: > > > icedtea-6-jre-cacao openjdk-6-jre-headless openjdk-6-jre-lib > > > WARNING: The following essential packages will be removed. > > > This should NOT be done unless you know exactly what you are doing! > > > e2fsprogs util-linux (due to e2fsprogs) hostname upstart (due to > > > hostname) > > > 3 upgraded, 1 newly installed, 487 to remove and 10 not upgraded. > > > Need to get 32.7MB of archives. > > > After this operation, 1,862MB disk space will be freed. > > > You are about to do something potentially harmful. > > > To continue type in the phrase 'Yes, do as I say!' > > > > > > > > > --------------- > > > the potentially harmful - has me spooked > > > > > > > and if i use the pkg manager - to help me with my thinking.. > > > symantec Quick search for sdl > > installed is > libsdl1.2-dev > libsdl1.2debian-oss > libsdl1.2debian-alsa > libsdl1.2debian-pulseaudio > libsdl1.2debian-all > libsdl1.2debian > libsdl-image1.2 > > not installed > libsdl1.2-dev [ maybe the dev pkg will give headers & libs ] > > when try to mark for install -- it complains with > libsdl1.2-dev: > Depends: libglu1-mesa-dev but it is not going to be installed > i do a quick search for libglu1-mesa-dev an attempt to mark for install > it complains with > libglu1-mesa-dev: > Depends: libgl1-mesa-dev but it is not going to be installed or > libgl-dev > > when i try libgl1-mesa-dev > > it needs mesa-common-dev > > when i try mesa-common-dev > it needs > libdrm-dev > > when i try libdrm-dev :: it is a crazy long list :: > > e2fsprogs (essential) will be removed > hostname (essential) will be removed > util-linux (essential) will be removed > acpi-support will be removed > acpid will be removed > aisleriot will be removed > alsa-base will be removed > alsa-utils will be removed > anacron will be removed > apparmor will be removed > apparmor-utils will be removed > apport will be removed > apport-gtk will be removed > apport-hooks-medibuntu will be removed > aptdaemon will be removed > apturl will be removed > at will be removed > at-spi will be removed > audacity will be removed > avahi-daemon will be removed > avahi-utils will be removed > blender will be removed > bluefish will be removed > bluez will be removed > bluez-cups will be removed > brasero will be removed > brasero-common will be removed > brltty will be removed > brltty-x11 will be removed > byobu will be removed > capplets-data will be removed > checkbox will be removed > checkbox-gtk will be removed > compiz will be removed > compiz-core will be removed > compiz-fusion-plugins-main will be removed > compiz-gnome will be removed > compiz-plugins will be removed > compizconfig-backend-gconf will be removed > computer-janitor-gtk will be removed > console-setup will be removed > consolekit will be removed > couchdb-bin will be removed > cron will be removed > cups will be removed > cups-driver-gutenprint will be removed > dbus will be removed > dbus-x11 will be removed > desktopcouch will be removed > desktopvideo will be removed > dkms will be removed > dmsetup will be removed > eclipse-platform will be removed > eclipse-rcp will be removed > empathy will be removed > empathy-common will be removed > entagged will be removed > eog will be removed > erlang-base will be removed > erlang-crypto will be removed > erlang-inets will be removed > erlang-mnesia will be removed > erlang-public-key will be removed > erlang-runtime-tools will be removed > erlang-ssl will be removed > erlang-syntax-tools will be removed > erlang-xmerl will be removed > evince will be removed > evolution will be removed > evolution-couchdb will be removed > evolution-data-server will be removed > evolution-exchange will be removed > evolution-indicator will be removed > evolution-plugins will be removed > evolution-webcal will be removed > f-spot will be removed > file-roller will be removed > filezilla will be removed > firefox will be removed > firefox-branding will be removed > firefox-gnome-support will be removed > flashplugin-installer will be removed > foo2zjs will be removed > foomatic-db will be removed > foomatic-db-engine will be removed > friendly-recovery will be removed > ftp will be removed > gbrainy will be removed > gcalctool will be removed > gconf-defaults-service will be removed > gconf-editor will be removed > gconf2 will be removed > gconf2-common will be removed > gdebi will be removed > gdm will be removed > gdm-guest-session will be removed > gedit will be removed > ghostscript-cups will be removed > ghostscript-x will be removed > gimp will be removed > gksu will be removed > gnome-about will be removed > gnome-applets will be removed > gnome-applets-data will be removed > gnome-bluetooth will be removed > gnome-codec-install will be removed > gnome-control-center will be removed > gnome-disk-utility will be removed > gnome-games-common will be removed > gnome-keyring will be removed > gnome-mag will be removed > gnome-mahjongg will be removed > gnome-media will be removed > gnome-media-common will be removed > gnome-nettool will be removed > gnome-orca will be removed > gnome-panel will be removed > gnome-panel-data will be removed > gnome-power-manager will be removed > gnome-screensaver will be removed > gnome-session will be removed > gnome-session-bin will be removed > gnome-session-canberra will be removed > gnome-settings-daemon will be removed > gnome-sudoku will be removed > gnome-system-monitor will be removed > gnome-system-tools will be removed > gnome-terminal will be removed > gnome-terminal-data will be removed > gnome-user-guide will be removed > gnome-user-share will be removed > gnome-utils will be removed > gnomine will be removed > gphpedit will be removed > gstreamer0.10-plugins-bad-multiverse will be removed > gstreamer0.10-plugins-good will be removed > gstreamer0.10-pulseaudio will be removed > gstreamer0.10-sdl will be removed > gucharmap will be removed > gvfs will be removed > gvfs-backends will be removed > gvfs-bin will be removed > gvfs-fuse will be removed > gwibber will be removed > gwibber-service will be removed > hal will be removed > hplip will be removed > ibus will be removed > ibus-m17n will be removed > ibus-table will be removed > icedtea6-plugin will be removed > ifupdown will be removed > imagemagick will be removed > indicator-applet will be removed > indicator-applet-session will be removed > indicator-me will be removed > indicator-session will be removed > indicator-sound will be removed > initramfs-tools will be removed > initscripts will be removed > irqbalance will be removed > jockey-common will be removed > jockey-gtk will be removed > kbd will be removed > language-selector will be removed > lftp will be removed > libaccess-bridge-java will be removed > libaccess-bridge-java-jni will be removed > libasound2-plugins will be removed > libatspi1.0-0 will be removed > libaudio2 will be removed > libbonoboui2-0 will be removed > libbrasero-media0 will be removed > libcamel1.2-14 will be removed > libcanberra-pulse will be removed > libcompizconfig0 will be removed > libcouchdb-glib-1.0-2 will be removed > libcryptui0 will be removed > libdesktopcouch-glib-1.0-2 will be removed > libdrm-nouveau1 will be removed > libebackend1.2-0 will be removed > libebook1.2-9 will be removed > libecal1.2-7 will be removed > libedata-book1.2-2 will be removed > libedata-cal1.2-6 will be removed > libedataserver1.2-11 will be removed > libedataserverui1.2-8 will be removed > libegroupwise1.2-13 will be removed > libequinox-osgi-java will be removed > libexchange-storage1.2-3 will be removed > libgail-gnome-module will be removed > libgconf2-4 will be removed > libgconf2.0-cil will be removed > libgdata6 will be removed > libgdu0 will be removed > libgegl-0.0-0 will be removed > libggi-target-x will be removed > libggi2 will be removed > libggiwmh0 will be removed > libggiwmh0-target-x will be removed > libgksu2-0 will be removed > libglu1-xorg will be removed > libgnome-desktop-2-17 will be removed > libgnome-media0 will be removed > libgnome-pilot2 will be removed > libgnome-vfs2.0-cil will be removed > libgnome-window-settings1 will be removed > libgnome2-0 will be removed > libgnome2-common will be removed > libgnome2-perl will be removed > libgnome2-vfs-perl will be removed > libgnome2.24-cil will be removed > libgnomekbd-common will be removed > libgnomekbd4 will be removed > libgnomepanel2.24-cil will be removed > libgnomeui-0 will be removed > libgnomevfs2-0 will be removed > libgnomevfs2-common will be removed > libgnomevfs2-extra will be removed > libgstfarsight0.10-0 will be removed > libgtkhtml-editor0 will be removed > libgtkhtml3.14-19 will be removed > libgweather-common will be removed > libgweather1 will be removed > libice6 will be removed > liblpint-bonobo0 will be removed > libm17n-0 will be removed > libmagickcore2 will be removed > libmagickcore2-extra will be removed > libmagickwand2 will be removed > libmetacity-private0 will be removed > libmjpegtools-1.9 will be removed > libmlt++3 will be removed > libmlt2 will be removed > libnet-dbus-perl will be removed > libnss-mdns will be removed > liboobs-1-4 will be removed > libpanel-applet2-0 will be removed > libpolkit-gtk-1-0 will be removed > libpulse-browse0 will be removed > libpulse-mainloop-glib0 will be removed > libpulse0 will be removed > libpurple0 will be removed > libqt4-svg will be removed > libqtgui4 will be removed > librpc-xml-perl will be removed > libsdl-image1.2 will be removed > libsdl1.2debian will be removed > libsdl1.2debian-pulseaudio will be removed > libsm6 will be removed > libsoup-gnome2.4-1 will be removed > libstartup-notification0 will be removed > libtelepathy-farsight0 will be removed > libtheora-bin will be removed > libubuntuone-1.0-1 will be removed > libwebkit-1.0-2 will be removed > libwnck22 will be removed > libwww-perl will be removed > libwxgtk2.8-0 will be removed > libxaw7 will be removed > libxklavier16 will be removed > libxml-parser-perl will be removed > libxml-sax-expat-perl will be removed > libxml-twig-perl will be removed > libxml-xpath-perl will be removed > libxmu6 will be removed > libxres1 will be removed > libxss1 will be removed > libxt6 will be removed > libxtst6 will be removed > libxvmc1 will be removed > libxxf86dga1 will be removed > light-themes will be removed > linux-generic will be removed > linux-image-2.6.32-28-generic will be removed > linux-image-2.6.32-32-generic will be removed > linux-image-generic will be removed > linux-sound-base will be removed > lives will be removed > logrotate will be removed > m17n-contrib will be removed > m17n-db will be removed > media-player-info will be removed > mediaexpress will be removed > melt will be removed > metacity will be removed > metacity-common will be removed > mkvtoolnix-gui will be removed > module-init-tools will be removed > mountall will be removed > mousetweaks will be removed > mplayer will be removed > mplayer-gui will be removed > nautilus will be removed > nautilus-data will be removed > nautilus-sendto will be removed > nautilus-sendto-empathy will be removed > nautilus-share will be removed > netbase will be removed > network-manager will be removed > network-manager-gnome will be removed > network-manager-pptp will be removed > network-manager-pptp-gnome will be removed > notify-osd will be removed > nspluginwrapper will be removed > ntfs-3g will be removed > ntpdate will be removed > obex-data-server will be removed > onboard will be removed > openjdk-6-jre will be removed > openoffice.org-base-core will be removed > openoffice.org-calc will be removed > openoffice.org-core will be removed > openoffice.org-draw will be removed > openoffice.org-emailmerge will be removed > openoffice.org-gnome will be removed > openoffice.org-gtk will be removed > openoffice.org-help-en-us will be removed > openoffice.org-impress will be removed > openoffice.org-math will be removed > openoffice.org-writer will be removed > openprinting-ppds will be removed > openshot will be removed > pcmciautils will be removed > pitivi will be removed > plymouth will be removed > plymouth-label will be removed > plymouth-theme-ubuntu-logo will be removed > plymouth-theme-ubuntu-text will be removed > plymouth-x11 will be removed > pm-utils will be removed > pm-utils-powersave-policy will be removed > policykit-1 will be removed > policykit-1-gnome will be removed > powermgmt-base will be removed > ppp will be removed > pppconfig will be removed > pppoeconf will be removed > pptp-linux will be removed > procps will be removed > pulseaudio will be removed > pulseaudio-esound-compat will be removed > pulseaudio-module-bluetooth will be removed > pulseaudio-module-gconf will be removed > pulseaudio-module-x11 will be removed > pulseaudio-utils will be removed > pxljr will be removed > python-aptdaemon will be removed > python-aptdaemon-gtk will be removed > python-desktopcouch will be removed > python-desktopcouch-records will be removed > python-farsight will be removed > python-gconf will be removed > python-gnome2 will be removed > python-gnomeapplet will be removed > python-mlt2 will be removed > python-papyon will be removed > python-pyatspi will be removed > python-speechd will be removed > python-ubuntuone will be removed > python-uno will be removed > python-virtkey will be removed > python-webkit will be removed > python-wnck will be removed > quadrapassel will be removed > rhythmbox will be removed > rhythmbox-plugin-cdrecorder will be removed > rhythmbox-plugins will be removed > rhythmbox-ubuntuone-music-store will be removed > rsyslog will be removed > samba will be removed > sat4j will be removed > screen will be removed > screen-resolution-extra will be removed > screensaver-default-images will be removed > seahorse will be removed > simple-scan will be removed > smplayer will be removed > smplayer-themes will be removed > smplayer-translations will be removed > software-center will be removed > software-properties-gtk will be removed > speech-dispatcher will be removed > splix will be removed > squareness will be removed > subtitleeditor will be removed > system-config-printer-gnome will be removed > system-tools-backends will be removed > telepathy-butterfly will be removed > telepathy-haze will be removed > telepathy-salut will be removed > telnet will be removed > tomboy will be removed > totem will be removed > totem-common will be removed > totem-mozilla will be removed > totem-plugins will be removed > transmission-gtk will be removed > tsclient will be removed > ttf-mscorefonts-installer will be removed > ubufox will be removed > ubuntu-artwork will be removed > ubuntu-docs will be removed > ubuntu-minimal will be removed > ubuntu-standard will be removed > ubuntu-system-service will be removed > ubuntu-tweak will be removed > ubuntu-wallpapers will be removed > ubuntuone-client-gnome will be removed > udev will be removed > udisks will be removed > ufw will be removed > update-manager will be removed > update-notifier will be removed > upower will be removed > upstart will be removed > ureadahead will be removed > usb-creator-common will be removed > usb-creator-gtk will be removed > vdr-plugin-mplayer will be removed > vinagre will be removed > vino will be removed > vlc will be removed > vlc-plugin-pulse will be removed > wireless-crda will be removed > x-ttcidfont-conf will be removed > x11-apps will be removed > x11-common will be removed > x11-session-utils will be removed > x11-utils will be removed > x11-xfs-utils will be removed > x11-xkb-utils will be removed > x11-xserver-utils will be removed > xfonts-100dpi will be removed > xfonts-75dpi will be removed > xfonts-base will be removed > xfonts-encodings will be removed > xfonts-mathml will be removed > xfonts-scalable will be removed > xfonts-utils will be removed > xinit will be removed > xorg will be removed > xscreensaver-data will be removed > xscreensaver-gl will be removed > xserver-common will be removed > xserver-xorg will be removed > xserver-xorg-core will be removed > xserver-xorg-input-all will be removed > xserver-xorg-input-evdev will be removed > xserver-xorg-input-mouse will be removed > xserver-xorg-input-synaptics will be removed > xserver-xorg-input-vmmouse will be removed > xserver-xorg-input-wacom will be removed > xserver-xorg-video-all will be removed > xserver-xorg-video-apm will be removed > xserver-xorg-video-ark will be removed > xserver-xorg-video-ati will be removed > xserver-xorg-video-chips will be removed > xserver-xorg-video-cirrus will be removed > xserver-xorg-video-fbdev will be removed > xserver-xorg-video-i128 will be removed > xserver-xorg-video-intel will be removed > xserver-xorg-video-mach64 will be removed > xserver-xorg-video-mga will be removed > xserver-xorg-video-neomagic will be removed > xserver-xorg-video-nouveau will be removed > xserver-xorg-video-nv will be removed > xserver-xorg-video-openchrome will be removed > xserver-xorg-video-r128 will be removed > xserver-xorg-video-radeon will be removed > xserver-xorg-video-rendition will be removed > xserver-xorg-video-s3 will be removed > xserver-xorg-video-s3virge will be removed > xserver-xorg-video-savage will be removed > xserver-xorg-video-siliconmotion will be removed > xserver-xorg-video-sis will be removed > xserver-xorg-video-sisusb will be removed > xserver-xorg-video-tdfx will be removed > xserver-xorg-video-trident will be removed > xserver-xorg-video-tseng will be removed > xserver-xorg-video-v4l will be removed > xserver-xorg-video-vesa will be removed > xserver-xorg-video-vmware will be removed > xserver-xorg-video-voodoo will be removed > xterm will be removed > xulrunner-1.9.2 will be removed > yelp will be removed > icedtea-6-jre-cacao (version 6b20-1.9.7-0ubuntu1~10.04.1) will be upgraded > to version 6b20-1.9.8-0ubuntu1~10.04.1 > openjdk-6-jre-headless (version 6b20-1.9.7-0ubuntu1~10.04.1) will be > upgraded to version 6b20-1.9.8-0ubuntu1~10.04.1 > openjdk-6-jre-lib (version 6b20-1.9.7-0ubuntu1~10.04.1) will be upgraded > to version 6b20-1.9.8-0ubuntu1~10.04.1 > libdrm-dev (version 2.4.23-0.0) will be installed > libdrm-nouveau1a (version 2.4.23-0.0) will be installed > libkms1 (version 2.4.23-0.0) will be installed > > again -- off scale spooky > > > ----------------- > so my Q is dare i go down that road? > and if so am i hobbled in other ways? > Is there a diffrent way to get the sdl headers & libs > > and the real Q in my mind is > > could i have done something at the time of original ubuntu install - > that would have given me SDL > so that when i build ffmpeg -- i get ffplay > > i cannot help but think - it should not be this hard. > > thanks > > [ my current solution is to make files on the ubuntu sys and play > (ffplay) on an openSUSE 64 system ] > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user From drurowin at gmail.com Sat Jun 18 19:28:23 2011 From: drurowin at gmail.com (Lucien Pullen) Date: Sat, 18 Jun 2011 12:28:23 -0500 Subject: [FFmpeg-user] Metadata muxer/demuxer documentation? In-Reply-To: References: Message-ID: <4DFCE037.80502@gmail.com> Also sprach Tristan Trutna at 4/14/11 3:29 PM: > Reinserting ffmetadata: > > $ ffmpeg -i INPUT -i INPUT_FFMETADATAFILE -map_metadata 0:1 OUTPUT > i.e. > $ ffmpeg -i test.mp3 -i metadata.txt -map_metadata 0:1 -acodec libfaac test.m4a When I try doing this I get an abort trap (after correcting for the metadata mapping syntax change). Am I doing anything wrong, or does metadata input not work? $ ffmpeg -i 1\ musique\ des\ machines\ 1.flac -i 1.ffmetadata -map_meta_data 0:1 Musique.flac ffmpeg version git-N-30509-g49125ae, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 3 2011 15:47:56 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3) configuration: --extra-cflags='-D_THREAD_SAFE -I/opt/local/include/SDL ' --extra-ldflags='-L/opt/local/lib -lSDL ' --extra-cflags=-I/usr/local/include --extra-cflags=-I/opt/local/include/X11 --extra-ldflags=-L/usr/local/lib --extra-ldflags=-L/opt/local/lib --enable-gpl --enable-nonfree --enable-x11grab --enable-libfaac libavutil 51. 4. 0 / 51. 4. 0 libavcodec 53. 6. 1 / 53. 6. 1 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 1. 0 / 53. 1. 0 libavfilter 2. 12. 0 / 2. 12. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 [flac @ 0x10184da00] max_analyze_duration 5000000 reached at 5015510 Input #0, flac, from '1 musique des machines 1.flac': Duration: 00:26:22.56, bitrate: 815 kb/s Stream #0.0: Audio: flac, 44100 Hz, stereo, s16 [ffmetadata @ 0x10185ea00] Estimating duration from bitrate, this may be inaccurate Input #1, ffmetadata, from '1.ffmetadata': Metadata: title : Musique Des Machines 1 track : 1 artist : Broekhuis, Keller & Sch?nw?lder album : Musique Des Machines genre : Electronic subgenre1 : Berlin School subgenre2 : Trance date : 2005 date-recorded : 2003 Duration: N/A, start: 0.000000, bitrate: N/A ffmpeg(97852) malloc: *** error for object 0x101011c00: pointer being freed was not allocated *** set a breakpoint in malloc_error_break to debug Abort trap From hainei87 at 163.com Sat Jun 18 08:13:00 2011 From: hainei87 at 163.com (hainei) Date: Fri, 17 Jun 2011 23:13:00 -0700 (PDT) Subject: [FFmpeg-user] how to copy a video file using ffmpeg Message-ID: <1308377580534-3607322.post@n4.nabble.com> hi my friends. i open a video file, then url_fopen a new file, just read the packet and write the stream packet using the av_read_frame and av_write_frame. but the program don't work, when the program run to the av_write_frame it stop. maybe the pts and dts have not set to the right value, but i don't know how to set it. /* 11-24 now, we start to transcode */ if(av_write_header(oFmtctx) < 0) return -1; //?????? av_q.num = 1; av_q.den = AV_TIME_BASE; if(video_index>=0){ st= iFmtctx->streams[video_index]; timestamp= av_rescale_q(timestamp, av_q, video_st->time_base); } av_seek_frame(iFmtctx, video_index, timestamp, AVSEEK_FLAG_BACKWARD); while(av_read_frame(iFmtctx,&packet) >= 0) { /* if(packet.stream_index == video_index) { } if(packet.stream_index == audio_index) { }*/ AVPacket opkt; av_init_packet(&opkt); data_buf = packet.data; data_size = packet.size ; opkt.stream_index = packet.stream_index ; /* if(packet.pts != AV_NOPTS_VALUE) opkt.pts= av_rescale_q(packet.pts, iFmtctx->streams[video_index]->time_base, video_st->time_base); else opkt.pts= AV_NOPTS_VALUE; if (packet.dts == AV_NOPTS_VALUE) opkt.dts = av_rescale_q(packet.dts, av_q, video_st->time_base); else opkt.dts = av_rescale_q(packet.dts, iFmtctx->streams[video_index]->time_base, video_st->time_base); */ opkt.pts= av_rescale_q(packet.pts, iFmtctx->streams[video_index]->time_base, video_st->time_base); opkt.dts = av_rescale_q(packet.dts, iFmtctx->streams[video_index]->time_base, video_st->time_base); opkt.duration = av_rescale_q(packet.duration, iFmtctx->streams[video_index]->time_base, video_st->time_base); opkt.flags= packet.flags; opkt.data = data_buf; opkt.size = data_size; if (av_write_frame(oFmtctx, &opkt) != 0) { fprintf(stderr, "Error while writing audio frame\n"); exit(1); } av_free_packet(&packet); } // write the trailer, if any av_write_trailer(oFmtctx); please give me help. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/how-to-copy-a-video-file-using-ffmpeg-tp3607322p3607322.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From hardik.sharma22 at yahoo.com Sat Jun 18 23:32:19 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Sat, 18 Jun 2011 14:32:19 -0700 (PDT) Subject: [FFmpeg-user] error while decoding- "Too many slices" Message-ID: <33240.12409.qm@web46202.mail.sp1.yahoo.com> Hi guys, While doing decoding I am getting this error of "too many slices". Even after increasing MAX_SLICE defined value in h264.h file in libavcodec of FFMPEG to 4096, it's giving the same error. I tried slice-max-size from 100 to 1000 but it is giving me same error for all. Please suggest me for what I should do. I used the following command- ?ffmpeg -i out1.264 -vcodec rawvideo -f yuv4mpegpipe -y out.y4m ffmpeg version git-N-30805-g7a02527, Copyright (c) 2000-2011 the FFmpeg developers ? built on Jun 16 2011 10:06:03 with gcc 4.4.5 ? configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab ? libavutil??? 51.? 8. 0 / 51.? 8. 0 ? libavcodec?? 53.? 7. 0 / 53.? 7. 0 ? libavformat? 53.? 3. 1 / 53.? 3. 1 ? libavdevice? 53.? 1. 1 / 53.? 1. 1 ? libavfilter?? 2. 18. 0 /? 2. 18. 0 ? libswscale??? 0. 14. 1 /? 0. 14. 1 ? libpostproc? 51.? 2. 0 / 51.? 2. 0 [h264 @ 0xa72f1e0] Too many slices, increase MAX_SLICES and recompile ??? Last message repeated 44 times [h264 @ 0xa72d360] max_analyze_duration 5000000 reached at 5000000 [h264 @ 0xa72d360] Estimating duration from bitrate, this may be inaccurate Seems stream 0 codec frame rate differs from container frame rate: 60.00 (60/1) -> 30.00 (60/2) Input #0, h264, from 'out1.264': ? Duration: N/A, bitrate: N/A ??? Stream #0.0: Video: h264 (High), yuv420p, 720x480, 30 fps, 30 tbr, 1200k tbn, 60 tbc [buffer @ 0xa7358a0] w:720 h:480 pixfmt:yuv420p tb:1/1000000 sar:0/1 sws_param: Output #0, yuv4mpegpipe, to 'out.y4m': ? Metadata: ??? encoder???????? : Lavf53.3.1 ??? Stream #0.0: Video: rawvideo, yuv420p, 720x480, q=2-31, 200 kb/s, 90k tbn, 30 tbc Stream mapping: ? Stream #0.0 -> #0.0 Press [q] to stop, [?] for help [h264 @ 0xa72f1e0] Too many slices, increase MAX_SLICES and recompile frame=? 103 fps=? 0 q=0.0 size=?? 52144kB time=00:00:03.43 bitrate=124417.6kbitsframe=? 203 fps=199 q=0.0 size=? 102770kB time=00:00:06.76 bitrate=124417.5kbits??? Last message repeated 95 times frame=? 299 fps=197 q=0.0 Lsize=? 151371kB time=00:00:09.96 bitrate=124417.5kbits/s dup=0 drop=1??? video:0kB audio:0kB global headers:0kB muxing overhead inf% Will appreciate any suggestion or help. Thanks. Regards, Hardik Sharma From h.reindl at thelounge.net Sun Jun 19 14:26:32 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Sun, 19 Jun 2011 14:26:32 +0200 Subject: [FFmpeg-user] git-N-30819-g56629aa: corrupted double-linked list: 0x00000000012f00c0 *** Message-ID: <4DFDEAF8.2020907@thelounge.net> *** glibc detected *** /usr/bin/ffmpeg: corrupted double-linked list: 0x00000000012f00c0 *** happens only while trying twopass-encoding and the first time hre with unchanged comiple-flags and libraries since the latest oldabi-release BTW: thank you for fixing the opencv-build-problem on F15 Source: H264 Target: libxvid OS: Fedora 15 xvidcore-1.3.2-2.fc15.x86_64 glibc-2.14-2.x86_64 /usr/bin/ffmpeg -i '/Volumes/dune/buildserver/autotest/parts/ffmpeg/demo.mp4' -y -vb '448k' -ab '96k' -bt '64k' -maxrate '544k' -ar '44100' -ac '2' -r '25' -vf 'scale=480:266,setdar=16:9,pad=480:270:0:2:000000' -f 'mp4' -vcodec 'libxvid' -acodec 'libfaac' -threads '2' -timestamp 'now' '/Volumes/dune/buildserver/autotest/parts/ffmpeg/targets/test.xvid' >> '/Volumes/dune/buildserver/autotest/parts/ffmpeg/logs/mp4_xvid.log' 2>> '/Volumes/dune/buildserver/autotest/parts/ffmpeg/logs/mp4_xvid.log' __________________________________________ ffmpeg version git-N-30819-g56629aa, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 19 2011 14:11:53 with gcc 4.6.0 20110603 (Red Hat 4.6.0-10) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O6 -march=core2 -mtune=core2 -mmmx -msse2 -msse3 -msse4.1 -fopenmp -mfpmath=sse -fno-delete-null-pointer-checks -fstack-protector -pipe -D_FORTIFY_SOURCE=2' --extra-version=thelounge.net --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libvpx --enable-librtmp --enable-avfilter --enable-postproc --enable-swscale --enable-bzlib --enable-zlib --enable-libfreetype --enable-pthreads --enable-fastdiv --enable-pic --enable-libopencv --enable-shared --disable-vdpau --disable-vaapi --disable-hwaccels --disable-static --disable-debug --shlibdir=/usr/lib64 --cpu=core2 --enable-runtime-cpudetect libavutil 50. 42. 0 / 50. 42. 0 libavcodec 52.122. 0 / 52.122. 0 libavformat 52.109. 0 / 52.109. 0 libavdevice 52. 5. 0 / 52. 5. 0 libavfilter 1. 79. 0 / 1. 79. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Use -h to get full help or, even better, run 'man ffmpeg' -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From lawriebristol2003 at yahoo.com Tue Jun 21 12:38:22 2011 From: lawriebristol2003 at yahoo.com (LB_Cuts) Date: Tue, 21 Jun 2011 03:38:22 -0700 (PDT) Subject: [FFmpeg-user] yuv 4:2:2 .avi to 10 bit uncompressed .mov Message-ID: <1308652702135-3613682.post@n4.nabble.com> Hi guys, I'm new to all this malarkey but I wondered if anyone knows or has already written a script for this transcode. I need to retain the size (1920x1080) and the frame rate (23.98). Heres the full details of the .avi codec as per VLC info: Packed YUV 4:2:2, Y:U:Y:V (YUY2) and I need to output to uncompressed 10 bit .mov If it makes any difference I'm working in os x 10.6. Any help is greatly appreciated! Thanks, Lawrie -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/yuv-4-2-2-avi-to-10-bit-uncompressed-mov-tp3613682p3613682.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From dave.bevan at bbc.co.uk Tue Jun 21 12:40:57 2011 From: dave.bevan at bbc.co.uk (Dave Bevan) Date: Tue, 21 Jun 2011 11:40:57 +0100 Subject: [FFmpeg-user] yuv 4:2:2 .avi to 10 bit uncompressed .mov In-Reply-To: <1308652702135-3613682.post@n4.nabble.com> References: <1308652702135-3613682.post@n4.nabble.com> Message-ID: -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of LB_Cuts Sent: 21 June 2011 11:38 To: ffmpeg-user at mplayerhq.hu Subject: [FFmpeg-user] yuv 4:2:2 .avi to 10 bit uncompressed .mov Hi guys, I'm new to all this malarkey but I wondered if anyone knows or has already written a script for this transcode. I need to retain the size (1920x1080) and the frame rate (23.98). Heres the full details of the .avi codec as per VLC info: Packed YUV 4:2:2, Y:U:Y:V (YUY2) and I need to output to uncompressed 10 bit .mov ** Try ** ** ffmpeg -i .avi -acodec copy -vcodec copy .mov ** If it makes any difference I'm working in os x 10.6. Any help is greatly appreciated! Thanks, Lawrie -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/yuv-4-2-2-avi-to-10-bit-uncompr essed-mov-tp3613682p3613682.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 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 soho123.2012 at gmail.com Tue Jun 21 13:03:09 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 21 Jun 2011 19:03:09 +0800 Subject: [FFmpeg-user] how to add WebCam Audio to output stream Message-ID: Hi all, I use the option below : I cannot get audio for output stream Any one have idea? # ffmpeg -intra -f oss -i /dev/dsp -ac 1 -acodec copy -f video4linux2 -vcodec mj peg -r 30 -s 640x480 -i /dev/video0 -r 30 -vcodec copy http://localhost:8090/fee d1.ffm FFmpeg version 0.6.3, Copyright (c) 2000-2010 the FFmpeg developers built on Jun 21 2011 11:ALSA sound/usb/usbaudio.c:1338: 48setting usb interface 3:1 :29 with gcc 3.4.6-1.3.6 configuration: --enable-cross-compile --cALSA sound/usb/usbaudio.c:1338: rosetting usb interface 3:4 ss-prefix=rsdk-linux- --arch=mips --target-os=linux --enable-small --prefix=/home/bradhuang/sd9_usbip_new/0610_ffmpeg/uw ifi-rtl819x-sdk-v2.4/users/stream_server/ffmpeg-0.6.3/romfs --bindir=/home/bradhuang/sd9_usbip_new/0610_ffmpeg/uwifi-rtl 819x-sdk-v2.4/users/stream_server/ffmpeg-0.6.3/romfs --enable-pic --disable-encoders --enable-encoder=mjpeg --enable-enc oder=flv --enable-encoder=mpeg4 --disable-decoders --enable-decoder=mjpeg --enable-decoder=flv --enable-decoder=mpeg4 -- enable-decoder=rawvideo --enable-encoder=rawvideo --enable-decoder=vorbis --enable-encoder=vorbis --disable-hwaccels --d isable-muxers --disable-demuxers --enable-muxer=rawvideo --enable-muxer=mpegts --enable-muxer=ffm --enable-muxer=mov --e nable-muxer=yuv4mpegpipe --enable-muxer=rtp --enable-muxer=flv --enable-muxer=rtsp --enable-muxer=mjpeg --enable-muxer=m pjpeg --enable-muxer=h264 --enable-muxer=h263 --enable-muxer=mpeg1video --enable-muxer=mpeg2video --disable-shared --ena ble-static --enable-demuxer=flv --enable-demuxer=mov --enable-demuxer=rawvideo --enable-demuxer=ffm --enable-demuxer=mpe gts --enable-demuxer=yuv4mpegpipe --enable-muxer=rm --enable-demuxer=rm --enable-demuxer=sdp --enable-demuxer=rtsp --ena ble-demuxer=mjpeg --enable-demuxer=mpjpeg --enable-demuxer=h264 --enable-demuxer=h263 --enable-demuxer=mpeg1video --enab le-demuxer=mpeg2video --disable-parser=dvbsub --disable-parser=mlp --disable-parser=vp3 --disable-parser=vc1 --disable-p arser=pnm --disable-parser=dirac --disable-parser=pnm --disable-parser=dca --disable-avfilter --disable-bsfs --disable-p arser=mpegaudio --disable-parser=mpegvideo --disable-parser=aac --disable-parser=ac3 --disable-parser=aac_latm --disable -filters --disable-filter=buffer --disable-parser=dnxhd --disable-parser=cavsvideo --disable-protocol=concat --disable-p rotocol=rtmpte --disable-protocol=gopher --disable-protocol=applehttp --disable-protocol=mmsh --disable-protocol=crypto --disable-protocol=mmst --disable-protocol=rtmp --disable-protocol=rtmpe --disable-protocol=rtmps --disable-protocol=rtm pt --enable-pthreads libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0.11. 0 / 0.11. 0 [oss @ 0x70ac50]max_analyze_duration reached [oss @ 0x70ac50]Estimating duration from bitrate, this may be inaccurate Input #0, oss, from '/dev/dsp': Duration: N/A, start: 1308679421.657824, bitrate: N/A Stream #0.0, 220, 1/1000000: Audio: 0x0000, 44100 Hz, 1 channels, 705 kb/s [video4linux2 @ 0x70d1d0][4]Capabilities: 4000001 [video4linux2 @ 0x70d1d0]The V4L2 driver set input_id: 0, input: Camera 1 [mjpeg @ 0x70e3e0]marker=d8 avail_size_in_buf=10421 [mjpeg @ 0x70e3e0]buffer too small, expanding to 10421 bytes [mjpeg @ 0x70e3e0]marker parser used 0 bytes (0 bits) [mjpeg @ 0x70e3e0]marker=e0 avail_size_in_buf=10419 [mjpeg @ 0x70e3e0]marker parser used 32 bytes (256 bits) [mjpeg @ 0x70e3e0]marker=db avail_size_in_buf=10384 [mjpeg @ 0x70e3e0]index=0 [mjpeg @ 0x70e3e0]qscale[0]: 16 [mjpeg @ 0x70e3e0]marker parser used 67 bytes (536 bits) [mjpeg @ 0x70e3e0]marker=db avail_size_in_buf=10315 [mjpeg @ 0x70e3e0]index=1 [mjpeg @ 0x70e3e0]qscale[1]: 32 [mjpeg @ 0x70e3e0]marker parser used 67 bytes (536 bits) [mjpeg @ 0x70e3e0]marker=c0 avail_size_in_buf=10246 [mjpeg @ 0x70e3e0]sof0: picture: 640x480 [mjpeg @ 0x70e3e0]component 0 2:1 id: 0 quant:0 [mjpeg @ 0x70e3e0]component 1 1:1 id: 1 quant:1 [mjpeg @ 0x70e3e0]component 2 1:1 id: 2 quant:1 [mjpeg @ 0x70e3e0]pix fmt id 21111100 [mjpeg @ 0x70e3e0]marker parser used 17 bytes (136 bits) [mjpeg @ 0x70e3e0]marker=da avail_size_in_buf=10227 [mjpeg @ 0x70e3e0]escaping removed 7 bytes [mjpeg @ 0x70e3e0]component: 0 [mjpeg @ 0x70e3e0]component: 1 [mjpeg @ 0x70e3e0]component: 2 [mjpeg @ 0x70e3e0]marker parser used 10219 bytes (81751 bits) [mjpeg @ 0x70e3e0]marker=d9 avail_size_in_buf=0 [mjpeg @ 0x70e3e0]mjpeg decode frame unused 0 bytes [video4linux2 @ 0x70d1d0]All info found [video4linux2 @ 0x70d1d0]Estimating duration from bitrate, this may be inaccurate Input #1, video4linux2, from '/dev/video0': Duration: N/A, start: 1308679426.540000, bitrate: 0 kb/s Stream #1.0, 1, 1/1000000: Video: mjpeg, yuvj422p, 640x480, 1/30, 0 kb/s, 30 tbr, 1000k tbn, 30 tbc url_open 129 filename:http://localhost:8090/feed1.ffm http_open Enter http_open_cnx Enter ff_url_split Enter url:http://localhost:8090/feed1.ffm http_open_cnx hostname=localhost,port=8090 url_open 129 filename:tcp://localhost:8090 ff_url_split Enter url:tcp://localhost:8090 tcp_open 50 hostname=localhost port=8090 tcp_open 59 retvalue=0 url_open 153 ret=0 Last message repeated 1 times Probed with size=2048 and score=101 url_open 129 filename:http://localhost:8090/feed1.ffm http_open Enter http_open_cnx Enter ff_url_split Enter url:http://localhost:8090/feed1.ffm http_open_cnx hostname=localhost,port=8090 url_open 129 filename:tcp://localhost:8090 ff_url_split Enter url:tcp://localhost:8090 tcp_open 50 hostname=localhost port=8090 tcp_open 59 retvalue=0 url_open 153 ret=0 stream_copy is selected, no need to decode or encode Last message repeated 1 times Output #0, ffm, to 'http://localhost:8090/feed1.ffm': Metadata: encoder : Lavf52.64.2 Stream #0.0, 0, 1/1000000: Video: mjpeg, yuvj422p, 640x480, 1/30, q=2-31, 0 kb/s, 1000k tbn, 30 tbc Stream mapping: Stream #1.0 -> #0.0 Press [q] to stop encoding frame= 883 fps= 30 q=-1.0 Lsize= 27000kB time=29.85 bitrate=7409.0kbits/s video:26888kB audio:0kB global headers:0kB muxing overhead 0.416721% From soho123.2012 at gmail.com Tue Jun 21 15:04:36 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 21 Jun 2011 21:04:36 +0800 Subject: [FFmpeg-user] Can MJPEG http stream add Audio? Message-ID: Hi All, Can I add audio from WebCam microphone to mjpg video stream by ffmpeg? my config for ffserver: Feed feed1.ffm Format mjpeg AudioBitRate 64 AudioSampleRate 44100 AudioChannels 1 VideoFrameRate 30 VideoSize 640x480 VideoBitRate 256 VideoBufferSize 400 the option for ffmpeg: ffmpeg -f video4linux2 -vcodec mjpeg -r 30 -s 640x480 -i /dev/video0 -f oss -ac 1 -ar 44100 -acodec copy -i /dev/dsp -r 30 -vcodec copy http://localhost:8090/feed1.ffm is it possible to add audio for mjpg http stream? Thanks! Soho From lawriebristol2003 at yahoo.com Tue Jun 21 16:03:17 2011 From: lawriebristol2003 at yahoo.com (LB_Cuts) Date: Tue, 21 Jun 2011 07:03:17 -0700 (PDT) Subject: [FFmpeg-user] Original file location Message-ID: <1308664997067-3614180.post@n4.nabble.com> Hi guys, I've finally installed everything. The (hopefully) last thing I need to know is where to place the original files that I'm transcoding. So that ffmpeg finds them. At the moment I cant find what I'm looking for - No such file or directory. Any ideas? Much thanks, Lawrie -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Original-file-location-tp3614180p3614180.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From h.reindl at thelounge.net Tue Jun 21 16:12:21 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Tue, 21 Jun 2011 16:12:21 +0200 Subject: [FFmpeg-user] Fwd: git-N-30819-g56629aa: corrupted double-linked list: 0x00000000012f00c0 *** Message-ID: <4E00A6C5.9050404@thelounge.net> same with N-30936-g082b4f8 is it possible that some code triggers that with the GLIBC on Fedora 15 since there are a lot of warnings all the time compiling ffmpeg? -------- Original-Nachricht -------- Betreff: git-N-30819-g56629aa: corrupted double-linked list: 0x00000000012f00c0 *** Datum: Sun, 19 Jun 2011 14:26:32 +0200 Von: Reindl Harald Organisation: the lounge interactive design An: Mailing-List ffmpeg *** glibc detected *** /usr/bin/ffmpeg: corrupted double-linked list: 0x00000000012f00c0 *** happens only while trying twopass-encoding and the first time hre with unchanged comiple-flags and libraries since the latest oldabi-release BTW: thank you for fixing the opencv-build-problem on F15 Source: H264 Target: libxvid OS: Fedora 15 xvidcore-1.3.2-2.fc15.x86_64 glibc-2.14-2.x86_64 /usr/bin/ffmpeg -i '/Volumes/dune/buildserver/autotest/parts/ffmpeg/demo.mp4' -y -vb '448k' -ab '96k' -bt '64k' -maxrate '544k' -ar '44100' -ac '2' -r '25' -vf 'scale=480:266,setdar=16:9,pad=480:270:0:2:000000' -f 'mp4' -vcodec 'libxvid' -acodec 'libfaac' -threads '2' -timestamp 'now' '/Volumes/dune/buildserver/autotest/parts/ffmpeg/targets/test.xvid' >> '/Volumes/dune/buildserver/autotest/parts/ffmpeg/logs/mp4_xvid.log' 2>> '/Volumes/dune/buildserver/autotest/parts/ffmpeg/logs/mp4_xvid.log' __________________________________________ ffmpeg version git-N-30819-g56629aa, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 19 2011 14:11:53 with gcc 4.6.0 20110603 (Red Hat 4.6.0-10) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O6 -march=core2 -mtune=core2 -mmmx -msse2 -msse3 -msse4.1 -fopenmp -mfpmath=sse -fno-delete-null-pointer-checks -fstack-protector -pipe -D_FORTIFY_SOURCE=2' --extra-version=thelounge.net --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libvpx --enable-librtmp --enable-avfilter --enable-postproc --enable-swscale --enable-bzlib --enable-zlib --enable-libfreetype --enable-pthreads --enable-fastdiv --enable-pic --enable-libopencv --enable-shared --disable-vdpau --disable-vaapi --disable-hwaccels --disable-static --disable-debug --shlibdir=/usr/lib64 --cpu=core2 --enable-runtime-cpudetect libavutil 50. 42. 0 / 50. 42. 0 libavcodec 52.122. 0 / 52.122. 0 libavformat 52.109. 0 / 52.109. 0 libavdevice 52. 5. 0 / 52. 5. 0 libavfilter 1. 79. 0 / 1. 79. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Use -h to get full help or, even better, run 'man ffmpeg' -- 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: 261 bytes Desc: OpenPGP digital signature URL: From h.reindl at thelounge.net Tue Jun 21 16:20:03 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Tue, 21 Jun 2011 16:20:03 +0200 Subject: [FFmpeg-user] Original file location In-Reply-To: <1308664997067-3614180.post@n4.nabble.com> References: <1308664997067-3614180.post@n4.nabble.com> Message-ID: <4E00A893.2090905@thelounge.net> Am 21.06.2011 16:03, schrieb LB_Cuts: > Hi guys, > > I've finally installed everything. The (hopefully) last thing I need to know > is where to place the original files that I'm transcoding. So that ffmpeg > finds them. > > At the moment I cant find what I'm looking for - No such file or directory. > Any ideas? what about posting your command-line? you provide zero information what about using an absolute path? what about cd /sourcefolder/; ffmpeg -i sourcefil -f xxx outfile? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From icarus.alive at gmail.com Tue Jun 21 16:24:27 2011 From: icarus.alive at gmail.com (Icarus Alive) Date: Tue, 21 Jun 2011 19:54:27 +0530 Subject: [FFmpeg-user] Can MJPEG http stream add Audio? In-Reply-To: References: Message-ID: MJPEG is container less format, and without a container and means to determine correct frame timing, media interleave, I really don't think it is possible to do what you are trying to do. >From the description, looks like you are trying to do what most (or many) surveillance cams do, but note that they do not use MJPEG/HTTP streaming while streaming A/V feeds. They typically use ASF. On Tue, Jun 21, 2011 at 6:34 PM, Soho Soho123 wrote: > Hi All, > > Can I add audio from WebCam microphone to mjpg video stream by ffmpeg? > my config for ffserver: > > Feed feed1.ffm > Format mjpeg > AudioBitRate 64 > AudioSampleRate 44100 > AudioChannels 1 > VideoFrameRate 30 > VideoSize 640x480 > VideoBitRate 256 > VideoBufferSize 400 > > the option for ffmpeg: > ffmpeg -f video4linux2 -vcodec mjpeg -r 30 -s 640x480 -i /dev/video0 > -f oss -ac 1 -ar 44100 -acodec copy -i /dev/dsp -r 30 -vcodec copy > http://localhost:8090/feed1.ffm > > is it possible to add audio for mjpg http stream? > > Thanks! > Soho > ___________ From soho123.2012 at gmail.com Tue Jun 21 16:41:08 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Tue, 21 Jun 2011 22:41:08 +0800 Subject: [FFmpeg-user] Can MJPEG http stream add Audio? In-Reply-To: References: Message-ID: But we can buy a IP Cam product that support MJPG only include audio. Dlink DCS-930 What do you think? 2011/6/21 Icarus Alive : > MJPEG is container less format, and without a container and means to > determine correct frame timing, media interleave, I really don't think > it is possible to do what you are trying to do. > > From the description, looks like you are trying to do what most (or > many) surveillance cams do, but note that they do not use MJPEG/HTTP > streaming while streaming A/V feeds. They typically use ASF. > > On Tue, Jun 21, 2011 at 6:34 PM, Soho Soho123 wrote: >> Hi All, >> >> Can I add audio from WebCam microphone to mjpg video stream by ffmpeg? >> my config for ffserver: >> >> Feed feed1.ffm >> Format mjpeg >> AudioBitRate 64 >> AudioSampleRate 44100 >> AudioChannels 1 >> VideoFrameRate 30 >> VideoSize 640x480 >> VideoBitRate 256 >> VideoBufferSize 400 >> >> the option for ffmpeg: >> ffmpeg -f video4linux2 -vcodec mjpeg -r 30 -s 640x480 -i /dev/video0 >> -f oss -ac 1 -ar 44100 -acodec copy -i /dev/dsp -r 30 -vcodec copy >> http://localhost:8090/feed1.ffm >> >> is it possible to add audio for mjpg http stream? >> >> Thanks! >> Soho >> ___________ > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tomek at at-net.com.pl Tue Jun 21 17:45:21 2011 From: tomek at at-net.com.pl (=?ISO-8859-1?Q?Tomasz_G=F3ral?=) Date: Tue, 21 Jun 2011 17:45:21 +0200 Subject: [FFmpeg-user] Can MJPEG http stream add Audio? In-Reply-To: References: Message-ID: <4E00BC91.4040107@at-net.com.pl> It's simple, DCS-930 send separately video (as jpeg) and audio, in browser java program show video and play audio. -- Tomasz G?ral AT-net http://www.at-net.com.pl Tel. +48 509 288 840 W dniu 2011-06-21 16:41, Soho Soho123 pisze: > But we can buy a IP Cam product that support MJPG only include audio. > Dlink DCS-930 > What do you think? > > 2011/6/21 Icarus Alive: >> MJPEG is container less format, and without a container and means to >> determine correct frame timing, media interleave, I really don't think >> it is possible to do what you are trying to do. >> >> From the description, looks like you are trying to do what most (or >> many) surveillance cams do, but note that they do not use MJPEG/HTTP >> streaming while streaming A/V feeds. They typically use ASF. >> >> On Tue, Jun 21, 2011 at 6:34 PM, Soho Soho123 wrote: >>> Hi All, >>> >>> Can I add audio from WebCam microphone to mjpg video stream by ffmpeg? >>> my config for ffserver: >>> >>> Feed feed1.ffm >>> Format mjpeg >>> AudioBitRate 64 >>> AudioSampleRate 44100 >>> AudioChannels 1 >>> VideoFrameRate 30 >>> VideoSize 640x480 >>> VideoBitRate 256 >>> VideoBufferSize 400 >>> >>> the option for ffmpeg: >>> ffmpeg -f video4linux2 -vcodec mjpeg -r 30 -s 640x480 -i /dev/video0 >>> -f oss -ac 1 -ar 44100 -acodec copy -i /dev/dsp -r 30 -vcodec copy >>> http://localhost:8090/feed1.ffm >>> >>> is it possible to add audio for mjpg http stream? >>> >>> Thanks! >>> Soho >>> ___________ >> _______________________________________________ >> 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 soho123.2012 at gmail.com Tue Jun 21 18:17:25 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 22 Jun 2011 00:17:25 +0800 Subject: [FFmpeg-user] Can MJPEG http stream add Audio? In-Reply-To: <4E00BC91.4040107@at-net.com.pl> References: <4E00BC91.4040107@at-net.com.pl> Message-ID: Hi Tomasz, Could you explain more deatil? How to send video and audio separately? Do you mean 2 stream data for browser? Thanks! Soho 2011/6/21 Tomasz G?ral : > It's simple, DCS-930 send separately video (as jpeg) and audio, in browser > java program show ?video and play audio. > > -- > Tomasz G?ral > AT-net > http://www.at-net.com.pl > Tel. +48 509 288 840 > > > W dniu 2011-06-21 16:41, Soho Soho123 pisze: >> >> But we can buy a IP Cam product that support MJPG only include audio. >> Dlink DCS-930 >> What do you think? >> >> 2011/6/21 Icarus Alive: >>> >>> MJPEG is container less format, and without a container and means to >>> determine correct frame timing, media interleave, I really don't think >>> it is possible to do what you are trying to do. >>> >>> ?From the description, looks like you are trying to do what most (or >>> many) surveillance cams do, but note that they do not use MJPEG/HTTP >>> streaming while streaming A/V feeds. They typically use ASF. >>> >>> On Tue, Jun 21, 2011 at 6:34 PM, Soho Soho123 >>> ?wrote: >>>> >>>> Hi All, >>>> >>>> Can I add audio from WebCam microphone to mjpg video stream by ffmpeg? >>>> my config for ffserver: >>>> >>>> Feed feed1.ffm >>>> Format mjpeg >>>> AudioBitRate 64 >>>> AudioSampleRate 44100 >>>> AudioChannels 1 >>>> VideoFrameRate 30 >>>> VideoSize 640x480 >>>> VideoBitRate 256 >>>> VideoBufferSize 400 >>>> >>>> the option for ffmpeg: >>>> ffmpeg -f video4linux2 -vcodec mjpeg -r 30 -s 640x480 -i /dev/video0 >>>> -f oss -ac 1 -ar 44100 -acodec copy -i /dev/dsp -r 30 -vcodec copy >>>> http://localhost:8090/feed1.ffm >>>> >>>> is it possible to add audio for mjpg http stream? >>>> >>>> Thanks! >>>> Soho >>>> ___________ >>> >>> _______________________________________________ >>> 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 > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From tomek at at-net.com.pl Tue Jun 21 19:27:08 2011 From: tomek at at-net.com.pl (=?ISO-8859-1?Q?Tomasz_G=F3ral?=) Date: Tue, 21 Jun 2011 19:27:08 +0200 Subject: [FFmpeg-user] Can MJPEG http stream add Audio? In-Reply-To: References: <4E00BC91.4040107@at-net.com.pl> Message-ID: <4E00D46C.7040903@at-net.com.pl> Exactly. First stream from /video/mjpg.cgi, second stream from /audio/ACAS.cgi look : http://www.zoneminder.com/wiki/index.php/D-Link MJPGformatprecludesthe use ofsoundtransmission. -- Tomasz G?ral AT-net http://www.at-net.com.pl Tel. +48 509 288 840 W dniu 2011-06-21 18:17, Soho Soho123 pisze: > Hi Tomasz, > > Could you explain more deatil? > How to send video and audio separately? > Do you mean 2 stream data for browser? > > Thanks! > Soho > > 2011/6/21 Tomasz G?ral: >> It's simple, DCS-930 send separately video (as jpeg) and audio, in browser >> java program show video and play audio. >> >> -- >> Tomasz G?ral >> AT-net >> http://www.at-net.com.pl >> Tel. +48 509 288 840 >> >> >> W dniu 2011-06-21 16:41, Soho Soho123 pisze: >>> But we can buy a IP Cam product that support MJPG only include audio. >>> Dlink DCS-930 >>> What do you think? >>> >>> 2011/6/21 Icarus Alive: >>>> MJPEG is container less format, and without a container and means to >>>> determine correct frame timing, media interleave, I really don't think >>>> it is possible to do what you are trying to do. >>>> >>>> From the description, looks like you are trying to do what most (or >>>> many) surveillance cams do, but note that they do not use MJPEG/HTTP >>>> streaming while streaming A/V feeds. They typically use ASF. >>>> >>>> On Tue, Jun 21, 2011 at 6:34 PM, Soho Soho123 >>>> wrote: >>>>> Hi All, >>>>> >>>>> Can I add audio from WebCam microphone to mjpg video stream by ffmpeg? >>>>> my config for ffserver: >>>>> >>>>> Feed feed1.ffm >>>>> Format mjpeg >>>>> AudioBitRate 64 >>>>> AudioSampleRate 44100 >>>>> AudioChannels 1 >>>>> VideoFrameRate 30 >>>>> VideoSize 640x480 >>>>> VideoBitRate 256 >>>>> VideoBufferSize 400 >>>>> >>>>> the option for ffmpeg: >>>>> ffmpeg -f video4linux2 -vcodec mjpeg -r 30 -s 640x480 -i /dev/video0 >>>>> -f oss -ac 1 -ar 44100 -acodec copy -i /dev/dsp -r 30 -vcodec copy >>>>> http://localhost:8090/feed1.ffm >>>>> >>>>> is it possible to add audio for mjpg http stream? >>>>> >>>>> Thanks! >>>>> Soho >>>>> ___________ >>>> _______________________________________________ >>>> 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 >> _______________________________________________ >> 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 eliudrojas at yahoo.com Wed Jun 22 00:02:40 2011 From: eliudrojas at yahoo.com (eliud Rojas) Date: Tue, 21 Jun 2011 15:02:40 -0700 (PDT) Subject: [FFmpeg-user] Ffmpeg + ip camera rtsp + sdp file Message-ID: <414439.33932.qm@web120214.mail.ne1.yahoo.com> Hi Somebody could help me, please!!? I have a ip camera and I want to publish live video streaming to RED5 streaming server. I'm using SteamStream proyect (Little example to transcode RTSP video to FLV video) and I need to create a SDP file I'm trying to create it using ffmpeg. I'm using some examples line commands I find in internet. But I could not generate a sdp file that could execute and works with ffmpeg I need this IP CAMERA (1 to N cameras)-> FFMPEG COMMAND LINE -> SDP FILE SDP FILE -> XUGGLER PROGRAM (SteamStream)-> FLV VIDEO -> RED 5 LIVE STREAMING -> "N" Internet clients ? Some body could write the command line to generate sdp file? somes file that I could generate with ffmpeg show a message : video codec not find i think is because my ffmpeg command is not complete. I wrote a little program to get de SDP using RTSP commands (DESCRIBE) , but if I use ffmpeg or VLC program not reproduce any thing!! ? Thanks in advance ? From ffmpeg at neoprimitive.net Wed Jun 22 01:08:05 2011 From: ffmpeg at neoprimitive.net (ffmpeg) Date: Tue, 21 Jun 2011 19:08:05 -0400 Subject: [FFmpeg-user] MJPEG best quality Message-ID: <20110621230805.GD26270@neoprimitive.net> Hi, all. Reading in a TIF image sequence, I'm searching for the command line that will give me the highest quality MJPEG Quicktime output. I found a few examples online that claim to give the highest quality, but both have roughly the same difference vs. an Uncompressed 4:2:2 (rawvideo) file of the same frames. ffmpeg -f image2 -i %d.tif -vcodec mjpeg -qmin 1 -qmax 1 mjpeg.mov ffmpeg -f image2 -i %d.tif -vcodec mjpeg -qscale 1 mjpeg.mov Any other suggestions? From dev at rarevision.com Wed Jun 22 07:43:38 2011 From: dev at rarevision.com (Thomas Worth) Date: Tue, 21 Jun 2011 22:43:38 -0700 Subject: [FFmpeg-user] libx264 options through FFmpeg Message-ID: While I've historically used a standalone x264 binary to do encoding by piping yuv420p from FFmpeg, I thought I'd try libx264 through FFmpeg since it's certainly more convenient. I've compiled the latest git of both FFmpeg and libx264. I've looked through the help and I can't seem to find all of the x264 options I'm looking for. The ones in question are the ones related to Blu-ray encoding. They don't all seem to be implemented through FFmpeg. However, there is a "-x264opts" option, which appears to take a colon-delimited list of x264 options. Now the question is, why use the built-in FFmpeg options (like -flags2, -me_method, -tune, -profile etc) if I can just pass them via -x264opts? Is there a limitation to this? Do I still need to use FFmpeg's versions of these options? The Blu-ray options that appear to be missing from the FFmpeg interface are options like --nal-hrd, --slices etc. I passed these with -x264opts and it recognized them, although it mentioned this when I used --nal-hrd with --vbv-maxrate and --vbv-bufsize: "VBV parameters cannot be changed when NAL HRD is in use" If I can safely pass all my options via -x264opts then I'll just use that from now on and disregard FFmpeg's x264 interface. From tomek at at-net.com.pl Wed Jun 22 08:42:11 2011 From: tomek at at-net.com.pl (=?ISO-8859-1?Q?Tomasz_G=F3ral?=) Date: Wed, 22 Jun 2011 08:42:11 +0200 Subject: [FFmpeg-user] flv unsupported codec In-Reply-To: References: Message-ID: <4E018EC3.1080008@at-net.com.pl> Hi, I created flv, but ffmpeg cannot read, return unsupported codec. JW Player normal play this video. ffprobe return : Stream #0.0: Video: [0][0][0][0] / 0x0000, 448 kb/s, 1k tbr, 1k tbn, 1k tbc Secret is in first 2 sec, i save only audio frame. How repair this flv ? I can not burn again, because the drift competitions already took place. -- Tomasz G?ral AT-net http://www.at-net.com.pl Tel. +48 509 288 840 From h.reindl at thelounge.net Wed Jun 22 13:08:44 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 22 Jun 2011 13:08:44 +0200 Subject: [FFmpeg-user] flv unsupported codec In-Reply-To: <4E018EC3.1080008@at-net.com.pl> References: <4E018EC3.1080008@at-net.com.pl> Message-ID: <4E01CD3C.7050802@thelounge.net> Am 22.06.2011 08:42, schrieb Tomasz G?ral: > I created flv, but ffmpeg cannot read, return unsupported codec why do you not post your whole input and output? what ffmpeg-build? what you have done is telling us that you are unhappy but not really interested in anyones help but you feel better now -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From tomek at at-net.com.pl Wed Jun 22 14:23:23 2011 From: tomek at at-net.com.pl (=?ISO-8859-1?Q?Tomasz_G=F3ral?=) Date: Wed, 22 Jun 2011 14:23:23 +0200 Subject: [FFmpeg-user] flv unsupported codec In-Reply-To: <4E01CD3C.7050802@thelounge.net> References: <4E018EC3.1080008@at-net.com.pl> <4E01CD3C.7050802@thelounge.net> Message-ID: <4E01DEBB.8060408@at-net.com.pl> W dniu 2011-06-22 13:08, Reindl Harald pisze: > Am 22.06.2011 08:42, schrieb Tomasz G?ral: >> I created flv, but ffmpeg cannot read, return unsupported codec > why do you not post your whole input and output? > what ffmpeg-build? > > what you have done is telling us that you are unhappy but not really > interested in anyones help but you feel better now > Ok, start from the beginning: I wrote a video mixer applications, then ffmpeg get raw date, compresses data and sent to the server ffserver. And at the very beginning sent to ffmpeg audio samples are only a few seconds the video samples. If first sent video samples, then ffplay, VLC, VirtualDub and other players can play the file, but if the first audio sample of the aforementioned players, then inform the codec is not supported, and the JW Player can play the file smoothly. It does not depend on the configuration of ffmpeg (I use version under windows and linux), it depends solely on the arrangement of data. -- Tomasz G?ral AT-net http://www.at-net.com.pl Tel. +48 509 288 840 From h.reindl at thelounge.net Wed Jun 22 14:25:49 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 22 Jun 2011 14:25:49 +0200 Subject: [FFmpeg-user] flv unsupported codec In-Reply-To: <4E01DEBB.8060408@at-net.com.pl> References: <4E018EC3.1080008@at-net.com.pl> <4E01CD3C.7050802@thelounge.net> <4E01DEBB.8060408@at-net.com.pl> Message-ID: <4E01DF4D.20105@thelounge.net> Am 22.06.2011 14:23, schrieb Tomasz G?ral: > W dniu 2011-06-22 13:08, Reindl Harald pisze: >> Am 22.06.2011 08:42, schrieb Tomasz G?ral: >>> I created flv, but ffmpeg cannot read, return unsupported codec >> why do you not post your whole input and output? >> what ffmpeg-build? >> >> what you have done is telling us that you are unhappy but not really >> interested in anyones help but you feel better now >> > Ok, start from the beginning: > > I wrote a video mixer applications, then ffmpeg get raw date, compresses data and sent to the server ffserver. > > And at the very beginning sent to ffmpeg audio samples are only a few seconds the video samples. > > If first sent video samples, then ffplay, VLC, VirtualDub and other players can play the file, but if the first > audio sample of the aforementioned players, then inform the codec is not supported, and the JW Player can play the > file smoothly. > > It does not depend on the configuration of ffmpeg (I use version under windows and linux), it depends solely on the > arrangement of data AGAIN if you need tech help provide UNMODIFIED outputs of the problem and not any interpretations of you, not only here, everywhere -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From soho123.2012 at gmail.com Wed Jun 22 15:58:36 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Wed, 22 Jun 2011 21:58:36 +0800 Subject: [FFmpeg-user] .wav stream can not play at once Message-ID: hi all, I use ffserver to output a .wav audio stream. Then I use VLC to play the .wav audio stream with the url "http://localhost:8090/test.wav". VLC can not play the .wav stream real time. VLC just keep receiving stream data from ffserver. When I stop ffmpeg, the audio stream is stop. VLC will play the .wav dat that was recorded earlier. Does anyone have idea about this issue? How to fix this issue? the Audio stream should play at once, right? Thanks! Soho From soho123.2012 at gmail.com Wed Jun 22 18:27:44 2011 From: soho123.2012 at gmail.com (Soho Soho123) Date: Thu, 23 Jun 2011 00:27:44 +0800 Subject: [FFmpeg-user] Can MJPEG http stream add Audio? In-Reply-To: <4E00D46C.7040903@at-net.com.pl> References: <4E00BC91.4040107@at-net.com.pl> <4E00D46C.7040903@at-net.com.pl> Message-ID: Hi Tomasz, yes, I try to send 2 stream data for VLC, one is video another is audio. but in audio, the setting in ffserver.conf is test.wav for audio stream. it seems vlc will receive audio stream data first, then if I stop audio stream by stop ffmpeg , then vlc will play test.wav stream that was received eariler. do you have idea when vlc can not play test.wav stream real time? thanks soho 2011/6/22 Tomasz G?ral : > Exactly. > > First stream from /video/mjpg.cgi, second stream from /audio/ACAS.cgi look : > http://www.zoneminder.com/wiki/index.php/D-Link > MJPGformatprecludesthe use ofsoundtransmission. > > -- > Tomasz G?ral > AT-net > http://www.at-net.com.pl > Tel. +48 509 288 840 > > > > W dniu 2011-06-21 18:17, Soho Soho123 pisze: >> >> Hi Tomasz, >> >> Could you explain more deatil? >> How to send video and audio separately? >> Do you mean 2 stream data for browser? >> >> Thanks! >> Soho >> >> 2011/6/21 Tomasz G?ral: >>> >>> It's simple, DCS-930 send separately video (as jpeg) and audio, in >>> browser >>> java program show ?video and play audio. >>> >>> -- >>> Tomasz G?ral >>> AT-net >>> http://www.at-net.com.pl >>> Tel. +48 509 288 840 >>> >>> >>> W dniu 2011-06-21 16:41, Soho Soho123 pisze: >>>> >>>> But we can buy a IP Cam product that support MJPG only include audio. >>>> Dlink DCS-930 >>>> What do you think? >>>> >>>> 2011/6/21 Icarus Alive: >>>>> >>>>> MJPEG is container less format, and without a container and means to >>>>> determine correct frame timing, media interleave, I really don't think >>>>> it is possible to do what you are trying to do. >>>>> >>>>> ?From the description, looks like you are trying to do what most (or >>>>> many) surveillance cams do, but note that they do not use MJPEG/HTTP >>>>> streaming while streaming A/V feeds. They typically use ASF. >>>>> >>>>> On Tue, Jun 21, 2011 at 6:34 PM, Soho Soho123 >>>>> ?wrote: >>>>>> >>>>>> Hi All, >>>>>> >>>>>> Can I add audio from WebCam microphone to mjpg video stream by ffmpeg? >>>>>> my config for ffserver: >>>>>> >>>>>> Feed feed1.ffm >>>>>> Format mjpeg >>>>>> AudioBitRate 64 >>>>>> AudioSampleRate 44100 >>>>>> AudioChannels 1 >>>>>> VideoFrameRate 30 >>>>>> VideoSize 640x480 >>>>>> VideoBitRate 256 >>>>>> VideoBufferSize 400 >>>>>> >>>>>> the option for ffmpeg: >>>>>> ffmpeg -f video4linux2 -vcodec mjpeg -r 30 -s 640x480 -i /dev/video0 >>>>>> -f oss -ac 1 -ar 44100 -acodec copy -i /dev/dsp -r 30 -vcodec copy >>>>>> http://localhost:8090/feed1.ffm >>>>>> >>>>>> is it possible to add audio for mjpg http stream? >>>>>> >>>>>> Thanks! >>>>>> Soho >>>>>> ___________ >>>>> >>>>> _______________________________________________ >>>>> 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 >>> >>> _______________________________________________ >>> 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 > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > From hardik.sharma22 at yahoo.com Wed Jun 22 20:53:13 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Wed, 22 Jun 2011 11:53:13 -0700 (PDT) Subject: [FFmpeg-user] Some parameters are not included while encoding Message-ID: <920605.27367.qm@web46204.mail.sp1.yahoo.com> Hi guys, I selected some parameters like slice-size-max, bframes/bf but they are not coming right in vstats and passlog files. Please let me know if I am doing anything wrong. Following are the commands i m using for encoding- ffmpeg -y -s 720x480 -b 256k -r 30 -pix_fmt yuv420p -f rawvideo -i akiyo_720x480.yuv -pass 1 -vcodec libx264 -y -b 256k -r 30 -preset fast -s 720x480 -flags +loop -cmp +chroma -flags2 -fastpskip -partitions +parti4x4+partp8x8+partb8x8+parti8x8+partp4x4 -chromaoffset 0 -b_qfactor 0.45 -flags2 +wpred -subq 8 -flags2 +mixed_refs -flags2 +dct8x8 -me_range 32 -me_method umh -sc_threshold 40 -trellis 2 -vstats -i_qfactor 0.71 -qcomp 0.5 -rc_eq 'blurCplx^(1-qComp)' -level 40 -flags2 +bpyramid -bidir_refine 1 -refs 6 -qmin 5 -qmax 35 -bf 1 -x264opts bframes=1 -x264opts slice-max-size=800 -deinterlace -f h264 -mbd 1 -psnr -x264opts intra-refresh=20 -bf 1 -tune psnr -x264opts keyint=20 -deblockalpha 0 -deblockbeta 0 -threads 0 /dev/null But the log files(vstats) are telling me- frame=???? 5 q= 32.0 PSNR=??? inf f_size=? 14452 s_size=?????? 14kB time= 0.167 br=? 3468.5kbits/s avg_br=?? 693.7kbits/s type= I frame=???? 6 q= 34.0 PSNR=??? inf f_size=??? 340 s_size=?????? 14kB time= 0.200 br=??? 81.6kbits/s avg_br=?? 591.7kbits/s type= P frame=???? 7 q= 34.0 PSNR=??? inf f_size=???? 35 s_size=?????? 14kB time= 0.233 br=???? 8.4kbits/s avg_br=?? 508.4kbits/s type= B frame=???? 8 q= 34.0 PSNR=??? inf f_size=???? 24 s_size=?????? 15kB time= 0.267 br=???? 5.8kbits/s avg_br=?? 445.5kbits/s type= B frame=???? 9 q= 34.0 PSNR=??? inf f_size=???? 26 s_size=?????? 15kB time= 0.300 br=???? 6.2kbits/s avg_br=?? 396.7kbits/s type= B frame=??? 10 q= 34.0 PSNR=??? inf f_size=??? 339 s_size=?????? 15kB time= 0.333 br=??? 81.4kbits/s avg_br=?? 365.2kbits/s type= P frame=??? 11 q= 34.0 PSNR=??? inf f_size=??? 165 s_size=?????? 15kB time= 0.367 br=??? 39.6kbits/s avg_br=?? 335.6kbits/s type= B frame=??? 12 q= 34.0 PSNR=??? inf f_size=???? 30 s_size=?????? 15kB time= 0.400 br=???? 7.2kbits/s avg_br=?? 308.2kbits/s type= B frame=??? 13 q= 34.0 PSNR=??? inf f_size=???? 88 s_size=?????? 15kB time= 0.433 br=??? 21.1kbits/s avg_br=?? 286.1kbits/s type= B frame=??? 14 q= 34.0 PSNR=??? inf f_size=??? 669 s_size=?????? 16kB time= 0.467 br=?? 160.6kbits/s avg_br=?? 277.2kbits/s type= P frame=??? 15 q= 34.0 PSNR=??? inf f_size=??? 106 s_size=?????? 16kB time= 0.500 br=??? 25.4kbits/s avg_br=?? 260.4kbits/s type= B frame=??? 16 q= 34.0 PSNR=??? inf f_size=???? 60 s_size=?????? 16kB time= 0.533 br=??? 14.4kbits/s avg_br=?? 245.0kbits/s type= B frame=??? 17 q= 34.0 PSNR=??? inf f_size=???? 67 s_size=?????? 16kB time= 0.567 br=??? 16.1kbits/s avg_br=?? 231.5kbits/s type= B frame=??? 18 q= 34.0 PSNR=??? inf f_size=??? 761 s_size=?????? 17kB time= 0.600 br=?? 182.6kbits/s avg_br=?? 228.8kbits/s type= P frame=??? 19 q= 34.0 PSNR=??? inf f_size=??? 232 s_size=?????? 17kB time= 0.633 br=??? 55.7kbits/s avg_br=?? 219.7kbits/s type= B frame=??? 20 q= 34.0 PSNR=??? inf f_size=??? 104 s_size=?????? 17kB time= 0.667 br=??? 25.0kbits/s avg_br=?? 210.0kbits/s type= B frame=??? 21 q= 34.0 PSNR=??? inf f_size=??? 156 s_size=?????? 17kB time= 0.700 br=??? 37.4kbits/s avg_br=?? 201.8kbits/s type= B frame=??? 22 q= 32.0 PSNR=??? inf f_size=? 13510 s_size=?????? 30kB time= 0.733 br=? 3242.4kbits/s avg_br=?? 340.0kbits/s type= I And Pass log files are telling me- #options: 720x480 fps=30/1 timebase=1/30 bitdepth=8 cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=0 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=1 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=1 weightp=1 keyint=20 keyint_min=2 scenecut=40 intra_refresh=0 rc_lookahead=20 rc=abr mbtree=1 bitrate=256 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:0.00 in:0 out:0 type:I dur:2 cpbdur:2 q:43.52 tex:27944 mv:12607 misc:5705 imb:1350 pmb:0 smb:0 d:- ref:; in:4 out:1 type:P dur:2 cpbdur:2 q:50.43 tex:33 mv:59 misc:164 imb:0 pmb:5 smb:1345 d:- ref:0 ; in:2 out:2 type:B dur:2 cpbdur:2 q:50.43 tex:0 mv:0 misc:144 imb:0 pmb:0 smb:1350 d:- ref:0 ; in:1 out:3 type:b dur:2 cpbdur:2 q:50.43 tex:0 mv:0 misc:144 imb:0 pmb:0 smb:1350 d:- ref:0 ; in:3 out:4 type:b dur:2 cpbdur:2 q:50.43 tex:0 mv:0 misc:144 imb:0 pmb:0 smb:1350 d:- ref:0 ;?? Where x264 is using totally different options like trellis is 0 bframes are 3 instead of 1 and no mention of slice-max- size and same for intra-refresh etc. Please let me know what you think. I really appreciate any suggestion or help. Thanks. Regards, Hardik Sharma ? From pgoldweic at northwestern.edu Wed Jun 22 23:14:58 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Wed, 22 Jun 2011 14:14:58 -0700 (PDT) Subject: [FFmpeg-user] How to avoid blurred text when using drawtext filter? Message-ID: <1308777298543-3618274.post@n4.nabble.com> When I run ffmpeg with the drawtext filter, I get the desired result (a title on top of a movie) in a small size movie, but I get blurred text when I type the same command using a larger input movie. What causes this? How can I change my command to avoid the blurred text? For specific details, the command I'm using is: ffmpeg -i mymovie.mp4 -vcodec libx264 -acodec copy -vf "drawtext=fontfile=/usr/share/fonts/bitstream-vera/VeraSe.ttf:fontsize=30:x=50:y=50:fontcolor=white:text='this is a title'" mytitledmovie.mp4 And the complete output from ffmpeg is: --------------------------------------------------------------------------------- ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 14 2011 12:55:59 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50) configuration: --enable-libvpx --enable-libfaac --enable-shared --enable-memalign-hack --enable-gpl --enable-libtheora --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-avfilter --enable-swscale --enable-pthreads --enable-libfreetype --arch=x86_64 libavutil 50. 40. 1 / 50. 40. 1 libavcodec 52.120. 0 / 52.120. 0 libavformat 52.108. 0 / 52.108. 0 libavdevice 52. 4. 0 / 52. 4. 0 libavfilter 1. 77. 0 / 1. 77. 0 libswscale 0. 13. 0 / 0. 13. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 2997.00 (2997/1) -> 29.97 (2997/100) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'openEmptyTitle.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 creation_time : 1970-01-01 00:00:00 encoder : Lavf52.108.0 Duration: 00:00:06.25, start: 0.000000, bitrate: 1053 kb/s Stream #0.0(eng): Video: mpeg4, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 1171 kb/s, 29.97 fps, 29.97 tbr, 2997 tbn, 2997 tbc Metadata: creation_time : 1970-01-01 00:00:00 Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 3 kb/s Metadata: creation_time : 1970-01-01 00:00:00 File 'mytitledmovie.mp4' already exists. Overwrite ? [y/N] y [buffer @ 0x1351b030] w:1920 h:1080 pixfmt:yuv420p [libx264 @ 0x135199e0] Default settings detected, using medium profile [libx264 @ 0x135199e0] using SAR=1/1 [libx264 @ 0x135199e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x135199e0] profile High, level 4.0 [libx264 @ 0x135199e0] 264 - core 115 r1995 c1e60b9 - 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=1 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=200 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'mytitledmovie.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2mp41 creation_time : 1970-01-01 00:00:00 encoder : Lavf52.108.0 Stream #0.0(eng): Video: libx264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 2997 tbn, 29.97 tbc Metadata: creation_time : 1970-01-01 00:00:00 Stream #0.1(eng): Audio: libfaac, 48000 Hz, stereo, 3 kb/s Metadata: creation_time : 1970-01-01 00:00:00 Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding frame= 167 fps= 9 q=31.0 Lsize= 31kB time=5.51 bitrate= 45.7kbits/s video:22kB audio:3kB global headers:0kB muxing overhead 24.411660% frame I:1 Avg QP:48.23 size: 628 [libx264 @ 0x135199e0] frame P:52 Avg QP:44.40 size: 249 [libx264 @ 0x135199e0] frame B:114 Avg QP:50.55 size: 73 [libx264 @ 0x135199e0] consecutive B-frames: 7.8% 3.6% 0.0% 88.6% [libx264 @ 0x135199e0] mb I I16..4: 83.7% 16.0% 0.2% [libx264 @ 0x135199e0] mb P I16..4: 3.9% 12.3% 0.0% P16..4: 1.1% 0.1% 0.0% 0.0% 0.0% skip:82.7% [libx264 @ 0x135199e0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.1% 0.0% 0.0% direct: 0.0% skip:99.9% L0:25.6% L1:73.9% BI: 0.5% [libx264 @ 0x135199e0] final ratefactor: 30.83 [libx264 @ 0x135199e0] 8x8 transform intra:69.6% inter:17.7% [libx264 @ 0x135199e0] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0% inter: 0.0% 0.0% 0.0% [libx264 @ 0x135199e0] i16 v,h,dc,p: 99% 0% 1% 0% [libx264 @ 0x135199e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 0% 1% 98% 0% 0% 0% 0% 0% 0% [libx264 @ 0x135199e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 22% 32% 2% 3% 5% 2% 0% 1% [libx264 @ 0x135199e0] i8c dc,h,v,p: 98% 0% 2% 0% [libx264 @ 0x135199e0] Weighted P-Frames: Y:21.2% UV:11.5% [libx264 @ 0x135199e0] ref P L0: 89.2% 0.5% 9.7% 0.4% 0.1% [libx264 @ 0x135199e0] ref B L0: 37.7% 62.3% [libx264 @ 0x135199e0] ref B L1: 78.0% 22.0% [libx264 @ 0x135199e0] kb/s:31.41 ----------------------------------------------------------------------------------- Any suggestions will be appreciated. Thanks. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-avoid-blurred-text-when-using-drawtext-filter-tp3618274p3618274.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From deka.rabin at gmail.com Wed Jun 22 20:34:15 2011 From: deka.rabin at gmail.com (Deka, Rabin) Date: Wed, 22 Jun 2011 11:34:15 -0700 Subject: [FFmpeg-user] latest ffmpeg-0.8.tar.bz2 Message-ID: hi, jean at ubuntu:~/Work/ffmpeg-0.8$ ./configure yasm not found, use --disable-yasm for a crippled build 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. jean at ubuntu:~/Work/ffmpeg-0.8$ ./configure ^C above the problem in ubuntu environment for latest ffmpeg-0.8.tar.bz2 thanks, rabin From lou at lrcd.com Thu Jun 23 01:02:33 2011 From: lou at lrcd.com (Lou) Date: Wed, 22 Jun 2011 15:02:33 -0800 Subject: [FFmpeg-user] latest ffmpeg-0.8.tar.bz2 In-Reply-To: References: Message-ID: <20110622150233.027bb777@lrcd.com> On Wed, 22 Jun 2011 11:34:15 -0700 "Deka, Rabin" wrote: > hi, > > > jean at ubuntu:~/Work/ffmpeg-0.8$ ./configure > yasm not found, use --disable-yasm for a crippled build Works for me in Ubuntu Natty. You probably need to install yasm. > 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. > jean at ubuntu:~/Work/ffmpeg-0.8$ ./configure ^C > > > above the problem in ubuntu environment for latest ffmpeg-0.8.tar.bz2 Which Ubuntu version? yasm from the repository could be too old depending on the Ubuntu version you are using. > thanks, > > rabin From bahamutzero8825 at gmail.com Thu Jun 23 01:13:46 2011 From: bahamutzero8825 at gmail.com (Andrew Berg) Date: Wed, 22 Jun 2011 18:13:46 -0500 Subject: [FFmpeg-user] latest ffmpeg-0.8.tar.bz2 In-Reply-To: References: Message-ID: <4E02772A.4080808@gmail.com> On 2011.06.22 01:34 PM, Deka, Rabin wrote: > jean at ubuntu:~/Work/ffmpeg-0.8$ ./configure > yasm not found, use --disable-yasm for a crippled build Have you tried installing yasm? Something like apt-get install yasm should install it. From hardik.sharma22 at yahoo.com Thu Jun 23 02:56:10 2011 From: hardik.sharma22 at yahoo.com (HardikSharma) Date: Wed, 22 Jun 2011 17:56:10 -0700 (PDT) Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: References: Message-ID: <1308790570515-3618667.post@n4.nabble.com> Hi, I am also using x264 options for some parameters as FFmpeg is not supporting them directly. Like for slice-max-size etc. But even by setting it through x264opts, in passlog files I am not able to get slice size as selected. Do you have any idea regarding this issue. Same problem for trellis and some other parameters too. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/libx264-options-through-FFmpeg-tp3616080p3618667.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From lotharkript at gmail.com Thu Jun 23 06:07:47 2011 From: lotharkript at gmail.com (Lothar Kript) Date: Wed, 22 Jun 2011 21:07:47 -0700 Subject: [FFmpeg-user] Combine output of filter showinfo with drawtext Message-ID: Hi, I was wondering if there is a way to have the information extracted by the filter showinfo to be passed to the filter drawtext. For example, I would like to have the PTS, the frame type being burn in the video. If the filter framework does not provide such solution, what will I need to modify or write to support such solution. Thanks From narukajsingh at gmail.com Thu Jun 23 08:02:06 2011 From: narukajsingh at gmail.com (JITENDRA SINGH) Date: Thu, 23 Jun 2011 11:32:06 +0530 Subject: [FFmpeg-user] Building for ARM In-Reply-To: References: Message-ID: Just to update, this problem was solved. error: symbol not found "ff_find_pix_fmt", its a function defined in rawdec.c in libavcodec, but this file not compiled as rawvideo decoder is not enabled in ./configure, so enabled it using --enable-decoder=rawvideo. Thanks, Naruka On Fri, Jun 10, 2011 at 12:14 PM, JITENDRA SINGH wrote: > Hi, > > Were you able to solve this problem: > undefined reference to `ff_find_pix_fmt' > > I am facing the same while trying to build for arm9.. > > PS: I face this warning "pkg-config not found, library detection may fail" during ./configure. > > Thank you, > Naruka > > ================================ > Hi all, > > I'm building ffmpeg for an ARM with Linux headers 2.6 to send video frames over RTP, ffmpeg only have to packet these frames and send it. I need to optimize the space so I use the minimal configuration. > > I have compile the revision 26400 with this configuration and works fine: > > ./configure --enable-cross-compile --cross-prefix=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu- --target-os=linux --cc=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc --host-cc=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc --cpu=armv5te --arch=arm --enable-static --disable-asm --enable-armv5te --disable-stripping --disable-debug --disable-encoders --disable-decoders --disable-parsers --disable-ffplay --disable-ffserver --disable-devices --disable-bsfs --disable-muxers --enable-parser=mpeg4video --enable-muxer=rtp --enable-parser=aac --disable-filters --disable-demuxers --enable-demuxer=m4v --extra-libs=-static --extra-cflags=--static --disable-ffprobe > > I use with this command (with this output): > > # ffmpeg -vcodec copy -i pipe -an -f rtp rtp://224.52.52.22:7004 -sameq -v 0 < /dev/null & > [3] 178 > # FFmpeg version SVN-r26400, Copyright (c) 2000-2011 the FFmpeg developers > built on Jan 18 2011 09:48:17 with gcc 4.1.2 > configuration: --enable-cross-compile --cross-prefix=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu- --target-os=linux --cc=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc --host-cc=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc --cpu=armv5te --arch=arm --enable-static --disable-asm --enable-armv5te --disable-stripping --disable-debug --disable-encoders --disable-decoders --disable-parsers --disable-ffplay --disable-ffserver --disable-devices --disable-bsfs --disable-muxers --enable-parser=mpeg4video --enable-muxer=rtp --enable-parser=aac --disable-filters --disable-demuxers --enable-demuxer=m4v --extra-libs=-static --extra-cflags=--static > libavutil 50.36. 0 / 50.36. 0 > libavcore 0.16. 1 / 0.16. 1 > libavcodec 52.108. 0 / 52.108. 0 > libavformat 52.93. 0 / 52.93. 0 > libavdevice 52. 2. 3 / 52. 2. 3 > libavfilter 1.74. 0 / 1.74. 0 > libswscale 0.12. 0 / 0.12. 0 > puntero a frame (fis): 0xc2780004 > [m4v @ 0x3538a0] max_analyze_duration reached > [m4v @ 0x3538a0] Estimating duration from bitrate, this may be inaccurate > Input #0, m4v, from 'pipe': > Duration: N/A, bitrate: N/A > Stream #0.0: Video: [0][0][0][0] / 0x0000, 352x288 [PAR 1:1 DAR 11:9], 25 fps, 25 tbr, 1200k tbn, 25 tbc > Output #0, rtp, to 'rtp://224.52.52.22:7004': > Metadata: > encoder : Lavf52.93.0 > Stream #0.0: Video: [0][0][0][0] / 0x0000, 352x288 [PAR 1:1 DAR 11:9], q=2-31, 90k tbn, 25 tbc > Stream mapping: > Stream #0.0 -> #0.0 > SDP: > v=0 > o=- 0 0 IN IP4 127.0.0.1 > s=No Name > c=IN IP4 224.52.52.22 > t=0 0 > a=tool:libavformat 52.93.0 > m=video 7004 RTP/AVP 96 > a=rtpmap:96 MP4V-ES/90000 > a=fmtp:96 profile-level-id=1; config=000001B003000001B50900000100000001200086C400668582120A31 > > Press [q] to stop encoding > > > If I try to use the version 0.6.3, I can compile it fine, but it doesn't work, i get this output: > > # ./ffmpeg.last -vcodec copy -i pipe -an -f rtp rtp://224.52.52.22:7004 -sameq -re > FFmpeg version 0.6.3, Copyright (c) 2000-2010 the FFmpeg developers > built on May 12 2011 13:00:49 with gcc 4.1.2 > configuration: --enable-cross-compile --cross-prefix=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu- --target-os=linux --cc=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc --host-cc=../../Cross/arm-softfloat-linux-gnu/bin/arm-softfloat-linux-gnu-gcc --cpu=armv5te --arch=arm --enable-static --disable-asm --enable-armv5te --disable-stripping --disable-debug --disable-encoders --disable-decoders --disable-parsers --disable-ffplay --disable-ffserver --disable-devices --disable-bsfs --disable-muxers --enable-parser=mpeg4video --enable-muxer=rtp --enable-parser=aac --disable-filters --disable-demuxers --enable-demuxer=m4v --extra-libs=-static --extra-cflags=--static --disable-ffprobe > libavutil 50.15. 1 / 50.15. 1 > libavcodec 52.72. 2 / 52.72. 2 > libavformat 52.64. 2 / 52.64. 2 > libavdevice 52. 2. 0 / 52. 2. 0 > libswscale 0.11. 0 / 0.11. 0 > [m4v @ 0x30e360]max_analyze_duration reached > [m4v @ 0x30e360]Estimating duration from bitrate, this may be inaccurate > Input #0, m4v, from 'pipe': > Duration: N/A, bitrate: N/A > Stream #0.0: Video: 0x0000, 352x288 [PAR 1:1 DAR 11:9], 25 fps, 25 tbr, 1200k tbn, 25 tbc > > > And doesn't sent anything. > > My question is I how can I debug it or if I'm doing anything wrong. > > I also try to use the last version or the 0.7.rc1 but both doesn't compile, I get this error: > > /home/john/ffmpeg/ffmpeg-0.7-rc1/libavformat/libavformat.a(utils.o): In function `.L2670': > utils.c:(.text+0x928c): undefined reference to `ff_find_pix_fmt' > collect2: ld returned 1 exit status > make: *** [ffmpeg_g] Error 1 > > Thanks for the answers. > > Wernam > ========================================== > > From rcoursey at gmail.com Thu Jun 23 18:43:09 2011 From: rcoursey at gmail.com (magic-chef) Date: Thu, 23 Jun 2011 09:43:09 -0700 (PDT) Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <4DF3A6A3.4070802@thelounge.net> References: <1307804798460-3590626.post@n4.nabble.com> <4DF387C4.1060300@gmail.com> <1307810671980-3590755.post@n4.nabble.com> <4DF3A134.10005@thelounge.net> <1307813110233-3590803.post@n4.nabble.com> <4DF3A6A3.4070802@thelounge.net> Message-ID: <1308847389246-3620402.post@n4.nabble.com> Reindl Harald wrote: > > Am 11.06.2011 19:25, schrieb magic-chef: >> @ Reindl: I did not kill the message body. It doesn't appear in the >> message >> box when I click reply in the browser. > > use a proper mail-client / webmail :-) > > below my configuration on Fedira 14 x86_64 but thats not at easy as the > params > looks because you need the depending libraries also in the right version > for > complile and if have no idea how to build a proper package on debian-like > systems > > ffmpeg version git-N-29954-g33651e3, Copyright (c) 2000-2011 the FFmpeg > developers > built on May 26 2011 18:52:42 with gcc 4.5.1 20100924 (Red Hat 4.5.1-4) > configuration: --prefix=/usr --bindir=/usr/bin > --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg > --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --enable-nonfree > --enable-gpl --enable-version3 > --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 > --enable-libdc1394 --enable-libdirac > --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg > --enable-libschroedinger > --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 > --enable-libxvid --enable-libvpx > --enable-librtmp --enable-avfilter --enable-postproc --enable-swscale > --enable-bzlib --enable-zlib > --enable-libfreetype --enable-pthreads --enable-fastdiv --enable-pic > --enable-libopencv --enable-shared > --disable-vdpau --disable-vaapi --disable-hwaccels --disable-static > --disable-debug --shlibdir=/usr/lib64 > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > I would like to have access to the following: ffmpeg Mplayer A52decoder Amrnb and Amrwb All codecs facc and faad2 Ruby flvtool2 ffmpeg-php Mplayer and Mencoder Lame Libogg Libvorbis Libtheora Libwmf opencoreamr vorbistools X264 MP4Box Xvidcore After several discussions with the hosting provider I need to give him an installation sequence and the location where the latest versions of the items can be obtained (for Debian 5.0 - lenny). A script would be most beneficial. Since this is Debian and their support for FFMPEG is not up to date the items need to come from the code repositories. @Reindl: your comments on the OS and FFMPEG support were spot on. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issues-with-conversion-tp3590626p3620402.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From h.reindl at thelounge.net Thu Jun 23 19:24:59 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Thu, 23 Jun 2011 19:24:59 +0200 Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <1308847389246-3620402.post@n4.nabble.com> References: <1307804798460-3590626.post@n4.nabble.com> <4DF387C4.1060300@gmail.com> <1307810671980-3590755.post@n4.nabble.com> <4DF3A134.10005@thelounge.net> <1307813110233-3590803.post@n4.nabble.com> <4DF3A6A3.4070802@thelounge.net> <1308847389246-3620402.post@n4.nabble.com> Message-ID: <4E0376EB.4040400@thelounge.net> Am 23.06.2011 18:43, schrieb magic-chef: > I would like to have access to the following: > > ffmpeg > Mplayer > A52decoder > Amrnb and Amrwb > All codecs > facc and faad2 > Ruby > flvtool2 > ffmpeg-php > Mplayer and Mencoder > Lame > Libogg > Libvorbis > Libtheora > Libwmf > opencoreamr > vorbistools > X264 > MP4Box > Xvidcore uff - which provider will do this if you are not having root-access? > After several discussions with the hosting provider I need to give him an > installation sequence and the location where the latest versions of the > items can be obtained (for Debian 5.0 - lenny). A script would be most > beneficial. Since this is Debian and their support for FFMPEG is not up to > date the items need to come from the code repositories. i fear you can not pay the work anybody have to get this all and ffmpeg in a recent version running on edbian > @Reindl: your comments on the OS and FFMPEG support were spot on is this good or bad? :-) english is not my native language! -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From vicky.budhiraja at sitarasoft.com Thu Jun 23 12:50:19 2011 From: vicky.budhiraja at sitarasoft.com (vicky.budhiraja) Date: Thu, 23 Jun 2011 03:50:19 -0700 (PDT) Subject: [FFmpeg-user] Creating filter : PixelFormat issue Message-ID: <1308826219150-3619467.post@n4.nabble.com> Hello All, I a trying to create a custom filter and writing the following code: ...SNIP... const enum PixelFormat inout_pix_fmts[] = { PIX_FMT_YUV420P, PIX_FMT_NONE }; const enum PixelFormat blend_pix_fmts[] = { PIX_FMT_YUVA420P, PIX_FMT_NONE }; AVFilterFormats *inout_formats = avfilter_make_format_list(inout_pix_fmts); AVFilterFormats *blend_formats = avfilter_make_format_list(blend_pix_fmts); ...SNIP... but I am getting the following erros: 'avfilter_make_format_list' : cannot convert parameter 1 from 'const PixelFormat [2]' to 'const int *' I am referring the code from vf_overlay.c Am I missing something? Any help, suggestions, clue will be helpful. Thanks in Advance, Vicky -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Creating-filter-PixelFormat-issue-tp3619467p3619467.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From jpatel at me.com.au Thu Jun 23 06:14:48 2011 From: jpatel at me.com.au (Jay Patel) Date: Thu, 23 Jun 2011 14:14:48 +1000 Subject: [FFmpeg-user] undefined reference to `x264_encoder_open_115' Message-ID: <6DBA17165D55C54793D81F42BF35BDA0016E51EA@mesbs.me.studio> Hi Guys, I am trying to install ffmpeg on CentOs 5.2 since last few days but stuck at some configuration error. Here is the configuration command I am using. ./configure --enable-gpl --enable-nonfree --enable-version3 --enable-shared --enable-gray --enable-decoder=wmv3 --enable-decoder=wmapro --enable-decoder=h264 --enable-decoder=h263 --enable-decoder=msmpeg4v3 --enable-decoder=mp3 --enable-decoder=mp2 --enable-decoder=aac --enable-decoder=ac3 --enable-libmp3lame --enable-libx264 --enable-libxvid --enable-decoder=libfaac --enable-decoder=wmav2 But when I run make command here is the error I am getting. cmdutils.c:347: warning: ?av_find_opt? is deprecated (declared at libavutil/opt.h:111) cmdutils.c:354: warning: ?av_find_opt? is deprecated (declared at libavutil/opt.h:111) cmdutils.c:361: warning: ?av_find_opt? is deprecated (declared at libavutil/opt.h:111) cmdutils.c: In function ?set_context_opts?: cmdutils.c:494: warning: ?av_find_opt? is deprecated (declared at libavutil/opt.h:111) LD ffmpeg_g libavcodec/libavcodec.so: undefined reference to `x264_encoder_open_115' collect2: ld returned 1 exit status make: *** [ffmpeg_g] Error 1 I have already installed libx264 with -enable=shared. Any help would be great. Kind Regards, Jay Patel. From rcoursey at gmail.com Thu Jun 23 19:44:05 2011 From: rcoursey at gmail.com (magic-chef) Date: Thu, 23 Jun 2011 10:44:05 -0700 (PDT) Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <4E0376EB.4040400@thelounge.net> References: <1307804798460-3590626.post@n4.nabble.com> <4DF387C4.1060300@gmail.com> <1307810671980-3590755.post@n4.nabble.com> <4DF3A134.10005@thelounge.net> <1307813110233-3590803.post@n4.nabble.com> <4DF3A6A3.4070802@thelounge.net> <1308847389246-3620402.post@n4.nabble.com> <4E0376EB.4040400@thelounge.net> Message-ID: <1308851045484-3620544.post@n4.nabble.com> Reindl Harald wrote: > > Am 23.06.2011 18:43, schrieb magic-chef: > uff - which provider will do this if you are not having root-access? > The provider is local (I have worked with him for several years). His concerns are security and updating. The Debian package was an easy way to accomplish this. While Debian has updated several parts of the libraries to more recent versions they have not updated the ffmpeg version (annoying to say the least). I have found so many conflicting directions that I am confused what the overall steps are, as well as how to ensure latest updates are available. Reindl Harald wrote: > > Am 23.06.2011 18:43, schrieb magic-chef: > > i fear you can not pay the work anybody have to get this all and ffmpeg > in a recent version running on edbian > Are you saying the installation on Debian is so difficult that it would be cost prohibitive to accomplish? Reindl Harald wrote: > > Am 23.06.2011 18:43, schrieb magic-chef: > >> @Reindl: your comments on the OS and FFMPEG support were spot on > > is this good or bad? :-) > english is not my native language! > It is good. "Spot on" is a slang term for "correct". -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Issues-with-conversion-tp3590626p3620544.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From h.reindl at thelounge.net Thu Jun 23 19:59:08 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Thu, 23 Jun 2011 19:59:08 +0200 Subject: [FFmpeg-user] Issues with conversion In-Reply-To: <1308851045484-3620544.post@n4.nabble.com> References: <1307804798460-3590626.post@n4.nabble.com> <4DF387C4.1060300@gmail.com> <1307810671980-3590755.post@n4.nabble.com> <4DF3A134.10005@thelounge.net> <1307813110233-3590803.post@n4.nabble.com> <4DF3A6A3.4070802@thelounge.net> <1308847389246-3620402.post@n4.nabble.com> <4E0376EB.4040400@thelounge.net> <1308851045484-3620544.post@n4.nabble.com> Message-ID: <4E037EEC.6010904@thelounge.net> Am 23.06.2011 19:44, schrieb magic-chef: > > Reindl Harald wrote: >> >> Am 23.06.2011 18:43, schrieb magic-chef: >> uff - which provider will do this if you are not having root-access? >> > The provider is local (I have worked with him for several years). His > concerns are security and updating. if he will do this - wonderful but building a lot of packages in newer versions as the distribution may end in a lot of maintaining-work over the long time, how ever i would never use simply configure && make && make install because wihtout package managment this ends in the raod of hell > Reindl Harald wrote: >> >> Am 23.06.2011 18:43, schrieb magic-chef: >> >> i fear you can not pay the work anybody have to get this all and ffmpeg >> in a recent version running on edbian >> > > Are you saying the installation on Debian is so difficult that it would be > cost prohibitive to accomplish? debian is usually not the right platform for recent software because the cahnces are hight that some of the needed packages are depending on libraries which are outdated too and if this happens you end up in a lot of work but if he will try it, why not i wonder if this is a shared hosting? personally in thsi case i would never let a customer call binaries on the machine, but thats not my problem here... > Reindl Harald wrote: >> >> Am 23.06.2011 18:43, schrieb magic-chef: >> >>> @Reindl: your comments on the OS and FFMPEG support were spot on >> >> is this good or bad? :-) >> english is not my native language! >> > > It is good. "Spot on" is a slang term for "correct". ok, thanks the fedora community doe shate me these days so nice to know that there are some peopole how do not :-) -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From lou at lrcd.com Thu Jun 23 20:01:09 2011 From: lou at lrcd.com (Lou) Date: Thu, 23 Jun 2011 10:01:09 -0800 Subject: [FFmpeg-user] undefined reference to `x264_encoder_open_115' In-Reply-To: <6DBA17165D55C54793D81F42BF35BDA0016E51EA@mesbs.me.studio> References: <6DBA17165D55C54793D81F42BF35BDA0016E51EA@mesbs.me.studio> Message-ID: <20110623100109.6a8c802a@lrcd.com> On Thu, 23 Jun 2011 14:14:48 +1000 "Jay Patel" wrote: > Hi Guys, > > > > I am trying to install ffmpeg on CentOs 5.2 since last few days but > stuck at some configuration error. > > Here is the configuration command I am using. > > > > ./configure --enable-gpl --enable-nonfree --enable-version3 > --enable-shared --enable-gray --enable-decoder=wmv3 > --enable-decoder=wmapro --enable-decoder=h264 --enable-decoder=h263 > --enable-decoder=msmpeg4v3 --enable-decoder=mp3 > --enable-decoder=mp2 --enable-decoder=aac --enable-decoder=ac3 > --enable-libmp3lame --enable-libx264 --enable-libxvid > --enable-decoder=libfaac --enable-decoder=wmav2 You don't need any of the --enable-decoder options. FFmpeg will do this automatically. > But when I run make command here is the error I am getting. > > libavcodec/libavcodec.so: undefined reference to > `x264_encoder_open_115' > > collect2: ld returned 1 exit status > > make: *** [ffmpeg_g] Error 1 > > > > I have already installed libx264 with -enable=shared. You probably have old x264 files on your system. Remove any repository x264(-devel) packages or old x264 you have compiled previously. > Any help would be great. > > > > > > > > Kind Regards, > > Jay Patel. From vicky.budhiraja at sitarasoft.com Thu Jun 23 20:11:05 2011 From: vicky.budhiraja at sitarasoft.com (vicky.budhiraja) Date: Thu, 23 Jun 2011 11:11:05 -0700 (PDT) Subject: [FFmpeg-user] Unable to link my code with FFmpeg In-Reply-To: References: Message-ID: <1308852665695-3620595.post@n4.nabble.com> You can give the following command: gcc I../../ encoding-example.c ../../libavformat/libavformat.a ../../libavcodec/libavcodec.a ../../libavfilter/libavfilter.a ../../libavutil/libavutil.a ../../libavdevice/libavdevice.a ../../libswscale/libswscale.a -lpthread -wsock32 Hope this helps! - Vicky Budhiraja -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Unable-to-link-my-code-with-FFmpeg-tp2337860p3620595.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From hardik.sharma22 at yahoo.com Fri Jun 24 05:23:58 2011 From: hardik.sharma22 at yahoo.com (Hardik Sharma) Date: Thu, 23 Jun 2011 20:23:58 -0700 (PDT) Subject: [FFmpeg-user] PSNR calculation Message-ID: <825585.28823.qm@web46206.mail.sp1.yahoo.com> Hi, How to calculate psnr and ssim? I tried with encoding and getting psnr value but not sure how it is calculating it and with decoding it is not giving any value. With JM I use to calculate PSNR with input.yuv and out.yuv files. If someone can tell, let me know how it is calculating PSNR in ffmpeg. Thanks.? ? From tim.nicholson at bbc.co.uk Fri Jun 24 11:00:43 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Fri, 24 Jun 2011 10:00:43 +0100 Subject: [FFmpeg-user] current git (95dd174) make install fails Message-ID: <4E04523B.7010903@bbc.co.uk> My standard build script runs fine on this revision *until* I "make install" at which point I get the following:- =================================================================== > sudo make install CC ffmpeg.o ffmpeg.c: In function ?read_ffserver_streams?: ffmpeg.c:709:5: warning: ?av_open_input_file? is deprecated (declared at libavformat/avformat.h:1083) [...similar lines] ffmpeg.c:3990:5: warning: ?av_set_parameters? is deprecated (declared at libavformat/avformat.h:1400) ffmpeg.c: In function ?opt_codec?: ffmpeg.c:3061:10: warning: ?pstream_copy? may be used uninitialized in this function ffmpeg.c:3061:31: warning: ?pcodec_name? may be used uninitialized in this function ffmpeg.c: At top level: ffmpeg.c:4586:1: fatal error: opening dependency file ffmpeg.d: Permission denied compilation terminated. =========================================================================== Not sure why an install is trying to compile things, and the root folder has a freshly minted copy of ffmpeg.d -rw-r--r-- and ffmpeg:- ========================================================================== ..ffmpeg-git/ffmpeg> ./ffmpeg ffmpeg version N-30992-g95dd174, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 24 2011 09:46:38 with gcc 4.5.0 20100604 [gcc-4_5-branch revision 160292] [...] ======================================================================= Looks like the Makefile has been broken.... -- 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 krueger at signal7.de Fri Jun 24 11:10:18 2011 From: krueger at signal7.de (=?iso-8859-1?Q?Robert_Kr=FCger?=) Date: Fri, 24 Jun 2011 11:10:18 +0200 Subject: [FFmpeg-user] Using Kickstarter to gather funding Message-ID: <902CABE4-9386-44AF-9298-D55AB76DD1D5@signal7.de> Hi, it has happened many times that people have publicly voiced their interest in paying for features to be implemented. What has also happened is that they either didn't offer enough money to be taken seriously or they didn't make a concrete offer at all asking for a price which wasn't named by any dev, at least not publicly. I also got the impression that there are some features that would have enough interested lurkers out there to come up with a sum that would indeed be a fair price for a dev to implement that feature (I might be wrong though). I came across the kickstarter.com platform when I read about a few guys developing a pinhole "lense" for a camera that I own and they did that by registering it as a kickstarter project and that worked surprisingly well. They named an amount which must be collected until they could finance their development & production efforts and interested people got to commit to money they would pay into the fund (I think I payed via Amazon but I guess they also accept other payment methods, not sure). If the amount is not reached, nobody pays anything. If it is reached, people are literally forced to put their money where their mouth is, i.e. they can not get back the money they committed to. In the case mentioned above the result was that a few months after paying, I got the lense for a really low price and everyone was happy. The simplicity of the concept was indeed convincing to me. So the concept would be, someone capable of implementing a feature (a dev or a group of devs or the foundation or whatever) would enter projects like: - bring aac encoding to the level of libfaac but with LGPL compatibility - implement frame interpolation/blending filter - ... and then name a price and if funding reaches their price, they deliver. Disclaimer: I am in no way affiliated with kickstarter. It just appears that some ffmpeg devs are open to doing stuff for money if the price is fair (at least that's the impression I got) and there are many people out there willing to pay something but very few of them can afford to finance a given feature alone (I also fit into that category). I also haven't checked all the details of the kickstarter platform. There might be reasons not to use it, I don't see now. Thoughts on this, anyone? Best regards, Robert From pgoldweic at northwestern.edu Fri Jun 24 16:26:32 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Fri, 24 Jun 2011 07:26:32 -0700 (PDT) Subject: [FFmpeg-user] How to avoid blurred text when using drawtext filter? In-Reply-To: <1308777298543-3618274.post@n4.nabble.com> References: <1308777298543-3618274.post@n4.nabble.com> Message-ID: <1308925592370-3622655.post@n4.nabble.com> Just to add a bit more context here: - I am just starting to use ffmpeg (definitely a newbie) - I have another ffmpeg install that runs on Windows, which does not appear to show this problem (installed from an available binary, not built from source). Does anybody have any pointers on what could be wrong/misconfigured? -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-avoid-blurred-text-when-using-drawtext-filter-tp3618274p3622655.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ddanford at gmail.com Fri Jun 24 16:44:24 2011 From: ddanford at gmail.com (ddanford) Date: Fri, 24 Jun 2011 07:44:24 -0700 (PDT) Subject: [FFmpeg-user] How to record video and audio from webcam and microphone In-Reply-To: <20110613215324.GC12112@geppetto> References: <20110613215324.GC12112@geppetto> Message-ID: <1308926664974-3622692.post@n4.nabble.com> Stefano Sabatini wrote: > > You can find a recent patch for an Openal input device on the > ffmpeg-devel ML which should allow audio capture in Windows, hopefully > it will be applied soon, in the meanwhile you could test it and report > if it works for you. > I realize this is about a week and a half old, but could you post a link to the patch on ffmpeg-devel? I couldn't find it easily, but was hoping to do something similar to Kale to record from the microphone (recording what comes out of the speakers would be better, if possible). Thanks, David -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-record-video-and-audio-from-webcam-and-microphone-tp3594957p3622692.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From stefano.sabatini-lala at poste.it Fri Jun 24 16:40:49 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Fri, 24 Jun 2011 16:40:49 +0200 Subject: [FFmpeg-user] Using Kickstarter to gather funding In-Reply-To: <902CABE4-9386-44AF-9298-D55AB76DD1D5@signal7.de> References: <902CABE4-9386-44AF-9298-D55AB76DD1D5@signal7.de> Message-ID: <20110624144049.GB20742@geppetto> On date Friday 2011-06-24 11:10:18 +0200, Robert Kr?ger encoded: [...] > So the concept would be, someone capable of implementing a feature > (a dev or a group of devs or the foundation or whatever) would enter > projects like: - bring aac encoding to the level of libfaac but with > LGPL compatibility - implement frame interpolation/blending filter - > ... > > and then name a price and if funding reaches their price, they deliver. [...] > Thoughts on this, anyone? We considered many times forms of microfunding for feeding the project, that's an interesting and nice idea for supporting volunteer based projects like FFmpeg, and we always got stuck with the administrative/fiscal/economic requirements, but that's definitively something on which we should focus more. Check also flattr.com for a similar concept. From gregbartnick at gmail.com Fri Jun 24 18:15:53 2011 From: gregbartnick at gmail.com (Greg Bartnick) Date: Fri, 24 Jun 2011 11:15:53 -0500 Subject: [FFmpeg-user] DNxHD decode error Message-ID: Hello Group, I am seeing an error when trying to decode a DNxHD video in a MOV container. [dnxhd @ 0034AF40] ac tex damaged 0, 69 The last numbers change, but the message is repeated many, many times. Can someone explain what "ac tex damaged" means and point me in a direction to figure out what is happening? I see the message is from the dnxhd decoder (dnxhddec.c) but am having trouble following the code. Thanks in advance for any help. Greg Below is the output of ffprobe for the file: Metadata: major_brand : qt minor_version : 537199360 compatible_brands: qt creation_time : 2011-06-17 18:55:29 Duration: 00:03:06.88, start: 0.000000, bitrate: 213524 kb/s Stream #0.0(eng): Video: dnxhd, yuv422p, 1920x1080, 211985 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 29970 tbc Metadata: creation_time : 2011-06-17 18:55:29 Stream #0.1(eng): Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: creation_time : 2011-06-17 18:55:29 Stream #0.2(eng): Data: tmcd / 0x64636D74 Metadata: creation_time : 2011-06-17 18:56:31 Unsupported codec with id 0 for input stream 2 From tim.nicholson at bbc.co.uk Fri Jun 24 18:41:49 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Fri, 24 Jun 2011 17:41:49 +0100 Subject: [FFmpeg-user] current git (95dd174) make install fails In-Reply-To: <4E04523B.7010903@bbc.co.uk> References: <4E04523B.7010903@bbc.co.uk> Message-ID: <4E04BE4D.9030506@bbc.co.uk> On 24/06/11 10:00, Tim Nicholson wrote: > My standard build script runs fine on this revision *until* I "make > install" at which point I get the following:- > =================================================================== > > sudo make install > CC ffmpeg.o > ffmpeg.c: In function ?read_ffserver_streams?: > ffmpeg.c:709:5: warning: ?av_open_input_file? is deprecated (declared at > libavformat/avformat.h:1083) > > [...similar lines] So replying to myself... I found that running "make " again followed by "sudo make install" seemed to solve the problem. However it is odd it fell over in the first place because my script only calls "sudo make install" if make succeeds... [...] make make_ok=$? if [ $make_ok = 0 ] ; then echo "install ..." sudo make install [...] -- 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 pgoldweic at northwestern.edu Fri Jun 24 23:29:34 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Fri, 24 Jun 2011 14:29:34 -0700 (PDT) Subject: [FFmpeg-user] unable to crop and then resize movie Message-ID: <1308950974910-3623660.post@n4.nabble.com> I am having trouble when I try to resize a movie that is 1920x1080 after cropping it. Here's the command I am using: ffmpeg -i mymovie.mp4 -vf "crop=in_w-2*240:in_h:240:0" -s 480x360 vcodec libx264 -acodec copy mymovie-cropped.mp4 I get the following error: [crop @ 0x5eb6fc0] Invalid too big or non positive size for width '0' or height '360' Error opening filters! Can somebody suggest how to fix this? The complete output is: ------------------------------------------------------ ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 14 2011 12:55:59 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50) configuration: --enable-libvpx --enable-libfaac --enable-shared --enable-memalign-hack --enable-gpl --enable-libtheora --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-avfilter --enable-swscale --enable-pthreads --enable-libfreetype --arch=x86_64 libavutil 50. 40. 1 / 50. 40. 1 libavcodec 52.120. 0 / 52.120. 0 libavformat 52.108. 0 / 52.108. 0 libavdevice 52. 4. 0 / 52. 4. 0 libavfilter 1. 77. 0 / 1. 77. 0 libswscale 0. 13. 0 / 0. 13. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (2997/100) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'open.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42mp41 creation_time : 2011-06-22 16:50:18 Duration: 00:00:15.55, start: 0.000000, bitrate: 825 kb/s Stream #0.0(eng): Video: h264 (Main), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 662 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc Metadata: creation_time : 2011-06-22 16:50:18 Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 157 kb/s Metadata: creation_time : 2011-06-22 16:50:18 File 'opencroppedresized-standard.mp4' already exists. Overwrite ? [y/N] y [buffer @ 0x5f90340] w:1920 h:1080 pixfmt:yuv420p [scale @ 0x5f908a0] w:1920 h:1080 fmt:yuv420p -> w:480 h:360 fmt:yuv420p flags:0xa0000004 [crop @ 0x5eb6fc0] w:480 h:360 -> w:0 h:360 [crop @ 0x5eb6fc0] Invalid too big or non positive size for width '0' or height '360' Error opening filters! ---------------------------------------------------------- Thanks! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/unable-to-crop-and-then-resize-movie-tp3623660p3623660.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From pgoldweic at northwestern.edu Fri Jun 24 23:31:40 2011 From: pgoldweic at northwestern.edu (Patricia N Goldweic) Date: Fri, 24 Jun 2011 21:31:40 +0000 Subject: [FFmpeg-user] unable to crop and then resize movie In-Reply-To: <1308950974910-3623660.post@n4.nabble.com> References: <1308950974910-3623660.post@n4.nabble.com> Message-ID: <316ABB7EE42BC448BDBDE73B4323B09BB3613A@evcspmbx4.ads.northwestern.edu> I'm leaving now. I'll try to take a look tonight though, -patricia -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Patricia N Goldweic Sent: Friday, June 24, 2011 4:30 PM To: ffmpeg-user at mplayerhq.hu Subject: [FFmpeg-user] unable to crop and then resize movie I am having trouble when I try to resize a movie that is 1920x1080 after cropping it. Here's the command I am using: ffmpeg -i mymovie.mp4 -vf "crop=in_w-2*240:in_h:240:0" -s 480x360 vcodec libx264 -acodec copy mymovie-cropped.mp4 I get the following error: [crop @ 0x5eb6fc0] Invalid too big or non positive size for width '0' or height '360' Error opening filters! Can somebody suggest how to fix this? The complete output is: ------------------------------------------------------ ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 14 2011 12:55:59 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50) configuration: --enable-libvpx --enable-libfaac --enable-shared --enable-memalign-hack --enable-gpl --enable-libtheora --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-avfilter --enable-swscale --enable-pthreads --enable-libfreetype --arch=x86_64 libavutil 50. 40. 1 / 50. 40. 1 libavcodec 52.120. 0 / 52.120. 0 libavformat 52.108. 0 / 52.108. 0 libavdevice 52. 4. 0 / 52. 4. 0 libavfilter 1. 77. 0 / 1. 77. 0 libswscale 0. 13. 0 / 0. 13. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (2997/100) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'open.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42mp41 creation_time : 2011-06-22 16:50:18 Duration: 00:00:15.55, start: 0.000000, bitrate: 825 kb/s Stream #0.0(eng): Video: h264 (Main), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 662 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc Metadata: creation_time : 2011-06-22 16:50:18 Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 157 kb/s Metadata: creation_time : 2011-06-22 16:50:18 File 'opencroppedresized-standard.mp4' already exists. Overwrite ? [y/N] y [buffer @ 0x5f90340] w:1920 h:1080 pixfmt:yuv420p [scale @ 0x5f908a0] w:1920 h:1080 fmt:yuv420p -> w:480 h:360 fmt:yuv420p flags:0xa0000004 [crop @ 0x5eb6fc0] w:480 h:360 -> w:0 h:360 [crop @ 0x5eb6fc0] Invalid too big or non positive size for width '0' or height '360' Error opening filters! ---------------------------------------------------------- Thanks! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/unable-to-crop-and-then-resize-movie-tp3623660p3623660.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 jeff at jungletech.com Fri Jun 24 23:40:04 2011 From: jeff at jungletech.com (Jeff Stagg) Date: Fri, 24 Jun 2011 14:40:04 -0700 Subject: [FFmpeg-user] unable to crop and then resize movie In-Reply-To: <316ABB7EE42BC448BDBDE73B4323B09BB3613A@evcspmbx4.ads.northwestern.edu> References: <1308950974910-3623660.post@n4.nabble.com> <316ABB7EE42BC448BDBDE73B4323B09BB3613A@evcspmbx4.ads.northwestern.edu> Message-ID: <7EF8F939DF75C54684BEF7516D623BE7887A2D7E9A@EXVMBX018-11.exch018.msoutlookonline.net> http://ffmpeg.org/libavfilter.html#SEC15 ffmpeg -i testing.mp4 -vf " crop= 480:240" -s 480x360 -vcodec libx264 -acodec copy mymovie-cropped.mp4 ? -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Patricia N Goldweic Sent: Friday, June 24, 2011 4:32 PM To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] unable to crop and then resize movie I'm leaving now. I'll try to take a look tonight though, -patricia -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of Patricia N Goldweic Sent: Friday, June 24, 2011 4:30 PM To: ffmpeg-user at mplayerhq.hu Subject: [FFmpeg-user] unable to crop and then resize movie I am having trouble when I try to resize a movie that is 1920x1080 after cropping it. Here's the command I am using: ffmpeg -i mymovie.mp4 -vf "crop=in_w-2*240:in_h:240:0" -s 480x360 vcodec libx264 -acodec copy mymovie-cropped.mp4 I get the following error: [crop @ 0x5eb6fc0] Invalid too big or non positive size for width '0' or height '360' Error opening filters! Can somebody suggest how to fix this? The complete output is: ------------------------------------------------------ ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 14 2011 12:55:59 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50) configuration: --enable-libvpx --enable-libfaac --enable-shared --enable-memalign-hack --enable-gpl --enable-libtheora --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-avfilter --enable-swscale --enable-pthreads --enable-libfreetype --arch=x86_64 libavutil 50. 40. 1 / 50. 40. 1 libavcodec 52.120. 0 / 52.120. 0 libavformat 52.108. 0 / 52.108. 0 libavdevice 52. 4. 0 / 52. 4. 0 libavfilter 1. 77. 0 / 1. 77. 0 libswscale 0. 13. 0 / 0. 13. 0 libpostproc 51. 2. 0 / 51. 2. 0 Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (2997/100) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'open.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42mp41 creation_time : 2011-06-22 16:50:18 Duration: 00:00:15.55, start: 0.000000, bitrate: 825 kb/s Stream #0.0(eng): Video: h264 (Main), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 662 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc Metadata: creation_time : 2011-06-22 16:50:18 Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 157 kb/s Metadata: creation_time : 2011-06-22 16:50:18 File 'opencroppedresized-standard.mp4' already exists. Overwrite ? [y/N] y [buffer @ 0x5f90340] w:1920 h:1080 pixfmt:yuv420p [scale @ 0x5f908a0] w:1920 h:1080 fmt:yuv420p -> w:480 h:360 fmt:yuv420p flags:0xa0000004 [crop @ 0x5eb6fc0] w:480 h:360 -> w:0 h:360 [crop @ 0x5eb6fc0] Invalid too big or non positive size for width '0' or height '360' Error opening filters! ---------------------------------------------------------- Thanks! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/unable-to-crop-and-then-resize-movie-tp3623660p3623660.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 _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user From tfoucu at gmail.com Fri Jun 24 23:44:13 2011 From: tfoucu at gmail.com (Thierry Foucu) Date: Fri, 24 Jun 2011 14:44:13 -0700 Subject: [FFmpeg-user] unable to crop and then resize movie In-Reply-To: <1308950974910-3623660.post@n4.nabble.com> References: <1308950974910-3623660.post@n4.nabble.com> Message-ID: On Fri, Jun 24, 2011 at 2:29 PM, pgoldweic wrote: > I am having trouble when I try to resize a movie that is 1920x1080 after > cropping it. > > Here's the command I am using: > > ffmpeg -i mymovie.mp4 -vf "crop=in_w-2*240:in_h:240:0" -s 480x360 vcodec > libx264 -acodec copy mymovie-cropped.mp4 > > Add the scaler in the filter otherwise the -s is done before the cropping ffmpeg -i mymovie.mp4 -vf "crop=in_w-2*240:in_h:240:0,scale=480x360" -vcodec libx264 -acodec copy mymovie-cropped.mp4 > I get the following error: > [crop @ 0x5eb6fc0] Invalid too big or non positive size for width '0' or > height '360' > Error opening filters! > > Can somebody suggest how to fix this? > > The complete output is: > ------------------------------------------------------ > ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers > built on Jun 14 2011 12:55:59 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50) > configuration: --enable-libvpx --enable-libfaac --enable-shared > --enable-memalign-hack --enable-gpl --enable-libtheora --enable-libmp3lame > --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree > --enable-postproc --enable-avfilter --enable-swscale --enable-pthreads > --enable-libfreetype --arch=x86_64 > libavutil 50. 40. 1 / 50. 40. 1 > libavcodec 52.120. 0 / 52.120. 0 > libavformat 52.108. 0 / 52.108. 0 > libavdevice 52. 4. 0 / 52. 4. 0 > libavfilter 1. 77. 0 / 1. 77. 0 > libswscale 0. 13. 0 / 0. 13. 0 > libpostproc 51. 2. 0 / 51. 2. 0 > > Seems stream 0 codec frame rate differs from container frame rate: 59.94 > (60000/1001) -> 29.97 (2997/100) > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'open.mp4': > Metadata: > major_brand : mp42 > minor_version : 0 > compatible_brands: mp42mp41 > creation_time : 2011-06-22 16:50:18 > Duration: 00:00:15.55, start: 0.000000, bitrate: 825 kb/s > Stream #0.0(eng): Video: h264 (Main), yuv420p, 1920x1080 [PAR 1:1 DAR > 16:9], 662 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 59.94 tbc > Metadata: > creation_time : 2011-06-22 16:50:18 > Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 157 kb/s > Metadata: > creation_time : 2011-06-22 16:50:18 > File 'opencroppedresized-standard.mp4' already exists. Overwrite ? [y/N] y > [buffer @ 0x5f90340] w:1920 h:1080 pixfmt:yuv420p > [scale @ 0x5f908a0] w:1920 h:1080 fmt:yuv420p -> w:480 h:360 fmt:yuv420p > flags:0xa0000004 > [crop @ 0x5eb6fc0] w:480 h:360 -> w:0 h:360 > [crop @ 0x5eb6fc0] Invalid too big or non positive size for width '0' or > height '360' > Error opening filters! > > > ---------------------------------------------------------- > Thanks! > > > -- > View this message in context: > http://ffmpeg-users.933282.n4.nabble.com/unable-to-crop-and-then-resize-movie-tp3623660p3623660.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 etienne.buira.lists at free.fr Fri Jun 24 23:48:51 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Fri, 24 Jun 2011 23:48:51 +0200 Subject: [FFmpeg-user] unable to crop and then resize movie In-Reply-To: <1308950974910-3623660.post@n4.nabble.com> References: <1308950974910-3623660.post@n4.nabble.com> Message-ID: <20110624214850.GH21173@epicure.lazyet.homelinux.net> On Fri, Jun 24, 2011 at 02:29:34PM -0700, pgoldweic wrote: > I am having trouble when I try to resize a movie that is 1920x1080 after > cropping it. > > Here's the command I am using: > > ffmpeg -i mymovie.mp4 -vf "crop=in_w-2*240:in_h:240:0" -s 480x360 vcodec > libx264 -acodec copy mymovie-cropped.mp4 > > I get the following error: > [crop @ 0x5eb6fc0] Invalid too big or non positive size for width '0' or > height '360' > Error opening filters! > > Can somebody suggest how to fix this? Hi. You're best bet is to use filters only, such as -vf crop=...,scale=480:360 > [buffer @ 0x5f90340] w:1920 h:1080 pixfmt:yuv420p > [scale @ 0x5f908a0] w:1920 h:1080 fmt:yuv420p -> w:480 h:360 fmt:yuv420p > flags:0xa0000004 > [crop @ 0x5eb6fc0] w:480 h:360 -> w:0 h:360 > [crop @ 0x5eb6fc0] Invalid too big or non positive size for width '0' or > height '360' > Error opening filters! Which will avoid scaling before croping. From stefano.sabatini-lala at poste.it Fri Jun 24 23:52:44 2011 From: stefano.sabatini-lala at poste.it (Stefano Sabatini) Date: Fri, 24 Jun 2011 23:52:44 +0200 Subject: [FFmpeg-user] How to record video and audio from webcam and microphone In-Reply-To: <1308926664974-3622692.post@n4.nabble.com> References: <20110613215324.GC12112@geppetto> <1308926664974-3622692.post@n4.nabble.com> Message-ID: <20110624215244.GD29230@geppetto> On date Friday 2011-06-24 07:44:24 -0700, ddanford encoded: > > Stefano Sabatini wrote: > > > > You can find a recent patch for an Openal input device on the > > ffmpeg-devel ML which should allow audio capture in Windows, hopefully > > it will be applied soon, in the meanwhile you could test it and report > > if it works for you. > > > > I realize this is about a week and a half old, but could you post a link to > the patch on ffmpeg-devel? I couldn't find it easily, but was hoping to do > something similar to Kale to record from the microphone (recording what > comes out of the speakers would be better, if possible). http://thread.gmane.org/gmane.comp.video.ffmpeg.devel/132559/focus=132897 And since the patch isn't yet landed on the main repository, testing and reporting is welcome. -- ffmpeg-user random tip #0 Please try to use a reasonably recent version of ffmpeg before asking questions to ffmpeg-user: older versions aren't supported here! From dev at rarevision.com Sat Jun 25 00:14:53 2011 From: dev at rarevision.com (Thomas Worth) Date: Fri, 24 Jun 2011 15:14:53 -0700 Subject: [FFmpeg-user] DNxHD 10 bit encode? Message-ID: I saw some emails a few weeks ago about 10 bit DNxHD. Was this for encoding? Is it possible to pass 10 bit values to the DNxHD encoder now and get 10 bit files? From siva.kiran at gmail.com Sat Jun 25 01:47:33 2011 From: siva.kiran at gmail.com (SivaKiran Yellamraju) Date: Fri, 24 Jun 2011 16:47:33 -0700 Subject: [FFmpeg-user] Recent changes broke ios compile? Message-ID: I updated my ffmpeg today and see that compilation scripts for ios (which work for previous version) are not working any more. Here is the error in a file which was recently committed. AS libavcodec/arm/simple_idct_armv5te.o libavcodec/arm/simple_idct_armv5te.S:471:bad expression -- `movs a2,a2,asr,#20' libavcodec/arm/simple_idct_armv5te.S:478:bad expression -- `movs ip,ip,asr,#20' libavcodec/arm/simple_idct_armv5te.S:486:bad expression -- `movs a3,a3,asr,#20' libavcodec/arm/simple_idct_armv5te.S:493:bad expression -- `movs a4,a4,asr,#20' libavcodec/arm/simple_idct_armv5te.S:511:bad expression -- `movs a2,a2,asr,#20' libavcodec/arm/simple_idct_armv5te.S:518:bad expression -- `movs ip,ip,asr,#20' libavcodec/arm/simple_idct_armv5te.S:529:bad expression -- `movs a2,a3,asr,#20' libavcodec/arm/simple_idct_armv5te.S:536:bad expression -- `movs a4,a4,asr,#20' libavcodec/arm/simple_idct_armv5te.S:549:bad expression -- `movs a2,a2,asr,#20' libavcodec/arm/simple_idct_armv5te.S:556:bad expression -- `movs ip,ip,asr,#20' libavcodec/arm/simple_idct_armv5te.S:567:bad expression -- `movs a2,a3,asr,#20' libavcodec/arm/simple_idct_armv5te.S:574:bad expression -- `movs a4,a4,asr,#20' libavcodec/arm/simple_idct_armv5te.S:587:bad expression -- `movs a2,a2,asr,#20' libavcodec/arm/simple_idct_armv5te.S:594:bad expression -- `movs ip,ip,asr,#20' libavcodec/arm/simple_idct_armv5te.S:603:bad expression -- `movs a2,a3,asr,#20' libavcodec/arm/simple_idct_armv5te.S:610:bad expression -- `movs a4,a4,asr,#20' libavcodec/arm/simple_idct_armv5te.S:748:shift expression expected -- `adds a2,v1,a2,asr,#20' libavcodec/arm/simple_idct_armv5te.S:756:shift expression expected -- `adds v1,v1,ip,lsr,#8' libavcodec/arm/simple_idct_armv5te.S:771:shift expression expected -- `adds a3,a2,a3,asr,#20' libavcodec/arm/simple_idct_armv5te.S:778:shift expression expected -- `adds a4,a4,ip,lsr,#8' libavcodec/arm/simple_idct_armv5te.S:796:shift expression expected -- `adds a2,v3,a2,asr,#20' libavcodec/arm/simple_idct_armv5te.S:804:shift expression expected -- `adds v3,v3,ip,lsr,#8' libavcodec/arm/simple_idct_armv5te.S:817:shift expression expected -- `adds a3,a2,a3,asr,#20' libavcodec/arm/simple_idct_armv5te.S:824:shift expression expected -- `adds a4,a4,ip,lsr,#8' libavcodec/arm/simple_idct_armv5te.S:840:shift expression expected -- `adds a2,v3,a2,asr,#20' libavcodec/arm/simple_idct_armv5te.S:848:shift expression expected -- `adds v3,v3,ip,lsr,#8' libavcodec/arm/simple_idct_armv5te.S:861:shift expression expected -- `adds a3,a2,a3,asr,#20' libavcodec/arm/simple_idct_armv5te.S:868:shift expression expected -- `adds a4,a4,ip,lsr,#8' libavcodec/arm/simple_idct_armv5te.S:884:shift expression expected -- `adds a2,v3,a2,asr,#20' libavcodec/arm/simple_idct_armv5te.S:892:shift expression expected -- `adds v3,v3,ip,lsr,#8' libavcodec/arm/simple_idct_armv5te.S:905:shift expression expected -- `adds a3,a2,a3,asr,#20' libavcodec/arm/simple_idct_armv5te.S:912:shift expression expected -- `adds a4,a4,ip,lsr,#8' Any advise on how to resolve this ? I am using scripts from http://stackoverflow.com/questions/5516170/iphone-sdk-4-3-libav-compiling-problem Siva. From baptiste.coudurier at gmail.com Sat Jun 25 02:01:33 2011 From: baptiste.coudurier at gmail.com (Baptiste Coudurier) Date: Fri, 24 Jun 2011 17:01:33 -0700 Subject: [FFmpeg-user] DNxHD decode error In-Reply-To: References: Message-ID: <4E05255D.9050009@gmail.com> Hi, On 6/24/11 9:15 AM, Greg Bartnick wrote: > Hello Group, > > I am seeing an error when trying to decode a DNxHD video in a MOV container. > > [dnxhd @ 0034AF40] ac tex damaged 0, 69 > > The last numbers change, but the message is repeated many, many times. > Can someone explain what "ac tex damaged" means and point me in a > direction to figure out what is happening? I see the message is from > the dnxhd decoder (dnxhddec.c) but am having trouble following the > code. Can you please share your file ? I'll have a look -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org From lou at lrcd.com Sat Jun 25 02:05:04 2011 From: lou at lrcd.com (Lou) Date: Fri, 24 Jun 2011 16:05:04 -0800 Subject: [FFmpeg-user] How to avoid blurred text when using drawtext filter? In-Reply-To: <1308777298543-3618274.post@n4.nabble.com> References: <1308777298543-3618274.post@n4.nabble.com> Message-ID: <20110624160504.174d3048@lrcd.com> On Wed, 22 Jun 2011 14:14:58 -0700 (PDT) pgoldweic wrote: > When I run ffmpeg with the drawtext filter, I get the desired result > (a title on top of a movie) in a small size movie, but I get blurred > text when I type the same command using a larger input movie. What > causes this? How can I change my command to avoid the blurred text? > For specific details, the command I'm using is: > ffmpeg -i mymovie.mp4 -vcodec libx264 -acodec copy -vf > "drawtext=fontfile=/usr/share/fonts/bitstream-vera/VeraSe.ttf:fontsize=30:x=50:y=50:fontcolor=white:text='this > is a title'" mytitledmovie.mp4 > > And the complete output from ffmpeg is: > --------------------------------------------------------------------------------- > ffmpeg version 0.7-rc1, Copyright (c) 2000-2011 the FFmpeg developers ... > > Any suggestions will be appreciated. Thanks. Can you provide an image illustrating this issue? Do other fonts behave in the same way? I doubt the Windows machine you referred to in your following message is also using VeraSe.ttf. Does recent FFmpeg from Git do this too? Did you try another encoder other than libx264? From bbutscheidt at yahoo.de Sat Jun 25 11:09:41 2011 From: bbutscheidt at yahoo.de (Bernd Butscheidt) Date: Sat, 25 Jun 2011 10:09:41 +0100 (BST) Subject: [FFmpeg-user] ac3_fixed or not fixed Message-ID: <1308992981.73836.YahooMailNeo@web27104.mail.ukl.yahoo.com> Hello, for quite a while I see that there are two ac3-encoders: ac3 ac3_fixed Depending on the implementation and version (mplayer/mencoder, mplayer2 or ffmpeg itself) I have more or less trouble (not recognizing multi channel, no multichannel encoding, disturbed sound, wrong channel layout meaning the speakers (center) being only on the left with 5.1 input or only on the right with 5.0 input). But until now I don't get any structure into these experiences. So I may humble ask: Are there any recommendations/ rules from a user point of view for which one of the encoders is to use generally or is it just try and see what works best for you? Kind regards Bernd B. From richard at richsim900.plus.com Sat Jun 25 12:04:13 2011 From: richard at richsim900.plus.com (richard) Date: Sat, 25 Jun 2011 11:04:13 +0100 Subject: [FFmpeg-user] Invalid non monotonically increasing dts In-Reply-To: <1308229796.6411.11.camel@base-desktop> Message-ID: <1308996253.6993.6.camel@base-desktop> On Thu Jun 16 15:09 Richard wrote: > > Found a workaround. Re-encoded the flv with: > > ffmpeg -i input.flv -acodec aac -strict experimental -ab 325k > output.m4a > > This produced playable m4a encoded at 300 kbps. Unfortunately this does not always work. Tried this to unpack a flv file and it hung (stopped encoding) after 48 minutes. From gregbartnick at gmail.com Sat Jun 25 16:48:05 2011 From: gregbartnick at gmail.com (Greg Bartnick) Date: Sat, 25 Jun 2011 09:48:05 -0500 Subject: [FFmpeg-user] DNxHD decode error In-Reply-To: <4E05255D.9050009@gmail.com> References: <4E05255D.9050009@gmail.com> Message-ID: On Fri, Jun 24, 2011 at 7:01 PM, Baptiste Coudurier wrote: > Hi, > > On 6/24/11 9:15 AM, Greg Bartnick wrote: >> >> Hello Group, >> >> I am seeing an error when trying to decode a DNxHD video in a MOV >> container. >> >> [dnxhd @ 0034AF40] ac tex damaged 0, 69 >> >> The last numbers change, but the message is repeated many, many times. >> ?Can someone explain what "ac tex damaged" means and point me in a >> direction to figure out what is happening? ?I see the message is from >> the dnxhd decoder (dnxhddec.c) but am having trouble following the >> code. > > Can you please share your file ? I'll have a look > You can download the file at http://www.kcintrab.com/test_dnxhd_seq.mov. Note, it is 4.6GB. thanks, Greg From catman2005 at mail.ru Sat Jun 25 19:13:02 2011 From: catman2005 at mail.ru (FaB0SS) Date: Sat, 25 Jun 2011 10:13:02 -0700 (PDT) Subject: [FFmpeg-user] Piping trough Avisynth In-Reply-To: <1289160401888-3031123.post@n4.nabble.com> References: <013101cb6c76$235a1cc0$4301a8c0@hpkantoor> <4CBA5742.4060006@dop.com> <00ab01cb6edf$bbfbe100$4301a8c0@hpkantoor> <1289132058145-3030757.post@n4.nabble.com> <1289160401888-3031123.post@n4.nabble.com> Message-ID: <1309021982929-3624812.post@n4.nabble.com> mforbes6186 wrote: > > This has been done though but only for raw yuv which is slightly different > from what I'm trying to do. I can provide the source filter with the > duration (time, frames etc) as well as frame rate, resolution, pixel > format etc > > I can send you the filter that reads from a yuv pipe if you like? > Hy. Can you send this filter to me? P.S. sory for my English -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Piping-trough-Avisynth-tp2997135p3624812.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From noahsw at gmail.com Sat Jun 25 02:37:15 2011 From: noahsw at gmail.com (Noah Spitzer-Williams) Date: Fri, 24 Jun 2011 17:37:15 -0700 Subject: [FFmpeg-user] Windows binary of ffmpeg with support for watermarking Message-ID: Hello, Does anyone have a Windows binary of ffmpeg that has support for watermarking? Thanks in advance! Noah From m.kog at mail.ru Sat Jun 25 14:10:12 2011 From: m.kog at mail.ru (m.kog) Date: Sat, 25 Jun 2011 05:10:12 -0700 (PDT) Subject: [FFmpeg-user] Accurately video trim (fast) Message-ID: <1309003812513-3624498.post@n4.nabble.com> Hi! I'm trying to trim video file accurately. 1. -ss and -t before -i: ffmpeg -ss 00:00:05.000 -t 00:00:05.000 -i INPUT.MP4 -vcodec copy -acodec copy -y OUTPUT.MP4 Result: ffmpeg cut file from 0 to 10 seconds. I think, there is no key frames from 0 to 10 seconds.. I can't find other explanation for this fact. 2. -ss and -t after -i: ffmpeg -i INPUT.MP4 -ss 00:00:05.000 -t 00:00:05.000 -vcodec copy -acodec copy -y OUTPUT.MP4 Result: ffmpeg walk throug first 5 seconds and then encode next 5 seconds. It's fast for 5 seconds.. But if -ss will be set to 00:55:05.000? INPUT.MP4: http://re-co.ru/i/1.mp4 http://re-co.ru/i/1.mp4 So my question is: how to accurately and fast trim video files without encoding. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Accurately-video-trim-fast-tp3624498p3624498.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From gabole-83 at hotmail.fr Sat Jun 25 16:55:35 2011 From: gabole-83 at hotmail.fr (Gabriel troisgros) Date: Sat, 25 Jun 2011 16:55:35 +0200 Subject: [FFmpeg-user] about screeenvideo2 codec Message-ID: Hi all i am recording flv files of screen capture using screenVideo and screenVideo2 codec. i canno?t do anything with the resulting flv (can be played only in flash player) i?m looking for a way to convert these files into other formats, but ffmeg seems it doesn?t like it. and any other conversion software as well. does someone knows about how to convert thses files ? many thanks Gabriel From lou at lrcd.com Sat Jun 25 20:47:07 2011 From: lou at lrcd.com (Lou) Date: Sat, 25 Jun 2011 10:47:07 -0800 Subject: [FFmpeg-user] about screeenvideo2 codec In-Reply-To: References: Message-ID: <20110625104707.441ac220@lrcd.com> On Sat, 25 Jun 2011 16:55:35 +0200 Gabriel troisgros wrote: > Hi all > > i am recording flv files of screen capture using screenVideo and > screenVideo2 codec. i canno?t do anything with the resulting flv (can > be played only in flash player) > > i?m looking for a way to convert these files into other formats, but > ffmeg seems it doesn?t like it. and any other conversion software as > well. does someone knows about how to convert thses files ? > > many thanks > > Gabriel Recent FFmpeg appears to be able to decode and encode Flash Screen Video, and only encode Flash Screen Video Version 2, but I may be wrong. From bahamutzero8825 at gmail.com Sat Jun 25 20:48:11 2011 From: bahamutzero8825 at gmail.com (Andrew Berg) Date: Sat, 25 Jun 2011 13:48:11 -0500 Subject: [FFmpeg-user] Accurately video trim (fast) In-Reply-To: <1309003812513-3624498.post@n4.nabble.com> References: <1309003812513-3624498.post@n4.nabble.com> Message-ID: <4E062D6B.2090607@gmail.com> On 2011.06.25 07:10 AM, m.kog wrote: > So my question is: how to accurately and fast trim video files without > encoding. You can't get frame-accurate cuts without reencoding at least the GOP at the beginning of each cut (unless the cut you make happens to be at an I-frame). If you cut off an I-frame, you lose information required to properly decode the rest of the GOP. From baptiste.coudurier at gmail.com Sun Jun 26 02:16:30 2011 From: baptiste.coudurier at gmail.com (Baptiste Coudurier) Date: Sat, 25 Jun 2011 17:16:30 -0700 Subject: [FFmpeg-user] DNxHD decode error In-Reply-To: References: <4E05255D.9050009@gmail.com> Message-ID: <4E067A5E.9050004@gmail.com> On 6/25/11 7:48 AM, Greg Bartnick wrote: > On Fri, Jun 24, 2011 at 7:01 PM, Baptiste Coudurier > wrote: >> Hi, >> >> On 6/24/11 9:15 AM, Greg Bartnick wrote: >>> >>> Hello Group, >>> >>> I am seeing an error when trying to decode a DNxHD video in a MOV >>> container. >>> >>> [dnxhd @ 0034AF40] ac tex damaged 0, 69 >>> >>> The last numbers change, but the message is repeated many, many times. >>> Can someone explain what "ac tex damaged" means and point me in a >>> direction to figure out what is happening? I see the message is from >>> the dnxhd decoder (dnxhddec.c) but am having trouble following the >>> code. >> >> Can you please share your file ? I'll have a look >> > > You can download the file at > http://www.kcintrab.com/test_dnxhd_seq.mov. Note, it is 4.6GB. Thanks, it seems this files contains different flavor of dnxhd in a compound .mov I'll try to fix it. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org From sweetthdevil at gmail.com Sun Jun 26 04:28:48 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Sun, 26 Jun 2011 03:28:48 +0100 Subject: [FFmpeg-user] libx264 - unknown decoder, Message-ID: <4E069960.9080209@gmail.com> Hi all, I am recording a webcam using ffmpeg (ideally to replace mencoder) on archlinux (the latest package has been updated on 7th of June) and when running the following command I run into the "Unknown decoder 'libx264'" But as you can see from the error ffmpeg has been build with the --enable-libx264 options. Any suggestions? Looking forward for your reply, Regards, $ ffmpeg -f video4linux2 -vcodec libx264 -b 3000k -r 15 -crf 16 -pix_fmt yuv420p -i /dev/video0 out.avi ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 7 2011 19:14:56 with gcc 4.6.0 20110513 (prerelease) configuration: --enable-gpl --enable-libx264 --enable-x11grab libavutil 51. 6. 1 / 51. 6. 1 libavcodec 53. 6. 1 / 53. 6. 1 libavformat 53. 2. 0 / 53. 2. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 14. 0 / 2. 14. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 Unknown decoder 'libx264' From lou at lrcd.com Sun Jun 26 04:45:29 2011 From: lou at lrcd.com (Lou) Date: Sat, 25 Jun 2011 18:45:29 -0800 Subject: [FFmpeg-user] libx264 - unknown decoder, In-Reply-To: <4E069960.9080209@gmail.com> References: <4E069960.9080209@gmail.com> Message-ID: <20110626024529.GA2287@lrcd.com> On Sun, Jun 26, 2011 at 03:28:48AM +0100, Sw at g wrote: > Hi all, > > I am recording a webcam using ffmpeg (ideally to replace mencoder) on > archlinux (the latest package has been updated on 7th of June) and when > running the following command I run into the "Unknown decoder 'libx264'" > > But as you can see from the error ffmpeg has been build with the > --enable-libx264 options. > > Any suggestions? > > Looking forward for your reply, > > Regards, > > $ ffmpeg -f video4linux2 -vcodec libx264 -b 3000k -r 15 -crf 16 -pix_fmt > yuv420p -i /dev/video0 out.avi > ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg > developers > built on Jun 7 2011 19:14:56 with gcc 4.6.0 20110513 (prerelease) > configuration: --enable-gpl --enable-libx264 --enable-x11grab > libavutil 51. 6. 1 / 51. 6. 1 > libavcodec 53. 6. 1 / 53. 6. 1 > libavformat 53. 2. 0 / 53. 2. 0 > libavdevice 53. 1. 1 / 53. 1. 1 > libavfilter 2. 14. 0 / 2. 14. 0 > libswscale 0. 14. 1 / 0. 14. 1 > libpostproc 51. 2. 0 / 51. 2. 0 > Unknown decoder 'libx264' You're applying '-vcodec libx264' as an input option, and your input is being decoded, so FFmpeg is expecting a decoder called libx264 but there is no such thing. If you want to encode with libx264 then use it as an output option (after -i foo). From sweetthdevil at gmail.com Sun Jun 26 05:02:43 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Sun, 26 Jun 2011 04:02:43 +0100 Subject: [FFmpeg-user] libx264 - unknown decoder, In-Reply-To: <20110626024529.GA2287@lrcd.com> References: <4E069960.9080209@gmail.com> <20110626024529.GA2287@lrcd.com> Message-ID: <4E06A153.2020107@gmail.com> On 06/26/2011 03:45 AM, Lou wrote: > On Sun, Jun 26, 2011 at 03:28:48AM +0100, Sw at g wrote: >> Hi all, >> >> I am recording a webcam using ffmpeg (ideally to replace mencoder) on >> archlinux (the latest package has been updated on 7th of June) and when >> running the following command I run into the "Unknown decoder 'libx264'" >> >> But as you can see from the error ffmpeg has been build with the >> --enable-libx264 options. >> >> Any suggestions? >> >> Looking forward for your reply, >> >> Regards, >> >> $ ffmpeg -f video4linux2 -vcodec libx264 -b 3000k -r 15 -crf 16 -pix_fmt >> yuv420p -i /dev/video0 out.avi >> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg >> developers >> built on Jun 7 2011 19:14:56 with gcc 4.6.0 20110513 (prerelease) >> configuration: --enable-gpl --enable-libx264 --enable-x11grab >> libavutil 51. 6. 1 / 51. 6. 1 >> libavcodec 53. 6. 1 / 53. 6. 1 >> libavformat 53. 2. 0 / 53. 2. 0 >> libavdevice 53. 1. 1 / 53. 1. 1 >> libavfilter 2. 14. 0 / 2. 14. 0 >> libswscale 0. 14. 1 / 0. 14. 1 >> libpostproc 51. 2. 0 / 51. 2. 0 >> Unknown decoder 'libx264' > You're applying '-vcodec libx264' as an input option, and your input is > being decoded, so FFmpeg is expecting a decoder called libx264 but there > is no such thing. > > If you want to encode with libx264 then use it as an output option (after > -i foo). > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Many thanks for your reply, I tried like your suggested: ffmpeg -f video4linux2 -b 3000k -r 15 -crf 16 -pix_fmt yuv420p -i -vcodec libx264 /dev/video0 out.avi but that give me an error: [video4linux2 @ 0x9fab8e0] Cannot open video device -vcodec : No such file or directory So I tried: ffmpeg -f video4linux2 -b 3000k -r 15 -crf 16 -pix_fmt yuv420p -i /dev/video0 out.mkv -vcodec libx264 that work without error, but when I check mediainfo -f out.mkv then I can see the "Codec : V_MPEG4/ISO/ASP" so obviously ffmpeg hasn't encode with libx264. What would the command be exactly? Looking forward for your reply, Regards, From lou at lrcd.com Sun Jun 26 05:21:49 2011 From: lou at lrcd.com (Lou) Date: Sat, 25 Jun 2011 19:21:49 -0800 Subject: [FFmpeg-user] libx264 - unknown decoder, In-Reply-To: <4E06A153.2020107@gmail.com> References: <4E069960.9080209@gmail.com> <20110626024529.GA2287@lrcd.com> <4E06A153.2020107@gmail.com> Message-ID: <20110626032149.GA2680@lrcd.com> On Sun, Jun 26, 2011 at 04:02:43AM +0100, Sw at g wrote: > > > On 06/26/2011 03:45 AM, Lou wrote: >> On Sun, Jun 26, 2011 at 03:28:48AM +0100, Sw at g wrote: >>> Hi all, >>> >>> I am recording a webcam using ffmpeg (ideally to replace mencoder) on >>> archlinux (the latest package has been updated on 7th of June) and when >>> running the following command I run into the "Unknown decoder 'libx264'" >>> >>> But as you can see from the error ffmpeg has been build with the >>> --enable-libx264 options. >>> >>> Any suggestions? >>> >>> Looking forward for your reply, >>> >>> Regards, >>> >>> $ ffmpeg -f video4linux2 -vcodec libx264 -b 3000k -r 15 -crf 16 -pix_fmt >>> yuv420p -i /dev/video0 out.avi >>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg >>> developers >>> built on Jun 7 2011 19:14:56 with gcc 4.6.0 20110513 (prerelease) >>> configuration: --enable-gpl --enable-libx264 --enable-x11grab >>> libavutil 51. 6. 1 / 51. 6. 1 >>> libavcodec 53. 6. 1 / 53. 6. 1 >>> libavformat 53. 2. 0 / 53. 2. 0 >>> libavdevice 53. 1. 1 / 53. 1. 1 >>> libavfilter 2. 14. 0 / 2. 14. 0 >>> libswscale 0. 14. 1 / 0. 14. 1 >>> libpostproc 51. 2. 0 / 51. 2. 0 >>> Unknown decoder 'libx264' >> You're applying '-vcodec libx264' as an input option, and your input is >> being decoded, so FFmpeg is expecting a decoder called libx264 but there >> is no such thing. >> >> If you want to encode with libx264 then use it as an output option (after >> -i foo). > > Many thanks for your reply, > > I tried like your suggested: > ffmpeg -f video4linux2 -b 3000k -r 15 -crf 16 -pix_fmt yuv420p -i -vcodec libx264 /dev/video0 out.avi With this command you're telling FFmpeg that your input is named "-vcodec". > but that give me an error: > [video4linux2 @ 0x9fab8e0] Cannot open video device -vcodec : No such file or directory > > So I tried: > ffmpeg -f video4linux2 -b 3000k -r 15 -crf 16 -pix_fmt yuv420p -i /dev/video0 out.mkv -vcodec libx264 > > that work without error, but when I check mediainfo -f out.mkv then I can see the "Codec : V_MPEG4/ISO/ASP" so obviously ffmpeg hasn't encode with libx264. > > What would the command be exactly? I'm not sure what you want, but you can start with something like: ffmpeg -f video4linux2 -r 15 -i /dev/video0 -vcodec libx264 -preset medium \ -crf 26 -threads 0 output.mkv If the quality is too crappy then decrease the crf value until it looks good enough to you. From ffmpeg at neoprimitive.net Sun Jun 26 06:29:44 2011 From: ffmpeg at neoprimitive.net (jl) Date: Sun, 26 Jun 2011 00:29:44 -0400 Subject: [FFmpeg-user] libx264 - unknown decoder, In-Reply-To: <4E06A153.2020107@gmail.com> References: <4E069960.9080209@gmail.com> <20110626024529.GA2287@lrcd.com> <4E06A153.2020107@gmail.com> Message-ID: <20110626042943.GR13591@neoprimitive.net> On 26/06/11 04:02 +0100, Sw at g wrote: > > > On 06/26/2011 03:45 AM, Lou wrote: >> On Sun, Jun 26, 2011 at 03:28:48AM +0100, Sw at g wrote: >>> Hi all, >>> >>> I am recording a webcam using ffmpeg (ideally to replace mencoder) on >>> archlinux (the latest package has been updated on 7th of June) and when >>> running the following command I run into the "Unknown decoder 'libx264'" >>> >>> But as you can see from the error ffmpeg has been build with the >>> --enable-libx264 options. >>> >>> Any suggestions? >>> >>> Looking forward for your reply, >>> >>> Regards, >>> >>> $ ffmpeg -f video4linux2 -vcodec libx264 -b 3000k -r 15 -crf 16 -pix_fmt >>> yuv420p -i /dev/video0 out.avi >>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg >>> developers >>> built on Jun 7 2011 19:14:56 with gcc 4.6.0 20110513 (prerelease) >>> configuration: --enable-gpl --enable-libx264 --enable-x11grab >>> libavutil 51. 6. 1 / 51. 6. 1 >>> libavcodec 53. 6. 1 / 53. 6. 1 >>> libavformat 53. 2. 0 / 53. 2. 0 >>> libavdevice 53. 1. 1 / 53. 1. 1 >>> libavfilter 2. 14. 0 / 2. 14. 0 >>> libswscale 0. 14. 1 / 0. 14. 1 >>> libpostproc 51. 2. 0 / 51. 2. 0 >>> Unknown decoder 'libx264' >> You're applying '-vcodec libx264' as an input option, and your input is >> being decoded, so FFmpeg is expecting a decoder called libx264 but there >> is no such thing. >> >> If you want to encode with libx264 then use it as an output option (after >> -i foo). >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user at ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > Many thanks for your reply, > > I tried like your suggested: > ffmpeg -f video4linux2 -b 3000k -r 15 -crf 16 -pix_fmt yuv420p -i -vcodec libx264 /dev/video0 out.avi > > but that give me an error: > [video4linux2 @ 0x9fab8e0] Cannot open video device -vcodec : No such file or directory > > So I tried: > ffmpeg -f video4linux2 -b 3000k -r 15 -crf 16 -pix_fmt yuv420p -i /dev/video0 out.mkv -vcodec libx264 > > that work without error, but when I check mediainfo -f out.mkv then I can see the "Codec : V_MPEG4/ISO/ASP" so obviously ffmpeg hasn't encode with libx264. > > What would the command be exactly? > > Looking forward for your reply, The position of command line parameters is significant to ffmpeg. The synopsis from the manual page reads: ffmpeg [[infile options][-i infile]]... {[outfile options] outfile} Learn more by typing 'man ffmpeg' at a shell prompt or looking up the manual page online. Not sure exactly what you're trying to do, but... ffmpeg -f video4linux2 -b 3000k -r 15 -crf 16 -pix_fmt yuv420p -i /dev/video0 out.mkv -vcodec libx264 ...should probably read... ffmpeg -f video4linux2 -i /dev/video0 -vcodec libx264 -b 3000k -r 15 -crf 16 -pix_fmt yuv420p out.mkv From sweetthdevil at gmail.com Sun Jun 26 12:21:57 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Sun, 26 Jun 2011 11:21:57 +0100 Subject: [FFmpeg-user] libx264 - unknown decoder, In-Reply-To: <20110626032149.GA2680@lrcd.com> References: <4E069960.9080209@gmail.com> <20110626024529.GA2287@lrcd.com> <4E06A153.2020107@gmail.com> <20110626032149.GA2680@lrcd.com> Message-ID: <4E070845.5000108@gmail.com> On 06/26/2011 04:21 AM, Lou wrote: > On Sun, Jun 26, 2011 at 04:02:43AM +0100, Sw at g wrote: >> >> On 06/26/2011 03:45 AM, Lou wrote: >>> On Sun, Jun 26, 2011 at 03:28:48AM +0100, Sw at g wrote: >>>> Hi all, >>>> >>>> I am recording a webcam using ffmpeg (ideally to replace mencoder) on >>>> archlinux (the latest package has been updated on 7th of June) and when >>>> running the following command I run into the "Unknown decoder 'libx264'" >>>> >>>> But as you can see from the error ffmpeg has been build with the >>>> --enable-libx264 options. >>>> >>>> Any suggestions? >>>> >>>> Looking forward for your reply, >>>> >>>> Regards, >>>> >>>> $ ffmpeg -f video4linux2 -vcodec libx264 -b 3000k -r 15 -crf 16 -pix_fmt >>>> yuv420p -i /dev/video0 out.avi >>>> ffmpeg version git-N-30610-g1929807, Copyright (c) 2000-2011 the FFmpeg >>>> developers >>>> built on Jun 7 2011 19:14:56 with gcc 4.6.0 20110513 (prerelease) >>>> configuration: --enable-gpl --enable-libx264 --enable-x11grab >>>> libavutil 51. 6. 1 / 51. 6. 1 >>>> libavcodec 53. 6. 1 / 53. 6. 1 >>>> libavformat 53. 2. 0 / 53. 2. 0 >>>> libavdevice 53. 1. 1 / 53. 1. 1 >>>> libavfilter 2. 14. 0 / 2. 14. 0 >>>> libswscale 0. 14. 1 / 0. 14. 1 >>>> libpostproc 51. 2. 0 / 51. 2. 0 >>>> Unknown decoder 'libx264' >>> You're applying '-vcodec libx264' as an input option, and your input is >>> being decoded, so FFmpeg is expecting a decoder called libx264 but there >>> is no such thing. >>> >>> If you want to encode with libx264 then use it as an output option (after >>> -i foo). >> Many thanks for your reply, >> >> I tried like your suggested: >> ffmpeg -f video4linux2 -b 3000k -r 15 -crf 16 -pix_fmt yuv420p -i -vcodec libx264 /dev/video0 out.avi > With this command you're telling FFmpeg that your input is named "-vcodec". > >> but that give me an error: >> [video4linux2 @ 0x9fab8e0] Cannot open video device -vcodec : No such file or directory >> >> So I tried: >> ffmpeg -f video4linux2 -b 3000k -r 15 -crf 16 -pix_fmt yuv420p -i /dev/video0 out.mkv -vcodec libx264 >> >> that work without error, but when I check mediainfo -f out.mkv then I can see the "Codec : V_MPEG4/ISO/ASP" so obviously ffmpeg hasn't encode with libx264. >> >> What would the command be exactly? > I'm not sure what you want, but you can start with something like: > > ffmpeg -f video4linux2 -r 15 -i /dev/video0 -vcodec libx264 -preset medium \ > -crf 26 -threads 0 output.mkv > > If the quality is too crappy then decrease the crf value until it looks > good enough to you. > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user at ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user Many thanks that work like a charm, regards, From baptiste.coudurier at gmail.com Sun Jun 26 23:11:22 2011 From: baptiste.coudurier at gmail.com (Baptiste Coudurier) Date: Sun, 26 Jun 2011 14:11:22 -0700 Subject: [FFmpeg-user] DNxHD decode error In-Reply-To: <4E067A5E.9050004@gmail.com> References: <4E05255D.9050009@gmail.com> <4E067A5E.9050004@gmail.com> Message-ID: <4E07A07A.9040005@gmail.com> On 6/25/11 5:16 PM, Baptiste Coudurier wrote: > On 6/25/11 7:48 AM, Greg Bartnick wrote: >> On Fri, Jun 24, 2011 at 7:01 PM, Baptiste Coudurier >> wrote: >>> Hi, >>> >>> On 6/24/11 9:15 AM, Greg Bartnick wrote: >>>> >>>> Hello Group, >>>> >>>> I am seeing an error when trying to decode a DNxHD video in a MOV >>>> container. >>>> >>>> [dnxhd @ 0034AF40] ac tex damaged 0, 69 >>>> >>>> The last numbers change, but the message is repeated many, many times. >>>> Can someone explain what "ac tex damaged" means and point me in a >>>> direction to figure out what is happening? I see the message is from >>>> the dnxhd decoder (dnxhddec.c) but am having trouble following the >>>> code. >>> >>> Can you please share your file ? I'll have a look >>> >> >> You can download the file at >> http://www.kcintrab.com/test_dnxhd_seq.mov. Note, it is 4.6GB. > > Thanks, it seems this files contains different flavor of dnxhd in a > compound .mov > I'll try to fix it. > Should be fixed in git. -- Baptiste COUDURIER Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA FFmpeg maintainer http://www.ffmpeg.org From m.kog at mail.ru Mon Jun 27 10:50:03 2011 From: m.kog at mail.ru (m.kog) Date: Mon, 27 Jun 2011 01:50:03 -0700 (PDT) Subject: [FFmpeg-user] Accurately video trim (fast) In-Reply-To: <4E062D6B.2090607@gmail.com> References: <1309003812513-3624498.post@n4.nabble.com> <4E062D6B.2090607@gmail.com> Message-ID: <1309164603337-3627241.post@n4.nabble.com> You know... It's very strange.. but i'm trying this: 1. cut from 0 to 5 seconds 2. check new file real duration (ok.. not 5 - just 5.4 seconds.. or 8.2 seconds - it's ok) 3. then i want to cut from 5.4 (or 8.2) next 5 seconds But ffmpeg cut smth really strange.. from 0 to 10.4 or 13.4 may be.. so.. i've reached a deadlock.. :( -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Accurately-video-trim-fast-tp3624498p3627241.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From ranjiniraguu at gmail.com Mon Jun 27 11:47:06 2011 From: ranjiniraguu at gmail.com (ranjini raguu) Date: Mon, 27 Jun 2011 15:17:06 +0530 Subject: [FFmpeg-user] Dvd Ripping Message-ID: Hello, im trying to rip the dvd using ffmpeg.... can anyone tell me what is the input (command line) for ripping the dvd using ffmpeg.... ??? FYI - im working in windows machine.......thanks for any help... From pgoldweic at northwestern.edu Mon Jun 27 17:16:22 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Mon, 27 Jun 2011 08:16:22 -0700 (PDT) Subject: [FFmpeg-user] unable to crop and then resize movie In-Reply-To: References: <1308950974910-3623660.post@n4.nabble.com> Message-ID: <1309187782065-3627970.post@n4.nabble.com> Thanks!. Your suggestion was 'almost' right :-). I had to use a filter of 'scale=480:360' though, instead of the suggested 'scale=480x360'. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/unable-to-crop-and-then-resize-movie-tp3623660p3627970.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From pgoldweic at northwestern.edu Mon Jun 27 17:18:33 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Mon, 27 Jun 2011 08:18:33 -0700 (PDT) Subject: [FFmpeg-user] unable to crop and then resize movie In-Reply-To: <20110624214850.GH21173@epicure.lazyet.homelinux.net> References: <1308950974910-3623660.post@n4.nabble.com> <20110624214850.GH21173@epicure.lazyet.homelinux.net> Message-ID: <1309187913200-3627974.post@n4.nabble.com> Thanks! Following your suggestion, I got it to work. My complete command ended up being: ffmpeg -i mymovie.mp4 -vf "crop=in_w-2*240:in_h:240:0,scale=480:360" -vcodec libx264 -acodec copy mymovie-cropped.mp4 Thanks again. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/unable-to-crop-and-then-resize-movie-tp3623660p3627974.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From h.reindl at thelounge.net Mon Jun 27 17:22:09 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Mon, 27 Jun 2011 17:22:09 +0200 Subject: [FFmpeg-user] *** glibc detected *** /usr/bin/ffmpeg: corrupted double-linked list: 0x00000000014c2fa0 *** Message-ID: <4E08A021.4090909@thelounge.net> Here some additional infos to the following error * it affects also Fedora 14 the same way as Fedora 15 * only -vcodec 'libxvid' and ONLY 2-pass-encoding * it does not matter which input-file is used * the call happens through a php-wrapper * after the error the terminal hangs * after STRG+C you get the cursor back but ffmpeg processes stuck in bg [root at testserver:/buildserver/autotest/parts/ffmpeg]$ ./fwx_ffmpeg_testsuite.php OK: avi => xvid (17 sec / 6.26 MB / dur: 00:01:34 / flvtool: 0 / faststart: 0 / 2p: 0) *** glibc detected *** /usr/bin/ffmpeg: corrupted double-linked list: 0x00000000020a3700 *** ffmpeg version N-30955-g3fedb3e, Copyright (c) 2000-2011 the FFmpeg developers built on Jun 26 2011 15:45:13 with gcc 4.6.0 20110603 (Red Hat 4.6.0-10) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --extra-cflags='-O6 -march=core2 -mtune=core2 -mmmx -msse2 -msse3 -msse4.1 -fopenmp -mfpmath=sse -fno-delete-null-pointer-checks -fstack-protector -pipe -D_FORTIFY_SOURCE=2' --extra-version=thelounge.net --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libvpx --enable-librtmp --enable-avfilter --enable-postproc --enable-swscale --enable-bzlib --enable-zlib --enable-libfreetype --enable-pthreads --enable-fastdiv --enable-pic --enable-libopencv --enable-shared --disable-vdpau --disable-vaapi --disable-hwaccels --disable-static --disable-debug --shlibdir=/usr/lib64 --cpu=core2 --enable-runtime-cpudetect /usr/bin/ffmpeg -i '/Volumes/dune/buildserver/autotest/parts/ffmpeg/demo.mp4' -y -vb '448k' -bt '64k' -maxrate '544k' -r '25' -vf 'scale=480:266,setdar=16:9,pad=480:270:0:2:000000' -pass '1' -passlogfile '0871e867be8548e41d1eccbc62e3f7f9-xvid' -f 'mp4' -vcodec 'libxvid' -threads '2' -timestamp 'now' -an /dev/null >> '/Volumes/dune/buildserver/autotest/parts/ffmpeg/logs/mp4_xvid.log' 2>> '/Volumes/dune/buildserver/autotest/parts/ffmpeg/logs/mp4_xvid.log' /usr/bin/ffmpeg -i '/Volumes/dune/buildserver/autotest/parts/ffmpeg/demo1.avi' -y -vb '448k' -bt '64k' -maxrate '544k' -r '25' -vf 'scale=480:266,setdar=16:9,pad=480:270:0:2:000000' -pass '1' -passlogfile '0871e867be8548e41d1eccbc62e3f7f9-xvid' -f 'mp4' -vcodec 'libxvid' -threads '2' -timestamp 'now' -an /dev/null >> '/Volumes/dune/buildserver/autotest/parts/ffmpeg/logs/avi_xvid.log' 2>> '/Volumes/dune/buildserver/autotest/parts/ffmpeg/logs/avi_xvid.log' -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From gregbartnick at gmail.com Mon Jun 27 18:06:09 2011 From: gregbartnick at gmail.com (Greg Bartnick) Date: Mon, 27 Jun 2011 11:06:09 -0500 Subject: [FFmpeg-user] DNxHD decode error In-Reply-To: <4E07A07A.9040005@gmail.com> References: <4E05255D.9050009@gmail.com> <4E067A5E.9050004@gmail.com> <4E07A07A.9040005@gmail.com> Message-ID: On Sun, Jun 26, 2011 at 4:11 PM, Baptiste Coudurier wrote: > On 6/25/11 5:16 PM, Baptiste Coudurier wrote: >> >> On 6/25/11 7:48 AM, Greg Bartnick wrote: >>> >>> On Fri, Jun 24, 2011 at 7:01 PM, Baptiste Coudurier >>> wrote: >>>> >>>> Hi, >>>> >>>> On 6/24/11 9:15 AM, Greg Bartnick wrote: >>>>> >>>>> Hello Group, >>>>> >>>>> I am seeing an error when trying to decode a DNxHD video in a MOV >>>>> container. >>>>> >>>>> [dnxhd @ 0034AF40] ac tex damaged 0, 69 >>>>> >>>>> The last numbers change, but the message is repeated many, many times. >>>>> Can someone explain what "ac tex damaged" means and point me in a >>>>> direction to figure out what is happening? I see the message is from >>>>> the dnxhd decoder (dnxhddec.c) but am having trouble following the >>>>> code. >>>> >>>> Can you please share your file ? I'll have a look >>>> >>> >>> You can download the file at >>> http://www.kcintrab.com/test_dnxhd_seq.mov. Note, it is 4.6GB. >> >> Thanks, it seems this files contains different flavor of dnxhd in a >> compound .mov >> I'll try to fix it. >> > > Should be fixed in git. > Baptiste, Thank you for taking the time to look into this issue. I'll check out the fix and let you know how it goes. thanks much, Greg From pgoldweic at northwestern.edu Mon Jun 27 19:04:33 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Mon, 27 Jun 2011 10:04:33 -0700 (PDT) Subject: [FFmpeg-user] How to avoid blurred text when using drawtext filter? In-Reply-To: <20110624160504.174d3048@lrcd.com> References: <1308777298543-3618274.post@n4.nabble.com> <20110624160504.174d3048@lrcd.com> Message-ID: <1309194273099-3628251.post@n4.nabble.com> Hi, thanks for responding. You're right that I did not use the same font on the windows box, I tried a couple of different ones (including arial.ttf). On Linux, I also tried a few other fonts -other than the Verase.ttf- (using the same encoder) I found on the box, with similar results. I then tried using the 'wmv2' vcodec instead, and got a somewhat better result, although the text appears now (unintentionally) shaded, although not blurred. I have not tried recompiling ffmpeg, since this is a quite recent version I compiled a couple of weeks ago. Should I be recompiling? Here's one image showing the problem on Linux, with libx264, and font 'LucidaSansRegular.ttf': http://ffmpeg-users.933282.n4.nabble.com/file/n3628251/problem-image-libx264-lucida.jpg And here's another image produced with the 'wmv2' encoder instead. Note that the color got darker, and I wonder if that's the reason why it is not displaying the 'shade' I described above. http://ffmpeg-users.933282.n4.nabble.com/file/n3628251/problem-image-wmv2-lucida.jpg Any help with this will be greatly appreciated. Thanks in advance. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-avoid-blurred-text-when-using-drawtext-filter-tp3618274p3628251.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From mike.scheutzow at alcatel-lucent.com Mon Jun 27 20:13:53 2011 From: mike.scheutzow at alcatel-lucent.com (Mike Scheutzow) Date: Mon, 27 Jun 2011 14:13:53 -0400 Subject: [FFmpeg-user] How to avoid blurred text when using drawtext filter? In-Reply-To: <1308777298543-3618274.post@n4.nabble.com> References: <1308777298543-3618274.post@n4.nabble.com> Message-ID: <4E08C861.9030002@alcatel-lucent.com> pgoldweic wrote: > When I run ffmpeg with the drawtext filter, I get the desired result (a title > on top of a movie) in a small size movie, but I get blurred text when I type > the same command using a larger input movie. What causes this? How can I > change my command to avoid the blurred text? > For specific details, the command I'm using is: > ffmpeg -i mymovie.mp4 -vcodec libx264 -acodec copy -vf > "drawtext=fontfile=/usr/share/fonts/bitstream-vera/VeraSe.ttf:fontsize=30:x=50:y=50:fontcolor=white:text='this > is a title'" mytitledmovie.mp4 > frame= 167 fps= 9 q=31.0 Lsize= 31kB time=5.51 bitrate= 45.7kbits/s The encoder used 45 kbits/sec, which is way too low for 1920x1080 to look good. The problem is that you have not specified a quality level or a bit rate for the encoder to use. To fix it, add the following just after '-vcodec libx264' -crf 23 Mike Scheutzow From pgoldweic at northwestern.edu Mon Jun 27 20:57:01 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Mon, 27 Jun 2011 11:57:01 -0700 (PDT) Subject: [FFmpeg-user] How to avoid blurred text when using drawtext filter? In-Reply-To: <4E08C861.9030002@alcatel-lucent.com> References: <1308777298543-3618274.post@n4.nabble.com> <4E08C861.9030002@alcatel-lucent.com> Message-ID: <1309201021757-3628544.post@n4.nabble.com> Thanks so much Mike. That seems to have done the trick, at least in this particular case. How should I figure out the appropriate bit rate that works with a particular movie size? I will also need to be able to resize the movie to 1280x720 (and 480x360), so it would be good to know what's the criteria I should use. In addition, will the particular font chosen affect the choice of bit rate? Thanks in advance for any further tips. -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-avoid-blurred-text-when-using-drawtext-filter-tp3618274p3628544.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From gregbartnick at gmail.com Mon Jun 27 22:34:38 2011 From: gregbartnick at gmail.com (Greg Bartnick) Date: Mon, 27 Jun 2011 15:34:38 -0500 Subject: [FFmpeg-user] DNxHD decode error In-Reply-To: References: <4E05255D.9050009@gmail.com> <4E067A5E.9050004@gmail.com> <4E07A07A.9040005@gmail.com> Message-ID: On Mon, Jun 27, 2011 at 11:06 AM, Greg Bartnick wrote: > On Sun, Jun 26, 2011 at 4:11 PM, Baptiste Coudurier > wrote: >> On 6/25/11 5:16 PM, Baptiste Coudurier wrote: >>> >>> On 6/25/11 7:48 AM, Greg Bartnick wrote: >>>> >>>> On Fri, Jun 24, 2011 at 7:01 PM, Baptiste Coudurier >>>> wrote: >>>>> >>>>> Hi, >>>>> >>>>> On 6/24/11 9:15 AM, Greg Bartnick wrote: >>>>>> >>>>>> Hello Group, >>>>>> >>>>>> I am seeing an error when trying to decode a DNxHD video in a MOV >>>>>> container. >>>>>> >>>>>> [dnxhd @ 0034AF40] ac tex damaged 0, 69 >>>>>> >>>>>> The last numbers change, but the message is repeated many, many times. >>>>>> Can someone explain what "ac tex damaged" means and point me in a >>>>>> direction to figure out what is happening? I see the message is from >>>>>> the dnxhd decoder (dnxhddec.c) but am having trouble following the >>>>>> code. >>>>> >>>>> Can you please share your file ? I'll have a look >>>>> >>>> >>>> You can download the file at >>>> http://www.kcintrab.com/test_dnxhd_seq.mov. Note, it is 4.6GB. >>> >>> Thanks, it seems this files contains different flavor of dnxhd in a >>> compound .mov >>> I'll try to fix it. >>> >> >> Should be fixed in git. >> > > Baptiste, > Thank you for taking the time to look into this issue. ?I'll check out > the fix and let you know how it goes. > Hi Baptiste, It works well for me. Once again, thanks for your work on this. -Greg From stas.oskin at gmail.com Tue Jun 28 01:50:35 2011 From: stas.oskin at gmail.com (Stas Oskin) Date: Tue, 28 Jun 2011 02:50:35 +0300 Subject: [FFmpeg-user] FFMPEG/x.264 compilation is broken? Message-ID: Hi. I'm unable to compile the recent version of FFMPEG, getting following errors for some reason? [exec] gcc -o x264 x264.o input/input.o input/timecode.o input/raw.o input/y4m.o output/raw.o output/matroska.o output/matroska_ebml.o output/flv.o output/flv_bytestream.o filters/filters.o filters/video/video.o filters/video/source.o filters/video/internal.o filters/video/resize.o filters/video/cache.o filters/video/fix_vfr_pts.o filters/video/select_every.o filters/video/crop.o filters/video/depth.o input/thread.o input/lavf.o libx264.a -L. -lavformat -lpostproc -lavcodec -lavcore -lswscale -lavutil -lm -lz -lbz2 -lpthread -lswscale -lavutil -L'/home/dev/xuggle/xuggle-xuggler/build/native/x86_64-unknown-linux-gnu/captive/usr/lib' -lm -lpthread -Wl,-Bsymbolic [exec] /usr/lib/libavcodec.a(libfaac.o): In function `Faac_encode_close': [exec] /home/dev/xuggle/xuggle-xuggler/build/native/x86_64-unknown-linux-gnu/captive/ffmpeg/csrc/libavcodec/libfaac.c:155: undefined reference to `faacEncClose' Thanks. From ihf at google.com Tue Jun 28 06:18:54 2011 From: ihf at google.com (Ilja Friedel) Date: Mon, 27 Jun 2011 21:18:54 -0700 Subject: [FFmpeg-user] ffmpeg crashes playing chained streams In-Reply-To: References: Message-ID: This is a discussion of the crashes I see with the new ffmpeg library and change http://codereview.chromium.org/6993042 to glue things together for Chromium. It looks like there might be a double free in oggdec.c. Whenever I play one of the chained streams files http://v2v.cc/~j/theora_testsuite/chained_streams.ogg http://v2v.cc/~j/theora_testsuite/multi2.ogg and especially after hitting reload a few times I see crashes (but not with any other sample movie). To make a long story short this is caused by av_free(ogg->streams[n].private); that appeared in http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=47dec30edb8565b7e0e8716dc6d0dc36d5b7bc40 and made worse by the merge of @@ -474,17 +477,30 @@ static int ogg_get_length(AVFormatContext *s) in http://git.videolan.org/?p=ffmpeg.git;a=blobdiff;f=libavformat/oggdec.c;h=e33535860155917c630933589a2816ca8e2ce4ed;hp=f1ad630c5e43e9666dd3d004ea72de98785da41f;hb=99eb31e263a24bc6c5a7a3f455a2bcb04a60e70e;hpb=b751f611065f1fe1d7216971c4b100c928a3b0d5 To discuss what is happening I am referring to the line numbering in http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavformat/oggdec.c;h=e33535860155917c630933589a2816ca8e2ce4ed;hb=e33535860155917c630933589a2816ca8e2ce4ed 447 static int ogg_get_length(AVFormatContext *s) 448 { 449 struct ogg *ogg = s->priv_data; [...] 465 ogg_save (s); <-- saves shallow copy of s 466 avio_seek (s->pb, end, SEEK_SET); 467 468 while (!ogg_read_page (s, &i)){ <-- calls av_free(ogg->streams[n].private); and deletes pointer from shallow copy [...] 478 ogg_restore (s, 0); <-- restores shallow copy (but memory that private points to has been already reused by Chrome 479 480 ogg_save (s); 481 avio_seek (s->pb, 0, SEEK_SET); 482 while (!ogg_read_page (s, &i)){ <-- in theora_gptopts it reads private from shallow copy, e.g. memory that has been overwritten by Chrome [...] 490 ogg_restore (s, 0); 491 492 return 0; 493 } Now if I replace in ogg_read_page //av_freep(&ogg->streams[n].buf); //av_freep(&ogg->streams[n].private); printf(" ogg_read_page skipped av_freep from ogg=0x%08x &private=0x%8x private=0x%08x\n", ogg, &ogg->streams[n].private, ogg->streams[n].private); ogg->streams[n].buf = NULL; ogg->streams[n].private = NULL; I get the first trace below which has no memory leak and no double free. To me it looks like http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=47dec30edb8565b7e0e8716dc6d0dc36d5b7bc40 assumed that the copy was a deep one. Or maybe I am missing something completely. In any case, my proposed fix would be the previous five lines of code, e.g. no free but zeroing out the pointers of the shallow copy just in case. Any thoughts? Thanks, Ilja. 1) Trace with new code: ++ theora_header &os->private=0x0ec1d8e8 os->private=0x0ec521c0 -> ogg_get_length(s=0x0eb12500) private=0x0ec521c0 ogg_save(s=0x0eb12500) private=0x0ec521c0 ogg_read_page skipped av_freep from ogg=0x0ec52080 &private=0x ec1d8e8 private=0x0ec521c0 ogg_read_page skipped av_freep from ogg=0x0ec52080 &private=0x ec1d8e8 private=0x00000000 [...] ogg_read_page skipped av_freep from ogg=0x0ec52080 &private=0x ec1d8e8 private=0x00000000 -> ogg_restore(s=0x0eb12500, discard=0) private=0x00000000 on entering ogg_restore private is NULL <- ogg_restore(s=0x0eb12500, discard=0) private=0x0ec521c0 on leaving pointer has been copied back -> ogg_save(s=0x0eb12500) private=0x0ec521c0 -> ogg_restore(s=0x0eb12500, discard=0) private=0x0ec521c0 <- ogg_get_length(0x0eb12500) private=0x0ec521c0 [hitting reload] ** ogg_read_close av_free from ogg=0x0ec52080 &private=0x ec1d8e8 private=0x0ec521c0 2) And finally a trace using valgrind showing the original issue without fix. With fix there is no output in this part of the code. ==436== Thread 4: ==436== Invalid read of size 1 ==436== at 0x1E6A1C15: theora_gptopts (oggparsetheora.c:132) ==436== by 0x1E69FB39: ogg_gptopts (oggdec.h:137) ==436== by 0x1E6A10E0: ogg_get_length (oggdec.c:498) ==436== by 0x1E6A1199: ogg_read_header (oggdec.c:523) ==436== Address 0x2baefa80 is 0 bytes inside a block of size 12 free'd ==436== at 0x7DE8ABE: free (vg_replace_malloc.c:913) ==436== by 0x1E6B6A9A: av_free (mem.c:152) ==436== by 0x1E6B6ABD: av_freep (mem.c:159) ==436== by 0x1E6A0251: ogg_read_page (oggdec.c:253) ==436== by 0x1E6A0F54: ogg_get_length (oggdec.c:480) ==436== by 0x1E6A1199: ogg_read_header (oggdec.c:523) ==436== ==436== ==436== ---- Attach to debugger ? --- [Return/N/n/Y/y/C/c] ---- ==436== Invalid read of size 4 ==436== at 0x1E6A1C30: theora_gptopts (oggparsetheora.c:133) ==436== by 0x1E69FB39: ogg_gptopts (oggdec.h:137) ==436== by 0x1E6A10E0: ogg_get_length (oggdec.c:498) ==436== by 0x1E6A1199: ogg_read_header (oggdec.c:523) ==436== Address 0x2baefa84 is 4 bytes inside a block of size 12 free'd ==436== at 0x7DE8ABE: free (vg_replace_malloc.c:913) ==436== by 0x1E6B6A9A: av_free (mem.c:152) ==436== by 0x1E6B6ABD: av_freep (mem.c:159) ==436== by 0x1E6A0251: ogg_read_page (oggdec.c:253) ==436== by 0x1E6A0F54: ogg_get_length (oggdec.c:480) ==436== by 0x1E6A1199: ogg_read_header (oggdec.c:523) ==436== ==436== Invalid read of size 4 ==436== at 0x1E6A1C4E: theora_gptopts (oggparsetheora.c:135) ==436== by 0x1E69FB39: ogg_gptopts (oggdec.h:137) ==436== by 0x1E6A10E0: ogg_get_length (oggdec.c:498) ==436== by 0x1E6A1199: ogg_read_header (oggdec.c:523) ==436== Address 0x2baefa88 is 8 bytes inside a block of size 12 free'd ==436== at 0x7DE8ABE: free (vg_replace_malloc.c:913) ==436== by 0x1E6B6A9A: av_free (mem.c:152) ==436== by 0x1E6B6ABD: av_freep (mem.c:159) ==436== by 0x1E6A0251: ogg_read_page (oggdec.c:253) ==436== by 0x1E6A0F54: ogg_get_length (oggdec.c:480) ==436== by 0x1E6A1199: ogg_read_header (oggdec.c:523) ==436== ==436== Invalid read of size 1 ==436== at 0x1E6A1C15: theora_gptopts (oggparsetheora.c:132) ==436== by 0x1E69FB39: ogg_gptopts (oggdec.h:137) ==436== by 0x1E69FCD3: ogg_calc_pts (oggdec.c:552) ==436== by 0x1E6A0DBF: ogg_read_packet (oggdec.c:578) ==436== Address 0x2baefa80 is 0 bytes inside a block of size 12 free'd ==436== at 0x7DE8ABE: free (vg_replace_malloc.c:913) ==436== by 0x1E6B6A9A: av_free (mem.c:152) ==436== by 0x1E6B6ABD: av_freep (mem.c:159) ==436== by 0x1E6A0251: ogg_read_page (oggdec.c:253) ==436== by 0x1E6A0F54: ogg_get_length (oggdec.c:480) ==436== by 0x1E6A1199: ogg_read_header (oggdec.c:523) ==436== ==436== Invalid read of size 4 ==436== at 0x1E6A1C30: theora_gptopts (oggparsetheora.c:133) ==436== by 0x1E69FB39: ogg_gptopts (oggdec.h:137) ==436== by 0x1E69FCD3: ogg_calc_pts (oggdec.c:552) ==436== by 0x1E6A0DBF: ogg_read_packet (oggdec.c:578) ==436== Address 0x2baefa84 is 4 bytes inside a block of size 12 free'd ==436== at 0x7DE8ABE: free (vg_replace_malloc.c:913) ==436== by 0x1E6B6A9A: av_free (mem.c:152) ==436== by 0x1E6B6ABD: av_freep (mem.c:159) ==436== by 0x1E6A0251: ogg_read_page (oggdec.c:253) ==436== by 0x1E6A0F54: ogg_get_length (oggdec.c:480) ==436== by 0x1E6A1199: ogg_read_header (oggdec.c:523) ==436== ==436== Invalid read of size 4 ==436== at 0x1E6A1C4E: theora_gptopts (oggparsetheora.c:135) ==436== by 0x1E69FB39: ogg_gptopts (oggdec.h:137) ==436== by 0x1E69FCD3: ogg_calc_pts (oggdec.c:552) ==436== by 0x1E6A0DBF: ogg_read_packet (oggdec.c:578) ==436== Address 0x2baefa88 is 8 bytes inside a block of size 12 free'd ==436== at 0x7DE8ABE: free (vg_replace_malloc.c:913) ==436== by 0x1E6B6A9A: av_free (mem.c:152) ==436== by 0x1E6B6ABD: av_freep (mem.c:159) ==436== by 0x1E6A0251: ogg_read_page (oggdec.c:253) ==436== by 0x1E6A0F54: ogg_get_length (oggdec.c:480) ==436== by 0x1E6A1199: ogg_read_header (oggdec.c:523) [436:557:72143085483:ERROR:ffmpeg_demuxer.cc(547)] IHF: max_duration=0 [436:436:72229627775:WARNING:resource_dispatcher.cc(461)] unknown request [436:436:72229646826:WARNING:resource_dispatcher.cc(287)] Received message for a nonexistent or finished request [436:436:72229648743:WARNING:resource_dispatcher.cc(287)] Received message for a nonexistent or finished request [436:436:72229696045:WARNING:resource_dispatcher.cc(287)] Received message for a nonexistent or finished request [436:436:72229870268:WARNING:resource_dispatcher.cc(287)] Received message for a nonexistent or finished request [436:436:72229871559:WARNING:resource_dispatcher.cc(287)] Received message for a nonexistent or finished request ==436== Invalid free() / delete / delete[] ==436== at 0x7DE8ABE: free (vg_replace_malloc.c:913) ==436== by 0x1E6B6A9A: av_free (mem.c:152) ==436== by 0x1E69FD56: ogg_read_close (oggdec.c:606) ==436== by 0x1E6ABBCC: av_close_input_stream (utils.c:2590) ==436== by 0xB2ADCA0: media::FFmpegDemuxer::~FFmpegDemuxer() (ffmpeg_demuxer.cc:301) ==436== by 0xAD5B19C: base::RefCountedThreadSafe >::DeleteInternal(media::Filter const*) (ref_counted.h:149) ==436== by 0xAD59244: base::DefaultRefCountedThreadSafeTraits::Destruct(media::Filter const*) (ref_counted.h:114) ==436== by 0xAD56D74: base::RefCountedThreadSafe >::Release() const (ref_counted.h:143) ==436== by 0xAF69AEA: scoped_refptr::~scoped_refptr() (ref_counted.h:241) ==436== by 0xB2AA7C3: void std::_Destroy >(scoped_refptr*) (stl_construct.h:83) ==436== by 0xB2AA697: void std::_Destroy_aux::__destroy*>(scoped_refptr*, scoped_refptr*) (stl_construct.h:93) ==436== by 0xB2AA29C: void std::_Destroy*>(scoped_refptr*, scoped_refptr*) (stl_construct.h:116) ==436== by 0xB2A9B3B: void std::_Destroy*, scoped_refptr >(scoped_refptr*, scoped_refptr*, std::allocator >&) (stl_construct.h:142) ==436== by 0xB2A9BA3: std::vector, std::allocator > >::_M_erase_at_end(scoped_refptr*) (stl_vector.h:1150) ==436== by 0xB2A957F: std::vector, std::allocator > >::clear() (stl_vector.h:951) ==436== by 0xB2A71FA: media::CompositeFilter::~CompositeFilter() (composite_filter.cc:59) ==436== by 0xAD5B19C: base::RefCountedThreadSafe >::DeleteInternal(media::Filter const*) (ref_counted.h:149) ==436== by 0xAD59244: base::DefaultRefCountedThreadSafeTraits::Destruct(media::Filter const*) (ref_counted.h:114) ==436== by 0xAD56D74: base::RefCountedThreadSafe >::Release() const (ref_counted.h:143) ==436== by 0xAF69C30: scoped_refptr::operator=(media::Filter*) (ref_counted.h:264) ==436== by 0xB283F14: media::PipelineImpl::FinishDestroyingFiltersTask() (pipeline_impl.cc:1060) ==436== by 0xB283C08: media::PipelineImpl::TeardownStateTransitionTask() (pipeline_impl.cc:1019) ==436== by 0xB287E70: void DispatchToMethod(media::PipelineImpl*, void (media::PipelineImpl::*)(), Tuple0 const&) (tuple.h:541) ==436== by 0xB28761C: RunnableMethod::Run() (task.h:338) ==436== by 0x8D1415F: (anonymous namespace)::TaskClosureAdapter::Run() (message_loop.cc:102) ==436== by 0x8D17AB5: base::internal::Invoker1, void ((anonymous namespace)::TaskClosureAdapter::*)()>::DoInvoke(base::internal::InvokerStorageBase*) (bind_internal.h:547) ==436== by 0x8830647: base::Callback::Run() const (callback.h:261) ==436== by 0x8D16941: MessageLoop::RunTask(MessageLoop::PendingTask const&) (message_loop.cc:482) ==436== by 0x8D16A6A: MessageLoop::DeferOrRunPendingTask(MessageLoop::PendingTask const&) (message_loop.cc:500) ==436== by 0x8D1726C: MessageLoop::DoWork() (message_loop.cc:691) ==436== Address 0x2baefa80 is 0 bytes inside a block of size 13,176 free'd ==436== at 0x7DE8ABE: free (vg_replace_malloc.c:913) ==436== by 0x1DBF11AA: pixman_image_unref (pixman-image.c:217) ==436== by 0x1D0552BB: _cairo_image_surface_finish (cairo-image-surface.c:719) ==436== by 0x1D06CF6D: cairo_surface_finish (cairo-surface.c:531) ==436== by 0x1D06D007: cairo_surface_destroy (cairo-surface.c:436) ==436== by 0x904D3AC: skia::BitmapPlatformDevice::BitmapPlatformDeviceData::~BitmapPlatformDeviceData() (bitmap_platform_device_linux.cc:58) ==436== by 0x904DA44: base::RefCounted::Release() const (ref_counted.h:95) ==436== by 0x904D9D0: scoped_refptr::~scoped_refptr() (ref_counted.h:241) ==436== by 0x904D81E: skia::BitmapPlatformDevice::~BitmapPlatformDevice() (bitmap_platform_device_linux.cc:137) ==436== by 0x810C719: SkRefCnt::unref() const (SkRefCnt.h:62) ==436== by 0x8F87D68: DeviceCM::~DeviceCM() (SkCanvas.cpp:96) ==436== by 0x8F841F3: SkCanvas::internalRestore() (SkCanvas.cpp:799) ==436== by 0x8F84092: SkCanvas::restore() (SkCanvas.cpp:765) ==436== by 0x9E4EFD7: WebCore::GraphicsContext::endTransparencyLayer() (GraphicsContextSkia.cpp:290) ==436== by 0xA4C8D09: WebCore::RenderBox::paintBoxDecorations(WebCore::PaintInfo&, WebCore::IntPoint const&) (RenderBox.cpp:878) ==436== by 0xA48AC75: WebCore::RenderBlock::paintObject(WebCore::PaintInfo&, WebCore::IntPoint const&) (RenderBlock.cpp:2486) ==436== by 0xA489DC6: WebCore::RenderBlock::paint(WebCore::PaintInfo&, WebCore::IntPoint const&) (RenderBlock.cpp:2281) ==436== by 0xA48A905: WebCore::RenderBlock::paintChildren(WebCore::PaintInfo&, WebCore::IntPoint const&) (RenderBlock.cpp:2439) ==436== by 0xA48A63B: WebCore::RenderBlock::paintContents(WebCore::PaintInfo&, WebCore::IntPoint const&) (RenderBlock.cpp:2397) ==436== by 0xA48ADAD: WebCore::RenderBlock::paintObject(WebCore::PaintInfo&, WebCore::IntPoint const&) (RenderBlock.cpp:2510) ==436== by 0xA489DC6: WebCore::RenderBlock::paint(WebCore::PaintInfo&, WebCore::IntPoint const&) (RenderBlock.cpp:2281) ==436== by 0xA51A8BE: WebCore::RenderLayerBacking::paintIntoLayer(WebCore::RenderLayer*, WebCore::GraphicsContext*, WebCore::IntRect const&, unsigned int, WebCore::GraphicsLayerPaintingPhase, WebCore::RenderObject*) (RenderLayerBacking.cpp:1164) ==436== by 0xA51AEAE: WebCore::RenderLayerBacking::paintContents(WebCore::GraphicsLayer const*, WebCore::GraphicsContext&, WebCore::GraphicsLayerPaintingPhase, WebCore::IntRect const&) (RenderLayerBacking.cpp:1242) ==436== by 0x9E9CBCE: WebCore::GraphicsLayer::paintGraphicsLayerContents(WebCore::GraphicsContext&, WebCore::IntRect const&) (GraphicsLayer.cpp:248) ==436== by 0x9EA37FC: WebCore::ContentLayerPainter::paint(WebCore::GraphicsContext&, WebCore::IntRect const&) (ContentLayerChromium.cpp:71) ==436== by 0x9E22282: WebCore::LayerTextureUpdaterCanvas::paintContents(WebCore::GraphicsContext&, WebCore::IntRect const&) (LayerTextureUpdaterCanvas.cpp:60) ==436== by 0x9E2245C: WebCore::LayerTextureUpdaterBitmap::prepareToUpdate(WebCore::IntRect const&, WebCore::IntSize const&, int) (LayerTextureUpdaterCanvas.cpp:82) ==436== by 0x9E249B5: WebCore::LayerTilerChromium::prepareToUpdate(WebCore::IntRect const&) (LayerTilerChromium.cpp:265) ==436== by 0x9EA2A3D: WebCore::ContentLayerChromium::paintContentsIfDirty(WebCore::IntRect const&) (ContentLayerChromium.cpp:115) ==436== by 0x9E17717: WebCore::LayerRendererChromium::paintLayerContents(WTF::Vector, 0u> const&) (LayerRendererChromium.cpp:430) ==436== From oceantear at gmail.com Tue Jun 28 09:00:11 2011 From: oceantear at gmail.com (Shu Chaio Yang) Date: Tue, 28 Jun 2011 15:00:11 +0800 Subject: [FFmpeg-user] All pts and dts is zero when convert non-formal h264 to Transport Stream Message-ID: Hi, I met some problems, when I try to convert non-formal h264 to Transport Stream. First i convert the non-formal h264 to Transport Stream. -->But , the file can't play by player( such as VLC or Media player) -->All pts of frames are zero -----> i doubt this is the problem Second, I tried to convert the non-formal h264(called file a) to formal h264(called file b). -->The converted h264(file b) can play by VLC. Finally, i used ffmpeg.exe to convert the converted h264 file(file b) to TS by below command. command: ffmpeg -i camera.h26 -vcodec copy -acodec copy -f mpegts camera.ts -->It can play by VLC. -->I found the pts of frames is not zero. Is any one has the experience for any another parameter that i should to pass to the ffmpeg lib? Below is part of my codes: Convert( ){ int m_nVideoTimeStamp = 0; AVCodecContext *pCodecCtx = m_pVideoStream->codec; AVPacket pkt; pkt.flags |= PKT_FLAG_KEY; pkt.data = GetSample(); //one frame data pkt.size = frame_size; pkt.pts = m_nVideoTimeStamp++ * (pCodecCtx->time_base.num * 1000 / pCodecCtx->time_base.den); pkt.stream_index = m_pVideoStream->index; if (av_write_frame(m_pFormatCtx, &pkt) != 0) { printf("Error while writing audio frame\n"); return 0; } AddVideoStream( ) { AVCodecContext *pCodecCtx = pStream->codec; pCodecCtx->codec_id = (CodecID)nCodecID; pCodecCtx->codec_type = CODEC_TYPE_VIDEO; // Put sample parameters */ pCodecCtx->bit_rate = 2000000; pCodecCtx->width = pProperty->GetWidth(); //CIF: width:352 height:288 pCodecCtx->height = pProperty->GetHeight(); pCodecCtx->time_base.den = pProperty->GetFrameRate(); //denominator pCodecCtx->time_base.num = 1; //numerator //time.base= one frame cost how many times pCodecCtx->gop_size = pProperty->GetFrameRate(); pCodecCtx->pix_fmt = PIX_FMT_YUV420P; } From tim.nicholson at bbc.co.uk Tue Jun 28 17:31:19 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Tue, 28 Jun 2011 16:31:19 +0100 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: References: Message-ID: <4E09F3C7.6030805@bbc.co.uk> On 22/06/11 06:43, Thomas Worth wrote: > While I've historically used a standalone x264 binary to do encoding > by piping yuv420p from FFmpeg, I thought I'd try libx264 through > FFmpeg since it's certainly more convenient. > > [....] > > If I can safely pass all my options via -x264opts then I'll just use > that from now on and disregard FFmpeg's x264 interface. But what about options that require colon delimited parameters themselves such as "--sar 1:1"? -- 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 dev at rarevision.com Tue Jun 28 18:51:55 2011 From: dev at rarevision.com (Thomas Worth) Date: Tue, 28 Jun 2011 09:51:55 -0700 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: <4E09F3C7.6030805@bbc.co.uk> References: <4E09F3C7.6030805@bbc.co.uk> Message-ID: On Tue, Jun 28, 2011 at 8:31 AM, Tim Nicholson wrote: > On 22/06/11 06:43, Thomas Worth wrote: >> >> While I've historically used a standalone x264 binary to do encoding >> by piping yuv420p from FFmpeg, I thought I'd try libx264 through >> FFmpeg since it's certainly more convenient. >> >> [....] >> >> If I can safely pass all my options via -x264opts then I'll just use >> that from now on and disregard FFmpeg's x264 interface. > > But what about options that require colon delimited parameters themselves > such as "--sar 1:1"? If I use a forward slash (sar=16/9), libx264 doesn't complain but it also doesn't use the supplied ratio. It seems to default to "1/1" every time. From mark at mdsh.com Tue Jun 28 20:27:43 2011 From: mark at mdsh.com (Mark Himsley) Date: Tue, 28 Jun 2011 19:27:43 +0100 Subject: [FFmpeg-user] Output to image file Message-ID: <4E0A1D1F.6030209@mdsh.com> Hi, I would like to output some frames of a video to an image file that can be read by The GIMP. I would like the image data to be exactly what was decoded in FFmpeg. In essence I'd like: ffmpeg -i input.mxf -ss 10 -vframes 75 -f image2 output%04d.raw But The GIMP does not read those files. I would not mind if FFmpeg could convert from YUV to RGB but without converting from studio levels to full levels (i.e. I would like black to come out to 16 and white to come out as 235). Can anyone advise me how I can do that, please. -- Mark From 251183sn at mail.ru Tue Jun 28 15:39:38 2011 From: 251183sn at mail.ru (=?utf-8?Q?=D1=81_=D0=BD?=) Date: Tue, 28 Jun 2011 17:39:38 +0400 Subject: [FFmpeg-user] Join of clips without recoding Message-ID: I have clips m2ts 1080i AVCHD. It is necessary to unite them, it is desirable without recoding. Whether it is possible to make it in FFmpeg?? -- ??????? ? ??????????? ??????????? ?????? ????? ?? ?????? ????????. ?????? ??????? ? ???????? ?? m.mail.ru From durga.n at gmail.com Tue Jun 28 19:31:31 2011 From: durga.n at gmail.com (Durga) Date: Tue, 28 Jun 2011 13:31:31 -0400 Subject: [FFmpeg-user] Building ffmpeg for iPhone error. Message-ID: Hi, I am trying to compile ffmpeg for my iPhone and I am constantly getting the below error unhandled .if varient at /usr/bin/gas-preprocessor.pl The commands I am using are ./configure \ --cc=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc \ --as='gas-preprocessor.pl /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc' \ --sysroot=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk \ --extra-ldflags=-L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib/system \ --target-os=darwin \ --arch=arm \ --cpu=arm1176jzf-s \ --extra-cflags='-arch armv6' \ --extra-ldflags='-arch armv6' \ --enable-cross-compile \ --disable-ffmpeg \ --disable-ffplay \ --disable-ffserver \ --disable-doc make When I do the make I see the above error. I appreciate if you can help me to resolve this. Thanks, /Durga From bahamutzero8825 at gmail.com Tue Jun 28 21:06:18 2011 From: bahamutzero8825 at gmail.com (Andrew Berg) Date: Tue, 28 Jun 2011 14:06:18 -0500 Subject: [FFmpeg-user] Join of clips without recoding In-Reply-To: References: Message-ID: <4E0A262A.4090904@gmail.com> On 2011.06.28 08:39 AM, ? ? wrote: > I have clips m2ts 1080i AVCHD. It is necessary to unite them, it is desirable without recoding. Whether it is possible to make it in FFmpeg?? I think it is possible with FFmpeg using -vcodec copy, but tsMuxeR is a better tool for (re-/de-)muxing MPEG-TS containers. From lou at lrcd.com Tue Jun 28 21:55:46 2011 From: lou at lrcd.com (Lou) Date: Tue, 28 Jun 2011 11:55:46 -0800 Subject: [FFmpeg-user] How to avoid blurred text when using drawtext filter? In-Reply-To: <1309201021757-3628544.post@n4.nabble.com> References: <1308777298543-3618274.post@n4.nabble.com> <4E08C861.9030002@alcatel-lucent.com> <1309201021757-3628544.post@n4.nabble.com> Message-ID: <20110628115546.6ff214de@lrcd.com> On Mon, 27 Jun 2011 11:57:01 -0700 (PDT) pgoldweic wrote: > How should I figure out the appropriate bit rate that works with a > particular movie size? That's up to you to decide. Choose the highest crf value that still gives you an acceptable quality. A higher value means lower quality. Once you figure out a good number you can generally use this for your other videos. You don't necessarily need to encode the whole thing if it is a long duration. You can choose a few random sections to get a general idea of what the output may look like. This example skips the first 5 minutes and 23 seconds and creates an output duration of 120 seconds (either of these options can use hh:mm:ss.ms or just seconds): ffmpeg -ss 00:05:23.00 -i input -t 120 ... > I will also need to be able to resize the movie to 1280x720 (and > 480x360), so it would be good to know what's the criteria I should > use. See the scale filter: http://ffmpeg.org/libavfilter.html#SEC39 > In addition, will the particular font chosen affect the choice of bit > rate? If the typeface looks bad decrease the crf value. > Thanks in advance for any further tips. Other suggestions: * Add "-threads 0" to your command to decrease encoding time. * By default the encoder is using "-preset medium". Generally, you should choose the slowest preset you can tolerate. See "x264 --help" for the available presets (ignore "placebo" as it's a waste of time). From robertk54 at aol.com Wed Jun 29 03:23:39 2011 From: robertk54 at aol.com (robertk54 at aol.com) Date: Tue, 28 Jun 2011 21:23:39 -0400 (EDT) Subject: [FFmpeg-user] How to accept m.youtube.com 3gp content Message-ID: <8CE04124F0F11EF-738-B861@webmail-stg-m02.sysops.aol.com> I am trying to use ffmpeg to process rtsp streams. I thought a simple test would be to access 'm.youtube.com' and reference the 3gp content as shown below. Seems ffmpeg is unable to determine the audio codec, it reports "Stream #0.1: Audio: 0x0000". I know this is not the latest version, it was the easiest to install using yum. Should I expect this to work with this version? Is there a way to get the latest (or newer) version using yum? Thanks, Bob ffmpeg -i rtsp://v1.cache6.c.youtube.com/CjYLENy73wIaLQm_je4sQp1rhBMYJCAkFEIJbXYtZ29vZ2xlSARSBXdhdGNoYMOY6puCsomuTQw=/0/0/0/video.3gp -vn -ar 8000 -ac 1 -f mulaw -y Sample.pcm FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers built on Dec 4 2010 15:37:20 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48) configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables' --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 [rtsp @ 0x99bb850]max_analyze_duration reached [rtsp @ 0x99bb850]Estimating duration from bitrate, this may be inaccurate Input #0, rtsp, from 'rtsp://v1.cache6.c.youtube.com/CjYLENy73wIaLQm_je4sQp1rhBMYJCAkFEIJbXYtZ29vZ2xlSARSBXdhdGNoYMOY6puCsomuTQw=/0/0/0/video.3gp': Metadata: title : Video Duration: 00:13:34.14, start: 0.-45986, bitrate: N/A Stream #0.0: Video: mpeg4, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 29.97 tbc Stream #0.1: Audio: 0x0000, 22050 Hz, 1 channels Output #0, mulaw, to 'Sample.pcm': Stream #0.0: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s Stream mapping: Stream #0.1 -> #0.0 Decoder (codec id 0) not found for input stream #0.1 From Sebastian.Wieseler at hft-leipzig.de Wed Jun 29 09:37:03 2011 From: Sebastian.Wieseler at hft-leipzig.de (Sebastian Wieseler) Date: Wed, 29 Jun 2011 09:37:03 +0200 Subject: [FFmpeg-user] PGM to JPEG-LS identify error Message-ID: <20110629093703.wjnd6gr0sz2888c0@webmail.FH-Telekom-Leipzig.DE> Hello dear mailinglist, I've got a problem with the convertion from PGM to JPEG-LS. $ file barbara-pgm.pgm barbara-pgm.pgm: Netpbm PGM "rawbits" image data $ identify barbara-pgm.pgm barbara-pgm.pgm PNM 720x576 720x576+0+0 8-bit Grayscale DirectClass 405KiB 0.000u 0:00.000 $ ffmpeg -f image2 -vcodec pgm -pix_fmt gray16be -i barbara-pgm.pgm -f image2 -vcodec jpegls -pix_fmt gray16le barbara-ffmpeg-tojpegls.jls $ file barbara-ffmpeg-tojpegls.jls barbara-ffmpeg-tojpegls.jls: JPEG image data $ identify barbara-ffmpeg-tojpegls.jls identify: Unsupported marker type 0xf7 `barbara-ffmpeg-tojpegls.jls' @ jpeg.c/EmitMessage/232. But it should look like (it's also JPEG-LS but not created with ffmpeg): $ identify barbara-compressed.pgm identify: Improper image header `barbara-compressed.pgm' @ pnm.c/ReadPNMImage/297. $ file barbara-compressed.pgm barbara-compressed.pgm: data I also played around with "gray16be" and "gray16le" but this doesn't work out. --- FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.1, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --extra-version=4:0.5.1-1ubuntu1.1 --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 Mar 31 2011 18:53:20, gcc: 4.4.3 --- What should I do to get valid JPEG-LS data? Best regards, Sebastian Wieseler From coniophora at gmail.com Wed Jun 29 14:17:04 2011 From: coniophora at gmail.com (Jim Worrall) Date: Wed, 29 Jun 2011 06:17:04 -0600 Subject: [FFmpeg-user] pad without otherwise altering video? Message-ID: I have an mkv file with h264 video that I need to pad. Am I correct in assuming that this can't be done without recoding the video? If so, I would appreciate tips on how to recode it with minimum alterations in quality. Thanks, Jim From joolzg at btinternet.com Wed Jun 29 15:32:11 2011 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Wed, 29 Jun 2011 14:32:11 +0100 (BST) Subject: [FFmpeg-user] encoding live Message-ID: <1309354331.68423.YahooMailNeo@web86405.mail.ird.yahoo.com> Before i start changing my encoders i was wondering if anybody had any thoughts on single encodes as opposed to dual encodes. What i have is a list of 15 channels in which i need to provide 2 different streams, one 1Mb and one 500k, now at the moment i do each as a seperate ffmpeg instance. So my question has anybody done the same but joined the 2 encodes into a single instance, thereby saving the extra time in the UDP receive, Video Decode, Video Resize, will this same much time. Currently we do stream 1 as 512x288 with x264 at 1Mb, and stream 2 as 352x288 with x264 at 500K, all are from a MPEG2 source @720x576 @704x576 sometimes. joolz ps. ive had my dvbsubtitles modifications running over a week now, HARD SUBTITLES work. From dave.bevan at bbc.co.uk Wed Jun 29 15:35:38 2011 From: dave.bevan at bbc.co.uk (Dave Bevan) Date: Wed, 29 Jun 2011 14:35:38 +0100 Subject: [FFmpeg-user] encoding live In-Reply-To: <1309354331.68423.YahooMailNeo@web86405.mail.ird.yahoo.com> References: <1309354331.68423.YahooMailNeo@web86405.mail.ird.yahoo.com> Message-ID: Use FFMBC - it supports definition of multiple, different spec "outputs" from a single "input". --Dave. -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of JULIAN GARDNER Sent: 29 June 2011 14:32 To: FFmpeg user questions and RTFMs Subject: [FFmpeg-user] encoding live Before i start changing my encoders i was wondering if anybody had any thoughts on single encodes as opposed to dual encodes. What i have is a list of 15 channels in which i need to provide 2 different streams, one 1Mb and one 500k, now at the moment i do each as a seperate ffmpeg instance. So my question has anybody done the same but joined the 2 encodes into a single instance, thereby saving the extra time in the UDP receive, Video Decode, Video Resize, will this same much time. Currently we do stream 1 as 512x288 with x264 at 1Mb, and stream 2 as 352x288 with x264 at 500K, all are from a MPEG2 source @720x576 @704x576 sometimes. joolz ps. ive had my dvbsubtitles modifications running over a week now, HARD SUBTITLES work. _______________________________________________ ffmpeg-user mailing list ffmpeg-user at ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user 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 jshupert at pps-inc.com Wed Jun 29 16:08:09 2011 From: jshupert at pps-inc.com (Jim Shupert) Date: Wed, 29 Jun 2011 10:08:09 -0400 Subject: [FFmpeg-user] ffplay 10bit ffv1 mkv erratic play Message-ID: <4E0B31C9.7000104@pps-inc.com> Friends, I have a file.mkv , ffv1 10 bit w pcm (24bit) audio. When i attempt to play these with ffplay i get erratic play. I believe that my files are good. I currently think that ffplay simply will not fully play the files. It freezes after 2 sec , then you can sorta jump around in the file ( kybrd cmds ) - it never really plays. I thought i would just as around. See what others thought. also does anyone know of a 'player' that might. I have openSuse 11.4 64 bit ss at gordo:/media/g1/mkv/hold> ffplay 006_10b.mkv ffplay version 0.7, Copyright (c) 2003-2011 the FFmpeg developers built on Jun 28 2011 14:40:27 with gcc 4.5.1 20101208 [gcc-4_5-branch revision 167585] configuration: --enable-gpl --enable-nonfree --enable-postproc --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-x11grab libavutil 51. 10. 0 / 51. 10. 0 libavcodec 53. 7. 0 / 53. 7. 0 libavformat 53. 4. 0 / 53. 4. 0 libavdevice 53. 1. 1 / 53. 1. 1 libavfilter 2. 24. 0 / 2. 24. 0 libswscale 2. 0. 0 / 2. 0. 0 libpostproc 51. 2. 0 / 51. 2. 0 [matroska,webm @ 0x130fa80] Estimating duration from bitrate, this may be inaccurate Input #0, matroska,webm, from '006_10b.mkv': Metadata: ENCODER : Lavf53.4.0 Duration: 00:00:30.53, start: 0.000000, bitrate: N/A Stream #0.0: Video: ffv1, yuv422p10le, 720x486, PAR 9:10 DAR 4:3, 29.97 fps, 29.97 tbr, 1k tbn, 29.97 tbc (default) Stream #0.1: Audio: pcm_s24le, 48000 Hz, 2 channels, s32, 2304 kb/s (default) [buffersink @ 0x1312d20] auto-inserting filter 'auto-inserted scaler 0' between the filter 'src' and the filter 'out' [scale @ 0x133b500] w:720 h:486 fmt:yuv422p10le -> w:720 h:486 fmt:yuv420p flags:0x4 30.53 A-V: 0.960 s:6.8 aq= 0KB vq=11614KB sq= 0B f=0/0 f=0/0 ss at gordo:/media/g1/mkv/hold> q thanks again! jim From pgoldweic at northwestern.edu Wed Jun 29 16:46:40 2011 From: pgoldweic at northwestern.edu (pgoldweic) Date: Wed, 29 Jun 2011 07:46:40 -0700 (PDT) Subject: [FFmpeg-user] How to avoid blurred text when using drawtext filter? In-Reply-To: <20110628115546.6ff214de@lrcd.com> References: <1308777298543-3618274.post@n4.nabble.com> <4E08C861.9030002@alcatel-lucent.com> <1309201021757-3628544.post@n4.nabble.com> <20110628115546.6ff214de@lrcd.com> Message-ID: <1309358800409-3633063.post@n4.nabble.com> Thanks once again for your helpful tips! -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/How-to-avoid-blurred-text-when-using-drawtext-filter-tp3618274p3633063.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From joolzg at btinternet.com Wed Jun 29 17:57:21 2011 From: joolzg at btinternet.com (JULIAN GARDNER) Date: Wed, 29 Jun 2011 16:57:21 +0100 (BST) Subject: [FFmpeg-user] encoding live In-Reply-To: References: <1309354331.68423.YahooMailNeo@web86405.mail.ird.yahoo.com> Message-ID: <1309363041.56042.YahooMailNeo@web86407.mail.ird.yahoo.com> So how upto date is it as i need DVB Subtitles decoded and burnt into the streams, which ive finished coding and fixing and i am now testing. joolz >________________________________ >From: Dave Bevan >To: FFmpeg user questions and RTFMs >Sent: Wednesday, 29 June 2011, 14:35 >Subject: Re: [FFmpeg-user] encoding live > >Use FFMBC - it supports definition of multiple, different spec "outputs" >from a single "input". > >--Dave. > >-----Original Message----- >From: ffmpeg-user-bounces at ffmpeg.org >[mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of JULIAN GARDNER >Sent: 29 June 2011 14:32 >To: FFmpeg user questions and RTFMs >Subject: [FFmpeg-user] encoding live > >Before i start changing my encoders i was wondering if anybody had any >thoughts on single encodes as opposed to dual encodes. > >What i have is a list of 15 channels in which i need to provide 2 >different streams, one 1Mb and one 500k, now at the moment i do each as >a seperate ffmpeg instance. > >So my question has anybody done the same but joined the 2 encodes into a >single instance, thereby saving the extra time in the UDP receive, Video >Decode, Video Resize, will this same much time. > > >Currently we do stream 1 as 512x288 with x264 at 1Mb, and stream 2 as >352x288 with x264 at 500K, all are from a MPEG2 source @720x576 @704x576 >sometimes. > >joolz >ps. ive had my dvbsubtitles modifications running over a week now, HARD >SUBTITLES work. >_______________________________________________ >ffmpeg-user mailing list >ffmpeg-user at ffmpeg.org >http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >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. >??? ??? ??? ??? ??? >_______________________________________________ >ffmpeg-user mailing list >ffmpeg-user at ffmpeg.org >http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > From mbhoria at gobindas.in Wed Jun 29 14:15:11 2011 From: mbhoria at gobindas.in (Manish Bhoria) Date: Wed, 29 Jun 2011 17:45:11 +0530 Subject: [FFmpeg-user] Problem in FFMPEG Message-ID: Hi Sir/Madam, Please help and give the solution. I am facing below error at time of installing FFMPEG. Please find the attached config.log file and screen error also. Installation of FFMPEG ....... started Removing old source Initialized empty Git repository in /usr/src/ffmpegscript/ffmpeg/.git/ Checking out files: 100% (2349/2349), done. ERROR: libfaac 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. Makefile:1: config.mak: No such file or directory Makefile:43: /common.mak: No such file or directory Makefile:76: /libavutil/Makefile: No such file or directory Makefile:150: /doc/Makefile: No such file or directory Makefile:151: /tests/Makefile: No such file or directory make: *** No rule to make target `/tests/Makefile'. Stop. Makefile:1: config.mak: No such file or directory Makefile:43: /common.mak: No such file or directory Makefile:76: /libavutil/Makefile: No such file or directory Makefile:150: /doc/Makefile: No such file or directory Makefile:151: /tests/Makefile: No such file or directory make: *** No rule to make target `/tests/Makefile'. Stop. Makefile:1: config.mak: No such file or directory Makefile:43: /common.mak: No such file or directory Makefile:76: /libavutil/Makefile: No such file or directory Makefile:150: /doc/Makefile: No such file or directory Makefile:151: /tests/Makefile: No such file or directory make: *** No rule to make target `/tests/Makefile'. Stop. cp: cannot stat `tools/qt-faststart': No such file or directory ffmpeg.sh: line 55: /usr/bin/ffmpeg: No such file or directory Installation of FFMPEG ....... Completed FFMPEG installation Failed :( , please visit the forum [root at testserver ffmpeginstaller]# yum install libfaac* Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * addons: mirrors.163.com * base: mirrors.163.com * extras: mirrors.163.com * rpmforge: fr2.rpmfind.net * updates: mirrors.163.com Setting up Install Process Package libfaac0-1.28-6.el5.i386 already installed and latest version Nothing to do Thanks & Regards Manish Bhoria -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 126314 bytes Desc: not available URL: From h.reindl at thelounge.net Wed Jun 29 19:40:10 2011 From: h.reindl at thelounge.net (Reindl Harald) Date: Wed, 29 Jun 2011 19:40:10 +0200 Subject: [FFmpeg-user] Problem in FFMPEG In-Reply-To: References: Message-ID: <4E0B637A.7020604@thelounge.net> Am 29.06.2011 14:15, schrieb Manish Bhoria: > Hi Sir/Madam, > > Please help and give the solution. I am facing below error at time of installing FFMPEG. > > Please find the attached config.log file and screen error also. > > Installation of FFMPEG ....... started > Removing old source > Initialized empty Git repository in /usr/src/ffmpegscript/ffmpeg/.git/ > Checking out files: 100% (2349/2349), done. > ERROR: libfaac not found this is a clear error-message "faac-devel" is missing not sure in what repos for RHEL, for Fedora it is AFAIk in rpmfusion-nonfree -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 261 bytes Desc: OpenPGP digital signature URL: From dave.bevan at bbc.co.uk Wed Jun 29 21:02:15 2011 From: dave.bevan at bbc.co.uk (Dave Bevan) Date: Wed, 29 Jun 2011 20:02:15 +0100 Subject: [FFmpeg-user] encoding live In-Reply-To: <1309363041.56042.YahooMailNeo@web86407.mail.ird.yahoo.com> References: <1309354331.68423.YahooMailNeo@web86405.mail.ird.yahoo.com> <1309363041.56042.YahooMailNeo@web86407.mail.ird.yahoo.com> Message-ID: I'm afraid that's one for Baptiste to answer. I know that the current FFmbc 0.6-rc7 build we use doesn't yet have drawtext filter support if that's any clue (./ffmbc -filters). --Dave. -----Original Message----- From: ffmpeg-user-bounces at ffmpeg.org [mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of JULIAN GARDNER Sent: 29 June 2011 16:57 To: FFmpeg user questions and RTFMs Subject: Re: [FFmpeg-user] encoding live So how upto date is it as i need DVB Subtitles decoded and burnt into the streams, which ive finished coding and fixing and i am now testing. joolz >________________________________ >From: Dave Bevan >To: FFmpeg user questions and RTFMs >Sent: Wednesday, 29 June 2011, 14:35 >Subject: Re: [FFmpeg-user] encoding live > >Use FFMBC - it supports definition of multiple, different spec "outputs" >from a single "input". > >--Dave. > >-----Original Message----- >From: ffmpeg-user-bounces at ffmpeg.org >[mailto:ffmpeg-user-bounces at ffmpeg.org] On Behalf Of JULIAN GARDNER >Sent: 29 June 2011 14:32 >To: FFmpeg user questions and RTFMs >Subject: [FFmpeg-user] encoding live > >Before i start changing my encoders i was wondering if anybody had any >thoughts on single encodes as opposed to dual encodes. > >What i have is a list of 15 channels in which i need to provide 2 >different streams, one 1Mb and one 500k, now at the moment i do each as >a seperate ffmpeg instance. > >So my question has anybody done the same but joined the 2 encodes into >a single instance, thereby saving the extra time in the UDP receive, >Video Decode, Video Resize, will this same much time. > > >Currently we do stream 1 as 512x288 with x264 at 1Mb, and stream 2 as >352x288 with x264 at 500K, all are from a MPEG2 source @720x576 >@704x576 sometimes. > >joolz >ps. ive had my dvbsubtitles modifications running over a week now, HARD >SUBTITLES work. >_______________________________________________ >ffmpeg-user mailing list >ffmpeg-user at ffmpeg.org >http://ffmpeg.org/mailman/listinfo/ffmpeg-user > >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. >??? ??? ??? ??? ??? >_______________________________________________ >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 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 ParamjeetSingh_Bawa at persistent.co.in Thu Jun 30 11:48:47 2011 From: ParamjeetSingh_Bawa at persistent.co.in (Paramjeet Singh Bawa) Date: Thu, 30 Jun 2011 15:18:47 +0530 Subject: [FFmpeg-user] How can i Compress animated gif Message-ID: <8C73411FCF52A748A87C623599BC2BDA0A0DEBA4@MAIL3.persistent.co.in> I am trying to convert video to Gif using simple command ffmpeg -i video_origine.avi gif_anime.gif But the size of gif file is high as per my size limit. How can I compress the gif file in this case ? /Param DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. From iwant2learnu at gmail.com Thu Jun 30 11:56:45 2011 From: iwant2learnu at gmail.com (iwant2learn) Date: Thu, 30 Jun 2011 02:56:45 -0700 (PDT) Subject: [FFmpeg-user] Program to receive multicast stream Message-ID: <1309427805440-3635237.post@n4.nabble.com> I am able to retrieve the video from a given multicast group address in the command line and also using VLC. Can some one help me to get the same using a C /C++ program to access the stream using ffmpeg. Or suggest me some site where i can learn how to do the same or provide hints to do the same. Thank u -- View this message in context: http://ffmpeg-users.933282.n4.nabble.com/Program-to-receive-multicast-stream-tp3635237p3635237.html Sent from the FFmpeg-users mailing list archive at Nabble.com. From tim.nicholson at bbc.co.uk Thu Jun 30 12:08:25 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Thu, 30 Jun 2011 11:08:25 +0100 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: References: <4E09F3C7.6030805@bbc.co.uk> Message-ID: <4E0C4B19.7020504@bbc.co.uk> On 28/06/11 17:51, Thomas Worth wrote: > On Tue, Jun 28, 2011 at 8:31 AM, Tim Nicholson wrote: >> On 22/06/11 06:43, Thomas Worth wrote: >>> >>> While I've historically used a standalone x264 binary to do encoding >>> by piping yuv420p from FFmpeg, I thought I'd try libx264 through >>> FFmpeg since it's certainly more convenient. >>> >>> [....] >>> >>> If I can safely pass all my options via -x264opts then I'll just use >>> that from now on and disregard FFmpeg's x264 interface. >> >> But what about options that require colon delimited parameters themselves >> such as "--sar 1:1"? > > If I use a forward slash (sar=16/9), libx264 doesn't complain but it > also doesn't use the supplied ratio. It seems to default to "1/1" > every time. I have tried sar="1:1" and it hasn't complained about that. Howver it doesn't want to accept a profile specification. Using:- ffmpeg -i $in_file -vcodec libx264 -pix_fmt yuv420p -s 1920x1080 -an \ -x264opts bitrate=35000:preset=veryslow:tune=$tune:\ [...] I get a:- "[libx264 @ 0x12e0960] bad value for 'preset': 'veryslow'" error. replace "veryslow" with whatever you like from the legal list. -- 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 sweetthdevil at gmail.com Thu Jun 30 12:19:11 2011 From: sweetthdevil at gmail.com (Sw@g) Date: Thu, 30 Jun 2011 11:19:11 +0100 Subject: [FFmpeg-user] adding microphone input? Message-ID: <4E0C4D9F.3020104@gmail.com> Hi all, I am recording my logitech webcam, but would like to add microphone input, but I am not sure on how to find the proper input line. I am running archlinux with gnome shell and therefore pulseaudio. this is the command line I use, thank to user of the mailinglist. ffmpeg -f video4linux2 -s 640x480 -r 15 -i /dev/video0 -vcodec libx264 -preset medium -crf 26 -threads 0 output.mkv Looking forward for your reply, Regards, From tim.nicholson at bbc.co.uk Thu Jun 30 12:22:44 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Thu, 30 Jun 2011 11:22:44 +0100 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: <4E0C4B19.7020504@bbc.co.uk> References: <4E09F3C7.6030805@bbc.co.uk> <4E0C4B19.7020504@bbc.co.uk> Message-ID: <4E0C4E74.2040507@bbc.co.uk> On 30/06/11 11:08, Tim Nicholson wrote: > On 28/06/11 17:51, Thomas Worth wrote: >> On Tue, Jun 28, 2011 at 8:31 AM, Tim >> Nicholson wrote: >>> On 22/06/11 06:43, Thomas Worth wrote: >>>> >>>> While I've historically used a standalone x264 binary to do encoding >>>> by piping yuv420p from FFmpeg, I thought I'd try libx264 through >>>> FFmpeg since it's certainly more convenient. >>>> >>>> [....] >>>> >>>> If I can safely pass all my options via -x264opts then I'll just use >>>> that from now on and disregard FFmpeg's x264 interface. >>> >>> But what about options that require colon delimited parameters >>> themselves >>> such as "--sar 1:1"? >> >> If I use a forward slash (sar=16/9), libx264 doesn't complain but it >> also doesn't use the supplied ratio. It seems to default to "1/1" >> every time. > > I have tried sar="1:1" and it hasn't complained about that. > > Howver it doesn't want to accept a profile specification. Using:- > > ffmpeg -i $in_file -vcodec libx264 -pix_fmt yuv420p -s 1920x1080 -an \ > -x264opts bitrate=35000:preset=veryslow:tune=$tune:\ > [...] > > I get a:- > "[libx264 @ 0x12e0960] bad value for 'preset': 'veryslow'" > > error. replace "veryslow" with whatever you like from the legal list. > Actually its worse than that, it also doesn't accept any of the --tune parameters, or seem to handle options that don't have values, e.g --tff -- 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 Thu Jun 30 16:24:39 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Thu, 30 Jun 2011 15:24:39 +0100 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: <4E0C4E74.2040507@bbc.co.uk> References: <4E09F3C7.6030805@bbc.co.uk> <4E0C4B19.7020504@bbc.co.uk> <4E0C4E74.2040507@bbc.co.uk> Message-ID: <4E0C8727.4040809@bbc.co.uk> On 30/06/11 11:22, Tim Nicholson wrote: > On 30/06/11 11:08, Tim Nicholson wrote: >> On 28/06/11 17:51, Thomas Worth wrote: >>> On Tue, Jun 28, 2011 at 8:31 AM, Tim >>> Nicholson wrote: >>>> On 22/06/11 06:43, Thomas Worth wrote: >>>>> >>>>> While I've historically used a standalone x264 binary to do encoding >>>>> by piping yuv420p from FFmpeg, I thought I'd try libx264 through >>>>> FFmpeg since it's certainly more convenient. >>>>> >>>>> [....] >>>>> >>>>> If I can safely pass all my options via -x264opts then I'll just use >>>>> that from now on and disregard FFmpeg's x264 interface. >>>> >>>> But what about options that require colon delimited parameters >>>> themselves >>>> such as "--sar 1:1"? >>> >>> If I use a forward slash (sar=16/9), libx264 doesn't complain but it >>> also doesn't use the supplied ratio. It seems to default to "1/1" >>> every time. >> >> I have tried sar="1:1" and it hasn't complained about that. Oh yes it does, but the other errors masked it,,, >> >> Howver it doesn't want to accept a profile specification. Using:- >> >> ffmpeg -i $in_file -vcodec libx264 -pix_fmt yuv420p -s 1920x1080 -an \ >> -x264opts bitrate=35000:preset=veryslow:tune=$tune:\ >> [...] >> >> I get a:- >> "[libx264 @ 0x12e0960] bad value for 'preset': 'veryslow'" >> >> error. replace "veryslow" with whatever you like from the legal list. >> > > Actually its worse than that, it also doesn't accept any of the --tune > parameters, or seem to handle options that don't have values, e.g --tff OK so I have fixed the options without parameters. --tff becomes :tff=1: etc So I am just left with the reset and tune options not being valid. -- 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 dev at rarevision.com Thu Jun 30 16:30:59 2011 From: dev at rarevision.com (Thomas Worth) Date: Thu, 30 Jun 2011 07:30:59 -0700 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: <4E0C4E74.2040507@bbc.co.uk> References: <4E09F3C7.6030805@bbc.co.uk> <4E0C4B19.7020504@bbc.co.uk> <4E0C4E74.2040507@bbc.co.uk> Message-ID: On Thu, Jun 30, 2011 at 3:22 AM, Tim Nicholson wrote: > On 30/06/11 11:08, Tim Nicholson wrote: >> >> On 28/06/11 17:51, Thomas Worth wrote: >>> >>> On Tue, Jun 28, 2011 at 8:31 AM, Tim >>> Nicholson wrote: >>>> >>>> On 22/06/11 06:43, Thomas Worth wrote: >>>>> >>>>> While I've historically used a standalone x264 binary to do encoding >>>>> by piping yuv420p from FFmpeg, I thought I'd try libx264 through >>>>> FFmpeg since it's certainly more convenient. >>>>> >>>>> [....] >>>>> >>>>> If I can safely pass all my options via -x264opts then I'll just use >>>>> that from now on and disregard FFmpeg's x264 interface. >>>> >>>> But what about options that require colon delimited parameters >>>> themselves >>>> such as "--sar 1:1"? >>> >>> If I use a forward slash (sar=16/9), libx264 doesn't complain but it >>> also doesn't use the supplied ratio. It seems to default to "1/1" >>> every time. >> >> I have tried sar="1:1" and it hasn't complained about that. >> >> Howver it doesn't want to accept a profile specification. Using:- >> >> ffmpeg -i $in_file -vcodec libx264 -pix_fmt yuv420p -s 1920x1080 -an \ >> -x264opts bitrate=35000:preset=veryslow:tune=$tune:\ >> [...] >> >> I get a:- >> "[libx264 @ 0x12e0960] bad value for 'preset': 'veryslow'" >> >> error. replace "veryslow" with whatever you like from the legal list. >> > > Actually its worse than that, it also doesn't accept any of the --tune > parameters, or seem to handle options that don't have values, e.g --tff Yes, I had the same problems. What I found is that libx264 seems to take all parameters through x264opts except the following: preset profile tune For some reason, it says "bad value for preset..." etc. But, and check this out, if you supply any random value, you get the same error: "bad value for 'giggity': 'goo'". So, it doesn't look like it even recognizes it. I do this: ffmpeg -i file.mov -an -vcodec libx264 -preset medium -profile baseline -tune film -x264opts $OPTS out.mp4 That seems to be working. I just saw your email about parameters that don't take values, and you're correct. tff=1 or aud=1 or 8x8dct=0 is the way you turn them on or off. From tim.nicholson at bbc.co.uk Thu Jun 30 17:19:11 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Thu, 30 Jun 2011 16:19:11 +0100 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: References: <4E09F3C7.6030805@bbc.co.uk> <4E0C4B19.7020504@bbc.co.uk> <4E0C4E74.2040507@bbc.co.uk> Message-ID: <4E0C93EF.5010001@bbc.co.uk> On 30/06/11 15:30, Thomas Worth wrote: > On Thu, Jun 30, 2011 at 3:22 AM, Tim Nicholson wrote: >> On 30/06/11 11:08, Tim Nicholson wrote: >>> >>> On 28/06/11 17:51, Thomas Worth wrote: >>>> >>>> On Tue, Jun 28, 2011 at 8:31 AM, Tim >>>> Nicholson wrote: >>>>> >>>>> On 22/06/11 06:43, Thomas Worth wrote: >>>>>> >>>>>> While I've historically used a standalone x264 binary to do encoding >>>>>> by piping yuv420p from FFmpeg, I thought I'd try libx264 through >>>>>> FFmpeg since it's certainly more convenient. >>>>>> >>>>>> [....] >>>>>> >>>>>> If I can safely pass all my options via -x264opts then I'll just use >>>>>> that from now on and disregard FFmpeg's x264 interface. >>>>> >>>>> But what about options that require colon delimited parameters >>>>> themselves >>>>> such as "--sar 1:1"? >>>> >>>> If I use a forward slash (sar=16/9), libx264 doesn't complain but it >>>> also doesn't use the supplied ratio. It seems to default to "1/1" >>>> every time. >>> >>> I have tried sar="1:1" and it hasn't complained about that. >>> >>> Howver it doesn't want to accept a profile specification. Using:- >>> >>> ffmpeg -i $in_file -vcodec libx264 -pix_fmt yuv420p -s 1920x1080 -an \ >>> -x264opts bitrate=35000:preset=veryslow:tune=$tune:\ >>> [...] >>> >>> I get a:- >>> "[libx264 @ 0x12e0960] bad value for 'preset': 'veryslow'" >>> >>> error. replace "veryslow" with whatever you like from the legal list. >>> >> >> Actually its worse than that, it also doesn't accept any of the --tune >> parameters, or seem to handle options that don't have values, e.g --tff > > Yes, I had the same problems. What I found is that libx264 seems to > take all parameters through x264opts except the following: > > preset > profile > tune > > For some reason, it says "bad value for preset..." etc. But, and check > this out, if you supply any random value, you get the same error: "bad > value for 'giggity': 'goo'". So, it doesn't look like it even > recognizes it. > > I do this: > > ffmpeg -i file.mov -an -vcodec libx264 -preset medium -profile > baseline -tune film -x264opts $OPTS out.mp4 > > That seems to be working. > Well so it does.... Thanks > I just saw your email about parameters that don't take values, and > you're correct. tff=1 or aud=1 or 8x8dct=0 is the way you turn them on > or off. > Or not quite as it happens. if you set :fake-interlaced=1: the x264 header showing the set parameters reports "interlaced=fake". However if you set tff=1 or bff=1 you get "interlaced=0" suggesting that these are not working. btw I see there is now a "bluray-compat" switch that saves having to explicitly specify a number of others, such as nal_hrd and b_pyramid. -- 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 dev at rarevision.com Thu Jun 30 17:39:33 2011 From: dev at rarevision.com (Thomas Worth) Date: Thu, 30 Jun 2011 08:39:33 -0700 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: <4E0C93EF.5010001@bbc.co.uk> References: <4E09F3C7.6030805@bbc.co.uk> <4E0C4B19.7020504@bbc.co.uk> <4E0C4E74.2040507@bbc.co.uk> <4E0C93EF.5010001@bbc.co.uk> Message-ID: On Thu, Jun 30, 2011 at 8:19 AM, Tim Nicholson wrote: > On 30/06/11 15:30, Thomas Worth wrote: >> >> On Thu, Jun 30, 2011 at 3:22 AM, Tim Nicholson >> ?wrote: >>> >>> On 30/06/11 11:08, Tim Nicholson wrote: >>>> >>>> On 28/06/11 17:51, Thomas Worth wrote: >>>>> >>>>> On Tue, Jun 28, 2011 at 8:31 AM, Tim >>>>> Nicholson ?wrote: >>>>>> >>>>>> On 22/06/11 06:43, Thomas Worth wrote: >>>>>>> >>>>>>> While I've historically used a standalone x264 binary to do encoding >>>>>>> by piping yuv420p from FFmpeg, I thought I'd try libx264 through >>>>>>> FFmpeg since it's certainly more convenient. >>>>>>> >>>>>>> [....] >>>>>>> >>>>>>> If I can safely pass all my options via -x264opts then I'll just use >>>>>>> that from now on and disregard FFmpeg's x264 interface. >>>>>> >>>>>> But what about options that require colon delimited parameters >>>>>> themselves >>>>>> such as "--sar 1:1"? >>>>> >>>>> If I use a forward slash (sar=16/9), libx264 doesn't complain but it >>>>> also doesn't use the supplied ratio. It seems to default to "1/1" >>>>> every time. >>>> >>>> I have tried sar="1:1" and it hasn't complained about that. >>>> >>>> Howver it doesn't want to accept a profile specification. Using:- >>>> >>>> ffmpeg -i $in_file -vcodec libx264 -pix_fmt yuv420p -s 1920x1080 -an \ >>>> -x264opts bitrate=35000:preset=veryslow:tune=$tune:\ >>>> [...] >>>> >>>> I get a:- >>>> "[libx264 @ 0x12e0960] bad value for 'preset': 'veryslow'" >>>> >>>> error. replace "veryslow" with whatever you like from the legal list. >>>> >>> >>> Actually its worse than that, it also doesn't accept any of the --tune >>> parameters, or seem to handle options that don't have values, e.g --tff >> >> Yes, I had the same problems. What I found is that libx264 seems to >> take all parameters through x264opts except the following: >> >> preset >> profile >> tune >> >> For some reason, it says "bad value for preset..." etc. But, and check >> this out, if you supply any random value, you get the same error: "bad >> value for 'giggity': 'goo'". So, it doesn't look like it even >> recognizes it. >> >> I do this: >> >> ffmpeg -i file.mov -an -vcodec libx264 -preset medium -profile >> baseline -tune film -x264opts $OPTS out.mp4 >> >> That seems to be working. >> > > Well so it does.... Thanks > >> I just saw your email about parameters that don't take values, and >> you're correct. tff=1 or aud=1 or 8x8dct=0 is the way you turn them on >> or off. >> > > Or not quite as it happens. > > if you set :fake-interlaced=1: the x264 header showing the set parameters > reports "interlaced=fake". > > However if you set tff=1 or bff=1 you get "interlaced=0" suggesting that > these are not working. > > btw I see there is now a "bluray-compat" switch that saves having to > explicitly specify a number of others, such as nal_hrd and b_pyramid. Did you check libx264's output in the terminal during encoding? It should show you a transcript of all of the settings passed. That's how I was able to confirm the "param=1" trick. I'll go back and test it and see if it's choking on options that use hyphens. I noticed the bluray option as well. Is there documentation that shows exactly what it sets? From etienne.buira.lists at free.fr Thu Jun 30 17:43:41 2011 From: etienne.buira.lists at free.fr (Etienne Buira) Date: Thu, 30 Jun 2011 17:43:41 +0200 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: <4E0C93EF.5010001@bbc.co.uk> References: <4E09F3C7.6030805@bbc.co.uk> <4E0C4B19.7020504@bbc.co.uk> <4E0C4E74.2040507@bbc.co.uk> <4E0C93EF.5010001@bbc.co.uk> Message-ID: <20110630154340.GP21173@epicure.lazyet.homelinux.net> On Thu, Jun 30, 2011 at 04:19:11PM +0100, Tim Nicholson wrote: > However if you set tff=1 or bff=1 you get "interlaced=0" suggesting that > these are not working. Hi. You can add -flags +ildct to your command line. From dev at rarevision.com Thu Jun 30 17:51:40 2011 From: dev at rarevision.com (Thomas Worth) Date: Thu, 30 Jun 2011 08:51:40 -0700 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: References: <4E09F3C7.6030805@bbc.co.uk> <4E0C4B19.7020504@bbc.co.uk> <4E0C4E74.2040507@bbc.co.uk> <4E0C93EF.5010001@bbc.co.uk> Message-ID: On Thu, Jun 30, 2011 at 8:39 AM, Thomas Worth wrote: > On Thu, Jun 30, 2011 at 8:19 AM, Tim Nicholson wrote: >> On 30/06/11 15:30, Thomas Worth wrote: >>> >>> On Thu, Jun 30, 2011 at 3:22 AM, Tim Nicholson >>> ?wrote: >>>> >>>> On 30/06/11 11:08, Tim Nicholson wrote: >>>>> >>>>> On 28/06/11 17:51, Thomas Worth wrote: >>>>>> >>>>>> On Tue, Jun 28, 2011 at 8:31 AM, Tim >>>>>> Nicholson ?wrote: >>>>>>> >>>>>>> On 22/06/11 06:43, Thomas Worth wrote: >>>>>>>> >>>>>>>> While I've historically used a standalone x264 binary to do encoding >>>>>>>> by piping yuv420p from FFmpeg, I thought I'd try libx264 through >>>>>>>> FFmpeg since it's certainly more convenient. >>>>>>>> >>>>>>>> [....] >>>>>>>> >>>>>>>> If I can safely pass all my options via -x264opts then I'll just use >>>>>>>> that from now on and disregard FFmpeg's x264 interface. >>>>>>> >>>>>>> But what about options that require colon delimited parameters >>>>>>> themselves >>>>>>> such as "--sar 1:1"? >>>>>> >>>>>> If I use a forward slash (sar=16/9), libx264 doesn't complain but it >>>>>> also doesn't use the supplied ratio. It seems to default to "1/1" >>>>>> every time. >>>>> >>>>> I have tried sar="1:1" and it hasn't complained about that. >>>>> >>>>> Howver it doesn't want to accept a profile specification. Using:- >>>>> >>>>> ffmpeg -i $in_file -vcodec libx264 -pix_fmt yuv420p -s 1920x1080 -an \ >>>>> -x264opts bitrate=35000:preset=veryslow:tune=$tune:\ >>>>> [...] >>>>> >>>>> I get a:- >>>>> "[libx264 @ 0x12e0960] bad value for 'preset': 'veryslow'" >>>>> >>>>> error. replace "veryslow" with whatever you like from the legal list. >>>>> >>>> >>>> Actually its worse than that, it also doesn't accept any of the --tune >>>> parameters, or seem to handle options that don't have values, e.g --tff >>> >>> Yes, I had the same problems. What I found is that libx264 seems to >>> take all parameters through x264opts except the following: >>> >>> preset >>> profile >>> tune >>> >>> For some reason, it says "bad value for preset..." etc. But, and check >>> this out, if you supply any random value, you get the same error: "bad >>> value for 'giggity': 'goo'". So, it doesn't look like it even >>> recognizes it. >>> >>> I do this: >>> >>> ffmpeg -i file.mov -an -vcodec libx264 -preset medium -profile >>> baseline -tune film -x264opts $OPTS out.mp4 >>> >>> That seems to be working. >>> >> >> Well so it does.... Thanks >> >>> I just saw your email about parameters that don't take values, and >>> you're correct. tff=1 or aud=1 or 8x8dct=0 is the way you turn them on >>> or off. >>> >> >> Or not quite as it happens. >> >> if you set :fake-interlaced=1: the x264 header showing the set parameters >> reports "interlaced=fake". >> >> However if you set tff=1 or bff=1 you get "interlaced=0" suggesting that >> these are not working. >> >> btw I see there is now a "bluray-compat" switch that saves having to >> explicitly specify a number of others, such as nal_hrd and b_pyramid. > > Did you check libx264's output in the terminal during encoding? It > should show you a transcript of all of the settings passed. That's how > I was able to confirm the "param=1" trick. I'll go back and test it > and see if it's choking on options that use hyphens. Sorry, I misread what you wrote. Disregard that. I tried this just now, and yep, I can't get libx264 to say it's encoding as interlaced, either. It just says "interlaced=0" as you mentioned. Perhaps there is some other check that x264 is doing to ensure the input is actually interlaced, or perhaps it's influenced by the preset or tune parameter. You should be warned about this, if that is the case as you are when you try to encode interlaced with the baseline profile (baseline doesn't support interlaced, apparently). From tim.nicholson at bbc.co.uk Thu Jun 30 17:55:18 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Thu, 30 Jun 2011 16:55:18 +0100 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: References: <4E09F3C7.6030805@bbc.co.uk> <4E0C4B19.7020504@bbc.co.uk> <4E0C4E74.2040507@bbc.co.uk> <4E0C93EF.5010001@bbc.co.uk> Message-ID: <4E0C9C66.8010604@bbc.co.uk> On 30/06/11 16:39, Thomas Worth wrote: > [...] >> >>> I just saw your email about parameters that don't take values, and >>> you're correct. tff=1 or aud=1 or 8x8dct=0 is the way you turn them on >>> or off. >>> >> >> Or not quite as it happens. >> >> if you set :fake-interlaced=1: the x264 header showing the set parameters >> reports "interlaced=fake". >> >> However if you set tff=1 or bff=1 you get "interlaced=0" suggesting that >> these are not working. >> >> btw I see there is now a "bluray-compat" switch that saves having to >> explicitly specify a number of others, such as nal_hrd and b_pyramid. > > Did you check libx264's output in the terminal during encoding? It > should show you a transcript of all of the settings passed. That's how > I was able to confirm the "param=1" trick. I'll go back and test it > and see if it's choking on options that use hyphens. > Yes, that's how I worked it out too and what I meant by "x264 header..." above. But its not "fake-interlaced" that is failing, that works OK, its the other two that seem not to be. > I noticed the bluray option as well. Is there documentation that shows > exactly what it sets? > Well I updated my parameters based on www.x264bluray.com's update and compared the other options that were no longer required and saw that they were still set according to the x264 terminal cruft. --fullhelp just says:- --bluray-compat Enable compatibility hacks for Blu-ray support _ -- 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 dev at rarevision.com Thu Jun 30 17:58:36 2011 From: dev at rarevision.com (Thomas Worth) Date: Thu, 30 Jun 2011 08:58:36 -0700 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: References: <4E09F3C7.6030805@bbc.co.uk> <4E0C4B19.7020504@bbc.co.uk> <4E0C4E74.2040507@bbc.co.uk> <4E0C93EF.5010001@bbc.co.uk> Message-ID: On Thu, Jun 30, 2011 at 8:51 AM, Thomas Worth wrote: > On Thu, Jun 30, 2011 at 8:39 AM, Thomas Worth wrote: >> On Thu, Jun 30, 2011 at 8:19 AM, Tim Nicholson wrote: >>> On 30/06/11 15:30, Thomas Worth wrote: >>>> >>>> On Thu, Jun 30, 2011 at 3:22 AM, Tim Nicholson >>>> ?wrote: >>>>> >>>>> On 30/06/11 11:08, Tim Nicholson wrote: >>>>>> >>>>>> On 28/06/11 17:51, Thomas Worth wrote: >>>>>>> >>>>>>> On Tue, Jun 28, 2011 at 8:31 AM, Tim >>>>>>> Nicholson ?wrote: >>>>>>>> >>>>>>>> On 22/06/11 06:43, Thomas Worth wrote: >>>>>>>>> >>>>>>>>> While I've historically used a standalone x264 binary to do encoding >>>>>>>>> by piping yuv420p from FFmpeg, I thought I'd try libx264 through >>>>>>>>> FFmpeg since it's certainly more convenient. >>>>>>>>> >>>>>>>>> [....] >>>>>>>>> >>>>>>>>> If I can safely pass all my options via -x264opts then I'll just use >>>>>>>>> that from now on and disregard FFmpeg's x264 interface. >>>>>>>> >>>>>>>> But what about options that require colon delimited parameters >>>>>>>> themselves >>>>>>>> such as "--sar 1:1"? >>>>>>> >>>>>>> If I use a forward slash (sar=16/9), libx264 doesn't complain but it >>>>>>> also doesn't use the supplied ratio. It seems to default to "1/1" >>>>>>> every time. >>>>>> >>>>>> I have tried sar="1:1" and it hasn't complained about that. >>>>>> >>>>>> Howver it doesn't want to accept a profile specification. Using:- >>>>>> >>>>>> ffmpeg -i $in_file -vcodec libx264 -pix_fmt yuv420p -s 1920x1080 -an \ >>>>>> -x264opts bitrate=35000:preset=veryslow:tune=$tune:\ >>>>>> [...] >>>>>> >>>>>> I get a:- >>>>>> "[libx264 @ 0x12e0960] bad value for 'preset': 'veryslow'" >>>>>> >>>>>> error. replace "veryslow" with whatever you like from the legal list. >>>>>> >>>>> >>>>> Actually its worse than that, it also doesn't accept any of the --tune >>>>> parameters, or seem to handle options that don't have values, e.g --tff >>>> >>>> Yes, I had the same problems. What I found is that libx264 seems to >>>> take all parameters through x264opts except the following: >>>> >>>> preset >>>> profile >>>> tune >>>> >>>> For some reason, it says "bad value for preset..." etc. But, and check >>>> this out, if you supply any random value, you get the same error: "bad >>>> value for 'giggity': 'goo'". So, it doesn't look like it even >>>> recognizes it. >>>> >>>> I do this: >>>> >>>> ffmpeg -i file.mov -an -vcodec libx264 -preset medium -profile >>>> baseline -tune film -x264opts $OPTS out.mp4 >>>> >>>> That seems to be working. >>>> >>> >>> Well so it does.... Thanks >>> >>>> I just saw your email about parameters that don't take values, and >>>> you're correct. tff=1 or aud=1 or 8x8dct=0 is the way you turn them on >>>> or off. >>>> >>> >>> Or not quite as it happens. >>> >>> if you set :fake-interlaced=1: the x264 header showing the set parameters >>> reports "interlaced=fake". >>> >>> However if you set tff=1 or bff=1 you get "interlaced=0" suggesting that >>> these are not working. >>> >>> btw I see there is now a "bluray-compat" switch that saves having to >>> explicitly specify a number of others, such as nal_hrd and b_pyramid. >> >> Did you check libx264's output in the terminal during encoding? It >> should show you a transcript of all of the settings passed. That's how >> I was able to confirm the "param=1" trick. I'll go back and test it >> and see if it's choking on options that use hyphens. > > Sorry, I misread what you wrote. Disregard that. I tried this just > now, and yep, I can't get libx264 to say it's encoding as interlaced, > either. It just says "interlaced=0" as you mentioned. Perhaps there is > some other check that x264 is doing to ensure the input is actually > interlaced, or perhaps it's influenced by the preset or tune > parameter. You should be warned about this, if that is the case as you > are when you try to encode interlaced with the baseline profile > (baseline doesn't support interlaced, apparently). Ok, here's what you have to do. You have to pass ffmpeg the +ildct flag: ffmpeg -i input.mov -an -flags +ildct -vcodec libx264 -preset medium -profile main -x264opts $OPTS output.mov Now it says "interlaced=tff" From tim.nicholson at bbc.co.uk Thu Jun 30 18:13:12 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Thu, 30 Jun 2011 17:13:12 +0100 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: References: <4E09F3C7.6030805@bbc.co.uk> <4E0C4B19.7020504@bbc.co.uk> <4E0C4E74.2040507@bbc.co.uk> <4E0C93EF.5010001@bbc.co.uk> Message-ID: <4E0CA098.2050304@bbc.co.uk> On 30/06/11 16:58, Thomas Worth wrote: > On Thu, Jun 30, 2011 at 8:51 AM, Thomas Worth wrote: >> On Thu, Jun 30, 2011 at 8:39 AM, Thomas Worth wrote: [...] >>>> >>>>> I just saw your email about parameters that don't take values, and >>>>> you're correct. tff=1 or aud=1 or 8x8dct=0 is the way you turn them on >>>>> or off. >>>>> >>>> >>>> Or not quite as it happens. >>>>[.....] > > Ok, here's what you have to do. You have to pass ffmpeg the +ildct flag: > > ffmpeg -i input.mov -an -flags +ildct -vcodec libx264 -preset medium > -profile main -x264opts $OPTS output.mov > > Now it says "interlaced=tff" As Etienne also suggested.. (Thanks) Agggh, but if you want "pretend progressive" you have to use the -x264opts "fake-interlaced=1" variant otherwise the +ildct overrides the setting. -- 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 dev at rarevision.com Thu Jun 30 18:15:50 2011 From: dev at rarevision.com (Thomas Worth) Date: Thu, 30 Jun 2011 09:15:50 -0700 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: References: <4E09F3C7.6030805@bbc.co.uk> <4E0C4B19.7020504@bbc.co.uk> <4E0C4E74.2040507@bbc.co.uk> <4E0C93EF.5010001@bbc.co.uk> Message-ID: >>>> btw I see there is now a "bluray-compat" switch that saves having to >>>> explicitly specify a number of others, such as nal_hrd and b_pyramid. FYI, from /x264/encoder/encoder.c: if( h->param.b_bluray_compat ) { h->param.i_bframe_pyramid = X264_MIN( X264_B_PYRAMID_STRICT, h->param.i_bframe_pyramid ); h->param.i_bframe = X264_MIN( h->param.i_bframe, 3 ); h->param.b_aud = 1; h->param.i_nal_hrd = X264_MAX( h->param.i_nal_hrd, X264_NAL_HRD_VBR ); h->param.i_slice_max_size = 0; h->param.i_slice_max_mbs = 0; h->param.b_intra_refresh = 0; h->param.i_frame_reference = X264_MIN( h->param.i_frame_reference, 6 ); h->param.i_dpb_size = X264_MIN( h->param.i_dpb_size, 6 ); /* Due to the proliferation of broken players that don't handle dupes properly. */ h->param.analyse.i_weighted_pred = X264_MIN( h->param.analyse.i_weighted_pred, X264_WEIGHTP_SIMPLE ); if( h->param.b_fake_interlaced ) h->param.b_pic_struct = 1; } From tim.nicholson at bbc.co.uk Thu Jun 30 18:32:34 2011 From: tim.nicholson at bbc.co.uk (Tim Nicholson) Date: Thu, 30 Jun 2011 17:32:34 +0100 Subject: [FFmpeg-user] libx264 options through FFmpeg In-Reply-To: <20110630154340.GP21173@epicure.lazyet.homelinux.net> References: <4E09F3C7.6030805@bbc.co.uk> <4E0C4B19.7020504@bbc.co.uk> <4E0C4E74.2040507@bbc.co.uk> <4E0C93EF.5010001@bbc.co.uk> <20110630154340.GP21173@epicure.lazyet.homelinux.net> Message-ID: <4E0CA522.7000601@bbc.co.uk> ...and one final thought. Should one use - pass n in ffmpeg or pass=n in x264opts....or both? -- 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 diego.cdomingos2010 at gmail.com Wed Jun 29 21:59:47 2011 From: diego.cdomingos2010 at gmail.com (Diego Carvalho Domingos) Date: Wed, 29 Jun 2011 16:59:47 -0300 Subject: [FFmpeg-user] h264 concealing error Message-ID: I'm getting the following error from the decoding process: [h264 @ 0x9fcf9a0] concealing 300 DC, 300 AC, 300 MV errors Is there a way (programmatically) to recognize this error? The avcodec_decode_video2 only returns a negative value on error or the number of decoded bytes. Does this negative value represent something? Thanks in advance. From corey.zamara at gmail.com Thu Jun 30 21:26:33 2011 From: corey.zamara at gmail.com (Corey Zamara) Date: Thu, 30 Jun 2011 15:26:33 -0400 Subject: [FFmpeg-user] libavfilters filters RPM Message-ID: does anyone know if there is an RPM available that will enable libavfilter filters in ffmpeg, as you can see below I do have libavfilter enabled in ffmped but no filters are installed, or is there is a quick way to install filters without recompiling ffmpeg directly? FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers built on Jun 28 2011 03:51:21 with gcc 4.1.2 20080704 (Red Hat 4.1.2-50) configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab --enable-libxvid --enable-libvorbis --enable-libtheora libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 0.11. 0 / 0.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 Filters: zamarax at xxx.com [~]# I'm primarily looking to enable scale, movie, pad. From bahamutzero8825 at gmail.com Thu Jun 30 23:19:00 2011 From: bahamutzero8825 at gmail.com (Andrew Berg) Date: Thu, 30 Jun 2011 16:19:00 -0500 Subject: [FFmpeg-user] How can i Compress animated gif In-Reply-To: <8C73411FCF52A748A87C623599BC2BDA0A0DEBA4@MAIL3.persistent.co.in> References: <8C73411FCF52A748A87C623599BC2BDA0A0DEBA4@MAIL3.persistent.co.in> Message-ID: <4E0CE844.1020604@gmail.com> On 2011.06.30 04:48 AM, Paramjeet Singh Bawa wrote: > ffmpeg -i video_origine.avi gif_anime.gif > > But the size of gif file is high as per my size limit. How can I compress the gif file in this case ? Other than being limited to 256 colors (and 1-bit transparency), GIF is lossless. You could try scaling the images down and/or running that GIF through an optimizer (can't think of any off the top of my head since I rarely deal with GIF).