[Ffmpeg-devel-irc] ffmpeg.log.20130116
burek
burek021 at gmail.com
Thu Jan 17 02:05:01 CET 2013
[00:00] <llogan> also the FFmpeg wiki is coming along nicely so the arch wiki could link to specific ffmpeg wiki pages to decrease duplication
[00:01] <damaru> can ffmpeg target a certain window, like the gnash player for instance ?
[00:01] <stqn> ah thats interesting& I had problems finding good up to date information on webm encoding
[00:02] <llogan> the ffmepg wiki lacks such an article, AFAIK.
[00:02] <llogan> probably because vp8/webm is usually a waste of time
[00:02] <stqn> eh& why?
[00:02] <damaru> well webm has been quite usefull for javascript video player
[00:02] <llogan> compared to H.264 produced by x264
[00:02] <damaru> (or I am doing something really wrong)
[00:03] <llogan> but i would like to see a VP8/9 in webm article anway for those who want to use it anyway
[00:04] <llogan> damaru: like this: "-i :0.0+200,100" x and y offsets
[00:05] <llogan> or run xwininfo and click on your desired window. it will tell you the offsets and frame size
[00:05] <damaru> kool, I'll play around to get the right offset
[00:05] <damaru> kool
[00:13] <damaru> sweet!! all working, thanks a lot, that was a lot of knowledge in a short ammount ;)
[00:13] <damaru> one last question while i am here, is there some place I can find receipe for ffmpeg exporting for html5 video ?
[00:22] <damaru> thanks :D
[00:32] <tyebud> Is it possible to extract a sprite track from a quicktime movie using ffmpeg?
[00:33] <cbsrobot> tyebud: I was looking at your file
[00:33] <cbsrobot> I don't see any file referneced to it
[00:34] <tyebud> I opened it up in quicktime pro 7 and I'm seeing a sprite track embedded in the file/ It shows as 200~ kb
[00:34] <cbsrobot> basicly you have 3 tracks: video, data and subtitle
[00:34] <cbsrobot> what do you want to do with it ?
[00:37] <tyebud> Well, I've got a web based video player that handles time based events
[00:37] <tyebud> I'm trying to essentially extract the stop points in the .mov file so I can use them in my web player
[00:40] <cbsrobot> tyebud: so you want to extract a list of timecode and chapters ?
[00:41] <tyebud> Correct
[00:56] <cbsrobot> hmmm not sure
[00:56] <cbsrobot> I have to sleep first
[00:57] <tyebud> It's a tough one!
[00:57] <tyebud> I've been researching all day. not many people have shown interest in doing something like this.
[01:03] <cbsrobot> tyebud: still alive ?
[01:03] <tyebud> Yep
[01:03] <cbsrobot> try:
[01:03] <cbsrobot> ffmpeg -i keynote_animation_test.mov test.srt
[01:04] <cbsrobot> so you get the subtitles out
[01:04] <cbsrobot> I guess that is enough to create the chapters aswell
[01:04] <cbsrobot> as I see it you file does not have any chapters
[01:06] <cbsrobot> ah wait - maybe it has
[01:06] <tyebud> The resulting srt file doesn't have any contents
[01:06] <cbsrobot> tyebud: update your ffmpeg
[01:08] <cbsrobot> it seems in the sprite track, the tref > chap atom references to track 3
[01:08] <tyebud> How are you viewing the atom info?
[01:08] <cbsrobot> but it does not seem to have a track 3 (counting from 0)
[01:09] <cbsrobot> but then again I don't know what this sprite track is ...
[01:09] <tyebud> From my reading, the sprite track contols the starting and stopping
[01:10] <tyebud> From what I understand it can be used for dvd menu type stuff
[01:11] <tyebud> So, in QT Pro, I'm seeing this in the tracks view - http://cl.ly/MBwA
[01:11] <tyebud> there's a disabled chapter track
[01:12] <cbsrobot> I use atom inspector to see the qt atoms
[01:12] <cbsrobot> you can find it somewhere
[01:12] <tyebud> win or mac?
[01:12] <cbsrobot> mac
[01:13] <cbsrobot> try: http://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wo/5.1.17.2.1.3.3.1.0.1.1.0.3.12.3.3.1
[01:14] <cbsrobot> you need to login
[01:16] <tyebud> Which one am I looking at?
[01:17] <cbsrobot> which what
[01:17] <tyebud> I see a list of several different sdks
[01:17] <cbsrobot> ha
[01:17] <cbsrobot> no idea
[01:18] <cbsrobot> you have to dig a bit
[01:18] <tyebud> Oh I found the atom inspector
[01:22] <cbsrobot> don't get radioactive with all these atoms
[01:23] <tyebud> haha
[01:23] <tyebud> I'm going to get radiation poisoning..
[01:24] <tyebud> The Sample to Time atom looks interesting
[01:29] <tyebud> Alright, I need to get out of here for a bit. Thanks for all your help, cbsrobot
[01:29] <cbsrobot> np
[02:59] <stqn> bye
[06:20] <Abhijit> hi
[06:20] <Abhijit> definition of avcodeccontext is inside avcode.h but i found out that in libavg programming they have used avcodeccontext wihtout including acvodec.h
[06:21] <Abhijit> how they have done it? any idea?
[06:21] <Abhijit> help please
[06:40] <Abhijit> hello
[06:40] <Abhijit> any help please
[07:06] <praveenmarkandu> hi trying to run this command: ffmpeg -i test.mov -c:v libx264 -c:a libfaac -vf "scale=720:-1" output.mp4
[07:06] <praveenmarkandu> it tells me something is wrong with my bitrate, hieght or width
[07:07] <praveenmarkandu> but when i do a -s 720x404 it works fine
[07:07] <praveenmarkandu> can i not use -vf "scale=720:-1"
[08:01] <AL13N> praveenmarkandu: why do you want to use -vf scale? doesn't -s 720x404 works as well?
[08:02] <AL13N> i'm using -s 640x480 and the videos come out as 640x422
[09:56] <praveenmarkandu> AL13N: i want to keep the aspect ratio the same and only adjust the width
[09:56] <praveenmarkandu> is that possible?
[10:26] <cbsrobot> praveenmarkandu: sure
[10:33] <praveenmarkandu> cbsrobot: what command do i use to do that?
[10:34] <praveenmarkandu> -vf "scale:720:-1" doesnt work
[10:34] <cbsrobot> pastebin the command you used
[10:34] <cbsrobot> and the full output
[10:34] <praveenmarkandu> i found that somewhere online
[10:34] <cbsrobot> in irc speak:
[10:36] <praveenmarkandu> cbsrobot: http://pastebin.com/RxaRN1aN
[10:36] <praveenmarkandu> it says the height isnt divisible by 2
[10:37] <praveenmarkandu> .... common, there must be a way to get around that
[10:38] <cbsrobot> yeah but it depends on the pix fmt used
[10:38] <cbsrobot> yuv420p cannot be odd
[10:38] <cbsrobot> so use the nearest approximation: 306
[10:38] <cbsrobot> or 308
[10:39] <cbsrobot> i guess its 306
[10:39] <praveenmarkandu> found this bug: https://ffmpeg.org/trac/ffmpeg/ticket/309
[10:39] <praveenmarkandu> i guess it hasnt been addressed
[10:39] <praveenmarkandu> i just want it to be automatic. i have to batch a lot of videos. all with different source resolutions
[10:41] <cbsrobot> so tuse the workaround
[10:41] <cbsrobot> d
[10:42] <cbsrobot> *use
[10:42] <praveenmarkandu> oh -2?
[10:43] <cbsrobot> try it
[10:45] <praveenmarkandu> cbsrobot: -2 doesnt work, 854:trunc(ow/a/2)*2 seems to start. will look at the output once it is done
[10:50] <brontosaurusrex> is it usual that US broadcasts are 60p?
[11:24] <brontosaurusrex> will ( ffmpeg -i video.mov -i logo.png -filter_complex "scale=1230:800,overlay=0:0" ) scale logo as well, or only video?
[11:31] <Mavrik> brontosaurusrex: if you switch order it will
[11:31] <Mavrik> so -vf overlay=0:0,scale=1230:800
[11:31] <brontosaurusrex> so logo is intact in this case right?
[11:32] <Mavrik> yes
[11:32] <Mavrik> because you scale the iimage first
[11:32] <brontosaurusrex> good
[11:32] <Mavrik> and then apply the logo
[11:32] <brontosaurusrex> another question: proper framerate conversion possible in ffmpeg? and proper ivtc?
[11:33] <Mavrik> I don't know what "proper" is
[11:33] <Mavrik> ffmpeg can convert framerate
[11:33] <Mavrik> it can't do telecine as far as I know
[11:34] <Mavrik> it basically just either duplicates or drops frames as needed
[11:34] <Mavrik> so for proper PAL/NTSC conversion you'll need something else :\
[11:34] <brontosaurusrex> ok
[11:47] <brontosaurusrex> but fractional framerates cant be used? like 29.97 ?
[11:48] <Mavrik> mhm
[13:52] <_julian> hi
[13:52] <_julian> which protocols do I have to enable on build to get rtsp support?
[13:59] <Mavrik> rtsp? :)
[14:20] <_julian> Mavrik: was some more, udp and rtp for example :)
[14:26] <shevy> hey guys
[14:26] <shevy> I have a .mp3 file which I want to cut with ffmpeg
[14:26] <TeknoJuce> is there a way to get ffserver to capture and stream with less than 1ms of delay on a smaller clocked device like a 500Mhz processor, I can get this from MPEG_Streamer but not from ffmpeg is MPEG_Streamer based on anything to do with ffmpeg?
[14:26] <shevy> this is possible via -ss
[14:27] <shevy> my question is - can I combine several -ss together in the same ffmpeg commandline?
[14:29] <TeknoJuce> shevy ffmpeg -i son.wav -i video_origine.avi video_finale.mpg
[14:31] <gxk> how to create avi file from video and 2 separate audio files in the way that at playtime all audio sources should be heard at the sane time?
[14:32] <Mavrik> shevy: not really, no
[14:33] <shevy> ok
[14:40] <TeknoJuce> https://chrome.google.com/webstore/detail/chrome-remote-desktop/gbchcmhmhahfdphkhkmpfmihenigjmpp/details
[14:41] <TeknoJuce> oops
[14:41] <TeknoJuce> wrong window
[14:59] <gxk> can to play video with 2 audio files at the same time?
[15:32] <Olive6767> csrobot: Hello :) Got your messages, -metada:s works great, thanks ! :)
[15:34] <cbsrobot> Olive6767: spell my nick correctly or use the tab key to autocomplete !
[15:34] <cbsrobot> but nice to hear
[15:34] <Olive6767> oops! sorry :-)
[15:46] <brontosaurusrex> gxk: ffmpeg -i video -i left.mono.wav -i right.mono.wav -map 0:v -map 1:a -map 2:a , ect < example
[15:47] <brontosaurusrex> shevy: a combo of ss and duration
[16:00] <_julian> how can I check if a frame which I read with av_read_frame() is an I frame?
[16:02] <mpfundstein> +Namegduf: Oh, i thought unsafe was depricated in 1.0
[16:04] <Mavrik> _julian: ehm
[16:04] <Mavrik> AVFrame has a "key_frame" field?
[16:13] <_julian> Mavrik: but AVFrame stores the decoded frames doesn't it? I want to know if I am at a keyframe before starting to decode
[16:29] <shevy> brontosaurusrex a combo? ffmpeg -ss 22 -ss 33 ?
[17:15] <DonGnom> how do i encode a side-by-side video to get a 2D version from (dropping one side)?
[17:17] <Mavrik> DonGnom, use the crop filter (http://ffmpeg.org/ffmpeg-filters.html#crop) to crop away a side
[17:20] <DonGnom> Mavrik: hm but isnt it then little malformed? (the video is 1080p but only one half used for each eye but full height for both of the videos so isnt the result then 960x1080 instead of 1920x1080?
[17:20] <Mavrik> DonGnom, yeah, it's anamorphic
[17:20] <DonGnom> that means?
[17:21] <Mavrik> that means it's stored as a 960x1080 image which gets stretched on TV
[17:21] <Mavrik> (the "SAR" flag tells it to do that)
[17:21] <Mavrik> you can of course stretch image with "scale" filter to 1920x1080 if you want
[17:22] <Mavrik> just make sure you scale AFTER cropping
[17:22] <Mavrik> :)
[17:22] <DonGnom> Mavrik: ok so i can do something like -codec:v copy -<crop stuff> -codec:a copy and for the chapter metadata too and i get a anamorphic video or i can add the scale stuff and get a "normal" video?
[17:22] <DonGnom> and with "after cropping" you mean in an extra step?
[17:22] <Mavrik> DonGnom, first of all, you can't drop with "codec:v copy", you have to reencode
[17:23] <Mavrik> and I mean to make sure your filters are in the right order
[17:23] <Mavrik> so
[17:23] <DonGnom> ok
[17:23] <Mavrik> -vf crop=<crop parameters>,scale=1920:1080
[17:23] <DonGnom> thanks!
[17:23] <Mavrik> or better yet
[17:23] <Mavrik> -vf crop=<crop parameters>,scale=1920:1080,setsar=1:1
[17:24] <DonGnom> Mavrik: ok thank you very much ill try that
[17:42] <DX099> hello all, what is the relationship between Totem and ffmpeg ? can Totem can play all videos format that ffmpeg can once the later is installed ?
[17:43] <Mavrik> um
[17:43] <Mavrik> ffmpeg is actually a program to transcode videos from one format to another
[17:43] <saste> DX099, totem makes use of the gstreamer framework
[17:43] <Mavrik> and yeah, Totem uses gstreamer to decode videos
[17:43] <DX099> ok
[17:43] <saste> which in turn makes use of the ffmpeg libraries (libavcodec/libavformat in particular)
[17:43] <Mavrik> yeah
[17:43] <Mavrik> complicated enough for ya? ;)
[17:43] <saste> so in theory it should support as many formats as supported by the linked libraries
[17:44] <DX099> even though the gstreamer-ffmpeg package still asks for libavcodec even when ffmpeg is installed ?
[17:45] <durandal_1707> because it is build for some other ffmpeg lib
[17:46] <DX099> ok
[17:46] <DX099> but when it comes to mplayer and vlc, they're working directly with ffmpeg, right ?
[17:47] <Mavrik> actually neither uses ffmpeg libraries currently
[17:47] <Mavrik> they both have their own forks
[17:47] <DX099> ok
[17:49] <DX099> so on linux, apart from CLI ffplay and gstreamer far related cousin, no player actually uses ffmpeg to decode videos the way it can be done on Windows ?
[17:49] <Mavrik> DX099, most distro-installed players use gstreamer (and by extension ffmpeg libs) with exception of mplayer and vlc
[17:49] <DX099> ok
[17:56] <saste> Mavrik, Mplayer still uses standard FFmpeg libs, VLC can be compiled with FFmpeg or Libav libs
[17:58] <videoman> Using version git-2013-01-13-d676598 for HLS, segment_time parameter seems to be ignored
[18:16] <videoman> thanks, ffmpeg ignoring segment_time : http://pastebin.com/h0DyABwR
[18:34] <saste> videoman, read the segment manual about key frames
[18:35] <videoman> Will do, thanks saste
[18:35] <saste> you can use -force_key_frames, a better solution is WIP, check for example http://gitorious.org/~saste/ffmpeg/sastes-ffmpeg/commits/extend-segment-20130113
[20:11] <AL13N> i have an odd thing: i use -s 640x480 -r 12 and i convert to mp4/ogg/webm; however, the image preview for the webm is stretched into 640x480, while the others have 640x422, subsequently taking an image with -vf frames=1 also stretches the image
[20:11] <AL13N> why would the image preview of mp4 and ogg not be stretched and webm would be stretched?
[20:29] <llogan> AL13N: what is generating the previews?
[20:30] <llogan> burek: haven't seen you here for a while
[20:30] <burek> hi llogan :) holidays :D
[22:35] <AL13N> burek: llogan: https://gist.github.com/4551150
[22:35] <AL13N> from "ffmpeg -i testfotos/DSC_0222.MOV -s 640x480 -frames:v 1 file3.jpg 2>&1 | wgetpaste"
[22:42] <AL13N> also : "ffmpeg -ss 00:00:10 -i testfotos/DSC_0222.MOV -s 640x480 -r 12 file.webm 2>&1 | wgetpaste" has this output: https://gist.github.com/4551173
[22:42] <AL13N> the preview i see in a file browser is 640x480 exactly, while the video has the aspect ratio from before
[22:43] <AL13N> the weird thing is that if i do the same but with .ogg or .mp4, the preview i see in a browser has the same aspect ratio as the video
[22:43] <AL13N> so, this is only webm
[22:43] <AL13N> burek: llogan: any idea?
[23:43] <llogan> AL13N: not really, unfortunately. what file browser? how do yo uknow it isn't the issue?
[23:46] <burek> AL13N 1920/1080 = 1.77 and 640/480=1.33
[23:46] <burek> that's expected result that you are getting
[23:46] <burek> so, i guess everything is working fine
[23:49] <llogan> AL13N: so you can do this instead: "-vf scale=640:-1"
[23:50] <Zeeflo> burek: u here?
[23:50] <Zeeflo> What was the command to include .srt subs?
[23:50] <Zeeflo> like. "ass=blabla.ass"
[23:51] <klaxa> -vf ass=somefile.ass
[23:51] <klaxa> iirc
[23:51] <Zeeflo> dude, i asked for srt :D
[23:51] <klaxa> ah uh...
[23:53] <burek> Zeeflo http://www.ffmpeg.org/ffmpeg-filters.html#subtitles-1
[23:53] <Zeeflo> Burek: Thank you
[23:53] <burek> -vf subtitles=sub.srt
[23:53] <burek> :beer:
[23:54] <Zeeflo> :D
[23:54] <Zeeflo> when will you release an updated build?
[23:54] <burek> of what
[23:54] <Zeeflo> ffmpeg
[23:54] <Zeeflo> standalone¨
[23:54] <klaxa> i couldn't find that page via google, what the hell
[23:55] <burek> Zeeflo ffmpeg.static.64bit.2013-01-16.tar.gz
[23:55] <burek> it's up-to-date i guess
[23:55] <burek> klaxa
[23:55] <Zeeflo> Have you changed anything in it since december?
[23:55] <burek> try from there
[23:55] <burek> "FFmpeg filters"
[23:56] <Zeeflo> alright! Getting a new copy then
[23:56] <burek> Zeeflo, I've done a lot of stuff since december
[23:56] <burek> I really don't remember exactly what was it about :S
[23:56] <llogan> klaxa: the man page was segmented recently
[23:56] <klaxa> ah yeah, well when i punched "ffmpeg-filters" into google that never showed up, then i looked for "libavfilter" but that documentation wasn't what i was looking for :V
[23:56] <Zeeflo> i just noticed that the filesize has been the same for like 2 months or something
[23:56] <klaxa> good to know thanks :)
[23:56] <burek> Zeeflo, I've added ffprobe too
[23:56] <Zeeflo> yea
[23:56] <Zeeflo> I see!
[23:56] <burek> a lot of people complained for it not being there
[23:56] <Zeeflo> I just got it
[23:56] <burek> that's why the binary got bigger
[23:57] <burek> -binary +archive
[23:57] <Zeeflo> i hardly ever use probe, but its good to have
[23:58] <Zeeflo> burek: if I use srt subs what will the standard font and size be?
[23:58] <Zeeflo> do you know?
[23:58] <burek> i didn't test it
[23:58] <burek> try asking ubitux i think
[23:58] <burek> i believe he worked on that filter
[23:59] <Zeeflo> ubitux: what is the standard font and size if I use the srt filter?
[23:59] <Zeeflo> ill make a test and see how it looks!
[00:00] --- Thu Jan 17 2013
More information about the Ffmpeg-devel-irc
mailing list