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

burek burek021 at gmail.com
Wed Nov 5 02:05:02 CET 2014


[01:32] <ashlee> how do i include mulitple vf filters
[01:32] <ashlee> i tried -vf 'scale=-1:360,ass=[HorribleSubs]_Trinity_Seven_-_01_[720p].mkv.ass' but it doesnt work
[01:35] <klaxa> !pastebin ashlee
[01:35] <klaxa> er... what was the command again?
[01:35] <klaxa> anyway, pastebin your command with ffmpeg's complete output
[01:35] <ashlee> how do i chain two vf filters
[01:35] <ashlee> or just include two vf filters
[01:35] <klaxa> the way you did looks not wrong to me
[01:36] <klaxa> so post your output
[01:36] <ashlee> it says cant initialize [AVFilterGraph @ 0x7fc910503ae0] Error initializing filter 'ass' with args ''
[01:36] <klaxa> probably shell escaping then
[01:36] <ashlee> [Parsed_ass_1 @ 0x7fc9106004a0] No filename provided!
[01:38] <ashlee> ok thanks
[01:38] <klaxa> oh also, you can pass an mkv file to the ass-filter
[01:38] <klaxa> you don't need to extract it first
[01:38] <ashlee> which subtitle track will it pick
[01:38] <klaxa> the first one i guess? since when did horriblesubs release more than 1 subtitle track?
[01:39] <klaxa> (except for monogatari s2)
[01:39] <ashlee> im not just dealing with one file
[01:39] <klaxa> ah
[01:39] <ashlee> i have other files which have multiple subtitle tracks
[01:39] <ashlee> i will stick to this method for now
[01:40] <ashlee> are there docs on how that works
[01:40] <klaxa> not sure, when in doubt, test it out
[01:40] <ashlee> yeah i rather not
[01:41] <ashlee> since i know this way works lol
[01:41] <klaxa> read man ffmpeg-filters too
[01:41] <klaxa> ah, if you use subtitles instead of ass you can select the stream index
[01:42] <klaxa> for example: subtitles=video.mkv:si=1
[01:47] <Alski> So I am totally new to ffmpeg (but not handling audio/video in general), but I have a clear goal. I want to take a variable number of frames at random from a directory full of video files, and render them together into one file. Where would be a good place to start looking for resources?
[01:48] <klaxa> https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images
[01:48] <klaxa> maybe take a look at the image2pipe input format so you can pipe random images into ffmpeg
[01:49] <llogan> the select filter may also be worth a look.
[01:49] <klaxa> (would be like: cat *.jpg | ffmpeg -i - [other stuff] out.mp4
[01:49] <klaxa> )
[01:51] <ashlee> i see
[01:53] <Alski> That is great, I'll start taking a look at that.
[01:56] <Alski> Hmm... I can see now how I could use images to achieve this, but I wonder how I could pull just small segments of the videos. Kind of like a quick random montage from a selection of videos.
[03:26] <d3m0n> Does anyone have a good boiler plate to convert avi to h.264 web ready video?
[03:30] <rcombs> d3m0n: `ffmpeg -i in.avi -vcodec libx264 -crf 18 -acodec libfdk_aac -faststart 1 out.mp4`
[03:31] <d3m0n> Thanks rcombs, I'll give it a try.
[03:32] <blippyp> Alski: If I were you I would probably make an EDL file using mplayer instead of pulling 'random' clips, then I would use the time stamps from the EDL file to create your montages. (just a thought).
[03:57] <d3m0n> rcombs: Unrecognized option "faststart"
[03:58] <rcombs> d3m0n: erm, -mov_flags +faststart
[03:59] <d3m0n> Unrecognized options "mov_flags" haha
[04:03] <d3m0n> Ahh I think it's -movflags
[04:33] <kylechenoO> Hello everybody
[04:33] <kylechenoO> iv got into trouble when I'm building ffmpeg-php module
[04:34] <kylechenoO> can anyone help ?
[04:40] <rcombs> >php
[04:41] <kylechenoO> yep php
[07:03] <d3m0n> How can I increase/decrease the quality when creating webm:
[07:03] <d3m0n> >ffmpeg -i input.avi -vcodec libvpx -acodec libvorbis output.webm
[07:06] <blippyp> 4chan?
[07:06] <d3m0n> huh?
[07:07] <blippyp> just thought you wanted it for 4chan
[07:07] <d3m0n> webm is widely O_O
[07:07] <d3m0n> used*
[07:07] <blippyp> ya, I know - but most people want it for 4chan...  ;)
[07:07] <d3m0n> Nah for my site
[07:08] <blippyp> Here's a script I made for 4chan, it will show you lots I think - https://github.com/BlippyPippins/4ChanWebm
[08:29] <d3m0n> avi to webm keeps screwing up my color
[08:29] <d3m0n> how can i set the best output
[08:30] <d3m0n> I already tried -quality best
[08:30] <c_14> https://trac.ffmpeg.org/wiki/Encode/VP8 ?
[08:30] <d3m0n> "ffmpeg -i desktop-src.avi -vcodec libvpx -quality good -cpu-used 0 -acodec libv
[08:30] <d3m0n> orbis desktop.webm"
[08:32] <c_14> And what do you mean screwing up your color?
[08:32] <d3m0n> It flickers differnt hues
[08:32] <blippyp> post your code
[08:32] <d3m0n> That my source doesn't have
[08:32] <d3m0n> I did above?
[08:33] <d3m0n> "ffmpeg -i desktop-src.avi -vcodec libvpx -quality good -cpu-used 0 -acodec libvorbis desktop.webm"
[08:33] <blippyp> oh
[08:33] <c_14> Set a bitrate and -q modifiers for libvpx
[08:34] <blippyp> did it switch the format for you for some reason? maybe post your output from running the command to pastebin or whatever
[08:35] <d3m0n> One sec, just ran the command agian with "-minrate 1M -maxrate 1M -b:v 1M "
[08:35] <d3m0n> See how that looks
[08:43] <d3m0n> Ahh yea adding bitrate helped, I'll have to play around a bit more. Thanks
[08:43] <d3m0n> Whats the default bitrate if you don't set it?
[08:44] <blippyp> don't remember, low - you have to configure it right
[08:44] <blippyp> that script i gave you will work great - just set the file size limite and the time limit for your videos
[08:45] <blippyp> there's another method - in my script it's a two-pass method since 4chan has a limit on the file sizes
[08:45] <blippyp> I never did learn how to do it the other way
[08:45] <d3m0n> I am using windows D:
[08:45] <blippyp> it's not as easy as setting x264
[08:46] <blippyp> ah
[08:46] <blippyp> still - the script is pretty easy to read - the science is still there - there's math to determine your bitrates
[08:48] <blippyp> your bitrate=(mbLimit*8192/timeLimit)
[08:48] <blippyp> follow that to determine your bitrate and you will always get a good encoding
[08:48] <d3m0n> awesome, thanks. I'll try that
[08:48] <blippyp> the ressult will be in K
[09:59] <kippi> hey
[09:59] <kippi> is there away to output the current audio level in real-time?
[10:07] <kippi> I have seen volume-detect however that is at the end
[11:46] <khaosmarmoset> hey guys. I ended up ripping out my ioctls from the v4l2 code in ffmpeg master and made a standalone tool instead to twiddle the C920 H.264 settings instead.  It's a little simpler this way.
[11:46] <khaosmarmoset> you can find the code at http://pastebin.com/MJdVUyuC
[14:07] <TheRealHDL> Hello, does anyone here have experience with AV Foundation screen recording?
[14:17] <shevy> how do I get more info about a .mp4 file without playing it?
[14:20] <ubitux> with ffprobe
[14:23] <shevy> cool
[14:25] <shevy> that works nicely
[14:25] <shevy> now I have another question
[14:25] <shevy> I get something like this here:
[14:25] <shevy> "Input #0, mov,mp4,m4a,3gp,3g2,mj2,"
[14:25] <shevy> does this mean it has all these codecs in use?
[14:25] <shevy> this is a .mp4 file
[14:26] <shevy> Video: h264
[14:26] <shevy> Audio: aac
[14:26] <shevy> hmm
[14:26] <shevy> I guess it uses only h264 and aac... not sure what that line next to "Input:" tells me
[14:27] <c_14> The format
[14:28] <shevy> hmm
[14:29] <c_14> And since mov,mp4,m4a,3gp,3g2 and mj2 are closely related it's almost impossible and usually unnecessary to know which exactly it is.
[14:29] <shevy> aha, ok
[14:31] <ubitux> don't parse that info dump
[14:31] <ubitux> use the -show_* options
[14:32] <__jack__> -print_format is also usefull
[14:37] Action: DelphiWorld slaps emilsedgh around a bit with a large trout
[14:37] <DelphiWorld> yo all
[14:37] <DelphiWorld> guys
[14:38] <DelphiWorld> i am having a bonch of streams
[14:38] <DelphiWorld> ffmpeg -re -i ... -i ... -i ...
[14:38] <DelphiWorld> and muxing them in a single mux
[14:38] <DelphiWorld> how to include a audio track?
[14:39] <__jack__> beuh, just mix it as a video steam ? ffmpeg -i source1 -i source2 -map 0:0 -map 1:0 .. -c .. output.mkv
[14:39] <DelphiWorld> __jack__: lol. if you see my cmd... you'lle explode
[14:40] <DelphiWorld> __jack__: http://paste.debian.net/130232/
[14:41] <c_14> DelphiWorld: I believe you're missing a '-i' in front of $URLIN_1
[14:42] <DelphiWorld> c_14: what do you think of the command? ;)
[14:43] <c_14> Other than that it's huge?
[14:43] <DelphiWorld> c_14: allmost working
[14:43] <DelphiWorld> c_14: but its saying the loop option not found
[14:43] <DelphiWorld> for the audio file how to make it repeat
[14:44] <c_14> loop forever?
[14:45] <DelphiWorld> c_14: yeah
[14:45] <c_14> write/find a program that'll loop it for you and output to stdout/a named pipe and use that as an input for ffmpeg
[14:46] <DelphiWorld> c_14: mmmmmm, ffmpeg itself couldn't repeat?
[14:46] <DelphiWorld> then what's -loop
[14:46] <c_14> I do not know of a way to infinitely loop input with ffmpeg (for non-picture files).
[14:46] Action: DelphiWorld love ffmpeg...
[14:46] <c_14> -loop _should_ probably do what you want, but it was never implemented completely
[14:46] <DelphiWorld> c_14: i added after -i flacfile.flac
[14:47] <DelphiWorld> for example -i my.flac -loop 1
[14:47] <DelphiWorld> am i correct?
[14:47] <c_14> If it were functional, it'd have to be in front of the -i my.flac
[14:47] <DelphiWorld> let me try
[14:51] <DelphiWorld> c_14: ok removed loop & gav up on it
[14:51] <DelphiWorld> but still audio not up http://paste.debian.net/130234/
[14:53] <c_14> No audio at all?
[14:53] <DelphiWorld> c_14: the command dont evean run
[14:53] <DelphiWorld> i dont know how to capture the log for you
[14:56] <c_14> '| curl -n -F 'f:1=<-' http://ix.io' <- put that behind the command exec
[14:57] <c_14> might need |&
[14:58] <DelphiWorld> c_14: but now no reply from curl?
[14:58] <DelphiWorld> how to give you the url
[15:00] <__jack__> c_14: awesome!
[15:00] <__jack__> DelphiWorld: the url is printed
[15:00] <DelphiWorld> no, its not printed for me. remember i am runing this long command from a script!
[15:01] <c_14> Press q to quit ffmpeg or kill it manually
[15:01] <c_14> Using pkill ffmpeg or something
[15:01] <DelphiWorld> ffmpeg is not evean runing
[15:01] <DelphiWorld> it refuse to run at all
[15:01] <DelphiWorld> and print all my long cmd on the terminal
[15:01] <__jack__> run ./script.sh | blabla, that will give you http://ix.io/doh
[15:02] <__jack__> or |&
[15:02] <DelphiWorld> lol __jack__ doh:P
[15:04] <DelphiWorld> here goes c_14 http://ix.io/bD
[15:05] <DelphiWorld> but empty...
[15:05] <c_14> Did you try with |& ?
[15:05] <DelphiWorld> yeah and retrying now
[15:05] <DelphiWorld> if i do & i dont see the url
[15:11] <DelphiWorld> c_14: i got the issue i think
[15:11] <DelphiWorld> need --map
[15:11] <DelphiWorld> the audio is --map 0:0 and the others --map 0:1
[15:11] <DelphiWorld> am i correct?
[15:17] <c_14> The audio is -map 0, the others should be -map whatever the final output pad[s] of your filtergraph are
[15:18] <DelphiWorld> c_14: ffmpeg -re -i c14.flac --map 0.0 -i c14.avi --map 0.1
[15:18] <DelphiWorld> correct?
[15:20] <c_14> -i c14.flac -map 0:0 -i c14.avi -map 1:0
[15:20] <DelphiWorld> ouch
[15:22] <DelphiWorld> nop
[15:22] <DelphiWorld> still dont work
[15:22] Action: DelphiWorld give up
[15:23] <c_14> The -map has to be an output option though.
[15:23] <c_14> So at the end
[15:23] <c_14> -i c14.flac -i c14.avi -map 0:0 -map 1:0
[15:23] <c_14> etc
[15:24] <DelphiWorld> c_14: but after all the filters / blabla befaure the output url?
[15:24] <c_14> yep
[15:25] <DelphiWorld> oh... c_14 a big issue now
[15:25] <DelphiWorld> the urls am i using for the input have option
[15:26] <DelphiWorld> at the end i'm adding -an
[15:26] <DelphiWorld> but the flac file is mine
[15:26] <DelphiWorld> so no idea what to do
[15:26] <c_14> You'll have to get rid of that -an
[15:26] <c_14> in OUTPUT_ARG
[15:26] <DelphiWorld> c_14: then how to kick the audio out of the urls am i using for the input
[15:27] <c_14> Get rid of the implicit maps and make them explicit.
[15:27] <DelphiWorld> how?
[15:27] <c_14> IE add a named output pad to your filtergraph and use -map 0:0 -map '[namedoutput]'
[15:27] <c_14> Assuming the audio file you want is the first stream of the first input.
[15:28] <DelphiWorld> mmmmmmmmmmmmmmmmmm
[15:28] <c_14> Basically just make this '[tmp29] [E_F] $OVER:x=850:y=480' this '[tmp29] [E_F] $OVER:x=850:y=480[v]' and add -map 0:0 -map '[v]'
[15:29] <DelphiWorld> still a bit complicated
[15:31] <DelphiWorld> c_14: could you add it to my script and past?
[15:31] <c_14> http://ix.io/f2r
[15:31] <c_14> Should be it.
[15:31] <DelphiWorld> is it pocible to download...
[15:32] <c_14> curl -o script.sh http://ix.io/f2r
[15:33] <DelphiWorld> nop c_14, i got Stream map ''[v]'' matches no streams.
[15:34] <c_14> Get rid of the '' around [v]
[15:34] <c_14> http://ix.io/f2t
[15:34] <c_14> like so
[15:34] <DelphiWorld> c_14: i love that pb man
[15:35] <c_14> Have to go do something. Will be back in about 30min or so.
[15:35] <DelphiWorld> lol c_14 :P
[15:35] <DelphiWorld> back to the old issue i has:)
[15:40] Action: DelphiWorld slaps emilsedgh around a bit with a large trout
[15:58] <sruli_> hi all, I have a problem with filter_complex, i would be grateful if anyone can help me out, my command has [0:v]trim=404:414,setpts=PTS-STARTPTS[tr1];[0:v]trim=410:414,setpts=PTS-STARTPTS[tr2];[tr2]setpts=0.25/PTS[v2] and then use concat, (full command and output here http://pastebin.com/CQTn72h8 for some reason whenever i use the same part of a clip in another track the results are not what i expect, see the video from this command 
[16:10] <c_14> DelphiWorld: What old issue?
[16:10] <DelphiWorld> c_14: no stream...
[16:11] <ridders24> Hi all, I have a series of .dat file contained with a folder called dir00000 which appears to be from an unbranded 16 channel h264 cctv system. I have managed to play a single dat file via ffmpeg but i how do I string all the dat files together and is there anyway of selecting which feed to view rather than the footage rotating between all 16 channels?
[16:11] <c_14> DelphiWorld: Is FFmpeg giving that error?
[16:12] <DelphiWorld> c_14: yeah
[16:14] <c_14> Can you add -report and then pastebin the ffmpeg-[date].log. Set that anywhere in the commandline, or set FFREPORT to any value.
[16:15] <c_14> ridders24: https://trac.ffmpeg.org/wiki/How%20to%20concatenate%20(join,%20merge)%20media%20files and what do you mean with rotating?
[16:15] <c_14> sruli_: you might have to supply the input file numerous times, once per trim command where you are cutting over the same part
[16:21] <ridders24> c_14: cheers I'll have a look at that. What I mean by rotating is that each .dat appears to contact a very brief recording from each of the 16 channels. So you'll briefly get footage, then grey where it moves on the the next need but no cam is connected, then moves on to another say cam 3 thats connected and so on
[16:22] <c_14> ridders24: you'll need to build/find something that'll parse that into separate streams
[16:33] <sharymike> i am looking for an ffmpeg expert to trouble shoot a small issue of audio/video syncing when Concatenating 3 video files.
[16:33] <sharymike> probably a simple fix, but i am not a programmer
[16:50] <kippi> is there away to output the current audio level in real-time?, I have seen volume-detect however that is at the end
[19:33] <Alski> If I was to string a series of videos together, I would probably use mkfifo right?
[19:38] <sacarasc> No.
[19:38] <sacarasc> http://ffmpeg.org/ffmpeg-all.html#concat-1 http://ffmpeg.org/ffmpeg-all.html#concat-2 or http://ffmpeg.org/ffmpeg-all.html#concat-3 should work for that.
[19:42] <Alski> Awesome, I'll start looking in the docs for more like that. Just wondering though, my goal is to make a script that can take a series of videos, pull a small segment from each of them, and then concatenate them together. Kind of a "datablast" of video clips. Is this something I can achieve by just going through the ffmpeg docs or do I have long road ahead of me?
[19:55] <llogan> Alski: do you want to re-encode them or just mux them together?
[19:57] <Alski> What would be the functional difference?
[19:57] <kepstin-laptop> unless there all in perfectly matching video codecs and you're doing all splitting on keyframes, that'll really need a re-encode.
[19:57] <Alski> (sorry, new to ffmpeg)
[20:27] <blippyp> you cannot streamcopy with filters, in order to re-mux the clips you would have to use bitstream filters, which basically means that re-muxing would depend on the codecs used in the source files.
[23:02] <nray> im using ffmpeg to convert an mp3 file to wav using the pcm_s16le codec. i am attempting to lower the bitrate to 13kb/s using the option "-ab 13k", however the output bitrate states 128kb/s. has anyone run into this issue before?
[23:03] <kepstin-laptop> nray: setting the output bitrate on a raw pcm encoding is meaningless
[23:05] <nray> kepstin-laptop: i must be going the wrong direction then. what i need is to convert mp3 files to a Microsoft PCM format (readable by our Asterisk system). any suggestions/direction?
[23:06] <shevy> PCM sounds like .wav nray
[23:06] <kepstin-laptop> nray: ffmpeg -i file.mp3 -c:a pcm_s16le test.wav will do that, can you give the command you're running and the output you get? (in a pastebin?)
[23:07] <kepstin-laptop> nray: if you need it for asterisk, it might require a particular sample rate. In that case, you'd have to use an audio filter to resample, I think.
[23:07] <c_14> You can usually just use -ar
[23:11] <nray> keptstin-laptop let me see if i cant find a safe call recording i could get in pastebin. is there a filter available within ffmpeg to do the resample?
[23:12] <c_14> You can usually just use -ar
[23:12] <c_14> If that doesn't work aresample
[23:21] <nray> c_14 that definitely accomplished the bitrate changes, however the audio is now coming out extremely muffled and inaudible.
[23:27] <c_14> You could try the aresample filter, see if that gives better results.
[23:27] <c_14> Though the audio quality will deteriorate.
[23:27] <c_14> That will always happen when downsampling.
[23:29] <c_14> You can also try dithering or switching to the SoX resampler.
[23:29] <c_14> See man ffmpeg-resampler
[23:43] <kepstin-laptop> well, if you're downsampling to narrowband or something for voip, you lose audio quality. no way around that
[23:43] <kepstin-laptop> it'll always sound muffled, since the high frequencies are lost
[00:00] --- Wed Nov  5 2014


More information about the Ffmpeg-devel-irc mailing list