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

burek burek021 at gmail.com
Sat May 26 02:05:01 CEST 2012


[00:00] <JEEB> so it's not exactly feasible with "I want vast support (HTML5/Flash)"
[00:00] <Meekoh> JEEB: Oh yeah I understand
[00:00] <burek> Meekoh, what player do you use for "seeking"
[00:00] <Meekoh> JEEB: I'll probably just give up on this. h.264 is just for IE anywhere, where basically nothing works.
[00:00] <Meekoh> burek: VLC at the moment, looking into this avisynth
[00:01] <JEEB> or aegisub, that comes with a new enough'ish ffmpegsource as well
[00:01] <burek> do you access your video locally or over the net?
[00:01] <JEEB> (and offers you an easy view)
[00:01] <Meekoh> Hrmm okay aegisub then
[00:01] <Meekoh> burek: locally
[00:01] <JEEB> mp4/mkv are both formats where ffmpegsource should be frame-exact
[00:01] <JEEB> so if you ask for frame zero you should get it
[00:02] <Meekoh> What is frustrating is that I had this working at one point
[00:02] <burek> maybe it will help to update ffmpeg to the latest version and vlc also
[00:02] <JEEB> anyways, I'm pretty sure you can seek to frame zero, but I'm just not sure how that stuff is done
[00:04] <Meekoh> So in aegisub, "frame 0" in the mp4 is the 3rd jpg.
[00:04] <JEEB> which version btw
[00:05] <JEEB> @ aegisub
[00:05] <JEEB> also, which OS are you on?
[00:05] <Meekoh> 2.1.9
[00:05] <JEEB> ok
[00:05] <Meekoh> Windows, but ffmpeg is running on a linux box
[00:05] <JEEB> alrighty
[00:05] <JEEB> is that with -r both before and after -i?
[00:05] <Meekoh> Only before currently
[00:05] <JEEB> you can also try and update your ffmpegsource dll in aegisub with https://ffmpegsource.googlecode.com/files/ffms2-r683.7z
[00:05] <JEEB> :)
[00:06] <JEEB> anyways, that does sound kind of weird, not sure where your frames would go
[00:06] <Meekoh> JEEB: Seems like overkill ;) The real problem sits at the encoder I imaginer
[00:06] <Meekoh> And the last three frames are all identical
[00:06] <Meekoh> ffmpeg always fucks shit up like this for me lol
[00:06] <Meekoh> And then I waste 4 days figuring out some hack to make it work
[00:07] <Meekoh> and then when I come back I forget how to do it
[00:08] <JEEB> well, the newer ffms would just be a pop-in replacement so that should be quick and decisive. In any case, if ffmpegsource doesn't see it there, it's relatively sure the frames aren't in that file
[00:08] <JEEB> also, pretty weird for frames to get dropped
[00:08] <JEEB> can you try without that -g 1 there?
[00:08] <JEEB> and then pastebinning the whole terminal output of that command?
[00:08] <Meekoh> Sure
[00:10] <Meekoh> http://pastebin.com/9Fwn3UMv
[00:10] <Meekoh> Oh wait that file looks better!
[00:10] <Meekoh> Let me test it
[00:11] <Meekoh> Wow shit that totally fixed it JEEB
[00:11] <JEEB> great
[00:11] <Meekoh> Pro advice :D So I clearly do NOT understand what -g does
[00:12] <JEEB> anyways, congratulations
[00:12] <JEEB> otherwise I recommend that instead of bitrate mode you use a low enough crf that is non-zero for your purposes :)
[00:12] <Meekoh> JEEB: Thanks a lot, you were very helpful
[00:12] <JEEB> uses only enough bit rate as that crf value needs
[00:12] <Meekoh> JEEB: -crf ?
[00:12] <JEEB> yes
[00:13] <Meekoh> I don't understand -b:v versus -crf very well
[00:13] <JEEB> crf is closest to "constant quality" we have atm
[00:13] <JEEB> if you don't have strict file size limitations, it's the best thing for the job
[00:13] <JEEB> bigger = more compression, less file size, smaller = less compression, more file size
[00:13] <Meekoh> Ahh I see
[00:13] <Meekoh> and what does -b:v do in contrast?
[00:14] <JEEB> set an average bit rate that the encoder will try to maintain
[00:14] <Meekoh> Okay I see.
[00:14] <JEEB> (not perfect without a second pass, while crf is just set to a certain rate factor)
[00:14] <Meekoh> As opposed to spending more bits on hard to compress frames
[00:14] <JEEB> also, crf is libx264-specific, unfortunately
[00:14] <Meekoh> Gotcha
[00:15] <JEEB> you should basically try and find the highest crf value that still looks good for you
[00:15] <JEEB> and you cane encode similar materials just like that
[00:15] <JEEB> crf zero with 8bit H.264 libx264 is lossless
[00:15] <JEEB> (which then fails to decode on most H.264 decoders)
[00:17] <JEEB> also, in case it becomes needed yuv420p can be switched to yuv422p to keep a bit more of the chroma color information, this will of course limit the capable decoders to Flash (which uses MainConcept's decoder) and new enough libavcodec-based ones.
[00:17] <JEEB> yuv420p is the safest bet
[00:18] <JEEB> also, libx264 has internal presets
[00:18] <JEEB> default is "medium"
[00:18] <JEEB> you set them by doing -preset:v presetname
[00:18] <JEEB> http://mewiki.project357.com/wiki/X264_Settings#preset
[00:18] <JEEB> ^ a list of them
[00:18] <JEEB> these control speed and compression
[00:19] <JEEB> the crf value then more or less controls output quality
[00:20] <JEEB> also, if you will be serving videos over the network, the vbv-maxrate and vbv-bufsize settings in libx264 become needed, that control the usage of bandwidth by the video within a set buffer
[00:23] <JEEB> (f.ex. if your setup is to buffer 800k on the client side and not think about pleasantly serving clients that have less than 1600k of bandwidth available, you would set bufsize to 800k and maxrate to 1600k, which would make the encoder keep within these limitations (as long as there's always 800k in the buffer and the bandwidth is enough for 1600k per second the client will not have to buffer for a second time)
[00:24] <JEEB> this ends the general ways of usage of the x264 encoder :D
[00:26] <Meekoh> This stuff is confusing ;D
[00:26] <Meekoh> I usualy resort to guess-and-check it seems
[00:27] <JEEB> preset = speed / compression of libx264 (usually: choose slowest that you can bear working with)
[00:27] <JEEB> crf = quality level (will differ somewhat between settings, but generally works quite similarily)
[00:27] <Meekoh> Yeah
[00:28] <JEEB> (vbv) maxrate/bufsize = control the amount of bandwidth needed to access the stream nicely, useful in networks and possible optic media
[00:28] <Meekoh> Are there any special settings if you want it to be playable in IE <video> ?
[00:28] <JEEB> steer away from lossless H.264
[00:29] <JEEB> steer away from anything else but yuv420p
[00:29] <JEEB> and I guess you could keep within level 4.1 limitations of the high profile (high profile is default as it's the most feature-complete and most lax profile)
[00:30] <JEEB> but generally you shouldn't have bit stream wise if the first two are true
[00:30] <JEEB> *shouldn't have problems
[00:43] <Meekoh> Seemingly not so easy :/ None of the things I'm trying play in IE
[00:46] <JEEB> Meekoh, give an example and make sure IE plays mp4s without audio
[00:46] <JEEB> example as in example used command line and possibly a sample
[00:48] <Meekoh> JEEB: Looks like it is related to some IE quirk. If I play it in a flat <video> element it works
[00:48] <JEEB> ok
[00:48] <JEEB> I'll go get some sleep then
[00:50] <chapatt> Hi! I'm trying to convert an audio file encoded in FLAC with 5.1 surround to AC3 with 5.1 surround (Dolby Digital). My question is, how do I set the channel layout? So far, this is what I have "ffmpeg -i Session.flac -s:a 48k -ab 640k -acodec ac3 -ac 6 test.ac3"
[06:26] <Tthread> Hello, dudes
[06:27] <Tthread> Could u tell me, is there libavfilter v3.0.x in the main developer branch? (i talk about this    git://source.ffmpeg.org/ffmpeg.git)
[06:29] <Tthread> and if not where can i get it?
[06:42] <Harzilein> hi
[06:45] <Harzilein> can i do "poor man's multiple audio streams" with ffmpeg where i take an existing video with a stereo audio stream and an audio file (of roughly the same length, trimmed to fit or padded with silence) and will get each - downmixed to mono - on one channel?
[06:45] <Harzilein> +,
[07:09] <fling_> hello! I'm encoding to a target bitrate
[07:09] <fling_> ffmpeg -i title-1.avi -aspect 4:3 -c:v libx264 -b:v 300k -c:a libvorbis -b:a 128k /home/fling/title-1.mp4
[07:10] <fling_> how to increase a quality of encoding? I do not see presets I used in the past, like slowest
[07:14] <fling> an also what does this mean? > [mpeg2video @ 0x118d640] ac-tex damaged at 31 3 ; [mpeg2video @ 0x118d640] Warning MVs not available ; Switching to NI mode, due to poor interleavinge
[07:18] <fling> http://pastebin.ca/raw/2153832
[08:56] <Tthread> Dude, does anybody know how to mirror a picture?
[08:57] <Tjoppen> -vf hflip
[10:45] <eok> hello guys, i was hoping for some help
[10:45] <eok> i'm trying to use this to make an overlay: "movie=/dev/video0:f=video4linux2, scale=360:-1, setpts=PTS-STARTPTS [movie]; [in] setpts=PTS-STARTPTS, [movie] overlay=main_w-overlay_w-10:main_h-overlay_h-10 [out]"
[10:46] <eok> but this gives me an error:
[10:46] <eok> [overlay @ 0xb1e4da0] Overlay area (-930,-508)<->(350,260) not within the main area (0,0)<->(360,270) or zero-sized
[10:47] <eok> if i remove the setpts values it works, but only gives me a static picture of the first fram of the cam
[10:47] <eok> so it must be something to do with setpts
[10:49] <eok> yay, removed the second setpts command there fixed it!
[10:58] <anti_user> hello! i have nvidia gtx 550ti and ffmpeg 0.9.2 with vdpau and vaapi support
[10:59] <anti_user> i want to know how to convert video with GPU utilization?
[11:00] <anti_user> -i '".$input."' -y -map 0:0 -an -ss 420 -vframes 1 -s ".$size." -f mjpeg ".$output.".jpg"
[11:01] <anti_user> -i '".$input."' -y -map 0:0 -an -pass 1 -s ".$size." -vcodec libx264 -coder 0 -flags +loop -cmp +chroma -partitions +parti8x8+parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 2 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 0 -refs 0 -directpred 3 -trellis 0 -flags2 -wpred-dct8x8+mbtree -level 30 -maxrate 10000000 -bufsize 10000000 -wpredp 0 -b:v ".systemVideoVBR." -threads 0 -f ipod
[11:01] <anti_user>  /dev/null"
[11:01] <ubitux> forget GPU
[11:02] <anti_user> where i can write some parameter to use GPU for converting?
[11:02] <anti_user> not CPU
[11:03] <anti_user> this script for converting
[11:03] <anti_user>  -i '".$input."' -y -map 0:0 -map ".$sound['map'][0]." -acodec libfaac -b:a ".systemVideoABR." -pass 2 -s ".$size." -vcodec libx264 -coder 0 -flags +loop -cmp +chroma -partitions +parti8x8+parti4x4+partp8x8+partb8x8 -me_method hex -subq 7 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 0 -refs 1 -directpred 1 -trellis 1 -flags2 -wpred-dct8x8+mbtree -level 30 -maxrate 10000000 -bufsiz
[11:03] <anti_user> e 10000000 -wpredp 0 -b:v ".systemVideoVBR." -threads 0 -f ipod ".$output.".mp4"
[11:06] <ubitux> vdpau and vaapi are only for the decode
[11:06] <ubitux> afaik.
[11:08] <anti_user> ok, how to convert video with hardware utilization?
[11:16] <ubitux> there is no known h264 encoder using the GPU
[11:16] <ubitux> +good
[11:22] <anti_user> ok, thanks for answers!
[12:47] <Tthread> Hello, could u please tell me how to mirror a picture?
[12:49] <ApolloX> any devs around?
[12:52] <iive> no, they are in another channel.
[14:41] <Mikato> hi to all
[14:42] <Mikato> would some one help me with add a Subtitles to mp4 file under os x?
[15:05] <Mikato> ?
[15:07] <burek> Mikato, what do you need to do?
[15:08] <Mikato> i want to convert some mov. or mkv files and add subtitle to mp4 file
[15:08] <Mikato> i want to that converted mp4 file contain subtitle
[15:10] <Mikato> in the interface under lion is an option "copy to addsubtitles from source" but how to use this?
[15:10] <Mikato> "copy to subtitles from source"
[15:11] <Mikato> please :)
[15:11] <Mikato> help
[15:11] <burek> just a sec pls
[15:11] <Mikato> ok
[15:12] <Mikato> piszesz po polsku?
[15:12] <Mikato> bo widze ze masz polski nick
[15:12] <burek> "to convert to mov/mkv/mp4" I guess you want to remux
[15:12] <burek> I don't speak polish, sorry :)
[15:12] <Mikato> ok :)
[15:13] <burek> so, if you want to remux, you can try: ffmpeg -i input -c copy -f mp4 out.mp4
[15:13] <burek> same for mov/mkv
[15:13] <burek> for mkv it's -f matroska out.mkv
[15:13] <burek> or just out.mkv (ffmpeg will figure out it's matroska)
[15:13] <Mikato> but how to add subtitle?
[15:13] <Mikato> to mp4 file?
[15:13] <burek> what kind of subtitle do you have
[15:13] <Mikato> srt
[15:14] <Mikato> or txt
[15:14] <burek> do you want to "burn" the subs to video
[15:14] <Mikato> ye
[15:14] <Mikato> s
[15:14] <burek> or just to add it as a separate stream
[15:14] <Mikato> wait...
[15:14] <Mikato> seperate stream? what you mean?
[15:14] <burek> in the media container (mkv for example) you have streams
[15:14] <Mikato> to another track?
[15:14] <burek> audio/video/subtitles
[15:15] <Mikato> ok, i got it
[15:15] <burek> so you can either add it as a stream or burn it on the video
[15:15] <burek> and have audio/video only
[15:15] <Mikato> so... with will be a simplest method?
[15:15] <Mikato> or quicker?
[15:16] <Mikato> quickest
[15:16] <burek> take a look here: http://pastebin.com/QjbVc6fM
[15:16] <burek> there are multiple streams inside a media file (container)
[15:16] <burek> Stream #0.3 - Stream #0.6 are subs
[15:16] <Mikato> wait a moment...
[15:19] <Mikato> http://i.imgur.com/9FIHc.png
[15:19] <Mikato> o got something like this
[15:19] <Mikato> and there is a option that "copy to subtitles from source" how to use this?
[15:20] <Mikato> without typing a code in bash
[15:20] <burek> you should contact developers of iFFmpeg
[15:20] <burek> and ask them
[15:21] <Mikato> you don`thave idea how?
[15:21] <burek> ask them
[15:25] <Mikato> is FFmpeg support srt or txt in converted mp4 file?
[15:25] <Mikato> couse iFFmpeg working is depending of FFmpeg
[15:25] <burek> yes, but you must ask there for more help
[15:26] <burek> we can't help you because you are not using ffmpeg
[15:26] <burek> but some wrapper
[15:26] <burek> and you need help with wrapper
[15:26] <burek> this is not the right place to ask questions about that wrapper..
[15:26] <burek> if you want to use ffmpeg directly
[15:26] <burek> open your terminal
[15:26] <burek> and type ffmpeg
[15:26] <burek> if that works
[15:27] <burek> then you can use ffmpeg without iffmpeg
[15:27] <burek> and we can help you
[15:27] <burek> otherwise, go to their support channel and ask for help
[15:27] <Mikato> ok try
[15:28] <Mikato> -bash: ffmpeg: command not found
[15:28] <Mikato> how to install?
[15:29] <Mikato> but i have in application support of iffmpeg
[15:29] <burek> sorry
[15:29] <burek> go to iffmpeg
[15:29] <Mikato> why?
[15:29] <Mikato> come on
[15:30] <Mikato> i am so tired to looking answer for my quastion
[15:31] <burek> then stop looking :)
[15:32] <burek> and go play football or something :)
[15:32] <ubitux> https://ffmpeg.org/trac/ffmpeg/wiki/MacOSXCompilationGuide might help
[15:32] <Mikato> but i want to convert some videos to my motorola atrix :)
[15:33] <burek> Mikato, do you understand english?
[15:33] <burek> you are NOT using ffmpeg
[15:33] <burek> you are using something, who knows what
[15:33] <burek> so, go ask whoever wrote that thing
[15:33] <burek> for help..
[15:33] <burek> what's there to not understand?
[15:34] <burek> or install/compile ffmpeg
[15:34] <burek> and we might be able to help you
[15:34] <Mikato> i am using but with a ... don`t know how to say..."overlay"
[15:34] <burek> wrapper
[15:34] <Mikato> yes wrapper
[15:34] <burek> we didn't write that wrapper so we don't know how to help you
[15:35] <Mikato> and i have a ffmpeg executed app in applicationsupport of iffmpeg program
[15:35] <burek> you're like 10 year old kid who just doesn't want to understand.. I have to go now, sorry.. o/
[15:35] <Mikato> ok, thanks anyway
[15:36] <ubitux> Mikato: we can only help if you are using ffmpeg, we don't know iffmpeg
[15:36] <ubitux> if you want to build ffmpeg on mac os, check https://ffmpeg.org/trac/ffmpeg/wiki/MacOSXCompilationGuide
[15:36] <Mikato> ok i will try to install
[15:37] <Mikato> but before i will install that ffmpeg on my mac
[15:38] <Mikato> can convert an mkv files without subtitle to mp4 files and add that subtitle to that mp4 file?
[15:40] <ubitux> maybe sth like ffmpeg -i in.mkv -i subtitle.srt -c copy out.mp4
[15:41] <Mikato> ok, just install ffmpeg by homebrew
[15:43] <Mikato> when is finish i will let you know
[15:43] <Mikato> and then we try
[15:44] <Mikato> couse a lot of stuf is being installing
[15:47] <ubitux> mmh it seems not that easy to mux a srt in a mp4
[15:47] <ubitux> it works in mkv, but not mp4
[15:49] <Mikato> ok, fine
[15:50] <ubitux> it might be supported, i just need to figure out how if so
[15:50] <Mikato> to mkv file witout re encoding and then i will convert mkv with subtitles to mp4 file
[15:58] <Mikato> wait couse homebrew instalation was broken
[16:30] <ubitux> burek: let's continue the talk here, we're messing with real dev stuff ;)
[16:30] <burek> ok :)
[16:30] <ubitux> burek: are you running on *nix?
[16:30] <burek> yes
[16:30] <ubitux> so what's blocking from installing git?
[16:31] <burek> it's not a problem to install
[16:31] <ubitux> (forget about the users right now)
[16:31] <burek> it's a problem to learn how to use
[16:31] <burek> if I make a mistake or something
[16:31] <burek> I need to "stash" (?) or something and stuff like that
[16:31] <burek> and that's what's bugging me
[16:31] <ubitux> ok ok let's start from the beginning :)
[16:31] <burek> it's not just a click of the button, edit, save :)
[16:31] <ubitux> are you willing to get a grip a little on how things are done?
[16:32] <ubitux> there is not much stuff to "know"
[16:32] <burek> well, to be honest, I see that sonner or later I'll have to :)
[16:32] <ubitux> a few concept and 2-3 commands
[16:32] <ubitux> just to be sure
[16:32] <ubitux> aren't you already cloning the ffmpeg's git for your tests?
[16:32] <burek> yes
[16:32] <ubitux> (to build the latest ffmpeg)
[16:32] <ubitux> ok so&
[16:33] <ubitux> you just edit the .texi, type "git diff" and see the changes, right? :)
[16:33] <burek> ok
[16:34] <burek> and then I submit it or send it via email or something?
[16:34] <ubitux> not too fast ;)
[16:34] <burek> :)
[16:34] <ubitux> the easy/fast way would be to just do a git diff > mypatch.diff
[16:34] <ubitux> and send mypatch.diff to ffmpeg-devel
[16:35] <ubitux> that's the weak way, but it works
[16:35] <ubitux> (though you will have some issues next time you update your tree etc)
[16:35] <ubitux> (because you have local changes and that conflict with the upstream)
[16:36] <burek> yes
[16:36] <ubitux> you can reset your original file with : git checkout doc/foobar.texi
[16:36] <ubitux> and then you will be able to git pull again etc
[16:36] <ubitux> so if you don't want to do more complicated stuff, and just need to send small typo patches
[16:36] <ubitux> this is one way
[16:37] <ubitux> now i can explain how it should be done, if you care :)
[16:37] <burek> yes, please :)
[16:37] <ubitux> alright&
[16:37] <ubitux> so mmh do you understand the concept of branches?
[16:37] <burek> kinda :)
[16:38] <ubitux> type : git branch
[16:38] <ubitux> you should have just a "master"
[16:38] <ubitux> (and a '*' indicating you are on the master branch)
[16:38] <ubitux> now you can type : git checkout -b my-devel-branch
[16:39] <ubitux> if you type git branch again, you will see you are now on my-devel-branch, which is a "copy" of the master branch
[16:39] <ubitux> you can do whatever crap you want in it
[16:39] <ubitux> example :
[16:39] <burek> I see
[16:39] <ubitux> edit doc/filters.texi
[16:39] <ubitux> and then commit your changes : git commit doc/filters.texi -m "I HAZ EDIT FILTERS DOC"
[16:39] <ubitux> if you now run gitk
[16:39] <ubitux> you will see your commit on top
[16:40] <burek> ok
[16:40] <ubitux> if you go back to the master branch (with git checkout master) your commit won't be there anymore
[16:40] <burek> but is that branch local only or do I make changes on the git server itself?
[16:41] <ubitux> you don't have the write permission on the server
[16:41] <ubitux> so don't worry about that.
[16:41] <burek> ok
[16:41] <ubitux> you can only mess your stuff locally :)
[16:41] <ubitux> anyway
[16:41] <burek> yes, figures :)
[16:41] <ubitux> try to do a few commits in your branch
[16:41] <ubitux> when you are done, you can run "git format-patch master"
[16:42] <ubitux> it will create N patches which differs between your branch and master branch
[16:42] <ubitux> these files (0001-....patch 0002-etc.patch ...)
[16:42] <ubitux> can be sent to ffmpeg-devel
[16:42] <ubitux> and we can apply them directly
[16:42] <burek> ok, so basically it's the similar way like with diff :)
[16:43] <ubitux> yes but there are quite a few important differences
[16:43] <ubitux> first the patch file contains your name
[16:43] <ubitux> it also has your commit description
[16:43] <ubitux> and it's way easier for us to apply it and push it
[16:43] <burek> ok
[16:44] <ubitux> also, your changes are kept in your branch when you update the master
[16:44] <ubitux> so you keep track of it
[16:44] <ubitux> which is important :)
[16:44] <ubitux> you can edit your commits etc
[16:44] <burek> yes, but if my commits don't get applied to the master for any reason, I'll have to sync branches or something
[16:45] <burek> so, I guess man git will have to be the way :)
[16:45] <ubitux> there are a few things to know for this
[16:45] <burek> btw
[16:45] <burek> error: Unable to append to .git/logs/refs/remotes/origin/release/0.9: Permission denied
[16:45] <burek>  ! ad6eefc..5d6982c  release/0.9 -> origin/release/0.9  (unable to update local ref)
[16:45] <burek> (with git pull)
[16:45] <Mikato> hi again
[16:45] <ubitux> first, never commit anything in the master branch, so you can always git pull without any problem
[16:46] <Mikato> just finaly installed
[16:46] <burek> ok
[16:46] <ubitux> burek: strange error :p
[16:46] <Mikato> ffmpeg
[16:46] <burek> ubitux, I guess I did git pull with root privs at some time in past :S
[16:46] <burek> I'll fix it :)
[16:47] <ubitux> chown -R burek:burek ffmpeg
[16:47] <burek> yes :)
[16:48] <Mikato> so how to convert mkv files without subtitles to mp4 files that contain subtitles
[16:49] <burek> Mikato, ffmpeg -i input_video.mkv -i subtitle.srt -c copy out_with_subs.mp4
[16:49] <Mikato> or put subtitles to mkv files without encoded
[16:49] <ubitux> i'm afraid you can't mux any subtitles in mp4 files :(
[16:49] <burek> or out_with_subs.mkv
[16:49] <ubitux> burek: i'm not able to mux subtitles in mp4, and it seems not possible
[16:49] <burek> ubitux, ok, thanks for the tut on git :)
[16:50] <ubitux> it works with mkv though
[16:50] <burek> I'll take some more look at google for it
[16:50] <ubitux> burek: no problem, you should play a bit with branches, commit etc
[16:50] <Mikato> burek ok but this is without encoded?
[16:50] <ubitux> burek: don't hesitate to ask on the devel irc channel
[16:50] <burek> Mikato, it is just muxing
[16:50] <Mikato> there is no need some path or something to files?
[16:50] <burek> ubitux, ok :)
[16:50] <burek> thanks again :)
[16:50] <ubitux> np
[16:51] <ubitux> "patches welcome" ;)
[16:51] <burek> :)
[16:52] <Mikato> burek but this put a title to mkv files?
[16:52] <burek> Mikato, -i "path/to/file"
[16:52] <burek> yes
[16:52] <Mikato> ok
[16:52] <burek> you can check with: ffmpeg -i out.mkv
[16:52] <burek> and see all the streams
[16:53] <burek> if there are 3 streams (audio/video/subs) then you did it correctly
[16:55] <Mikato> that file should be in srt or txt?
[16:56] <burek> txt is not supported
[16:56] <burek> srt is
[16:56] <burek> type: ffmpeg -codecs | less
[16:56] <burek> or even better
[16:57] <ubitux> srt is supported, but mp4/mov muxer doesn't support it, only txt, but we don't have any txt encoder
[16:57] <burek> ffmpeg -codecs | grep ^..ES
[16:58] <Mikato> Mac:~ Marcin$ ffmpeg -codecs | less
[16:58] <Mikato> ffmpeg version 0.10.3 Copyright (c) 2000-2012 the FFmpeg developers
[16:58] Last message repeated 1 time(s).
[16:58] <burek> try with grep
[16:59] <burek> omg
[16:59] <burek> :D
[16:59] <burek> try with grep :)
[17:02] <burek> I suppose, sooner or later, you'll also ask about how to burn subtitles on the video itself :) so here is the link: http://ffmpeg.gusari.org/viewtopic.php?f=25&t=34
[17:50] <phunyguy> hey folks, I am looking for a good way to encode FLAC to ALAC in linux, (please no flames), and ,maintain 24bit depth.  I did a test run with ffmeg, and it only kept the very baseling tag info (artist, track name, etc), and it downgraded to 16bit.  Is there an alternative to ffmpeg for this task? Thanks.
[17:51] <phunyguy> baseline*
[18:05] <eok> thought i'd ask here, what would be the best way to veiw a stream from vlc in a web browser?
[18:05] <burek> there is no "best way"
[18:05] <eok> as in using a webserver to grab the stream and play it in a player
[18:05] <burek> there is just what you need
[18:06] <madwill> what do you need
[18:06] <burek> if there was the best, everybody would be using it :)
[18:06] <eok> i have a h264 stream of a desktop with sound
[18:06] <madwill> you want to cast your screen
[18:06] <eok> and i use vlc to stream it to http
[18:06] <burek> in what container
[18:06] <eok> i already have ffmpeg do all that stuff
[18:06] <eok> mpegts
[18:07] <burek> do you want web clients to all connect to your vlc?
[18:07] <eok> yea
[18:07] <burek> do you have enough bandwitdh?
[18:07] <eok> every client has 1 gig, and the backbone is 10g
[18:07] <eok> so its not an issue
[18:07] <burek> then you can try flash players, like jwplayer or flowplayer (and change mpegts to flv)
[18:08] <burek> or use html5 which might not be supported on all clients
[18:08] <eok> but i also want to record the session, and i dont want that in flv
[18:09] <burek> then use mpegts and html5
[18:09] <eok> yea, that was more the line i was thinking.. but i've read that it's not working as it should
[18:09] <eok> haven't tried it though :P
[18:10] <eok> so i should maybe try it for my self
[18:17] <madwill> what is : invalid dropping st:0
[18:17] <burek> madwill,
[18:17] <burek> can you please use pastebin.com, to show your command line and its output?
[18:18] <madwill> ok
[18:19] <eok> madwill i get those as well, not all the time but sometimes it spams it in the starts then stops
[18:20] <madwill> it spams so many of theses that i can't get the start of the output
[18:20] <eok> same here
[18:21] <eok> sometimes..
[18:21] <madwill> i've pressed q at the same time as enter.... and can't get to the top :(
[18:27] <eok> seems like mpegts isn't supported in html5
[18:27] <JEEB> depends completely on the implementation :P Not like the spec says anything about container/video/audio formats
[18:28] <eok> i'm just messing around now :=)
[18:28] <eok> http://codepad.org/kdB1zY6Y
[18:29] <eok> this is what i tried
[18:29] <JEEB> anyways, most browsers just implement mp4 / webm atm
[18:29] <JEEB> (H.264/AAC in mp4 and VP8/Vorbis in webm)
[18:30] <JEEB> no-one is stopping anyone from implementing mpeg-ts for live streaming or something, but that doesn't really seem to be a priority for anyone
[18:31] <eok> hmm, what do i use as muxer in vlc?
[18:31] <eok> it complains that it doesn't support non seekable output
[18:32] <eok> when i used mux=mp4
[19:19] <ArchMint> Hello, is "libx264.c:478: undefined reference to `x264_encoder_open_125'" problem with latest git or my compile?
[19:22] <phunyguy> Hey folks, I am really stuck here.  How can I transcode 24bit/96KHz FLAC to 24bit/96KHz ALAC?
[19:22] <phunyguy> in linux perhaps?
[19:26] <beandog> is there even an alac encoder?
[19:29] <sacarasc>  DEA D  alac            ALAC (Apple Lossless Audio Codec)
[19:43] <Mikato> guys did some one used mp4box?
[19:44] <phunyguy> beandog, I know ffmpeg can do it, but it downgrades to 16bit
[19:44] <phunyguy> :(
[19:44] <phunyguy> I got a free iPhone 4S and iPad 3rd gen from work, and I would like to use them :(
[19:53] <hi117> iphone cant play flac?
[19:54] <phunyguy> of course now
[19:54] <phunyguy> not*
[19:55] <phunyguy> it is mp3/aac/alac.
[19:55] <phunyguy> would like to keep lossless, or not use the devices for music. :)
[19:55] <sacarasc> ArchMint: That looks like an error when you have 2 copies of x264 installed. Uninstall the old one.
[19:55] <hi117> woa, it cant, what is apple thinking?
[19:56] <phunyguy> well on the upside, the ALAC codec was made open source
[19:56] <phunyguy> so I will use that if I can.
[19:56] <phunyguy> but I have lots of stuff in 24/96
[19:56] <sacarasc> Can ALAC do that?
[19:56] <phunyguy> i tested in windows using dbPowerAmp, and it can
[19:57] <phunyguy> as well as ona mac with XLD
[19:57] <phunyguy> but I hate those platforms
[19:57] <phunyguy> ...and those are at work only.
[19:57] <sacarasc> You'd have to use them to put the music on the devices anyway, wouldn't you?
[19:58] <phunyguy> well here was my thought process.  Convert to ALAC / m4a and point iTunes at that as the library, so it can be up to date on changes to it.
[19:58] <chandoo> hello
[19:59] <phunyguy> meh this is proving to be more aggravating than it's worth
[19:59] <chandoo>  i have few .flv files with h264 and aac, i want to join them , how to do it
[19:59] <phunyguy> read the man page?
[19:59] <phunyguy> *shrug*
[20:00] <phunyguy> and just use alac as my primary codec for everything.  I also was hoping it would keep all of my tags, and the only way to do that was to script the entire process which I already have done with other formats.  I just cant find a command line that works with 24/96
[20:01] <phunyguy> dbPoweramp did not
[20:01] <phunyguy> XLD is really not preferred as I don't see myself using the mac much.
[20:01] <phunyguy> and I may lose that anyway because it's a "spare"
[20:03] <phunyguy> I also know I don't want to restrict myself to the mac, and if my entire library will primarily by ALAC, I was hoping to find a linux native solution, so in the future, when native apps can update the newer iPhones / iPad, I can just use that.
[20:06] <ArchMint> sacarasc: now I get ffmpeg: error while loading shared libraries: libx264.so.125: cannot open shared object file: No such file or directory, where does it look for the bin/
[20:06] <ArchMint> It's installed
[20:06] <chandoo> i am trying with this but i can only seek first file and not the rest of them "ffmpeg -i $files  -vcodec copy -acodec copy out.flv
[20:07] <fuser> hi all. i used ffmpeg to remove an audio stream from a movie with "ffmpeg -i movia.avi -map 0:0 -vcodec copy -map 0:2 -acodec copy output.avi" but igot a progressive audio delay! does anyone know a possible reason and solution? thanks.
[20:07] <hwk> hello everyone, and good evening
[20:07] <JEEB> ArchMint, if you have built shared you will probably have to use ldconfig to make the system "find" the library
[20:07] <hwk> is there any option in ffmpeg to redirect stderr to stdout ?
[20:07] <lanceio> Hi all, I use "ffmpeg -i souce.flv -s 320x240 source.mp4" to convert to my psp, I want to improve the quality of both sound and video, any suggestions?
[20:07] <JEEB> and of course the library has to be in your LDPATH or whatever
[20:07] <fuser> hwk: 2>&1
[20:07] <hwk> through a pipe
[20:07] <hwk> |
[20:08] <JEEB> lanceio, http://x264.fushizen.eu/random/psp_encoding.txt
[20:08] <hwk> |& works bot not on rh
[20:08] <JEEB> isn't ffmpeg-specific but that's the maximum the PSP can take
[20:08] <hwk> tested on debian
[20:08] <hwk> and pipe stderr works
[20:09] <lanceio> JEEB, can you make it for me? I dont understand the specific things?
[20:09] <ArchMint> now I just get unknown encoder.
[20:09] <ArchMint> I'm not sure how that happened.
[20:09] <fuser> excuse me, has anyone ever experienced a "progressive audio delay" with ffmpeg?
[20:10] <ArchMint> nevermind, I had forgotten "lib", now I know how that happened. >_>
[20:10] Action: JEEB pats ArchMint 
[20:11] <JEEB> lanceio, basically something like this: ffmpeg -i input.derp -vcodec libx264 -crf 22 -preset fast -profile:v main -level 3 -x264opts ref=3:b-pyramid=none:weightp=1 -acodec libfaac out.mp4
[20:11] Action: ArchMint slaps JEEB with a large apple.
[20:11] <JEEB> oi
[20:12] <JEEB> lanceio, set preset to the slowest you can take
[20:12] <hwk>  2>&1 | :)
[20:12] <JEEB> http://mewiki.project357.com/wiki/X264_Settings#preset
[20:12] <JEEB> ^ list of them
[20:12] <JEEB> crf controls quality (find the highest that still looks good, 22 is a good starting point -- higher is more compression, lower is less compression)
[20:12] <lanceio> so i'll go with placebo?
[20:13] <JEEB> well, slowest you can take so it depends completely on how fast you want it to go :P
[20:13] <JEEB> (it controls speed vs compression techniques, basically)
[20:15] <JEEB> so with preset you can basically control how fast/slow the encoding goes, with crf you control the quality level (it differs depending on settings, but should in most cases be more or less similar)
[20:18] <fuser> JEEB: excuse me, have you ever experienced a "progressive audio delay" with ffmpeg?
[20:18] <JEEB> nope
[20:19] <fuser> JEEB: have you any idea about the issue (and how to try to solve it)?
[20:19] <JEEB> nope
[20:19] <fuser> JEEB: thanks anyway
[20:55] <lanceio> JEEB, what of these parameters can I ignore?
[21:00] <JEEB> -profile:v main -level 3 -x264opts ref=3:b-pyramid=none:weightp=1 <- these keep the bit stream of the H.264 stream within PSP's limitations
[21:01] <JEEB> of course, you won't be using some of those features in the fastest presets, but they're worth it to keep there
[21:01] <JEEB> -preset defaults to "medium"
[21:01] <JEEB> so you can leave it out
[21:01] <JEEB> (if you so wish)
[21:02] <JEEB> crf defaults to 23, so if you really want you can remove that -- but it controls the "how much do we compress this" and thus the quality level
[21:02] <JEEB> so not much :P
[21:02] <JEEB> I pretty much gave you the minimum base for PSP compatibility
[21:05] <lanceio> thank you so much man JEEB
[21:05] <lanceio> :D
[21:05] <JEEB> you can see how the profile/level/x264opts basically set up what I wrote up in http://x264.fushizen.eu/random/psp_encoding.txt
[21:06] <JEEB> then there's the aspect ratio stuff you can set if you're encoding 720x480 or 720x576
[21:07] <JEEB> also, to be honest I didn't give you the minimum base, I gave you the minimum base that should work even if you set preset placebo and thus everything is "set to eleven"
[21:07] <JEEB> in other words, limiting what's needed
[21:15] <lanceio> thank you so much for writing so much! :D
[22:16] <eok>  I have a question. i'm a total newb here, but why do i get such a big difference when using ogg with libtheora compared to using mpegts with libx264?
[22:16] <eok> i assume i need to configure it different when using theora, but im not sure how.
[22:17] <eok> i tried this, and the quality was crap
[22:17] <eok> ffmpeg -f x11grab -s 1680x1016 -r 30 -i :0.0+0,0 -vcodec libtheora -preset ultrafast -threads 0 -f ogg test.ogv
[22:26] <sacarasc> libtheora doesn't use -presets, I believe.
[00:00] --- Sat May 26 2012


More information about the Ffmpeg-devel-irc mailing list