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

burek burek021 at gmail.com
Mon Jul 22 02:05:01 CEST 2013


[02:03] <Gnintendo> I recently upgraded to ffmpeg 1.2.1 from 1.0.(?), and my filter chain is no longer working
[02:03] <Gnintendo> the error thrown is "Size and width/height expressions cannot be set at the same time."
[02:03] <Gnintendo> and it is referring to the [0]scale=1280/6:-1[pip] filter in my chain
[02:04] <Gnintendo> I am unsure exactly how to rectify this issue to still achieve the result I am aiming for here; any assistance would be appreciated
[06:41] <elkng> I use few commands to convert same file into few others with different bitrate, I do it in two pass encoding, so first step command is: "ffmpeg  -i file.mkv -c:v mpeg4 -vb 600k -s 650x365  -mbd rd -flags +mv4+aic -trellis 2 -cmp 2 -subcmp 2 -g 300 -pass 1 -passlogfile log_1 -an -f rawvideo -y /dev/null" then on that first pass it creates file
[06:41] <elkng>  "log_1" and then goes second pass that uses information from that "log_1" to createt new video file, then I change option "-vb 600k" to "-vb 800k" and do the same two pass encoding to get second video file with 800 bitrate and then same for 1000,1200,1500 bitrate files, but the strange thing is the first pass step should be similar for all of
[06:41] <elkng>  them and it should create "log_*" files that absolutely the same but they actually differ, why ?
[07:22] <elkng> another question
[07:23] <elkng> to cut out some piece of video I have two alternatives: "ffmpeg -ss 00:02:45 -t 00:06:54 -i file.avi -vcodec copy -acodec copy file_out.avi" or "mencoder -ss 00:02:45 -endpos 00:06:54 -oac copy -ovc copy file.avi -o file_out.avi" which way is more prefferable, "ffmpeg" or "mencoder" ?
[07:24] <elkng> I have hyperthreaded CPU, and I noticed if I encode video with ffmpeg its about twice faster, so does ffmpeg use hyperthreading for every activity so even with cuting out from video will be faster with ffmpeg ?
[07:49] <elkng> is it because of sunday no one here ?
[11:25] <MrE_> What tool would you guys recommend to fetch a hls stream and broadcast it as udp/rtp?
[11:26] <MrE_> Tried ffmpeg, ffmpeg -i url -vcodec copy -acodec copy - f mpegts "udp://239.0.0.1:5501?ttl=1&pkt_size=1316&buffer=262140" but that seems to dump every segment to udp every 10 seconds, and not properly stream it.
[11:27] <MrE_> Adding -re fix that, but then ffmpeg will get out of sync with the segment list and skip segments.
[16:05] <stefanha> Can ffmpeg concatenate ogg files and insert silence between some of the file segments without re-encoding?
[16:06] <stefanha> From the documentation it seems the concat demuxer can concatenate without re-encoding.  I don't see a way to set the starting time of each ogg segment though (I'd like to insert some silences).
[16:06] <stefanha> For example: a.ogg, b.ogg, silence (10 seconds), c.ogg -> output.ogg
[16:09] <saste> stefanha, what's the problem with generating a silence file, and then use concat?
[16:09] <stefanha> saste: I'll try that.  Not very familiar with ffmpeg so I wanted to check first.
[16:10] <saste> you can use aevalsrc for example, or a simple read from /dev/zero
[16:10] <stefanha> saste: Excellent, thanks!
[16:42] <newbie|3> what does AV_DICT_IGNORE_SUFFIX do?
[16:42] <newbie|3> can't seem to find any docs on it
[16:42] <newbie|3> "metadata is read using the AV_DICT_IGNORE_SUFFIX flag"
[16:42] <newbie|3> what does that mean?
[16:44] <newbie|3> also, I can't really make sense of "filter_codec_opts", which seems to assume the type specificiers are prefixes, however, in all the docs I've found they are suffixes, e.g. "b:v" what¨s goign on there?
[19:13] <1JTAADT7Z> Use -vf pad=width:height:x:y:color as in libav doc found here:
[19:14] <1JTAADT7Z> i wanted to add 139pixels to top and bottom. What would be the pad parameters then?
[19:35] <Yagger> I have a question concerning the --enable-sram configure flag. Will it make a difference when using the flag when compiling for a Core i7 machine?
[19:43] <MrE_> What tool would you guys recommend to fetch a hls stream and broadcast it as udp/rtp?
[19:43] <MrE_> Tried ffmpeg, ffmpeg -i url -vcodec copy -acodec copy - f mpegts "udp://239.0.0.1:5501?ttl=1&pkt_size=1316&buffer=262140" but that seems to dump every segment to udp every 10 seconds, and not properly stream it.
[19:43] <MrE_> Adding -re fix that, but then ffmpeg will get out of sync with the segment list and skip segments.
[19:45] <MrE_> Running ffmpeg twice one to do the downloading part and mux it as a mkv file, and then 10 seconds later, another ffmpeg that read that mkv file and broadcast it as udp, everything works, but should be posible with 1 command and no temp file...
[19:58] <1JTAADT7Z> man, just noticed my weird nick. That's wrong
[19:59] <defaultr0> i got the padding working
[20:00] <defaultr0> I'm running this now and bitrate is only 10000kbit. I want it higher since source is huffyuv(lossless). I am happy if bitrate was showing 26000kbits
[20:00] <defaultr0> ffmpeg -i g200mm.mkv -vf scale=1920x802,pad=1920:1080:0:139:black -vcodec libx264 -pix_fmt yuv420p -an -crf 15 -preset veryslow output2.mp4
[20:27] <relaxed_> defaultr0: use a lower crf value
[20:32] <MrE_> or dont use crf, use -vb 26000k
[20:36] <relaxed_> right, and if you want a specific size use two passes
[21:38] <akovia> Hi, I am a moderator over on fanart.tv and have been using ffmpeg to make video tutorials for the site and for some users. The first ones I created seemed to not have any troubles but lately people have been having trouble playing them back. I asked for help and followed the "HOWTO Proper Sceencasting" guide on the ubuntu forums (which is of course down right now), but the help I received didn't fix the problem. My system and ffmpeg sp
[21:38] <akovia> ecs to follow.
[21:39] <akovia> Specs http://pastebin.com/DhpKE686
[21:39] <Fjorgynn> akovia: what are you using now?
[21:39] <Fjorgynn> ffmpeg?
[21:39] <Fjorgynn> so what's the output
[21:39] <akovia> coming
[21:39] <Fjorgynn> if you do ffmpeg -i latestscreencast.mp4
[21:39] <akovia> http://pastebin.com/tpwsFSXB
[21:41] <akovia> and here's the script I use http://pastebin.com/2gf23nzm
[21:42] <akovia> all that shows the info you needed or you need me to run that command?
[21:42] <Fjorgynn> so you can watch it?
[21:42] <akovia> it all plays back fine on my machine
[21:43] <akovia> here's where i think the problem lies...
[21:43] <akovia> if i open the file in smplayer, i'll get a time of around 1 minuts, in avidemux, it's like 20% shorter
[21:44] <akovia> so i thought it may be a framerate thing?
[21:44] <Fjorgynn> avidemux?
[21:44] <Fjorgynn> why do you use that?
[21:44] <akovia> well i noticed the discrepancy when doing some editing.
[21:45] <akovia> i use avidemux to find good cutting points
[21:46] <akovia> looking for keyframes, then i use mmg to do the cutting
[21:46] <akovia> so this last screencast shows 57 seconds in smplayer, and only 36 seconds in avidemux
[21:47] <akovia> it may not be related why some people can't watch them, but I didn't have any other ideas
[21:50] <akovia> I've searched extensively to find a way to cut mkv's with frame accuracy, but never found a way. At least if i cut at the keyframes shown in avidemux, it always seems close to where i want the cut
[22:02] <Mr_Ewscoba> akovia VideoRedo or TS Doctor
[22:03] <Mr_Ewscoba> Both are made for cutting transport streams, videoredo should be able todo mkv files and frame accurate cutting :)
[22:03] <akovia> thanks, but i think they are both for windows
[22:04] <Mr_Ewscoba> They are, there is nothing that works for linux yet that is frame accurate and doesn't create artifacts
[22:04] <akovia> yeah, that's what i found as well =/
[22:05] <Mr_Ewscoba> I need to run a virtual windows to be able to use videoredo with as near as host operation disk speeds
[22:06] <akovia> i'm afraid my computer is quite up to the tak of video editing in a VM
[22:06] <akovia> task
[22:07] <Mr_Ewscoba> you could try wine, ive never had any luck with it thou
[22:08] <akovia> i use wine for a few things, but it's more trouble than it's worth if it doesn't "just work"
[22:08] <Mr_Ewscoba> tried mencoder and edl files ?
[22:08] <akovia> edl files?
[22:09] <Mr_Ewscoba> http://en.wikipedia.org/wiki/Edit_decision_list
[22:09] <akovia> Fjorgynn, here is a link to one of the videos if you are still around
[22:09] <Fjorgynn> hm
[22:10] <akovia> will look into that, thanks!
[22:10] <akovia> https://dl.dropboxusercontent.com/u/93550827/Toke2.mkv
[22:11] <Mr_Ewscoba> There is a program called comskip that does commercial detection and creates such edl files, for 3rd party tools to use for cutting out video parts, you can find much more on that over at comskip's forum ;)
[22:11] <akovia> Mr_Ewscoba, I'm familiar with mencoder, but never played with it. edl files look interesting though
[22:11] <Fjorgynn> if you want to edit mp4-files you can use like kdenlive or OpenShot
[22:11] <Fjorgynn> on linux
[22:12] <Mr_Ewscoba> both sucks at cutting video parts out without artifacts Fjorgynn :)
[22:12] <akovia> openshot and piviti both i've had bad luck with. they seem like dead projects. I'm assuming kdenlive requires all the KDE libraries to be installed which isn't an option =/
[22:13] <akovia> unfortunately, video editing in linux could use some more love
[22:14] <akovia> Mr_Ewscoba, are you on windows?
[22:14] <akovia> have you tried playing that video i linked?
[22:15] <Mr_Ewscoba> Yes I am one of those that use windows on my main desktop and linux on everything else in the house :D
[22:15] <akovia> hehe
[22:15] <akovia> it took me a couple years to cut the strings but I'm glad I did
[22:17] <Mr_Ewscoba> Hehe i can see the video fine open's up in vlc, not that i get anything out of it, never played with such video editing only cutting and reencoding :D
[22:19] <akovia> i recommended those that couldn't play my videos to try VLC or MPC-HC, and most say they can watch them after that. Just curious why it can't be played without those.
[22:22] <Mr_Ewscoba> Input #0, matroska,webm, from 'Toke2.mkv':
[22:22] <Mr_Ewscoba> Metadata:
[22:22] <Mr_Ewscoba> ENCODER : Lavf53.21.1
[22:22] <Mr_Ewscoba> Duration: 00:05:19.06, start: 0.000000, bitrate: N/A
[22:22] <akovia> what would be a good command to re-encode to mp4 without taking forever but decent quality.
[22:22] <Mr_Ewscoba> Stream #0.0: Video: h264 (High 4:4:4 Predictive), yuv420p, 1680x1026, PAR 1:1 DAR 280:171, 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
[22:22] <Mr_Ewscoba> No faults with that video, seems to work fine on anything based on ffmpeg/libav
[22:23] <akovia> hmmm
[22:24] <akovia> maybe i'm just getting people that don't play back many videos complaining then
[22:24] <akovia> just thought it was curious to have such a big time discrepancy in avidemux.
[22:25] <akovia> might not be the problem at all then
[22:25] <akovia> that still screws up my editing flow though =/
[22:26] <akovia> it's like avidemux is basing the time on total frames of the clip to determine the time
[22:26] <akovia> so when my framerate drops below 30, it cuts the time
[22:31] <t4nk574> hi @ll
[22:32] <t4nk574> Hope you are fine
[22:32] <t4nk574> I understand it that this is THE way to go to, when it comes to ffmpeg settings
[22:33] <t4nk574> I have been trying to hardcode external .srt files into a mp4 container for hours, but to no avail.
[22:33] <t4nk574> After reading the documentary and the man ffmpeg, it pains me to say that I still do not understand why the srt are not included in the output mp4 file
[22:34] <t4nk574> and thought maybe I could find some help from an experience encoder here?
[22:35] <t4nk574> running ffmpeg 2.0
[22:35] <t4nk574> does somebody know something?
[22:38] <Mr_Ewscoba> tryin to mux srt with mp4, or hardcode it onto the vide
[22:38] <Mr_Ewscoba> video*
[22:38] <Mr_Ewscoba> ?
[22:38] <Mr_Ewscoba> akovia variable frame rate ?
[22:40] <akovia> ffmpeg -f x11grab -s $SIZE -r $RATE -i :0.0 -vcodec $VCODEC -preset $PRESET -crf 0 -threads 0 -y "$OUTPUT"/"$input".mkv
[22:40] <akovia> rate at 30
[22:40] <akovia> so i guess not
[22:40] <t4nk574> mr_ewscoba to hardcode it into mp4
[22:41] <Mr_Ewscoba> convert it to ass and then, -vf aas=file.ass
[22:42] <saste_> Mr_Ewscoba, simpler -vf subtitles=file.any
[22:42] <akovia> if i re-encode to mp4 and open in avidemux the time is correct, but it crashes avidemux if I cancel safe mode
[22:43] <akovia> "H.264 detected
[22:43] <akovia> If the file is using B-frames as reference it can lead to a crash or stuttering.
[22:43] <akovia> Avidemux can use another mode which is safe but YOU WILL LOSE FRAME ACCURACY.
[22:43] <akovia> Do you want to use that mode?"
[22:43] <Mr_Ewscoba> Sure, do you know how to use an internal track like if input is from a dvb adapter and stream has text based dvb subs saste_ ? :D
[22:45] <JEEB> akovia, yes avidemux sucks balls handling b-frames even in containers where it's completely OK
[22:45] <JEEB> that warning literally should be limited to AVI
[22:45] <JEEB> anyways, that just shows how much of a trainwreck avidemux is ^^;
[22:45] <Mr_Ewscoba> avidemux sucks balls at almost everything, stupid useless bug filled app :p
[22:45] <akovia> lol, wish there were better options
[22:46] <akovia> i use mmg for most editing, but just use avidemux for cut points
[22:46] <JEEB> I generally use aegisub for the cut points
[22:46] <JEEB> uses ffms2 for video loading
[22:46] <klaxa> aegisub performes unexpectedly well on my computer
[22:47] <akovia> never thought of that
[22:47] <akovia> i have that installed
[22:47] <akovia> hmmm, thought i did
[22:47] <Mr_Ewscoba> ffmpeg -i inputfile.mkv -vcodec copy -acodec copy -f mpegts out.ts
[22:48] <Mr_Ewscoba> you will have much more luck cutting in such ts file, than a mkv container
[22:48] <JEEB> actually I wouldn't be that sure of it, since the tools for cutting on random access points in matroska are actually pretty usable :)
[22:48] <Mr_Ewscoba> There are tons of programs made for that since thats what you get from a satelite cable tv etc feed
[22:50] <akovia> well if i use my smplayer to just look for cut points where i want them in the timeline and then try using mmg to cut at those points i get really random results. If i use avidemux to search to keyframes and make my cuts there, i seem to get really good results
[22:50] <Mr_Ewscoba> Well you can be sure of that, transport streams are most cutting friendly, VideoRedo for example first got mkv support after tvheadend came arround and in its first manny versions only could dvr mkv
[22:51] <Plorkyeran> transport streams are no more cutting friendly than matroska, but what is in them often is
[22:51] <Plorkyeran> TV broadcasts don't have the 10+ second GOPs that you often see in internet-distributed videos
[22:52] <Plorkyeran> it'd kinda suck to have it take up to ten seconds for things to look right after changing channels
[22:52] <t4nk574> Mr_Ewscoba , when I add that parameter it says Output file #0 does not contain any stream
[22:52] <Mr_Ewscoba> A proper program like videoredo can do cutting on non gop boundary also.... it will just reencode that little part ;)
[22:53] <akovia> i thought i had Aegisub installed and I did. Is there anything special you do to pick out cut cut points JEEB?
[22:54] <t4nk574> im trying to convert .avi + .srt / .ass -> mp4
[22:54] <t4nk574> but it always says Output file #0 does not contain any stream
[22:57] <JEEBsv> akovia: the time/framenum thing goes light blue with "random access points"
[22:57] <JEEBsv> and they are visible on the timeline
[22:58] <Mr_Ewscoba> t4nk574 can you put the complete command and output on paste ?
[22:58] <t4nk574> on pastebin?
[22:58] <Mr_Ewscoba> yup
[23:00] <akovia> JEEBsv, I'm not seeing that on ver 3.0.1
[23:01] <JEEBsv> after loading a video file?
[23:01] <JEEBsv> anyways, 3.x when I last tried still was doing that
[23:02] <t4nk574> Mr_Ewscoba http://pastebin.com/PXJry2MY
[23:02] <akovia> yeah, loaded that same video, tried sliding the seek video slider and also just let it play but the time/frame never highlights
[23:03] <akovia> oh well, was worth a try
[23:08] <t4nk574> Mr_Ewscoba have you seen it?
[23:18] <t4nk574> hmm
[23:18] <t4nk574> feels so unlucky
[23:19] <t4nk574> why is it so difficult to hardcode subs with ffmpeg :(
[23:20] <klaxa> but it's not
[23:20] <klaxa> or is it?
[23:20] <klaxa> -vf ass=subtitles
[23:23] <t4nk574> doesnt work for me :(
[23:23] <t4nk574> see the pastebin log i posted 23:02
[23:23] <Mr_Ewscoba> back
[23:27] <klaxa> t4nk574, you didn't even compile ffmpeg with --enable-libass
[23:29] <akovia> Just wanted to say thanks to all who helped. I'll try some of the suggestions and hopefully get a workflow going that works. Cheers!
[23:30] <t4nk574> klaxa im doing now
[23:33] <t4nk574> klaxa Output file #0 does not contain any stream
[23:33] <t4nk574> that's what i still get ^^
[23:33] <klaxa> haha
[23:33] <t4nk574> compiling ffmpeg with libass didnt seem to help
[23:34] <klaxa> well try addming -map 0
[23:34] <klaxa> i doubt it'll work, but it's worth a shot
[23:34] <t4nk574> does it matter where exactly?
[23:34] <t4nk574> well i dont exaclty understand how map works
[23:34] <klaxa> i think so, i'm not sure though, put it after the input
[23:34] <t4nk574> ok
[23:35] <klaxa> -map is pretty straightforward (and useful) once you understand the syntax
[23:36] <t4nk574> klaxa http://pastebin.com/yytw0es3
[23:36] <t4nk574> welcome back Mr _Ewscoba
[23:36] <klaxa> haha
[23:36] <klaxa> >Output #0, ass, to 'ass=Man.Called.God.E01.450p.HAN.dramayou.com.ass':
[23:36] <klaxa> that's uh... the problem
[23:36] <t4nk574> oh i see
[23:36] <t4nk574> so it thinks that im trying to output as as ass
[23:37] <klaxa> ffmpeg wants to put stuff in the .ass container but only text goes into .ass so everything else is unmapped
[23:37] <t4nk574> but you guys told me to wrap it as ass
[23:37] <klaxa> so nothing is left
[23:37] <klaxa> can you post the command line again?
[23:37] <klaxa> oh
[23:37] <klaxa> wait
[23:37] <klaxa> >ffmpeg -i "$f" ass="${f%.*}".ass
[23:37] <klaxa> make it: ffmpeg -i "$f" -vf ass="${f%.*}".ass
[23:39] <t4nk574> at least its encoding now
[23:39] <t4nk574> let see if there are subs
[23:39] <t4nk574> i thought -vf was depreciated for -filter_complex
[23:41] <klaxa> huh? maybe so...
[23:43] <t4nk574> hm, ok so it works for the test file
[23:43] <t4nk574> lets see if it works for the complete encoding line
[23:43] <klaxa> hardsubbing for hardware compatibility?
[23:48] <holgersson> Hi all
[23:50] <Mr_Ewscoba> t4nk574
[23:50] <Mr_Ewscoba> Output #0, ass, to 'ass=Man.Called.God.E01.450p.HAN.dramayou.com.ass':
[23:50] <klaxa> Mr_Ewscoba: we resolved that issue ;)
[23:51] <holgersson> I want to downmix a soundstream and read several old posts at different places, that ffmpeg doesn't downmix. Instead, it was 'accused' to use just 2 channels and drop the rest.
[23:51] <Mr_Ewscoba> kk Looks like somehow ffmpeg thinks it need to output aas not mp4 ^^
[23:51] <holgersson> Is this right? Were it right?
[23:51] <klaxa> doesn't libavfilter have a mix audio filter?
[23:52] <klaxa> http://ffmpeg.org/ffmpeg-filters.html#amix
[23:52] <t4nk574> yes, klaxa pointed that out
[23:53] <t4nk574> i fixed that part
[23:53] <t4nk574> now it s a bit more complicated as i try to put it all into the encoding command line
[00:00] --- Mon Jul 22 2013


More information about the Ffmpeg-devel-irc mailing list