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

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


[01:27] <Guiri> I'm having trouble using ffserver to create a live webm stream.  Apparently my input file doesn't have global headers?  http://fpaste.org/116521/48619881/ Is there a way to fix this?
[01:28] <BtbN> ffserver is unmaintained and very likely to be removed in future ffmpeg version.
[01:32] <Guiri> BtbN: Thanks.  I didn't know that.
[02:01] <derek_> does anyone know why at 21 seconds this video fades out? (you have to seek to around 20 seconds, then let it pay for a second or two)
[02:01] <derek_> https://still-beyond-8192.herokuapp.com/v/japhYFOGbuc
[02:02] <derek_> *play
[02:10] <sacarasc> How was it encoded?
[02:25] <derek_> http://pastie.org/9369686
[02:29] <sacarasc> Does the original fade?
[02:29] <sacarasc> Does the encoded one fade when not in the flash player?
[02:31] <derek_> when I play it in quicktime the encoded version does not fasde
[02:31] <derek_> and the unencoded one doesn't fade in the flash player
[02:39] <relaxed> derek_: why do you have "-f 15"?
[02:45] <Peter_Occ> On this page, it shows a script for starting ffmpeg  https://trac.ffmpeg.org/wiki/Using%20FFmpeg%20from%20PHP%20scripts  In th script is echo shell_exec("ffmpeg -i input.avi output.avi &"); If this is being run from a directory on the web server, what is the directory for those files?
[02:45] <derek_> tring to follow apples recommendations for HLS
[02:46] <derek_> it should be 30 in the command i pasted above, I made a mistake
[02:46] <derek_> and -g should be 90
[02:47] <relaxed> -f is to specify the format, alter in the command you have "-f mpegts"
[02:47] <relaxed> later*
[02:47] <derek_> haha
[02:47] <derek_> whoops
[02:47] <derek_> it should be -r
[02:48] <relaxed> which version of ffmpeg are you using?
[02:50] <derek_> ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers
[02:51] <relaxed> try adding -tune animation
[02:52] <relaxed> but since it plays back fine under quicktime it might be a flash player bug or something.
[02:55] <devnill> I'm trying to segment an mpeg but every outputted file after the first has issues playing.
[02:59] <derek_> the -tune seems to make things much worse
[02:59] <derek_> im starting to think it may be some kind of bug in flash as well
[02:59] <derek_> i think I will start removing flags until i find the one thats causing the issue
[02:59] <derek_> it never did this before i switch to a 2 pass encoding
[05:08] <waressearcher2> from that page https://trac.ffmpeg.org/wiki/FilteringGuide I use that command "ffmpeg -i 1.avi -i 1.avi -i 1.avi -i 1.avi -filter_complex "[0:v]pad=iw*2:ih*2[a]; [1:v]negate[b]; [2:v]hflip[c]; [3:v]edgedetect[d]; [a][b]overlay=w[x]; [x][c]overlay=0:h[y]; [y][d]overlay=w:h[out]"  -c:v mpeg4 -vb 1500k -y -f avi 2.avi" to get 2x2 grid of 4 videos,
[05:08] <waressearcher2>  but that command also use filters, what should I remove to disable filters ? I want 1.avi video to be in 2x2 grid in output 2.avi video
[05:52] <waressearcher2> anyone ?
[06:27] Last message repeated 1 time(s).
[06:27] <sacarasc> waressearcher2: Did you read the description of it@?
[06:28] <waressearcher2> little
[06:28] <sacarasc> Within the filtergraph the first input is padded to the right and bottom by double its height, and the other three inputs are individually filtered using hflip, negate, and edgedetect.
[06:29] <waressearcher2> I just need greed of 2x2 videos from one 1.avi, can you write that command for me ?
[06:41] <sacarasc> By testing and reading the docs, I can say that this works: -filter_complex "[0:v]pad=iw*2:ih*2[a];  [1:v]copy[b]; [2:v]copy[c]; [3:v]copy[d]; [a][b]overlay=w[x]; [x][c]overlay=0:h[y]; [y][d]overlay=w:h[out]" -map "[out]"
[06:48] <waressearcher2> thanks
[06:49] <waressearcher2> but there is no sound from iriginal video
[06:52] <sacarasc> Try adding -map 0:a
[06:52] <sacarasc> Also, reading http://ffmpeg.org/ffmpeg-all.html is awesome.
[06:53] <waressearcher2> its huge to read
[06:53] <pzich> I should do that at some point
[06:53] <waressearcher2> pzich: so you can help other people who don't read it ?
[06:53] <pzich> that seems to have already happened with the little knowledge I have of ffmpeg
[06:55] <waressearcher2> sacarasc: what if I use 4 different videos, is there a way to also mix audio from all 4 of them ?
[06:56] <sacarasc> Read the page I just linked and look for audio filters.
[07:10] <derek> JW Player solely supports self-initializing TS fragments, meaning they start with a PMT/PAT definitions and a full H264 IDR frame.
[07:10] <derek> how do I tell ffmpeg to do this when generating a ts fragment?
[08:08] <abckb__> hi I am trying to build ffmpeg following this guide: http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu . Do I have to pass any special --enable... flag to get video4linux capture device support?
[08:19] <waressearcher2> say I have pictures and instead of slideshow when every new picture shown every 2 seconds, I want to slice over them from left to right, can ffmpeg do this ? its like long row of pictures and your screen slices over them
[08:51] <rrouton> has anyone had the frame go black in the media player when seeking?  ie moving the seek bar forward or back
[08:51] <rrouton> sound is fine, i just lose visual
[08:52] <waressearcher2> rrouton: do you use mplayer ?
[08:53] <rrouton> it was just in quicktime actually
[08:53] <waressearcher2> try #apple
[08:54] <rrouton> running a custom muxer from the sample code and I have it displaying some test pixels and a auto generated sin wave that increases in freq over time, but seeking seems to f up the image, didn't happen before
[08:55] <rrouton> bit like programming in a black box =\
[08:56] <rrouton> anyone here have experience working with the api's?
[08:58] <waressearcher2> rrouton: no
[09:17] <montecfel> How can I force constant bitrate and not variable?
[09:17] <montecfel> Without having to specify an exact one.
[09:17] <montecfel> I just want it to pick one and stick with it.
[09:17] <montecfel> Not use VBR.
[09:19] <waressearcher2> -vb 2000k ?
[09:21] <montecfel> waressearcher2: Why 2000k?
[09:23] <waressearcher2> quite enough
[09:23] <montecfel> waressearcher2: Is it a joke or real suggestion?
[09:23] <waressearcher2> when I convert videos from HD to 650x366 to watch on my pentium 3 I use "-vb 1500k"
[09:24] <waressearcher2> sometimes 2000
[09:24] <waressearcher2> so, no its from real experience
[09:24] <waressearcher2> I don't know what you fancy panty used to, maybe blueray quality, but I watch it in low res
[09:25] <montecfel> Yes, I only accept 1080p these days.
[09:25] <montecfel> And I want a command that is safe and not varies each single time I have to run it.
[09:25] <waressearcher2> s/panty/pants/
[09:25] <montecfel> I need the bitrate to remain constant, because otherwise, there's audio drifting in Premiere Pro.
[09:26] <waressearcher2> montecfel: are all software on you PC licensed or pirated ?
[09:27] <montecfel> So basically, I want the fixed bitrate to be whatever is the maximum used in the specific file in question.
[09:27] <montecfel> Can this be done?
[09:41] <waressearcher2> montecfel: why don't you use "ffprobe video.avi | grep bitrate" and set that bitrate as "-vb X" ?
[09:43] <montecfel> waressearcher2: Mainly because I don't have a ffprobe.exe and because I can't really use batch scripts to store that info in a variable and then use it later.
[09:43] <montecfel> In my experience, even the most basic of tasks are a nightmare to do with batch scripting.
[09:43] <montecfel> Or shell scripting in Unix for that matter.
[09:43] <montecfel> Anything beyond a series of commands, basically.
[09:43] <montecfel> Also, this really needs to be a single command.
[09:43] <montecfel> Because it's executed from a context menu item.
[09:43] <waressearcher2> you compare batch scripting with shell scripting ? and they both are nightmare for you ?
[09:44] <montecfel> Yes.
[10:00] <FrEaKmAn_> hi all..
[10:00] <FrEaKmAn_> I'm doing a simple online video editing solution
[10:00] <FrEaKmAn_> my first idea was to use flash and later convert everything to flv/mp4 or anything similar
[10:01] <FrEaKmAn_> but I quickly realized it might be too hard to do it + I don't cover other platforms
[10:01] <FrEaKmAn_> now the idea is to use ffmpeg to encode everything
[10:02] <FrEaKmAn_> my question is.. can there be any problems? for example if use defined to show image at x,y that I might be different when using ffmpeg to encode?
[10:02] <FrEaKmAn_> I have simple preview tool built with flash and I'm afraid the results might defer
[10:02] <FrEaKmAn_> differ*
[10:12] <montecfel> Oh, yeah, there will be problems for sure.
[10:13] <montecfel> Even the simplest of problems always end up being a nightmare due to crappy (or nonexistent) documentation.
[10:13] <montecfel> Or just plain bad decisions.
[10:21] <Dark-knight> this is a quote to live by, when your at the beach.
[10:21] <Dark-knight> cleavage is like the sun.
[10:21] <Dark-knight> if you wear sunglasses you can stare at it longer.
[10:32] <FrEaKmAn_> :)
[10:34] <montecfel> I don't even know why I should stare at it.
[10:34] <montecfel> It's just torture.
[10:34] <montecfel> Like starving and watching cheeseburgers on the other side of a jail cell.
[10:40] <FrEaKmAn_> if I want to perform multiple things like 1. trim video 2. add text. should I do this with one command? or should I first trim and again call to add text
[13:03] <dentex> test
[14:03] <yamee> how can i split a mp4 containing 1video 2audio and 2 subtitle streams ?
[14:04] <yamee> like keeping 10seconds and keeping all stream
[14:04] <yamee> s
[14:12] <hay> hi, we are streaming transport stream to some special device where it occassionally happens like the input stream is not present.. 99% of the time things work perfectly, I am using VBR as an input setting on that device.. what bothers me is the number of duplicate frames increasing in the CLI of the FFMPEG... could those (perhaps untransmitted) dups be the reason why the receiving device stops
[14:12] <hay> getting the stream for a short period?
[14:27] <BlackDream> Hello, why when i specify -segment_list_size 1 in my ffmpeg command it always shows 2 TS in the m3u8 file? And when i specify -segment_list_size 2 it will write 3 at the same time etc etc
[14:44] <bencc> can I crop mp4 without re-econding?
[14:45] <klaxa|work> no
[14:45] <klaxa|work> you can crop at playback time using filters if you are using a player that supports ffmpeg's filters (or rather mplayer's filters) like mplayer/mplayer2/mpv/ffplay
[14:46] <bencc> ok. thanks
[14:52] <yamee> every time i try to split a mp4 file with -ss and it only keeps the first video and first audio stream why is that?
[14:53] <waressearcher2> try "-aid" option
[15:04] <yamee> waressearcher2: could not find this option
[15:05] <yamee> ffmpeg -ss 0:0:0 -t 0:0:10 -i source.mp4 outpout.mp4 only keeps first video and first audio
[15:05] <yamee> i want to keep all streams
[15:21] <Mavrik> yamee, well tell ffmpeg to copy them
[15:21] <Mavrik> -codec copy
[17:36] <dentex> Hello guys. Don't want to abuse your patience... Mavrik already helped me a lot on a similar issue. I compiled FFmpeg for android, armv7 architecture, neon enabled. using it in my app, a user reported incompatibility with his BlackBerry z10 device. does anyone know what compilation switched would work in this case? unfortunately no root - no logcat...
[17:37] <dentex> the z10 has a msm8960 snapdragon cpu
[17:38] <dentex> neon capable. I don't know what could be the issue
[17:38] <waressearcher2> why someone would need ffmpeg on android smartphone ?
[17:38] <klaxa|work> there are reasons and questioning the origin does not really help as it is already in production and use apparently
[17:39] <dentex> it's a plugin for a video  management app. I use it to do what FFmpeg can so... ;)
[17:39] <dentex> *do
[17:45] <dentex> klaxa|work: yes this is the case http://dentex.github.io/apps/youtubedownloader/
[17:45] <klaxa|work> huh? is it in the playstore? i thought google forbid apps to download stuff from youtube
[17:46] <waressearcher2> is there a plugin for firefox on android that can download youtube videos ?
[17:47] <dentex> klaxa|work: not available through play
[17:48] <dentex> waressearcher2: not that I'm aware of...
[17:49] <waressearcher2> but there is one for regular firefox
[17:51] <dentex> yes. but they are not interchangeable
[18:04] <waressearcher2> but its interesting why there is no such plugin for android firefox, same reason ? google prohibit it ?
[18:04] <waressearcher2> considering that google own android store that is obvious
[18:06] <JEEB> uhh
[18:07] <JEEB> why would you have to even go to the play store for add-ons :P
[18:07] <JEEB> you can just browse them in android firefox just like with desktop firefox
[18:14] <dentex> yes you get Firefox plugins on Android browsing them from the app
[18:15] <dentex> so I think it's a matter of porting them to the mobile Firefox
[18:16] <JEEB> plugins, yes
[18:16] <JEEB> (and thus I notice that the person actually used that word)
[18:18] <dentex> am I the person? :p
[18:19] <dentex> anyway, going back to the blackberry issue... any thoughts?
[19:50] <dentex2> :{ been kicked off as dentex... network failure...
[20:21] <chrisg8> Hello guys
[20:21] <chrisg8> I'm using this Command: ffmpeg -i "http://4.31.30.145:9080" -map 0 -acodec aac -vcodec copy -strict -2 -f segment -segment_format flv -segment_list_size 1 -segment_wrap 4 -segment_list /tmp/stream.m3u8 /tmp/%03d.ts
[20:21] <chrisg8> It works but no matter what i will enter in -segment_list_size it will always write in m3u8 file +1 of that i entered
[20:22] <chrisg8> for example with -segment_list_size 1 it writes 2 ts streams in m3u8, if i enter 2 it will write 3, 3 - 4 etc etc
[20:22] <chrisg8> why is that happening
[20:23] <c_14> I'm pretty sure it's because the file will always contain the current stream + segment_list_size previous streams.
[20:23] <chrisg8> its not possible to have only one?
[20:23] <chrisg8> for example with -f hls i did it
[20:23] <chrisg8> but -f hls does not support flv format
[20:29] <chrisg8> With: -f hls -hls_time 10 -hls_list_size 1 -hls_wrap 4 -start_number 0 => it writes only 1 ts in the m3u7 file which is what i wanted
[20:29] <chrisg8> but this is mpegts stream not Flv :/
[20:29] <c_14> Hmm, if I'm reading the code right it should work...
[20:29] <c_14> Let me test.
[20:30] <chrisg8> I'm using ffmpeg version 2.2.4
[20:30] <c_14> I think I know what the problem is.
[20:31] <chrisg8> what is it? :O
[20:31] <c_14> It appends a new element, checks if segment_count is greater than list_size and deletes the first segment if it is and then increments segment_count
[20:32] <c_14> So the list is always 1 greater than it thinks it is when it checks whether or not to delete the first element.
[20:32] <chrisg8> it's a bug or feature?
[20:33] <c_14> I think it's a bug, the patch should be relatively trivial though.
[20:34] <chrisg8> Should i reprt it?>
[20:34] <chrisg8> report*
[20:36] <c_14> Yeah, it would probably be best if you made an issue on the tracker.
[20:36] <c_14> I can think of numerous ways to fix the issue but am not sure which would be cleanest.
[20:40] <chrisg8> No need to fix it now, i will just parse it as 2 :p
[20:40] <chrisg8> but it force me to completly change my code now
[20:42] <chrisg8> c_14: does -f hls and -f segment -segment_format mpegts has any difference in stream handling? i guess no, just to be sure
[20:54] <c_14> don't think so
[20:54] <c_14> let me check
[20:56] <c_14> Actually, hls has it's own c file and it's own separate implementation, so it might be different.
[21:02] <c_14> Also, I just checked the hlsenc code and found why it works for hls and not for segment. hls checks >= while segment checks >
[21:05] <c_14> Have you submitted a bug yet? Now that I know what the difference is between the hls code and the segment code I could prepare and submit a patch pretty quickly.
[21:05] <c_14> So if you've submitted the bug already I can mark the patch as closing the issue and if not I can just send the patch to the ml and report the issue there.
[00:00] --- Thu Jul 10 2014


More information about the Ffmpeg-devel-irc mailing list