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

burek burek021 at gmail.com
Thu Jul 3 02:05:01 CEST 2014


[00:07] <mjuszcza1> okay, thank ya :)
[01:33] <t4nk740> Possibly a quick question.  I have been trying to compile ffmpeg x64 for quite sometime now with some success.  My OS is Windows 8.1 x64 and I'm using mingw-w64 with msys to compile.  I an confused as to what is best, what other commands/flags/etc I need to ensure a x64 ffmpeg build?  Also, what is best and fastest to use out of these three threads, os2threads, winpthreads or w32threads?
[05:51] <P4C0> Hello, I have some x264 videos that I'm converting to mpeg4, the problem is that the size is the double of the original, I'm usign  'ffmpeg -i infile.m4v -acodec copy -vcodec mpeg4 outfile.mp4' is there a way to reduce quality to achieve closer file size to the original??
[05:59] <relaxed> P4C0: Are you targeting a device? Why mpeg4?
[06:01] <relaxed> you can set the bitrate with -b:v or set variable bitrate with -q:v
[06:04] <P4C0> relaxed: yes, I'm currently tying with -crf
[06:04] <relaxed> -crf only applies to libx264
[06:05] <relaxed> well, I think libvpx too...but not mpeg4
[06:05] <P4C0> relaxed: oh, hmm it did seem to work the first type
[06:05] <P4C0> which is a sane value for v?
[06:07] <relaxed> start with -q:v 3 and raise the value until you're happy with the quality/size
[06:08] <relaxed> use "ffmpeg -i input -t 30 ..." to create some 30 second samples.
[06:08] <P4C0> relaxed: thankx
[06:25] <t4nk740> I have just realized that there is a filter called showinfo, but it will not show the bitrate for each frame, is there a way I can do this within ffmpeg?
[08:26] <myubuntu_> hi, everyone.
[08:29] <myubuntu_> must first audio or video frame's timestamp bigger than second frame's timestamp(audio or video)?
[10:12] <Filarius> Hello, is here any keyword for fps? I want make video be exactly 10 times faster, but I do not know how I can get source fps in same command line
[10:14] <Filarius> so I can use command like ffmpeg -r "fps*10" -i filein -r fps fileout
[10:27] <wh-hw> hi, anybody tried x265 ?
[10:36] <Filarius> I tryed it - much better and much slower then x264  )
[10:37] <wh-hw> right
[10:38] <wh-hw> do you know how to make bit depth to 8bit ?
[10:39] <wh-hw> Filarius, hi
[10:39] <Filarius> with h265 ? no, I just tryed only on low bitrate to compare with h264
[10:40] <Filarius> isn`t it use 8bit by default ?
[10:40] <Filarius> on main profile
[10:41] <wh-hw> looks like 10 bit by default
[10:41] <wh-hw> and i don't know how to change it to 8bit
[10:43] <wh-hw> anybody help?
[10:47] <Filarius> I found only about there is different versions of coder - for 8bit or for 10bit, so it looks like u need find ffmpeg build with x265_8bit
[11:14] <alexvf> hello, i'm trying to build shared libraries of ffmpeg 2.2.2 on armv7
[11:14] <alexvf> i'm getting this error: LD	libavcodec/libavcodec.so.55 /usr/bin/ld: libavcodec/arm/vp8dsp_init_armv6.o: relocation R_ARM_THM_MOVW_ABS_NC against `ff_put_vp8_bilin4_v_armv6' can not be used when making a shared object; recompile with -fPIC
[11:15] <alexvf> i'm configuring with --enable-shared --disable-static --enable-pic
[11:15] <alexvf> anyone knows how to fix it?
[11:16] <suore> hello :>
[11:17] <suore> ffmpeg -i yt.mkv -vcodec libvpx-vp9 -acodec libvorbis -strict experimental output.webm   i got :  Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument,    Stream #0:0 -> #0:0 (h264 -> libvpx-vp9)   What is bad??
[11:24] <bazhang> https://www.virag.si/2012/01/webm-web-video-encoding-tutorial-with-ffmpeg-0-9/ <---what about this suore
[11:28] <suore> http://pastebin.com/P61yT5dK
[11:31] <relaxed> Did you see "Only VP8 video and Vorbis audio are supported for WebM."
[11:31] <relaxed> Maybe you're using an old version? Try, http://johnvansickle.com/ffmpeg/
[11:37] <luc4> Hello! Can I extract the video stream from a truncated mp4?
[11:40] <suore> relaxed, i have ffmpeg from repo ppa:jon-severinsson/ffmpeg
[11:41] <relaxed> that means nothing to me
[11:41] <bazhang> ubuntu has moved to avconv
[11:41] <bazhang> he's getting the "real" ffmpeg back via that repo
[11:43] <relaxed> suore: I don't get that message with my static build. Try it.
[11:44] <suore> okay i try
[11:45] <relaxed> suore: also, you don't need -strict -2
[11:45] <suore> relaxed, i need, ffmpe says that codec is experimental so i need it
[11:46] <alexvf> anyone knows something about this error:
[11:46] <relaxed> It's not needed with my build because both libvpx and ffmpeg are up-to-date.
[11:47] <alexvf> libavcodec/arm/vp8dsp_init_armv6.o: relocation R_ARM_THM_MOVW_ABS_NC against `ff_put_vp8_bilin4_v_armv6' can not be used when making a shared object; recompile with -fPIC
[11:49] <relaxed> alexvf: maybe https://trac.ffmpeg.org/wiki/CompilationGuide/Android or https://trac.ffmpeg.org/wiki/CompilationGuide/RaspberryPi might be helpful.
[11:50] <alexvf> i will take a look, thanks
[11:50] <alexvf> anyway, if it is fixed disabling some module, that would be valid for my purposes now
[11:50] <alexvf> i'm only interested in h264 decoding
[11:51] <alexvf> but i don't know what to disable :(
[11:52] <relaxed> is there some reason you're not compiling git master's source?
[11:54] <alexvf> it is the version used in my board
[11:55] <alexvf> i just want to make little modifications to debug an issue
[11:56] <relaxed> alexvf: which board and compiler?
[11:57] <alexvf> Allwinner A20 SoC and gcc (Debian 4.6.3-14) 4.6.3
[11:58] <relaxed> cpu?
[11:58] <alexvf> Processor	: ARMv7 Processor rev 4 (v7l)
[11:59] <relaxed> alexvf: http://fate.ffmpeg.org/report.cgi?time=20140702020142&slot=armv7l-panda-gcc4.6-cortexa8
[11:59] <relaxed> http://fate.ffmpeg.org/report.cgi?time=20140702010517&slot=armv7l-panda-gcc4.6-armv7
[11:59] <relaxed> maybe those will help ^^
[12:00] <alexvf> ok, i'm compiling with a lot of disables now
[12:00] <alexvf> when finished, i will try that config
[12:00] <alexvf> thank you
[12:02] <relaxed> looks like the vp8 decoder
[12:04] <alexvf> yes, i'm compiling with this line now: ./configure --enable-shared --disable-static --enable-pic --disable-programs --disable-doc --disable-runtime-cpudetect --disable-libvpx --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-decoder=vp8 --extra-cflags="-DPIC -fPIC" --extra-cxxflags="-DPIC -fPIC" --extra-ldflags="-DPIC -fPIC"
[12:05] <relaxed> shouldn't you just target a specific cpu?
[12:07] <Mavrik> alexvf, if you want minimal feature set
[12:07] <alexvf> it looks like it detected it well (ARCH                      arm (armv7-a))
[12:07] <Mavrik> usually doing "--disable-everything" is good
[12:07] <Mavrik> and then just neable stuff you need.
[12:07] <Mavrik> are you trying to compile for android?
[12:08] <alexvf> no, for linux
[12:08] <Filarius> hello, is here any kind of keyword for fps of source to use in ffmpeg cli ? Like I need make video stream 10 times faster and have exactly same fps on output
[12:09] <Mavrik> this is what I used for minimal x264 transcoding: https://gist.github.com/izacus/4a9aac792ef61bea10ca
[12:09] <Mavrik> throw away the encoders and muxers
[12:09] <Mavrik> and you get just h.264 decoding functionality
[12:09] <Filarius> ...to use like  -r "fps*10" -i input -r fps output
[12:11] <alexvf> Mavrik: ok, i would try it too
[12:11] <Mavrik> Filarius, if you put "-r" before "-i" you set fps for input
[12:12] <Mavrik> if you set it after you set it for output
[12:12] <Mavrik> :)
[12:12] <Filarius> I want get number of fps of source to make video it exactly 10 times faster
[12:12] <Mavrik> that's... not always possible
[12:15] <Filarius> now i use -r "24*10"  -i input -r 24, but I process record of video streams, and it not always at same bitrate. It is hobby thing, so not much loss for me if fps will be not exactly same
[12:15] <Filarius> sorry, **not always at same FPS
[12:16] <Mavrik> Filarius, I don't think thats possible at the moment
[12:16] <Mavrik> you could run ffprobe first on the stream to get fps value
[12:16] <Mavrik> something like ffprobe -v quiet -print_format json -show_streams file.mp4
[12:16] <Mavrik> and parse from that
[12:17] <Filarius> ok, thanks
[12:45] <DeadSix27> can it be a bug that a simply usage of "ffmpeg -i (file) -c:v libx264 -sn -an -crf 17 -preset veryslow (out)"
[12:46] <DeadSix27> suddendly runs @ 0,6fps
[12:46] <DeadSix27> while all the other days and on (maybe) previous versions it was way faster?
[12:46] <DeadSix27> or am i doing something weirdly wrong hmm
[12:47] <Mavrik> do you have a complex input now?
[12:47] <DeadSix27> not really, its a "normal" video file
[12:47] <DeadSix27> not much action
[12:47] <DeadSix27> not detailed animations or something.. plain slow vidoe
[12:48] <DeadSix27> input format did not change at all
[12:48] <DeadSix27> same as always
[12:48] <DeadSix27> might be my hardware but its still weird
[12:48] <DeadSix27> uses 98% cpu though
[12:49] <DeadSix27> might = could*
[12:58] <DeadSix27> hm now it jumps to 15-30 fps again
[12:58] <DeadSix27> o.O
[13:10] <brontosaurusrex> DeadSix27, what OS, disk space?
[13:42] <DeadSix27> brontosaurusrex, w8, on that disk like 2,5T left)
[14:07] <pandaologist> hey, i think i may have a bug to report, can someone help me confirm it before i submit?
[14:07] <pandaologist> seems like the SHN/shorten decoder isn't decoding all SHN files correctly, so SHN -> FLAC transcodes are not lossless
[14:12] <Anshul_m> I am unable to configure ffmpeg on windows, http://pastebin.com/LZ6TyUjW
[14:13] <Anshul_m> configure says it is not able to make execuatable using cl.exe, while i am able to compile and make an small executable in same terminal using same cmd line
[14:29] <Anshul_m> solved it, read the notes down more carefully and problem was link.exe
[14:40] <Anshul_m> Is there some trick also while doing make it gives error missing seprator at !ARCH_AARCH64=yes , it look like make is not understanding !
[15:01] Action: Fyr slaps c_14 around a bit with a large trout
[15:01] <Fyr> could you explain the usage of -psnr parameter? recently you've referred me to a page with a psnr, but the command:
[15:01] <Fyr> ffmpeg -i source.avi -psnr output.mp4
[15:01] <Fyr> asks me about rewriting the output. =(
[15:01] <Fyr> i.e. it doesn't just compute it.
[15:01] <c_14> you need 2 files to compute a psnr
[15:01] <Fyr> ok, I have them.
[15:02] <Fyr> how to calculate it?
[15:03] <c_14> ffmpeg -i sourcevideo -i othervideo -filter_complex '[0:v][1:v]psnr[out]' -f null /dev/null should prob do it
[15:04] <c_14> you'll need -map '[out]' os well
[15:04] <c_14> *as
[15:04] <Fyr> No such filter.
[15:04] <Fyr> Stream map ''[out]'' matches no streams
[15:05] <c_14> sorry yano
[15:06] <Fyr> c_14, http://pastebin.com/UbKgnKLr
[15:07] <c_14> What's the commandline?
[15:07] <Fyr> ffmpeg -i "XXX.wmv" -i 24.mp4 -filter_complex '[0:v][1:v]psnr[out]' -map '[out]' -f null NUL
[15:08] <c_14> Windows needs "" iirc
[15:08] <Fyr> ok, it's running.
[15:20] <luc4> Hello! Anybody who knows by any chance if nal's in an avcc stream contain the timestamp? I would like to mux those into an mp4 using ffmpeg but it won't be possible without specifying the timestaps as the frame rate is variable.
[15:29] <Fyr> c_14, thanks, it does work.
[16:01] <luc4> Hello! Any way to play an h264 avcc stream with ffmpeg? I need this just to check if it is valid/correct.
[16:23] <sfan5> luc4: ffmpeg -i file.mp4 -c:v rawvideo -f rawvideo -y /dev/null
[16:24] <sfan5> will decode the whole video stream and output it directly to /dev/null
[16:30] <t4nk699> d
[17:36] <luc4> sfan5: sorry, not understanding. I have a raw stream containing only avcc. Can I somehow play that?
[17:37] <sfan5> you should be able to read those with ffmpeg -i <file>
[17:38] <sfan5> works for me, at least
[17:46] <luc4> sfan5: ah I see, I didn't know ffmpeg accepted raw avcc in input. I'll try. Thanks.
[17:46] <JEEB> what do you mean with avcc?
[17:46] <JEEB> raw annex b NALs?
[17:47] <JEEB> then yes, as long as you set the "format" before -i (for input), or have the streams named dot-264 or so
[18:00] <luc4> JEEB: not annexb, avcc
[18:00] <luc4> JEEB: I think annexb can be played by vlc or ffplay.
[18:00] <luc4> JEEB: I'm unsure about avcc.
[18:01] <JEEB> 14496-15 avcc without the container?
[18:01] <JEEB> I'm not sure how you're supposed to play that :P
[18:01] <JEEB> I mean, the configuration thingy would be missing then
[18:01] <JEEB> unless it's written in the front
[18:01] <luc4> Yes, I'm interested for development.
[18:02] <JEEB> anyways, supporting that shouldn't be too hard if you know what the fuck is there in what order, but it's seriously fucked up
[18:03] <JEEB> I'm not going to touch it with a long stick
[18:03] <luc4> JEEB: I see...
[18:03] <JEEB> if you are going to output raw AVC, just use annex b
[18:03] <JEEB> it's there for that
[18:04] <JEEB> and if someone is trying to give you raw 14496-15 avcc AVC, you officially have the right to give that person a nice punch
[18:04] <luc4> JEEB: the entire problem is that I have the funny win8 which is creating in some cases truncated mp4 files. I need to fix those somehow. So I thought I could extract the h264 stream, which I guess is avcc, use know sps pps etc... and re-mux with ffmpeg.
[18:04] <luc4> I'll give win8 a punch with pleasure.
[18:05] <JEEB> if the index is at the end, and you don't have an idea on how it creates the files, you have no idea how to unfuck those files. Unfortunately, specific apps tend to usually do things in a specific way, so you /can/ do app-specific hacks
[18:05] <JEEB> have "fun" :P
[18:05] <JEEB> and no, that would not be raw avcc
[18:05] <JEEB> and you should never, ever output raw avcc
[18:40] <quup> (Not really a question about ffmpeg) Is there some open source linux tool that can utilize vaapi(or some other intel cpu specific capabilities) to encode h264?
[18:43] <luc4> JEEB: and therefore I'm fucked :-D
[18:45] <luc4> JEEB: thanks for the info
[19:03] <Hello71> quup: iirc those are all either slower or worse in quality than x264
[19:03] <Hello71> win 29
[19:03] <Hello71> lose 29
[19:07] <Fjorgynn> :D
[19:07] <sfan5> quup: I have some (quite unorganized) code for that (for ffmpeg); would be nice if someone could test it, my hardware lacks support for encoding
[21:20] <gcl5cp> is there an official repository to ubuntu (14.04)?
[21:26] <sacarasc> Official for who?
[21:27] <sacarasc> ffmpeg doesn;t have its own binaries, I believe. And Ubuntu dislikes ffmpeg.
[21:40] <gcl5cp> there are some repos out there
[21:40] <gcl5cp> apt-add-repository ppa:jon-severinsson/ffmpeg
[21:40] <gcl5cp> dd-apt-repository ppa:samrog131/ppa
[21:57] <sacarasc> gcl5cp: But not official!
[21:58] <gcl5cp> sacarasc: that's the question
[21:59] <sacarasc> Your distro doesn't support ffmpeg, so there are no official ones.
[22:01] <gcl5cp> i mean ffmpeg's official
[22:01] <sacarasc> ffmpeg doesn't release binaries. I said that already.
[00:00] --- Thu Jul  3 2014


More information about the Ffmpeg-devel-irc mailing list