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

burek burek021 at gmail.com
Sun Apr 22 02:05:03 CEST 2012


[00:03] <iive> DelphiWorld: decoder - yes. there is an encoder, but you don't want to use it :)
[00:04] <DelphiWorld> iive: LOL :)
[00:04] <DelphiWorld> iive: a bit pissing question:P please suggest a low biterate audio / video codec that i can use with ffmpeg, by default
[00:06] <iive> lower than mp3? not sure there is one. mp2 and ac3 use higher bitrate.
[00:07] <DelphiWorld> iive: ok, higher audio ? good one? ;)
[00:10] <stf> is there any limitation for copy map streams?
[00:11] <barilo> how do I convert some images into a video?
[00:13] <Mavrik> DelphiWorld: I usually use AAC+ with libaacplus when I have to encode really low bitrate audio
[00:13] <Mavrik> just make sure your playback devices support it
[00:13] <DelphiWorld> Mavrik: vlc
[00:14] <DelphiWorld> Mavrik: please may i pm you?
[00:19] <stf> hm i think i have found the problem: ffmpeg do not like to copy more then one Audio stream&
[00:23] <bahar> what will it take for ffmpeg to support OpenCL or CUDA?
[00:30] <DelphiWorld> good night folks
[00:31] <JEEB> bahar, it took a company with close ties to a GPU maker and an actual development team, as well as months' worth of time to develop something useful'ish for x264 (not ready yet)
[00:31] <bahar> what about VPDAU? i take it you can compile ffmpeg w/ support for VPDAU? that will offload some work to the GPU?
[00:31] <bahar> VDPAU*
[00:34] <JEEB> VDPAU/CUVID are APIs to use nvidia's dedicated hardware on their GPUs to decode stuff, yeah. I don't know if ffmpeg supports them, though.
[00:34] <bahar> http://forums.fedoraforum.org/showthread.php?t=260198
[00:34] <bahar> apparently some guy compiled ffmpeg with VDPAU support
[00:34] <JEEB> (the GPU has a decoding ASIC on it, and you just feed stuff to it and get decoded pictures back)
[01:15] <district> hi. is there something like avformat_open_input() that works with an already opened file descriptor?
[01:17] <teratorn> hey, can anyone recommend a video editing library based on ffmpeg?
[02:23] <freeminds> I have the feeling that the -t option is pretty inaccurate is there a better option?
[03:53] <taqattack> I'm having some issues with piping output in flv into another ffmpeg process. Does anyone know how to do this?
[04:11] <connelly> could someone help me out with some trouble I'm having with ffserver? It appears to keep taking info from ffmpeg until it's feed file fills up and then just hangs
[07:31] <taqattack> I have a question. If I have a software call FFmpeg through CLI that has built in mp3 library and x264 library, do I need to release my source code. I don't intend to sell it though.
[07:41] <mystica555> taqattack: do you link to libffmpeg? or simply call it via commandline?
[07:41] <mystica555> if entirely through commandline, you are simply utilizing a tool in userspace; this needs no licensing provision at all imho (i am not a lawyer, but im pretty sure its legally sound)
[07:41] <mystica555> if you linked to it, then you are making a derivative so then the licensing comes into play
[07:42] <mystica555> taqattack: its also my understanding (again, i am not a lawyer, i could be wrong on this) but if you did use it for internal use, and not distribute it, you technically shouldnt have to either.
[07:43] <mystica555> but, as soon as you distribute modifications, then again the licensing comes into play
[08:33] <spyzer> hey everyone, i converetd a video from mov to mp4 from ipod using this command
[08:33] <spyzer> fmpeg -i IMG_0146.MOV -vf "hflip,vflip" my.mp4
[08:33] <spyzer> but the quality of video has degraded
[08:34] <spyzer> Input is this -> Stream #0.0(und): Video: h264 (Baseline), yuv420p, 640x480, 3526 kb/s, 30.02 fps, 30 tbr, 600 tbn, 1200 tbc
[08:34] <taqattack> mystica555: Thanks. I did compile it using GPL with external libraries. And I guess I will be fine since I am calling it via CLI only.
[08:34] <spyzer> Output is this ->  Stream #0.0(und): Video: mpeg4, yuv420p, 640x480, q=2-31, 200 kb/s, 30 tbn, 30 tbc
[08:34] <spyzer> I do not understand these numbers actually
[08:35] <Mavrik> spyzer, well, you didn't tell the encoder anything about what quality you want
[08:35] <spyzer> So may anyone please help me to raise up the video quality
[08:35] <spyzer> okay so by default what doe sit do, Mavrik?
[08:35] <Mavrik> as you see, set bitrate to 200 kb/s :)
[08:35] <mystica555> taqattack: indeed, it should be fine if its just calling from commandline
[08:35] <spyzer> okay so use -b option?
[08:35] <Mavrik> spyzer, mhm
[08:35] <Mavrik> spyzer, see this: http://www.virag.si/2012/01/web-video-encoding-tutorial-with-ffmpeg-0-9/
[08:35] <spyzer> thanks :)
[08:36] <Mavrik> spyzer, also encoding with libx264 instead of mpeg4 would probably help
[08:36] <spyzer> Mavrik: does it matter that i specify the bitrate in powers of 2?
[08:36] <Mavrik> nop, bitrate can be anything
[08:36] <Mavrik> higher the number, the bigger the file
[08:37] <spyzer> ahh i see
[08:37] <taqattack> mystica555: What if I don't show the commandline interface? As in I'm using my software as a GUI for FFmpeg backend.
[08:37] <mystica555> again its all about linking
[08:37] <mystica555> if you yourself are simply calling ffmpeg via a commandline, its not license related imho
[08:37] <mystica555> if you link to libffmpeg, then it becomes a license issue
[08:38] <mystica555> just like k3b calls cdrecord, mkisofs, etc
[08:38] <mystica555> it doesnt link to any of them
[08:38] <mystica555> just calls them and pipes data
[08:39] <taqattack> Yeah that's what I'm trying to do essentially. But what about libmp3 and libx264?
[08:39] <taqattack> Since ffmpeg calls them internally. I dont have to worry about those too, right?
[08:40] <Mavrik> why would you? You're calling ffmpeg binary, not linking to them
[08:40] <mystica555> exactly
[08:40] <mystica555> its only if your program itself links
[08:40] <Mavrik> ffmpeg has those issues cleared (when you compile ffmpeg you see under which license it is license... and that's dependent on what you link to)
[08:41] <taqattack> Since it was external libraries and not included in ffmpeg. I assumed it was kind of like linking ot to the databases
[08:41] <taqattack> But yeah I understand now.
[08:41] <mystica555> nah, you are calling a program; that program (ffmpeg) can be a black box to you if you only execute it and not link to a shared/static library called from within your pogram
[08:42] <mystica555> *program
[08:42] <taqattack> So why don't all these commercial applications make use of Ffmpeg then?
[08:42] <Mavrik> which commercial applications? :)
[08:42] <Mavrik> alot of apps use ffmpeg internally
[08:43] <Mavrik> heck we used it at my IPTV provider to transcode video channels on the fly :)
[08:43] <taqattack> Interesting.
[08:44] <taqattack> Okay. Well that clears up a lot of things. Thanks again.
[08:45] <mystica555> indeed, ffmpeg gets used a *lot* of places
[08:45] <mystica555> look at youtube
[08:46] <mystica555> potentially the largest ffmpeg user ever
[08:51] <djdduty> hello!
[08:52] <djdduty> I am trying to run the command ffmpeg -f image2 -r 25 -i *.jpg -vcodec libvpx -vpre 1080p -ar 22050 -crf 22 video.mp4 to compile a bunch of pictures into a timelapse, but I get the error "Could not write header for output file #796 (incorrect codec parameters ?) and I have 796 photos that will compile D:
[08:56] <djdduty> hmm, I tried a different command but vlc won't display the video
[08:56] <djdduty> :(
[08:57] <djdduty> well I think it is playing, but it is only 0.0001 sec long D:
[09:00] <djdduty> hmmm
[09:00] <djdduty> :(
[09:10] <taqattack> I'm having some issues with ffmpeg streaming to RTMP. I'm getting low framerates when uploading to the server. http://pastebin.com/gVw3EdZ1
[09:12] <taqattack> I mean I've tried to save it to harddrive which works flawlessly.
[09:12] <djdduty> so, ffmpeg -f image2 -r 20 -i *.jpg -sameq -crf 20 video.mp4 is not working for me to make a bunch of images taken 10 seconds apart into a video at 20 fps :(
[09:13] <taqattack> I think i might have figured it out
[09:14] <taqattack> when you put 20 fps you're displaying 20 pictures in 1 second
[09:14] <djdduty> taqattack: oh, sorry let me look
[09:14] <djdduty> I have a streaming script that works great, allthough it is EXTREMELY cpu intensive
[09:14] <djdduty> taqattack: yes I know
[09:14] <djdduty> taqattack: I have 7980 pictures
[09:16] <djdduty> taqattack: what is your script?
[09:16] <taqattack> I'm calling FFmpeg
[09:16] <taqattack> with
[09:16] <taqattack> -y -report -re -i ffmeg.flv -vcodec copy -threads 0 -acodec copy -f flv rtmp://live.justin.tv/app/live_20700021_hqykFR8HfNfH0tIqK4faPu73mk2req
[09:17] <taqattack> That's my second thread of ffmpeg
[09:17] <djdduty> you just gave out your live key -.-
[09:17] <taqattack> It's a test livekey
[09:17] <djdduty> I see, mine is ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0+1200,896  -ab 96k \
[09:17] <djdduty>     -f alsa -ac 2 -i pulse -vcodec libx264 -crf 30 -preset "$QUAL" -s "1280x720" \
[09:17] <djdduty>     -acodec libmp3lame -ar 44100 -threads 0 \
[09:17] <djdduty>     -f flv "$URL"
[09:17] <djdduty> my script that is
[09:18] <djdduty> URL is my rtmp://live.justin.tv...
[09:18] <djdduty> INRES is my monitor res
[09:18] <djdduty> OUTRES is my target res to stream as
[09:18] <djdduty> FPS is my target fpsQUAL is simply "fast" right now
[09:18] <taqattack> I have something similar
[09:19] <djdduty> it is _very_ slow though
[09:19] <djdduty> well not slow
[09:19] <djdduty> it runs fine
[09:19] <djdduty> but 40% cpu usage on all threads D:
[09:19] <djdduty> just from it
[09:19] <djdduty> I don't know how to fix that
[09:19] <taqattack> Does it stream well?
[09:19] <djdduty> it actually causes my temperature threshold to trigger, freezing my machine and shutting down
[09:19] <taqattack> is librtmp compiled?
[09:20] <djdduty> I'd say it works good... www.justin.tv/djdduty
[09:21] <taqattack> u dont set the vbitrate or maxrate or bufsize?
[09:21] <djdduty> =/
[09:22] <djdduty> taqattack: I don't it appears D:
[09:22] <djdduty> taqattack: do you think that will help? :D
[09:24] <taqattack> This is mine: ffmpeg -r 30 -f dshow -i video="Dxtory Video 1":audio="Stereo Mix (VIA High Definition" -vcodec libx264 -preset ultrafast -vb 384k -maxrate 500k -bufsize 384k -acodec libmp3lame -ab 128k -f flv rtmp://live.justin.tv/app/
[09:24] Action: djdduty uses linux
[09:24] <djdduty> some of those wouldn't work :) but I see what you mean
[09:25] <djdduty> on windows, why not just use xsplit?
[09:25] <taqattack> the quality is not so good
[09:25] <taqattack> for the free version
[09:25] <taqattack> Especially audio is limited to 42k bitrate
[09:26] <taqattack> Plus it is a huge resource hog on the machine.
[09:26] <djdduty> taqattack: it used less on my windows that ffmpeg uses on my linux :D
[09:26] <djdduty> and they have the same exact hardware
[09:27] <taqattack> I havent tried it recently though.
[09:28] <taqattack> So you could be right. But the limited audio quality is still an issue for me and I needed a freeware alternative.
[09:31] <djdduty> maybe someone could enlighten me as to why livestreaming takes so much cpu?
[09:33] <taqattack> Real-time encoding would be my guess.
[09:34] <taqattack> I'm reading over the chat logs. I'm not sure what you're trying to do exactly.
[09:34] <djdduty> hmmm
[09:34] <djdduty> =/
[09:34] <djdduty> but I mean
[09:34] <djdduty> you will have to look at the htop stream I am doing right now
[09:34] <djdduty> xD
[09:34] <djdduty> www.justin.tv/djdduty
[09:35] <djdduty> stopped it
[09:35] <taqattack> Interesting
[09:37] <taqattack> It seems like you're trying to output image2 sequence
[09:37] <taqattack> ffmpeg -r 20 -i *.jpg -sameq -crf 20 -f mp4 video.mp4
[09:37] <taqattack> Try that maybe
[09:38] <djdduty> ok, turn your audio down, thhis is all screwed up! http://www.justin.tv/djdduty/b/315665819
[09:38] <djdduty> I have no idea what is wrong with the audio
[09:38] <djdduty> and no idea why it uses all 4 cores/threads at 40%
[09:40] <taqattack> That's some insane CPU usage
[09:40] <djdduty> yeah D:
[09:40] <djdduty> hmm
[09:40] <djdduty> I did not write this script
[09:40] Action: djdduty is ffmpeg noob
[09:41] <djdduty> how do I remove audio from streaming?
[09:41] <djdduty> http://www.justin.tv/djdduty/b/315665819
[09:41] <djdduty> oops
[09:41] <djdduty> wrong thing
[09:41] <djdduty> ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0+1200,896  -ab 96k \
[09:41] <djdduty>     -f alsa -ac 2 -i pulse -vcodec libx264 -crf 30 -preset "$QUAL" -s "1280x720" \
[09:41] <djdduty>     -acodec libmp3lame -ar 44100 -threads 0 \
[09:41] <djdduty>     -f flv "$URL"
[09:41] <taqattack> Try setting preset to veryfast
[09:41] <djdduty> like this? ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0+1200,896 -vcodec libx264 -crf 30 -preset "$QUAL" -s "1280x720" \
[09:41] <djdduty>     -acodec libmp3lame -ar 44100 -threads 0 \
[09:41] <djdduty>     -f flv "$URL"
[09:42] <djdduty> oops
[09:42] <djdduty> no not that
[09:42] <djdduty> I left in the avode and -ar
[09:42] <taqattack> Try
[09:43] <taqattack> I think u might need to set your output fps
[09:44] <djdduty> taqattack: wtf? veryfast brings everything up to the 58%
[09:45] <taqattack> I get 61% usage to 51% going from fast to veryfast
[09:45] <djdduty> =/
[09:45] <taqattack> Try limiting your output fps
[09:45] <djdduty> also, ffmpeg -r 20 -i *.jpg -sameq -crf 20 video.mp4 is my new timelapse compile script, havnt tested it
[09:45] <taqattack> That seems about right
[09:46] <djdduty> same problem on timelapse video
[09:46] <taqattack> output header?
[09:46] <taqattack> or 1 second video
[09:46] <djdduty> it is only like 0.001 sec long or something :(
[09:47] <djdduty> how do I add out fps?
[09:47] <taqattack> ffmpeg -r 20 -i *.jpg -sameq -crf 20 -r 20 -f mp4 video.mp4
[09:48] <taqattack> Are your files numbered?
[09:48] <djdduty> es
[09:48] <djdduty> with a timestamp
[09:50] <djdduty> didnt fix it
[09:50] <djdduty> I just realized
[09:50] <djdduty> how does it know which image to use first? D:
[09:50] <taqattack> Yes exactly
[09:50] <djdduty> my images are names like this 20120420132639.jpg
[09:50] <taqattack> can u give me example of the naming convention?
[09:51] <djdduty> 20120420110752.jpg is the first image
[09:51] <taqattack> what would the second image in the sequence be named
[09:51] <djdduty> 20120420174911.jpg is the last
[09:51] <djdduty> second is
[09:52] <taqattack> ....53.jpg?
[09:52] <djdduty> 20120420110780.jpg
[09:52] <taqattack> I think u might want to rename them for ffmpeg to read them correctly
[09:52] <djdduty> sorry wait
[09:52] <djdduty> the first one is messed up
[09:52] <djdduty> all the ones after are incrememnt by 1
[09:53] <taqattack> Can you run this
[09:53] <taqattack> ffmpeg -re -i video.mp4 -vcodec ljpeg -f image2 "output_%05d.jpg"
[09:54] <taqattack> It should extract out all the jpg used in video.mp4
[09:54] <djdduty> yes
[09:54] <taqattack> Were u able to extract all the images?
[09:55] <djdduty> it gave me output_00001.jpg
[09:55] <taqattack> and nothing else?
[09:55] <djdduty> nope
[09:55] <taqattack> Yeah so ffmpeg is only reading 1 jpg input
[09:55] <taqattack> and outputing that frame in mp4
[09:57] <taqattack> You might have to rename the files
[09:58] <taqattack> so that the first image in the sequence would start from 0
[09:58] <taqattack> http://ffmpeg.org/trac/ffmpeg/ticket/247
[09:59] <djdduty> taqattack: so, my script to take images every 10 seconds is as follows...
[09:59] <djdduty> while [ 1 ]; do scrot -q 100 $(date +%Y%m%d%H%M%S).jpg; echo "screen taken"; sleep 10; done
[10:04] <taqattack> I'm just not sure if ffmpeg will be able to recognize that sequence.
[10:08] <taqattack> You might need to change 20120420132639.jpg to something like input_00001.jpg, so on and so forth...
[10:08] <taqattack> 20120420110752.jpg to input_00001.jpg, 20120420110753.jpg to input_00002.jpg, etc.
[10:09] <taqattack> There might be a script to do this.
[10:10] <taqattack> But as an experiment, you could try with 2 files.
[10:11] <taqattack> and then try to run: ffmpeg -r 20 -i "input_%05d.jpg" -sameq -crf 20 -r 20 -f mp4 video.mp4
[10:11] <taqattack> TO see if it works.
[10:12] <taqattack> Anyways, its 4Am in the morning right now. I must go to bed. I hope you resolve this issue.
[10:13] <djdduty> you can do this in script, just have a varialbe initialize as 00001 and increment it by 1, name the picture frame_VARIABLE
[10:22] <djdduty> taqattack: k, now I have them named frame_(incremeting variable)
[10:22] <djdduty> so frame_1.jpg
[10:22] <djdduty> frame_2.jpg
[10:22] <djdduty> etc
[10:23] <djdduty> taqattack: and it still doesn't work
[10:23] <djdduty> with ffmpeg -r 20 -i *.jpg -sameq -crf 20 -r 20 -f mp4 video.mp4
[10:28] <djdduty> wait!
[10:28] <djdduty> I got it too work!
[10:28] <djdduty> \o/
[10:28] <djdduty> changed it too frame_%01d.jpg :)
[10:29] <djdduty> but I don't know if it will grab the double digit ones :(
[10:31] <northrup> anyone have any experience of getting ffmpeg to compile with CrystalHD support?
[10:33] <djdduty> taqattack: nvm it doesnt work
[10:33] <djdduty> it makes a video, of seemingly appropriate length, but of only the first screenshot D:
[10:43] <djdduty> RRAGGHHH wtf?!
[10:44] <djdduty> why is it making the video, but only with the very first frame spanned out the entire thing? O.o
[10:46] <djdduty> there we go!
[10:46] <djdduty> yay!
[10:46] <djdduty> \o/
[13:49] <burek> <djdduty> but I don't know if it will grab the double digit ones :(
[13:49] <burek> <djdduty> changed it too frame_%01d.jpg :) <---- it won't
[13:49] <burek> you specified that your images have 1 digit after the text "frame_" and before ".jpg"
[13:50] <burek> if you want double digits, like 01, 02, ... 10, 11, 12, ... use %02d
[14:06] <kami8785> i upgraded from .7 to .10 and now if i do something like rtmpdump | ffmpeg, it waits for rtmpdump to finish before starting to decode
[14:07] <kami8785> help would be much appreciated
[14:12] <Kakadu> can you give me a tip what options should I add? http://paste.in.ua/4191/#35
[14:18] <Kakadu> it seems I have wrong presets...
[14:19] <kami8785> any way i can force ffmpeg to start decoding right away instead of waiting?
[14:23] <Mavrik> Kakadu: you have obsolete command line for new ffmpeg versions
[14:24] <Mavrik> http://www.virag.si/2012/01/web-video-encoding-tutorial-with-ffmpeg-0-9/
[14:24] <Mavrik> kami8785: what do you mean by "waiting"?
[14:25] <Kakadu> Mavrik: I've looked at http://michaelchinen.com/2011/06/27/justin-tv-streaming-in-linux/ but now I'll investigate your link, Thanks.
[14:25] <Mavrik> Kakadu: new ffmpeg versions (in combination with libx264) now have a slightly different command-line parameters
[14:25] <kami8785> i used to use .7 and using this command "rtmpdump  | ffmpeg  -i - -r 1 -sameq -f image2 /path/%06d.jpg" it would instantly start decoding
[14:25] <Mavrik> there are no preset files anymore, the presets are now built-in
[14:26] <kami8785> now it takes >60 seconds to start
[14:26] <kami8785> presumably buffering the input
[14:26] <Mavrik> kami8785: ugh, using sameq probably doesn't do what you think it does :P
[14:26] <Mavrik> kami8785: yeah, setting analze duration or explicitly setting input formats will cut on that time
[14:27] <kami8785> sorry i dont understand, how can i set that stuff?
[14:27] <kami8785> id love to get back to having instant decoding like w/ the old version
[14:28] <kami8785> since my app relies on it
[14:29] <Mavrik> if you know your input format you pass "codec:v" and "codec:a" before the -i
[14:29] <Mavrik> or you check in documentation how to set analyze duration
[14:31] <kami8785> yeah ok analyzeduration -0 works
[14:31] <kami8785> ^_^
[14:31] <kami8785> thanks Mavrik
[14:32] <Mavrik> that MIGHT not detect all your streams ;)
[14:33] <kami8785> k i will keep that in mind if i encounter problems
[15:34] <mystica555> hm.. where would i start trying to diagnose a sigfpe in libavfilter
[15:35] <Mavrik> build it with debug filters, run with gdb
[15:35] <Mavrik> *debug parameters
[15:41] <mystica555> heh; seems the better option would be 'rebuild form git, maybe it'll work the next time' ;)
[15:41] <mystica555> as in, its not crashing anymore
[15:42] <mystica555> *from
[15:43] <mystica555> how much overhead (if any appreciable amount) is caused by the debug symbols included?
[15:43] <mystica555> ie, how much slowdown?
[15:43] <Mavrik> binaries are bigger, not to mention you have to build without optimizations to have any use of debugging
[15:43] <Mavrik> so yeah, very noticable slowdown
[15:44] <mystica555> hm didnt realize the lack of optimizations was part of it
[15:44] Action: mystica555 recompiles without debug 
[15:51] <Kakadu> I'm a little bit confused by strange error message. http://paste.in.ua/4192/#21
[15:58] <mystica555> Kakadu: itd seem that the jtv script is using randomly wrong commandline options for your version of ffmpeg.
[15:59] <mystica555> your version > newer versions (likely; as ffmpeg keeps changing things)
[16:00] <Kakadu> hmmm, some minute ago sound was OK....
[16:00] <Kakadu> mystica555: how to find solution?
[16:02] <mystica555> not certain; if you are saying that exact script worked not long ago, then i don't know what would have changed.
[16:05] <Kakadu> not the exact I was playing with video settings but now I can't revert it
[16:05] <Kakadu> Why ffmpeg's error message is so useless?
[16:06] <mystica555> you'd probably want to diff the original script for your new copy
[16:06] <mystica555> as for useless error messages... im getting some annoying ones with libx264
[16:08] <mystica555> [libx264 @ 0x2530c50] bad option 'preset': 'slow'
[16:08] <mystica555> to me, that seems like a perfectly valid option based on x264 --longhelp
[16:09] <mystica555> passing it as -x264opts preset=slow
[16:13] <mystica555> i bet my libx264 is too old...
[16:13] <mystica555> the difference 4 months makes >.>
[16:29] <theophilus> Hey guys... I want to use libavfilters to do a watermark logo and overlay text on some videos... I'm having trouble figuring out the documentation for drawtext and using it along side the movie option for the watermark logo... any chance someone could give me a sample command that uses both of these, so I could have something to go off of? The documentation is great and everything, but if I could see an example of it, that would be
[16:29] <theophilus>  golden!
[16:33] <mystica555> [libx264 @ 0xb09c50] bad option 'preset': 'slower'
[16:33] <mystica555> any ideas?
[16:33] <mystica555> -x264opts  crf=18:preset=slower
[16:35] <Mavrik> why aren't you just using "-crf 18 -preset slower" ?
[16:38] <mystica555> at least one point during the reading of the ffmpeg manual i came across options that were deprecated so i was potentially under the wrong assumption that others would be to; such as, level
[16:40] <mystica555> granted ive reinstalled ffmpeg today, so if a newer manual appeared within the last few weeks, that changed the wording, it no longer shows it for anything but level..
[16:41] <mystica555> also, the crf= option only seems to appear in libvpx; and -x264opts crf=18 worked fine
[16:41] <mystica555> rather the -crf option
[16:41] <mystica555> ...
[16:42] <mystica555> not sure how much of that you got..
[16:43] <mystica555> i think it was mainly strangely deprecated and non-deprecated things in the manual confusing me.
[16:43] <mystica555> and, -crf seems to only be for libvpx as -x264opts crf=18 works fine
[16:43] <mystica555> *shrug*
[16:49] <theophilus> (bump) Anybody think they can help with some libavfilter stuff?
[17:08] <burek> <Kakadu> Why ffmpeg's error message is so useless? <--- because you don't rtfm :)
[17:08] <burek> mystica555
[17:08] <burek> can you please use pastebin.com, to show your command line and its output?
[17:09] <mystica555> afaik the relevant info was -x264opts crf=18:preset=slow causes '[libx264 @ 0x2530c50] bad option 'preset': 'slow''
[17:09] <mystica555> which is bypassed with -preset slow
[17:10] <mystica555> (taking out :preset=slow in x264opts)
[17:10] <burek> ok, then, help yourself :)
[17:10] <mystica555> i apparently did :)
[17:11] <mystica555> at one point i believe the manual stated that certain options were deprecated; then i compiled a new version today and it may have changed; or im just reading it wrong
[17:11] <mystica555> ie, i could have sworn all of 'level' 'preset' and 'profile' were 'deprecated, in favor of x264opts'
[17:11] <mystica555> now i only see 'level' as being on that list
[17:12] <mystica555> then again my brain is holier than a piece of swiss cheese so i could be entirely wrong
[17:12] <mystica555> but, its encodin g;)
[17:12] <mystica555> *encoding
[17:13] <mystica555> http://paste.pocoo.org/show/585234/
[17:14] <mystica555> if you're entirely curious at what i got working
[17:14] <mystica555> (ive since tweaked the crf for quality)
[18:28] <luc4_mac> Hi! I'm trying to use the ffmpeg command to simply rotate a video, so I'm using ffmpeg -i file1.avi -vf "transpose=1" file2.avi. What I see is that, whatever I do, quality is not kept intact, but it decreases. Can I simply keep everything unaltered (codec, container, etc&)?
[19:00] <burek> luc4_mac, it depends on the encoder used
[19:00] <burek> can you please use pastebin.com, to show your command line and its output?
[19:04] <luc4_mac> burek: you mean that ffmpeg encoder might not support the original encoding? I'm trying to use h264 now as output codec, give me a second to pastebin the original output.
[19:06] <burek> no, I mean, for example acdsee32 (image program for windows) could rotate jpg images without loosing the quality
[19:07] <burek> since the encoding process was such that rotation of the image can be done without reencoding
[19:07] <burek> but only if you rotate for 90, 180, 270 degrees
[19:07] <burek> it is highly unlikely you will be able to do the same with video stream
[19:08] <burek> so I suppose you'll have to reencode it anyway
[19:08] <burek> can you control the player, to instruct it to rotate the video?
[19:09] <luc4_mac> burek: yes, I understand this. Yes, I can rotate with vlc for instance using post processing.
[19:09] <luc4_mac> burek: this is what I tried first: http://pastebin.com/xus6FG1w.
[19:09] <luc4_mac> burek: I was just supposing that this should just rotate and reencode using the same exact parameters of the source video.
[19:10] <burek> no, it just uses default encoder
[19:10] <burek> with default settings, so it is more likely that it will be something you don't want :)
[19:11] <burek> if you want h264 as an output
[19:11] <burek> try this
[19:11] <luc4_mac> burek: oh now I get. Yes, h264 has just finished and seems correct.
[19:11] <burek> ffmpeg -i DSCN0214.AVI -acodec copy -vcodec libx264 -crf 20 -vf "transpose=1" DSCN0214_transposed.mp4
[19:13] <luc4_mac> burek: the only param I was missing is cry :-) thanks!
[19:13] <luc4_mac> cry = crf :-)
[19:13] <burek> :beer: :)))
[19:14] <luc4_mac> burek: should I enable cry?
[19:14] <luc4_mac> burek: autocorrection& cry = crf :-)
[19:18] <burek> luc4_mac, crf is constant rate factor
[19:18] <burek> something like "i want constant quality"
[19:19] <burek> 23 is the default, and if you go up, the quality gets worse, if you go down, the quality gets better (so the filesize gets bigger also)
[19:19] <burek> crf=0 is near lossless
[19:20] <sacarasc> crf 0 IS lossless.
[19:20] <sacarasc> With x264.
[19:20] <luc4_mac> burek: yes, but so not mandatory right? And in case it was not specified?
[19:29] <burek> <burek> 23 is the default
[19:44] <luc4_mac> burek: so it is constant quality anyway? Not variable.
[19:45] <JEEB> more or less
[19:45] <JEEB> constant rate factor is possibly the closest thing that an algorithm can get to such a thing
[19:45] <JEEB> (that's what crf means)
[22:24] <elkng> I want to convert "mkv" video into "avi" but there are 2 audio tracks, what is the option to set audio track's id to use ?
[22:25] <Guest92268> -map
[22:29] <elkng> "ffprobe" shows: "Stream #0.0(lang): Video: h264          Stream #0.1(lang): Audio: aac          Stream #0.2(lang2): Audio: ac3" how can I use "-map" option ?
[22:30] <elkng> "-map 0.2 -map 0.0" ?
[22:39] <elkng> I want to convert video starting from 2 minute and convert 20 seconds, I use option "-ss 0:2:0 -t 0:0:20", but it doesnt make anything
[22:40] <elkng> just prints strings "frame=    0 fps=  0 q=0.0 size=      10kB time=10000000000.00 bitrate=   0.0kbit" again and again
[22:56] <elkng> how mapping working ?
[22:59] <elkng> there is an option "-aid" in mencoder, its quite straightforward to use
[23:16] <elkng> better to use mencoder
[23:18] <mmu> RTFM :p
[23:18] <mmu> it's a bit awkward but it works
[23:23] <elkng> they forgot to write a little warning into ffmpeg's man page: "we have an option -map but one need to be a scientist to uderstand how it works nahahaha"
[23:33] <taqattack> I have a question about piping. If i have ffmpeg outputting something into another ffmpeg as input. Where does the output from the first get stored?
[23:36] <cbsrobot> elkng: be more verbose
[23:36] <cbsrobot> it's hard to help you if you do not show the whole command
[23:40] <microchip_> taqattack: it doesn't get stored but it gets transfered to the second ffmpeg instance
[23:41] <microchip_> taqattack: piping is transfering the output of one program to be the input of the other
[23:42] <elkng> cbsrobot: I have video file, the information ffprobe prints is: "http://sprunge.us/cUde" and I want to use the command: "ffmpeg -i 1.mkv -vcodec mpeg4 -vb 2000k -s 650x276 -ab 128k -ar 44100 -ac 2 -acodec libmp3lame -y -f avi 1.avi" but that command gets second audio stream: "Stream #0.2(hin): Audio" I want first audio stream: "Stream #0.1(eng): Audio"
[23:45] <cbsrobot> elkng try: ffmpeg -ss 120 -t 20 -i 1.mkv -map 0:0 -map 0:1 -vcodec mpeg4 -vb 2000k -s 650x276 -ab 128k -ar 44100 -ac 2 -acodec libmp3lame -y -f avi 1.avi
[23:45] <cbsrobot> but I do not know how old your ffmpeg is .....
[23:46] <cbsrobot> so maybe some options will not work anymore , or could be written differently
[23:46] <elkng> "Resampling with input channels greater than 2 unsupported."
[23:46] <elkng> "Can not resample 6 channels @ 48000 Hz to 2 channels @ 44100 Hz"
[23:46] <cbsrobot> and btw. the above command encodes only 20s - just to make sure you do not have to wait too long
[23:47] <cbsrobot> try
[23:47] <cbsrobot> ffmpeg -ss 120 -t 20 -i 1.mkv -map 0:0 -map 0:1 -vcodec mpeg4 -vb 2000k -s 650x276 -ab 128k -ar 48000 -ac 2 -acodec libmp3lame -y -f avi 1.avi
[23:47] <elkng> same
[23:48] <elkng> FFmpeg version 0.6.3
[23:48] <cbsrobot> waht version of ffmpeg ?
[23:48] <cbsrobot> way too old !
[23:48] <cbsrobot> install from git
[23:49] <elkng> problems with mencoder too, it generates file but mplayer doesnt play video only audio, MEncoder 1.0rc4-4.4.4
[23:51] <elkng> ffmpeg-0.10.2 latest stable ?
[23:53] <cbsrobot> yes I guess
[23:55] <cbsrobot> It should work - I just tested it
[23:55] <cbsrobot> but I had an issue cutting and encoding - maybe you have to do it in two steps
[23:59] <krobins> hi room. is someone available to answer a few quick questions about turning raw video into grayscale?
[00:00] --- Sun Apr 22 2012


More information about the Ffmpeg-devel-irc mailing list