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

burek burek021 at gmail.com
Sat Dec 17 02:05:01 CET 2011


[02:42] <Guest85066> hi 
[02:43] <Guest85066> how  ffmpeg  open  dvd files ?
[04:44] <relaxed> Guest85066: not possible
[04:44] <relaxed> you can use the vobs as input but you can't "rip" a dvd with ffmpeg.
[04:49] <Guest85066> hi  relaxed 
[04:52] <relaxed> hello
[04:53] <Guest85066> does  ffmpeg can  convert one input  to multi  output?
[04:53] <Guest85066> such as    a.avi  to  b.mp4  and c. mkv ?
[04:54] <relaxed> yes
[04:54] <Guest85066> use one command 
[04:54] <Guest85066> what is command?
[04:57] <relaxed> the most basic example (bad quality): ffmpeg -i INPUT a.avi b.mp4 c.mkv
[04:59] <Guest85066> wait  a sec
[05:30] <beastwick> can anyone assist me on what I think is a scripting error?
[05:32] <beastwick> http://pastebin.com/y8NSih2V my script
[05:32] <beastwick> http://pastebin.com/Mp699UFw my error
[05:32] <beastwick> please, it worked a few nights ago. I didn't make huge changes.
[05:36] <plushka> Hi all! Who can answer a few questions?
[05:37] <beastwick> I don't think anyone is here :(
[05:39] <plushka> But....please
[05:39] <plushka> =))
[05:39] Action: mystica555_ is trying to figure out beastwicks script issue.. im wondering if you have the command ordered right
[05:41] <beastwick> im not sure
[05:41] <beastwick> I thought I did
[05:41] <beastwick> should video come first?
[05:41] <beastwick> I figured the order of options didn't matter before the output file.
[05:47] <beastwick> i dont get it 
[05:47] <beastwick> everything is right...
[05:50] <mystica555_> hm well let me see what it does here
[05:50] <mystica555_> plushka: please do ask questions if you want :)
[05:52] <plushka> mystica555_, pls see there http://pastebin.com/0LrZr1vK
[05:54] <mystica555_> ooh... now that.. im not sure. 
[05:54] <mystica555_> beastwick: fwiw do you have a copy of the older script?
[05:55] <beastwick> oh darn -.-
[05:55] <beastwick> hang on
[05:55] <mystica555_> ok
[05:56] <beastwick> heh no, but this is a modified script of the one found here http://pastebin.com/Da1KdEp4
[05:56] <beastwick> here video comes before audio
[05:57] <beastwick> don't know why that would matter
[05:58] <beastwick> ignore the stream key
[05:58] <beastwick> i took that out purposefully so know one can steal my stream channel
[05:58] <beastwick> that variable is set up correctly here
[05:58] <beastwick> like the one in the last pastebin
[06:01] <beastwick> perhaps something is wrong right after the x11grab?
[06:02] <relaxed> beastwick: make sure there is no spaces after --> "$AY" \
[06:02] <beastwick> ok
[06:02] <relaxed> beastwick: and you're going to have to stop asking questions related to shell scripting. This isn't #bash
[06:03] <beastwick> that didn't work though
[06:04] <beastwick> I get now "At least one output file must be specified
[06:04] <beastwick> bash: -acodec: command not found
[06:04] <beastwick> bash: -f: command not found
[06:04] <beastwick> ill check out bash
[06:04] <beastwick> I thought this might be an ffmpeg problem
[06:05] <relaxed> there can't be any whitespaces after \
[06:08] <beastwick> ok, but that did not fix the issue :(
[06:09] <beastwick> i think the issue is with the grab offset
[06:09] <beastwick> maybe that isn't being done properly
[06:54] <mgeary> hi folks
[06:55] <mgeary> i'm trying to get an accurate duration for an aac file. When i try, it tells me, "Estimating duration from bitrate, this may be inaccurate". It is indeed inaccurate. Is there something i can do to get the actual duration?
[07:00] <relaxed> stick it in a container?
[07:00] <mgeary> :/
[07:01] <mgeary> so messing with analyzeduration won't help?
[07:01] <mgeary> i have 11k files i need to get a duration for. I'd hoped to not have to convert them 
[07:02] <relaxed> are you using a recent version of ffmpeg?
[07:03] <mgeary> not sure. i didn't set this server up, and ffmpeg is reporting "ffmpeg version N-31043-gca699ac"
[07:03] <relaxed> it should return the build date as well
[07:03] <mgeary> yeah, Jan 28 '11
[07:04] <relaxed> can you stick the aac up somewhere?
[07:05] <mgeary> yeah, one sec
[07:07] <mgeary> http://dev.gearyweb.com/download/332199505018.aac
[07:07] <mgeary> 30kb
[07:07] <relaxed> Duration: 00:00:10.69 ?
[07:07] <mgeary> quicktime player tells me that it's 8.25 seconds, which is correct. best i can get from ffmpeg is 8.73 seconds
[07:07] <mgeary> no
[07:08] <mgeary> actual is 8.25 seconds
[07:08] <mgeary> 10.69 is what i'm also getting from ffmpeg
[07:08] <relaxed> 00:00:08.25
[07:08] <relaxed> right
[07:08] <mgeary> adding -analyzeduration 90000000 revises that to 9.73
[07:08] <mgeary> yes
[07:08] <mgeary> sorry, 8.73 ^^
[07:09] <mgeary> did you get 8.25 programmatically, or were you just trying to be precise about the expected duration?
[07:11] <relaxed> muxing it into matroska and running ffmpeg -i audio.mka showed 00:00:08.25
[07:12] <relaxed> you could easily script this to write to the same file and grab the correct duration
[07:13] <mgeary> ah, i see
[07:13] <mgeary> just do ffmpeg -i in.aac out.mka, catch the output and do it over and over again to the same outfile
[07:13] <mgeary> yes?
[07:13] <relaxed> ffmpeg -i in.aac -acodec copy out.mka
[07:14] <mgeary> with a -y in there
[07:14] <relaxed> then ffprobe or ffmpeg -i and grep the duration
[07:14] <mgeary> ok
[07:14] <mgeary> thanks
[07:14] <relaxed> yes, -y would overwrite
[07:26] <Guest85066> hi  relaxed  ,does  ffmpeg can open dvd files?
[07:27] <Guest85066> i want to open a dvd directory, and  convert it,not a vob file
[07:29] <relaxed> if you can play it with ffplay you can encode it with ffmpeg
[08:14] <mgeary> dang. i wish it wasn't so hard to capture the output from ffmpeg/ffprobe inside a python script
[08:15] <relaxed> does it have to be python?
[08:17] <mgeary> yeah
[08:17] <mgeary> i've found a few scripts that supposedly do it, but dang, it's sure seems like it's more complicated than it should be
[08:19] <ubitux> what kind of issue do you have?
[08:22] <mgeary> just trying to catch the output. it looks like i've finally got something that works
[08:22] <mgeary> it was just way harder than i wanted
[08:27] <ubitux> mgeary: http://pastie.org/3025151
[08:27] <ubitux> this works for me
[08:28] <mgeary> i ended up using output = subprocess.Popen(args2,stderr=subprocess.PIPE)
[08:28] <mgeary> then output.stderr.read()
[08:28] <mgeary> but thank you. yours looks better
[08:29] <ubitux> i'm not sure how well it applies to ffmpeg output, but for ffprobe this usage looks appropriate
[08:30] <ubitux> you just make ffprobe output json on stdout, then load the stdout output in the json module and tada you get your data immediately usabe
[08:30] <ubitux> usable*
[08:30] <mgeary> yeah, that's awesome
[08:41] <cbreak-work> I have problems compiling the latest ffmpeg for arm: http://paste.the-color-black.net/215248
[08:42] <cbreak-work> not sure if that's a problem with the way I compile ffmpeg or ffmpeg itself
[08:57] <cbreak-work> I was able to make it compile by adding a  && AV_GCC_VERSION_AT_LEAST(4,4) to intreadwrite.h in the arm directory, similar to recent commit f7de52354fe15ba7cae141b44ffdd01e560f0e47
[09:09] <cbreak-work> http://paste.the-color-black.net/215253 solves the problem for me. But probably not an optimal solution.
[09:38] <burek> a law suit against rotschilds, rockefellers, bush, federal reserves, united nations, ban kee-moon.. http://divinecosmos.com/start-here/davids-blog/995-lawsuit-end-tyranny
[09:38] <burek> if this succeeds, there might be no ww3 i hope
[09:40] <burek> just look at the "Defendant" list :))) http://divinecosmos.com/images/image/pacer_keenan_summary.jpg
[11:34] <Guest85066> hi relaxed ,i can't find  how to play  dvd  with  ffplay 
[12:48] <vivienschilis> is there a way to make screenshots on a list of specific frames or times in one command?
[13:28] <vivienschilis> I have issue to encode  1080p videos
[13:28] <vivienschilis> original videos plays well in vlc
[13:29] <vivienschilis> but the encoded video freezes during around 10 seconds
[13:29] <vivienschilis> sometimes in the video
[13:29] <vivienschilis> how can I debug that guys?
[13:29] <vivienschilis> fps issue?
[13:29] <vivienschilis> also if I do -an
[13:30] <vivienschilis> the encoding gets cuts where previously it was just freezing
[14:12] <solsTiCe> hi. I made a mp4 from jpg image with ffmpeg -r 1 -i test_%03d.jpg  -b:v 2000k -r 25 -vcodec mpeg4 -sameq test.mp4. I am trying now to make a ogg/theory file but the quality is very bad.
[14:12] <solsTiCe> the ogg is only 500k while the mp4 is 12M. ffmpeg -r 1 -i test_%03d.jpg -r 25 -vcodec libtheora -b:v 2000k -sameq test.ogg what can I change to that so the ogg is lamost same quality than the mp4 ?
[14:19] Action: solsTiCe will use ffmpeg2theora
[14:52] <klorydryk> hi !
[14:56] <klorydryk> I'm using the ffmpeg (audio) player example code, and when I make PLAY / STOP / PLAY quickly, the application crashes. I suppose that it's because of the threading architecture. Anybody knows how to fix this problem ?
[14:58] <mantas322> Hi guys
[14:58] <mantas322> anyone here
[14:58] <mantas322> ???
[15:05] <mantas322> hello?
[15:05] <mantas322> im using ffmpeg to resize images programmatically 
[15:05] <mantas322> is this wrogn to do with ffmpeg?
[15:13] <Node_726> what does it mean by " FF_BUG_NO_PADDING"..?
[15:21] <cbreak-work> anyone got to run ffmpeg on iOS?
[16:22] <Jetbeard> Hiya all. I've just burnt an avi file to DVD but it won't play on my cheapo DVD player. The command-line in the script mentions '-sameq' but there seems to be no mention of that option in the man page.
[16:22] <JEEB> sameq is the most abused setting
[16:22] <Jetbeard> s/won't play/plays with horrible jittering/
[16:23] <JEEB> anyways, I have no idea what your cheapo player wants, but in any case, sameq is something you don't usually want
[16:23] <JEEB> because sameq means "copy the quants from the source, and use for encoding the output"
[16:23] <JEEB> not "same quality", as too many seem to think
[16:24] <Jetbeard> So all I want is "ffmpeg -i in.avi -target pal-dvd out.mpg"?
[16:24] <JEEB> I have no idea what exactly target pal-dvd does, other than maybe set a frame rate and a resolution to be sure
[16:25] <JEEB> does the program stream jitter on a PC as well?
[16:25] <Jetbeard> foolishly I've already deleted the resulting mpg, and dvd playback on my laptop is borked :|
[16:26] <JEEB> anyways, you should first find out what exactly the target setting does
[16:26] <JEEB> and see some info on the source clip
[16:27] <Jetbeard> Apparently pal-dvd selects MPEG-2 codec, correct resolution, 4:3 aspect ratio, and correct key-frame interval and bitrates for PAL DVD players
[16:28] <JEEB> hmm, even bitrate, max bitrate and the bufsize?
[16:28] <Jetbeard> "These also set the correct key-frame interval, a target average video bit rate of 6 Mbit/s and a maximum of 9 Mbit/s"
[16:28] <JEEB> ok
[16:29] <JEEB> uhh, "these"?
[16:29] <Jetbeard> "these" = pal-dvd + ntsc-dvd
[16:29] <Jetbeard> source: http://womble.decadent.org.uk/talks/dvd-ukuug06/dvd-talk-ukuug06-paper.html
[16:30] <JEEB> http://ffmpeg.org/ffmpeg.html -> ctrl+F 'target' -> "All the format options (bitrate, codecs, buffer sizes) are then set automatically."
[16:30] <JEEB> ok
[16:31] <JEEB> I know that PAL is 25fps
[16:31] <JEEB> what is the source like?
[16:32] <Jetbeard> http://paste.pocoo.org/show/521743/
[16:33] <Jetbeard> 720p h264 at 25fps
[16:33] <JEEB> well, then I guess it's not the frame rate conversion
[16:33] <JEEB> although to be completely honest I don't know how ffmpeg handles all that
[16:35] <Jetbeard> (clarification: it runs fine most of the time and then stutters and freeze for a few seconds. sorry, it'd been a while between watching it on the dvd player and coming here)
[16:36] <Jetbeard> It seems fine on my PC
[16:48] <sprayd> hello michaelni 
[16:49] <sprayd> michaelni,  i requested a clim for this GCI task http://www.google-melange.com/gci/task/view/google/gci2011/7185251
[16:49] <sprayd> *claim
[16:52] <michaelni> sprayd, assigned, good luck
[16:53] <sprayd> can you tell me more about the task?
[16:53] <sprayd> ty
[16:55] <michaelni> sure, what is unclear to you ?
[16:56] <sprayd> i have to find someone from ISO as in this organization http://www.iso.org/iso/home.html
[16:57] <sprayd> to provide consulting services for legal stuff for free, right?
[17:03] <sprayd> I mean I have to contact the organization and explain them about your project and find someone who agrees to provides specifications/recommendations, right michaelni ?
[17:06] <michaelni> sprayd, yes, find someone there with enough athority and explain them that we are a bunch of volunteers implementing video & audio decoders & encoders in a free software project
[17:07] <michaelni> and that it would help everyone (our code is free to all) if we had access to the specifications instead of outdated drafts found via google
[17:08] <sprayd> so what are the 'specifications'? I don't understand what it is, or how would that be beneficial to this project or why it may need?
[17:09] <sprayd> Basically, what purpose do these specifications serve?
[17:12] <JEEB> they specify the various formats
[17:12] <JEEB> video/audio/container
[17:13] <JEEB> if you don't have specs, you pretty much have to implement something by reverse engineering or (in the better case) by finding some older versions of the specs on google/whatever
[17:14] <sprayd> so you mean like patents and stuff?
[17:15] <JEEB> nope
[17:15] <JEEB> specifications
[17:15] <JEEB> of course, certain things in the specifications can be of course patented, but a specification by itself only tells you what something is and (possibly) how to implement it with examples
[17:16] <sprayd> oh
[17:16] <JEEB> it's a standard
[17:17] <sprayd> so ffmpeg project needs the updated standards to maintain efficiency or make improvisations in its code?
[17:17] <JEEB> for both
[17:17] <JEEB> I mean
[17:18] <JEEB> access to up-to-date standards and specifications would let people just get them and implement stuff by the newest guidelines. While otherwise you'd have to either search for yourself and hope someone has at least uploaded some kind of version :P
[17:19] <sprayd> hmm
[17:19] <JEEB> or, if no documents are found, someone has to get something implementing the standard or just look at some app's output and try to see how to implement something similar
[17:19] <sprayd> the situation thus painted looks complex for developers of projects like this one, isn't it?
[17:20] <JEEB> Has anyone really been far even as decided to use even go want to do look more like?
[17:20] <JEEB> in other words, "pardon me?"
[17:21] <Jetbeard> Can somebody explain the 'bufsize' variable to me? All the ffmpeg docs say is "Set video buffer verifier buffer size (in bits)." which just confuses me even more.
[17:21] <Jetbeard> Will it affect the output file at all, or is it just the size of some buffer used for transcoding?
[17:21] <JEEB> Jetbeard, basically the buffer that the <thing> that reads the stream first reads up and keeps reading
[17:21] <JEEB> we have bufsize and maxrate
[17:22] <JEEB> the idea is that as long as the overall bitrate inside a buffer of bufsize doesn't go over maxrate
[17:22] <JEEB> you would never need to buffer again
[17:23] <Jetbeard> So it reads the file in <bufsize> bits at a time?
[17:23] <JEEB> (in other words bitrate control within a buffer)
[17:23] <JEEB> uhh
[17:23] <sprayd> i meant the developers have to rely on such specifications which if not available could be a problem...
[17:23] <JEEB> it's a setting that you have to match to your playback environment
[17:23] <JEEB> it just encodes the stream to match those limitations of the playback environment
[17:24] <JEEB> basically it means that if you first buffer bufsize amount of data and have data rate of >= maxrate
[17:25] <JEEB> it should just play
[17:25] <Jetbeard> Okay, I vaguely understand
[17:26] <Jetbeard> So how do I choose an appropriate value of bufsize for the playback environment?
[17:26] <Jetbeard> (The playback environment being in this case a cheap DVD player)
[17:26] <michaelni> sprayd, yes
[17:26] <JEEB> the general DVD specs should help you with that
[17:26] <michaelni> and not only a problem, a big one
[17:27] <JEEB> because they are generally made so that every DVD player supposedly follows them
[17:27] <michaelni> if you implement a encoder based on a 5 year old draft the encoder might generate files that are buggy
[17:27] <michaelni> becuase the 5 year old draft might contains typos that have been fixed in the current spec
[17:27] <JEEB> or well, every DVD player supposedly should be made to implement the DVD specifications :P
[17:29] <sprayd> so michaelni what would i need to submit for the task? a report of the people who maybe interested with their contacts?
[17:36] <michaelni> sprayd, a ftp account with the iso specs would certainly do, just some names & email addresses of people would not. Something in between like someone from ISO who agrees to push for free specs for free software projects, i dunno
[17:36] <sprayd> okay
[17:36] <sprayd> i'll do my best
[17:36] <sprayd> :)
[17:50] <mantas322> back
[17:50] <mantas322> anyone here
[17:50] <mantas322> ?
[17:50] <Hyperi> Type /names
[17:50] <Hyperi> 18:50:49 Irssi: #ffmpeg: Total of 184 nicks (6 ops, 0 halfops, 1 voices, 177 normal)
[17:51] <mantas322> are there arguements for ffmpeg to scale something down to a specfic width, or percentage
[17:51] <mantas322> ?
[17:51] <mantas322> maintaining the aspect radio
[17:51] <mantas322> im resize images only btw
[17:52] <jegade> Hi, i like to convert any input to a mp4 video, something thats work with mediaelementjs.com 
[17:52] <jegade> any hint, which profile/tune or other option i need?
[17:52] <jegade> an working mp4 contains this stream Video: h264 (Constrained Baseline), yuv420p, 480x270 [PAR 1:1 DAR 16:9], 818 kb/s, 30 fps, 30 tbr, 3k tbn, 6k tbc 
[17:53] <Hyperi> mantas322: Use imagemagick instead of ffmpeg?
[17:54] <Hyperi> ffmpeg is made for AV, imagemagick for images
[17:54] <mantas322> I briefly looked into using imagemagik the other day
[17:54] <mantas322> and figured ffmpeg was simpler
[17:54] <mantas322> to use programatically
[17:55] <mantas322> but okay
[17:55] <mantas322> I'll take another stab at it if u thhink its best
[17:55] <relaxed> mantas322: -vf scale=640:-1 would scale to 640 and maintain the AR
[17:56] <mantas322> thanks relaxed
[17:56] <mantas322> im currently running my script thats creating thumbnails 80by80 on 42,000 images
[17:57] <mantas322> after that finishes I will try to play around with you arguement
[17:57] <mantas322> if it doesnt finish in the next 20 minutes i'll do this on monday
[18:03] <mantas322> this isnt not going to finish
[19:22] <pingufan> Hello, I want to compress a .mkv file a little bit more because network is too slow for playing. I remember that robert swain had a wonderful description, but I cannot find it any more. Can someone help me, please?
[19:23] <pingufan> The file shall remain in hd1080, but I used often a qualit level of ~20-21.   
[19:23] <pingufan> Has somebody a simple to understand documentation?
[19:24] <jxself> If you compressed it originally from the source, why not do that again but with greater compression this time?
[19:25] <pingufan> The file I got has 13GB. I know that 6GB is plenty enough with h.264 and will then fit onto a DL DVD, too.
[19:25] <pingufan> So I have to recode the file.
[20:00] <teratorn> any xuggle users here? know how to get access to individual channels (YUV420 planes) from an IVideoPicture?
[23:30] <SMJ> does any CPU encode 1920x1080 at 30fps?
[23:30] <SMJ> with x264
[00:00] --- Sat Dec 17 2011


More information about the Ffmpeg-devel-irc mailing list