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

burek burek021 at gmail.com
Sun Dec 6 02:05:01 CET 2015


[00:25:06 CET] <cluelessperson> Hi all.  On Debian, I'm using subsonic for media streaming.
[00:25:30 CET] <cluelessperson> I'm trying to set it up to hardcode subtitles, with   %s.srt  (moviefile.srt)
[00:25:38 CET] <cluelessperson> However, I'm getting a fontconf file error
[00:25:50 CET] <cluelessperson> Example
[00:25:51 CET] <cluelessperson> ffmpeg -ss %o -i %s -vf drawtext=fontfile=/usr/share/fonts/arial.ttf -vf subtitles=%s.srt -async 1 -b %bk -s %wx%h -ar 44100 -ac 2 -v 0 -f flv -vcodec libx264 -preset superfast -threads 2 -af volume=2.0 -
[00:26:32 CET] <cluelessperson> [12/4/15 5:26:03 PM CST]	INFO	TranscodeInputStream	Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [644] [-i] [/media/zac/TORRENTS/DOWNLOADED/Apocalypto (2006) 1080p/Apocalypto (2006) 1080p.Molpol.mkv] [-vf] [drawtext=fontfile=/usr/share/fonts/arial.ttf] [-vf] [subtitles=/media/zac/TORRENTS/DOWNLOADED/Apocalypto (2006) 1080p/Apocalypto (2006) 1080p.Molpol.mkv.srt] [-async] [1] [-b] [2000k] [-s] [960x520] [-ar] [44100]
[00:26:32 CET] <cluelessperson> [-ac] [2] [-v] [0] [-f] [flv] [-vcodec] [libx264] [-preset] [superfast] [-threads] [2] [-af] [volume=2.0] [-]
[00:26:32 CET] <cluelessperson> [12/4/15 5:26:03 PM CST]	INFO	InputStreamReaderThread	(/var/subsonic/transcode/ffmpeg) Fontconfig error: Cannot load default config file
[00:26:40 CET] <cluelessperson> ooh, that's longer than I though, but yeah
[00:30:39 CET] <c_14> Does /etc/fonts/fonts.conf exist?
[01:22:56 CET] <cluelessperson> c_14, I just made it, I don't get that error, but subtitles do not show in video
[01:23:52 CET] <cluelessperson> [12/4/15 6:22:16 PM CST]	INFO	TranscodeInputStream	Starting transcoder: [/var/subsonic/transcode/ffmpeg] [-ss] [233] [-i] [/media/zac/TORRENTS/DOWNLOADED/Apocalypto (2006) 1080p/Apocalypto (2006) 1080p.Molpol.mkv] [-vf] [drawtext=fontfile=/usr/share/fonts/arial.ttf] [-vf] [subtitles=/media/zac/TORRENTS/DOWNLOADED/Apocalypto (2006) 1080p/Apocalypto (2006) 1080p.Molpol.mkv.srt] [-async] [1] [-b] [2000k] [-s] [960x520] [-ar] [44100]
[01:23:52 CET] <cluelessperson> [-ac] [2] [-v] [0] [-f] [flv] [-vcodec] [libx264] [-preset] [superfast] [-threads] [2] [-af] [volume=2.0] [-]
[01:24:24 CET] <cluelessperson> Manually running a transcoding for 5 seconds, I don't get the hard coded fonts either
[01:24:52 CET] <cluelessperson> This is the manual trans for webm, 5 seconds
[01:24:53 CET] <cluelessperson> ffmpeg -ss 00:04:00 -i "/media/zac/TORRENTS/DOWNLOADED/Apocalypto (2006) 1080p/Apocalypto (2006) 1080p.Molpol.mkv" -t 00:00:05 -codec:v libvpx -quality good -cpu-used 0 -b:v 2000k -qmin 10 -qmax 42 -maxrate 1000k -bufsize 1000k -threads 4 -codec:a libvorbis -b:a 192k -vf "subtitles="/media/zac/TORRENTS/DOWNLOADED/Apocalypto (2006) 1080p/Apocalypto (2006) 1080p.Molpol.mkv.srt" st.webm
[01:37:22 CET] <cluelessperson> This is the output.  https://cluelessperson.com/st/st.webm
[01:37:24 CET] <cluelessperson> no subtitles
[01:39:19 CET] <cluelessperson> bbs, going home from office
[01:41:54 CET] <chaupv> Good morning relaxed, JEEB, are you there?
[02:39:19 CET] <cluelessperson> back
[02:55:12 CET] <aphorise> Is there anyway to determine total frames and to encode the last frame of a video file?
[03:02:29 CET] <aphorise> I found 1 method from stack overflow but its so slow.
[03:32:25 CET] <llogan> aphorise: what method? ffprobe with count_frames?
[05:07:41 CET] <chaupv> relaxed, JEEB, are you there?
[05:13:06 CET] <autofsckk> hello, i was trying to put some subs to a movie, i tried this      ffmpeg -i hannibal.102.hdtv-lol.mp4 -vf subtitles=hannibal.102.hdtv-lol.ass -vcodec h264 -acodec aac -scodec mov_text -metadata:s:s:0 language=spa -strict -2 -y hannibal-2.mp4    but it didnt work, when i try to see the file information it says  [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8368920] moov atom not found
[05:13:11 CET] <autofsckk> hannibal-2.mp4: Invalid data found when processing input
[05:13:14 CET] <autofsckk> what did i do wrong?
[05:29:49 CET] <sh4d0wd__> hallo
[05:55:20 CET] <relaxed> autofsckk: try ffmpeg -i hannibal.102.hdtv-lol.mp4 -i hannibal.102.hdtv-lol.ass -vcodec h264 -acodec aac -scodec mov_text -metadata:s:s:0 language=spa -strict -2 -y hannibal-2.mp4
[05:56:29 CET] <autofsckk> the difference is to treat the subtitles as input instead of a filter?
[05:56:49 CET] <relaxed> autofsckk: er, first try   ffmpeg -i hannibal.102.hdtv-lol.mp4 -i hannibal.102.hdtv-lol.ass -map 0 -map 1 -c:v copy -c:a copy -scodec mov_text -metadata:s:s:0 language=spa hannibal-2.mp4
[05:57:37 CET] <relaxed> the subtitle filter will burn them into the video stream
[05:57:43 CET] <autofsckk> with c:v and c:a could it be a lot more faster?
[05:57:50 CET] <relaxed> yes
[05:58:37 CET] <autofsckk> what if i want to do it for a dvd, i tried with -target ntsc-dvd  but it changed the aspect of the video
[05:59:15 CET] <autofsckk> im making tests, im trying to learn how this works, its great really, but there are still too much things to learn/understand
[06:00:55 CET] <relaxed> I would leave dvd/mpeg2 in the past where it belongs
[06:01:49 CET] <autofsckk> oh great, the second option did put the subs in place, i thought that only could be done with mkv files
[06:02:51 CET] <autofsckk> so instead of dvd, now how can i burn a movie with subtitles into a dvd to be played in a normal dvd player?
[06:09:37 CET] <relaxed> does the dvd player support divx/xvid?
[06:13:25 CET] <autofsckk> im not sure, but i think it can
[06:14:57 CET] <autofsckk> so dvd/mpe2 is obsolete now?
[06:15:58 CET] <relaxed> that would be much easier, ffmpeg -i hannibal.102.hdtv-lol.mp4 -vf subtitles=hannibal.102.hdtv-lol.ass -c:v mpeg4 -q:v 4 -vtag XVID -c:a libmp3lame -ac 2 -b:a 192k output.avi
[06:17:18 CET] <relaxed> autofsckk: not obsolete but mpeg2 encoding can be slow and then you have to worry about anamorphic video and creating the dvd layout.
[06:18:29 CET] <relaxed> whereas with divx/xvid video you can put the .avi on a cd or dvd and play it easily
[06:20:00 CET] <autofsckk> i know its super slow, i was testing with a 4G movie to convert ti to mpeg but ti was taking forever
[06:20:34 CET] <autofsckk> what does -q:v 4  do?
[06:20:55 CET] <relaxed> it controls the video quality
[06:21:42 CET] <autofsckk> where can i read about that? formats? or coders?
[06:22:07 CET] <relaxed> -qscale in the man page
[06:23:01 CET] <autofsckk> ok, ill look about it then, thanks
[06:23:04 CET] <autofsckk> one last question
[06:23:11 CET] <furq> you should really use x264 if your player supports it
[06:23:23 CET] <furq> it is both better and faster than xvid
[06:23:43 CET] <relaxed> well yes, but do dvd players ever support h264?
[06:23:53 CET] <autofsckk> furq -> ok ill see if it supports it, i dont think so because its an old player
[06:24:08 CET] <furq> "-vcodec h264" makes me think it does
[06:24:11 CET] <autofsckk> i have used movies with usb into new players
[06:24:17 CET] <furq> if that was just an error then never mind
[06:24:25 CET] <furq> also yeah use libx264 not h264
[06:25:14 CET] <autofsckk> are those different? libx264 and h264?
[06:25:21 CET] <furq> yes
[06:25:36 CET] <relaxed> libx264 is a h264 encoder, so not really
[06:25:50 CET] <furq> actually nvm i thought ffmpeg had an internal h264 encoder
[06:26:51 CET] <autofsckk> ah the question i had is that i have an mkv file and i would like to also put some subs on it, im seeing with ffmpeg -i file.mkv that it has chapters and all, is there a way to put it into a dvd and preserve that chapters stuff with the substitles too?
[06:27:08 CET] <furq> i doubt it with ffmpeg
[06:27:33 CET] <furq> there are dvd authoring tools which will do that
[06:27:56 CET] <furq> but unless your player literally only supports mpeg2 then you should use something else
[06:30:23 CET] <autofsckk> i dont think it supports it, i went to see it and its really shitty jajajajaj svcd/vcd/cd
[06:30:35 CET] <autofsckk> its not mine, it belongs to my mother
[06:31:00 CET] <furq> you should get her a chromecast for christmas
[06:31:38 CET] <furq> (other brands of media player are available)
[06:32:01 CET] <autofsckk> i see
[06:35:08 CET] <autofsckk> i think the only way to go with that mkv file would be to turn it to svcd with the subs burned in it?
[06:35:51 CET] <furq> you can convert it to dvd mpeg2 with burned-in subs
[06:36:05 CET] <furq> you'll just need another tool if you want to create an actual video dvd
[06:36:38 CET] <autofsckk> like devede?
[06:36:58 CET] <furq> sure
[06:37:02 CET] <autofsckk> i have to make first the mpeg2 with subs and then use devede right?
[06:37:11 CET] <furq> that sounds about right
[06:37:24 CET] <autofsckk> will that process change the aspect ratio?
[06:37:59 CET] <furq> not if the AR is 4:3 or 16:9
[06:39:06 CET] <autofsckk> its wide, im not sure if is 4:3 or 16:9 but its wide
[06:39:18 CET] <autofsckk> i used -target ntsc-dvd when i was testing
[06:39:32 CET] <autofsckk> culd that be the reason why it changed the ratio?
[06:43:21 CET] <furq> ntsc-dvd is always 720*480
[06:43:37 CET] <furq> you need to specify -aspect 16:9 or whatever
[06:46:14 CET] <autofsckk> ok, ill read more about that, thanks
[06:47:26 CET] <autofsckk> one thing i found very strange is that, well ffmpeg put my cpu to 100% and i have to use cpulimit, but i use it with limit to 100% and it still diminish the effect on it by 50%, its really strange that
[06:56:52 CET] <autofsckk> thanks for your help relaxed and furq good night :D
[11:41:51 CET] <sh4d0wd__> Good morning (ugt)
[11:42:27 CET] <Tsutsukakushi> good morning
[11:43:12 CET] <sh4d0wd__> any c developers alive here at this moment?
[11:43:30 CET] <durandal_1707> yes?
[11:43:34 CET] <sh4d0wd__> cool
[11:44:50 CET] <sh4d0wd__> is there way to determent if AVFormatContext is still open
[11:45:25 CET] <sh4d0wd__> in my code there 2 places where it can call avformat_close_input
[11:45:54 CET] <sh4d0wd__> problem if I second call happens it sig faulting
[11:46:12 CET] <durandal_1707> what happens?
[11:46:31 CET] <durandal_1707> check if it is 0?
[11:46:38 CET] <sh4d0wd__> one moment let me postebin it somewhere
[11:48:19 CET] <sh4d0wd__> https://gist.github.com/sh4d0wPhoenix/95fd83be24904a537bb6
[11:48:49 CET] <sh4d0wd__> problem happen round line 18 in r_avformat_context_free
[11:49:46 CET] <sh4d0wd__> and only happens if I close input before it call this free function
[11:52:36 CET] <sh4d0wd__> and here is backtrace https://gist.github.com/sh4d0wPhoenix/7583090cda4e9a4636c0
[11:53:24 CET] <sh4d0wd__> if I don't use r_avformat_close_input_file
[11:53:28 CET] <sh4d0wd__> works just fine
[11:59:50 CET] <sh4d0wd__> in onxydocs it says about  avformat_close_input_file that frees it and all its contents and set *s (pointers?) to NULL.
[12:19:00 CET] <sh4d0wd__> nvm, solved it. it was on ruby side
[12:19:30 CET] <sh4d0wd__> it was typecasting to what ever original  pointer was
[12:20:01 CET] <sh4d0wd__> but close_input make is nullptr, so there was memory mess
[12:26:14 CET] <LigH> Hi
[12:26:56 CET] <LigH> Can ffmpeg be recommended for DVD Video compliant MPEG-2 encoding under Linux? I know, there are probably better encoders under Windows...
[12:33:28 CET] <sh4d0wd__> LigH: Don't see reason why it  can't. ps there is no "better" encoder, at list for free and open
[12:34:34 CET] <sh4d0wd__> but it all depends  on what inside box and what load do you expect.
[12:35:38 CET] <LigH> OK, if you include "OpenSource" in the restraints, there is no choice.
[12:35:55 CET] <LigH> If you accept closed source, HCenc is one of the most recommended for Windows.
[12:36:07 CET] <LigH> But not for Linux.
[12:36:35 CET] <LigH> I'm just checking for a question of another forum user who used avconv and was surprised by a no-B-frame result.
[12:36:47 CET] <LigH> IP* only GOPs
[12:37:18 CET] <LigH> That's certainly not efficient. If compliant ... not really sure either, but probably?
[12:39:44 CET] <Emmanuel_Chanel> Hello! I'm trying to install ffmpeg git on Linux Mint, based on Ubuntu 14.04 LTS.
[12:39:51 CET] <waressearcher2> Emmanuel_Chanel: hallo
[12:40:24 CET] <Emmanuel_Chanel> It says ERROR: x265 not found using pkg-config when I tried the installation in the way on https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
[12:41:06 CET] <sh4d0wd__> sudo apt-get install libx264-dev
[12:41:49 CET] <LigH> Installing lib264 when missing libx265?
[12:41:59 CET] <sh4d0wd__> fuck
[12:42:02 CET] <sh4d0wd__> ops
[12:42:08 CET] <sh4d0wd__> 4 am
[12:42:11 CET] <LigH> :)
[12:42:13 CET] <sh4d0wd__> :)
[12:42:31 CET] <furq> there is no libx265 in trusty
[12:42:35 CET] <Emmanuel_Chanel> I installed x265 but ffmpeg's ./configure doesn't detect.
[12:43:52 CET] <LigH> Maybe load the sources from bitbucket via mercurial, compile, and install..
[12:44:14 CET] <LigH> Requires cmake
[12:44:19 CET] <furq> why would that make a difference
[12:44:42 CET] <LigH> Independent of the distro. ;)
[12:45:20 CET] <furq> is it independent of pkg-config
[12:45:26 CET] <furq> because i assume that's the problem here
[12:45:50 CET] <sh4d0wd__> >>I installed x265 but ffmpeg's ./configure doesn't detect.
[12:47:02 CET] <Emmanuel_Chanel> It says "x265 not found using pkg-config"
[12:48:10 CET] <furq> https://github.com/videolan/x265/blob/master/source/x265.pc.in
[12:48:12 CET] <LigH> Ah, packaging is bureaucracy. :D
[12:48:14 CET] <furq> it looks like it should create one
[12:51:52 CET] <furq> Emmanuel_Chanel: pkg-config --variable pc_path pkg-config
[12:52:00 CET] <furq> make sure x265.pc is in one of those paths
[12:52:29 CET] <sh4d0wd__> Emmanuel_Chanel: did you try to use --extra-{c,cxx,ld}flags with configure and point to when-ever headers are.... or I'm missing problem and my brain just farted
[12:52:59 CET] <furq> i mean you could do that, but that's what pkg-config is for
[12:52:59 CET] <Emmanuel_Chanel> Which installation? x265 or ffmpeg?
[12:53:24 CET] <sh4d0wd__> ffmpeg
[12:53:43 CET] <furq> where did you install x265 from
[12:53:47 CET] <furq> source?
[12:53:58 CET] <Emmanuel_Chanel> source
[12:54:10 CET] <furq> that should be ok then
[12:54:36 CET] <furq> as long as it's not one of those shady PPAs i read so much about in the papers
[12:55:23 CET] <sh4d0wd__> and super stupid question did u do make install  when compiled x265?
[12:56:26 CET] <Emmanuel_Chanel> Yes.
[12:58:43 CET] <relaxed> Emmanuel_Chanel: pastebin.com ffmpeg's config.log
[13:02:02 CET] <Emmanuel_Chanel> ok.
[13:02:16 CET] <LigH> Bye
[13:04:37 CET] <Emmanuel_Chanel> http://pastebin.com/MP2d5JnC
[13:07:47 CET] <relaxed> Emmanuel_Chanel: it's x265's fault, the commited something that broke ffmpeg support. At the bottom, "/usr/local/include/x265.h:103:5: error: unknown type name 'bool'"
[13:08:34 CET] <relaxed> add "#include <stdbool.h>" without the quotes to the installed x265.h
[13:08:42 CET] <relaxed> then it will work
[13:11:14 CET] <Emmanuel_Chanel> Oh, it works... Thank you! I tried adding it to x265_config.h , it didn't work. So I couldn't expect you to be right.
[13:11:43 CET] <Emmanuel_Chanel> relaxed: Thank you very much!
[13:12:04 CET] <relaxed> you're welcome
[13:48:03 CET] <cluelessperson> I'm having difficulty with hardcoding subtitles
[13:57:01 CET] <cluelessperson> I'm doing
[13:57:04 CET] <cluelessperson> ffmpeg -ss 00:02:03 -i "Apocalypto (2006) 1080p.Molpol.mkv" -t 00:00:05 -codec:v libvpx -quality good -cpu-used 0 -b:v 2000k -qmin 10 -qmax 42 -maxrate 1000k -bufsize 1000k -threads 4 -codec:a libvorbis -b:a 192k -vf subtitles="Apocalypto (2006) 1080p.Molpol.mkv.srt" st.webm
[13:57:09 CET] <cluelessperson> I see no errors
[13:58:46 CET] <cluelessperson> https://cluelessperson.com/st/st.webm    should have them
[14:23:56 CET] <relaxed> cluelessperson: try with -ss after the input
[14:27:09 CET] <cluelessperson> relaxed, that seems to take forever to do anything, what is it waiting on?
[14:27:21 CET] <cluelessperson> oh, nvm
[14:27:23 CET] <cluelessperson> watching
[14:30:20 CET] <cluelessperson> relaxed, That works! :D
[14:30:27 CET] <cluelessperson> relaxed, it seems slower to start though
[14:32:33 CET] <cluelessperson> probably has to do with how seeking is done
[14:39:05 CET] <cluelessperson> relaxed, Thank you, that works, but now the subtitles are wayyy off
[14:39:08 CET] <cluelessperson> ffmpeg -i %s -ss %o -vf subtitles=%s.srt -c:v libx264 -preset superfast -b:v %bk -c:a libvorbis -f matroska -threads 2 -af volume=2.0 -
[14:40:42 CET] Action: cluelessperson tries another subtitle file to be sure
[15:01:34 CET] <cluelessperson> relaxed, Thank you again.   https://cluelessperson.com/st/st.webm   It works, fully
[15:01:58 CET] <cluelessperson> Only thing, is that starting a video stream takes ~45 seconds, because the -ss AFTER input is SOO slow to seek
[15:04:43 CET] <cluelessperson> Actually, much longer
[15:04:56 CET] <cluelessperson> -ss after the input has to process/decode ALL of the video up to that point
[15:05:02 CET] <cluelessperson> before skips ahead
[15:09:56 CET] <relaxed> correct
[15:10:13 CET] <cbsrobot_> cluelessperson: use -ss before the input, but then use -copyts after the inputfile
[15:10:40 CET] <relaxed> oh, I didn't think of that
[15:10:55 CET] <cluelessperson> cbsrobot_, I'll try.  I was just now tryin    ffmpeg -ss something -i file -ss 0 -t 10  :D
[15:11:03 CET] <cbsrobot_> relaxed: I amended it to https://trac.ffmpeg.org/wiki/Seeking#Cuttingsmallsections
[15:12:12 CET] <cluelessperson> ffmpeg --ss 00:05:00 -i file -ss 0 -t 10   does not work
[15:12:15 CET] <cluelessperson> cbsrobot_, trying yours now
[15:12:24 CET] <cbsrobot_> I should add -start_at_zero to the wiki aswell - for mpegts etc.
[15:13:42 CET] <cluelessperson> cbsrobot_, ffmpeg -ss 00:04:03 -i "Apocalypto (2006) 1080p.Molpol.mkv" -copyts -t 00:00:05     outputs an empty file
[15:13:54 CET] Action: cluelessperson lookst at manpage
[15:15:36 CET] <cluelessperson> cbsrobot_, I don't know hot to use -copyts  could verify that for  me? :)
[15:16:48 CET] <cluelessperson> cbsrobot_, http://dpaste.com/0TD3QN4  :)
[15:17:45 CET] <cluelessperson> I'm just overwriting this webm for testing.   http://cluelessperson.com/st/st.webm
[15:18:36 CET] <Fyr> hey, guys, does anybody here use Pymol?
[15:21:24 CET] <cbsrobot_> cluelessperson: probably it has some problems with cutting your file at I-frames
[15:21:58 CET] <cbsrobot_> cluelessperson: try -t 30
[15:22:09 CET] <cbsrobot_> and see if it encodes 30 seconds
[15:25:19 CET] <cluelessperson> cbsrobot_, nope, still nothing
[15:26:11 CET] <cluelessperson> let me know if you want that console output as well
[15:26:27 CET] <cbsrobot_> cluelessperson: and without -copyts the file is not empty ?
[15:26:41 CET] <cluelessperson> cbsrobot_, correct.
[15:29:32 CET] <relaxed> cluelessperson: you're using an old version. Try http://johnvansickle.com/ffmpeg/ and see if it works
[15:39:36 CET] <cluelessperson> relaxed, cbsrobot_    http://dpaste.com/0MY0H6M   The console output changed slightly, but same result.  With -copyts  , no video output.
[15:40:29 CET] <Fyr> hey, guys, could you check the following link and suggest what tool was used to create such a beatiful picture?
[15:40:29 CET] <Fyr> http://s2.postimg.org/3tstg6vax/bulks.png
[15:40:31 CET] <cbsrobot_> cluelessperson: at the bottom: frame=  119 fps=7.7 q=0.0 Lsize=    1366kB time=00:00:05.04
[15:40:39 CET] <cbsrobot_> looks like it encoded 119 frames
[15:41:10 CET] <fritsch> Fyr: powerpoint :-)
[15:41:25 CET] <Fyr> it looks too professional. =)
[15:41:33 CET] <fritsch> not really
[15:41:34 CET] <cbsrobot_> Fyr: Inkscape maybe
[15:41:44 CET] <c_14> cbsrobot_: that's for the one without copyts, he didn't paste the output for copyts
[15:42:11 CET] <Fyr> cbsrobot_, is Inkscape simple to a newbie?
[15:42:24 CET] <cbsrobot_> c_14: you are right - well cluelessperson paste the other one aswell then
[15:42:31 CET] <cbsrobot_> Fyr: sure
[15:42:39 CET] <cbsrobot_> Fyr: what OS do you use ?
[15:42:39 CET] <Fyr> cool, thanks
[15:42:46 CET] <cluelessperson> cbsrobot_,   I apologize, I gave you the wrong output.  (I tried with and without -copyts to prove the new version was working)
[15:42:47 CET] <cluelessperson> corrected
[15:42:48 CET] <cluelessperson> http://dpaste.com/2BYNF1C
[15:43:00 CET] <Fyr> Inkscape is present on every platform.
[15:44:42 CET] <cbsrobot_> Fyr: sure
[15:45:00 CET] <cbsrobot_> cluelessperson: omit the -t option and see if it encodes anything
[15:45:29 CET] <cbsrobot_> cluelessperson: you can hit q to stop the encoding
[15:46:11 CET] <cluelessperson> cbsrobot_, Seems to be encoding, yes, I get some weird messages I didn't see with the previous version (weird messages without copyts as well)
[15:46:19 CET] <cluelessperson> cbsrobot_, I'm checking the webm and will paste the output
[15:47:17 CET] <cluelessperson> cbsrobot_, https://cluelessperson.com/st/st.webm   Okay, so really quick seeking, subtitles look good.  getting console
[15:48:54 CET] <cluelessperson> cbsrobot_, http://dpaste.com/2Y32P97
[15:49:02 CET] <cluelessperson> Those odd messages pop up
[15:53:00 CET] <cluelessperson> cbsrobot_, Excellent!  so you've solved my use case! :D   but can we also get -t working as well? :)
[15:54:19 CET] <cbsrobot_> cluelessperson: not sure what is happening there
[15:55:50 CET] <cluelessperson> cbsrobot_, You do bitcoin?
[15:56:36 CET] <cbsrobot_> cluelessperson: no
[15:57:11 CET] <cbsrobot_> cluelessperson: just help another person that need help and that is reward enough for me
[15:57:50 CET] <cluelessperson> cbsrobot_, Want to learn bitcoin? XD
[15:58:10 CET] <cbsrobot_> cluelessperson: not atm, thanks
[16:00:41 CET] <cluelessperson> cbsrobot_, Weirdly, this method seems to lose audio deep into a video
[16:02:56 CET] <cluelessperson> >14 minutes  <20 minutes
[16:06:15 CET] <cluelessperson> Audio works as long as you leave it streaming past 16 minuts
[16:06:26 CET] <cluelessperson> but around 16 minutes, if you seek further, audio cuts out.
[16:16:47 CET] <sine0> I have a 3 hour long video and towards the end the audio is out by about 7 seconds... however it is in sync at the start.
[16:17:27 CET] <sine0> is there a way I can stretch the audio over the 3 hours
[16:23:22 CET] <waressearcher2> sine0: hallo
[16:28:49 CET] <sine0> hallo
[16:29:04 CET] <waressearcher2> sine0: wie geht's ?
[16:29:48 CET] <cluelessperson> cbsrobot_,   Removing -async 1  fixes my audio cutting out
[16:30:13 CET] <cbsrobot_> cluelessperson: nice
[16:47:52 CET] <nyuszika7h> how can I turn subtitles off by default in an MKV container? none of them seem to be marked default
[16:48:36 CET] <nyuszika7h> oh, it must be just MPC turning them on, they aren't shown by default in mpv
[17:00:36 CET] <cluelessperson> nyuszika7h, the application
[22:00:07 CET] <satt> hey guys - I need to check if a file has audio in a bash script, and my googling is failing to come up with answers.  Anyone know how I could do that?
[22:03:11 CET] <satt> somethine using ffprobe like this maybe? ffprobe -i INPUT -show_streams -select_streams a -loglevel error
[22:05:39 CET] <pzich> seems like that should work
[22:11:21 CET] <satt> thanks pzich, seems to work - returns nothing if there is no audio
[22:11:28 CET] <satt> follow up question
[22:12:27 CET] <satt> I'm concatenating with filter_complex, can I do that with a file that has no audio (while the rest do) or does it need audio?
[22:14:11 CET] <satt> I know I can add silence if I have to, just wondering if I can avoid that step
[22:16:09 CET] <satt> example of concat command: ffmpeg -i INPUTS -filter_complex [0:v]scale=320:-2,pad=320:480,setsar=sar=1/1[v0]; [1:v]scale=320:-2,pad=320:480,setsar=sar=1/1[v1]; [2:v]scale=320:-2,pad=320:480,setsar=sar=1/1[v2]; [3:v]scale=320:-2,pad=320:480,setsar=sar=1/1[v3]; [4:v]scale=320:-2,pad=320:480,setsar=sar=1/1[v4]; [v0] [0:a:0] [v1] [1:a:0] [v2] [2:a:0] [v3] [3:a:0] [v4] [4:a:0] concat=n=5:v=1:a=1 [v] [a] -map [v] -map [a] out
[22:16:09 CET] <satt> put.mp4
[22:26:51 CET] <pzich> I suspect you'll have to add silence, but I'm not 100% sure
[22:27:51 CET] <satt> alright i'll test it.  appreciate the help pzich!
[23:38:20 CET] <satt> pzich you still around? have another nooby question for ya
[23:39:19 CET] <satt> Getting this error from the concat command sometimes - I assume it's cause the input file has too large a resolution
[23:39:23 CET] <satt>  Input area 0:0:320:568 not within the padded area 0:0:320:480 or zero-sized
[23:39:44 CET] <satt> I'd like to keep the aspect ratio and scale down to fit
[23:40:05 CET] <satt> concat command: ffmpeg -i INPUTS -filter_complex [0:v]scale=320:-2,pad=320:480,setsar=sar=1/1[v0]; [1:v]scale=320:-2,pad=320:480,setsar=sar=1/1[v1]; [2:v]scale=320:-2,pad=320:480,setsar=sar=1/1[v2]; [3:v]scale=320:-2,pad=320:480,setsar=sar=1/1[v3]; [4:v]scale=320:-2,pad=320:480,setsar=sar=1/1[v4]; [v0] [0:a:0] [v1] [1:a:0] [v2] [2:a:0] [v3] [3:a:0] [v4] [4:a:0] concat=n=5:v=1:a=1 [v] [a] -map [v] -map [a] out.mp4
[23:54:05 CET] <autofsckk> satt -> isnt  w:h:x:y measures?
[23:57:34 CET] <satt> autofsckk: I'm pretty new to this so I'm not sure exactly
[23:58:06 CET] <autofsckk> im new too jajajaja but i remember using crop filter and the structure is like that
[23:58:45 CET] <satt> I think you can leave out the x/y positioning from the pad, since it autocenters
[00:00:00 CET] --- Sun Dec  6 2015


More information about the Ffmpeg-devel-irc mailing list