[Ffmpeg-devel-irc] ffmpeg.log.20111221

burek burek021 at gmail.com
Thu Dec 22 02:05:01 CET 2011


[00:38] <Shimmy> Hi all! I need to release a FREE app (closed source) that uses FFmpeg. I've read this: http://ffmpeg.org/legal.html
[00:38] <Shimmy> But I'm looking for a shorter checklist of the things that I MUST comply for either GPL / LGPL
[00:39] <Shimmy> Can anyone tell me in short what steps to do so I'm covered with GPL/LGPL?
[00:39] <Shimmy> Remember it's freeware
[00:39] <Shimmy> But closed source
[00:41] <treund_> prime violation
[00:42] <Mavrik> Shimmy, are you using ffmpeg as an executable (so calling it with exec() or some such) or are you using the actual libraries and linking against it?
[00:43] <Shimmy> @Marvik - exec
[00:43] <Shimmy> Static lib
[00:44] <Shimmy> FFmpeg only
[00:44] <Mavrik> Shimmy, you need to make sure your ffmpeg executable is redistributable (meaning it's not compiled with any libraries that would make it such) and that's it
[00:45] <Mavrik> (that's because you're not actually linking against ffmpeg)
[00:46] <Shimmy> No, im using solely ffmpeg download from zeranoe windows builds
[00:46] <Shimmy> static build
[00:46] <Mavrik> those are redistributable (zeranoe makes sure of that) so there's nothing you have to do
[00:47] <Shimmy> oh oh, and there is something else.
[00:47] <Shimmy> I needed AMV support which is incomplete in FFmpeg yet :(
[00:48] <Shimmy> (Read this https://ffmpeg.org/trac/ffmpeg/ticket/747 I wish you could help me)
[00:48] <Shimmy> So I'm using amv-codec-tools meanwhile, and I compiled with FFmpeg
[00:48] <Shimmy> is there any problem with it?
[00:50] <pasteeater> developers are volunteers and lack of time is often the limitation. you could post a bounty to get it done if it's super-ultra-mega-uber-important to you
[00:51] <pasteeater> but the feature request is a good start
[00:51] <Mavrik> Shimmy, probably just lack of time and developer interest for the format :\
[00:54] <Shimmy> Is there a way to promote developers to do it?
[00:55] <Shimmy> 90% of the job is done
[00:55] <Shimmy> it's just the adpcm_ima_amv encoder
[00:55] <iive> wasn't amv some horrible format for mobile devices? Or i'm confusing it with something else?
[00:56] <iive> mjpeg for video, avi like headers?
[00:56] <Shimmy> Which can probably copied from amv-codec-tools http://www.google.com/codesearch#search/&q=adpcm_ima_amv%20package:http://amv-codec-tools%5C.googlecode%5C.com&type=cs
[00:57] <Shimmy> @+iive you're prob confusing cuz it's for chinese PDAs, but you're not confusing it that it's a horrible format...
[00:58] <Shimmy> The AMV is ALREADY supported in FFmpeg 0.9 (Harmony)
[00:58] <Shimmy> The problem is the lack of adpcm_ima_amv ENcoding
[00:58] <iive> pda are mobile, even if they are not phones ;)
[00:58] <Shimmy> OK you're anyway right abuot the horrible part ;{
[01:00] <iive> maybe writing adpcm_ima_amv could be used as qualification task for next GSoC. if not task on its own.
[01:02] Action: iive is not useful at all, today.
[01:02] <Shimmy> i wish i'd be a C dev :(
[01:03] <Shimmy> but i think the job is done, it's just a copy-paste-tweak-test job
[01:03] <Shimmy> not writing an encoder from scratch
[01:05] <Shimmy> It's all here: http://www.google.com/codesearch#CaJMi0Gce3c/trunk/AMVmuxer/ffmpeg/libavcodec/adpcm.c&q=adpcm_ima_amv%20package:http://amv-codec-tools%5C.googlecode%5C.com&ct=rc&cd=2
[01:05] <treund_> iive: tomorrow is another day
[01:06] <Shimmy> @pasteeater, how do I post a bounty?
[01:07] <treund_> why not switch to a more 'popular' format
[01:08] <Shimmy> it's not up to me, thats a desire that has to be developed to support existing hardware
[01:10] <Shimmy> BTW, since i got involved in ffmpeg, i started to learn c hoping that one day ill be good enough to help developing ffmpeg myself
[01:14] <iive> Shimmy: oh, amvmuxer is fork of ffmpeg created just to work on amv support?!
[01:15] <iive> i'm quite sure michaelni would like to merge it :)
[01:19] <Shimmy> would he
[01:32] <iive> make sure you are mentioning this in your trac request.
[01:32] <iive> merging is much easier than writing from scratch.
[01:33] <Shimmy> As you can see, i already did, but I cant edit it and emphasize that line
[01:33] <treund_> who uses this miracle format?
[01:33] <Shimmy> https://ffmpeg.org/trac/ffmpeg/ticket/747
[01:34] <Shimmy> 'miracle' haha
[01:34] <Shimmy> some chinese players
[01:34] <Shimmy> play only this format
[01:35] <Shimmy> and i have to make sure my .net converter can output to it...
[01:42] <PovAddict> can ffmpeg do reasonably-high-quality image scaling or should I use a separate tool for that?
[01:43] <Shimmy> anyway, what about the GPL things, do I have to point out in my application that it uses ffmpeg?
[01:43] <Shimmy> what other things do i have to make sure (i am talking about what i legally MUST do, not about what's recommended)
[01:44] <Shimmy> GPL / LGPL
[01:46] <treund_> you seem planing on making a mint on this? 
[01:51] <iive> Shimmy: in essence, you should provide everything needed to modify and replace the ffmpeg you provide if I feel like it.
[01:54] <PovAddict> and if I modify ffmpeg, link it to your app, and it doesn't work (because my modification was bad), your license should allow me to reverse-engineer your app to figure out why my modified ffmpeg won't work
[01:54] <iive> PovAddict: nope.
[01:55] <iive> but if he uses lgpl and links staticly, he should provide a way to relink with custom build ffmpeg. aka provide the object files.
[01:55] <PovAddict> erm, yes
[01:56] <PovAddict> "you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications."
[01:56] <PovAddict> LGPL 2.1 section 6
[01:56] <iive> hum... every time I find new things... and that's in the old license!
[01:57] <PovAddict> LGPL 3.0 section 4 says something similar "You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications"
[01:59] <iive> 3.0 is written on lawyerish, so it is even harder to read.
[02:00] <iive> btw, just nitpicking, it doesn't allow you to RE, but it demands that you allow RE. aka don't put forbid clause in the eula.
[02:00] <treund_> you built a libffmpeg?
[02:32] <pasteeater> Shimmy: add a comment to ticket 747 indicating that you are willing to pay (and show how much) for adpcm_ima_amv encoding support
[02:33] <pasteeater> although i don't think most devs can be prodded by bounties, but who knows...
[02:33] <treund_> you ain't been in #gnash
[02:33] <iive> pasteeater: read the rest :P
[02:36] <pasteeater> iive: the rest of ...?
[02:36] <iive> the conversation. about the encoder already been written for ffmpeg framework.
[02:36] <iive> it just have to be merged back.
[02:37] <pasteeater> ah, i missed that.
[02:37] <iive> told'ya
[03:00] <Shimmy> lemme just tell u 2 facts, 1) i am not getting big money for this proj so my budget is very limited 2) the avg price range for a dev in my country is very low
[03:00] <Shimmy> What would be a good/bad bounty amount anyway
[03:05] <Shimmy> @PovAddict (what a name) - in reference to the license issue - my app is a .net. although i do provide an ffmpeg that is embedded in my app resources, in order to execute i must extract it to be physically on the computer, and so, the user can replace the executables
[03:06] <Shimmy> So is this the only requirement of GPL/LGPL - that the usr should be able to replace the exes? btw, i dont obfuscate my code, so it's up to reverse engineering...
[03:08] <treund_> you still on about this gpl? let them sue you you will get publicity
[03:09] <Shimmy> hahahaha
[03:09] <Shimmy> if they sew, theyll sue my customer 
[03:09] <Shimmy> sue
[03:10] <treund_> just so they can get the subpeona ready who is the customer
[03:10] <treund_> you really think they care 
[03:10] <Shimmy> so he'll get public, and this is sometn is not payin me for
[03:10] <Shimmy> i hope they dont someone washed my brain with this gpl shit
[03:11] <treund_> charge him extra - for the clause - saying he is responsible
[03:11] <Shimmy> lmao
[03:12] <treund_> clause 702 : customer agrees to fully abide the gpl license
[03:17] <iive> Shimmy: gpl allows the user to do whatever it wants with the software. It only implies conditions on distribution.
[03:17] <sam1> hi guys, can someone  tell me what thr ,thn and thc means?
[03:18] <iive> it/he/she
[03:24] <pasteeater> sam1: do you mean tbr, tbn, tbc?
[03:26] <pasteeater> http://ffmpeg-users.933282.n4.nabble.com/What-does-the-output-of-ffmpeg-mean-tbr-tbn-tbc-etc-tp941538p941539.html
[03:36] <dongs> hai guise, does ffmpeg have arm/cortex optimized AAC decoder that also does HE-AAC?
[03:39] <dongs> oh hm android does
[03:42] <sam1> yes  pasteeater,
[03:44] <sam1> sorry  they are  tbc .tbn and tbr 
[03:55] <pasteeater> see the link i gave you
[03:57] <treund_> what language has thr, thn an thc?
[04:00] <elkng> "ffmpeg -r 10 -s 320x240 -f video4linux2 -i /dev/video0 /dev/null", I'm trying to send output to /dev/null but it says: "Unable to find a suitable output format for '/dev/null'"
[04:00] <pasteeater> elkng: add '-f null'
[04:01] <pasteeater> as an output option
[04:01] <treund_> to old fashioned    > /dev/null   ?
[04:02] <elkng> I use this: "ffmpeg -r 10 -s 320x240 -f video4linux2 -i /dev/video0 -f null", it says: "At least one output file must be specified"
[04:02] <pasteeater> you removed /dev/null
[04:03] <elkng> "ffmpeg -r 15 -s 320x240 -f null -i /dev/video0 /dev/null", now it says: "Unknown input format: 'null'"
[04:04] <treund_> lol
[04:05] <root____1> i got a problem when i complie ffmpeg on my arm board,anyone can help me? 
[04:05] <root____1> http://pastebin.com/1TWL2An6
[04:06] <treund_> you don't have that cross compiled as 
[04:06] <treund_> this is what you are calling it --as=arm-hisiv200-linux-as 
[04:07] <root____1> it's a asm compiler
[04:08] <treund_> does it exist with that name
[04:08] <root____1> yes,exsit!
[04:09] <root____1> ok,i remove --as=arm-hisiv200-linux-as,configure works.
[04:10] <root____1> May everything gonna be alright.
[04:16] <Shimmy> @+iive, im talking about distribution...
[04:16] <treund_> Shimmy: what are you really stealing? to be this hung up on something insignificant is a real giveaway
[04:17] <Shimmy> so u say there is nuttn to be affraid of?
[04:25] <root____1> oh...shit!..i got a new problem.without that as-flag,it use x86 as
[04:26] <treund_> root____1: you need to give it the prefox
[04:27] <root____1> http://pastebin.com/J1CXW1WA
[04:27] <treund_> is that as in the path?
[04:27] <root____1> treund_: use --prefix?
[04:28] <treund_> is the original  as in the path?
[04:29] <root____1> yes
[04:29] <treund_> go back to your original line
[04:30] <treund_> do   which arm-hisiv200-linux-as
[04:30] <dongs> hai guise, does ffmpeg have arm/cortex optimized AAC decoder that also does HE-AAC?
[04:31] <root____1> ok
[04:31] <dongs> or at least some fixedpoint aac decoder that works
[04:31] <root____1> i find it
[04:31] <root____1> [root at localhost ffmpeg-0.9]#  which arm-hisiv200-linux-as
[04:31] <root____1> /opt/hisi-linux/x86-arm/arm-hisiv200-linux/target/bin/arm-hisiv200-linux-as
[04:32] <root____1> i think this problem relate to the asm,
[04:33] <root____1> Coz,Assembler messages show that not arm register
[04:35] <treund_> this is the top of my cross compile configure  - change it to meet what you have
[04:35] <treund_> configure --extra-cflags='-I/mingw/include' --extra-ldflags='-L/mingw/lib' --prefix=/wine/ffmpeg --cross-prefix=i686-mingw32- --target-os=mingw32 --arch=i686 --cpu=i686
[04:37] <treund_> just use the --cross-prefix=arm-hisiv200-linux-    and don't specify for cc or as
[04:37] <root____1> ok
[04:37] <treund_> see what happens
[04:39] <root____1> configure can't pass
[04:40] <treund_> what is error
[04:40] <root____1> WARNING: arm-hisiv200-linux-pkg-config not found, library detection may fail
[04:41] <treund_> did you cross compile the pkg-config
[04:41] <treund_> you need lots of stuff to cross compile ffmpeg
[04:41] <root____1> not yet
[04:48] <sam1> anybody use -scodec  for subtitle? 
[04:50] <PovAddict> does anyone know of free software for image stabilization of videos?
[04:50] <sam1> i use mplayer dump DVD files to vob, and use ffmpeg to convert this vod to mp4, use this command " ffmpeg  -i /mnt/hgfs/D/stream/title4.vob   -frames 1000  -vcodec copy  -acodec copy  -scodec copy   /mnt/hgfs/D/stream/test.vob"  but test,vod doesn't have subtitle
[04:50] <PovAddict> to remove camera shaking
[04:51] <PovAddict> sam1: subtitles in DVDs are kinda special, it's not timed text, it's image overlays
[04:52] <sam1> o ,how can i burn it to video ?
[05:05] <sam1> how can i rip dvd subtitle to  text subtitle?
[05:05] <PovAddict> you can't, you would need OCR
[05:09] <sam1> thanks povaddict 
[07:14] <elkng> the command "ffmpeg -formats | grep null" gets: "E null raw null video format", should I have there "D E null raw null video format" ?
[07:15] <elkng> because if I use "ffmpeg -r 15 -s 320x240 -f video4linux2 -i /dev/video0 /dev/null" it says: "Unable to find a suitable output format for '/dev/null'" 
[07:15] <elkng> and if I use "ffmpeg -r 15 -s 320x240 -f null -i /dev/video0 /dev/null" it says: "Unknown input format: 'null'"
[07:15] <elkng> do I need support for "null" decoding ?
[07:16] <elkng> I trying to get video from webcam and send it to /dev/null not into a file
[07:16] <PovAddict> null input/decoding makes no sense
[07:17] <PovAddict> you're telling ffmpeg to decode video0 with the null decoder (which doesn't exist)
[07:18] <PovAddict> if you wanted it to be the encoder for the output file, you should place -f *after* -i
[07:19] <elkng> what should I change in the command: "ffmpeg -r 15 -s 320x240 -f video4linux2 -i /dev/video0 1.flv" to send stream to /dev/null and make no any file ?
[07:20] <PovAddict> probably -f null /dev/null
[07:20] <PovAddict> but the -f should be before the output file, not before the input
[07:20] <elkng> "-f null" instead of "-f video4linux2" ?
[07:21] <PovAddict> ffmpeg -options-for-input-file -i inputfile -options-for-output-file outputfile
[07:21] <PovAddict> no
[07:21] <PovAddict> ffmpeg -f video4linux -i /dev/video0 -f null /dev/null
[07:22] <PovAddict> well and the -s and -r you had
[07:23] <elkng> after I press "q" it shows statistic: "video:0kB audio:0kB global headers:0kB muxing overhead -inf%" get it any stream from webcam ?
[07:25] <elkng> if I have symlink "1.flv -> /dev/null" and use "ffmpeg -r 15 -s 320x240 -f video4linux2 -i /dev/video0 1.flv" the statistic is: "video:106kB audio:0kB global headers:0kB muxing overhead -100.000000%"
[07:25] <elkng> in that case stream goes to /dev/null over 1.flv
[07:26] <PovAddict> that's slightly different because it will actually encode the video into FLV, then throw the results away
[07:26] <elkng> but there is no "-f null", does the option "-f null" mean not to do eny encoding ?
[07:26] <PovAddict> "-f flv /dev/null" would do that too
[07:27] <PovAddict> there is a -f null, you're just putting it in the wrong place and making it apply to the input instead of the output
[07:27] <PovAddict> order of options matters
[07:27] <bf4648> how to you use ffmpeg to make dvds from video_ts folders?
[07:28] <PovAddict> if it's before the "-i inputfile", then it applies to the input; if it's *after* the -i, it applies to the output
[07:29] <PovAddict> bf4648: that doesn't make sense, a video_ts folder is a completed DVD already
[07:29] <bf4648> really? 
[07:29] <PovAddict> that's what it is
[07:29] <bf4648> alright...so can I play the dvd in a dvd ?
[07:30] <bf4648> hold on I'm gonna try
[07:30] <PovAddict> never looked into the files in a DVD? it's a video_ts folder with .vob, .ifo and .bup files
[07:31] <PovAddict> to burn a DVD from that folder it's better if your burning tool explicitly supports DVD-Video though
[07:31] <PovAddict> instead of just making a data DVD with that folder in there
[07:31] <bf4648> Alright, so your saying that I won't be able to play that cd in a dvd player currently...all I see is a Audio_TS and Video_TS folder
[07:32] <PovAddict> for example, it will keep the .ifo and its corresponding .bup file far from each other on the physical disc
[07:32] <bf4648> I was thinking of using k3b
[07:33] <PovAddict> the .bup files are backups of the .ifo files, it would be useless if they were next to each other, since a disc scratch would damage both
[07:33] <sam1> hi povaddict
[07:34] <bf4648> Alright, so right now...will the cd play in a DVD player?
[07:34] <sam1> dvd subtitles is in  .ifo?
[07:34] <PovAddict> is it a CD or a DVD? I think a few old set-top DVD players don't like discs that are physically CD-R but contain a DVD-Video file structure inside
[07:35] <PovAddict> sam1: no, the subtitles are interleaved in the .vob along with the video and audio streams
[07:35] <PovAddict> the .ifo has things like DVD menus
[07:35] <sam1> o, how could i extract subtitle form vod ?
[07:36] <PovAddict> I don't have experience with that
[07:37] <sam1> ffmpeg or ffplay could open dvd directory?
[07:37] <PovAddict> maybe there is something in dvdauthor (a low-level tool to create DVDs, including menus) to disassemble already-authored DVDs?
[07:37] <bf4648> DVD player says disk error
[07:37] <PovAddict> nah, ffmpeg and ffplay work on individual files like .vob
[07:37] <PovAddict> ffmpeg doesn't know about DVD structures like menus and stuff
[07:38] <PovAddict> if you want to test if a video_ts folder can be played, use VLC
[07:38] <sam1> i use  mplayer  dump dvd files to *.vob 
[07:38] <sam1> and convert  use ffmpeg 
[07:39] <bf4648> ok so can you tell me how you do that?  from the command line?
[07:39] <sam1> vlc could play DVD directory
[07:40] <sam1> bf4648, you say to me ?
[07:40] <bf4648> anyone...
[07:41] <PovAddict> sam1: I found it, you can use spuunmux to extract subtitles from a .vob; I don't know how to use the resulting subtitle files though :P
[07:41] <sam1> ok so can you tell me how you do that?  from the command line?       for what ?
[07:41] <sam1> thanks   i want to google it 
[07:45] <PovAddict> just remember DVD subtitles are pictures, like a transparent video that gets played on top of the movie
[07:45] <PovAddict> not text
[07:45] <PovAddict> off to sleep, bye
[07:46] <sam1> i konw  ,i want to convert it to ass text and use ffmpeg to burn it to movie
[07:48] <bf4648> Alright, if any of you are interested...this is exactly what I was looking for: http://ubuntugenius.wordpress.com/2010/06/08/how-to-burn-video_ts-folders-to-playable-dvds-in-ubuntu-with-k3b/
[07:51] <sam1> thanks bf4846
[07:53] <sam1> bf4846 , cannot open this website
[09:02] <holyBile> Quick noob question: If I'm running ffmpeg with -vn and -codec:a auto, is there a way to get ffmpeg to automatically append the appropriate extension to the output file, or do I have to specify it?
[09:02] <holyBile> Sorry, -codec:a copy
[09:02] <holyBile> I'm dumb :)
[09:16] <swkide> Hello all! I am trying out the new segmenter feature of the 0.9 - Can anyone help me with the parameters?
[11:27] <burek> swkide, can you give us a little more info
[11:48] <swkide> @burek - sure - I try to segment a video for iPhone. And have no success. Not even found out the basic parameters for the command.
[11:51] <swkide> command was: ffmpeg -y -i 8353612_224p_1.ts -f segment -segment_time 10 -segment_basename seg_0.9 -an out.m3u8
[13:08] <xxthink> does mp4 file format support live stream?
[13:08] <xxthink> does mp4 file format support live streaming?
[13:08] <Tjoppen> it depends
[13:09] <xxthink> depends?
[13:09] <Tjoppen> there's fragmented mp4 that probably would work
[13:10] <xxthink> the whole info of the mp4 file is saved in the meta of mp4
[13:10] <xxthink> how about the fragmented mp4 file work?
[13:10] <Tjoppen> what exactly do you mean by "live"? it's possible to faststart an mp4 so that it becomes playable on a stream
[13:10] <Tjoppen> but that's only if you have the whole thing on disk
[13:11] <xxthink> ok
[13:11] <Tjoppen> use a format designed for streaming, like mpegts
[13:11] <xxthink> if I have the whole file on the disk
[13:12] <Tjoppen> make tools/qt-faststart && tools/qt-faststart infile.mp4 outfile.mp4
[13:15] <xxthink> i see
[13:15] <xxthink> it just move the meta to the front of the mp4 file
[13:15] <xxthink> but if the file is too big, the meta size is still very big
[13:16] <Tjoppen> you need to explain your use case in detail
[13:16] <xxthink> I have a whole MP4 file on the disk, 2 hours, 720p
[13:16] <xxthink> I want to stream it to from the server to the client
[13:17] <xxthink> and the client should start to play it quickly
[13:17] <xxthink> because the meta of this file is very big
[13:17] <xxthink> the client has to wait until the whole meta is downloaded from the server
[13:18] <xxthink> I want to know are there some other method to stream it to the client
[13:18] <Tjoppen> by "meta" do you mean the moov atom?
[13:18] <xxthink> yes
[13:18] <Tjoppen> and by very big, something like > 100 MiB?
[13:18] <xxthink> 5M
[13:18] <xxthink> about
[13:18] <Tjoppen> that's not very big
[13:18] <Tjoppen> (that's what she said)
[13:18] <xxthink> I see
[13:19] <xxthink> if the mp4 file is splitted
[13:19] <Tjoppen> anyway, you need it transferred anyway, no?
[13:19] <Tjoppen> what you can do is dd of say the first 10 M and transfer that separately
[13:19] <Tjoppen> *off
[13:19] <Tjoppen> or just use tee or something on the receiving end to make sure it gets saved
[13:20] <xxthink> You mean let the client cache the moov atom?
[13:20] <Tjoppen> also, why not just put it on a http server?
[13:20] <xxthink> yes, I just put it on a http server
[13:20] <Tjoppen> well, there you go
[13:25] <xxthink> Tjoppen: do you know something on Darwin streaming server of apple?
[13:26] <xxthink> It can stream MP4 to the client
[13:26] <xxthink> I don't know how it deal with this problem
[13:26] <Tjoppen> no idea
[14:02] <atxq> is it possible to capture video from a dvd?
[14:05] <atxq> instead of trying to work with a video file, I want to use a dvd as the video input. Is this possible?
[15:56] <vivienschilis> can I do CRF or QC with webm and ffmpeg master
[15:56] <vivienschilis> ffmpeg blabla -crf output.web doesn't seems to work 
[15:56] <JEEBsv> I don't think anything else than x264 has exactly crf
[15:57] <JEEBsv> it's an encoder-specific rate control mode
[15:57] <JEEBsv> you'll have to see specifics of libvpx
[15:57] <JEEBsv> that was IIRC the vp8 encoder
[15:58] <vivienschilis> ok
[16:00] <vivienschilis> cause ffmpeg has it's own vp8 encoder now?
[16:00] <JEEBsv> uhh, no?
[16:00] <JEEBsv> I don't think it has
[16:00] <JEEBsv> it uses libvpx
[16:00] <JEEBsv> it has a decoder though
[16:01] <vivienschilis> so this has not been implemented ? http://blog.webmproject.org/2011/03/vp8-constrained-quality-cq-encoding.html
[16:01] <vivienschilis> :( too bard
[16:01] <vivienschilis> bad*
[16:01] <JEEBsv> you should see the libvpx release memos for that :P
[16:02] <JEEBsv> and/or the svn/git/whatever repo for that
[16:03] <JEEBsv> also, looking at the comments that's a mode made for encoding more than one clip >_>
[16:05] <vivienschilis> only thing I am confused
[16:05] <vivienschilis> why is VP8 encoder and libvpx different?
[16:06] <vivienschilis> if it's an open source lib the encoding options should be available through the lib no?
[16:08] <stev3> hi - so im trying to uncomp avi + sound -> x264, im using: `ffmpeg -i input.avi -vcodec libx264 -r 30 output.mp4` but it's coming out all green/pink... how can i fix this? :{
[16:08] <vivienschilis> anyway thanks for the help JEEBsv
[16:48] <JEEB> vivienschilis, libvpx is a VP8 encoder, VP8 is a codec (it could in theory have other encoders as well, such as the once brought up xvp8 that'd be based on x264)
[16:49] <JEEB> also, I don't understand the question
[16:49] <JEEB> and yes, the options the library exports should be available via the library, how many ffmpeg lets you control is a whole another story
[16:50] <JEEB> of course, it seems to me that you haven't even checked if libvpx (esp. the one you have installed) have that option
[16:50] <JEEB> after that you can go towards checking if and how it can be used via ffmpeg
[17:15] <Bombo> hi
[17:17] <vivienschilis> JEEB, ok I was confused by "that was IIRC the vp8 encoder" that means that it's in libvpx but not implemented by ffmpeg ? 
[17:18] Action: JEEB facedesks
[17:18] <JEEB> it just means that libvpx is the encoder that gets used
[17:19] <JEEB> so you might maybe try checking its documentation on what rate control modes it has
[17:19] <JEEB> (more specifically, what rate control modes the version you have installed has as well)
[17:19] <vivienschilis> ok
[17:19] <JEEB> after that, you can check if those are usable via ffmpeg
[17:22] <Bombo> i need some help with resizing+crop, i have a source.mpg that is 720x576 (DVB, 16:9) now i want to crop it first, it has large black borders on top and bottom, so i remove 76 pixels top and bottom, resulting in a 720x424 picture. now i want to resize it to a fixed width of 640px, normally the target height would be 360 for 16:9 but i think its "anamorph" so the result looks stretched. how do i calculate the correct height?
[17:25] <Bombo> resizing the 720x576 with "-vf scale=640x360" looks correct, no streching, but the black borders are still there...
[18:22] <burek> Bombo, 
[18:22] <burek> if you want your video to remain the same aspect ratio
[18:22] <burek> even after you remove 76 pixels from top and bottom
[18:22] <burek> then I guess you don't understand what the aspect ratio is
[18:23] <burek> I mean, you could either crop the video at 16:9 aspect in the first place
[18:23] <burek> (removing black frame)
[18:24] <burek> or you could first remove black frame and then resize the rest of the video to fit 16:9 (stretch)
[18:24] <burek> the 2nd approach obviously distorts the video
[18:26] <burek> I think you need: 720/424=640/x -> x = 377
[18:27] <burek> so, just crop your video to 640x377 (starting from point 0,76)
[18:40] <Bombo> burek: yes i probably dont really understand the aspect ratio, i just want to keep the proportions, see this image:  http://www.pasteall.org/pic/show.php?id=23308 it has 60px black frames, so 720/456=640/x -> x = 407
[18:42] <Bombo> so i cropped, then resized, but it looks streched
[18:45] <Bombo> resizing the image to 640x360 looks good, when i remove the borders manually i get a result of 640x285 that looks perfect
[19:53] <stev3> hey, i'm trying to mux sound with an x264 mp4, ive only found examples with -vbsf, but in the --help it says "-vbsf video bitstream_filters  deprecated" - what do?
[19:56] <JEEB> uhh, what :D
[19:56] <JEEB> why do you have to use vbsf to just mux in audio?
[19:56] <JEEB> you got an mp4 file from x264, right?
[19:56] <JEEB> and you want to mux some audio stream into it, right?
[19:56] <stev3> i render as uncompressed avi @ sony vegas, x264 it and now im trying to mux audio to it
[19:56] <JEEB> k
[19:57] <JEEB> ffmpeg -i derp.mp4 -i audio.derp -vcodec copy -acodec copy OutputDerp.mp4
[19:57] <JEEB> shouldn't this work? :3
[19:57] <stev3> oh. 
[19:57] <stev3> :D
[19:57] <stev3> i had that + '-f mpegts'
[19:58] <JEEB> you need mpeg-ts?
[19:58] <stev3> which was causing the error asking me to include ^
[19:58] <JEEB> not mp4?
[19:58] <stev3> nah, i just tested it
[19:58] <JEEB> hah
[19:58] <stev3> it's working lovely - thanks :D
[19:58] <JEEB> anyways, if you need mpeg-ts I recommend taking a look at kierank's OBE
[19:58] <JEEB> Open Broadcast Encoder
[19:58] <stev3> nah, i dont - it was just the args i found via google
[19:59] <relaxed> if audio.derp is raw aac you need -absf aac_adtstoasc
[19:59] <stev3> ill note that down :D mp3 will do me for now though
[20:00] <relaxed> for muxing into mp4 ^^
[20:00] <JEEB> kind of thought that ffmpeg would do it for me automagically
[20:00] <JEEB> I guess not
[20:01] <relaxed> maybe they added that, I recall having to use that in the past.
[20:16] <pasteeater> TimN: want to add your I frame filter to the filterguide?
[22:58] <fannagoganna> hi, any examples of audio encoding using aacplus with ffmpeg?
[23:14] <relaxed> fannagoganna: ffmpeg -i INPUT -acodec libaacplus -ab 64k output.m4a
[23:15] <fannagoganna> so is 64k the limit for aacplus? How does the quality compare to normal aac at 128k?
[23:15] <fannagoganna> thanks for the help
[23:16] <relaxed> encode some files with -acodec aac and listen to the difference.
[23:37] <GordonFreeman> fannagoganna<< it has half quality
[23:39] Action: newl wonders what the spelling would be for full quality
[23:42] <fannagoganna> thanks. I was wondering whether I should have used libfaac or aacplus for higher quality aac files. I think I will stick with libfaac for now.
[23:45] <pasteeater> i'd use AAC-LC for anything over 64kbps
[23:46] <pasteeater> (libfaac, vo-aacenc, or whatever)
[23:46] <newl> hahah sorry that was a nick 
[00:00] --- Thu Dec 22 2011


More information about the Ffmpeg-devel-irc mailing list