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

burek burek021 at gmail.com
Thu Jul 17 02:05:01 CEST 2014


[00:02] <Dark-knight> I re-muxed a .mkv video with a subtitle stream that automatically played by default. when i remuxed it to .mp4 the subtitle stream no longer automatically played. i had to select it.
[00:02] <Dark-knight> how do i fix this?
[00:05] <sobaah> I've actually been doing some of this stuff myself Dark-knight, the issue I see is that
[00:05] <sobaah> ffmpeg seems to lose the language ID for the audio or sub track
[00:05] <sobaah> try adding it in by remuxing with this option:
[00:05] <sobaah> -metadata:s:2 -language=eng
[00:05] <sobaah> The "s" is the stream index
[00:05] <sobaah> I'm guessing it's 2
[00:05] <sobaah> 0=video, 1=audio, 2=sub, but check for sure
[00:06] <Dark-knight> alright
[00:06] <Dark-knight> whats the "-language=eng" for?
[00:06] <sobaah> oops
[00:06] <sobaah> sorry just language=eng
[00:06] <sobaah> no dash
[00:06] <sobaah> that is the actual tag you are adding to the stream
[00:07] <sobaah> the -metadata:s:2 just means apply something to this stream
[00:07] <Dark-knight> can you explain to me what those commands do. I would like to understand why things work.
[00:07] <sobaah> sure
[00:07] <sobaah> -metadata:s:n tag=value
[00:07] <Dark-knight> i trying to learn, not just copy paste
[00:07] <sobaah> so the "n" is the stream number which ffmpeg will show you if you do "ffmpeg -i file"
[00:08] <sobaah> yep, I hear ya
[00:08] <sobaah> the tag=value is the actual data that will be added to the stream
[00:08] <sobaah> there are many tags you can add, "language" is one of them
[00:08] <Dark-knight> ok im thing im getting it
[00:09] <sobaah> once you add that language tag, your video player should show you that the language ID is set to "English"
[00:09] <sobaah> but you can put whatever ISO language code in there
[00:09] <sobaah> jpn, spa... et cetera
[00:09] <Dark-knight> how does that make the subtitles play by default?
[00:10] <sobaah> well, I believe that in some players the preferred language will choose the subs
[00:10] <sobaah> but I could be wrong
[00:11] <sobaah> so because you lost any language ID in the file, the player didnt choose anything
[00:11] <Dark-knight> when i view the file in mediainfo it shows the 3 different substreams i have and the 1st one has "default: Yes" next to it
[00:11] <sobaah> I see
[00:12] <sobaah> so maybe that's a tag
[00:12] <Dark-knight> itsn't it as simple as flipping a swich?
[00:12] <Dark-knight> i assume all i have to do it tell the container which stream to play by default
[00:13] <Dark-knight> is*
[00:13] <sobaah> try this
[00:13] <sobaah> -metadata:s:2 default-flag=1
[00:13] <sobaah> make sure Stream2 is your subs though
[00:14] <Dark-knight> well whatever number the subs are anyway
[00:14] <sobaah> yep
[00:14] <Dark-knight> what does the "default-flag=1" do?
[00:14] <sobaah> 1 generally means "True" in programming
[00:14] <sobaah> 0 means "False"
[00:15] <sobaah> or perhaps try Yes instead of 1
[00:29] <sobaah> hi all, I am having a bit of an issue with a large MKV file (9GB), where I am using the "-attach FONTFILE.ttf" option. The issue is that  ffmpeg seems to write the entire file to memory first but I don't have the 9GB it would need.  Is there any way around this?
[00:29] <sobaah> this seems to happen also if you try to add an image file to the file as well
[00:55] <Dark-knight> added to my notes
[00:55] <Dark-knight> thanks
[00:55] <sobaah> it worked?
[00:56] <Dark-knight> no but i will try it later
[00:56] <sobaah> ahh
[00:56] <Dark-knight> i havent done it yet
[00:56] <sobaah> yah, I read some more into it and there seems to be some confusion with how the default flag works
[00:56] <Dark-knight> i was going to after dinner
[00:56] <Dark-knight> ok
[00:56] <Dark-knight> care to share?
[00:56] <sobaah> I couldnt find a clear answer on how to set a default sub or audio stream on a file...no idea why
[00:56] <Dark-knight> wow thanks alot google
[00:56] <sobaah> haha
[00:57] <Dark-knight> lol
[00:57] <sobaah> apparently the metadata option may not work
[00:57] <Dark-knight> really?
[00:57] <sobaah> it seems there is another way that the stream is set as default
[00:57] <Dark-knight> does ffmpeg even have an option to set a default stream?
[00:58] <sobaah> I looked for about 10 minutes with various searches and found a lot of info of issues with how to set a stream to non-default
[00:58] <sobaah> ...
[00:58] <Dark-knight> if not, why? and how come nobody else has thought of adding an option to do that?
[00:58] <sobaah> but nothing about setting it to default
[00:58] <Dark-knight> haha
[00:58] <Dark-knight> that figures
[00:59] <sobaah> someone had an issue where they had multiple subs and ffmpeg set the original sub that had the default flag as non-default
[00:59] <sobaah> and all the other subs got the default flag
[00:59] <sobaah> strange =)
[00:59] <sobaah> hope you ge tit
[00:59] <sobaah> get it*
[01:02] <sobaah> well I cant find a soltuon to my own issue
[01:02] <sobaah> solution
[01:04] <Dark-knight> clear up some memory or defrag your harddrive
[01:06] <Dark-knight> how do i highlight certain lines in pastebin?
[01:07] <c_14> I'm not sure that works, why?
[01:08] <Dark-knight> ive seen people make specific lines a different color in PB before
[01:08] <Dark-knight> i want to highlight things
[01:13] <c_14> Maybe some part of the syntax highlighting?
[01:14] <Dark-knight> no idea
[01:34] <Dark-knight> wow
[01:34] <Dark-knight> http://pastebin.com/faq#13
[01:34] <Dark-knight> there it is
[01:35] <Dark-knight> can't believe i never saw that before
[01:35] <Dark-knight> its so obvious now'
[01:35] <Dark-knight> giant yellow pen in the top right of the text box
[01:37] <c_14> pfft, giant icons were made to be overlooked
[01:44] <Dark-knight> http://pastebin.com/XWhiZdVX
[01:45] <Dark-knight> sobaah as you see, the subtitle stream "Signs" is the default
[01:46] <Dark-knight> how do i make stream 6 the default?
[01:46] <Dark-knight> or even stram 5
[01:46] <Dark-knight> i just want to know "How".
[01:54] <c_14> Can't seem to find an option to do that with FFmpeg, but you could use something like mkvtoolnix.
[02:04] <Dark-knight> the mkv file is not the problem
[02:05] <Dark-knight> its when i re-mux it to mp4, that the sub stream no longer plays by default
[02:05] <Dark-knight> for some reason ffmpeg looses the default flag during re-muxing
[02:06] <Dark-knight> if only ffmpeg and an option to assing default streams
[02:06] <sacarasc> Try using mp4box, then.
[02:06] <Dark-knight> assign*
[02:06] <Dark-knight> i don't understand why this isn't already in ffmpeg
[02:11] <debianuser> Hello, I have two short questions. Looks simple, but I can't find an answer somewhy. First: that line "Press [q] to stop, [?] for help"... How can I disable this feature? I mean, print everything as usual, but don't read any commands. Is there some -no-console or -no-commands option for ffmpeg?
[02:14] <debianuser> Second quesion: ffmpeg is able to detect h264 profile ("Video: h264 (High)"). I guess it's stored somewhere in file header. Can it change just that information without reencoding the entire stream?
[02:17] <klaxa> as to your first question: see -loglevel
[02:17] <satanist> debianuser to the first question: you can change the stdin with your shell by add " < /dev/null"
[02:17] <klaxa> as to your second question: no
[02:23] <c_14> debianuser: the correct command for the first question is actually -nostdin
[02:25] <debianuser> klaxa: Tried '-loglevel info' but ffmpeg still reacted to console input.
[02:26] <c_14> try -nostdin
[02:26] <Engin> my best bet to encode a 3 channel wav in terms of compression/quality efficiency?
[02:29] <debianuser> satanist, c_14: About "</dev/null", nice idea, I have not thought about it. -nostdin... wow, couldn't find that. Thank you!
[02:29] <debianuser> The only disadvantage is that with any of those options it also does not ask about file overwriting, just exits. I would prefer it to still ask about overwriting, just don't expect any commands during file encoding.
[02:30] <c_14> not sure that works, but you can use -n to disable overwriting
[02:35] <Freakshow> quick ffprobe question: how can I sniff the incoming TSoIP unicast stream for channel info?
[02:37] <c_14> ffprobe -show_streams -select_streams a
[02:37] <c_14> and then check for channels/channel_layout
[02:45] <Dark-knight> official link of mp4box?
[02:47] <sacarasc> http://gpac.wp.mines-telecom.fr/ I think.
[02:48] <Dark-knight> you sure?
[02:48] <sacarasc> No, which is why I said "I think".
[02:48] <sacarasc> But the project it is from is called gpac.
[02:48] <Dark-knight> ok thanks :)
[02:59] <Freakshow> c_14: thanks, trying that now
[02:59] <Freakshow> what is the 'a' for after -select_streams?
[02:59] <c_14> audio streams
[03:11] <debianuser> Maybe there's some way to manually edit h264 profile in mp4 container? I need that just for a few tests, so I don't mind doing that in hex-editor, just can't find how to do that. http://coolsoft.altervista.org/en/h264leveleditor -- this tool kind of does that, but it's not open source.
[03:12] <sacarasc> To edit that, you'd have to reencode... The profile tells the decoder what the stream might have in the way of features.
[03:14] <debianuser> I understand that the file may become invalid if any of those features were used. It's just there was a guess, that a device in question can actually decode all the High-profile features, but its software player checks profile and refuses to start trying.
[03:15] <debianuser> To check that guess I wanted to patch "High" to "Baseline" and see what happens...
[03:15] <debianuser> But I can't find how to do that
[03:16] <Hello71> profiles don't work the way you think they do.
[03:16] <sacarasc> Dark_Shikari could probably help with this, but I don't know if he even comes to this network any more.
[03:18] <Hello71> amendment: that sounds highly unlikely.
[03:19] <debianuser> I thought "profile" is just a shortcut for settings. I.e. "baseline" == "--no-8x8dct --bframes 0 --no-cabac --cqm flat --weightp 0". At least that's how it looks from `x264 --fullhelp` output. So it's just saved in the header to help player quickly understand whether it can decode that file without actually decoding everything. Where am I wrong?
[03:22] <Hello71> see my amendment.
[04:04] <Dark-knight> is the only pre-built ffmpeg build for windows really Zeranoe's?
[04:05] <Dark-knight> how often does he update that?
[04:05] <sacarasc> Most days.
[04:05] <sacarasc> http://ffmpeg.zeranoe.com/builds/win64/static/
[04:19] <debianuser> I found it! In case someone else asks how to get a broken mp4 file by chaning video profile/level: https://stackoverflow.com/a/21121914 Using that I was able to successfully change "Main" to "Baseline" and the video even played fine in mplayer after that.
[04:27] <Dark-knight> why has he stopped coming to this chat?
[04:33] <debianuser> But hexediting a High-profile 3.0 h264(mp4) have not worked. By changing that to Baseline 3.0 I got a broken resolution: 720x406 turned into 16x160, and there were lots of decoding errors. I may understand where decoding errors came from, but have no idea why resolution have changed.
[04:33] <Hello71> you are surprised that your broken mp4 is broken?
[04:34] <Dark-knight> lol
[04:34] <debianuser> No. :) I just surprized why it was broken much more than I was breaking it.
[04:40] <Dark-knight> what code syntax in the file container determines which subtitle stream is set to default? If we can figure that out, then a reverse-engineered command line can be determined.
[04:41] <Dark-knight> thus a solution to my, or anybody elses problem can be achieved.
[07:04] <Dark-knight> anybody actually looking for that code syntax?
[07:04] <Dark-knight> maybe im using the wrong words
[07:05] <Dark-knight> code string? perhaps is a better word?
[07:19] <relaxed> Dark-knight: For the ps3 you could use the m2ts container and mark the default subtitle track with tsmuxer
[07:19] <relaxed> http://forum.doom9.org/showthread.php?t=168539
[07:20] <Dark-knight> why cant ffmpeg just do it?
[07:20] <Dark-knight> thanks though
[07:20] <Dark-knight> ill just use mp4box
[07:20] <Dark-knight> sucks that i have to dl another prgram just to get the job done
[07:34] <anshul> I am getting same pts=1668330 for all packets for subtitle stream
[07:34] <anshul> In many videos that i have pts value is same 166830
[07:35] <anshul> does 1668330 is an magic number that specify that this is not pts
[09:20] <rrouton> hello all
[09:20] <rrouton> trying irc for the first time in 12 years, can anyone see this?
[09:21] <Dark-knight> dont be startled by the silence young one. if you speak it, they will come.
[09:21] <Dark-knight> hmmmmmmmmm
[09:22] <rrouton> I haven't used this in ages since mirc back in the day =)
[09:24] <rrouton> anyone here have any experience with the C/C++ libs?  I have written a decent transcoder for my purposes and was wondering if anyone knows how the memory works under the hood, specifically the buffering of av packets when using av_interleaved_write
[09:28] <Dark-knight> sacarasc c_14 klaxa sobaah Paranoialmaniac relaxed sfan5 Can any of you help this gentleman?
[09:29] <sfan5> mass-highlighting is usually not appreciated...
[09:29] <Dark-knight> sry
[09:29] <Dark-knight> wont happen again
[09:29] <Dark-knight> 12 years is crazy
[09:30] <Dark-knight> i couldn't go more than 3
[09:32] <rrouton> to be honest it might be more than that actually
[09:33] <rrouton> ages ago when i was in the warez scene, what client is used mostly these days?  Not liking this one
[09:36] Action: sfan5 uses XChat
[09:40] <rrouton> I have to say though that this is a very unforgiving api =) fun to play with though when you can get something out of it
[09:42] <rrouton> ah i see this is more for the command line tool and less the actual libraries eh?
[10:56] <FrEaKmAn_> hi all.. I'm following tutorials at https://trac.ffmpeg.org/wiki/How%20to%20concatenate%20(join%2C%20merge)%20media%20files#protocol
[10:56] <FrEaKmAn_> but I'm always getting Unrecognized option 'c'
[10:59] <FrEaKmAn_> nevermind
[11:13] <FrEaKmAn_> hi, is there anything for stretching video or duplicating frames? I have a video with white background which is 5 seconds long.. I want to make it 10 seconds long
[11:13] <FrEaKmAn_> or 13..
[11:26] <Dark-knight> if your talking about extending the length to your video and adding a white background in the extended section by editing it? then i believe you are unaware that ffmpeg doesn't do that and are in the wrong place.
[11:27] <FrEaKmAn_> ow ok
[11:27] <Dark-knight> sry man
[11:27] <FrEaKmAn_> I could have 1 second video and just concat it to desired length
[11:28] <Dark-knight> sure
[11:28] <Dark-knight> you could keep adding a white jpg over and over
[11:29] <Dark-knight> or you could join 2 video files into one video
[11:29] <Dark-knight> http://www.ffmpeg.org/faq.html#How-can-I-join-video-files_003f
[11:31] <Dark-knight> just make a duplicate of the one video file you have and rename it, then combine them
[11:32] <Dark-knight> http://superuser.com/questions/683643/how-to-add-my-logo-for-the-first-30-seconds-in-a-video-with-ffmpeg
[11:32] <Dark-knight> this could also help
[11:33] <FrEaKmAn_> thanks
[11:41] <FrEaKmAn_> one more thing.. what format is the best if I want to do concat, trim, split and audio replacement? I'm looking for a fastest solution
[11:41] <FrEaKmAn_> mp4?
[11:43] <Dark-knight> mp4 is the least flexible container. use .mkv
[11:44] <FrEaKmAn_> ok
[11:48] <Dark-knight> what do you plan i using this video for?
[11:48] <Dark-knight> plan on*
[11:49] <FrEaKmAn_> I'm doing a very simple online video editing solution
[11:49] <Dark-knight> sorry
[11:49] <FrEaKmAn_> so user uploads multiple videos, defines start and end and hits play
[11:49] <Dark-knight> Where are you going to be playing this video file?
[11:49] <Dark-knight> what will it be played from?
[11:49] <FrEaKmAn_> at the moment, with my flash player thru wowza
[11:50] <Dark-knight> i dont think your understanding me
[11:50] <FrEaKmAn_> sorry
[11:50] <Dark-knight> What hardware are you playing this from?
[11:50] <FrEaKmAn_> simple ubuntu 12.04 machine
[11:50] <FrEaKmAn_> VPS
[11:50] <Dark-knight> ok pc
[11:50] <Dark-knight> its a pc
[11:50] <FrEaKmAn_> yes yes
[11:51] <Dark-knight> .mkv should be fine then
[11:51] <FrEaKmAn_> probably you are thinking about osx and mov?
[11:51] <sfan5> Dark-knight: the container format does not have anything to do with hardware
[11:51] <sfan5> FrEaKmAn_: if you want to be 100 percent compatible I'd advise using .mp4
[11:52] <sfan5> but as long as you know the software it will be player with supports mkv, go with mkv
[11:52] <Dark-knight> if all he is going to be using this video on, is a PC then why not use the easier container?
[11:52] <FrEaKmAn_> it's my software so...
[11:52] <FrEaKmAn_> like?
[11:53] <sfan5> Dark-knight: an iPhone is a computer too, does it support .mkv: no
[11:53] <Dark-knight> lol an iphone is not a computer
[11:53] <sfan5> it is
[11:54] <sfan5> any smartphone is a computer
[11:54] <Dark-knight> some dude came to a convention with his tablet and said "I brought my computer and for some reason i can't hook it up to this projector"
[11:54] <Dark-knight> thats because its not a computer, its a tablet
[11:54] <Dark-knight> same with phone
[11:54] <sfan5> IT IS A COMPUTER
[11:55] <FrEaKmAn_> lol
[11:55] <FrEaKmAn_> offtopic
[11:55] <sfan5> nobody said a computer needs to have VGA/HDMI connector
[11:55] <sfan5> or even an usb port
[11:55] <FrEaKmAn_> anyways, thanks for inof
[11:55] <FrEaKmAn_> info
[11:55] <sfan5> your router is a computer too
[11:56] <Dark-knight> alright alright, im just saying that an iphone or tablet can't do everything a PC can do
[11:56] <sfan5> I didn't say that
[11:56] <sfan5> but theoretically it could do the same
[11:56] <sfan5> you can install a full-features Linux system on some Tablets
[11:57] <Dark-knight> any major software that a PC runs on will use .mkv
[11:58] <Dark-knight> unless your running windows 98 then your pc will play .mkv files
[11:58] <sfan5> I don't think Windows supports .mkv out-of-the-box
[11:58] <sfan5> and what is a PC?
[11:58] <sfan5> PC = computing device with Windows installed?
[11:59] <Dark-knight> personal computer
[11:59] <sfan5> I'm talking about your definition of PC
[11:59] <sfan5> if PC = computing device
[11:59] <sfan5> then <Dark-knight> any major software that a PC runs on will use .mkv
[11:59] <sfan5> is wrong
[11:59] <Dark-knight> major software includes, OSX, Windows, linix, Ubuntu.
[12:00] <sfan5> a computing device with absolutly nothing installed won't do anything
[12:00] <sfan5> why are you listing both Ubuntu and Linux?
[12:00] <Dark-knight> you know what im trying to say and you're still giving me a hard time
[12:00] <Dark-knight> lol
[12:01] <sfan5> I just want you to know that Ubuntu is Linux
[12:01] <sfan5> (basically)
[12:01] <Dark-knight> you might get some blowback on that one from other people, but im not going to disagree with you
[12:02] <sfan5> I don't there is Ubuntu with kernels not Linux
[12:07] <Dark-knight> albeit my original comment, I was incorrectly using the word PC to refer to a computer with windows. container format DOES have something to do with the hardware.
[12:07] <Dark-knight> "[05:51]	sfan5	Dark-knight: the container format does not have anything to do with hardware"
[12:07] <Dark-knight> if he had said he was playing the video from a iphone or ps3 i would have told him that mkv doesn't work and to use mp4.
[12:07] <sfan5> that is the software
[12:08] <sfan5> if you were to run a better program on the ps3 or iPhone it would play .mkv
[12:08] <sfan5> and the codecs matter too
[12:08] <sfan5> unless something has hardware decoding
[12:08] <sfan5> it will probably not play HEVS
[12:08] <sfan5> HEVC*
[12:09] <Dark-knight> i thought it was a moot point that different hardware has different software (most of the time)
[12:10] <Dark-knight> its obvious that an iphone wouldnt play .mkv
[12:10] <sfan5> how is it obvious?
[12:10] <Dark-knight> it runs on OSX
[12:11] <sfan5> correct
[12:11] <sfan5> and how is it obvious that OSX won't play mkv?
[12:11] <Dark-knight> my old mac didnt like playing mkv videos
[12:11] <sfan5> the codec matter too
[12:11] <Dark-knight> had to dl stuff to make it work
[12:11] <sfan5> you can put many different video codecs into mkv
[12:11] <Dark-knight> i understand that
[12:12] <Dark-knight> i was assuming he was going to change the codecs to fit his platform
[12:12] <Dark-knight> my bad
[12:14] <waressearcher2> anyone ?
[12:14] <waressearcher2> how to add running clock in video ?
[12:15] <sfan5> http://einar.slaskete.net/2011/09/05/adding-time-stamp-overlay-to-video-stream-using-ffmpeg/
[12:15] <waressearcher2> I want to speed up 3 hours video into 3 minutes, sort of timelapse, and I want to add running timear at the bottom left corner, is it possible ?
[12:16] <sfan5> yes
[12:16] <waressearcher2> I want to add fast running timer
[12:16] <sfan5> that could be tricky
[12:17] <Dark-knight> just add the normal timer and then speed up the video afterwards
[12:17] <waressearcher2> Dark-knight: so its twice processing ?
[12:17] <waressearcher2> can I speed up added timer ?
[12:17] <Dark-knight> did you already speed up the video?
[12:18] <waressearcher2> wait, I can do both filters at the same time ? use "-filter:v setpts=0.02*PTS" and it will speed up timer with video ? or in resulting video timer will be normally running ?
[12:19] <Dark-knight> i'd do it one at a time
[12:19] <waressearcher2> so will it add timer first then speed up it with video or first it will speed up video and then add timer normally running ?
[12:19] <Dark-knight> sfan5?
[12:20] <sfan5> -filter:v drawtext=text='%T',setpts=0.02*PTS
[12:20] <sfan5> that probably works
[12:34] <waressearcher2> it says: No such filter: 'drawtext'
[12:35] <waressearcher2> I use ffmpeg-2.0.2, where can I get that filter or should I enable when compiling ffmpeg ?
[12:37] <john___> Hello. I got a ... weird problem with ffmpeg and hoped you guys could help me there.
[12:38] <waressearcher2> looks like I need to rebuild it with --enable-libfreetype option
[12:38] <john___> At the beginning I recorded a video with fraps, resulting in a 2.1 GB video file (Windows 7).
[12:38] <waressearcher2> john___: then ?
[12:39] <waressearcher2> can you write entire story down ?
[12:39] <john___> I am trying right now, but it's a bit confusing. :)
[12:39] <john___> OK,
[12:39] <ubitux> waressearcher2: take the opportunity to pick a more up-to-date, and --enable-fontconfig is also recommended to avoid hardcoding font paths
[12:40] <john___> Wait, I am going to reconnect if I wrote it down. Not much sense writing it right now.
[12:40] <Dark-knight> ???????
[12:40] <Dark-knight> what does that even mean?
[12:42] <anshul> john__ was in trans state
[12:42] <anshul> :D
[12:42] <Dark-knight> lol
[12:52] <Dark-knight> what is the code syntax in a mkv or mp4 container that determines which stream is the "default" stream?
[12:52] <Dark-knight> like what inside the coding of the container determines the default stream?
[12:53] <luc4> Hello! Im trying to play a variable frame rate h264 annex b stream using ffplay. I see the speed of the video is completely wrong. Is this because there is no timing information inside the stream itself?
[12:53] <Dark-knight> id like to know so i can create a command line that changes the default stream without the need to dl extra prgrams or re-mux it
[12:53] <Dark-knight> help him first though^
[12:54] <c_14> Dark-knight: http://matroska.org/technical/specs/index.html Down by Track it's called FlagDefault.
[12:55] <c_14> luc4: speed as in what you're seeing visually or the fps or what?
[12:55] <luc4> c_14: the speed of what I see.
[12:56] <c_14> What are you using to play the file and can you pastebin an ffprobe of the file?
[12:58] <luc4> c_14: Im using ffplay. Ill pastebin the output.
[13:00] <luc4> c_14: http://pastebin.com/tvYher3F
[13:04] <Dark-knight> c_14: ok now how do i remove that specification from one stream and apply it to another using ffmpeg?
[13:04] <c_14> luc4: Yeah, I'd guess it has to do with ffmpeg not being able to find any timestamps in the input file. It can't even guess a duration.
[13:05] <luc4> c_14: so should I conclude that timestamps are not contained into the h264 stream but only in the container?
[13:07] <c_14> They are usually in the container, yes.
[13:13] <c_14> Dark-knight: I don't think FFmpeg supports setting the default track(at least from what I've found reading the mailing list archives and such). The options for setting default-flags and such seem to set the tag element instead of the track element.
[13:13] <c_14> You could try them and see if it's been fixed in the meantime.
[13:15] <Dark-knight> ill contact zeranoe and ask him if he could work on that feature
[13:37] <Dark-knight> i doubt he will though
[13:37] <Dark-knight> in the meantime
[13:37] <Dark-knight> somebody else can fix thius
[13:37] <Dark-knight> this*
[13:39] <Dark-knight> List: Things that need to be done/fixed: add the ALAC tag to the .mp4 container, add support for setting the default track.
[13:43] <soffio> hi i've got problem to input a video: "crazy start time, iam scared, giving up"
[13:43] <soffio> "Invalid data found when processing input"
[13:45] <soffio> http://pastebin.com/raw.php?i=CQxjbzJT
[13:46] <klaxa|work> that is neither the command you used, nor is it complete
[13:46] <soffio> if you prefer everything: http://pastebin.com/raw.php?i=a31TQYqt
[13:46] <soffio> well, it's kind a waste of space
[13:47] <Dark-knight> not really
[13:47] <Dark-knight> it lets us know how and why the problem happened
[13:48] <soffio> seems that only vlc like to play it
[13:48] <soffio> mplayer does not, probably it use ffmpeg (?)
[13:49] <soffio> mediainfo output: http://pastebin.com/raw.php?i=kNe8kDpc
[13:50] <soffio> kind a old codec
[13:50] <soffio> XviD 1.1.2 (UTC 2006-11-01)
[13:50] <soffio> nvm, works on other video with same codec version
[13:52] <Dark-knight> c_14: can you use that in a command line?
[13:52] <Dark-knight> don'
[13:53] <Dark-knight> i don't really know how to word it
[13:53] <sfan5> Dark-knight: ffmpeg -i <file> is a perfectly valid command
[13:54] <Dark-knight> what are you talking about sfan5?
[13:54] <sfan5> >can you use that in a command line?
[13:54] <sfan5> maybe I understood your question wrong
[13:55] <Dark-knight> i was addressing an earlier convo with c_14 about something entierly different
[13:55] <sfan5> then ignore what I said
[13:56] <Dark-knight> i did
[13:57] <soffio> so i can't debug this?..
[13:57] <klaxa|work> doubt it
[13:58] <klaxa|work> maybe vlc can remux it
[13:58] <soffio> nice idea, let me try
[14:00] <soffio> klaxa|work: omg, thanks :D working
[14:01] <klaxa|work> cool cool
[14:07] <heftig-z> I've got two almost identical ffmpeg instances here, both do some complex filtering then push streams to rtmp; one receives input via x11grab and alsa, the other receives a matroska stream over stdin;  the latter's memory usage creeps ever higher and higher
[14:07] <heftig-z> is there a memory leak in the matroska decoder?
[14:10] <klaxa|work> maybe run it with valgrid? (also, would be matroska demuxer, not decoder)
[14:14] <waressearcher2> I use that filter line: "drawtext=fontfile=/usr/share/fonts/TTF/DejaVuSans-Bold.ttf:text='%T'" and it says: "Stray % near 'T'", where is the problem ? I used also '\%T' the same
[14:16] <sfan5> waressearcher2: try this http://einar.slaskete.net/2011/09/05/adding-time-stamp-overlay-to-video-stream-using-ffmpeg/comment-page-1/#comment-304
[14:16] <john_____> Hello, here I am again. I wrote down my problem there: http://pastebin.com/1qEBkXtz
[14:18] <waressearcher2> sfan5: if I replace '%T' with '%m/%d/%y %H\:%M\:%S' it says: "Stray % near 'm/%d/%y %H:%M:%S'"
[14:18] <sfan5> hm
[14:20] <sfan5> -vf drawtext='fontfile=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf:text=%{localtime\\:%T}'
[14:21] <sfan5> waressearcher2: that one works for me
[14:21] <Dark-knight> excellent work john_____ i impressed at your description
[14:22] <Dark-knight> although i have no idea how to help you atm
[14:22] <Dark-knight> somebody else can
[14:22] <sfan5> waressearcher2: you probably want text=%{pts\\:hms}
[14:23] <waressearcher2> sfan5: now it says: "%{pts} requires at most 0 arguments"
[14:24] <waressearcher2> how can I check with any text not just time ? that is my entire filter: "-filter:v "drawtext=fontfile=/usr/share/fonts/TTF/DejaVuSans-Bold.ttf:text='1111111':fontcolor=white at 0.8:x=7:y=460"         but there is no "1111111" text in resulting video
[14:24] <sfan5> which ffmpeg version?
[14:25] <john_____> Dark-knight: Hm, OK. I will just wait here nonetheless.
[14:25] <waressearcher2> sfan5: ffmpeg-2.0.2
[14:25] <waressearcher2> just don't tell me to upgrade
[14:25] <waressearcher2> for how long that feature --enable-libfreetype  there ?
[14:25] <waressearcher2> it should work even in 0.6 version
[14:27] <sfan5> waressearcher2: the filter your just posted works perfectly for me
[14:27] <sfan5> it draws 1111111 at the bottom of the video as expected
[14:28] <waressearcher2> no there is actually "111111" in video, I changed "y=460" to "y=260" because wideo is "672x384"
[14:28] <sfan5> waressearcher2: did you make sure your video is big enough so that the text is not out-of-bounds
[14:28] <sfan5> ..
[14:29] <Dark-knight> john_____: if nobody helps just wait a while and then post "Help! (your pastebin URL)"
[14:29] <Dark-knight> it alot to read
[14:29] <Dark-knight> might take a min for somebody to help you
[14:30] <sfan5> john_____: it might be possible that fraps generated data ffmpeg cannot yet fully decode
[14:30] <john_____> Dark-knight: that's what I planned to do. :)
[14:30] <waressearcher2> but '%T' still not working it says "Stray % near 't'", mabe there is something wrong with my versio of strftime() ? it uses it to get time right ?
[14:31] <sfan5> waressearcher2: that would show the time of _encoding_, I'm sure you want the time in video
[14:31] <sfan5> there were some changed
[14:31] <sfan5> changes*
[14:31] <waressearcher2> I want time of the video, yes
[14:31] <john_____> sfan5: any suggestions on how I get my footage encoded to h.264 then?
[14:31] <sfan5> you would use %{localtime\\:%T}
[14:31] <sfan5> <sfan5> waressearcher2: you probably want text=%{pts\\:hms}
[14:32] <sfan5> that would show the time in the video
[14:32] <john_____> Because all programs that I tried to use on Windows crahed. Literally.
[14:32] <sfan5> john_____: convert the footage into ffv1 or huffyuv on windows
[14:33] <john_____> And Handbreak wasn't even compilable. How am I supposed to convert them when the convertes I used so far crashed? :)
[14:33] <john_____> converters*
[14:34] <sfan5> doesn't Fraps provide a .dll to decode the fraps codec?
[14:35] <john_____> I don't know. I got three DLLs here: frapslcd.dll, fraps64.dll and fraps32.dll
[14:35] <john_____> None of them really make the impression of containing a decoder for me.
[14:36] <waressearcher2> sfan5: it prints "23:36:36" in video, but I need sort of a timer from "0:0:0" to "3:0:0" because video is 3 hours long
[14:37] <sfan5> john_____: http://www.fraps.com/faq.php 'Where can I find the custom Fraps FPS1 codec?'
[14:37] <sfan5> maybe that helps
[14:37] <sfan5> waressearcher2: use text=%{pts\\:hms}
[14:38] <john_____> sfan5 I got there as well. :) But that does not tell me where it is.
[14:40] <john_____> Whatever. I will just look around and try to get it encoding to ffv1 or huffyuv. I will join again if it worked or not.
[14:40] <john_____> Bye
[14:42] <waressearcher2> sfan5: it says: "%{pts} requires at most 0 arguments"
[14:42] <sfan5> try text=%{pts}
[14:47] <waressearcher2> sfan5: I got seconds running in form like: "5.250000", but I want them to be like: "2h 12m 30s" or "2:12:30.2000" and counting
[14:47] <waressearcher2> is it possible ?
[14:47] <sfan5> %{pts\\:hms}
[14:47] <sfan5> would do exactly that
[14:47] <sfan5> but your ffmpeg seems to be too old
[14:47] <waressearcher2> so it should be obvious that its timelapse and it should be clearly seen how minutes and hours are flying
[14:49] <waressearcher2> so I will update it later and try it again, and if you wrong and I will return and say "I told you that, it should work even in older version"
[14:49] <sfan5> my ffmpeg is built on Jul 10 2014 16:02:44
[14:49] <waressearcher2> "built on Jul 16 2014 22:17:47 with gcc 4.4.4"
[14:49] <waressearcher2> so what ?
[14:49] <waressearcher2> sfan5: you can build 0.6.3 version right now
[14:50] <sfan5> https://www.ffmpeg.org/ffmpeg-filters.html says there is pts:hms
[14:50] <sfan5> it works for me
[14:50] <sfan5> even if my version is older than yours
[14:51] <MrPingouin_> hello world
[14:52] <MrPingouin_> hope everyone's good
[14:53] <waressearcher2> MrPingouin: what, "MrPinguin" was taken ?
[14:53] <waressearcher2> MrPingouin: "MrPenguin"
[14:53] <MrPingouin> non, it's in french
[14:54] <MrPingouin> the truth is, I initially wanted "monsieur" pingouin
[14:54] <MrPingouin> but in french, "monsieur" is "M."
[14:54] <MrPingouin> and the dot was not allowed I think
[14:54] <waressearcher2> isn't "manchot" is penguin in french ?
[14:54] <MrPingouin> yes
[14:54] <MrPingouin> BUT
[14:54] <MrPingouin> manchot, is also what you called someone without arms
[14:54] <jjohn> Ahoy, folks. s
[14:54] <waressearcher2> MrPingouin: or you mean "auk" ?
[14:55] <MrPingouin> or especially clumsy (if the google translation is ok)
[14:55] <MrPingouin> I didn't get you, what's auk ?
[14:55] <MrPingouin> oh, it's penguin lol
[14:55] <waressearcher2> "pingouin" is "auk" in french
[14:55] <jjohn> sfan5: I tried to encode the footage, once as huffyuv, once as ffv1. But I guess I got something wrong in my head.
[14:56] <jjohn> Because the errors still appear.
[14:56] <MrPingouin> auk or awk, one letter and you're a clumsy animal, or the king of the birds
[14:57] <MrPingouin> anyway
[14:57] <MrPingouin> I have issues while encoding a video (jpeg2000 max quality) to h264
[14:57] <MrPingouin> the output is very noisy
[14:57] <relaxed> command?
[14:57] <MrPingouin> in spite of my -qp 0
[14:57] <MrPingouin> command is...
[14:58] <klaxa|work> -qp 0 should be lossless
[14:58] <sfan5> jjohn: on windows?
[14:58] <MrPingouin> ffmpeg -i jpeg2000stuff.mov -c:v libx264 -preset veryslow -qp 0 -c:a copy -f 25 myOutput.mov
[14:58] <sfan5> MrPingouin: you probably want -crf
[14:59] <relaxed> -f 25 is wrong
[14:59] <jjohn> On windows, and with the encoders I used so far, I don't even have these options. On linux ... well, it doesn't matter here because the FPS doesn't seem to work.
[14:59] <MrPingouin> sfan5: oh, I'll try then. I was following the h264 faq on trac.ffmpeg.org
[14:59] <MrPingouin> You can use -qp 0 or -crf 0 to encode a lossless output. Use of -qp is recommended over -crf for lossless because 8-bit and 10-bit x264 use different -crf values for lossless
[14:59] <sfan5> jjohn: you might be able to use directshow to decode the fraps stream with fraps own decoder
[14:59] <MrPingouin> trying this right now
[15:01] <jjohn> sfan5 could it be that directshow is included in the K-Lite codec package?
[15:01] <jjohn> Sorry, I am still a newby with this decoder businiss.
[15:02] <jjohn> business*
[15:04] <jjohn> But I always thought that K-Lite was used to update all codecs that might be installed on one's PC, because most installers won't check for the codec version (also see DLL hell)
[15:05] <sfan5> jjohn: hm, seems like what I suggested is not possible
[15:05] <jjohn> Oh, OK. I was already doubting my own sanity. :)
[15:06] <jjohn> Another suggestion?
[15:07] <MrPingouin> there's no "-crf" in ffmpeg doc!
[15:07] <MrPingouin> what are the possible values ?
[15:08] <klaxa|work> MrPingouin: https://trac.ffmpeg.org/wiki/Encode/H.264
[15:09] <MrPingouin> oh thanks, it was right in front of me
[15:10] <jjohn> help: http://pastebin.com/1qEBkXtz
[15:13] <c_14> jjohn: Have you tried using an up to date version of FFmpeg?
[15:15] <relaxed> jjohn: install ffmpeg-9999 from portage or try http://johnvansickle.com/ffmpeg/
[15:19] <MrPingouin> hmmmm.
[15:19] <MrPingouin> style noisy
[15:19] <MrPingouin> still
[15:19] <MrPingouin> sorry
[15:20] <MrPingouin> less noisy than with -qp 0 (I set -crf 18)
[15:20] <klaxa|work> is the source material noisy?
[15:20] <MrPingouin> nope
[15:20] <MrPingouin> but
[15:20] <MrPingouin> there's an interesting fact
[15:20] <MrPingouin> I asked my colleague to produce me two video source
[15:20] <MrPingouin> 1. quicktime animation 100 (huuuuge file)
[15:21] <MrPingouin> 2. jpeg2000 quality max (supposed to be lossless too)
[15:21] <MrPingouin> same command line, different sources
[15:21] <MrPingouin> 1. perfect
[15:21] <MrPingouin> 2. noisy
[15:21] <MrPingouin> the thing is
[15:21] <klaxa|work> maybe the jpeg2000 decoder is buggy
[15:21] <MrPingouin> as it was noisy, we used a computer with adobe premiere
[15:21] <MrPingouin> and it has produced a non-noisy h264 file, but the process time was huge
[15:25] <relaxed> MrPingouin: try the libopenjpeg decoder
[15:25] <relaxed> ffmpeg -vcodec libopenjpeg -i input ...
[15:27] <MrPingouin> exactly what I typed 10 sec ago :)
[15:27] <MrPingouin> I found the trac ticket 2683
[15:27] <MrPingouin> note : I'm currently using the nightly build
[15:28] <relaxed> typed where?
[15:28] <MrPingouin> in my console
[15:29] <MrPingouin> muuuuuuuuuuuuuuch better
[15:29] <MrPingouin> thanks a lot relaxed
[15:29] <relaxed> you're welcome
[15:29] <MrPingouin> crf 10, I guess I can try 18
[15:30] <MrPingouin> I'm using the pix_fmt yuv420p for quicktime player to read it, but it can't read the file in realtime, vlc can
[15:30] <MrPingouin> video format is 1080p
[15:33] <jjohn>  c_14: not yet. relaxed: johnvansickle does not provide the sources, and I'd like to compile it on my own machine.
[15:33] <jjohn> I am going to find out how to manually install it.
[15:34] <c_14> https://trac.ffmpeg.org/wiki/CompilationGuide/Generic
[15:35] <jjohn> c_14 I thought about that but I do not want to mess up the portage tree.
[15:35] <relaxed> jjohn: That's my site, and sources are available upon request. If you're going to compile it you might as well use portage.
[15:35] <c_14> how would that mess up the portage tree?
[15:36] <jjohn> Because ffmpeg is already installed, and portage knows that. And if I compile and install a vanilla version, future updates might break.
[15:37] <jjohn> I once had a guy explaining that to me far and wide.
[15:37] <c_14> you don't have to globally install it
[15:37] <c_14> Just install it in a local dir.
[15:37] <klaxa|work> compile separately, run with /whatever/prefix/you/used/ffmpeg
[15:39] <jjohn> Damn, I need some sleep ... of course I can do that.
[15:45] <heftig-z> klaxa|work: valgrind doesn't seem to find the heap ffmpeg uses
[15:48] <jjohn> c_14: ./configure --prefix=/opt/local/ffmpeg && make -j9 && make install && /opt/local/ffmpeg/bin/ffmpeg -i input.avi -c:v libx264 -c:a copy output.mov
[15:48] <MrPingouin> next step, setting a maxrate for quicktime player
[15:48] <jjohn> Shows the error: Unknown encoder 'libx264'. Do I have to install that codec manually as well?
[15:48] <c_14> you have to enable it in the build
[15:49] <c_14> --enable-libx264 should be enough if you have x264 installed.
[15:50] <jjohn> c_14 I am already compiling it. But you need to specify --enable-gpl as well. :)
[15:55] <jjohn> c_14 thank you very much! Using the latest ffmpeg version did the trick. :)
[15:56] <jjohn> The video and audio now runs flawlessly.
[15:59] <jjohn> Although mplayer still complains that my machine is too slow. And the "picture is too late to be displayed (missing X ms)" messages are still there.
[16:01] <klaxa|work> does that also happen with ffplay?
[16:05] <jjohn> klaxa no, it doesn't.
[16:06] <jjohn> What would it mean if it had?
[16:06] <klaxa|work> dunno
[16:07] <klaxa|work> this means that mplayer is decoding slower apparently
[16:07] <klaxa|work> or rather, ffplay is not telling you that it is decoding too slow?
[16:08] <klaxa|work> have you tried some of the suggestions mplayer gives you to increase playback speed?
[16:08] <sfan5> klaxa|work: I don't think ffplay has 'slowness' detection
[16:08] <klaxa|work> like disabling audio or stuff
[16:08] <klaxa|work> sfan5: yeah that's what i thought afterwards too
[16:10] <jjohn> No, I guess I know what the difference is: mplayer is single-threaded, ffplay multi-threaded. ffplay renders the file fast enough, but uses two cores. mplayer is not that fast and uses only one core.
[16:11] <klaxa|work> maybe try out mpv or mplayer2
[16:11] <klaxa|work> (mpv is what the cool kids use these days)
[16:11] <jjohn> If I wanna be cool I'd use Arch. ;)
[16:12] <klaxa|work> i... i run arch
[16:12] <MrPingouin> lol
[16:12] <jjohn> Well, congrats. You are a cool kid then.
[16:12] <MrPingouin> buuusted
[16:13] Action: sfan5 runs (X)ubuntu
[16:13] <sfan5> :c
[16:13] <jjohn> No, I guess that's how fast my linux can render the file without VDPAU. But at the moment it's enough for me.
[16:13] <jjohn> sfan5 tell me you at least compile your own kernel.
[16:14] <sfan5> no
[16:14] <sfan5> but I compile my own ffmpeg
[16:14] <sfan5> and most of the libs it needs
[16:14] <sfan5> and I use mpv
[16:14] <jjohn> Well, I compile my whole system on my own. :)
[16:14] <klaxa|work> who's the hipster now?
[16:14] <sfan5> :c
[16:14] <jjohn> But I am still using vlc. :/
[16:14] <sfan5> ew vlc
[16:15] <jjohn> >inb4 not hipster enough
[16:15] <klaxa|work> i think that's enough circlejerking for a support channel
[16:15] <sfan5> yeah
[16:16] <jjohn> Right. However, thanks for the help! I now have a way to encode my footage.
[16:16] <jjohn> Bye.
[16:20] <waressearcher2> are libx265 and libx264 two different codecs or they will be merged into one one day ?
[16:21] <klaxa|work> they are different
[16:21] <klaxa|work> and will most likely never be merged
[16:22] <sfan5> waressearcher2: libx265 is for HEVC and libx264 for H.264
[16:23] <waressearcher2> I noticed in ffmpeg 2.3  there is new option "--enable-opengl" what its for ?
[16:23] <waressearcher2> is it accelerate things by using video card ?
[16:23] <waressearcher2> I now compile 2.3 should I enable it ?
[16:24] <klaxa|work> if anything it would be opencl, opengl is not for general purpose computing but hardware accelerated rendering so it's maybe used by ffplay?
[16:24] <klaxa|work> check the changelog maybe?
[17:00] <waressearcher2> sfan5: and here we go, you here ?
[17:00] <sfan5> yes
[17:03] <waressearcher2> sfan5: I tryed to build 2.3 version there http://sprunge.us/fAZf at the begining is compilation options and after ============ is output with errors
[17:03] <waressearcher2> so 2.0.2 compilled fine but 2.3 cased errors
[17:04] <waressearcher2> I assume they are specific to libxvid so maybe I can update that libxvid or something or is it the part of ffmpeg package ?
[17:04] <waressearcher2> I don't want to disable it
[17:05] <sfan5> waressearcher2: can you try compiling the development version of ffmpeg?
[17:05] <sfan5> (from git)
[17:06] <waressearcher2> how can I get it from git ?
[17:06] <waressearcher2> is there tarball or should I use git client ?
[17:06] <waressearcher2> sfan5: if you give me command of downloading from git
[17:07] <sfan5> git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
[17:09] <waressearcher2> I also have packages installed xvidcore-1.2.2-i486-1 and xvidtune-1.0.2-i486-1, should I update them ?
[17:09] <waressearcher2> are they related ?
[17:10] <sfan5> maybe
[17:10] <heftig-z> the memory use of this pipeline grows steadily:
[17:10] <heftig-z> ffmpeg -v quiet -f lavfi -i testsrc -f matroska -c:v rawvideo -pix_fmt yuv420p - | ffmpeg -i - -f matroska -c:v copy -y /dev/null
[17:11] <heftig-z> is that normal?
[17:11] <heftig-z> er, hang on
[17:11] <heftig-z> actually have a simpler version
[17:11] <heftig-z> ffmpeg -v quiet -f lavfi -i color -f nut -c:v copy - | ffmpeg -i - -f rawvideo -c:v copy -y /dev/null
[17:17] <waressearcher2> by the way I have similar to heftig-z question: I have 1GB of ram, and I was trying to make slideshow video from photos, there were 90 photos of 1920x1080 resolution, and I tryed to make video of 1920x1080 using h264 codec, I used that command: "cat *.png | ffmpeg -f image2pipe -vcodec png -r .4 -i - -vcodec h264 -vb 3000k -r 25 out.avi" and after
[17:17] <waressearcher2>  I started process it started to consume memory and after it consumed about 900MB it was killed by system, and I got message in dmesg: "Out of memory: kill process 20688 (ffmpeg) score 116212 or a child" why it was killed ?
[17:17] <Hello71> heftig-z: well, you output one format
[17:17] <Hello71> er, never mind
[17:18] <Hello71> waressearcher2: get ffmpeg to open the images itself
[17:18] <waressearcher2> on the other hand
[17:18] <waressearcher2> Hello71:
[17:19] <waressearcher2> and on the other hand, I tryed make "1920x1080 h264" video from pieces, the difference from previous case I used video pieces as a source instead of photos, the command was: "ffmpeg -f concat -i list.txt -vcodec h264 -vb 3000k out.avi" and it did it fine, while processing it it consumed only 437MB of RAM and haven't been  killed, so why when I
[17:19] <waressearcher2>  tryed to make "1920x1080 h264" video out of photos it lacked RAM and was killed but there was no problems in second case of converting video pieces to "1920x1080 h264" video ?
[17:19] <Hello71> probably because ffmpeg is reading in all the images before processing them
[17:20] <Hello71> also, use mp4 container
[17:20] <waressearcher2> Hello71: instead of "-f avi file.avi" use "-f mp4 file.mp4" ? why is it better ?
[17:20] <waressearcher2> because some rules are ?
[17:21] <Hello71> don't use image2pipe
[17:21] <Hello71> get ffmpeg to open the images itself
[17:22] <waressearcher2> Hello71: that way: "-i %05d.png", the thing is I want to have full control on what images I want to use
[17:23] <waressearcher2> Hello71: with "cat *.png | ffmpeg" I can use images from many sources like: "cat _/{0001..10000..500}.png /tmp/{1..200}.png | ffmpeg"
[17:24] <Hello71> 1. you'll run out of ARG_MAX fast
[17:24] <waressearcher2> Hello71: without pipe using "-i %05d.png" I need to stack all images and rename them consequently
[17:24] <klaxa|work> you can use -i *.png
[17:25] <waressearcher2> klaxa|work: and what if I have images like 00538.png ? should I rename them all without leading zeroes ?
[17:25] <waressearcher2> no
[17:26] <heftig-z> ffmpeg -f image2 -pattern_type glob -i '*.png' -r .4
[17:27] <waressearcher2> Hello71: I remember did same piping with 10000 png files of about 650x350 resolutino and it didn't run out of RAM
[17:27] <waressearcher2> Hello71: and didn't run out of command line arguments
[17:40] <OnkelTem> Hi all
[17:40] <OnkelTem> I can't get ffmpeg to read rtsp stream, all I see is a bunch of "[NULL @ 0x338acc0] RTP: missed 212 packets" messages
[17:41] <OnkelTem> My line is: ffmpeg -re -i rtsp://web:q1w2e3r4@185.8.127.10:554 -c copy -f flv rtmp://localhost:1935/mytv/go
[17:41] <OnkelTem> what I do wrong?
[17:44] <OnkelTem> My line is: ffmpeg -re -i rtsp://web:q1w2e3r4@185.8.127.10:554 - this part is wrong, right? Why?
[17:45] <waressearcher2> sfan5: you here ?
[17:46] <waressearcher2> sfan5: for that fresh git version it gives same error about libxvid http://sprunge.us/QNdV
[17:46] <waressearcher2> I don't know if I need that libxvid, I usually use mpeg4 of h264 codecs
[17:48] <waressearcher2> or wait, I will try with updated xvidcore
[17:49] <waressearcher2> so much hassle for a timer on top of video
[17:50] <waressearcher2> the version my xvidcore-1.2.2 dates back to Jun 13  2011
[18:01] <_Vi> Filed a bug: https://trac.ffmpeg.org/ticket/3773
[18:02] <waressearcher2> _Vi: its like: "anyone here want to fix that bug" querry ?
[18:04] <_Vi> Is this bug already known?
[18:09] <Justice> i have a videofile that has the wrong lenght is there a way to manually set the lenght ?
[18:10] <Justice> length*
[18:10] <_Vi> Justice, Maybe remux it?  ffmpeg -i youvideo.mkv -acodec copy -vcodec copy   newvideo.mkv
[18:11] <Justice> _Vi: doesnt that reencode it ?
[18:12] <_Vi> Justice, No, only demux and mux. "-vcodec copy -acodec copy" is to tell ffmpeg not to re-encode.
[18:20] <Justice> _Vi: hm still wrong length
[18:22] <_Vi> Justice, How do you measure the length? Does "ffmpeg -i newvideo.mkv" show the correct length?
[18:23] <_Vi> Justice, Does the file plays to its end if you play it in vlc or mplayer or ffplay?
[18:24] <Justice> _Vi: ffmpeg -i shows wrong length but i fixed it finaly =)
[18:25] <Justice> when i tried without the copy it said that aac codec is experimental and did not want to continue
[18:25] <Justice> ffmpeg -i infile -acodec copy -vcodec copy -t 02:09:41.023 outfile seems to fixed it
[18:26] <Justice> though the file is smaller i wonder why
[18:26] <_Vi> Justice, "without copy" means you are re-encoding. As for AAC, you can either force ffmpeg to use experimental codec, or choose another aac codec implementation (maybe "-acodec libfaaac").
[18:26] <_Vi> Much smaller or few kilobytes smaller?
[18:27] <Justice> _Vi: from 1.8GiB to 1.6GiB
[18:27] <Justice> The video was "7hours long" but should be ~2hours
[18:27] <_Vi> Is it after "-vcodec copy -acodec copy -t"?
[18:27] <Justice> yea
[18:28] <_Vi> Probably everything after 02:09:41.023 got trimmed.
[18:28] <Justice> hm i thought it was just a file error but i guess
[18:30] <Justice> _Vi: thanks for your help =)
[18:34] <waressearcher2> _Vi: "-vcodec copy -acodec copy" is equals to "-c copy" right ?
[18:34] <_Vi> -c ?
[18:34] <_Vi> Probably.
[18:41] <OnkelTem> Ok, I managed to get ffmpeg to read rtsp stream and convert it to rtmp
[18:41] <OnkelTem> But it exits after video starts in few seconds with message:
[18:41] <OnkelTem> Application provided invalid, non monotonically increasing dts to muxer in stream 0: 20840 >= 20840
[18:41] <OnkelTem> av_interleaved_write_frame(): Invalid argument
[18:42] <OnkelTem> How to make it NOT quit on such silly errors?
[18:43] <OnkelTem> Googling I found posts about similar issues and there people recommends using option: -fix_sub_duration
[18:44] <OnkelTem> but for some reason my ffmpeg claims it doesn't recognize it
[18:44] <OnkelTem> Any ideas why?
[18:44] <OnkelTem> ffmpeg version 0.10.12-7:0.10.12-1~precise1
[18:44] <_Vi> OnkelTem, I remember just commenting out this check from source code.
[18:45] <OnkelTem> is my version outdated?
[18:45] <JEEB> quite
[18:46] <OnkelTem> Oh... I knew that!
[18:46] <OnkelTem> So how can I install fresh ffmpeg on Ubuntu?
[18:47] <_Vi> OnkelTem, 1. Connect some PPA; 2. install ffmpeg from PPA?
[18:47] <OnkelTem> or what would be the best option in my case? I don't need ffmpeg systemwide as I use it on server just to recode a video stream
[18:47] <JEEB> build it yourself or grab a static binary if you only need the command line app
[18:47] <waressearcher2> OnkelTem: get it from git and compile
[18:47] <JEEB> http://git.videolan.org/?p=ffmpeg.git;a=commit;h=7e16636995fd6710164f7622cd77abc94c27a064 <- this is how old 0.10.x is btw :P
[18:47] <OnkelTem> _Vi: but that's exacty whay I did. I followed the link to PPA from https://www.ffmpeg.org/download.html
[18:47] <_Vi> OnkelTem, Do you want pre-built ffmpeg binary?
[18:47] <OnkelTem> JEEB: I see :)
[18:48] <JEEB> yeah, PPAs usually try to be replacements :P So they are limited to the old versions if your distro bases itself on older APIs
[18:48] <waressearcher2> why they renamed files "INSTALL LICENSE README" to "INSTALL.md LICENSE.md README.md" ?
[18:48] <OnkelTem> _Vi: any, I just need to run it on Ubuntu 12.04. Be it static or not - not really care
[18:48] <JEEB> there's static binaries' downloads listed on ffmpeg.org
[18:48] <JEEB> try those if you only need the command line tool
[18:48] <OnkelTem> ok, thanks
[18:48] <_Vi> waressearcher2, Because they are in Markdown and are rendered as such if named *.md?
[18:49] <waressearcher2> after waiting for 40 minutes for compilation to end it failed because couldn't find ""INSTALL LICENSE README" files
[18:49] <_Vi> OnkelTem, There are http://vi-server.org/pub/ffmpeg2013 and   http://vi-server.org/pub/ffmpeg2012 . I also have ARM version and (for lulz) version for DOS.
[18:49] <waressearcher2> I mean waiting for script to end build ffmpeg package, now I need to restart and wait another 40 minutes
[18:50] <JEEB> you have a funky script then :P
[18:50] <waressearcher2> _Vi: what is Markdown ?
[18:51] <_Vi> waressearcher2, It's a wiki-like document format with [this sort of links](http://example.com).
[18:51] <_Vi> waressearcher2, It is used, for example, on Github and on stackoverflow.com.
[18:53] <OnkelTem> URA!!!
[18:53] <OnkelTem> http://neganov.ru/home.html - video!
[19:47] <waressearcher2> sfan5: you here ?
[19:49] <Schalla> Hello folks! First of all, thanks a lot to the devs for creating ffmpeg, doing some video slicing and its just amazing fast & stable. I got a small issue, I basicly want to use instead -ss 00:15:32 -t {DURATION} the endtimestamp, so from -ss to -to, that is possible, or I must do a little math on my own?=
[19:50] <waressearcher2> sfan5: I updated xvidcore to 1.3.2 and now there is no errors about libxvid, also now with ffmpeg 2.3 version that option "text='%{pts\\:hms}'" is working
[19:52] <c_14> Schalla: what exactly do you want? I don't understand the question.
[19:53] <waressearcher2> c_14: instead of length to use end position
[19:53] <c_14> ye, just use -to
[19:54] <Schalla> c_14: That doesn't work, it seems
[19:54] <Schalla> Sec
[19:54] <c_14> can you pb the commandline
[19:54] <Schalla> Option to (record or transcode stop time) cannot be applied to input file
[19:54] <Schalla> sure, sec.
[19:55] <Schalla> http://pastebin.com/FjcauTZA
[19:55] <c_14> -to is only an output option
[19:55] <c_14> and if you use -ss as an input option it moves the start time by that point so -to turns into time+seek
[19:56] <Schalla> ah well, alright. Guess the easiest thing I could do would be do quick the math and just stay with -t, since I only have to slice 5 parts.
[19:57] <Schalla> Thanks for your help and have a nice evening!
[20:03] <tesh> *-0J1
[20:03] <tesh> warning
[20:03] <tesh>  you may be  watched
[20:03] <tesh> do usa&israel use the internet(facebook,youtube,twitter, chat rooms ..ect)to spy??
[20:03] <tesh> do usa&israel use the internet 2 collect informations,,can we call that spying??
[20:06] <waressearcher2> tesh: try #hardware
[20:21] <klaxa> after snowden this is general knowledge
[20:30] <waressearcher2> are there ways,tricks,filters to improve video ?
[20:30] <waressearcher2> or all I can do is change hue,saturation,contrast ?
[20:33] <klaxa> waressearcher2: http://www.ffmpeg.org/ffmpeg-filters.html#toc-Video-Filters
[20:33] <klaxa> if you are further interested, look at vapoursynth and/or avisynth
[20:33] <waressearcher2> any filters made specifically to improve video make it more vibrant ?
[20:34] <klaxa> increasing saturation should make it more "vibrant"
[20:38] <JEEB> lol
[20:46] <brontosaurusrex> waressearcher2, if we are talking a camera like RED or something that produces raw or close to raw data, then there is bunch of trciks
[20:46] <brontosaurusrex> tricks*
[20:46] <brontosaurusrex> none involves ffmpeg
[20:47] <waressearcher2> brontosaurusrex: so you are last dinosaurus standing ?
[20:48] <brontosaurusrex> waressearcher2, no, linux ppl told me that "b" is too short for a nick
[20:49] <waressearcher2>  
[20:49] <waressearcher2> your is longer
[20:49] <brontosaurusrex> i still have better ideas than searching for a superfancy sharpener
[20:49] <brontosaurusrex> sometimes at least
[20:50] <waressearcher2> what is hue ?
[20:51] <brontosaurusrex> radial position of color in colorwheel < out of my head
[20:51] <waressearcher2> there is an option "hue[=hue:saturation]" so I tryed "mp=hue=5:1" but nothing was changed
[20:51] <waressearcher2> but on the other hand "mp=hue=0:2" with increased saturation changed look and feel of video, made it warmer
[20:53] <waressearcher2> brontosaurusrex: ""b" is too short" so you wanted like: "Float like a butterfly, sting like a b" ? that "b" ?
[20:53] <klaxa> have you tried hue=80:0 or something?
[20:53] <waressearcher2> no
[20:53] <klaxa> that should move the colors around quite a bit
[20:53] <JEEB> my personal opinion is that unless you are the one having the original content on your hand and doing the mastering as a part of the production, then you should keep your hands off the content unless something is actually wrong
[20:54] <klaxa> sounds about right
[20:56] <klaxa> i want to write that cropping and scaling should be fine, but that can be done at playback time anyway
[20:56] <JEEB> well, stuff like cropping is something that you should do when recompressing
[20:57] <JEEB> and resizing is something that might be needed for specific plastic toys
[20:57] <JEEB> and IVTC/deinterlacing is at times needed for some content
[20:57] <klaxa> those probably can't play back at the original bitrate anyway so re-encoding to a lower bitrate is inevitable
[20:58] <JEEB> anyways, I think I've had like two cases where I've had to touch the colors of a source: a company had mastered their content with either the top or the bottom of the YCbCr values going full range instead of the usual limited range values
[20:58] <JEEB> I felt sorry for the people who had actually watched the stuff on a TV or a dvd/blu-ray player
[20:58] <Fjorgynn> :D
[20:58] <JEEB> since those would just cut off the content over/under the limited range values
[20:59] <JEEB> the second case was actually similar, but not fixable because the company had decided to limit values to valid range at the end
[20:59] <JEEB> so you were actually lacking the values
[21:00] <JEEB> (meanwhile the TV spot for the same thing had a completely correct range, no idea how the hell they did that)
[21:00] <waressearcher2> klaxa: hue of 80 made yellow into green
[21:01] <waressearcher2> so its just moving colors around ?
[21:01] <waressearcher2> like shifting pallete ?
[21:01] <klaxa> yes, did you google hue? http://en.wikipedia.org/wiki/Hue
[21:03] <waressearcher2> no
[21:04] <waressearcher2> there is that "drawtext" parameter and it has options: "box=1:boxcolor=black" is there a way to make that box bigger than text ?
[21:04] <waressearcher2> now its just a width and heigth of a text no more
[21:05] <JEEB> if you need fancy text subtitling just use ASS
[21:05] <JEEB> aegisub is the app to create those subtitles with
[21:05] <JEEB> and then use ffmpeg's ASS rendering filter to draw them on your video surface
[21:09] <waressearcher2> JEEB: why are you writing ass in upper case ?
[21:09] <JEEB> Advanced SubStation
[21:10] <JEEB> (if I recall correctly)
[21:13] <waressearcher2> just call it ass in context of the channel it will be understood correct way
[23:47] <IamTrying> Remotely i am in a enterprise network connected. But i need to make 2 video clips into 1 video clip. And i do not have FFmpeg only i have VLC. How can i merge 2 video and make it as 1 ?
[23:48] <c_14> either download a static build of FFmpeg, or ask in #videolan
[23:51] <IamTrying> c_14: OK - somehow using proxy server i was able to install the apt-get install ffmpeg, how can you now without breaking video/audio codecs just merge 2 video into 1? (untouched the video /audio codec cause it was made using Sony/Windows tools therefore on Linux the encoder/decoder breaks the quality)
[23:52] <c_14> https://trac.ffmpeg.org/wiki/How%20to%20concatenate%20(join,%20merge)%20media%20files#demuxer
[23:53] <c_14> Though if you installed "ffmpeg" via apt-get you actually installed libav instead. You might be better of grabbing the static build and running that.
[23:55] <IamTrying> c_14: OK great. So this won't modify my existing audio/video codecs right? e.g: ffmpeg -i "concat:input1.mpg|input2.mpg|input3.mpg" -c copy output.mpg
[23:56] <c_14> that command will only work if you actually have mpeg streams, but yes it won't modify the settings. You can add -map 0 if there are multiple audio/video/subtitle streams that you want. (Also, the concat demuxer is more reliable than the concat protocol so you might want to use that - and you will probably have to for all non-mpeg streams).
[23:58] <IamTrying> OK - c_14 thank you very much
[00:00] --- Thu Jul 17 2014


More information about the Ffmpeg-devel-irc mailing list