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

burek burek021 at gmail.com
Tue Jul 23 02:05:01 CEST 2013


[00:04] <t4nk574> nah
[00:04] <t4nk574> doesnt work with the full command line
[00:04] <klaxa> post it
[00:05] <t4nk574>   ffmpeg -i "$f" -i /home/logo.png -filter_complex overlay="10:10" -y -s 568x320 -c:v libx264 -vf ass="${f%.*}".ass -map 0:3 -b:v 300000 -movflags faststart -coder 1 -flags +loop -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -refs 4 -trellis 2 -chromaoffset 0 -bf 3 -b-pyramid normal -weightb 1 -mixed-refs 1 -8x8dct 1 -fast-pskip 1 -b_strategy 1 -direct-pred 3 -wpredp 2 -me_method hex -subq 6 -me_range 16 -g 250 -b-bias 0 
[00:05] <t4nk574> i tried without -map 0:3 before
[00:05] <t4nk574> same problem
[00:06] <t4nk574> maybe i just need to add ass=blablabal behind overlay
[00:06] <t4nk574> where the other complex filter parameter is
[00:06] <klaxa> yeah maybe
[00:08] <t4nk574> Stream #0:0 (h264) -> overlay:main Stream #1:0 (png) -> overlay:overlay overlay -> Stream #0:0 (?) Stream #0:0 -> #1:0 (h264 -> libx264) Stream #0:1 -> #1:1 (ac3 -> libfaac) Encoder (codec none) not found for output stream #0:0
[00:11] <t4nk574> argh, this is hell
[00:12] <t4nk574> just one tiny parameter
[00:12] <t4nk574> cant they all wrap it into one simple command??
[00:16] <Mr_Ewscoba> I dont thik you can have filter complex
[00:16] <Mr_Ewscoba> and -vf in the same line
[00:16] <Mr_Ewscoba> one or the other
[00:22] <t4nk574> it seems like it Mr_Ewscoba
[00:22] <t4nk574> -vf and filter_complex seem to do the same thing
[00:23] <t4nk574> but when I add complex filter only once
[00:23] <t4nk574> it tries to output as the .ass file again
[00:23] <t4nk574> or simply ignores .ass
[00:27] <t4nk574> FINALLY
[00:27] <t4nk574> -vf = simple filter and does not work with multiple filter streams
[00:28] <t4nk574> so i had to use -filter_complex AND seperate overlay and ass with a comma
[00:29] <Mr_Ewscoba> :)
[00:29] <t4nk574> without the comma it doesnt load both filters, without the complex filter it does not encode two filters at the same time, without libass it does not parse ass correctly and without the ass conversion , the srt would not play
[00:29] <t4nk574> so this was 4 level problem
[00:30] <Mr_Ewscoba> subs is always a big problem, the dvbsub support in ffmpeg is so broken im just burning my subs instead as you do.
[00:31] <t4nk574> in that case i hope that my problem will help other newbies
[00:32] <t4nk574> in case somebody else encouters this problem
[01:01] <t4nk574> hmm
[01:01] <t4nk574> now there is a new problem sigh
[01:02] <t4nk574> Mr_Ewscoba when you convert srt to ass, is there a way to specify screen size, font style?
[01:06] <t4nk574> anyone?
[01:06] <t4nk574> we cant be the only ones with the problem
[01:50] <b6> is there some type of stream that can contain arbitrary text to serve as per-frame metadata for a video stream?
[01:53] <Mr_Ewscoba> t4nk574 I would guess so but no idea, I only use ffmpeg for messing with dvb - iptv stuff, where srt/ass is useless :p
[03:20] <norbert_> hi
[03:20] <norbert_> what exactly is avconv?
[03:21] <norbert_> I booted a Mint live CD and when I tried to run ffmpeg, the system said ffmpeg has been replaced by avconv
[03:22] <norbert_> is it a fork of avconv
[03:22] <norbert_> and, if so, why did the fork take place... what are the differences?
[03:25] <klaxa> norbert_: ^
[03:27] <norbert_> thanks
[05:14] <juanmabc> hi, my code is from ffmpeg-0.10/0.11+, but on 1.2 i hear sound only on left and low or glitches in right, sounds familiar? many api changes?
[07:28] <posciak> hi, I wanted to encode a stream that would have SEI recover points instead of IDRs when possible, I thought open_gop to x264 would be the option I need. I tried: ffmpeg -i in.mp4 -c:v libx264  -x264opts open_gop=1 -c:a copy out.mp4 and some variations of open_gop argument, but x264 keeps reporting "open_gop=0"... what am I doing wrong?
[10:04] <natrixnatrix89> I have a weird situation.. I'm creating a hls stream.. and it runs fine until media sequence 21
[10:04] <natrixnatrix89> ffmpeg -f hls
[10:04] <natrixnatrix89> after that it stops and doesn't run further
[10:05] <natrixnatrix89> I'm wondering why does it always stop on media sequence 21
[10:05] <natrixnatrix89> #EXTM3U
[10:05] <natrixnatrix89> #EXT-X-VERSION:3
[10:05] <natrixnatrix89> #EXT-X-TARGETDURATION:10
[10:05] <natrixnatrix89> #EXT-X-MEDIA-SEQUENCE:21
[10:05] <natrixnatrix89> #EXTINF:10,
[10:05] <natrixnatrix89> zalajs21.ts
[10:05] <natrixnatrix89> #EXTINF:10,
[10:05] <natrixnatrix89> zalajs22.ts
[10:05] <natrixnatrix89> #EXTINF:10,
[10:05] <natrixnatrix89> zalajs23.ts
[10:11] <praveenmarkandu> when i output a transcode output to file, i see a lot of ^M in the output before frame=
[10:11] <praveenmarkandu> how do i remove that?
[10:15] <praveenmarkandu> if i do sed 's/^M//g' log.txt | less it still shows ^M
[10:15] <Mr_Ewscoba> I think i had some semi luck at that using unix2dos convert scripts praveenmarkandu
[10:15] <praveenmarkandu> i tried dos2unix
[10:15] <Mr_Ewscoba> sed can't do it, that was my first try aswell
[10:16] <praveenmarkandu> wrong way?
[10:16] <Mr_Ewscoba> it can buy you need some special options
[10:16] <Mr_Ewscoba> sec
[10:16] <Mr_Ewscoba> but*
[10:17] <praveenmarkandu> hmmm
[10:17] <praveenmarkandu> tried tr , awk,
[10:17] <praveenmarkandu> also didnt work
[10:17] <Mr_Ewscoba> unix2dos -c 7bit faultyfile
[10:17] <Mr_Ewscoba> try that
[10:22] <Mr_Ewscoba> found the script where i knew i had used just that
[10:22] <Mr_Ewscoba> dos2unix -l -f -c 7bit temp/$name.x264.log
[10:26] <Mr_Ewscoba> praveenmarkandu
[10:26] <Mr_Ewscoba> user at box:~$ cat log | tail -n 4
[10:26] <Mr_Ewscoba> Stream #0.0 -> #0.0
[10:26] <Mr_Ewscoba> Stream #0.1 -> #0.1
[10:26] <Mr_Ewscoba> Press ctrl-c to stop encoding
[10:26] <Mr_Ewscoba> user at box:~$ 25 q=-1.0 size= 37926kB time=79.39 bitrate=3913.6kbits/s
[10:26] <Mr_Ewscoba> user at box:~$ cat log | dos2unix -l -f -c 7bit | tail -n 4
[10:26] <Mr_Ewscoba> frame= 2095 fps= 25 q=-1.0 size= 40332kB time=83.56 bitrate=3953.8kbits/s
[10:26] <Mr_Ewscoba> frame= 2110 fps= 25 q=-1.0 size= 40554kB time=84.00 bitrate=3955.1kbits/s
[10:26] <Mr_Ewscoba> frame= 2134 fps= 25 q=-1.0 size= 41289kB time=85.15 bitrate=3972.3kbits/s
[10:26] <Mr_Ewscoba> frame= 2158 fps= 25 q=-1.0 size= 41797kB time=86.01 bitrate=3980.8kbits/s
[10:26] <Mr_Ewscoba> user at box:~$
[10:26] <Mr_Ewscoba> ;)
[10:28] <praveenmarkandu> hmmm thanks
[10:28] <praveenmarkandu> will try it out :D
[10:31] <Mr_Ewscoba> np :)
[12:01] <elkng> for options like "-ss 00:00:38" is it possible to set fraction of a second ? I would really like to have it start from 38.5 second instead of 38
[12:06] <elkng> also what if I convert audio from video to wav file, should I use "-ab 192" option ?
[12:06] <elkng> or wav is lossless raw format ?
[12:09] <Mr_Ewscoba> pcm is, wav is a container :)
[12:11] <elkng> I use that command "ffmpeg -i file.avi -vn -ar 44100 -ac 2 -ab 192 -y -f wav file_out.wav" is it correct ?
[12:11] <elkng> when I use "-f wav" option does ffmpeg understand it should use "pcm" encoding or it just uses wav container ?
[12:12] <elkng> and I should also use option for pcm format ?
[12:12] <wawrek> is this a channel for users?
[12:12] <elkng> wawrek: are you from netherlands ?
[12:13] <Mr_Ewscoba> -f rawaudio file.pcm
[12:13] <wawrek> elkng: yes, why do you ask?
[12:13] <wawrek> elkng: how did you know?
[12:13] <elkng> wawrek: yes, why do you ask ?
[12:13] <elkng> wawrek: your ip
[12:13] <elkng> wawrek: "channel for users", yes, why do you ask ?
[12:14] <wawrek> I want to know if it is possible to manipulate the content of video frames while compressing a clip with ffmpeg. we can apply filters..
[12:15] <elkng> wawrek: was that aquestion ?
[12:15] <elkng> wawrek: there are filters for ffmpeg, try them out
[12:16] <wawrek> yes it is a question, i want to create masks, overlay frames and so on.
[12:16] <wawrek> I will do so, but i couldn't find examples so far.
[12:17] <elkng> Mr_Ewscoba: if I use "-f rawaudio file.pcm" it says "[NULL @ 0x80896c0] Requested output format 'rawaudio' is not a suitable output format"
[12:19] <Mr_Ewscoba> try just raw then
[12:20] <elkng> I will use "-f wav"
[12:21] <Mr_Ewscoba> Should be the same, just raw audio in a wav container
[12:25] <Mr_Ewscoba> -acodec pcm_s16le -f rawvideo file.pcm
[12:25] <Mr_Ewscoba> there you have it ^^
[17:26] <Azrael_-> hi
[17:28] <Azrael_-> is it possible to supply ffmpeg data on windows from somewhere else beside files? it isn't possible to access the source-files directly, i want to supply the data as a stream to ffmpeg without the need to store it first into a file
[17:28] <JEEBsv> stdin is always an alternative, the API also would let you deal with memory if you were using that
[17:30] <Azrael_-> how could i use stdin on windows?
[17:30] <JEEBsv> -i - ? there's also the pipe protocol
[17:30] <JEEBsv> both should be documented
[17:30] <Azrael_-> k, will have a look
[17:33] <Fjorgynn> You where always on my minds...
[17:34] <Fjorgynn> not files?
[17:37] <Azrael_-> the big problem with stdin, ffmpeg keeps everything in memory if i supply non streaming-files
[17:37] <Fjorgynn> ooooh
[17:37] <Azrael_-> or am i wrong?
[17:37] <JEEBsv> uhh, wat. No, it shouldn't
[17:37] <JEEBsv> are you by chance using powershell or something?
[17:38] <JEEBsv> that one actually does that if you try to pipe
[17:38] <Azrael_-> using a c#-program directly
[17:38] <JEEBsv> ffmpeg itself shouldn't cache more than absolutely needed
[17:39] <JEEBsv> (unless you tell it to do something else of course)
[17:39] <Azrael_-> k
[19:07] <hotwings> according to the author of the softhddevice output plugin for vdr, theres a problem with the vdpau decoder not ffw/rew'ing h264 (h264 paff to be exact, iirc). would this be the right place to talk to someone about that?
[19:51] <jankowiak> I've been looking at python wrappers for ffmpeg, and most of them seem to be dead
[19:51] <jankowiak> Are there any that are recommended?
[19:57] <JEEBsv> nope
[20:32] <megaTherion> has the cli changed, I cannot do '-vcodec copy' - it says unknown decoder
[20:33] <sacarasc> You've probably put it in the wrong place.
[20:34] <megaTherion> sacarasc: ah, you're right
[20:41] <natrixnatrix89> I have the following problem.. ffmpeg runs fine and stores an input stream if I run it as a user.
[20:41] <natrixnatrix89> But if ffmpeg is ran programmatically by cron, then it freezes after first 2 minutes.
[20:41] <natrixnatrix89> Is it because there is no stdout? Is there a way to suppress this behavior?
[20:45] <natrixnatrix89> from what I read in stackoverflow, it's due to deadlock..
[20:45] <natrixnatrix89> how exactly do I fix that?
[20:57] <Plorkyeran> > /dev/null 2> /dev/null, if that actually is the problem
[20:57] <Plorkyeran> although dumping to a log file instead is likely to be useful at some point
[22:44] <colinb> Hi all, I am using ffmpeg in the command line to encode my videos and I am running into a problem with concat.  I record from the screen in FRAPS and then encode each piece, finally stitching them together with the concat demuxer.  This time, around the 5th file, right at the stitch, things get weird. I don't know the technical terms but it seems like the dithering or encoding from frame to frame has a problem. Very blocky and distorted whe
[22:44] <colinb> re both the source and the encoded files are clean. Any ideas?
[22:45] <colinb> All the files are encoded with the same parameters and bitrate, by the way
[22:46] <colinb> I even tried to re-concat them but no dice :|
[22:51] <colinb> Howdy Carraway
[22:51] <Carraway> hellooooo
[22:52] <colinb> how goes it
[22:52] <colinb> Are you familiar with the concat demuxer by any chance? :)
[23:08] <colinb> Ugh, the new Gmail key shortcuts just made me prematurely send an e-mail to the ffmpeg users list :|
[23:13] <brontosaurusrex> colinb, no big deal, just spammed few 1000 users.
[23:13] <colinb> I know :(
[23:13] <colinb> I blame it all on Gmail though!
[23:13] <brontosaurusrex> just kidding.
[23:16] <colinb> Agh this is such strange behavior. I am experiencing major distortion at the stitch point between two videos.. so I tried concatting the first section and then the second section at the problem point, both video are fine, but when I try to concat the two new sections together I get the same problem at the same point
[23:17] <colinb> perhaps I need to re-encode the video at the problem point? even though the encoded section of video seems to be fine on its own?
[23:24] <colinb> Nope, still the same issue. is it possibly because the clip preceding the clip which errors out is only 5 seconds long?
[23:29] <brontosaurusrex> colinb, what codec they use?
[23:30] <colinb> original is fraps to mpeg4 I believe
[23:30] <brontosaurusrex> i mean the clips that you are concating?
[23:30] <colinb> I have successfully used this method for several videos before this
[23:31] <colinb> umm just to be certain and clear is there a ffmpeg command to analyze a file?
[23:31] <brontosaurusrex> there is
[23:32] <colinb> yes, mpeg4
[23:32] <colinb> in an avi container
[23:33] <brontosaurusrex> and concat docs are clear that such codec/container is supported?
[23:33] <colinb> FRAPS ->  FMP4
[23:33] <colinb> I _think_ so.. but I am not entirely sure let me check again
[23:34] <brontosaurusrex> i still don't know what you are concating, fraps or mpeg4, so yeah ...
[23:34] <brontosaurusrex> the usual "paste the complete command and output to the paste bin."
[23:34] <colinb> mpeg4
[23:34] <colinb> sure, lemme do that
[23:38] <colinb> here's the paste for the encoding: http://pastebin.com/i1Ph4cdJ
[23:39] <colinb> and the concat action http://pastebin.com/SBthgxbX
[23:40] <colinb> sorry that concat paste got mangled a bit
[23:40] <colinb> here's a cleaner version: http://pastebin.com/dvtiBGX4
[23:40] <brontosaurusrex> i would assume this has something to do with fraps and variable frame rate and variable frame rate flags and avi
[23:41] <brontosaurusrex> so you are probably concating multiple streams with different framerates and ...
[23:41] <colinb> could you perhaps elaborate on VBR flags and avi? are you saying that the vbr is causing issues? are you saying there is a vbr flag that might assist me?
[23:42] <colinb> the strange thing is that all should be exactly the same.. bitrate, framerate..
[23:42] <colinb> I appreciate your attention I am just (obviously) a encoding newb
[23:43] <brontosaurusrex> can you analize few of them with ffmpeg/ffprobe and see whats up with framerate?
[23:44] <brontosaurusrex> basically what i would do is intermediate to some uncompressed constant-frame-rate format, then concat, then encode to final format
[23:45] <colinb> do you have a suggestion for a constant rate format/codec?
[23:46] <brontosaurusrex> perhaps ut-video or fv1
[23:47] <colinb> okay thanks for the assistance! I've run out of time to work on it for now so I gotta run!
[23:47] <brontosaurusrex> have fun
[23:50] <Aprel> hi compiled ffmpeg from source. Works great from cli, but video software like kdenlive can't find the binaries. How to I set up the proper links? On ubuntu 13.4
[23:53] <brontosaurusrex> Aprel, /j #kdenlive
[23:53] <Aprel> One more q: When I do a screen capture, the audio and video desyncs, about a couple frames every 1-2 minutes--more frames if there's a lot of motion in the capture. Any way to avoid this, or programmatically repais desynced files?
[23:54] <brontosaurusrex> Aprel, post the command line you use for capturing and all
[23:55] <Aprel> I use this command: ffmpeg -f x11grab -r 25 -s 1920x1080 -i :0.0 -f alsa -ac 2 -i pulse -vcodec libx264 -crf 0 -preset ultrafast -acodec pcm_s16le output.mkv
[23:55] <Aprel> I've got a i5 2500K cpu, and it's no wherre near %100, so it's not a cpu bottleneck.
[23:56] <klaxa> might be harddrive bottleneck
[23:57] <Aprel> klaxa: for a desync? I'd think hdd would cause frame and audio drops.
[23:57] <klaxa> hmm true
[23:57] <brontosaurusrex> Aprel, you can try -crf 23 or something like that
[23:58] <brontosaurusrex> to see if it is a hdd issue
[23:59] <Aprel> yeah, okay. Thing is I need to record like 8 mins video and watch it before the sync is easily noticeable to me, so hang tight :)
[23:59] <Aprel> btw what does the crf switch do?
[00:00] --- Tue Jul 23 2013


More information about the Ffmpeg-devel-irc mailing list