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

burek burek021 at gmail.com
Wed Nov 23 02:05:01 CET 2011


[00:04] <teratorn> could someone tell me what exactly is FFM?
[00:47] <Wildride> what is the difference between using ffmpeg.exe libx264  and using  x264.exe
[01:08] Last message repeated 1 time(s).
[01:27] <JuNiOx> does anyone know how to embed subtitle into a mp4 or mkv video? 
[01:31] <kcm1700> yay~ new version released
[01:32] <kcm1700> topic should be fixed to 0.8.7 & 0.7.8?
[01:32] <teratorn> what's an ffm stream?
[01:33] <teratorn> try to search it and all I get are porn sites :/
[01:34] <kcm1700> is that file extension?
[01:34] <teratorn> kcm1700: it can be
[02:37] <ttielu> I hate outdated open source wrappings of ffmpeg :( They dont only inherit all the (now fixed) bugs, but they also introduce new ones
[02:38] <ttielu> O well, time to sleep! Sleep well all
[02:44] <Wildride> is mp3/aac smart enough to create 0 byte file  when there is nothing on audio
[02:49] <Wildride> anybody know?
[02:54] <kcm1700> is documentation in avcodec.h for avcodec_open2 correct?
[02:54] <kcm1700> its sample code uses avcodec_open, not avcodec_open2
[02:54] <kcm1700> but with 3 args, which is not an appropriate number of arguments for avcodec_open
[02:57] <pasteeater> Wildride: can you explain what you mean?
[02:57] <Wildride> pasteeater  when you have audio file with no sound (whatsoever)
[02:58] <Wildride> is mp3/aac smart enough to create  same file size when it's audio of no sound of 1 hour  or 2 hours
[03:01] <pasteeater> no
[03:02] <Wildride> so 2 hour of no sound will double the size of  1 hour of no sound
[03:02] <Wildride> so 2 hour of no sound file will double the size of  1 hour of no sound file?
[03:03] <kcm1700> does calling avcodec_open2 with 3rd argument NULL have same effect of calling avcodec_open ?
[03:03] <kcm1700> using 0.8.7
[03:03] <pasteeater> Wildride: try it: ffmpeg -ar 48000 -t 7200 -f s16le -acodec pcm_s16le -i /dev/zero -acodec libfaac ...
[03:04] <Wildride> how do you do /dev/zero in windows
[03:04] <pasteeater> i don't know
[03:04] <Wildride> i thought ffmpeg does not suport libfaac
[03:05] <pasteeater> it does. also vo-aacenc and the native aac encoder
[03:06] <Wildride> what is vo-aaenc?
[03:06] <Wildride> and which aac encoder is best
[03:09] <pasteeater> probably libfaac, vo-aacenc, and then ffaacenc (the native encoder). you can also pipe the audio from ffmpeg to any external encoder than can accept piped output. i don't know if you can do that on windows.
[03:15] <Wildride> pasteeaster  what is vo-aacenc?
[03:16] <Wildride> libvo_aacenc  
[03:16] <Wildride> is that it?
[03:19] <kcm1700> Where should asking about public api of ffmpeg be done?
[04:15] <xxthink> how to merge many mxf files to a mov file?
[04:19] <dericed> xxthink: this might be helpful: http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f
[04:22] <xxthink> dericed: ffmpeg support mxf format?
[05:11] <quiznilo> what does it mean when you get an error "Operation not permitted"? and nothing else?  Sounds like some kind of permissions issue
[05:11] <quiznilo> http://paste.pocoo.org/show/511240/
[05:27] <quiznilo> any way to make the error a bit less cryptic?  I'm seeing nothing in GDB or strace
[06:13] <shevy> I am very confused:
[06:13] <shevy>   WARNING: library configuration mismatch    
[06:13] <shevy> the configure options to ffmpeg was:
[06:13] <shevy>   configuration: --prefix=/Programs/Ffmpeg/0.8.7 --enable-shared --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libxvid --enable-nonfree --enable-postproc --enable-pthreads --enable-x11grab --disable-libopenjpeg
[06:13] <shevy> however!
[06:13] <shevy> when I do "ffmpeg -version"
[06:13] <shevy> I get this result:
[06:14] <shevy> WARNING: library configuration mismatch                                                                                                                    
[06:14] <shevy>   avutil      configuration: --enable-shared --enable-gpl --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libxvid --enable-nonfree --enable-postproc --enable-pthreads --enable-x11grab --disable-libopenjpeg --prefix=/usr 
[06:14] <shevy> oops sorry for the newline there
[06:14] <shevy> My question is - where does "--prefix=/usr" come from???
[06:14] <quiznilo> what distro are you using?
[06:14] <quiznilo> heh
[06:15] <quiznilo> --prefix=/usr would be set by the packagers in binary distributions
[06:15] <shevy> quiznilo knoppix (debian) but I compiled this from latest ffmpeg source
[06:15] <quiznilo> oh
[06:15] <quiznilo> you set it then :p
[06:15] <quiznilo> if you did your own CMMI
[06:15] <shevy> I swear I did not! :(
[06:15] <quiznilo> configure --prefix=/usr ...
[06:15] <shevy> the prefix option I used was --prefix=/Programs/Ffmpeg/0.8.7
[06:15] <sam1> hi  guys
[06:15] <shevy> no, that is from "ffmpeg -version"
[06:16] <shevy> quiznilo is there perhaps a way I could investigate this?
[06:16] <quiznilo> and the ffmpeg that it is finding in the path is the same version as the one you compiled?
[06:16] <shevy> moment, let me run strace
[06:16] <shevy> (but from my gut feeling, yes)
[06:16] <quiznilo> just ffmpeg -version
[06:17] <shevy> ffmpeg version 0.8.7, Copyright (c) 2000-2011 the FFmpeg developers 
[06:17] <shevy> yeah, I downloaded that ~20 minutes ago :)
[06:18] <quiznilo> you downloaded 0.8.7
[06:18] <quiznilo> and what was on your system before?
[06:18] <shevy> ffmpeg 0.8.6
[06:18] <shevy> but I removed that one
[06:18] <quiznilo> any particular reason you did all that work?
[06:18] <shevy> quiznilo, do you happen to know what is libavutil.so?
[06:18] <quiznilo> something you need from 0.8.7
[06:19] <quiznilo> yes, it's just part of ffmpeg
[06:19] <shevy> quiznilo, no reason other than liking to use the latest
[06:19] <shevy> ahhhh
[06:19] <shevy> then I have an idea
[06:19] <sam1> i have a problem  , i want to  merge  a file, e.g  movie.mkv + movie.srt --> movie.mp4 ,what  commands  i use ,and  could  ffmpeg do this?  thanks
[06:20] <quiznilo> usually you don't want to mix packages you build by hand with a packaging system
[06:20] <quiznilo> I never have
[06:20] <shevy> solved it!
[06:20] <shevy> yeah quiznilo 
[06:20] <quiznilo> good
[06:20] <shevy> an older version of libavutil etc... was confusing ffmpegv
[06:20] <shevy> *ffmpeg --version
[06:20] <shevy> the warning is now gone, thanks
[06:20] <sam1> help  
[06:21] <sam1> i have a problem  , i want to  merge  a file, e.g  movie.mkv + movie.srt --> movie.mp4 ,what  commands  i use ,and  could  ffmpeg do this?  thanks
[06:21] <quiznilo> no clue sam1 
[06:21] <quiznilo> sounds like something you can google
[06:21] <shevy> sam1 no idea ... "ffmpeg -i movie.mkv movie.srt -o movie.mp4"" but I dont think that will work :D
[06:21] <shevy> hmm isn't .srt just a textfile
[06:21] <sam1> i try it 
[06:21] <sam1> wait 
[06:22] <shevy> it's just a text file right?
[06:22] <sam1> it does't work 
[06:23] <shevy> yeah merging a text file into a .mp4 file with a .mkv file probably doesn't work
[06:23] <shevy> I think there are other sub-formats that can be combined easier
[06:24] <sam1> you mean   use   avi + srt?
[06:24] <shevy> sam1 no I don't think that works either
[06:24] <shevy> when I use mplayer, I usually have a foobar.avi and a foobar.srt and mplayer then just overlays the text of the .srt file in the bottom area
[06:24] <sam1> i try  avi + srt   ,but it doesn't work
[06:25] <sam1> i konw  , mplayer does it
[06:26] <sam1> i want to encoder a new stream  with srt 
[06:29] <shevy> well
[06:29] <sam1> culd ffmpeg  do this work?  or i need to  decoder  1.*.mkv to *.video + *.audio ,2. encoder *.video + *.srt to **.video ,3.  encoder **.video + *.audio to *.mp4
[06:29] <sam1> could
[06:30] <sam1> if this  ,it's too complex 
[06:30] <shevy> I think ffmpeg can
[06:30] <shevy> http://www.geekology.co.za/blog/2009/02/embedding-subtitles-srt-into-video-files-avi-mpg-mp4-mkv-etc/ says it can
[06:31] <shevy> but that guy uses some graphical user interface to it :\
[06:31] <sam1> o  thanks  i read it 
[06:31] <shevy>   ffmpeg -i hifi.avi -i hifi.srt -acodec libfaac -ar 48000 -ab 128k
[06:31] <shevy> -ac 2 -vcodec libx264 -vpre ipod640 -s 480x240 -b 256k -scodec copy hifi.m4v -newsubtitle
[06:32] <shevy> hmm
[06:32] <shevy> did you try -i twice ?
[06:32] <sam1> yes
[06:32] <shevy> hehe here is a PHP class for that:
[06:32] <shevy>   http://www.phpsnaps.com/snaps/view/encode-video-with-srt-support/
[06:32] <sam1>  -newsubtitle   this is  not  in  new ffmpeg version
[06:32] <sam1> thanks
[06:32] <shevy> the command is odd...
[06:32] <shevy>   $cmd = 'ffmpeg -v 0 -y -i '.$in.' -vframes 1 -ss 250 -vcodec mjpeg -f rawvideo -s 286x160 -aspect 16:9 '.$out_thumb;
[06:32] <sam1> yeah 
[06:33] <shevy> and then he uses mencoder :\
[06:33] <shevy>   $cmd = 'mencoder '.$in.' -o '.$out_vid.' -sub '.$in_sub.' -subfont-text-scale 3.0 -subpos 99 -af volume=10 -aspect 16:9 -of avi -noodml -ovc x264 -x264encop$
[06:33] <shevy> hope you get it to work sam1!
[06:33] <sam1> thanks   
[06:33] <sam1> this used  mencoder
[06:33] <shevy> ah ... perhaps you could try mencoder with -sub option?
[06:33] <shevy> my head gets dizzy from all those options
[06:34] <sam1> i have  used  ffmpeg+mencoder  to do works
[06:34] <sam1> but i want to only use ffmpeg
[06:34] <shevy> hehe
[06:34] <shevy> me too
[06:34] <quiznilo> this is crazy http://paste.pocoo.org/show/511258/
[06:35] <quiznilo> it just loads up libs and then spits out 'Operation not permitted'
[06:35] <quiznilo> no clue why
[06:35] <sam1> you  use  ffmpeg + mencoder ?
[06:35] <sam1> thanks  shevy 
[06:36] <shevy> sam1 I used mencoder a lot more in the past
[06:36] <sam1> i go to read you give me  article 
[06:36] <shevy> but I try to use ffmpeg these days
[06:36] <sam1> hehe  
[06:37] <sam1> can you convert stream with  sub ?
[06:37] <shevy> hmm
[06:38] <shevy> what I know is that there are .sub files or something and these are directly encoded into an .avi file
[06:38] <shevy> I have an .avi file with dutch subs :)
[06:38] <shevy> and english narrative (the movie is in english language)
[06:38] <sam1> it works?
[06:39] <sam1> *.sub  + *.avi  ->  *.avi ?
[06:42] <shevy> I think so
[06:42] <shevy> well, I am absolutely sure it works :)
[06:43] <sam1> i  do same with u ,but it isn't works 
[06:44] <sam1> i use  *.srt +*.avi ->*.avi 
[06:44] <sam1> must *.sub?
[06:45] <sam1> what's your commands
[06:50] <shevy> I never saw it working with .srt
[06:51] <shevy> I no longer have any .sub files :/
[06:51] <shevy> .srt is better
[06:53] <sam1> i try  with  sub  
[07:22] <kcm1700> ls
[07:22] <kcm1700> oops.
[09:14] <sam1> hi  shevy  
[09:15] <sam1> i used  "ffmpeg -i test.avi    -i test.sub    -an -vcodec copy    -frames  500   test1.avi"  ,but  test1.avi hasn't sub, is't command write? 
[09:17] <ZacS123> hi
[09:20] <sam1> am i wrote?
[10:08] <sam1> hi  
[10:08] <sam1> guys
[10:09] <sam1> how embed subtitles to .avi file?
[10:57] <sam1> hi
[11:00] <sam1> you mean  it isn't possible  to  merge *.avi + *.srt(sub) to a new *.avi?
[11:07] <sam1> hi 
[11:08] <sam1> how  to burn  subtitles into the video stream?
[11:08] <sam1> does  ffmpeg support?
[11:10] <ubitux> sam1: not yet unfortunately
[11:10] <ubitux> but you can mux subtitles in containers that support it
[11:10] <ubitux> such as mkv or mp4
[11:12] <sam1> mux ==  burn??
[11:12] <ubitux> no
[11:12] <ubitux> you have a dedicated stream for the subtitle
[11:13] <ubitux> and the subtitle text is rendered and blended on the video by your player
[11:13] <ubitux> you have various workaround for that limitation
[11:13] <sam1> i know  mencoder  could
[11:13] <ubitux> the first one is to pipe mplayer with ffmpeg
[11:14] <ubitux> you can also use mencoder (but it isn't maitained for a while now)
[11:14] <ubitux> another one might be to use encode branch from mplayer2
[11:15] <ubitux> which is the method i prefer ATM
[11:15] <sam1> hi ubitux  ,  
[11:15] <ubitux> you might want to ask #mplayer2 for details about how to build and use
[11:16] <sam1> you mean  1.  use  mencoder to burn sub  and 2 conver ?
[11:17] <sam1> mplayer2  use  ffmpeg ?
[11:18] <ubitux> in 1. i meant something like use mencoder to output raw lossless data and pipe to ffmpeg to do the encode & muxing
[11:18] <sam1> sorry my english is bad ,reply you  slow
[11:18] <sam1> this  i am using 
[11:18] <ubitux> mplayer, mplayer2, vlc, etc use ffmpeg internally for a lot of codecs and formats
[11:19] <ubitux> mplayer2 has a specific output to ffmpeg which allows you to encode easily
[11:19] <sam1> i want to konw  if i can  only use  ffmpeg to do it
[11:19] <ubitux> but it's ATM in a development branch
[11:19] <ubitux> (usable thought)
[11:19] <ubitux> sam1: no, as i said, you can't ATM, it's a limitation
[11:19] <sam1> atm??
[11:19] <ubitux> "at the moment"
[11:19] <sam1> what's means
[11:19] <ubitux> sorry :)
[11:19] <sam1> heh 
[11:19] <sam1> hehe 
[11:20] <sam1>  thanks  i ask for help  in #mplayer2
[11:20] <sam1> mplayer2 =?  mplayer 
[11:21] <ubitux> mplayer2 is a fork or MPlayer, http://www.mplayer2.org/comparison.html
[11:22] <sam1> i  join it  ,thanks  ubitux
[11:33] <grand_grunt> Hi.. I have some corrupted MPEG-4 files here. VLC cann't read them, ffmpeg halts with a "[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2312780] moov atom not found"
[11:34] <grand_grunt> I've seen some related stuff on the web, it seems that my videos have some indexes missing. Is there a way I can fix that with ffmpeg?
[11:35] <grand_grunt> I've found a piece of software meant to fix these files, but compilation fails with "avcodec_decode_audio2" missing. What is the minimal version of ffmpeg for this?
[11:51] <grand_grunt> tss, I have ffmpeg 4:0.7.2-1+b1 and still getting "error: avcodec_decode_audio2 was not declared in this scope"
[15:52] <betim_> hi, is there a way to restream a rtsp stream from one server on a different one, sort of repating the stream?
[17:18] <Xoron> hello #ffmpeg i have a problem with x264 encoding that's really puzzling me
[17:18] <Xoron> i've set the preset and all the options i would like to use, however, the output seems to be dropping frames
[17:19] <Xoron> yet ffmpeg doesn't report that it is dropping frames :/
[17:24] <Xoron> my command line is: ffmpeg -i file.mts -vf yadif=1 -vcodec libx264 -preset medium -vb 20000k -maxrate 25000k -bufsize 5000000 -acodec libmp3lame -ab 192k ./out.avi
[17:25] <relaxed> Xoron: Use a different container and slim down your command to see if it makes any difference.
[17:25] <Xoron> tried that, didn't help :/
[17:26] <Xoron> though when i remove the yadif filter, it doesn't seem to be as bad :/
[17:26] <relaxed> ffmpeg version?
[17:26] <Xoron> one from the cvs
[17:27] <Xoron> built 13-11-2011
[17:27] <Xoron> ffmpeg version N-34800-g46eae15
[17:28] <Xoron> that's 13th november, sorry i keep forgeting that you all might be in a different country to where i am
[17:30] <relaxed> did you try with just '-vf yadif' ?
[17:31] <Xoron> hmm, no i haven't
[17:31] <Xoron> will give that a try
[17:31] <Xoron> ohh, and by the way, i'm working with 1080i video
[17:32] <relaxed> yadif 1 = "output 1 frame for each field". Wouldn't you need to double your output frame rate?
[17:33] <Xoron> yeah, that's what i'm trying to do relaxed
[17:33] <relaxed> what's the original frame rate?
[17:33] <Xoron> 25
[17:34] <relaxed> so add -r 50 to your command if you use -vf yadif=1
[17:34] <Xoron> i'm assuming at the end of the command
[17:34] <Xoron> yes?
[17:35] <relaxed> after the input
[17:35] <Xoron> however, the video's it outputs all say that they are at 50 fps :/
[17:35] <Xoron> the original being at 25
[17:35] <relaxed> oh, then maybe it's not needed after all
[17:36] <relaxed> can I get a small sample of your input?
[17:36] <Xoron> yeah, do you know where i could upload it though?
[17:37] <relaxed> http://mediafire.com/ is free
[17:37] <Xoron> ok, hold on
[17:38] <Xoron> is 300 meg ok?
[17:39] <Xoron> i'm not entirely sure how i would split the file
[17:39] <relaxed> or get a dropbox account (which is also free and handy) http://db.tt/lZsZEBA
[17:39] <relaxed> sure
[17:40] <Xoron> hold on
[17:40] <Xoron> just installing the dropbox client
[17:41] <relaxed> Xoron: dd if=file.mts of=sample bs=100M count=1
[17:41] <Xoron> ohh, ok, will do that, thanks :)
[17:42] Action: Xoron forgot about dd
[17:45] <Xoron> just uploading now
[18:03] <Xoron> right relaxed, it's uploaded here: https://dl-web.dropbox.com/get/sample.mts?w=1cbeafd8&dl=1
[18:04] <relaxed> 403
[18:04] <Xoron> :/
[18:05] <Xoron> how are you supposed to share files then
[18:05] Action: Xoron never used dropbox before :/
[18:05] <Mavrik> Xoron, copy the file to the "Public" folder
[18:05] <Mavrik> and then right click on it and select "copy public link"
[18:06] <relaxed> put it in the public dir; hover over it, click and select "copy public link"
[18:06] <Xoron> yeah, just read that in dropbox itself, but thanks anyway :)
[18:07] <Xoron> here: http://dl.dropbox.com/u/50571327/sample.mts
[18:13] <relaxed> got it
[18:18] <Xoron> ok, what seems to be the problem?
[18:22] <relaxed> give me a sec
[18:22] <Xoron> ok
[18:29] <t4nk295> HI , when i try to convet file from ffmpeg , funtion  ffurl_connect  retuns -2 , What does it mean by -2? Thanking You
[18:29] <relaxed> Xoron: this looks fine to me. ffmpeg -i sample.mts -sn -vf yadif=1:0:0 -preset medium -threads 0 -crf 20 -acodec flac out.mkv
[18:30] <Xoron> hmm, what are your versions?
[18:31] <relaxed> latest git, did you try my command?
[18:32] <Xoron> yeah, i'm running it now
[18:32] <Xoron> just a question though, what is -sn ?
[18:32] <relaxed> ignore subs
[18:32] <Xoron> ahh, ok
[18:33] <Xoron> what was your average framerate while encoding this? i get about 17
[18:35] <relaxed> 8 but I scaled it to 720p too
[18:36] <Xoron> hmm, i have a feeling that x264 has a bug somewhere when dealing with 1080p 50 content, it still looks like it is dropping frames :/
[18:36] Action: Xoron isn't scaling the video
[18:38] <relaxed> could it be your system is too slow to decode it?
[18:39] <relaxed> see if -preset veryfast makes a difference
[18:39] <JEEB> Xoron, libx264 by itself doesn't drop frames
[18:39] <JEEB> it never does that
[18:40] <Xoron> hmm, i know my system can decode it though
[18:40] <JEEB> it can make frames look bad in case you have really low bitrate constraints, but it will never, ever drop a whole frame
[18:40] <JEEB> (really low meaning really, really low)
[18:40] <Xoron> it an i7 930 with a nvidia gts250 and overclocked to 3.8ghz :/
[18:40] <Xoron> hmm, it's not a bitrate issue
[18:40] <JEEB> I know
[18:41] <JEEB> I'm just telling you that libx264 by itself will never, ever drop frames
[18:41] <JEEB> ffmpeg/avconv can, on the other hand, affect frames fed to the encoder
[18:41] <Xoron> the video looks quite nice, except it seems to miss frames (or not encode them properly)
[18:41] <JEEB> read what I just said
[18:41] <Xoron> yeah
[18:41] <Xoron> hmm, except, i get the same thing in mencoder
[18:42] <Xoron> same exact frame dropping/skipping in the stream it encodes
[18:42] Action: Xoron just tested it in mencoder :/
[18:42] <JEEB> that just means that whatever way you're feeding stuff to libx264 is dropping/skipping frames :P
[18:42] <JEEB> not libx264
[18:43] <Xoron> yeah, i know
[18:43] <Xoron> do you want to see the file i've encoded just so you can see what it's doing?
[18:44] <JEEB> can you pastebin your whole ffmpeg/avconv command/output?
[18:44] <JEEB> I might grab your sample
[18:44] <Xoron> actually, thinking about it, ffmpeg doesn't say that it is dropping frames, at all in fact
[18:44] <Xoron> yeah, sure
[18:44] <Xoron> hold on
[18:47] <Xoron> pastebin here: http://pastebin.com/MdC4BPba
[18:48] <Xoron> w/ command and output
[18:51] <JEEB> in all theory that looks fine. And the sample is indeed just interlaced content encoded as interlaced, nothing seemingly special
[18:52] <JEEB> how are you checking that you have or don't have stuff in there?
[18:52] <Xoron> well, just by eye
[18:54] <Xoron> when i encode the same video, same options just different codec, plays fine (on both windows and linux), yet when i use libx264 it seems to drop frames (with similar effects on windows and linux)
[18:54] <relaxed> Xoron: I have some static builds up from today if you want to test with it. https://sites.google.com/site/linuxencoding/builds
[18:55] <JEEB> Xoron, you should try in a way that lets you framestep through to check if those frames are there or not :P
[18:56] <Xoron> okay, i'll try in avidemux (that's the only thing that comes to mind that can singlestep through a video)
[19:01] <Xoron> relaxed: ahh, thanks for the builds, but they aren't any good for me, i'm on a 32 bit os currently :/
[19:02] <relaxed> such a fancy pc running a 32bit os, tsk tsk
[19:02] <Xoron> yeah, i know, it's because i backported my old os from 6 years ago :/
[19:03] <Xoron> i'm very much a creature of habit, hence why i've never wanted to change
[19:05] <Xoron> hmm, strange, mkv contained videos don't have the same problem :/
[19:07] <relaxed> alright, I cut the sample to 5mb, encoded it and ran `ffmpeg -i $1 -an -sn new-%05d.png` on both the source and the output. source = 128 frames; output = 125 frames
[19:09] <Xoron> that's a bit close frame wise for the amount of frame loss i was having
[19:10] <Xoron> but, it still seems as if frames are getting lost somewhere :/
[19:11] <relaxed> that's only 1 fps which you shouldn't be able to notice
[19:12] <Xoron> yeah 
[19:12] <Xoron> 1fps is ok, but the amount of loss i was having seemed to last for entire seconds :/
[19:13] <relaxed> what are you using toplay it?
[19:14] <Xoron> a mixture, totem and vlc
[19:15] <relaxed> I recommend you try mplayer2.org
[19:16] <Xoron> ok
[19:16] <Xoron> i'll give it a try
[19:17] <relaxed> it offers multithreaded decoding and has support for nvidia hardware decoding
[19:17] <Xoron> just i find it strange that in other codecs/containers it plays without any noticeable frame drop
[19:18] <relaxed> as opposed to what?
[19:18] <relaxed> avi?
[19:18] <Xoron> what it seems to be out putting in both avi and m2ts :/
[19:18] <Xoron> outputting*
[19:19] <relaxed> stop using avi, its days have past
[19:20] <relaxed> for h264 stick with mp4 or mkv
[19:20] <Xoron> i have, i've moved on to m2ts (simply because mkv is too unstable on my system)
[19:22] <Xoron> ohh, and it also does it in mp4
[19:22] <JEEB> I can only say "What!?" @ "mkv is too unstable on my system"
[19:23] <JEEB> also, what are you using to play back this stuff?
[19:23] <Xoron> just totem
[19:23] <relaxed> You really need to install mplayer2. I bet my bottom dollar this has to do with your video players.
[19:23] <Xoron> and vlc
[19:23] <JEEB> ok, yeah
[19:23] <Xoron> yeah
[19:23] <JEEB> I'm kind of betting around reasons that relaxed says too :P
[19:23] <JEEB> just build current trunk mplayer2 if you're on *nix
[19:23] <Xoron> yeah, i will do
[19:24] <JEEB> I think there's a good repo for easily building it
[19:24] <JEEB> mplayer2-build IIRC
[19:24] <JEEB> http://git.mplayer2.org/mplayer2-build/
[19:25] <Xoron> thanks
[19:28] <Sorikan> I am converting .mov files to x264 .flv files and it has been working great, however now a different editor is uploading files for conversion and the files are not playing in a web player until they are completely downloaded. This appears to  be because the moov atom is at the end of the file instead of the beginning. Can FFMPEG fix this?
[19:29] <sacarasc> You can use qt-faststart to fix this, which comes with the ffmpeg source.
[19:30] <Sorikan> I can only use that on .mov files, not on .flv files. The multi gig .mov files were already deleted....
[19:30] <Xoron> well, thanks everybody, i'm gonna take a break and think about updating my system so i can play mkv files properly
[19:31] <JEEB> I don't exactly think the container is the problem :P
[19:31] <JEEB> although VLC's matroska parser is known to suck
[19:31] <Xoron> what about gstreamers?
[19:31] <JEEB> I don't think it's any better :P
[19:31] <JEEB> Also, I most probably think neither have multithreaded decoders
[19:32] <JEEB> since VLC only got them in the trunk
[19:32] <JEEB> (1.2.0 series that's under development)
[19:33] <Xoron> hmm, well, if anything a change of os from this really outdated rubbish that i'm running now will probably give me much better chances at making good encodes
[19:34] <JEEB> just use an up-to-date mplayer2 for playback :3
[19:34] <JEEB> and your own build of ffmpeg/avconv/whatever for encoding
[19:34] <JEEB> that should do it
[19:34] <JEEB> read: "No distro has up-to-date versions of media applications anyways"
[19:35] <Xoron> yeah, i suppose
[19:35] <sacarasc> JEEB: That's kinda incorrect...
[19:35] <JEEB> well, yes
[19:35] <JEEB> in gentoo you can have the package manager build the current HEAD
[19:35] <JEEB> in arch you might get relatively new packages
[19:38] <Xoron> hmm, i know ubuntu is hopeless for up to date packages
[19:38] <Xoron> but then, it will probably be more up to date than what i'm running now
[19:39] <JEEB> ubuntu is "relatively" up-to-date
[19:40] <JEEB> but in any case, you pretty much have to get used to building current stuff for multimedia related things :3
[19:40] <Xoron> yeah, i have been for a while JEEB
[19:44] <Xoron> anyway, i'm gonna go, thanks for the suggestions, i will give mplayer2 a try and update my system
[19:52] <monstaRtruck> hi guys my audio and video dont sync
[19:52] <monstaRtruck> when recording my game
[20:04] <necromancer> is there a way to run ffmpeg in "quiet" mode or something less verbose?
[20:04] <necromancer> all of the info is very informative but when i'm processing a lot of files at one time with a queue it makes the log files rather long
[20:12] <shysoft> I'm using libavcodec and libavformat to write a simple transcoder. When I set the output format to mpegts, calling av_write_frame works fine, but when it's set to mp4, it seg faults with in 'ff_mov_write_packet ()'. Does anyone know why?
[20:27] <pasteeater> necromancer: there is "-loglevel quiet", but it might be too quiet
[20:39] <monstaRtruck> guys how do i make a video of my game
[20:39] <monstaRtruck> ffmpeg -f alsa -i pulse -f x11grab -r 60 -s 1600x1200 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 ~/output.mkv
[20:39] <necromancer> pasteeater: i'd love too quiet. :) i have my own log messages based on exit codes
[20:40] <monstaRtruck> this is making my video and sound out of sync and is laggy
[20:40] <monstaRtruck> i want it for utube
[20:51] <monstaRtruck> any ideas how i can make this beter for youtube ffmpeg -f alsa -i pulse -f x11grab -r 60 -s 1600x1200 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 ~/output.mkv
[20:52] <relaxed> necromancer: use, ffmpeg -i ... 2>/dev/null for "too quiet"
[20:54] <relaxed> monstaRtruck: try 30 fps
[20:54] <pasteeater> as in too quiet, when i tried -loglevel quiet, i got no console output.
[20:54] <monstaRtruck> no i tried all fps
[20:54] <monstaRtruck> sound is out of sync
[20:54] <pasteeater> how do you know it's not your player or your machine not being able to decode the file fast enough?
[20:55] <monstaRtruck> perhaps i can make the video smaller ?
[20:55] <monstaRtruck> but it still has to capture the whole screen
[20:58] <relaxed> monstaRtruck: add -vf scale=800:600 after the inputs
[20:58] <monstaRtruck> what r inputs
[20:58] <relaxed> after :0.0
[20:59] <necromancer> pasteeater: that's what i was looking for, basically. i'm calling ffmpeg with php's exec(), which can return an exit code, so all i have to do to see if the command worked is test if $exitCodeVar == 0
[21:00] <monstaRtruck> Unrecognized option 'vf'
[21:00] <monstaRtruck> relaxed
[21:00] <sacarasc> What version of ffmpeg are you using, monstaRtruck?
[21:01] <monstaRtruck> FFmpeg 0.6.2-4:0.6.2-1ubuntu1.1
[21:01] <pasteeater> you'll probably see a speed increase (if you're not already at 60 fps) if you update your x264 and ffmpeg and use the new -preset system.
[21:01] <pasteeater> at least i did in my sparse, crappy tests
[21:01] <sacarasc> monstaRtruck: Too old for -vf.
[21:01] <pasteeater> monstaRtruck: http://ubuntuforums.org/showthread.php?t=786095
[21:02] <Sorikan> How can I modify an x264 video so that it starts playing before it completely downloads?
[21:02] <pasteeater> monstaRtruck: or you could try -s 800x600 instead.
[21:02] <pasteeater> Sorikan: qt-faststart input output
[21:03] <pasteeater> it's in the tools directory of the ffmpeg source: make tools/qt-faststart
[21:05] <Sorikan> qt-faststart does not seem to work with my x264 files on mov or flv containers
[21:06] <Sorikan> I get "last atom in file was not a moov atom" when I attempt to use it
[21:08] <monstaRtruck> that seems to work
[21:08] <monstaRtruck> beter
[21:08] <monstaRtruck> does u tube take mkv
[21:12] <monstaRtruck> and what about comression?
[21:12] <monstaRtruck> should i comress after i make this 
[21:13] <monstaRtruck> or is there a comand to make it already compressed and ready for utube?
[21:13] <monstaRtruck> and ill just have to make my game in a 640x480 window?
[21:13] <monstaRtruck> plz dun make me film it w iphone again lol
[21:14] <monstaRtruck> also any1 know what fps you tube is
[21:15] <monstaRtruck> and what rezolution
[21:16] <pasteeater> monstaRtruck: you probably should re-encode the outut before uploading it to youtube due to the huge size of lossless outputs.
[21:16] <monstaRtruck> and doing it on the fly is too much rite?
[21:17] <pasteeater> not necessarily. you could try and find out.
[21:17] <monstaRtruck> but keeping the fps and size would be good to do right away
[21:17] <pasteeater> yes
[21:17] <monstaRtruck> do u know the fps and size ?
[21:17] <pasteeater> leave it as is
[21:17] <monstaRtruck> im doing 15fps 640x480
[21:18] <monstaRtruck> what about doing it hd?
[21:18] <pasteeater> if your machine can handle capturing at "hd" size, then do that instead
[21:18] <monstaRtruck> wouldnt somethingx720 make it hd?
[21:19] <monstaRtruck> computers have always been hd right
[21:19] <monstaRtruck> since rez is higher than hd
[21:19] <monstaRtruck> 1600x1200
[21:20] <pasteeater> once you have your lossless output you can re-encode it for youtube with something like: ffmpeg -i input -vcodec libx264 -vpre medium -crf 20 -threads 0 -acodec libfaac -aq 100 output.mp4
[21:22] <monstaRtruck>  wouldnt somethingx720 make it hd?
[21:22] <monstaRtruck> <monstaRtruck> computers have always been hd right
[21:22] <monstaRtruck> <monstaRtruck> since rez is higher than hd
[21:22] <monstaRtruck> <monstaRtruck> 1600x1200
[21:22] <monstaRtruck> ????
[21:22] <monstaRtruck> lol
[21:23] <relaxed> not always
[21:23] <pasteeater> Sorikan: you can try flvtool++, flvmeta, FLVTool2 or any other similar tool for the flv videos.
[21:24] <pasteeater> ...also yamdi. lots to choose from.
[21:29] <pasteeater> looks like flvtool++ source is 404.
[21:29] <necromancer> monstaRtruck: don't re-paste your question, we all saw it
[21:29] <Sorikan> apt-get didnt recognize it...
[21:30] <necromancer> to answer, no "computers haven't always been HD". HD is meaningless when it comes to monitors. 720p and 1080p/1080i are resolutions, yes, and evaluate roughly to 1920×1080 px resolution on a monitor
[21:30] <necromancer> but i think newer HD video is actually "bigger" than that so compression won't affect picture quality
[21:30] <monstaRtruck> well if u have a videocard and mon that does 1600x1200 u have beter than hd
[21:30] <Sorikan> So it the fast start option something that can be considered meta-data and thus added / modified via these tools?
[21:34] <necromancer> monstaRtruck: not 1080i HD
[21:34] <monstaRtruck> my monitor is 1200i
[21:34] <monstaRtruck> not p
[21:34] <monstaRtruck> ?
[21:35] <Mavrik> where did you get a monitor that shows interlaced picture? O.o
[21:35] <monstaRtruck> omg
[21:35] <monstaRtruck> just tell me waht it is
[21:36] <monstaRtruck> im asking not arguing jesus
[21:38] <Mavrik> monstaRtruck, "HD" is just a tag people gave to videos in 1280x720 and higher resolutions
[21:38] <Mavrik> so yeah, monitors have been "HD" for a long time
[21:38] <monstaRtruck> ok thx thats what i thot
[21:38] <Mavrik> also, computer monitors use progressive scan "p" for their display
[21:38] <Mavrik> (tube TV's didn't)
[21:39] <monstaRtruck> much better
[21:39] <monstaRtruck> thx
[21:39] <Mavrik> so your moniro would be "1200p" if you'd put that tag...
[21:39] <monstaRtruck> those monitors that do 2400p are like 1000$
[21:39] <Mavrik> but those are just marks Movie/Blu-Ray people invented to shortly refer to 1280x720 progressive, 1920x1080 interlaced/progressive encoded videos in Blu-Ray mediums
[21:40] <monstaRtruck> my lcd samsung tops out at 1200
[21:41] <monstaRtruck> but my gtx560 can do double that
[21:41] <Mavrik> at least around here the TV's that can do 1920x1080 resolutions are refered to "FullHD"
[21:42] <monstaRtruck> right
[21:42] <monstaRtruck> i have a hd projector and its 720p
[21:42] <monstaRtruck> but still looks amazing w bluray
[21:43] <Mavrik> also, if you're encoding videos, resolution isn't everyhint
[21:43] <Mavrik> you also need to set high enough bitrate
[21:45] <monstaRtruck> i thot bitrate is for sound
[21:51] <Hattori> hello, anybody has any clue about watermarking?
[21:51] <Hattori> in specific, any idea about this question (i've detailed the issue in stackoverflow): http://stackoverflow.com/questions/8218977/use-ffmpeg-to-watermark-and-scale-an-image-on-video
[21:52] <relaxed> Hattori: look at overlay in the man page
[21:52] <Hattori> for the scale specific bit or for watermark in general?
[21:52] <relaxed> latter
[21:52] <Hattori> yeah, i can watermark, i can't get it to scale though
[21:53] <watermark> I think I need to change my name
[21:53] <Hattori> ahah
[21:53] <relaxed> watermark watermark watermark 
[21:53] <relaxed> scale beforehand
[21:53] <Hattori> http://pastebin.com/1MkChEgR
[21:53] <watermark> thanks, I'll always be here when you need me ~~~~~~~~~ >-0
[21:53] <Hattori> this is what i got so far
[21:54] <Hattori> i wish to be able to do everything in one go
[21:54] <Hattori> so that can be used as generic script
[21:54] <Hattori> no matter the size of the video to watermarlk
[21:55] <relaxed> did you try something like movie=logo1.png:100x100
[21:55] <Hattori> that's sets the logo to 100x100 pixels, doesn't it?
[21:56] <relaxed> yes, don't you want to scale image?
[21:56] <relaxed> or do you want to watermark the video, then scale the video?
[21:56] <Hattori> yeah but based on the video size
[21:57] <Hattori> specifying something like image width = 1/3 of the video width
[21:57] <Hattori> (it's the watermarked image that i want to scale)
[21:58] <relaxed> it may be possible using ffmpeg but I don't know the answer. shell scripting it wouldn't be too difficult.
[21:58] <Hattori> shell scripting is ok too
[21:59] <Hattori> don't have enough knowledge about how to get the width of the video, and how to scale the image to 1/3 of video width and to set the height so that the ratio is kept.
[22:02] <pasteeater> scale=iw/3:-1 or something like that
[22:03] <relaxed> wouldn't that scale the video and not the png?
[22:03] <Hattori> http://ffmpeg.org/libavfilter.html#scale
[22:03] <Hattori> yeah, looks like it.
[22:03] <pasteeater> yes. i mistakenly assumed that was what was wanted.
[22:04] <relaxed> Hattori: I'm not going to write the script but here's how to get the width. ffprobe -show_streams inputvideo.mp4 2>&1| grep ^width
[22:05] <relaxed> | sed s/width=//
[22:07] <Hattori> hmm nice
[22:07] <Hattori> now i need to scale the image :)
[22:07] <Hattori> i guess ffmpeg won't do it?
[22:07] <pasteeater> might be worth asking on ffmpeg-user mailing list. stefano often answers filtering questions.
[22:08] <Hattori> hmm
[22:08] <Hattori> how to register?
[22:09] <pasteeater> https://lists.ffmpeg.org/mailman/listinfo/ffmpeg-user/
[22:10] <pasteeater> "Subscribing to ffmpeg-user" section
[22:11] <pasteeater> or, if for some reason you can't subscribe just email the ML address and a moderator will (eventually) approve your question
[22:14] <Hattori> yeah, i think i just sent it
[22:54] <CarlFK> can I use a window as an input? 
[23:05] <CarlFK> xwininfo: Window id: 0x4c00115 "wx Analog Clock with Sweep Hand"
[23:08] <Hattori> shouldn't -sameq use the same quality to convert the file?
[23:10] <Hattori> relaxed, pasteeater: i came up with this script: http://pastebin.com/ZP2PuDku
[23:11] <Hattori> now the last thing i'm not sure about, is how come the video loses quality
[23:11] <Hattori> i specify "-acodec copy", so the audio should be the same
[23:11] <Hattori> if i specify "-vcodec copy" then the watermarking bit is skipped
[23:12] <Hattori> i thought that specifying the "-sameq" parameter would just keep the same video quality
[23:12] <CarlFK> how do I use window_id as the input?
[23:15] <CarlFK> http://ffmpeg.org/ffmpeg.html#x11grab  i guess I have to figure out the x/y box?  
[23:33] <CarlFK> if an app is making noise out the speaker, how can I use that as input?
[23:35] <pasteeater> Hattori: sameq doesn't do what you think it does
[23:35] <pasteeater> the old docs implied that sameq meant "same quality", but it does not
[23:35] <Hattori> ah!
[23:35] <Hattori> liars ;)
[23:36] <Hattori> so...
[23:36] <Hattori> how to achieve what i need?
[23:36] <pasteeater> http://ffmpeg.org/pipermail/ffmpeg-user/2011-November/003212.html
[23:36] <pasteeater> you can't filter and -vcodec copy
[23:37] <Hattori> even though i'm not actually converting the video, i can't keep the original quality?
[23:37] <Hattori> gutted.
[23:39] <pasteeater> you are re-encoding the video. it needs to be re-encoded to add a watermark.
[23:40] <pasteeater> what is your desired output format?
[23:40] <Hattori> depends
[23:40] <Hattori> on the video
[23:40] <Hattori> sometimes is mov, sometimes is avi, etc
[23:41] <Hattori> http://pastebin.com/WGLXZMGj
[23:41] <Hattori> check here
[23:41] <pasteeater> your encoding options can be different depending on your chosen encoder, so your script may get a bit long if you decide to keep them all the same format in and out
[23:42] <Hattori> it looks like it's always using the h264 encoder?
[23:42] <pasteeater> ffmpeg will auto choose H.264 for mp4 output container
[23:42] <pasteeater> i think...unless you don't --enable-libx264 and then it will choose mpeg4
[23:43] <Hattori> and at that point the quality will be the same?
[23:44] <pasteeater> 1) you must encode your video to apply the watermark
[23:44] <pasteeater> 2) you are most likely going to be using lossy encoders
[23:44] <pasteeater> 3) therefore, you can't have the same quality
[23:44] <Hattori> ok
[23:44] <Hattori> bullet points help
[23:44] <Hattori> ;)
[23:44] <pasteeater> 4) ...but with the right options you may not notice any difference
[23:45] <Hattori> and the settings need to be tweaked based on the video format
[23:46] <pasteeater> it depends on your formats. for example, encoding with libx264 will use different options than encoding with mpeg2video.
[23:46] <pasteeater> it will be far easier to encode everything to one format
[23:47] <Hattori> i guess
[23:47] <pasteeater> or, in your bash script, you can make a new encoding command for each format type that will require varying options
[23:48] <Hattori> eheh, i would still be clueless on which encoding settings are best for each format :\
[23:49] <pasteeater> CarlFK: did you see this? http://ubuntuforums.org/showthread.php?p=8746719#post8746719
[23:53] <CarlFK> pasteeater: nice.. thanks
[00:00] --- Wed Nov 23 2011


More information about the Ffmpeg-devel-irc mailing list