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

burek burek021 at gmail.com
Wed Jun 3 02:05:01 CEST 2015


[00:21:04 CEST] <nopea> ok so I got it built, but when i run it I am told that ffmpeg is not installed and to run apt-get install libav-tools LOL
[00:33:30 CEST] <llogan> nopea: run "hash -r" and/or ". ~/profile"
[00:34:02 CEST] <c_14> and/or check your path
[00:34:32 CEST] <nopea> ok - I will try that.  Doing another build in case I messed it up the first time
[00:35:03 CEST] <llogan> just look in ~/bin to see if ffmpeg is in there
[00:35:06 CEST] <nopea> I built an installed the yasm that the guide said it should have before trying to build again
[00:35:15 CEST] <nopea> llogan: it was in thre
[00:35:26 CEST] <nopea> and I ran the command but told me it was not installed
[00:35:36 CEST] <c_14> probably because it wasn't in your path
[00:35:38 CEST] <c_14> try ~/bin/ffmpeg
[00:36:46 CEST] <llogan> running ". ~/profile" should add it to your path, or log out and log in
[00:37:08 CEST] <llogan> assuming your ~/.profile is like every other one i've seen in ubuntu
[00:38:16 CEST] <nopea> I will check as soon as it is done building again
[00:38:59 CEST] <nopea> c_14: but if I am in that dir (~/bin) shouldn't it run even if it is not in the path?
[00:39:05 CEST] <c_14> no
[00:39:07 CEST] <c_14> hell no
[00:39:10 CEST] <c_14> never add . to your path
[00:39:12 CEST] <c_14> that's the worst idea ever
[00:39:43 CEST] <nopea> dont add it to the path?  You suggesting using the full path to run?
[00:40:05 CEST] <c_14> I'm not telling you to not add ~/bin to the path, I'm telling you not to add '.' to the path.
[00:40:16 CEST] <c_14> as in PATH=".:/usr/bin"
[00:52:50 CEST] <maslen> I'm trying to convert an MOV to an MP4. The first time I tried converting it, I got an error that it "could not find codec parameters for stream 0 unspecified pixel format" and that it needed a longer analyeduration and probesize. After increasing those values it successfully converted the video - but it prepended an extra minute of still frames! Command outputs here: http://codepad.org/C9YvDPvJ
[00:52:58 CEST] <nopea> c_14: ok so ~/bin/ffmpeg works, but ffmpeg only does not
[00:53:19 CEST] <c_14> nopea: export PATH="~/bin:$PATH"; ffmpeg
[00:54:21 CEST] <nopea> beauty!  that works
[00:54:43 CEST] <c_14> nopea: it won't forever though, best put that export into your .bashrc or whatever
[00:55:08 CEST] <c_14> maslen: the first x frames are probably just broken
[00:55:21 CEST] <nopea> c_14: sorry I dont understand... how won't it work forever?
[00:55:46 CEST] <maslen> c_14: So what can I do to ? It plays fine in vlc
[00:56:12 CEST] <maslen> nopea: Your modification to PATH won't persist across reboots
[00:56:29 CEST] <c_14> maslen: because it skips the broken frames. use -ss to seek to the point where the frames are no longer broken
[00:56:42 CEST] <c_14> nopea: it'll only work in that single shell session and not in any others
[00:56:48 CEST] <nopea> maslen: or log out log in
[00:57:03 CEST] <maslen> aye
[00:57:28 CEST] <nopea> so I need to add it permanently to the path - or call it by the full path
[01:00:35 CEST] <brontosaurusrex> nopea: what os is that?
[01:00:55 CEST] <nopea> brontosaurusrex: Ubuntu 12
[01:01:06 CEST] <brontosaurusrex> nopea: does that use lightdm ?
[01:01:54 CEST] <brontosaurusrex> actually forget that, what is in your ~/.profile ?
[01:02:33 CEST] <maslen> c_14: Where does that go? before or after the -i ?
[01:02:52 CEST] <c_14> doesn't really matter. it's faster before though
[01:03:51 CEST] <nopea> brontosaurusrex: not sure... ~/.profile gets me Permission Denied
[01:04:15 CEST] <c_14> nopea: . ~/.profile
[01:04:19 CEST] <c_14> or source ~/.profile
[01:04:25 CEST] <c_14> You're not actually executing it
[01:04:58 CEST] <brontosaurusrex> cat ~/.profile < and see if there is "$HOME/bin" in there
[01:06:03 CEST] <nopea> .profile: No such file or directory
[01:06:19 CEST] <brontosaurusrex> how about .xsession ?
[01:06:58 CEST] <nopea> No command '.xsession' found,
[01:07:11 CEST] <brontosaurusrex> cat ~/.xsession
[01:08:12 CEST] <nopea> .xsession: No such file or directory
[01:08:45 CEST] <brontosaurusrex> echo $PATH
[01:09:48 CEST] <nopea> I did that - got the path there
[01:10:19 CEST] <nopea> "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"
[01:14:18 CEST] <brontosaurusrex> well, dunno then, id add http://paste.debian.net/plain/193693 to the end of ~/.bashrc and hope for the best
[01:15:23 CEST] <nopea> brontosaurusrex: thanks.  maybe I should just stick with the older avconv that comes with Ubuntu 12 :)
[01:16:47 CEST] <brontosaurusrex> actually the answer here suggests generating ~/.profile and sticking that there http://askubuntu.com/questions/60218/how-to-add-a-directory-to-my-path
[01:18:09 CEST] <nopea> thanks - I wonder if I should have built/installed ffmpeg to a diff. directory.  One that is not attached to the current user
[01:18:23 CEST] <nopea> i.e the /bin directory
[01:20:03 CEST] <brontosaurusrex> nope, that should be fine
[01:20:23 CEST] <brontosaurusrex> you can even install system ffmpeg and they will not fight each other
[01:21:19 CEST] <brontosaurusrex> you could also just get the static version and not build anything
[01:21:55 CEST] <brontosaurusrex> http://johnvansickle.com/ffmpeg/
[01:22:08 CEST] <nopea> brontosaurusrex: true - but I have been told that the libfdk-aac encoder is superior
[01:22:16 CEST] <brontosaurusrex> that is true
[01:22:20 CEST] <nopea> so I would have to build myself
[01:22:24 CEST] <brontosaurusrex> yeah
[01:22:32 CEST] <nopea> if I want to remove a build, do I simply delete the files?
[01:22:51 CEST] <brontosaurusrex> how did you build?
[01:23:52 CEST] <nopea> pretty much followed this... https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
[01:25:48 CEST] <brontosaurusrex> you have "Reverting Changes Made by This Guide" at the bottom.
[01:28:45 CEST] <nopea> removes all my ffplay
[01:30:05 CEST] <nopea> all but ffplay I mean
[01:32:08 CEST] <brontosaurusrex> which ffplay
[01:32:30 CEST] <c_14> brontosaurusrex: the reverting section is missing ffplay during deletion of files in ~/bin/
[01:32:40 CEST] <c_14> I'll add it as soon as I can verify something.
[01:32:46 CEST] <brontosaurusrex> I see
[01:34:32 CEST] <nopea> I just rm ffplay
[01:53:06 CEST] <nopea> I am thinking that this guide is aimed more for people building ffmpeg for their personal use.  I am looking to install it on a webserver.  so the directory it is installed to has to be something that the webserver can access
[01:59:25 CEST] <c_14> nopea: change all occurances of ~/bin with /usr/local/bin
[02:01:14 CEST] <nopea> c_14: cheers
[02:04:55 CEST] <nopea> c_14: you think even for the ffmpeg_source files, or just for where the files are installed to?
[02:05:44 CEST] <c_14> just ~/bin to /usr/local/bin; since it's a static build the libs don't have to be globally accessible
[02:29:17 CEST] <llogan> c_14: gpac is still listed under "Reverting..."
[02:29:26 CEST] <c_14> derp
[02:29:42 CEST] <llogan> i often forgot that section too
[02:33:16 CEST] <llogan> i wonder why l-smash was never packaged by Debian/Ubuntu
[02:35:23 CEST] <c_14> Is there a distro that packages it?
[02:39:09 CEST] <nopea> ok that worked!  I installed ffmpeg into /usr/local/bin and I can access it without have to type in the full path and from various accounts
[02:43:12 CEST] <llogan> c_14: i'm not sure
[02:45:00 CEST] <nopea> now if I wanted to add more optins (it looks like I forgot to add libmp3lame) to I just rebuild and add that in the configuration?
[02:45:24 CEST] <c_14> yep
[02:45:31 CEST] <c_14> just add it first, then rebuild
[02:46:08 CEST] <nopea> coolio - thanks for your help
[02:54:13 CEST] <pentanol> nopea ffmpeg -codecs there lame is not available?
[02:55:13 CEST] <nopea> I am guessing no :)  I did not look at the codec list, and I know I removed lame during the build (as I am learning the build I went with nothing enabled to start)
[02:55:35 CEST] <nopea> when I tried to encode to mp3 I got an error saying no codec for that format
[03:47:17 CEST] <_ryan> Anyone know the link of FFMPEG community issue tracker? thanks
[03:47:34 CEST] <c_14> https://trac.ffmpeg.org/
[03:48:28 CEST] <_ryan> thanks. that is for bug? If I want to open some issues, can I do it there?
[03:50:17 CEST] <c_14> Just follow the link submitting a bug report
[03:50:28 CEST] <c_14> Should contain everything you need.
[03:54:03 CEST] <_ryan> thanks
[03:58:50 CEST] <nopea> ok - so I got my FFMpeg built the way I want it... with mp3 and libfdk_aac.  I know I cannot distro it as it was built with libfdk_aac, but I dont think it would be a problem if I was to move the built binary from the dev machine I built it on to the production would it?
[04:04:09 CEST] <relaxed> that's fine
[04:18:57 CEST] <nopea> do I need the x264 libraries, or will that be baked into the ffmpeg binary ?
[04:19:34 CEST] <c_14> You don't need the .a files if you've compiled ffmpeg with --enable-libx264
[04:21:57 CEST] <nopea> http://pastebin.com/smHgS6kY - still tweaking and rebuilding but this is what I have so far
[04:24:51 CEST] <relaxed> you want --extra-ldflags="-L/usr/local/bin/ffmpeg_build/lib -static"
[04:25:34 CEST] <nopea> relaxed: what does that do?
[04:26:40 CEST] <relaxed> creates a static ffmpeg binary
[04:28:11 CEST] <nopea> cool good to know
[04:41:35 CEST] <nopea> anybody here running ffmpeg on the same machine as Apache/MySQL/PHP?
[05:22:21 CEST] <sourpulse> Hello, I would like to use ffmpeg to overlay a small spinning video onto a larger video. It almost works, except I'm getting garbage pixels in the overlap/transparent region. What am I doing wrong? Here's my command line and output: http://pastebin.com/FHKMzg4x
[05:54:45 CEST] <postmodern> is it worth convert ac3 to opus?
[05:55:11 CEST] <kepstin> not unless you really need a smaller file; that's a lossy to lossy conversion.
[05:55:37 CEST] <postmodern> ah ha, was wondering how much I'd lose by transcoding
[05:55:51 CEST] <postmodern> since i'm not encoding from the original raw audio
[05:56:41 CEST] <kepstin> most ac3 stuff is high enough bitrate that you are unlikely to notice the losses... but unless you're really short on space, just keep it as is.
[06:47:42 CEST] <Agrajag-> g'day, i have a security camera that i want to monitor the audio of, and when volume levels hit a certain level I want to run another script/command/whatever. how much of this can I do with ffmpeg? I can get an rtsp stream from the camera. not sure the best way to go about this
[08:28:57 CEST] <elmargol> If I have to re-encode a file. Is there a way to get similar filesize / quality. -crf is producing 3x the original filesize here
[08:29:07 CEST] <elmargol> -crf 18
[08:29:50 CEST] <elmargol> Is there a rule of thumb or something crf 18 = x MB / Minute or something?
[08:29:56 CEST] <PSvils> Hello everyone! I'm having trouble streaming h264 video on a mobile device over rtsp. On the computer it works perfectly, and if the format is changed to mpeg4 it also works.
[08:29:56 CEST] <PSvils> If I use h264, then the video frames are either grey, green, or have the first few lines correct, and the last one is smeared over the rest of the frame.
[08:30:26 CEST] <PSvils> I use find best video stream on the format context for the RTSP stream, and then swscale the output to a 4bpp RGB frame.
[08:30:50 CEST] <elmargol> PSvils are you usging the right pixel format?
[08:30:56 CEST] <PSvils> I'd really appreciate some tips or if anyone has encountered anything similar.
[08:31:01 CEST] <PSvils> elmargol: for the swscale step?
[08:31:11 CEST] <PSvils> (output of the swscale?)
[08:31:59 CEST] <elmargol> pix_fmt yuyv420p for the final encoding
[08:32:17 CEST] <elmargol> -pix_fmt yuv420p
[08:33:04 CEST] <zumba_ad_> folks, i need some help. My first video doesn't have sound and my second video has sound. When I combine them, the sound is lost. How do I preserve the audio?
[08:33:04 CEST] <PSvils> elmargol: I take all input formats and settings from the decoded rtsp packet.
[08:33:31 CEST] <zumba_ad_> what's the proper way of combining 2 mp4 files?
[08:33:32 CEST] <PSvils> and there are cases when the first few lines of the frame ARE correct, just the 5-10th line gets repeated for the rest of the frame.
[08:33:47 CEST] <PSvils> (smearing)
[08:33:54 CEST] <PSvils> (I think it's called smearing :) )
[08:33:56 CEST] <zumba_ad_> i used this syntax, ffmpeg -i input1.mp4 -c copy -bsf:v h264_mp4toannexb -f mpegts intermediate1.ts
[08:34:11 CEST] <zumba_ad_> then finally this, ffmpeg -i "concat:intermediate1.ts|intermediate2.ts" -c copy -bsf:a aac_adtstoasc output.mp4
[08:34:15 CEST] <PSvils> is this the right place for ffmpeg api questions rather than ffmpeg binary?
[08:38:07 CEST] <elmargol> PSvils, afaik most consumer devices can only decode yuv420p thats the only guess I have
[08:38:27 CEST] <PSvils> elmargol: you mean in terms of performance?
[08:38:39 CEST] <elmargol> zumba_ad_, can't you use .mkv?
[08:38:56 CEST] <zumba_ad_> i can
[08:39:06 CEST] <zumba_ad_> what would be the syntax?
[08:39:56 CEST] <elmargol>  mkvmerge -o full.mkv file1.mkv + file2.mkv
[08:40:17 CEST] <zumba_ad_> i don't have that binary
[08:44:50 CEST] <chungy> you can just use ffmpeg. "printf "file '%s'\n" file1.mkv file2.mkv > concat.txt && ffmpeg -f concat -i concat.txt -c copy full.mkv"
[08:46:54 CEST] <zumba_ad_> ok
[09:41:43 CEST] <Relsak> Has anyone ever here managed to get hardware (GPU) acceleration for live video transcoding (MPEG to x264)? Or is it still possible to accelerate decoding only?
[09:43:06 CEST] <JEEBsv> other than ASICs that's a pipe dream. encoding of formats that are not specifically made for thousands of threads are not going to be fast on a GPU
[09:43:47 CEST] <JEEBsv> there's some opencl code in libx264, but it's a proof of concept mainly and does a very little part in the lookahead on the GPU
[09:44:45 CEST] <JEEBsv> basically you'd be paying a lot for useless heating
[09:45:40 CEST] <JEEBsv> if you really need ASIC-based stuff then intel's haswell+ and nvidia's newest have an ASIC that is "alright", but I wouldn't really base things on those tbqh
[09:51:32 CEST] <crabmeat>  The encoder 'aac' is experimental but experimental codecs are not enabled, use -strict -2, even when I use this or -strict experimental or -c:a libfdk_aac things are NOT good
[09:51:46 CEST] <crabmeat> is there another alternative..
[09:55:57 CEST] <crabmeat> Think i might have a way around it with -c:a libmp3lame
[09:57:39 CEST] <chungy> that encodes as mp3 of course (presently, it's the only encoder so just "-c:a mp3" is necessary; both work)
[09:58:31 CEST] <chungy> Depending on your needs, both libvorbis and opus can provide good alternatives. Much higher quality than mp3.
[09:59:27 CEST] <crabmeat> nice all good I am just converting mp4's
[09:59:40 CEST] <crabmeat> one thing I have noticed is that recently the format has changed
[09:59:48 CEST] <crabmeat> from the dudes converting things
[10:00:10 CEST] <crabmeat> could not play them, and the conversion had the new error  about aac being experimental
[10:01:02 CEST] <Relsak> Thanks for your answer, was hoping there's some progress on this field. Will try to find other way to make more/most out of setup I have here.
[10:01:53 CEST] <chungy> mp3 works fine; the others I mentioned aren't supported in a mp4 container
[10:02:05 CEST] <crabmeat> no worries let me see if it workd
[10:02:10 CEST] <crabmeat> works I am converting now
[10:02:31 CEST] <crabmeat> when playing on my TV the framerate was broken, and evil so I will see when i convert
[10:02:43 CEST] <crabmeat> if mp3 fixes it
[10:02:59 CEST] <chungy> The default bitrate is 128k. LAME has nice quality, but you might still want to use something like -b:a 192k or 256k
[10:03:28 CEST] <crabmeat> I am not picky, I just wanna watch some TV :)
[10:03:45 CEST] <chungy> non-picky people are probably fine with the defaults :)
[10:04:04 CEST] <crabmeat> I am not a demaning 1080p or not watch it kind aguy
[10:04:11 CEST] <crabmeat> demanding
[10:14:43 CEST] <elmargol> what is the default profile for x264?
[10:29:17 CEST] <crabmeat> for i in *.mp4; do nice -n 20 ffmpeg -i "$i" -c:v mpeg4 -vtag xvid -c:a libmp3lame -b:a 192k -qscale:v 6 -s 720x304 "/opt/vidconvert/converted/$i"; done
[10:29:22 CEST] <crabmeat> does not like this...
[10:29:40 CEST] <crabmeat> converted but wouldn't play on the tv... hmmm
[12:07:27 CEST] <brontosaurusrex> crabmeat: that avi?
[12:36:00 CEST] <crabmeat> yeh ended up using arista
[12:59:32 CEST] <rusikf> Hello all ffmpeg hackers! Can somebody explain how to choose valid bitrait for ffmpeg? http://stackoverflow.com/questions/30593990/how-to-calculate-bitraite-for-ffmpeg
[13:20:03 CEST] <brontosaurusrex> bitrate is 10k and maxrate is 1k, thats prolly an error
[13:20:29 CEST] <brontosaurusrex> oh no, thats 1000k
[13:23:17 CEST] <brontosaurusrex> rusikf: I think the problem is with -c:a aac
[13:24:05 CEST] <brontosaurusrex> it should be something like "-c:a libfdk_aac" or whatever aac codec you had
[13:24:08 CEST] <brontosaurusrex> have*
[13:26:17 CEST] <BtbN> aac is the correct name for the native aac encoder.
[13:26:24 CEST] <BtbN> If you can, you most likely want to use libfdk though
[13:26:41 CEST] <brontosaurusrex> actually forget what i wrote, all wrong
[13:36:57 CEST] <PSvils> elmargol: follow-up: indeed all was my fault, hadn't enabled ALL h264 options when compiling ffmpeg.
[13:37:31 CEST] <Mavrik> hmm, anyone have an idea for a good TS analyzer?
[13:37:32 CEST] <PSvils> (demuxer and parser specifically)
[13:37:34 CEST] <Mavrik> that works on UDP?
[14:17:45 CEST] <Daan_> Hi, with which parameters can I bass boost music in FFmpeg?
[14:29:00 CEST] Last message repeated 1 time(s).
[15:43:26 CEST] <zhanshan> aw, I always get this library error with ffmpeg, somehow I linked something wrong
[15:48:58 CEST] <zhanshan> https://gist.github.com/anonymous/fd936727d3fab9984a3a
[15:50:44 CEST] <c_14> export LD_LIBRARY_PATH="$HOME/ffmpeg_sources/vid.stab-master:$LD_LIBRARY_PATH"; ffmpeg
[15:59:47 CEST] <zhanshan> thanks c_14 this is it!
[18:09:02 CEST] <ffmpeg758> how to build ffmpeg with x265 support in windows using msys2 and msvc ?
[18:17:36 CEST] <cehoyos_> ffmpeg758: Does compilation of x265 and compilation of FFmpeg (without x265) work for you?
[21:37:16 CEST] <cjm> Hi Folks. I'm transcoding some videos. The manual tells me "ffmpeg -i <input> <output>" and that seems reasonable. I'm getting a message that implies that ffmpeg want to write to the input file. This is mysterious. Is there an explanation?
[21:39:32 CEST] <cjm> http://pastebin.com/PyFhfjex
[21:42:18 CEST] <llogan> cjm: -strict needs a value, and you should use it as an output option, not a global or input option
[21:42:50 CEST] <cjm> See? Already good advice! Thanks. Stand by...
[21:43:34 CEST] <cjm> llogan: Works perfectly. Give yourself a raise!  Thanks for the help.
[21:44:03 CEST] <llogan> also, 2.1.8 is considered to be old
[21:44:18 CEST] <llogan> general users should use a build from current git master if possible
[21:47:50 CEST] <cjm> llogan: It is a Fedora 20 installation, and I haven't played with it very much. This is the first time I've used ffmpeg, but I have a few other projects, so if I encounter problems, I'll take the time to get current.
[21:48:38 CEST] <cjm> llogan: Is the a "-y" switch that will allow me to answer "yes" to all questions from the commandline?
[21:48:59 CEST] <llogan> looks liek Fedora 20 is EOL this month
[21:49:52 CEST] <llogan> there is -y and -n. see their descriptions in "man ffmpeg"
[21:50:04 CEST] <cjm> llogan: Thanks.
[21:59:28 CEST] <cjm> llogan: Is the a session log? Suddenly I'm getting "File Not Found", and I can't understand what is missing.
[22:02:05 CEST] <llogan> no. just the console output
[22:02:58 CEST] <llogan> you could probably generate a log type thing with -report using the file option
[22:03:14 CEST] <llogan> or redirect the console output to append to a file
[22:04:29 CEST] <llogan> maybe something like "ffmpeg -i input ... output 2>&1 | tee -a fflog.txt"
[22:06:32 CEST] <cjm> llogan: Thanks. I had a missing ";" in the command line! Geeze!  Thanks for the help.
[22:49:28 CEST] <anoop_r> anybody please tell me how to use --extra-cflags/--extra-ldflags
[23:00:55 CEST] <llogan> anoop_r: you can see some examples here http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
[00:00:00 CEST] --- Wed Jun  3 2015


More information about the Ffmpeg-devel-irc mailing list