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

burek burek021 at gmail.com
Tue Nov 4 02:05:01 CET 2014


[00:37] <Surfer> hello.. is there a way to embed subtitle to avi permanently?
[00:41] <blippyp> with a filter -vf "ass=subtitle.ass" - it must be a subtitle file with a .ass extension, so make sure it is that format.
[00:42] <blippyp> oops -vf "subtitle=file.ass"
[00:43] <blippyp> maybe it was the first one - I'll check, it's been a while
[00:44] <Surfer> blippyp could you tell me the hole command please?
[00:46] <blippyp> ya, it's ass=subtitle.ass
[00:46] <blippyp> so if you had a subtitle called subs.ass
[00:46] <blippyp> and you wanted to join it to a video called vid.avi
[00:46] <Hello71> ass=ass.ass
[00:46] <Surfer> right
[00:47] <blippyp> ffmepeg -i vid.avi -vf "ass=subs.ass" out.avi
[00:47] <blippyp> obviously you want to add a little more in there for codecs and whatever
[03:02] <relaxed> Surfer: https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo
[03:03] <Surfer> thanks relaxed ;)
[03:04] <Surfer> relaxed is it a re-enconde?
[03:29] <relaxed> Surfer: yes, hardsubbing requires re-encoding
[03:29] <Surfer> relaxed no success :/
[03:32] <Surfer> relaxed http://pastebin.com/MPJeKEGF
[03:34] <relaxed> Surfer: your ffmpeg verison is too old. Either compile a recent version or try my build http://johnvansickle.com/ffmpeg/
[03:34] <Surfer> relaxed i would like to reburn the video with subtitle
[03:34] <Surfer> not just add subtitle like a second file
[03:34] <Surfer> ok
[03:35] <blippyp> Surfer: then do like I said earlier with the -vf "ass=subtitle.ass" filter, but you will need to convert your .srt file to a .ass file
[03:36] <Surfer> right
[03:36] <blippyp> hold on - I'm looking how to do that now (it's been a while)
[03:36] <Surfer> ok
[03:36] <blippyp> oh it's easy
[03:37] <blippyp> just run ffmpeg -i subs.srt subs.ass
[03:37] <blippyp> then run a command like ffmpeg -i input.avi -vf "ass=subs.ass" -c:v libx264 -crf 18 -c:a copy output.mkv (mp4, whatever...)
[03:38] <blippyp> it will take a long time though
[03:38] <relaxed> Surfer: is there any reason you wanted an .avi?
[03:43] <blippyp> Surfer: Before you waste your time though, your other file was working perfectly (well, the part I watched was) - Your problem was with your player - I haven't used VLC in a long time, but in order to get it to use the subtitles I had to tell it to use it each time I played a file. The options are there, you just need to find them.
[03:43] <Surfer> relaxed just because it's smaller than mkv
[03:44] <Surfer> blippyp yes.. files were working perfectly as you said
[03:44] <blippyp> Surfer: No it wouldn't be - the codecs are what determines the sizes - avi, mp4, mkv etc.. are just containers and won't really affect your file size.
[03:44] <Surfer> but i don't want to add a subtitle file in a avi file
[03:45] <relaxed> actually mkv should be smaller than avi
[03:45] <Surfer> i want to rebuild the video with the sub
[03:45] <Surfer> relaxed i see more avi files to download
[03:45] <blippyp> That's fine - people have their reasons - but it will take a lot longer to re-encode it than it will to simply re-mux the subtitle stream into it...
[03:45] <Surfer> i prefer avi
[03:46] <hungnv> when viewing stream information using ffmpeg -i command, the stream info is showed "Stream #0:0, 0, 1/90000: Video: h264 (libx264), yuv420p, 640x360 [SAR 1:1 DAR 16:9], *0/1*, q=30-100, 1000 kb/s, 25 tbr, 90k tbn"
[03:46] <hungnv> what's 0/1 in that report?
[03:46] <Surfer> blippyp i prefer to re-enconde
[03:47] <Surfer> blippyp is there any way to do that with ffmpeg?
[03:47] <blippyp> No biggy - I sometimes burn them on two (not for full movies) but to each his own - Was only curious, it's a time consuming process. (especially for me - my systems aren't exactly made for video editing)
[03:47] <blippyp> two=too/also
[03:48] <blippyp> Surfer: the command I gave you last will re-encode the video like you want
[03:49] <blippyp> The only thing that won't get re-encoded is the audio - the command I gave you told  ffmpeg to copy it instead (since you weren't altering it)
[03:49] <Surfer> ----> <blippyp> Surfer: then do like I said earlier with the -vf "ass=subtitle.ass" filter, but you will need to convert your .srt file to a .ass file
[03:49] <Surfer> this?
[03:49] <blippyp> no
[03:49] <blippyp> just below that
[03:49] <blippyp> I wrote out the entire command for you - you just have to copy/paste
[03:50] <blippyp> alter the filenames accordingly
[03:50] <Surfer> ffmepeg -i vid.avi -vf "ass=subs.ass" out.avi
[03:50] <Surfer> ?
[03:50] <blippyp> no - hold on
[03:50] <relaxed> did you already convert the srt at ass? ake sure your version can do that first.
[03:50] <blippyp> first convert your .srt file with: ffmpeg -i subs.srt subs.as
[03:51] <relaxed> to, not at
[03:51] <blippyp> then run: ffmpeg -i input.avi -vf "ass=subs.ass" -c:v libx264 -crf 18 -c:a copy output.avi
[03:51] <Surfer> i'm installing a new version
[03:52] <Surfer> right
[03:52] <blippyp> the crf is the compression ration 18 is pretty good (I usually notice a difference between 17 and 18 0 is no compression, default is 21 or 23 or something.
[03:52] <Surfer> version 2.2.1-65.el6 works fine? i'm using repositories
[03:53] <Surfer> of CentOS
[03:54] <Surfer> a lot of conflicts
[03:54] <blippyp> no idea - I'm on Arch, doesn't hurt to try
[03:54] <blippyp> conflicts?
[03:55] <Surfer> one repository conflicts with other
[03:55] <Surfer> and break installed packages
[03:56] <blippyp> no idea, like I said I don't use CentOS (never have) I would just try it with whatever you already have installed and see how that goes first
[03:56] <relaxed> you should never add external repos for this very reason
[04:01] <Surfer> blippyp http://pastebin.com/L52cfVsD
[04:03] <blippyp> probably has to do with what's specified in your subtitle (like fonts and stuff) - open it up in an editor and put something more generic in it...
[04:03] <blippyp> http://sprunge.us/VebT
[04:04] <blippyp> I use this as a base when I'm playing with subtitles - it should be pretty generic - check the V4+ Styles section - I had to modify that
[04:04] <blippyp> (I'm not an expert on subtitles - someone else might be able to look at your file and tell you exactly what to change)
[04:04] <blippyp> Could also be a whole other issue as well
[04:05] <blippyp> But I would change that section to match mine and see what happens
[04:16] <blippyp> Surver: there is also a static build you can download - I think the bot in here will tell you how to get it... Don't remember the command, I haven't chatted in here in a long time
[04:17] <blippyp> there ya go
[04:17] <blippyp> you can just download that and copy it somehwere (maybe rename it to ffmpeg-static and stick it in your /bin folder or something)
[04:17] <blippyp> it should be up to date I think
[04:27] <kiwi_banal> I wish to edit a bunch of v422/pcm_s16le files I wish to edit. Should I convert these first to another format?
[04:28] <kiwi_banal> pardon the repetition...
[04:28] <blippyp> why would you need to do that?
[04:30] <blippyp> unless your source is raw (in one way or another), everytime you convert it/re-encode it you will likely degrade the quality
[04:31] <kiwi_banal> I'm not sure if I need to, just wondering if another format is better to work with in a linear fashion. They are raw format currently.
[04:31] <blippyp> if your editor will open them, then keep them like that...  ;)
[04:32] <blippyp> if you have to convert them, then keep the quality at 100% when doing so.
[04:34] <kiwi_banal> Thanks blippyp. Pretty much what I expected for an answer :) One more newbie Q: Any recommendation for the best current linear editor under Linux? I currently use VDub under Windows but would like to use Linux...
[04:36] <kiwi_banal> I have around 70 files I need to combine and crop from original camcorder footage.
[04:37] <blippyp> no idea - I use ffmpeg for everything believe it or not
[04:37] <blippyp> I would ffmpeg - you could easily script it if you know anything about that
[04:39] <kiwi_banal> It might be the way, just that cropping out the unwanted noise and "Is the camera still running?"-looking at the ground footage would be easier to do visually.
[04:39] <Surfer> blippyp it's working!
[04:39] <Surfer> thank you!
[04:39] <Surfer> :D
[04:39] <Surfer> http://81.4.100.163/2.avi
[04:40] <blippyp> Surfer: awesome - glad to hear it
[04:40] <Surfer> blippyp was just a version problem
[04:41] <Surfer> *ffmpeg
[04:41] <blippyp> downloaded the static build I take it?
[04:41] <Surfer> but subtitles are still getting error
[04:41] <blippyp> did you change the styles section like I told ya?
[04:41] <Surfer> http://johnvansickle.com/ffmpeg/releases/
[04:42] <Surfer> which section?
[04:43] <blippyp> the styles section - it's probably just complaining about the font
[04:43] <blippyp> it's working though - I'm watching it now
[04:43] <blippyp> and my subtitles are disabled, still showing them
[04:44] <Surfer> cool ;D
[04:44] <blippyp> you might have to watch it through once to verify that the subtitles didn't bug-up on ya
[04:44] <Surfer> was your fault haha
[04:44] <blippyp> nope
[04:44] <blippyp> couldn't tell ya why it's buggered up - I'd watch it to verify you're happy with it
[04:44] <Surfer> just kidding ;P
[04:45] <blippyp> the first times the hardest - next time you try this it will be easier...  ;)
[04:45] <blippyp> subs can be a pain
[04:45] <Surfer> i hope so
[04:45] <Surfer> yes, they are
[04:46] <Surfer> i see now lol
[04:46] <blippyp> you learned a lot though - you must have
[04:46] <Surfer> yeah sure
[04:46] <Surfer> seems interesting
[04:46] <blippyp> it is - now type man ffmpeg-filters
[04:46] <Surfer> ffmpeg is powerful
[04:46] <blippyp> and play with a video - you'll be blown away
[04:46] <blippyp> you have no idea - I stopped using all other editors because of it
[04:47] <blippyp> yeah, it can take time to get use to (doesn't everything)??? It's worth it imo...
[04:47] <Surfer> i'm going to install microsoft fonts
[04:47] <blippyp> especially if you're like me and would rather run everything thru a script
[04:47] <Surfer> yeah
[04:47] <Surfer> script is the key! hahaha
[04:48] <blippyp> when I had problems with the subs before I'm pretty sure it was font related also
[04:48] <Surfer> [Parsed_ass_0 @ 0xaf8cc20] fontconfig: cannot find font 'Arial', falling back to 'Liberation Sans'
[04:48] <Surfer> [Parsed_ass_0 @ 0xaf8cc20] fontconfig: cannot find font 'Arial', falling back to 'Liberation Sans Italic'
[04:48] <Surfer> new error
[04:48] <blippyp> wait till you see how crazy those scripts can get
[04:48] <blippyp> yeah - font issues
[04:48] <Surfer> but i think i can fix it
[04:48] <blippyp> no need - if you're happy with the font
[04:48] <blippyp> it eventually found one to use
[04:49] <blippyp> the fonts aren't an issue anymore because now it's 'burned' into the video itself - it no longer needs the font files
[04:49] <blippyp> you don't need to specify a subtitle when viewing it either in a player, they will always be there
[04:49] <Surfer> yeah i know
[04:50] <blippyp> you encoded that fast
[04:50] <blippyp> I wish I had your system
[04:50] <Surfer> but default font is horrible
[04:50] <Surfer> haha
[04:50] <blippyp> It would have taken me forever to encode that
[04:50] <blippyp> learn how to pull a section of video to play with - it will save you tons of time
[04:50] <Surfer> it's a low profile
[04:50] <Surfer> frame=12153 fps= 13 q=23.0 size=  102959kB time=00:08:26.97 bitrate=1663.7kbits/s
[04:51] <blippyp> ah, still would have taken me longer
[04:51] <blippyp> I usually do everything with -qp 0 (like -crf 0, but better) - no quality loss, it encodes as fast as it can
[04:51] <blippyp> when I'm happy, then I encode with a crf 17
[04:52] <blippyp> you also have presets to use - ultrafast, slow, veryslow, etc...
[04:52] <blippyp> man ffmpeg
[04:52] <blippyp> it will tell you more about the basics
[04:52] <Surfer> ok
[04:52] <Surfer> i'll take a look
[04:52] <blippyp> happy ffmpeggin'
[04:52] <blippyp> ;)
[04:53] <Surfer> i'm trying to install microsoft fonts
[04:53] <Surfer> lol
[04:53] <Surfer> thanks =]
[04:53] <blippyp> no problem
[04:55] <blippyp> I'm gonna go watch The Walking Dead now - but I'll be back in an hour if you have any more questions - just post them, either someone else will answer them or I'll try to help you when I get back
[04:55] <Surfer> ok
[04:55] <kiwi_banal> thanks blippyp
[04:56] <Surfer> thanks for the help bro ;)
[04:56] <blippyp> no problem, always glad to help (and receive help myself!)
[09:05] <dongs> can ffmpeg.exe remux mp4 by direct stream copy video and reencode audio lpcm->aaC?
[09:19] <__jack__> dongs: if ffmpeg.exe is nothing by ffmpeg in PE format: sure you can
[09:19] <__jack__> ffmpeg -i source -c:v copy -c:a aac output.mp4
[09:19] <dongs> ok, lemme try that.
[09:22] <dongs> it worked
[09:27] <dongs> how do I make it do same thing on *.mp4
[09:29] <bencc> I have a webcam stream and a static image. How can I switch between the webcam and the static image and output a live stream?
[09:30] <kevmitch> dongs: maybe http://ss64.com/nt/forfiles.html ?
[09:32] <__jack__> bash loop :D
[09:32] <dongs> i use a proper os so "bash loops" is not an option
[09:33] <kevmitch> install cygwin!
[09:33] <kevmitch> then use xargs
[10:02] Action: DelphiWorld burp emilsedgh
[10:19] <shevy> is there a way to find out the available audio codecs for ffmpeg?
[10:19] <shevy> reason I ask - ffmpeg tells me "Unknown encoder 'libmp3lame'"
[10:20] <DelphiWorld> shevy: offcource, can you ask ffmpeg? :P
[10:20] <shevy> but I could swear it worked before (I just recompiled ffmpeg)
[10:20] <shevy> well, how?
[10:20] <DelphiWorld> shevy: ffmpeg -codecs :-P
[10:20] <shevy> cool
[10:21] <DelphiWorld> shevy: ;)
[10:21] <shevy> hmm
[10:21] <shevy> oh
[10:21] <shevy>   --enable-libmp3lame      enable MP3 encoding via libmp3lame [no]
[10:21] <shevy> that means it must be specifically enabled right?
[10:21] <shevy> the [no] part
[10:22] <DelphiWorld> shevy: you must configure it
[10:23] <shevy> okay!
[10:27] <DelphiWorld> shevy: :P
[10:28] <shevy> I thought I did that but I think I was multitasking and forgot it
[10:29] <DelphiWorld> shevy: multitasking? you should have double taped the home button to see it ;-)
[10:29] <shevy> yeah
[10:29] <shevy> about 10 open kde konsole tabs
[10:29] <shevy> about 20 tabs in firefox
[10:30] <DelphiWorld> woooooooof
[10:30] <shevy> running editor... 5 open pdfs ... mplayer is playing some video ... 3 docs open...
[10:30] <shevy> the best part is the bookmarks feature in browsers
[10:30] <shevy> I bookmark stuff like "hey I will look at this later again" - most of the time, I never look at it again hahaha
[10:30] <DelphiWorld> shevy: go to sleep a bit... your engine died;)
[10:30] <shevy> I can't!
[10:30] <shevy> I need to work faster!
[10:31] <DelphiWorld> shevy: ok, then you should buy oel from me! :P
[14:31] <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 
[14:31] <sruli_> can anyone please guide me to a solution?
[14:53] <sruli_> is there anyone around who can help me find a solution?
[14:57] <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:40] <Distraught> hello
[16:41] <Distraught> I have installed ffmpeg in /usr/local/bin/ffmpeg
[16:41] <Distraught> i can see that by typing the path that its installed
[16:41] <Distraught> but clip bucket does not recognize it
[16:41] <Distraught> any suggestions?
[18:21] <avidal> I have a .MOV recorded on an iphone 6+ and i'm trying to extract a still from it. ffmpeg reads it just fine when I give it the file, but if I cat it to ffmpeg and tell ffmpeg to read from stdin, I get "Unable to parse option value "-1" as pixel format"
[18:24] <avidal> ah shit
[18:24] <avidal> http://ffmpeg.org/pipermail/ffmpeg-user/2012-November/011084.html
[19:19] <anshul_mahe> hi, I am trying to stream hls segment directly to ftp server, While hls is still writing segment, it updates m3u8 manifest
[19:20] <anshul_mahe> I want hls to update m3u8 only when it has done writing to file
[19:31] <chrisshattuck> Hey folks! I was curious there are known issues using -acodec copy -vcodec copy and having the auto / video become slightly out of sync. I'm taking a large video and splitting it up into smaller ones. The first small video is fine, but the other ones are off a second or so. Any thoughts?
[19:38] <kepstin-laptop> splitting when using codec copy mode is inherently inaccurate, because it can only split on keyframes; but I'd expect it would set the pts such that it would play back synchronized...
[19:41] <chrisshattuck> kepstin-laptop: Thank you for the thoughts. So, if it doesn't actually end up playing back synchronized (there's that 1 second delay), would that imply that increasing the number of keyframes could help?
[19:42] <kepstin-laptop> what are you using as the output container? that might make a difference. And what player?
[19:45] <chrisshattuck> kepstin-laptop: As the container, I'm using a .mov (though I've tried .mp4 as well). For a player, I've tried a few - QuickTime, Screenflow, Chrome.
[19:45] <kepstin-laptop> hmm. mov and mp4 are basically the same thing.
[19:46] <kepstin-laptop> you could try something like mkv, just to see if it behaves differently.
[20:22] <cobadger> Wanting the latest version of ffmpeg on my Mac, instead of using homebrew (which seems to be defaulting to ffpmeg 2.4.2) Im compiling manually but getting ERROR: libfdk_aac not found - this after installing libfdk_aac. Have tried adding export PATH=$PATH:/Users/[my_user_name]/ffmpeg/fdk-aac to my shell profile; same result. My pastebin of CLI commands and output: http://pastebin.com/78Csa1qK
[20:25] <rcombs> cobadger: have you tried using brew's --HEAD option?
[20:25] <rcombs> might be easier for this situation
[20:26] <cobadger> rcombs: no, this is kind of new to me. so
[20:26] <cobadger> brew install ffmpeg --with-fdk-aac --with-ffplay --with-freetype --with-frei0r --with-libass --with-libvo-aacenc --with-libvorbis --with-libvpx --with-opencore-amr --with-openjpeg --with-opus --with-rtmpdump --with-schroedinger --with-speex --with-theora --with-tools HEAD
[20:26] <cobadger> ?
[20:27] <rcombs> LGTM
[20:28] <cobadger> rcombs: thanks, giving it a go
[20:32] <rcombs> gotta go; good luck!
[20:35] <cobadger> rcombs ++
[20:51] <khaosmarmoset> hey all
[20:51] <khaosmarmoset> https://www.youtube.com/watch?v=lypIoOlBDdA
[20:52] <khaosmarmoset> mostly it went ok!  turns out we didn't turn off autofocus on the webcams though, so we got a lot of good shots of the judges' heads.
[20:53] <khaosmarmoset> oh well. live and learn.  people seemed reasoanbly pleased to get something at least. :-D
[20:55] <khaosmarmoset> thanks to everyone here for putting up with me for the past week. :)
[21:26] <Phlarp> Is there any way to make drawtext fit the fontsize to a predefined box size?
[22:31] <bees> I've installed ffmpeg on OS X using homebrew, but in the build the sftp protocol is not supported. Is there a way for me to compile it manually so I can use that feature?
[23:52] <llogan> bees: did you add --enable-libssh?
[23:53] <llogan> not sure what homebrew would call that. --with-libssh?
[23:56] <bees> it wasnt listed when i ran
[23:56] <bees> brew info ffmpeg. but i guess i will try it anyway
[23:56] Action: llogan ignant about brew
[00:00] --- Tue Nov  4 2014


More information about the Ffmpeg-devel-irc mailing list