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

burek burek021 at gmail.com
Tue Apr 24 02:05:02 CEST 2012


[00:10] <SpaceBass> hey folks, may be a very basic question, but racking my brain on this...
[00:10] <SpaceBass> where can I download the preset files?
[00:11] <Mavrik> preset files for what?
[00:11] <SpaceBass> a software package I'm using is looking for presets such as "slow" and "medium"
[00:11] <SpaceBass> Mavrik, ffmpeg?
[00:11] <SpaceBass> .ffpreset files specifically
[00:11] <Mavrik> well, preset files are just stored command-line parameters
[00:12] <Mavrik> so... the answer is "anywhere"
[00:12] <Mavrik> what are you trying to do?
[00:13] <SpaceBass> Mavrik, I'm trying to get a package called MythExport to work, basically it transcodes recordings made by mythtv. all of the docs and forum posts refer to a few specific presets like they are part of the ffmpeg install, and not provided by the myth export package
[00:13] <Mavrik> ok.
[00:14] <Mavrik> let's try this again: TO WHAT are you trying to transcode your videos and where did you hear about those presets?
[00:15] <SpaceBass> guessing I didn't answer the right question, although think I'd likely answer it the same way given the way you've re-posed it
[00:15] <SpaceBass> I am trying to convert to m4v, h264 files and I heard about them in the docs and forum posts related to the mythexport package
[00:16] <SpaceBass> those docs/posts refer to presets such as "slow" "slowfirstpass" and "medium" and all I have are these: http://pastebin.com/XXz34k3k
[00:16] <Olson> i've got some presets there http://olson.hopto.org/ffmpeg
[00:16] <Mavrik> SpaceBass: ah, I see
[00:17] <SpaceBass> Mavrik, I'm pretty novice with this stuff, if it's not obvious :) appreciate the hand holding :)
[00:17] <Mavrik> SpaceBass: there are no more separate presets for libx264 (H.264) anymore - ffmpeg now invokes them directly from x264 library
[00:17] <Olson> for me they live in /usr/local/share/ffmpeg
[00:17] <SpaceBass> Olson, that's where mine are too
[00:17] <Mavrik> SpaceBass: you have to use "-preset <preset>" parameter instead of "-vpre <preset>"
[00:17] <Mavrik> SpaceBass: you also don't need any preset files anymore
[00:17] <SpaceBass> Mavrik, good to know, thanks
[00:18] <Olson> cool
[00:18] <Mavrik> (but that's libx264 specific, that's why I wanted to know what your goal is)
[00:18] <Mavrik> SpaceBass: this might help you: http://www.virag.si/2012/01/web-video-encoding-tutorial-with-ffmpeg-0-9/
[00:19] <SpaceBass> to make matters even more complicated, the ffmpeg arguments are generated by, what I believe is, a perl script herE: http://pastebin.com/kcY9d0jZ
[00:20] <SpaceBass> Mavrik, thanks, I'll read up
[00:20] <Mavrik> SpaceBass: you'll have to replace "-vpre" with "-preset"
[00:20] <SpaceBass> Olson, thanks for your d/l, it appears some of the ones the MythExport package is looking for are in that zip. I'll experiment with altering MythExport's pearl as well as using the ones you provided
[00:20] <Mavrik> probably lower the CRF to ~25 if you want any quality
[00:21] <Mavrik> and lose the "-f ipod" if you're not encoding for (now really obsolete) iPods
[00:21] <SpaceBass> Mavrik, thanks, will try both. Target is a h264 encode for AppleTV and iPad, so no need for iPod support
[00:22] <SpaceBass> I was trying with -vpre libx264-lossless_medium, since I have that preset in the filesystem. now that I know I need -preset, is that still a valid approach, or should I use the medium preset from Olson 's zip?
[00:23] <Mavrik> use the medium preset
[00:23] <Mavrik> (and you don't need any .ffpreset files - presets are "baked" into libx264 now)
[00:23] <SpaceBass> thanks much!
[00:23] <Mavrik> (I'm guessing your ffmpeg is reasonably new)
[00:23] <Olson> I haven't updated and build ffmpeg for a while.. so.. is that right when I do I need change my command lines a bit
[00:23] <SpaceBass> ah, so should I just 86 that parameter all together?
[00:24] <SpaceBass> yep, using latest git clone for both ffmpeg and x264, both compiled today
[00:24] <Mavrik> ah ok, just pass in "-preset medium" and don't worry about the files
[00:24] <Mavrik> Olson: well if you're still using preset files for H.264, your ffmpeg is pretty ancient
[00:25] <Olson> it could be uhm.. 6 months?
[00:25] <Mavrik> there were quite a few changes from that time
[00:25] <Olson> more perhaps
[00:25] <Mavrik> more. at least your build is older :)
[00:25] <Olson> I kinda.. because I do screencasting if it aint broke I dont fix it kinda thing
[00:25] <Mavrik> mhm
[00:26] <Olson> is say built 22 aug 2011
[00:26] <Olson> so.. yeah :P
[00:26] <Olson> i hadn't realised quite it be that long
[00:27] <SpaceBass> just tried running by hand with: bigsky:~$ ffmpeg -i /local/media/LiveTV/recordings/1351_20120416210000.mpg -y -vcodec libx264 -vpre medium -crf 28 -threads 0 -s 960x540 -acodec libfaac -ab 96k -ac 2 -aspect 16:9 ~/test.m4v
[00:27] <SpaceBass> and got "File for preset 'medium' not found"
[00:27] <Mavrik> SpaceBass: replace "-vpre medium" with "-preset medium" as I said. ;)
[00:27] <SpaceBass> ugh! Can't believe I missed that again
[00:27] <SpaceBass> :)
[00:28] <SpaceBass> worked! thanks Mavrik!
[00:29] <Olson> soo.. if I updated via GIT I would be getting what  FFmpeg 0.10.2?
[00:30] <Olson> oh well.. I guess I could checkout that version eh
[00:30] <Olson> but..
[00:30] <Olson> nevermind I didn't think it through
[00:30] <SpaceBass> ffmpeg version N-40057-g2ea5f86
[00:32] <Mavrik> Olson: you'd be getting something newer than 0.10.2 :)
[00:33] <Olson> yeah :P
[00:54] <SpaceBass> inspired to lean the arguments better? reading up on crf ?. is lower better?
[00:58] <Olson> depends what you mean by "better"
[00:58] <SpaceBass> image quality
[00:58] <JEEB> the idea of crf is to find the highest number that still looks good for you
[00:58] <JEEB> lower numbers try to go closer to the source (at the expense of bit rate)
[00:58] <SpaceBass> helpful, thanks!
[00:59] <JEEB> (and higher ones in theory go "further" from the source)
[00:59] <Olson> I use erm..
[00:59] <JEEB> (and thus use less bit rate)
[00:59] <Olson> 22
[00:59] <JEEB> well, if that looks good for you that would sound like you would be getting relatively good compression :)
[01:23] <SpaceBass> wow, getting 267 fps on a 1080p source file using -preset superfast
[01:26] <JEEB> yes, libx264 can be as quick or slow as you wish
[01:27] <JEEB> thus the general guideline is to use the slowest preset you can bear
[01:27] <SpaceBass> just not used to seeing those kind of frame rates when I use handbrake ? anxious to see the quality of this file when it's done, guessing its going to be pretty poor
[01:28] <JEEB> if it's crf and the value is around your liking it should be fine, what could be bad is possibly the compression ratio
[01:31] <SpaceBass> ah
[02:17] <Rik316>  char *start = strchr(uc->filename, ',');
[02:17] <Rik316> Can someone explain to me why there would be a comma in the middle of a url? right after the protocol specification...
[02:17] <Rik316> and if there was a comma specifically... why would that be important
[02:30] <Rik316> I disced, did anyone answer my question
[02:57] <elkng> I did built "ffmpeg-0.6.3" version and now trying to build "ffmpeg-0.10.2" version using same options for "configure" but it says "Unknown option:" "--enable-avfilter-lavf" "--enable-libfaad", where are they ? how can I enable "libfaad" ?
[03:18] <iive> elkng: i think libfaad have been removed in favor of the internal aac decoder
[03:19] <iive> not sure what the first option is.
[03:19] <elkng> no need for faad2-2.7 package in system ?
[03:20] <iive> other programs may use it, but ffmpeg won't.
[03:44] <elkng> one time I run "configure" it prints: "License: LGPL 2.1" another time it prints: "License: nonfree and unredistributable"
[03:44] <elkng> why are they differ ?
[04:14] <elkng> what about "libfaac" was it replaced by internal version ?
[04:19] <taqattack> I'm getting this error when I'm trying to merge two audio sources into one using my build of ffmpeg: http://pastebin.com/Jbi1vZ1J . But Using Zeranoe build of FFmpeg I don't. Am I missing any libraries?
[04:21] <taqattack> i believe its "libvo_aacenc" now. You need to enable-gpl and enable-nonfree to compile those.
[05:15] <diracdelta> Hi, the documentation for ffmpeg claims the existence of a -tile filter, but when i run ./configure --list-filters, it does not appear as an option. Is this a planned feature?
[08:04] <elkng> when I use version of ffmpeg 0.6.3 while converting video in a CPU with one core but with hyperthreading the command "top" shows there is less than 95-98% of CPU's load,
[08:04] <elkng>  now using 0.10.2 version on same CPU the command "top" shows its 160-180% load, is this version used more threads ?
[08:04] <elkng> when I did used version "ffmpeg 0.6.3" I did run 2 parallel ffmpeg processes for recoding 2 video files be cause there is hyperthreading and it should be faster, but if now one ffmpeg procees used hyperthreading ability is it worth to run 2 ffmpeg processes ?
[08:12] <elkng> there are features listed in changelog added after 0.6 they are: "VP8 frame-multithreading" "Frame multithreaded decoding" and "H264/MPEG frame-level multi-threading" is that it ?
[08:23] <toulouse> Question: I want to write a Java library I can embed in an application to take a mp4 and emit an HLS playlist - but I don't know the first thing about mpeg 2 transport streams. How involved and how resource-intensive is segmenting on the fly? Is lazily generating the segments tractable?
[08:30] <toulouse> welp, doesn't look like i'll get an answer here
[08:31] <elkng> "This channel is publicly logged", where are the logs ?
[16:02] <l-b> hello
[16:08] <l-b> I have tried this script to save the first frame of a video file: http://stackoverflow.com/a/10042169
[16:08] <l-b> my command line is like this:
[16:09] <l-b> /cygdrive/c/programs/ffmpeg/bin/ffmpeg.exe -i avideo.mp4 -ss 0 -vframes 1 -vcodec mjpeg -f image2 avideo.jpg
[16:10] <l-b> I get the error "video.mp4: No such file or directory" - why is it cutting off the first letter of the name?
[16:17] <l-b> it might be a quirk of cygwin... I call that in a loop generating lines on the fly and it failed ~80% of the time. after piping the generated commands into a file and executing that, everything's fine. a cygwin/bash question then, perhaps.
[17:11] <FiSHNUGGET> I am trying to get video duration of a file on s3.  FFMPEG works on all files on my local machine, but not on files stored in s3.  The output of the command is seen here http://pastebin.com/tnRHisgF .  Any help would be great&
[17:12] <Mavrik> FiSHNUGGET: you're using really obsolete version of ffmpeg
[17:12] <Mavrik> plus, for file info, "ffprobe" is used now
[17:13] <Mavrik> and thus ffmpeg executable demands output
[17:14] <FiSHNUGGET> it does work on local files though
[17:14] <FiSHNUGGET> but you're saying use ffprobe instead off ffmpeg -i?
[17:14] <Mavrik> yes.
[17:14] <Mavrik> you probably have different versions installed locally and on S3
[17:15] <FiSHNUGGET> it doesn't need to be installed on s3.  I just need it to read the file from s3 and give me back the duration.  There is an example of it here http://stackoverflow.com/questions/2677317/how-to-read-remote-video-on-amazon-s3-using-ffmpeg but I can't get it to work.
[17:16] <FiSHNUGGET> let me see what happens with ffprobe
[17:22] <FiSHNUGGET> hmm&.  no such file reported from ffprobe.  But I do see it was configured w/ --disable-network.  Would this prevent communication w/ S3?
[17:26] <Mavrik> most likely ;)
[17:26] <Mavrik> considering you have to use https.
[17:26] <Mavrik> *http
[17:31] <andrew__> If I am piping the output of ffmpeg to a video player, would 3gp or mp4 be a suitable type?
[17:32] <andrew__> Are there extra flags that I need call on the cmd line to make the output suitable?
[17:33] <Mavrik> hmm, mp4 probably won't be
[17:33] <Mavrik> since it has file info atoms at the end
[17:33] <Mavrik> don't know much about 3gp structure though
[17:34] <andrew__> ok, so I should investigate 3gp you think?
[17:41] <FiSHNUGGET> ffprobe works on the remote server.  I guess they have a newer version of ffmpeg.
[17:41] <FiSHNUGGET> thanks for the tip
[20:28] <praedo> hello
[20:29] <praedo> i'm trying to encode a NTSC DV file and i only get sound when played in windows media
[20:29] <praedo> no video
[20:29] <praedo> but if i encode it with mpeg streamclip, it works with audio+video
[20:30] <praedo> this is the command i sue:
[20:30] <praedo> use
[20:30] <praedo> ffmpeg -i file.avi -vf yadif=0:1 -vcodec libx264 -preset veryfast -crf 22 -threads 0 -acodec libfaac -aq 100 file.mp4
[20:30] <praedo> it worked with PAL DV
[20:31] <praedo> what do i have to change to work with NTSC DV?
[20:36] <Mavrik> uhhm
[20:37] <Mavrik> praedo: you're creating an mp4 file, not a .dv file
[20:37] <Mavrik> basically you're encoding into H.264/AAC in MP4
[20:37] <Mavrik> there's nothing DV connected here
[20:38] <Mavrik> NTSC DV would be created by ffmpeg -i file.avi -vf yadif=0:1 -target ntsc-dv file.dv
[20:38] <praedo> no, input is already dv
[20:38] <praedo> i don't need to export to dv
[20:39] <praedo> it's a project already encoded to .avi (NTSC DV profile) in premiere
[20:40] <Mavrik> I see.
[20:40] <Mavrik> So what exactly do you want to do with it?
[20:42] <praedo> encode the .avi into .mp4
[20:42] <praedo> as i usually did with that command for PAL DV projects
[20:43] <praedo> i get blank video
[20:43] <praedo> and the only difference is that it's NSTC
[20:43] <Mavrik> command as you pasted it gives no reason for a difference between PAL and NTSC
[20:44] <Mavrik> can you paste ffmpeg output when transcoding?
[22:04] <burek> how to tell ffmpeg to use either full stereo or joint stereo for mp3 files output?
[22:38] <caleress> hey guys, does any1 know if wmp12 can play a mpeg2video in an avi container ?
[22:39] <Mavrik> I'm 90% sure it can.
[22:39] <JEEB> wmp12 can handle MPEG-2, yes. The avi container could be the problem
[22:39] <JEEB> (wmp12 = win7)
[22:40] <JEEB> unless you are dealing with the euro version without the multimedia stuff
[22:40] <caleress> yup it can play from the mpg container
[22:40] <caleress> but muxed it to avi with ffmpeg and i only get audio :/
[22:41] <JEEB> recommendation of the day: don't put MPEG-2 in avi
[22:41] <caleress> heh :p
[22:41] <caleress> so it doesnt work ?
[22:41] <Mavrik> huh, now that's downright silly behaviour
[22:42] <JEEB> Mavrik, IIRC there was some funny stuff related to MPEG-2 in AVI
[22:42] <JEEB> many things have some kind of specific support for it or whatever
[22:42] <JEEB> I just guess MS didn't do that
[22:42] <JEEB> but to be honest, it's just better off not to use AVI for MPEG-2
[22:42] <caleress> well
[22:43] <caleress> i tried putting into mp4
[22:43] <caleress> same story
[22:43] <Mavrik> mp2? :)
[22:43] <caleress> yeah mpeg-ps work :p
[22:43] <JEEB> yeah, mp4 should be theoretically fine
[22:43] <JEEB> but I guess they didn't think of that
[22:43] <JEEB> in other words, didn't implement it
[22:44] <caleress> pretty weird, why would only mp2 work and avi+mp4 not, it's the same goddamn stream and the spec supports it
[22:45] <Mavrik> if (file.ext == "mp4") { open_decoder(H.264) }
[22:45] <caleress> hehe :)
[22:46] <JEEB> probably their mp4 splitter just doesn't support splitting MPEG-2
[22:46] <caleress> and avi splitter doesnt as well :/
[22:46] <JEEB> as for avi, I'm not exactly sure on details but I'm not sure if the MPEG-2 decoder can do it
[22:47] <JEEB> could be a splitter or decoder thing with AIV
[22:47] <JEEB> *AVI
[22:47] <caleress> well if i put it into mpeg-ps it plays fine
[22:47] <caleress> so definitely splitter
[22:49] <JEEB> with AVI there was something special
[22:49] <JEEB> because a lot of decoders had options for MPEG-2 in avi
[22:49] <JEEB> back in the day
[22:49] <JEEB> but yeah, either splitter or decoder
[22:50] <caleress> so there's no special option or something that i would need to add to ffmpeg when transforming it to avi?
[22:51] <JEEB> nope
[22:51] <JEEB> it should be taking care of that automagically
[22:52] <JEEB> so yeah, MS's stuff will limit you to mpeg-ps and mpeg-ts
[22:52] <caleress> hmm ok
[22:53] <caleress> thought their players would support their own formats, but ok :)
[22:54] <caleress> tnx guys
[22:56] <burek> how to tell ffmpeg to use either full stereo or joint stereo for mp3 files output?
[22:56] <JEEB> I would guess there's a setting for that in LAME?
[22:57] <JEEB> since LAME is what you should be using when encoding mp3
[23:13] <cvprog> hello world how ccan i make a single frame into a movie i tried ffmpeg -f image2 -i ~/Pictures/here.png -i smoke.mp3  -acodec copy -sameq out.flv
[23:13] <cvprog> does not work, and ffmpeg  built on Feb 15 2012 07:17:25 with gcc 4.6.1 does not seem to have loop_input
[23:16] <cvprog> :)
[23:17] <burek> you need -loop 1
[23:18] <cvprog> burek: ill try ...
[23:21] <cvprog> burek:  worked :D
[23:28] <burek> :beer: :)
[00:00] --- Tue Apr 24 2012


More information about the Ffmpeg-devel-irc mailing list