[Ffmpeg-devel-irc] ffmpeg.log.20140903
burek
burek021 at gmail.com
Thu Sep 4 02:05:01 CEST 2014
[00:00] <SuperIRis> I'm a ffmpeg total noob
[00:01] <SuperIRis> I'm going to develop an app that does video motion tracking
[00:01] <SuperIRis> To track some images on top of a video, then generate the video file
[00:01] <SuperIRis> Is ffmpeg the right tool for this??
[00:03] <juancho> llogan: "strings input.mp4 | grep x264" ==> 264>v
[00:34] <llogan> juancho: i guess the info i expected is not there
[06:46] <Wader8> hello
[06:50] <Wader8> trying to concat vobs, rescale so i get rid of non-square pixels, detelecine and re-encode 5.1 audio to another codec that's more friendly with sony vegas (AC3 is so buggy, not only plain doesn't work, 2 channels simply don't play even when it's in a proper container)
[06:50] <Wader8> oh .. all in one commandline
[06:51] <Wader8> i don't like having 3 intermediaries in between, what im doing are intermediaries, i will use this big file to extract scenes i like with -ss -to commands later with separate ffmpeg batch files i already have setup
[06:52] <Wader8> the container can still be mpegts, as long as the audio works correct in vegas
[06:52] <Wader8> thread:forum http://forum.videohelp.com/threads/366893-FFMPEG-deinterlace-convert-to-square-pixel-real-frame-rate?p=2343799
[07:13] <t4nk853> Hello, I'm trying to input a video and segment it. I have been able to do su successfully. However, I would like to change it into raw video and segment it. However, by using -f rawvideo and -f segment the latter in the command line trumps. How can I accomplish changing into raw video and segmenting at the same time?
[09:04] <vklimkov> hi. can someone clarify what is avi index and where it file? i'm unable to get duration of file that is loading.
[09:11] <K4T> hello
[09:11] <K4T> is it possible to choose network card for output in ffmpeg?
[09:13] <anshul_mahe> you could keep the ip address diffrent of both network card, and stream out at one ip, dont broadcast to all ip address that assigned to your computer
[09:14] <anshul_mahe> K4T, yes It is possible in number of ways.
[09:14] <K4T> My output is multicast address
[09:15] <K4T> I have 2 cards in my server
[09:15] <K4T> And I am not sure which one is getting output from ffmpeg with following command: ... -f mpegts udp://239.239.x.x:2000
[09:18] <anshul_mahe> I dont know lot about multicast, but can you tell what does ifconfig show on your server
[09:19] <K4T> ok, nevermind, I found solution, thank you
[11:24] <luc4> Hello! Anybody who knows whether an up to date ppa for ubuntu of ffmpeg exists?
[11:29] <Diogo> hi i need a accurate cut of a video file (avi, mp4)...because i will need to join that parts files in a future...the option of ffmpeg -ss -t before and after -i is not very accurate in cut part of video.. this is possible extract some information using ffprobe to have a accurate cut?
[13:48] <wodim> hello, how can i restrict the memory usage of ffmpeg?
[13:48] <wodim> (it's getting killed)
[13:53] <wodim> lol
[13:53] <wodim> OOM killed irc
[13:53] <wodim> :(
[14:31] <Kirito> I'm trying to run ffmpeg through a directory full of files, re-encoding the video stream and copying everything else. However, ffmpeg doesn't seem to be copying the input files fonts over. Is there any way I can fix this? --- http://pastebin.com/76jwC4sG
[14:31] <Kirito> (The attached fonts for the subtitles, that is)
[14:40] <c_14> -map 0
[14:43] <Kirito> Ah, awesome, thank you
[14:46] <ubitux> wodim: memleak?
[14:47] <wodim> i don't think so
[14:47] <ubitux> ulimit should help you anyway
[14:47] <wodim> then the codec crashes when mallocing
[14:47] <wodim> i guess i just can't do it
[15:03] <iive> wodim: what codec?
[15:03] <wodim> h264
[15:04] <iive> libx264 is standalone library, there are some tables about how much memory does it use with given options...
[15:22] <ac_slater_> hey all. I have an mpegts container that has a stream that ffmpeg cannot parse (yet, since I'm writing some plugins)... what's a good way to just strip the program stream out of an mpegts container?
[15:23] <ac_slater_> ie - 0:Video 1:Unknown to FFMPEG
[15:41] <wodim> iive: i'm recoding something in 2160p
[15:41] <wodim> iive: i guess it's a bit over the line given how much memory i have
[15:41] <wodim> (not a lot)
[15:42] <iive> wodim: well, just 4 times the memory for 1080p
[15:42] <wodim> ;)
[15:47] <iive> i think that mbtree uses most memory, then you might want to limit the reference frames... probably the look-ahead too.
[15:47] <iive> i can't find that explanation about memory and options.
[15:49] <wodim> i have over 1.5G of free RAM
[15:49] <wodim> but it's just not enough.
[15:49] <wodim> i'll just recode it somewhere else
[16:53] <Wader8> why is libfdk_aac included in the documentation when it doesn't exist in ffmpeg ?
[16:53] <klaxa|work> because it is an external library you can use in ffmpeg if you enabled it at compile-time
[16:53] <relaxed> because it's the best aas encoder, but it's nonfree
[16:53] <Wader8> why is FFMPEG documentation old, obsolete, and mostly quite poor ...
[16:53] <relaxed> aac*
[16:54] <Wader8> what's the point of zeranoe ffmpeg then
[16:54] <Wader8> what's the point if not all the stuff is included
[16:55] <Wader8> oh non-free
[16:55] <relaxed> you can't ship binaries with nonfree libs because it violates the GPL
[16:55] <Wader8> interesting
[16:55] <Wader8> I just need to convert 5.1 AC3 to something more modern tha sony vegas works well with
[16:56] <Wader8> vorbis doesn't seem to work with mpegts
[16:56] <relaxed> then look for a lossless codec that works with vegas
[16:56] <Wader8> but hey, i used mpegts mux just because AC3 didn't work in vegas, so i guess i can use some other mux now
[16:57] <relaxed> How can vegas not support AC3?
[16:57] <Wader8> i have a mpeg2video so id like to keep it in mpegts or ps . flac works with vegas, not sure if it can be inside a mpegts
[16:58] <Wader8> AC3 is only supported in a DVD-like container
[16:58] <Wader8> and when i mux VOBs to MPG (with concat) it doesn't play all the 5.1 channels well, front 2 are not played at all
[16:58] <relaxed> ffmpeg -i input -c copy -f dvd output.mpg
[16:59] <Wader8> well all of the clips i have until now are from VOB2MPG that uses a ffmpeg version from 2007
[17:00] <Wader8> im doing ony my own VOB concat and remux with a custom ffmpeg script
[17:00] <Wader8> http://forum.videohelp.com/threads/366893-FFMPEG-deinterlace-convert-to-square-pixel-real-frame-rate?p=2343903
[17:01] <Wader8> well loading the whole VIDEO_TS into the vegas makes it all chopped up to chapters, so that's why i use one big file, and then from the big file to extract clips i need
[17:01] <Wader8> one big non-dvd file i guess
[17:02] <relaxed> I'm so glad I'll never have to deal with dvd content again.
[17:02] <Wader8> by the way, im rescaling and getting rid of interlace as well
[17:36] <Olivius67> Hello
[17:36] <Olivius67> I'm using the following cmd to split a streamable mp4 into 60seconds parts: ffmpeg.exe -i in.mp4 -codec copy -f segment -segment_time 60 -reset_timestamps 1 out%02d.mp4
[17:36] <Olivius67> The problem is that the resulting parts require a lot of buffering (around 6 MB) before they start playing with jwplayer. By Googling around I have found a fix to this by passing the following cmd to each part: MP4Box.exe -inter 500 outxx.mp4.
[17:36] <Olivius67> The resulting parts stream smoothly after a very short buffering (around 500KB).
[17:37] <Olivius67> Now, is there a way I could integrate directly this 'fix' in the initial ffmpeg cmd I use to split and thus avoid the extra mp4box step?
[17:49] <relaxed> Olivius67: add -movflags faststart after the input
[17:50] <Olivius67> I have tried: ffmpeg.exe -i in.mp4 -codec copy -f segment -segment_time 60 -reset_timestamps 1 -movflags faststart out%02d.mp4
[17:51] <Olivius67> with same results: with mp4box step, buffering takes a while
[17:51] <Olivius67> *without mp4box...
[17:53] <Case> Zeranoe: does ffmpeg building work for you without trouble since http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=36952786a5cca8784f582a071c0d73ab1e3252a1 ?
[17:54] <relaxed> Olivius67: hmm, maybe it doesn't work well with -f segment. Which version are you using?
[18:04] <Olivius67> relaxed: http://pastebin.com/v7bZfA2b
[18:14] <relaxed> looks recent
[18:15] <relaxed> ubitux: do you know if -movflags faststart works well with -f segment?
[18:15] <ubitux> relaxed: no i don't know
[18:15] <JEEB> I would guess that segment is its own muxer, and just separately calls another muxer within itself
[18:16] <JEEB> so any option you pass to segment won't get passed to what segment calls
[18:16] <relaxed> Olivius67: then it looks like you'll need a second pass on the segments
[18:17] <Olivius67> relaxed: alright, fair enough, thx relaxed :-)
[18:17] <relaxed> Olivius67: open a feature request on the bug tracker
[18:19] <Olivius67> relaxed: prob is that I have no idea about the "magic" operated by this mp4box cmd
[18:21] <relaxed> it moves the moov atom (index) to be beginning of the file
[18:21] <Olivius67> so basicaly that's what -movflags faststart should do, but doesn't?
[18:22] <relaxed> correct, and it works normally when using -f mp4
[18:23] <Olivius67> so feature request should be: make -movflags faststart work with -f segment ?
[18:25] <JEEB> more generically I guess a feature request for passing options to the called muxer
[18:26] <JEEB> although tbqh I have no idea how you'd pass -movflags since IIRC that is specific to the "mov" muxer group?
[18:29] <relaxed> I'm surprised this is the first I've heard of this issue.
[18:29] <JEEB> well, not that you often pass options to the muxer
[18:31] <saste> relaxed, i think it does
[18:31] <relaxed> does what? a faststart pass on the segments?
[18:32] <luc4> Anyone who knows if there is any ubuntu repo that keeps updated versions of ffmpeg?
[18:33] <relaxed> luc4: http://johnvansickle.com/ffmpeg/
[18:33] <saste> relaxed, now that I think at it, i'm not sure you can pass muxer options through segment
[18:33] <saste> we have -segment_format, but not -segment_format_options
[18:33] <saste> that could be probably implemented though
[18:34] <saste> file a ticket, or even better, pay me for that :-)
[18:34] <luc4> relaxed: thanks, tried that but not a ubuntu repo and it doesnt include ffplay if Im not mistaken.
[18:34] <relaxed> Olivius67: ^^
[18:36] <Olivius67> relaxed: I see, I see ;-)
[18:36] <relaxed> luc4: yeah, there's no ffplay but the builds are distro agnostic
[18:37] <Olivius67> saste: you accept btc? ;-)
[18:37] <luc4> relaxed: yes, I was interested because a repo would keep my libs and binaries up to date. Ill think of creating one myself& :-)
[18:37] <saste> Olivius67, I never used them, but I can start, although i prefer other form of payments
[18:40] <relaxed> luc4: I always advise against adding unofficial repos because the newer libs can cause other software problems. To each their own.
[18:41] <relaxed> luc4: Your best bet would be to compile a recent version to a non-standard location, so it doesn't conflict with anything.
[18:42] <luc4> relaxed: exactly, but Im tired of having to rebuild any time Im on a new machine :-)
[18:42] <luc4> relaxed: I want ffmpeg everywhere I go :-)
[18:42] <luc4> relaxed: thanks anyway
[19:09] <Wader8> hello
[19:09] <Wader8> what are these weird errors
[19:09] <Wader8> [mpeg2video @ 04f8c780] ac-tex damaged at 8 17=00:44:05.37 bitrate=7865.2kbits/s [mpeg2video @ 04f8c780] Warning MVs not available [mpeg2video @ 04f8c780] concealing 585 DC, 585 AC, 585 MV errors in P frame [ac3 @ 02831760] incomplete frame
[19:12] <Wader8> Help http://pastebin.com/Q9VRC1Jz
[19:19] <klaxa> i don't think you know what you are doing
[19:32] <Wader8> what is this problem [mpeg4 @ 04f78a20] Invalid pixel aspect ratio 1280/1281, limit is 255/255 reducing ?
[19:33] <jnvsor> Basically the difference between 1280 and 1281 is so small ffmpeg can't tell the difference when scaling it down
[20:07] <Wader8> hello
[20:07] <Wader8> concat isn't working right for me
[20:07] <Wader8> says invalid data found in input
[20:08] <Wader8> do i have to use -f concat always , -f concat -i "concat:xyz|abc|" didn't work
[20:14] <Wader8> it gives a different error if i set -f concat after -i
[20:16] <Synthead> What is the last version of ffmpeg that builds libavutil.so.50?
[20:16] <Wader8> ffmpeg -i "concat:VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB|VTS_01_5.VOB" -map 0:1 -map 0:2 -c copy -threads 8 -y -f concat VTS_01.mpg
[20:17] <Wader8> input data invalid stream was when i used -f concat before -i
[20:19] <Wader8> okay i got it working now
[20:19] <Wader8> but another error
[20:21] <Wader8> here it is http://pastebin.com/84VY2M76
[20:25] <sacarasc> Wader8: I see a warning but no error...
[20:25] <sacarasc> Is the file broken?
[20:26] <Wader8> no it's fine, audio sync seems fine, but it will be used for sony vegas, im making a repository of clips ... so all these outputs are intermediary, not final
[20:26] <Wader8> here is a thread about this http://forum.videohelp.com/threads/366893-FFMPEG-deinterlace-convert-to-square-pixel-real-frame-rate?p=2343950
[20:27] <Wader8> sony vegas 12 has problems with AC3 so im trying to convert that to something else, ffmpeg doesn't have good AAC support for 5.1 sorround
[20:27] <Wader8> and im also trying to deinterlace and conver to square pixels, detelecine as well
[20:28] <sacarasc> You don't want to use a lossy format if you're going to encode again, anyway...
[20:28] <Wader8> just don't have a lot of options, VORBIS audio didn't seem to work with MPEGTS
[20:28] <Wader8> well quality is not that important in this case ... it won't be upscaled much, 720p probably
[20:29] <Wader8> the final output will be in sony vegas with settings I don't know yet
[20:30] <Wader8> but for the repository of clips, i'd like to have them detelecined, deinterlaced (actual frame rate) and square pixels
[20:30] <Wader8> as well as some other audio codec
[20:30] <Wader8> im doing one DVD at a time, on a SSD, i have enough space, but lagarith is just too big imo for 4 GBs into lags
[20:31] <sacarasc> If a video editor only takes lossy audio, it must be bad.
[20:32] <llogan> Synthead: version or git hash?
[20:32] <llogan> and my version, I meant "release"
[20:32] <Synthead> llogan, I could probably use either :)
[20:32] <llogan> and by my I meant by
[20:33] <Wader8> well Sony Vegas 12 pro takes AC-3 if it's in a DVD container, and it sort of works with MPEGTS, but there is a bug, Vegas doesn't playback FRONT channels when I import the files as 5.1 mode
[20:33] <llogan> Synthead: look at "git log libavutil/avutil.h" and APIchanges
[20:34] <llogan> looks like the bump occurred at http://git.videolan.org/?p=ffmpeg.git;a=commit;h=139f3ac42dcf24eb8c59af4aaab4e9afdccbc996
[20:34] <Synthead> llogan, a-ha, thanks!
[20:34] <llogan> ancient
[20:35] <Synthead> llogan, agreed... trying to make some precompiled binaries work. (Why don't they statically-link these things?!)
[21:01] <mistawright> hi guys I need to know if there is a way i can have add transitions to a video i am making from images using ffmpeg. I need each image to fade, blend, or dissolve into the next smoothly. Currently it just goes to the next image and doesnt look good
[21:01] <mistawright> i have not found a solution for making transitions using ffmpeg
[21:12] <llogan> you could make a movie per input with a fade in and fade out applied to each
[21:12] <llogan> so each image becomes its own video
[21:12] <llogan> whcih you then concat
[21:13] <llogan> lame, but i can't think of any other less lame methods
[21:13] <mistawright> sounds like there would be fade to black between each image would there not?
[21:13] <llogan> yes. you mentioned "fade, blend, or dissolve" so i chose the easiest
[21:14] <mistawright> what about dissolve as that sounds it would be more like what i am trying to accomplish
[21:16] <llogan> that would be done with blend filter, but the implementation could be annoying unless you don't have many images
[21:27] <rawrmonster> Does anyone know a good mp4 to ntsc dvd tool or someone who could help me with a script. I basically work with mp4 mostly from my gopro and want to convert them to ntsc dvd to be watched on my dvd player. I have tried programs like devede but they are not very good at using all my cpu while converting. Is it just this type of conversion is not good with multi core or is this program just not optimized very well?
[21:28] <rawrmonster> Because It only shows me to be using about 30% of my total cpu
[21:29] <c_14> ffmpeg -i mp4 -target ntsc-dvd out.mpg
[21:29] <rawrmonster> c_14: will that use all 8 cores?
[21:29] <c_14> hmm, you can try adding -threads 8. I'm not sure of the mpeg encoder is multithreaded.
[21:30] <rawrmonster> c_14: that would explain alot if it is not
[21:31] <llogan> ffmpeg -h encoder=mpeg2video
[21:31] <llogan> should show any threading capabilities
[21:32] <rawrmonster> Threading capabilities: Slice
[21:32] <rawrmonster> What does that mean?
[21:36] <JEEB> it can be threaded in slices
[21:37] <JEEB> basically slicing a single picture into parts
[21:37] <rawrmonster> Ahh ok
[21:37] <JEEB> as opposed to picture based threading where multiple pictures are done at the same time
[21:39] <anshul_mahe> i wanted to scale video ih/2 and then split them and show them simontaneously bottom and up
[21:39] <llogan> anshul_mahe: you have two inputs?
[21:40] <anshul_mahe> I am using split filter with one input
[21:41] <anshul_mahe> I am using following command http://pastebin.com/edhNn6PL
[21:43] <llogan> maybe an image mockup showing what you want to achieve will make it easier for me to understand what you want to do
[21:49] <anshul_mahe> here is output i am getting http://s13.postimg.org/8lgs13qon/out28.jpg with overlay=0:H/2
[21:53] <anshul_mahe> this is my original image http://s29.postimg.org/e7i7lxfpz/out27.jpg
[21:53] <anshul_mahe> I want my output height to be same as input image
[21:53] <anshul_mahe> but output height is devided by 2
[22:01] <anshul_mahe> I found sollution using pad filter with following command http://pastebin.com/uLEzNfeE
[22:02] <anshul_mahe> but dont know whether it is more optimizable or not
[22:03] <llogan> that command doesn't have pad
[22:04] <llogan> oh, i missed it
[22:07] <anshul_mahe> so is that more optimizable
[22:08] <llogan> you could cut out the second unnecessary pad: -filter_complex "[0:v]scale=iw:ih/2,split[dup1][dup2];[dup1]pad=iw:ih*2[bg];[bg][dup2]overlay=0:h"
[22:09] <llogan> nevermind, i misread it again...
[22:09] <llogan> your command is fine
[22:10] <anshul_mahe> I also wanted to ask whether our libavfilter library is thread safe
[22:11] <anshul_mahe> I wanted to do those things with clicks
[22:12] <anshul_mahe> just now I regenrate all the filter graph when something change with big lock at whole place
[22:18] <anshul_mahe> Thanks logan, for looking in my problem
[22:22] <llogan> i didn't do anything useful
[23:42] <Wader8> hello
[23:43] <Wader8> what is ac-tex damaged ?
[23:43] <Wader8> MVs not available
[00:00] --- Thu Sep 4 2014
More information about the Ffmpeg-devel-irc
mailing list