[Ffmpeg-devel-irc] ffmpeg.log.20141204
burek
burek021 at gmail.com
Fri Dec 5 02:05:01 CET 2014
[02:52] <AlexLikerock> anyone can sahre a manual to streaming medi ?
[03:03] <AlexLikerock> media**
[03:47] <llogan> stephenmac7: just download a binary from the FFmpeg download page
[03:48] <stephenmac7> llogan: Right, but it would be nice if it was managed
[03:48] <llogan> not really much to manage there
[03:49] <stephenmac7> That's true
[04:16] <Snaggle> a bug in ffmpeg-2.5 configure? ../configure: line 4915: syntax error near unexpected token `}'
[04:16] <Snaggle> ../configure: line 4915: ` warn "using libx264 without pkg-config"; } } &&'
[08:05] <rjp421> for a live stream about 300kbit/s video and 1 channel 48kbps aac, what should the '-bt' be? i have '-b:v 300k'.. target is 350kbit/s total
[08:54] <rjp421> trying to find decent settings to split a live rtmp source to HDS/HLS multibitrate
[09:00] <rjp421> well transcoding and republishing multibitrate versions of streams from http://media.whohacked.me back to its self
[09:06] <Pkunk> I'm using ctx->rc_buffer_size to limit bitrate using libx264 .. But in most frames the upper half has good quality and the lower half is badly pixelated
[09:11] <Pkunk> Is there something else I'm supposed to set so the entire frame is reduced in quality if necessary to meet bitrate constraints ?
[09:12] <Matador> hmm
[09:13] <Pkunk> Right now it seems to hit the bitrate limit and then drop image quality for rest of the frame to pathetic
[09:18] <pikaren> where could i change the default v4+ styles for the .ass file ffmpeg outputs
[09:45] <K4T> is it possible with FFMPEG to add black box with red text to video?
[11:30] <K4T> I am trying to draw text from 13 second with that -vf:
[11:31] <K4T> -vf drawtext="fontfile=arial.ttf: timecode='00\:00\:13\:00': rate=25: text='TEST': x=-100: y=470: fontsize=130: fontcolor=white"
[11:31] <K4T> why it drawing text from the beggining of video file? not from 13 second?
[11:31] <K4T> how I can fix it/
[11:33] <K4T> anyone?.
[11:39] <K4T> ok, that example with timecode was stupid, but how I can add drawtext filter for specified video frame number?
[12:34] <zotta> what is the alternative to av_frame_get_buffer on libav?
[12:34] <zotta> (trying to make some code for ffmpeg compatible with libav)
[12:36] <zotta> in other words: how to allocate a video frame without av_frame_get_buffer?
[12:44] <kiran_> I am trying to compile the ffmpeg code with --enable-decklink
[12:48] <kiran_> but it fail to do so with this error http://pastebin.com/MT9fcDaB
[12:48] <kiran_> I suppose it need some ldflags as per in the document, but I dont what they should be
[13:06] <pikaren> ffmpeg is too complex
[13:09] <Mavrik> anshul_mahe, you're probably missing "-ldl"
[13:09] <anshul_mahe> ok I will give it a try thanks
[13:47] <anshul_mahe> I was adding it in extra_ldflags, I still have the same error
[13:54] <ribasushi> will repeat my question from yesterday in case someone new is in who can answer it:
[13:54] <ribasushi> <ribasushi> any time I use image2pipe I get the following warning: [image2pipe @ 0x8bf260] Stream #0: not enough frames to estimate rate; consider increasing probesize
[13:54] <ribasushi> <ribasushi> even though I did specify the framerate explicitly:
[13:54] <ribasushi> <ribasushi> ... -r $target_framerate -f image2pipe -c:v ppm -i - ...
[13:54] <ribasushi> <ribasushi> is there a way to silence this warning?
[13:58] <anshul_mahe> it might be bitrate
[14:00] <ribasushi> um... there isn't a concept of bitrate for image2pipe is there...
[14:00] <ribasushi> I suppose it is used to estimate the buffer sizing or somesuch?
[14:00] <b_jonas> ribasushi: I don't know, but I've seen such warnings too
[14:03] <K4T> could someone help me with command which allow me to fade in and fade out drawtext? Here is what I have: http://pastebin.com/V7t7kMMK
[14:03] <K4T> I know that I have to chane somehow value of fontcolor property
[15:23] <jerv> Could someone help me with the command to convert an mp4 file to a shorter clip that contains parts of the original? Say that I want the output file to contain only the data between t1->t2 en t3->t4, and nothing else?
[15:55] <jerv> ffmpeg -i in.mp4 -ss t1 -t (t2-t1) out.mp4 gives me a clip of time t1 to time t2. How can I add the clip of time t3 to time t4 to it?
[16:06] <b_jonas> is there an easy way to ask ffmpeg to change the speed of a video by multiplying all the frame timestamps with some constant I tell it?
[16:07] <b_jonas> also, how do I ask ffplay to interpret the raw video input as full range rather than scaling it to the 16..235 range?
[17:12] <Norith> I'm trying to convert a .mov to a .wmv, but when I run ffmpeg -i file.mov file.wmv, I get a the video converted but with the addition of a black bar on the right and bottom parts of the video (below the full-frame video, but as part of the video frame) Any ideas on how to convert without getting these bars?
[17:48] <rjp421> for a live rtmp h264 stream about 300kbit/s video and 1 channel 48kbps aac, what should the '-bt' be? i have '-b:v 300k'.. target is 350kbit/s total
[17:57] <Mavrik> rjp421, you should be using vbv x264 parameters, not bt for streaming.
[18:00] <rjp421> Mavrik, ty
[18:01] <Mavrik> rjp421, so do something like vbv-maxrate 300k vbv-bufsize 150k
[18:02] <Mavrik> adjust bufsize according to player's actual buffer size :)
[18:02] <rjp421> cool, ty again :)
[18:05] <anshul_mahe> i am trying to stream live feed, Whatever fps I ask it to transfer, encoder does it in less then that
[18:06] <anshul_mahe> if i try to stream at 5fps it does encoding at 3-4 fps
[18:06] <anshul_mahe> if i do it 25fps it encodes in 21-22 fps
[18:07] <anshul_mahe> I even tried 1 fps h264 encoder is not able to do it
[18:08] <anshul_mahe> Things work when I transfer in ts format, but when I switch it to hls it does not work
[18:08] <anshul_mahe> does any one else here had this expirience
[18:11] <dom__> hi all
[18:11] <dom__> i need help
[18:12] <dom__> i want convert a rtsp stream with h264 encode to jpg
[18:12] <dom__> but print an error
[18:12] <dom__> we can give me the right command please ? :)
[18:15] <anshul_mahe> dom__: !pb
[18:15] <anshul_mahe> dom__: pb!
[18:16] <anshul_mahe> paste bin your command
[18:24] <anshul_mahe> I got solution to mine own problem, it was because of latency caused by ftp connection for each segment
[18:25] <anshul_mahe> this irc looks like lucky to me, usually I get the solution as soon as I paste my problem here. :)
[20:00] <xanal0verlordx> How to use drawtext with textfile?
[20:01] <xanal0verlordx> Will '~/text' be correct for textfile option?
[20:02] <llogan> textfile=/path/to/textfile
[20:03] <xanal0verlordx> So using tilda to link it to home is incorrect?
[20:08] <xanal0verlordx> It works now.
[20:11] <xanal0verlordx> still does not
[20:12] <xanal0verlordx> Key 'borderw' not found.
[20:31] <wallbroken> hi
[20:32] <wallbroken> i need to rotate 90° a video
[20:32] <wallbroken> i used ffmpeg -i input -vf "hflip,vflip,scale=1024:-2" -metadata:s:v rotate="" -c:a copy output.mov
[20:32] <wallbroken> but it rotates 180
[20:37] <llogan> wallbroken: try the transpose filter instead of *flip (and you get a bonus point for removing the existing stream rotation metadata)
[21:17] <wallbroken> llogan, sadly the rotation metadata isn't readed by most of video player, vlc included
[21:18] <wallbroken> the only one i've found that read it is quicktime
[21:19] <JEEB> check mpv
[21:19] <JEEB> the newest, least retarded mplayer fork
[21:19] <JEEB> and if it doesn't support it and libavformat can parse it, file a bug report or poke the IRC channel
[21:19] <llogan> yes, it's annoying and results in an impasse in what the default behavior of ffmpeg should be. (some want it to auto rotate according to metadata)
[21:20] <wallbroken> my default player is vlc
[21:20] <wallbroken> but it does not read metadata :\
[21:20] <wallbroken> rotating a video means lossy
[21:20] <wallbroken> and it's not a good thing
[21:21] <JEEB> llogan, lavc doing the rotation is probably not going to happen, but if lavf parses the information it should be pass'able to the renderer
[21:21] <JEEB> (except with f.ex. DirectShow where it's actually pretty hard to pass it through)
[21:21] <llogan> i expect ticket 515 to continue to be open for a long time
[21:22] <JEEB> so does lavf parse that metadata?
[21:22] <llogan> not that i am aware
[21:22] <JEEB> well then of course it would be rather non-simple to implement it in players :)
[21:24] <llogan> JEEB: looks like ffplay pays attention to it now
[21:24] <llogan> when did that happen?
[21:25] <llogan> 08c51e1
[21:34] <wallbroken> llogan, doesn't seem to work
[21:34] <wallbroken> in the sense that the video becomes rotated
[21:34] <wallbroken> but has problem in playback
[21:34] <wallbroken> and does not seems resized
[21:36] <wallbroken> another strange thing is that with the first command, the file becomed 4 mb
[21:36] <wallbroken> with the second, it becomes 14 mb
[21:47] <sakamotoryuichi> have someone experienced problem while muxing aac stream into mp4 container, the following error occurs 'aac channel element is not allocated' while decoding, after filling audio specific config into extradata in avcodeccontext and stripping adst header from frames error still occurs, can someone provide a solution/sugestion for this problem ?
[21:50] <wyatt8740> whats your command?
[21:50] <wyatt8740> could we see your entire message log?
[21:51] <boba> hi
[21:52] <wyatt8740> o/
[21:53] <boba> i'm new, and i would like to know if there is a tutorial on how to trim multiple mp3 down to 30 sec, anyone can guide me please, i'm using the windows build
[21:53] <wyatt8740> yeah, I can help but IDK if theres a tutorial
[21:54] <boba> quick question, if i trim a mp3, will i lose the meta info?
[21:54] <wyatt8740> not unless you tell it to
[21:54] <boba> kool
[21:55] <boba> if you are not busy, mind telling me what to do, i'm not very use to the command interface :s
[21:55] <wyatt8740> so something like this: 'ffmpeg -i mp3file.mp3 -ss <start time, format hh:mm:ss.xxx> -t <duration, same time format> -ab <audio bitrate, 128k is usually sufficient for my ears> -acodec libmp3lame trimmedmp3.mp3'
[21:56] <wyatt8740> so for example ffmpeg -i mp3file.mp3 -ss 00:01:30.000 -t 00:00:30.000 -ab 128k -acodec libmp3lame trimmedmp3.mp3
[21:57] <wyatt8740> actually better to do this: ffmpeg -ss 00:01:30.000 -i mp3file.mp3 -t 00:00:30.000 -ab 128k -acodec libmp3lame trimmedmp3.mp3
[21:57] <boba> this is for a single file were the file is mp3file.mp3
[21:57] <wyatt8740> the start time before the input option
[21:57] <wyatt8740> but that would make it start at 1 minute 30 seconds and stop 30 seconds later
[21:57] <wyatt8740> and encode an mp3 at 128kbps
[21:57] <wyatt8740> yeah
[21:57] <boba> is there a way to trim all the mp3 files located in a specific folder?
[21:57] <wyatt8740> what OS do you use>
[21:57] <wyatt8740> *use?
[21:57] <boba> Windows
[21:58] <wyatt8740> okay just a second while i brush up on my batch
[21:58] <wyatt8740> it's been a while since I regularly used windows
[21:58] <boba> no worry
[21:58] <wyatt8740> well first CD into the directory of choice
[22:00] <wyatt8740> then make a directory for the trimmed ones
[22:00] <wyatt8740> 'md trimmed' for example
[22:05] <wyatt8740> then I think this would work
[22:05] <wyatt8740> for %a in (*.mp3) do ffmpeg -ss 00:01:30.000 -i %a -t 00:00:30.000 -ab 128k -acodec libmp3lame trimmed\%a
[22:06] <boba> excellent
[22:06] <boba> tyvm
[22:06] <wyatt8740> did it work?
[22:06] <boba> i'll test it
[22:07] <wyatt8740> it should put all the outputs in the 'trimmed' folder
[22:14] <llogan> boba: use -c copy instead of -acodec libmp3lame if you don't want to re-encode
[22:15] <wyatt8740> I'd use -acodec copy but yeah^
[22:15] <boba> i changed directory to go to the dirrectory with all the mp3 files
[22:15] <boba> i created the new directory trimmed
[22:15] <llogan> -c copy will probably also copy the album art "video" stream, while -acodec copy will just copy the audio and then re-encode the album art if present
[22:15] <boba> did this
[22:15] <boba> 'for %a in (*.mp3) do ffmpeg -ss 00:00:00.000 -i %a -t 00:00:15.000 -ab 128k -acodec libmp3lame trimmed\%a'
[22:16] <wyatt8740> without the ' marks i hope
[22:16] <boba> returned : 30: No such file or directory
[22:16] <boba> right without '
[22:16] <wyatt8740> oh, I know!
[22:16] <wyatt8740> add " marks around each %a
[22:16] <wyatt8740> so it will look like
[22:16] <wyatt8740> "%a"
[22:16] <wyatt8740> you have spaces in your filenames
[22:16] <boba> ok sec
[22:17] <boba> right i do exemple : 30 The Beach Boys - Good Vibrations
[22:17] <wyatt8740> at the end do "trimmed\%a"
[22:17] <wyatt8740> but yeah
[22:17] <boba> 30 The Beach Boys - Good Vibrations.mp3
[22:17] <wyatt8740> right
[22:20] <boba> ok
[22:20] <boba> 'for "%a" in (*.mp3) do ffmpeg -ss 00:00:00.000 -i "%a" -t 00:00:15.000 -ab 128k -acodec libmp3lame "trimmed\%a"'
[22:20] <boba> returned '"%a" was unexpected at this time.'
[22:28] <wyatt8740> what?
[22:29] <wyatt8740> you have an extra ' inside of the "
[22:29] <wyatt8740> guessing that was unintentional
[22:30] <wyatt8740> for "%a" in ("*.mp3") do ffmpeg -ss 00:00:00.000 -i "%a" -t 00:00:15.000 -ab 128k -acodec libmp3lame "trimmed\%a"
[22:30] <wyatt8740> note the "*.mp3" that i added
[22:30] <wyatt8740> I dont have a windows computer to test on but I think this will work
[22:31] <wyatt8740> also make it
[22:31] <wyatt8740> for %a in (*.mp3) do ffmpeg -ss 00:00:00.000 -i "%a" -t 00:00:15.000 -ab 128k -acodec libmp3lame "trimmed\%a
[22:31] <wyatt8740> sorry i meant
[22:31] <wyatt8740> for %a in (*.mp3) do ffmpeg -ss 00:00:00.000 -i "%a" -t 00:00:15.000 -ab 128k -acodec libmp3lame "trimmed\%a"
[22:31] <wyatt8740> still wrong sorry
[22:31] <wyatt8740> for %a in ("*.mp3") do ffmpeg -ss 00:00:00.000 -i "%a" -t 00:00:15.000 -ab 128k -acodec libmp3lame "trimmed\%a"
[22:31] <wyatt8740> NOW^
[22:34] <boba> worked
[22:34] <boba> unfortunatly, i lost all the meta information :s
[22:35] <boba> if i use copy instead of acodec, do you think it will work?
[22:36] <boba> something like : for %a in ("*.mp3") do ffmpeg -ss 00:00:00.000 -i "%a" -t 00:00:15.000 -ab 128k -c copy "trimmed\%a"
[22:36] <BtbN> Not sure if trimming works without re-encoding
[22:36] <kepstin-laptop> that's a bit odd, i've usually found that ffmpeg copies metadata by default
[22:39] <kepstin-laptop> I just tried that myself, it copied the metadata fine.
[22:39] <kepstin-laptop> it might have used id3v2.4 by default tho, which windows and MS apps don't support
[22:45] <boba> so i'm screwed?
[22:46] <kepstin-laptop> boba: no, just add "-id3v2_version 3" to your command line
[22:46] <boba> like this : for %a in ("*.mp3") do ffmpeg -ss 00:00:00.000 -i "%a" -t 00:00:15.000 -ab 128k -id3v2_version 3 -c copy "trimmed\%a"
[22:47] <boba> yes
[22:47] <boba> it worked
[22:48] <boba> you guys are life savors lol
[22:48] <boba> been looking for software for 1 week
[22:48] <boba> and heard about ffmpeg on an obscure overstack post lol
[22:49] <boba> *i mean stackoverflow post
[22:50] <bertsmolders> I compiled ffmpeg with vaapi support and my graphics card (AMD) supports xvba/vaapi. Will ffmeg now automatically decode using hardware acceleration or should I do something specific?
[22:51] <JEEB> ffmpeg the command line application will most probably not use it at all, and yes you would have to specify the hwaccel using decoder if there was/is such
[22:51] <kepstin-laptop> it's not used automatically; specific applications will often have config to enable it
[22:51] <JEEB> but IIRC there is no decoder implemented in ffmpeg for va-api, just vdpau
[22:52] <JEEB> libavcodec does have hwaccels that can be used by applications, of course
[22:53] <bertsmolders> ok, thanks
[23:03] <wyatt8740> no problem :D
[23:04] <wyatt8740> (@boba)
[23:15] <stapss> can someone tell me whats the lowest value of -analyzeduration i can use?
[23:33] <c_14> 0
[23:38] <TheJoker2244> We are looking to hire a ffmpeg expert to fix a problem that we are having. We pay well and I doubt it will take more than an hour or two to diagnose and fix. Please private message me if interested, and I will get you in touch with the project manager.
[00:00] --- Fri Dec 5 2014
More information about the Ffmpeg-devel-irc
mailing list