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

burek burek021 at gmail.com
Mon Jun 17 02:05:01 CEST 2013


[00:04] <SirCmpwn> klaxa: so your script extracts fonts to ./fonts/
[00:04] <SirCmpwn> if I adjust it to use ~/.fonts/ instead, ffmpeg will pick it up from there?
[00:04] <klaxa> should, i may or may not have done it correctly
[00:05] <klaxa> i think so, at least my ffmpeg binaries always did
[00:05] <SirCmpwn> I've been making small changes, I'll give you the improved script in a bit
[00:05] <klaxa> ah nice
[00:06] <SirCmpwn> whoops
[00:06] <SirCmpwn> anyone know how to remove a directory named "~" from a bash prompt without blowing up your home directory instead
[00:07] <ubitux> rm '~'
[00:07] <ubitux> rmdir '~'
[00:07] <SirCmpwn> thanks
[00:08] <SirCmpwn> klaxa: here you go: https://gist.github.com/SirCmpwn/520ed369600a59f3b04c
[00:09] <SirCmpwn> worked great, much appreciated
[00:09] <klaxa> do you have github? in that case just fork the gist
[00:09] <SirCmpwn> bleh
[00:10] <SirCmpwn> https://gist.github.com/SirCmpwn/5789762
[00:10] <SirCmpwn> changes: uses ~/.fonts/ and doesn't require mkvlst.lst to be present
[00:10] <klaxa> alright nice, thanks
[00:18] <killown> what is this [matroska @ 0x25b9520] st:0 PTS: 24832 DTS: 24832 < 24894 invalid, clipping ?
[00:18] <killown> when this msg appears the screen has a little freeze
[00:23] <JEEB> suddenly the presentation time stamp of something went backwards
[00:23] <JEEB> oh no wiat
[00:24] <JEEB> PTS is smaller than DTS
[00:24] <JEEB> which is impossible
[00:24] <JEEB> PTS = presentation time stamp
[00:24] <JEEB> DTS = decoding time stamp
[00:25] <killown> JEEB, hehe I don't understand the problem very well, does it have a fix?
[00:27] <JEEB> well, it means that something is borked in that file in some way, or ffmpeg is borked. Because suddenly the time something was supposed to be presented (shown or output as sound or whatever) before it had been decoded
[00:27] <JEEB> which is of course, impossible
[00:27] <JEEB> you might want to see the output of mkvinfo -v that_file.mkv for that file. It'll be a relatively long log, but you should possibly see what on earth is going on there
[00:29] Action: killown installing mkvinfo
[00:30] <JEEB> it'll seriously be long tho, so you might or might not want to use the -r redirection parameter to set a text file it will output the log to
[00:31] <killown> ok, it seems my distro does not have this mkvinfo  yaourt -S --noconfirm mkvextract-ggui
[00:31] <JEEB> it comes with mkvtoolnix
[00:31] <SirCmpwn> can someone who already has a wiki account modify this page: http://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
[00:31] <JEEB> which also contains mkvmerge, mkvextract
[00:31] <SirCmpwn> add --enable-libfreetype to the ./configure for ffmpeg
[00:32] <killown>  mkvtoolnix-cli-6.2.0-1-x86_64
[00:33] <killown> killown at killown:~/WineManager$ mkvinfo -v /videos/video.mkv  > log
[00:34] <JEEB> on windows that doesn't work for whatever reason, it outputs extra endlines :D
[00:34] <JEEB> which is why I had to use -r
[00:34] <JEEB> but yeah
[00:34] <JEEB> that should work
[00:35] <killown> JEEB, http://bpaste.net/show/8Px9XErzFqqC31sa97OU/
[00:36] <JEEB> yeah... now to know which simpleblock had that PTS
[00:37] <JEEB> it'd be nice to know what was the timescale of those timestamps
[00:48] <SirCmpwn> more problems! :D
[00:48] <SirCmpwn> failing to extract subtitles for a video: https://gist.github.com/SirCmpwn/b169a9de27b0b437c477
[00:49] <SirCmpwn> "ASS encoder supports only one ASS rectangle field."
[00:49] <SirCmpwn> do I need a different ASS encoder? VLC handles this file without trouble
[00:52] <SirCmpwn> with this issue solved, I'll have a perfect script for doing sub comparisons
[00:53] <ubitux> remove -scodec ass
[00:53] <ubitux> remove -f ass too
[00:53] <ubitux> it's useless
[00:53] <ubitux> (and -scodec ass is wrong)
[00:53] <SirCmpwn> perfect, thanks
[00:53] <ubitux> im too tired to explain why though
[00:53] <ubitux> you can remove -vn and -an too btw
[00:54] <ubitux> you may try -c copy btw
[00:55] <SirCmpwn> okay, attempted: extract one frame every five minutes
[00:55] <SirCmpwn> result: 94 frames from a 30 minute show
[00:55] <SirCmpwn> -vf "fps=5/60..."
[00:56] <SirCmpwn> I bet that's 5 per minute
[00:58] <klaxa> try 1/300 then?
[00:58] <klaxa> 1 per 5 minutes
[00:58] <SirCmpwn> trying 1/5/60
[01:00] <SirCmpwn> worked
[01:01] <SirCmpwn> is it possible to determine if a frame contains subtitles or not?
[01:01] <SirCmpwn> probably not
[01:03] <klaxa> you have the sub-file you can do some checking there
[01:03] <SirCmpwn> yeah, but it probably requires more than a bash script
[01:03] <klaxa> mmhh...
[01:04] <klaxa> don't know about that
[01:04] <klaxa> i think that should be doable in bash
[01:04] <klaxa> although it will be very inefficient because it's bash
[01:06] <SirCmpwn> would be nice if drawtext had something like a CSS text-shadow
[01:07] <SirCmpwn> could add white text with black outline
[01:08] <saste> SirCmpwn, use an ASS file instead
[01:09] <SirCmpwn> not a bad idea
[04:35] <SirCmpwn> so I have run into another unfortunate problem
[04:36] <SirCmpwn> background: I'm trying to export one frame every minute from a video
[04:36] <SirCmpwn> I'm trying to change the start time (i.e. start at 00:00:01 to take the 00:00:01 frame, and 00:01:01, and 00:02:01, etc)
[04:37] <SirCmpwn> unfortunately, unless I change it in multiples of one minute (the fps), it doesn't have an effect, as if it were truncating the frame time
[04:38] <SirCmpwn> https://gist.github.com/SirCmpwn/491a9a058977a6652849
[04:38] <SirCmpwn> hold for a moment while I get the exact invocation that ends up being
[04:44] <SirCmpwn> https://gist.github.com/SirCmpwn/22f51ceb38c6c44f2f25/raw/4bdcee408d6db52eb9ec3a03010aad09f89e6998/gistfile1.txt
[04:45] <SirCmpwn> bad example, hold on
[04:46] <SirCmpwn> here, this is better: sircmpwn at picard ~/sources/bakabt-staging/hennkeo/groups $ bash -x /home/sircmpwn/compareVideos --debug
[04:46] <SirCmpwn> + mkdir screenshots
[04:46] <SirCmpwn> mkdir: cannot create directory screenshots: File exists
[04:46] <SirCmpwn> + debug=0
[04:46] <SirCmpwn> + '[' 1 -eq 1 ']'
[04:46] <SirCmpwn> + '[' --debug == --debug ']'
[04:46] <SirCmpwn> + for file in '*.mkv'
[04:46] <SirCmpwn> + echo 'Handling HorribleSubs.mkv'
[04:46] <SirCmpwn> Handling HorribleSubs.mkv
[04:46] <SirCmpwn> ++ basename HorribleSubs.mkv .mkv
[04:46] <SirCmpwn> + basename=HorribleSubs
[04:46] <SirCmpwn> + mediainfo HorribleSubs.mkv
[04:46] <SirCmpwn> ++ basename HorribleSubs.mkv .mkv
[04:46] <SirCmpwn> + ffmpeg -y -loglevel panic -i HorribleSubs.mkv -vn -an HorribleSubs.ass
[04:46] <SirCmpwn> + echo 'Extracting screenshots'
[04:46] <SirCmpwn> Extracting screenshots
[04:46] <SirCmpwn> + ffmpegargs='-ss 00:01:00'
[04:46] <SirCmpwn> + '[' -e HorribleSubs.config ']'
[04:46] <SirCmpwn> + echo 'Using HorribleSubs.config for special settings'
[04:46] <SirCmpwn> Using HorribleSubs.config for special settings
[04:46] <SirCmpwn> ++ cat HorribleSubs.config
[04:46] <SirCmpwn> + ffmpegargs='-ss 00:00:59'
[04:46] <SirCmpwn> + loglevel='-loglevel panic'
[04:46] <SirCmpwn> + '[' 1 -eq 1 ']'
[04:46] <SirCmpwn> + loglevel=
[04:46] <SirCmpwn> + ffmpeg -y -i HorribleSubs.mkv -ss 00:00:59 -vf 'fps=1/60,drawtext=fontfile=/usr/share/fonts/truetype/droid/DroidSans.ttf: fontcolor=white: fontsize=32: x=10: y=10 :text=HorribleSubs,ass=HorribleSubs.ass' screenshots/%03d-HorribleSubs.png
[04:47] <SirCmpwn> ffmpeg version git-2013-06-15-8a79a00 Copyright (c) 2000-2013 the FFmpeg developers
[04:47] <SirCmpwn>   built on Jun 15 2013 16:36:45 with gcc 4.7 (Ubuntu/Linaro 4.7.3-1ubuntu1)
[04:47] <SirCmpwn>   configuration: --prefix=/home/sircmpwn/ffmpeg_build --extra-cflags=-I/home/sircmpwn/ffmpeg_build/include --extra-ldflags=-L/home/sircmpwn/ffmpeg_build/lib --bindir=/home/sircmpwn/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab --enable-lib
[04:47] <SirCmpwn> freetype
[04:47] <SirCmpwn>   libavutil      52. 35.101 / 52. 35.101
[04:47] <SirCmpwn>   libavcodec     55. 16.100 / 55. 16.100
[04:47] <SirCmpwn>   libavformat    55.  8.102 / 55.  8.102
[04:47] <SirCmpwn>   libavdevice    55.  2.100 / 55.  2.100
[04:47] <SirCmpwn>   libavfilter     3. 77.101 /  3. 77.101
[04:47] <SirCmpwn>   libswscale      2.  3.100 /  2.  3.100
[04:47] <SirCmpwn>   libswresample   0. 17.102 /  0. 17.102
[04:47] <SirCmpwn>   libpostproc    52.  3.100 / 52.  3.100
[04:47] <SirCmpwn> Input #0, matroska,webm,
[04:47] <SirCmpwn> apologies :(
[04:48] <SirCmpwn> okay, so: I'm exporting one frame per minute from a video file with fps=1/60, and I'm trying to change the starting time (i.e. a start of 00:01 would export frames from 00:01, 01:01, 02:01, etc)
[04:48] <SirCmpwn> unfortunately, it rounds to the nearest minute, so if I give it 00:01, I get 00:00, 01:00, 02:00, etc
[04:49] <SirCmpwn> the script is here: https://gist.github.com/SirCmpwn/491a9a058977a6652849 and the ffmpeg invocation is here: https://gist.github.com/SirCmpwn/c3486b1538801ecbe81e/raw/bdbdc05eb72e5becb939bfe5c6dc759b7e14b26b/gistfile1.txt
[04:49] <SirCmpwn> ping ubitux, klaxa
[04:56] <SirCmpwn> I think something with setpts might work, but I'm not sure how it works
[05:10] <SirCmpwn> maybe I can use select
[05:38] <SirCmpwn> I'd kill for a -sf
[05:40] <SirCmpwn> seems to work if I use -ss before the input, but then subtitles aren't rendered (again)
[05:47] <SirCmpwn> doesn't work, nevermind
[06:22] <SirCmpwn> alright, I give up until someone else has an idea
[06:22] <SirCmpwn> I've been giving ffmpeg different parameters for an hour and a half with no success
[06:31] <SirCmpwn> http://superuser.com/questions/608192/extracting-one-frame-per-minute-with-ffmpeg-and-a-skip
[07:17] <bigmac> has any one pulled a audio file from pandora?
[07:17] <bigmac> tcpdump
[07:17] <bigmac> wireshark
[07:22] <bigmac> looks like i may be missing a important header on this file?
[07:29] <bigmac> maybe i can record the sound from the linux audo device or something
[07:29] <Keshl> Geh. I have a sequence of images meant to be rendered at 120 FPS. How can I render it at 60 instead, and have ffmpeg skip or drop every other frame?
[07:30] <bigmac> instead of tcp
[07:44] <Keshl> Oh there.
[07:44] <Keshl> Just supply -r 120 on the input and -r 60 on the output, oÉo.
[12:29] <codecghost> is there the latest version of dirac on ffmpeg for win (zeranoe's builds)?
[12:30] <codecghost> is there the latest version of snow and ffv1 on ffmpeg for win (zeranoe's builds)?
[12:31] <codecghost> is anyone here&
[12:31] <codecghost> ?
[12:33] <codecghost> is there the latest version of dirac on ffmpeg for win (zeranoe's builds)? [14:29] <codecghost> is there the latest version of snow and ffv1 on ffmpeg for win (zeranoe's builds)?
[12:34] <JEEB> grab the newest build and do ffmpeg -codecs and see if you find what you need? ;)
[12:34] <JEEB> I'm pretty sure that ffv1 is there
[12:36] <xlinkz0> is there an option for single-thread?
[12:37] <JEEB> -threads 1 ?
[12:37] <xlinkz0> will that make x264 be single threaded aswell?
[12:38] <JEEB> yes, if you set it for the encoder side
[12:38] <JEEB> before -i it's the decoders, after -i it's the encoders
[12:39] <xlinkz0> thanks
[12:45] <codecghost> thank you for ffmpeg -codecs, but the cmd eat some info
[12:45] <codecghost> how to get the full list?
[12:46] <JEEB> yes, cmd.exe sucks, try ffmpeg -codecs > listing.txt
[12:46] <JEEB> it will output what was put through stdout to listing.txt
[12:48] <illusion_> how to add a wtermark filter to this command line example ? ffmpeg -re -i file.mp4 -vf "delogo=x=0:y=0:w=170:h=60:band=5" -s 640x360 -vb 600k -acodec copy -f flv rtmp://test.com
[12:48] <illusion_> -vf "movie=logo.png [watermark]; [in][watermark] overlay=main_w-overlay_w-10:10 [out]"
[12:49] <illusion_> i want to use 2 effect with ffmpeg delogo and watermark
[12:49] <illusion_> how to do this ?
[12:53] <illusion_> any one here ?
[12:56] <ubitux>  -vf "[in] delogo=x=0:y=0:w=170:h=60:band=5 [delogo]; movie=logo.png [watermark]; [delogo][watermark] overlay=main_w-overlay_w-10:10 [out]"
[12:56] <ubitux> ?
[12:56] <illusion_> one minute i will try it
[13:01] <illusion_> thank you ubitux
[13:01] <illusion_> work fine :)
[13:03] <illusion_> do ffmpeg support playlist ?
[13:04] <ubitux> some
[13:06] <illusion_> ffmpeg -i list.txt ?
[13:06] <illusion_> is this correct ?
[13:06] <ubitux> what do you want to do?
[13:06] <ubitux> concat?
[13:10] <illusion_> i use this
[13:10] <illusion_> http://pastebin.com/ygMi1wgM
[13:10] <illusion_> i want a daynamic playlist
[13:10] <illusion_> how can i do it ?
[13:11] <ubitux> you can't, and it's appropriate to make a look like you do
[13:11] <ubitux> also, avconv is a fork
[13:12] <ubitux> ah i misunderstood, the output is always the same?
[13:12] <ubitux> then you could use the concat filter
[13:12] <ubitux> or eventually the concat demuxer
[13:12] <illusion_> how to use concat ?
[13:13] <illusion_> the outpout is the same
[13:13] <ubitux> https://www.ffmpeg.org/faq.html#How-can-I-concatenate-video-files_003f
[13:13] <illusion_> it is for webtv
[13:13] <ubitux> you want concat filter or concat demuxer; read the appropriate doc
[13:14] <illusion_> thank you :)
[13:36] <codecghost> 2JEEB, thank you, all good. listing.txt file was created. but the version of codecs (interested in dirac (updates periodically), snow (may be not changed) and ffv1(i know that the new version was released)) is missing. where can to get it?
[13:40] <JEEB> codecghost, that you can generally just be OK with if the build is new
[13:45] <codecghost> good
[16:48] <SirCmpwn> http://superuser.com/questions/608192
[16:49] <SirCmpwn> ping ubitux, klaxa
[19:00] <ZenGuy311> how do i preview a video i want to crop to get the crop dimensions?
[19:02] <ZenGuy311> i tried using avimux crop preview filter tool but the dimensions didn't match up when i entered it into ffmpeg
[20:13] <killown> how can I fix audio and view outsync?
[20:41] <klaxa> killown: take a look at -itsoffset
[20:53] <killown> klaxa, the problem is when I am recording a screen and playing a game, the game has a little screen freeze but the audio keeps up, it only happens when ffmpeg is recording :/
[20:53] <klaxa> pastebin your ffmpeg command line and tell me what storage device you are writing to
[20:54] <klaxa> maybe your storage device is too slow, i had similar issues, fixed them by recording to ramfs on /tmp
[20:54] <killown> ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s hd1080 -r 24 -i :0.0 -vcodec libx264 -crf 0 -preset ultrafast -an -y video.mkv -acodec pcm_s16le -threads 0 -vn  -y /videos/audio.mkv
[20:54] <killown> I have raid5 3 HD 1TB on /home and /Video is another HD with no raid setup
[20:54] <killown> /videos*
[20:59] <klaxa> it might actually be too slow, also try compressing audio too, might be a bit more stressful to your cpu, but will save a lot of writing speed for the audio
[20:59] <killown> klaxa, could you provide me the parameters to compress the audio?
[20:59] <klaxa> -c:a libflac instead of -acodec pcm_s16le
[20:59] <killown> klaxa, thank you, I will try
[21:00] <klaxa> i doubt that it will help much though
[21:02] <killown> klaxa, so the issue is probably I/O? I will try to record it in tmpfs
[21:02] <klaxa> maybe, at least that was the case for me
[21:19] <killown> klaxa, I mounted tmpfs with 10000MB and recorded a 9.200GB video with 7 minutes the audio and video is perfectly synced now
[21:19] <killown> sounds like I need 32GB ram
[21:20] <killown> 10gb RAM  = 9.5GB == 7 minutes, 20GB RAM == 15 minutes, I don't pretend to do more than 15 minutes in a video
[21:21] <killown> maybe compressing it a little more I could save tmpfs space?
[21:25] <klaxa> so it was I/O speed after all :)
[21:26] <killown> klaxa, hehehe thank you
[21:26] <klaxa> you could also try a faster harddrive, raid 0 with independent disks, or just get an ssd
[21:26] <killown> klaxa, what kind of device is reliable to ffmpeg recording?
[21:27] <klaxa> dunno, i've only ever really recorded to my (slow) internal harddrive or tmpfs
[21:27] <klaxa> i only have a laptop so the harddrive is pretty damn slow
[21:31] <killown> klaxa, 32 GB ram to record through tmpfs is better than having a ssd 64gb?
[21:31] <killown> I can only mount 28GB though
[21:31] <klaxa> maybe? i don't know, i think ram will be faster than ssd, but if your standard harddrives are too slow, maybe an ssd is fast enough?
[21:32] <killown> raid5 is very slow to write proposes
[21:32] <killown> and my 7200RPM hd on / is slow too
[21:36] <killown> klaxa, if had a way for ffmpeg split the  file while recording, so for example, split each 1GB then one script check it and move the file to the HD to free tmpfs space
[21:37] <klaxa> i also thought about buffering the recording to tmpfs, i don't know how to do it though
[21:37] <killown> it should be a ffmpeg feature
[21:45] <killown> klaxa, I solved the problem now
[21:46] <killown> -crf 22 is enough for me
[21:46] <killown> and it does 100Mb/minute
[21:46] <klaxa> ah uh... okay if you are encoding lossly right away, you'll use a lot of detail though
[21:47] <killown> any format better than webm?
[21:47] <killown> I need encode it for youtube
[21:47] <killown> so less size better
[21:47] <killown> but without lose too much the quality
[21:47] <klaxa> in that case, just fuck it, since youtube itself will fuck the file anyways
[21:49] <killown> klaxa, ffmpeg -i /videos/videofinal.mkv -codec:v libvpx -quality good -cpu-used 0 -b:v 16000k -threads 4 videofinal.webm
[21:49] <killown> converting for webm already fuck it
[21:50] <klaxa> i tend to record in lossless, encode properly with crf 16-18 then upload
[21:50] <killown> klaxa, seems I have enough ram for that
[21:51] <killown> 10GB is enough for 1hour video using crf 20
[21:51] <killown> I will try 15
[21:53] <killown> since it requires 10 times less I/O now I don't need to use tmpfs anymore, but just in case my HD is not reliable I will keep using it
[00:00] --- Mon Jun 17 2013


More information about the Ffmpeg-devel-irc mailing list