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

burek burek021 at gmail.com
Thu Oct 3 02:05:01 CEST 2013


[10:54] <bouba> hi, anyone used a image comparing software to analyze h264 thumbnails plz ?  like http://www.lensoftruth.com/head2head-grand-theft-auto-v-screenshot-comparison/
[11:14] <illusion> hey
[14:06] <rcombs> so, I tried -sws_dither bayer and -sws_dither ed: https://dl.dropboxusercontent.com/u/46348978/Madoka_Snapshot_02_24_bayer.png https://dl.dropboxusercontent.com/u/46348978/Madoka_Snapshot_02_24_ed.png
[14:06] <rcombs> I can't make out a difference there
[14:07] <rcombs> for comparison, the rgb48 version: https://dl.dropboxusercontent.com/u/46348978/Madoka_Snapshot_02.png
[14:08] <rcombs> and the same frame, output from ffmpeg as an rgb48 PNG, then passed through imagemagick's convert with -depth 8: https://dl.dropboxusercontent.com/u/46348978/Madoka_Snapshot_02_24_cheat.png
[14:54] <bacon1989> Hello
[14:54] <bacon1989> i'm trying to statically compile my application with ffmpeg libraries
[14:54] <bacon1989> currently i'm trying it on mingw, on a 64-bit system
[14:55] <bacon1989> when I include -static -lavcodec, and run my executable, I get the error avcodec-55.dll is missing
[14:56] <bacon1989> the linker says it's grabbing avcodec.lib, is a statically compiled library, is itnot?
[15:06] <bacon1989> would also like to note that avcodec.lib comes with avcodec-55.def (don't really know what this is)
[15:06] <bacon1989> and it doesn't even come with an avcodec-55.dll
[15:06] <bacon1989> this is from the latest win32-dev snapshot
[15:12] <DannyZB> I have an automated conversion script for my website , and right now i use:
[15:12] <DannyZB>  /usr/bin/ffmpeg -i $source_path $x264opts -s 1280x720 -refs 4 -vcodec x264 -x264opts bitrate=1024:vbv-maxrate=1024:vbv-bufsize=512 -acodec aac -tune film -movflags +faststart -preset superfast /var/www/media/video/{$hash}.mp4 -y >/var/www/ffmpeg_logs/{$hash}.log 2>&1 &
[15:12] <DannyZB> this produces results with great quality .. except for action sequences which become extremely blocky
[15:13] <DannyZB> how can I handle action sequences without killing conversion speed completely with the medium or fast preset ?
[15:41] <bacon1989> So apparently, although I have statically linked libavcodec.a, I still require the libavcodec-55.dll to run my application?
[15:41] <bacon1989> why?
[16:04] <aleray> hi, i'm trying to overlap several audio files from a file: "ffmpeg -i files.txt -filter_complex amerge -acodec pcm_s16le overlay.wa"
[16:04] <aleray> I get an error:
[16:04] <aleray> Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_amerge_0
[16:05] <aleray> any idea?
[16:12] <caraculo> hi
[16:13] <caraculo> When I try to find the FFV1 codec via "avcodec_find_encoder(AV_CODEC_ID_FFV1)" it returns 0, edenv I have support for FFV1 enabled.
[16:13] <caraculo> I have tried to find AV_CODEC_ID_FFV1 without succedd either.
[16:27] <bouba> hi everyone, is it possible for ffmpeg to exit on warnings (ex: profile/level bitrate exedeed) plz ?
[16:29] <caraculo> Actually it fails for ANY codec, for instance "avcodec_open2(_codec_context, avcodec_find_encoder(CODEC_ID_H264), NULL);" fails no matther what CODEC_ID I pass.
[16:36] <emhs> So, I ran this: `ffmpeg -i Sail\ Xylergeist\ Cover.jpg -i Audio/Sail/sail-xylergeist.mp3 -acodec aac -vcodec libx264 -strict -2 sail-cover.flv`, and got audio but no video. The image file works properly, so I'm not quite sure what
[16:36] <emhs> So, I ran this: `ffmpeg -i Sail\ Xylergeist\ Cover.jpg -i Audio/Sail/sail-xylergeist.mp3 -acodec aac -vcodec libx264 -strict -2 sail-cover.flv`, and got audio but no video. The image file works properly, so I'm not quite sure what's going on. Thoughts?
[16:39] <tlhiv_work> durandal_1707: thank you again for helping me find my problem yesterday about A/V sync issues ... i've been able to edit the source code of the latest FFMPEG and recompile and it does just fine
[16:41] <defaultro> emhs: use -loop 1 -t numberofsecodns
[16:41] <emhs> defaultro: Thanks. I'd just figured I'd try adding -loop 1, we'll see if it guesses -t right or if I need to do that. Thanks!
[16:42] <defaultro> you have to specify -t for time
[16:43] <defaultro> or maybe, it might use the time of the audio
[16:43] <defaultro> i haven't tried it yet
[16:45] <emhs> defaultro: It definitely starting pushing time into the five minute range, and the thing's a 4:21 song.
[16:45] <emhs> Added -t
[16:45] <defaultro> ok
[16:46] <durandal_1707> tlhiv_work: what you edited?
[16:49] <emhs> defaultro: Damn. Still going past the audio's length, even with -t 261
[16:49] <caraculo> how is it possible that  "avcodec_find_encoder" does not find ANY encoder?
[16:50] <durandal_1707> caraculo: your build does have none enabled
[16:51] <caraculo> hmm, but I just run "./configure --enable-shared"
[16:51] <caraculo> isn't that enough?
[16:51] <caraculo> it reported many supported codecs.
[16:51] <durandal_1707> perhaps you are not using same library
[16:52] <caraculo> I am
[16:52] <defaultro> emhs, you have to cut it or apply fadeout
[16:52] <caraculo> just checked with ldd
[16:53] <durandal_1707> caraculo: what version you  are using?
[16:54] <durandal_1707> you can also use ..by_name variant
[16:57] <caraculo> 2.0
[16:58] <caraculo> and all encoders are enabled, I just checked again...
[17:02] <durandal_1707> caraculo: try AV_CODEC_ID_H264
[17:02] <caraculo> same
[17:02] <caraculo> it does not find ANY
[17:03] <durandal_1707> you built with libx264 enabled?
[17:05] <caraculo> let me try with huffyuv
[17:06] <caraculo> :( either.
[17:07] <caraculo> the thing is
[17:08] <caraculo> I got many codecs listed as enabled.
[17:08] <caraculo> but "find" fails for all.
[17:09] <durandal_1707> caraculo: but avcodec_find_encoder_by_name?
[17:11] <caraculo> do I need to pass a string then?
[17:12] <durandal_1707> libx264/libx264rgb
[17:12] <caraculo> I want to use ffv1 cmon...
[17:13] <durandal_1707> than ffv1
[17:14] <caraculo> fail.
[17:14] <caraculo> returns 0
[17:14] <caraculo> I am getting insane here...
[17:17] <BoR0> I have a file that is 2GB. I want to stream it over RTMP with ffserver. I managed to stream with ffserver through HTTP port 8090, but how can I do it through RTMP?
[17:18] <BoR0> or is ffserver http only?
[17:20] <emhs> Weird. So, I've got -t 4:21, but it's still going and says time=0:11:00, and counting...
[17:20] <emhs> defaultro: Any ideas?
[17:23] <durandal_1707> caraculo: make sure that you  are using right version
[17:23] <durandal_1707> calling avcodec_version
[17:26] <caraculo> what do you mean? right version?
[17:26] <caraculo> I just download sources and compiled them locally
[17:27] <caraculo> then "ldd" points to the right .so
[17:39] <BoR0> I have a file that is 2GB. I want to stream it over RTMP with ffserver. I managed to stream with ffserver through HTTP port 8090, but how can I make ffserver listen RTMP?
[17:42] <durandal_1707> caraculo: called avcodec_register_all ?
[17:42] <caraculo> no
[17:42] <durandal_1707> that is source of problems...
[17:43] <durandal_1707> read header and read it when going to bed....
[17:43] <caraculo> oh my god.. well I am so new to FFMPEG, like IO started today!
[17:43] <caraculo> solved.
[17:45] <caraculo> now I get some Provided packet is too small...
[17:45] <caraculo> I am trying to encode frames by frame, they ate in YUV420 pixel format.
[17:46] <caraculo> using "avcodec_encode_video"
[17:47] <durandal_1707> use latest version, which autoallocates it for you (unless you need some special handling)
[17:47] <durandal_1707> avcodec_encode_video2
[17:52] <caraculo> well, this time one can truly say that I am a total noob here
[17:53] <caraculo> thanks durnadal_1707
[17:54] Last message repeated 1 time(s).
[17:58] <caraculo> the thing is that I want to encode a raw buffer.
[17:58] <caraculo> I know its address and it is in YUV420 pixel format.
[18:08] <spookybathtub> On a Mac Pro with GTX570 card running 10.8, can I benefit from ffmpeg's --enable-hwaccel options?  If so, how?
[18:12] <BoR0> I have a file that is 2GB. I want to stream it over RTMP with ffserver. I managed to stream with ffserver through HTTP port 8090, but how can I make ffserver listen RTMP?
[18:45] <spookybathtub> if I have two versions of ffmpeg (/usr/local/bin and /opt/local/bin), how do I specify which one has priority in the bash path?
[18:45] <tsjiller> spookybathtub: order of the elements in PATH
[18:46] <spookybathtub> but that will change it for all my executables in there.  I want to have /opt/local/bin priority for most things, but /usr/local/bin the priority for only ffmpeg
[18:47] <tsjiller> that is not possible
[18:47] <tsjiller> you could make another directory, and symlink ffmpeg into that directory and have that first in your PATH
[18:47] <spookybathtub> ok thanks
[18:48] <tsjiller> or just alias ffmpeg to /usr/local/bin/ffmpeg
[19:27] <tlhiv_work> durandal_1707: this around line 2749 --> http://pastebin.tlhiv.org/V1equQe2
[19:28] <tlhiv_work> durandal_1707: it's so that as i'm recording i can press the space bar and every time it is pressed it appends a text file with the "timestamp" (in seconds) for when i pressed it
[19:55] <verify> Good afternoon you guys, I am looking to use FFmpeg in my Java application, the Java is all finished, but now i need FFmpeg to stream to both RTMP Twitch, and RTMP localhost, so that i may be able to preview the stream with VLC embedded player in Java. Any help is appreciated.
[19:56] <DaCoder> Blasted NickServ commands, what is the command to sign in?
[19:57] <llogan> maybe the tee muxer can do what you want http://ffmpeg.org/ffmpeg-formats.html#tee
[19:57] <llogan> http://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs
[20:00] <DaCoder> llogan, i can create two output streams, but i cannot get the other one: "rtmp://127.0.0.1/live/myStream" to load in VLC. :/
[20:00] <llogan> is that a VLC problem or ffmpeg?
[20:01] <DaCoder> i will do that, and brb.
[20:12] <DaCoder> Pastbin link: http://pastebin.com/wwihdpHf
[20:12] <DaCoder> ^ included is bash script and the output errors
[20:28] <DaCoder> llogan, it seems to be a FFmpeg problem, since i cannot output to a local 127.0.0.1, and i wish to know how to output it to local before i ask on VLC how to play it. Issue is: i have no clue how RTMP works.
[20:36] <llogan> DaCoder: you're not using ffmpeg
[20:47] <DaCoder> llogan it is within libav?
[20:48] <DaCoder> ah i see
[20:48] <DaCoder> llogan: what do you suggest i do then? Is there a #avconv ?
[20:49] <llogan> use ffmpeg from FFmpeg if you want help in #ffmpeg or try the user help resources for avconv
[20:50] <llogan> ah, ignore those. i forgot they don't support x11grab, IIRC
[20:50] <llogan> trac.ffmpeg.org/wiki/UbuntuCompilationGuide
[20:50] <DaCoder> Does ffmpeg work in Linux Mint, and furthermore, can i use it in Bash? :o
[20:50] <llogan> yes. yes.
[20:51] <llogan> see compile guide.
[20:51] <DaCoder> llogan, is FFmpeg better than Avconv, or the same?
[20:52] <llogan> ffmpeg is better than avconv
[20:53] <llogan> you'll get a different answer in #libav
[20:54] <DaCoder> So there is no concievable performance difference?
[20:55] <llogan> there probably is a measureable difference but there are too many variables to give you an answer
[20:56] <DaCoder> llogan: well thanks for your help, i will ask my Q in libav, although their chat is all sorts of borked up
[20:56] <llogan> ok. i wouldn't know. i've never been there.
[20:56] <DaCoder> llogan: dont go, its scary :D
[20:57] <llogan> don't worry. i won't.
[20:57] <DaCoder> play it safe, and btw, how do you stream to twitch and to a preview screen for ffmpeg? All that compile stuff is way over my head.
[20:58] <llogan> i would look into the tee muxer
[20:59] <llogan> it not available for libav products
[20:59] <llogan> AFAIK
[21:00] <llogan> also, in your script, libx264 ignores -qscale (when using ffmpeg, not sure about avcorn)
[21:01] <llogan> instead use -crf or -bufsize and -maxrate
[21:02] <DaCoder> I switched to FFmpeg
[21:02] <DaCoder> avconv people told me to learn VB. and screw off >:(
[21:02] <llogan> note that ffmpeg from the repository is also from libav
[21:03] <llogan> and is therefore unsupported here
[21:03] <DaCoder> I didnt get the Rep one, but the linked one you gave me, from ffmpeg.com
[21:03] <llogan> if you mean one of the linux builds then i do not believe that is comes with x11grab support
[21:04] <DaCoder> Also, will the avconv bash script work with ffmpeg, if i just replace avconv with ffmpeg? Bash file is on the pastebin from earlier
[21:04] <llogan> meaning you must compile.
[21:05] <DaCoder> bahahah, i switched out the "avconv" with this: "ffmpeg" and this is the FIRST LINE: "ffmpeg version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2000-2013 the Libav developers"
[21:05] <llogan> it may work. remove '-qscale 3'. change '-b' to '-b:v'
[21:06] <llogan> as I mentioned already that is ffmpeg from the repo, which is also from libav as shown on that line
[21:06] <DaCoder> So what do i need to run for ffmpeg? Il uninstall avconv totally
[21:06] <llogan> 1. read http://stackoverflow.com/a/9477756/1109017
[21:06] <llogan> 2. follow http://trac.ffmpeg.org/wiki/UbuntuCompilationGuide
[21:06] <llogan> that is all
[21:08] <DaCoder> I will try and compile this then, brb
[21:08] <llogan> then once you get something like: ffmpeg version N-56333-g7129935 Copyright (c) 2000-2013 the FFmpeg developers
[21:08] <llogan> you have the right one
[21:09] <llogan> you also have '-c copy' in your script. this is mutually exclusive with -b:v so remove it
[21:11] <DaCoder> llogan: that bash file has since been updated, after the "-f (to twitch)" there is a "\" and then "-c copy -f flv (to me)"
[21:11] <llogan> oh, i see. i read it incorrectly
[21:15] <ayaka> I want to output my video stream in rtsp, I have know how to output rtp and done
[21:16] <ayaka> but it seems that av_guess_format("rtsp", NULL, NULL); doesn't make rtsp work
[21:16] <DaCoder> llogan: this is literally copy and paste work :D
[21:17] <ayaka> I got https://paste.debian.net/48849/
[21:17] <ayaka> the 192.168.6.5 is the ip of machine which want to offer rtsp server
[21:28] <DaCoder> ayaka how do you stream it out?
[21:29] <ayaka> DaCoder, using rtp
[21:29] <ayaka> I have notice I maybe wrong https://www.ffmpeg.org/ffmpeg-protocols.html#rtsp
[21:30] <ayaka> I shall use muxer, not outformat
[21:30] <ayaka> is that right ^^
[21:35] <DaCoder> I have no clue :o llogan might though
[21:50] <braincracker> zombies are coming!  http://www.youtube.com/watch?v=EfXs0ycpNZg
[21:56] <iive> braincracker: there was some russian drug that made the flesh rot... so we have all the components.
[22:02] <braincracker> Mother Decapitates, Stabbed, Eats 3 1/2 week old Baby  http://www.youtube.com/watch?v=kgO42hAgELU
[22:04] <braincracker> iive i have a basic problem with the zombie thing, in movies, zombies do not attack each other ;/
[22:10] <rcombs> do you have to compile libx264 with bitdepth set to 10 to have 10-bit H.264 output from ffmpeg?
[22:14] <braincracker> mm 30 bit h264?
[22:16] <rcombs> well, 10 bits per channel, 30 bits per pixel (though it's generally subsampled, so that's not exactly true)
[22:21] <relaxed> rcombs: yes, my static builds come with both http://johnvansickle.com/ffmpeg/
[22:21] <rcombs> relaxed: I meant if you're compiling ffmpeg yourself
[22:21] <relaxed> yes
[22:21] <rcombs> and judging by that page, it looks like the answer is yes
[22:39] <llogan> relaxed: that's the biggest favicon.ico i've ever seen
[22:42] <DaCoder> llogan: does this webpage you gave me come with x11grab?
[22:42] <DaCoder> or do i add it in later?
[22:42] <llogan> the compile guide? it will provide x11grab support
[22:43] <DaCoder> ok good, i added in all the lib's they said to d/l
[22:44] <DaCoder> llogan: that last compile method is a HELL of a long time taker
[22:50] <DaCoder> llogan: i just finished and running "ffmpeg" in terminal i get this: "$ ffmpeg 2>&1 | head -n1
[22:50] <DaCoder> ffmpeg version git-2013-05-18-5918b7a Copyright (c) 2000-2013 the FFmpeg developers" :/
[22:50] <llogan> DaCoder: you can add -j12 to make or whatever value is good for your CPU(s)
[22:50] <DaCoder> sorry, i meant : "The program 'ffmpeg' is currently not installed. You can install it by typing:
[22:50] <DaCoder> sudo apt-get install ffmpeg
[22:50] <DaCoder> "
[22:51] <llogan> enter "hash -r"
[22:51] <DaCoder> i have a folder: ffmpeg_build, and il run that
[22:51] <DaCoder> no change
[22:51] <llogan> is ffmpeg in ~/bin?
[22:51] <DaCoder> it is in my home folder? :/
[22:52] <DaCoder> the sources, and the build folder
[22:52] <llogan> it should be in /home/DaCoder/bin
[22:52] <DaCoder> there is one in ther
[22:52] <DaCoder> should i cd to that folder?
[22:53] <llogan> you shouldn't need to, but maybe something is wrong
[22:53] <DaCoder> i cd-ed to bin, and ran "ffmpeg" : "The program 'ffmpeg' is currently not installed. You can install it by typing:
[22:53] <DaCoder> sudo apt-get install ffmpeg
[22:53] <DaCoder> "
[22:53] <DaCoder> it can execute.
[22:54] <llogan> did you forget to run ". ~/.profile"? does .profile in Mint differ from Ubuntu?
[22:54] <DaCoder> i don't know, but i don't think i missed anything
[22:55] <DaCoder> i did run that
[22:55] <llogan> is this Mint 15?
[22:56] <DaCoder> it is
[22:56] <DaCoder> there is a bin folder in /
[22:56] <DaCoder> but it placed my bin in /home/sean/bin
[22:56] <llogan> yes, that's correct. it makes a "local" install so it does not interfere with system shit
[22:56] <DaCoder> ok good.
[22:57] <llogan> but it should also update your $PATH so it knows to look in ~/bin for binaries
[22:57] <DaCoder> ok
[22:57] <llogan> anyway, you can just run /home/sean/bin/ffmpeg
[22:57] <braincracker> ohoo yea, bath salt directly from england via mail  http://www.youtube.com/watch?v=teHW7SICd1c
[22:58] <DaCoder> still said: "not installed"
[22:58] <llogan> or "cd ~/bin && ./ffmpeg" or whatever  you prefer if the path stuff isn't working
[22:58] <llogan> you already ran "hash -r"?
[22:58] <DaCoder> i did
[22:58] <DaCoder> nothing happened
[22:58] <llogan> i don't know then
[22:59] <DaCoder> ah!
[22:59] <DaCoder> ./ffmpeg ran it
[22:59] <relaxed> llogan: fixed
[23:00] <DaCoder> llogan: so man, how do i run ./ffmpeg at cd "/home/sean/bin" in a bash?
[23:00] <relaxed>  /home/sean/bin/ffmpeg
[23:01] <DaCoder> i cant run ffmpeg
[23:01] <DaCoder> i HAVE to run ./ffmpeg
[23:02] <DaCoder> llogan: finally to do multiple outputs in ffmpeg? -c copy is in the old versions
[23:02] <relaxed> where is the binary?
[23:03] <llogan> should have been installed to $HOME/bin
[23:04] <DaCoder> sigh "FFmpeg: :0.0: Protocol not found"
[23:05] <relaxed> let's see the whole command
[23:05] <DaCoder> bash file in here? or pastebin? it is short
[23:05] <DaCoder> in here: "#! /bin/bash
[23:05] <DaCoder> clear
[23:05] <DaCoder> INRES="$1"
[23:05] <DaCoder> OUTRES="$2"
[23:05] <DaCoder> FPS="$3"
[23:05] <DaCoder> QUAL="$4"
[23:05] <DaCoder> STREAM="$5"
[23:05] <DaCoder> cd /home/sean/bin
[23:05] <DaCoder> ./ffmpeg \
[23:05] <DaCoder> -f x11grab -s $INRES -r $FPS -i :0.0 \
[23:05] <relaxed> for fuck'ssake
[23:05] <DaCoder> -f alsa -ac 2 -i pulse \
[23:05] <DaCoder> -vcodec libx264 -s $OUTRES -preset $QUAL \
[23:05] <DaCoder> -acodec libmp3lame -ar 44100 -threads 6 -q:a 3 -b:a 712000 -bufsize 512k \
[23:05] <DaCoder> -f flv $STREAM"
[23:05] <DaCoder> ^ ?
[23:07] <relaxed> I see this script at least once a month.
[23:07] <DaCoder> it is not my own, but a reference script (it works)
[23:08] <relaxed> never paste a script in any channel ever.
[23:08] <relaxed> I asked to see the ffmpeg command. Please learn the difference.
[23:08] <DaCoder> pastebin, got it. :'(
[23:09] <DaCoder> for the record, i just want FFmpeg to take fullscreen, and stream it to twitch/preview screen on vlc.
[23:11] <DaCoder> relaxed, that is the command i issue to ffmpeg. only thing else is output when it is run.
[23:12] <DaCoder> llogan: you still there dude? :o
[23:12] <relaxed> https://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs
[23:13] <relaxed> http://ffmpeg.org/ffmpeg-formats.html#tee
[23:18] <DaCoder> screw it, il stick with libav
[23:18] <DaCoder> relaxed, sorry man :/
[23:18] <DaCoder> last error: black video stream out
[23:19] <llogan> ah man, he was so close
[23:20] <relaxed> quitters never win
[00:00] --- Thu Oct  3 2013


More information about the Ffmpeg-devel-irc mailing list