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

burek burek021 at gmail.com
Fri Sep 20 02:05:01 CEST 2013


[11:19] <BoR0> hi. I have a question. I am writing a function to extract out a frame at nth position (regardless if position is timestamp or frame number). so I managed it to be a frame number by calling av_read_frame() N times and thus it will catch the Nth frame and extract a screenshot out of that. but this is slow, because it receives 0...N frames to get the Nth frame. so I thought to use avformat_seek_file and then call av_read_frame(), but this only gives me the firs
[11:19] <BoR0> t frame always. what can I do?
[11:24] <BoR0> saste, can you suggest how I'd go with this?
[11:24] <saste> BoR0, skip all non-key frames, and pick your thumbnails from key frames
[11:25] <BoR0> does that basically mean avformat_seek_file(); av_read_frame(); ?
[11:25] <BoR0> doesn't*
[11:26] <saste> you could get duplicated frames that way, since you don't know how sparse are the keyframes
[11:26] <saste> so basically you need to demux all the file, and decode only keyframes
[11:27] <BoR0> what does "demux all the file" mean? will that operation be fast?
[11:27] <saste> BoR0, demuxing is usually fast, decoding is slower
[11:28] <BoR0> okay, but I still don't know what demuxing means :) which FFmpeg functions can be used to do what you suggested?
[11:29] <saste> av_read_frame() does demuxing (extract packets from stream, then you need to decode them)
[11:29] <BoR0> ah, cool
[11:29] <BoR0> how can I check if av_read_frame returns a keyframe?
[11:30] <saste> BoR0, grep the docs/examples/source code
[11:31] <saste> BoR0, you check the packet flags
[11:31] <BoR0> thanks for your help! I think I have all the needed tools to go further with thsi
[11:31] <BoR0> this*
[12:10] <JadedNZ> Hi
[12:10] <JadedNZ> IS there a official room for ffmpeg-php ?
[12:18] <JadedNZ> channel I mean
[13:27] <BoR0> is there a way to get total pts that one video contains?
[13:48] <saste> BoR0_, seek towards the end of the file, and get the last pts
[14:07] <BoR0_> saste, wouldn't that be too expensive? this is related to the thumbnail maker I'm making. basically I want the user to be able to input "30%" of pts and get thumbnail around 30%
[14:08] <BoR0_> so basically I have to go av_read_frame until end to get totalpts and then start av_read_frame again from beginning and go to specific frame
[14:09] <BoR0_> specific pts*
[14:42] <saste> BoR0_, it's not what i wrote
[14:43] <BoR0_> oh, you mean av_seek then get packet then av_seek to 0 ?
[14:43] <BoR0_> get packet (and thus get pts)
[14:44] <saste> not all files start with 0
[14:44] <BoR0_> yes, that too. so av_seek end, get packet->get_pts, av_seek to video_start ?
[14:44] <saste> basically you need to do: seek to end, read and get last pts, seek to start, duration = end -start
[14:44] <BoR0_> excellent! thanks again!
[14:45] <BoR0_> btw, for seek to *apply*, I use av_seek and then av_read_frame() ?
[14:45] <BoR0_> I basically tried this but it seems like the position always stood at 0
[14:45] <BoR0_> stood at video_start*
[14:51] <oldfriend> does anybody know why I'm getting an error "./configure: line 716: gcc: command not found"
[14:51] <file> you are most likely lacking a build environment
[14:55] <oldfriend> file: I have installed ALL the components of MinGW-get ... what else should I install?
[15:01] <zap0> what else do you need?
[15:03] <oldfriend> I don't know what I need! but it's funny why MinGW is not enough for compiling ffmpeg ... and most interesting? that MinGW doesn't contain gcc???
[15:03] <oldfriend> please recomment where from can I download normal compiler
[15:14] <oldfriend> at least recomment where from download MinGW
[15:14] <BoR0_> I am using mingw. you need to install gcc for it, it usually asks you during mingw installation
[15:14] <oldfriend> BoR0_: where from?
[15:15] <BoR0_> mingw during installation asks you if you want to install gcc, g++
[15:17] <oldfriend> BoR0_: really? )) I wasn't asked about anything)) that's why I'm asking where from to download normal MinGW ... seems mingw.org is not right place
[15:18] <viric> you may try http://tdm-gcc.tdragon.net/download
[15:19] <viric> not that I've used tdm's.
[15:22] <oldfriend> the problem is that there is no complete manual for this, I'm talking not even about compiling, but just about needed instruments
[15:24] <saste> oldfriend, did you check the ffmpeg wiki?
[15:25] <saste> http://ffmpeg.org/trac/ffmpeg/wiki/MingwCompilationGuide
[15:26] <saste> i wrote that a few years ago, so i don't know how updated it is, you're welcome to update is as you go (this is a community project)
[15:27] <oldfriend> @saste: )) this guide doesn't work - everybody writes about this on the forums ... and I wasfailed too
[15:27] <saste> so a lot of people complain, but nobody fixes it
[15:28] <saste> you can ask on the zeranoe forum
[15:28] <oldfriend> exactly! msot of people pay money ffmpeg developers for compiles, that's why there is no normal tutoral
[15:29] <saste> oldfriend, that's bullshit, also there are available windows build in case you don't want to waste time on that
[15:29] <oldfriend> I thought it's better to ask for help here instead of zeranoe
[15:30] <oldfriend> @saste: I need my own build, with my settings
[15:30] <saste> oldfriend, well i almost never compile on windows, when i did i kept my notes on the wiki, you're welcome to improve it if you manage to do it
[15:33] <oldfriend> @saste: anyway thank you for that, but damn why it's so difficult? ))
[15:35] <saste> oldfriend, what's wrong with my guide?
[15:35] <saste> the last time i used a sort of GUI, which installed all components (including gcc)
[15:36] <saste> you need to install the dev environment, including gcc and other related tools
[15:36] <saste> since then mingw and ffmpeg changed a lot, so requirements may be different
[15:39] <oldfriend> @saste: no problem with your guide, sorry ... meant ffmpeg compilation
[15:39] <BoR0_> I can't say that installing and compiling mingw and ffmpeg is as easy as visual studio projects etc. but it's not that hard either. you basically need to get the right gcc and make version for mingw
[15:39] <saste> oldfriend, lot of dependencies
[15:39] <BoR0_> start by installing the default ones, and resolve errors as you go through the compilation process. google stuff, that's how I did it
[15:40] <saste> the only hard deps for a clean ffmpeg build is a C development environment and yasm
[15:41] <oldfriend> guys, for now I was able to compile ffmpeg with MinGW ... but my build has additional dependences with MinGW dlls ... maybe you know how to exclude these dependences?
[15:42] <LordThumper> Hi can ffmpeg read Mpeg-TS streams with no PAT/PMT tables?
[15:42] <tsjiller> yes
[15:45] <oldfriend> that's question is much more difficult
[15:51] <Mavrik> oldfriend, what kind of additional dependencies?
[15:51] <LordThumper> "Could not find codec parameters"
[15:51] <LordThumper> From ffplay
[15:51] <oldfriend> my ffmpeg build asks for libz-1.dll
[15:52] <oldfriend> if I place this dll with build new one dll is needed and so on
[15:54] <LordThumper> ffprobe gives "End of file"
[15:54] <Mavrik> oldfriend, well you have to compile those statically if you don't want dynamic dependencies
[15:54] <Mavrik> it's the same as on linux
[15:55] <oldfriend> Mavrik: maybe you know how to do this? since --enable-static is not helpful in this case
[15:56] <Mavrik> of course it is
[15:56] <Mavrik> but you need static dependent libs as well
[15:56] <Mavrik> if your libz isn't static, then ffmpeg will fall back to the dynamic version
[15:58] <oldfriend> Mavrik: hm ... this can relate to all the other compinents? not only libz?
[15:58] <Mavrik> yep.
[15:59] <oldfriend> horror
[15:59] <saste> Mavrik, this reminds me that we should write a generic compilation guide on the wiki
[15:59] <saste> even if not specific to ffmpeg
[15:59] <oldfriend> @saste: please do this ASAP))
[16:15] <Mavrik> saste, maybe
[16:16] <Mavrik> on the other hand, it helps if people that use ffmpeg know at least the basics of the OS they're dealing with -_-
[16:41] <ac_slater> Hey guys. I'm getting started into the world of video/image manipulation (as a developer). I'm reading some of the ffmpeg API and scratching my head at all of the basic stuff like bitrates, etc. Is there a good reference or book or something anyone can recommend for me to get started. Wikipedia is working for now, but I feel soon I'll need some backed up information. Thanks guys.
[16:47] <BoR0_> the only valuable resource I found was this channel so far, eventhough it's not as active
[16:49] <BoR0_> can someone help me around this? I can't get to extract any frame.  http://pastebin.com/mPncanwb
[17:07] <Mavrik> ac_slater, sadly, reading ffmpeg.c and doc/examples is pretty much the best source :/
[17:10] <Mavrik> BoR0_, that looks like a wrong use of seek call
[17:10] <Mavrik> is using Max int and min int for TS boundaries ok_
[17:10] <Mavrik> ?
[17:10] <BoR0_> I modified it, and it now works
[17:10] <ac_slater> Mavrik, fair enough. Thanks for the tip
[17:10] <BoR0_> basically I call it after av_read_frame() and if seek is success I need to call read_frame again
[17:11] <Mavrik> ac_slater, but before actually coding, make sure you read up on container and stream structure of format you're trying to de/encode
[17:11] <BoR0_> while (av_readframe()) { if seek success{set seeked = true; continue } }
[17:11] <Mavrik> ac_slater, or you'll have hellovatime if you don't understand basics
[17:12] <ac_slater> Mavrik, right. Thankfully I'm avoiding a container right now and looking at raw h.264. After looking at the spec at 732pgs, I'll probably start smaller.
[17:54] <sky2> hello
[17:54] <sky2> need a bit of help
[17:54] <sky2> i wanna convert a .mov to 3gp , how to do it via terminal
[17:54] <sky2> im on MINT13
[18:03] <sky2> hello , need a bit of help
[18:03] <sky2> i wanna convert a .mov to 3gp , how to do it via terminal
[18:03] <sky2> im on MINT13
[18:03] <sky2> MAYA
[18:04] <sky2> pls help
[18:04] <LithosLaptop> what codecs does the .mov file use?
[18:05] <sky2> sorry , LithosLaptop u r asking me?
[18:06] <LithosLaptop> yes sorry
[18:06] <sky2> i have a video which is .mov & i wanna convert it to .3gp using ffmpeg
[18:06] <sky2> im not sure which codecs does it use
[18:08] <LithosLaptop> ffmpeg -i input.mov
[18:09] <LithosLaptop> paste the results of that command line for me into pastebin
[18:09] <sky2> ok
[18:09] <LithosLaptop> replace input.mov with the real filename
[18:10] <sky2> ty
[18:10] <sky2> LithosLaptop:
[18:10] <sky2> gimme few mins
[18:10] <LithosLaptop> ok
[18:10] <sky2> im getting back
[18:15] <sky2> LithosLaptop: its saying that ffmpeg is not currently installed
[18:15] <sky2> sudo apt-get install libav-tools
[18:19] <sky2> LithosLaptop: its saying no such file directory
[18:20] <LithosLaptop> are you specifying the correct path to the input file?
[18:21] <sky2> also console says that *** THIS PROGRAM IS DEPRECATED ***
[18:21] <sky2> This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[18:21] <LithosLaptop> not really
[18:21] <sky2> ok
[18:22] <LithosLaptop> avconv just branched off ffmpeg. ffmpeg still very alive
[18:22] <sky2> ok
[18:22] <sky2> its on my desktop
[18:23] <sky2> so what i should type in terminal to give the correct path
[18:23] <sky2> earlier it was on another partition . i just got it placed on my desktop
[18:23] <sky2> for my convenience
[18:24] <LithosLaptop> Iv'e never had linux installed before. I am not sure where the user's Desktop is located
[18:24] <sky2> so what would be the exact command
[18:25] <sky2> then pls refer me a loaction u r comforatbale with
[18:25] <sky2> comfortable*
[18:25] <LithosLaptop> ffmpeg -i pathToFile/FileName.mov
[18:25] <LithosLaptop> can you maybe just move that file to somewhere else?
[18:26] <sky2> yes
[18:26] <sky2> i can just copy & place it on any loaction
[18:28] <LithosLaptop> yeah do it so that you know the full path to the file. I can't give you a path because I don't know what paths are available on linux :)
[18:29] <relaxed> $HOME/somewhere/file.mov
[18:30] <sky2> relaxed: its on my desktop & file name is 142306432_l.mov
[18:30] <relaxed> $HOME/Desktop/142306432_l.mov
[18:31] <LithosLaptop> try: ffmpeg -i $HOME/Desktop/142306432_l.mov
[18:31] <sky2> so its like ffmpeg -i ~/desktop/142306432_l.mov << is that ok?
[18:31] <LithosLaptop> ok
[18:31] <LithosLaptop> try it
[18:31] <sky2> ok
[18:32] <LithosLaptop> it will complain about an output file, but that is ok
[18:32] <sky2> ok
[18:32] <LithosLaptop> just want the output before that
[18:33] <sky2> /home/sky/desktop/142306432_l.mov: No such file or directory : output shows
[18:33] <relaxed> find . -name 142306432_l.mov
[18:33] <relaxed> will find it and give you the correct path
[18:34] <sky2> find . -name 142306432_l.mov <, type this in terminal?
[18:34] <relaxed> correct
[18:35] <sky2> relaxed: terminal does not pull out any output
[18:35] <sky2> oh ok
[18:35] <sky2> now it has given out
[18:35] <sky2> cool
[18:36] <sky2> ./Desktop/142306432_l.mov
[18:36] <LithosLaptop> lol who would of guessed :)
[18:36] <sky2> lol
[18:36] <sky2> :p
[18:36] <relaxed> I said that earlier!
[18:36] <sky2> yep
[18:36] <sky2> it needs a .
[18:37] <sky2> full stop
[18:38] <sky2> so ffmpeg -i ~./Desktop/142306432_l.mov
[18:39] <relaxed> ffmpeg -i Desktop/142306432_l.mov
[18:39] <relaxed> or ffmpeg -i ~/Desktop/142306432_l.mov
[18:39] <sky2> ok
[18:39] <relaxed> or ffmpeg -i $HOME/Desktop/142306432_l.mov
[18:41] <sky2> ok im pasting the out put in pastebin
[18:43] <sky2> http://pastebin.com/UJWJp1hS
[18:43] <sky2> LithosLaptop:
[18:43] <LithosLaptop> ok
[18:43] <sky2> thats the pastebin URL
[18:43] <sky2> ok
[18:44] <LithosLaptop> I'll give a ffmpeg command you can try
[18:44] <LithosLaptop> brb
[18:44] <sky2> ok
[18:44] <sky2> ty for the help with the command line relaxed
[18:45] <relaxed> ffmpeg -i ~/Desktop/142306432_l.mov -q:v 3 output.3gp
[18:46] <sky2> btw relaxed , i did use the cmd "ffmpeg -i $HOME/Desktop/142306432_l.mov" just for a check as u had given out
[18:46] <relaxed> HAve a look at the output of $(ffmpeg -h muxer=3gp | less)
[18:47] Action: relaxed goes to sleep
[18:47] <sky2> & the output was like bash: /home/sky/Desktop/142306432_l.mov: Permission denied
[18:47] <sky2> ok
[18:48] <LithosLaptop> ffmpeg -i $HOME/Desktop/142306432_l.mov --c:v libx264 -b:v 1500k -c:a libfdk_aac -b:a 128k $HOME/Desktop/test.3gp
[18:48] <sky2> Unrecognized option 'q:v'
[18:48] <sky2> Failed to set value '3' for option 'q:v'
[18:49] <LithosLaptop> if it complains about fdk_aac:
[18:49] <sky2> so try that cmd out in TERM ? LithosLaptop i
[18:49] <LithosLaptop> yeah
[18:49] <relaxed> change -q:v 3 in my command to -qscale 3
[18:50] <sky2> ok LithosLaptop
[18:50] <sky2> ok relaxed
[18:51] <sky2> LithosLaptop: this is the output of the cmd as given by u " ffmpeg -i $HOME/Desktop/142306432_l.mov --c:v libx264 -b:v 1500k -c:a libfdk_aac -b:a 128k $HOME/Desktop/test.3gp
[18:51] <sky2> ops sorri
[18:51] <sky2> sorry*
[18:51] <sky2> Unrecognized option '-c:v'
[18:51] <sky2> Failed to set value 'libx264' for option '-c:v'
[18:51] <LithosLaptop> ahh ok
[18:51] <LithosLaptop> oops
[18:52] <sky2> trying out with relaxed
[18:52] <LithosLaptop> ffmpeg -i $HOME/Desktop/142306432_l.mov -c:v libx264 -b:v 1500k -c:a libfdk_aac -b:a 128k $HOME/Desktop/test.3gp
[18:52] <LithosLaptop> had two dashes
[18:54] <sky2> ffmpeg -i ~/Desktop/142306432_l.mov -qscale 3 output.3gp
[18:54] Last message repeated 1 time(s).
[18:54] <sky2> sorry
[18:54] <sky2> i pasted that in TERMINAL
[18:55] <sky2> last line refres as this " Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
[18:55] <sky2> refers*
[18:55] <LithosLaptop> did mine complain about something again?
[18:56] <sky2> sorry , did not get u
[18:56] <LithosLaptop> no prob
[18:56] <sky2> what i shd change in your cmd line? LithosLaptop
[18:56] <LithosLaptop> I pasted a new one. --c:v changes to -c:v
[18:57] <sky2> oh sorry my bad just overlooked
[18:57] <sky2> executing yours cmd LithosLaptop
[18:58] <sky2> Unrecognized option 'c:v'
[18:58] <sky2> Failed to set value 'libx264' for option 'c:v'
[18:58] <LithosLaptop> ohh
[18:58] <sky2> same error came i think LithosLaptop
[18:58] <LithosLaptop> you need the old way
[18:58] <LithosLaptop> brb
[18:58] <sky2> okie
[19:00] <LithosLaptop> ffmpeg -i ~/Desktop/142306432_l.mov -vcodec libx264 -vb 1500k -strict experimental -acodec aac -ab 256k -cutoff 15000 ~/Desktop/test.3gp
[19:01] <sky2> ok
[19:02] <sky2> Unknown encoder 'libx264'
[19:02] <sky2> hope its almost near
[19:03] <sky2> just an encoder issue
[19:03] <sky2> i may be wrong
[19:03] <sky2> im totally noob :p
[19:03] <LithosLaptop> ffmpeg -i ~/Desktop/142306432_l.mov -vcodec mpeg4 -vb 3000k -strict experimental -acodec aac -ab 256k -cutoff 15000 ~/Desktop/test.3gp
[19:03] <LithosLaptop> try that
[19:03] <sky2> okie
[19:04] <sky2> yup
[19:04] <sky2> RUNNING
[19:04] <sky2> COOL, 3gp file on my desktop
[19:05] <LithosLaptop> haha
[19:05] <LithosLaptop> cool
[19:05] <sky2> but not playable
[19:05] <LithosLaptop> aww
[19:05] <LithosLaptop> hmm
[19:05] <LithosLaptop> what player?
[19:06] <sky2> movie player
[19:06] <sky2> by default it was grabbed by Mplayer
[19:06] <sky2> i sent it to Trash
[19:06] <sky2> :p
[19:06] <LithosLaptop> ffmpeg -i ~/Desktop/142306432_l.mov -vcodec h263 -vb 3000k -strict experimental -acodec aac -ab 256k -cutoff 15000 ~/Desktop/test.3gp
[19:07] <sky2> again try that ?
[19:07] <LithosLaptop> yeah with h263 instead of mpeg4
[19:07] <sky2> cool
[19:07] <sky2> Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height
[19:07] <LithosLaptop> oops
[19:08] <sky2> -.-
[19:08] <LithosLaptop> yeah maybe there are some limitations for h263
[19:08] <LithosLaptop> argh
[19:08] <sky2> ahh ok
[19:08] <LithosLaptop> but mpeg4 should work..
[19:08] <sky2> yup
[19:08] <sky2> hope experiment shd be removed
[19:08] <sky2> i dunno
[19:08] <sky2> im nOOb
[19:08] <sky2> :p
[19:09] <LithosLaptop> ffmpeg -i ~/Desktop/142306432_l.mov -vcodec libxvid -vb 3000k -strict experimental -acodec aac -ab 256k -cutoff 15000 ~/Desktop/test.3gp
[19:09] <sky2> ok
[19:10] <sky2> Unknown encoder 'libxvid'
[19:10] <LithosLaptop> :(
[19:10] <sky2> :(
[19:10] <LithosLaptop> yeah all the good endoers are not available
[19:10] <LithosLaptop> *encoders
[19:10] <sky2> ok
[19:11] <sky2> adding any PPA might work ? though its my guess
[19:11] <LithosLaptop> I think you should maybe try to get the latest ffmpeg with libxvid, libx264, fdk_aac installed
[19:11] <sky2> ic
[19:11] <LithosLaptop> but I don't know how to do the compliling etc.
[19:12] <sky2> i see
[19:12] <LithosLaptop> sorry about that. I tried, lol
[19:12] <sky2> np :)
[19:12] <sky2> Many thnx for your helping hand & time
[19:12] <LithosLaptop> but technically that other file should of worked
[19:12] <LithosLaptop> no prob
[19:13] <sky2> yup
[19:13] <sky2> it got the conversion done
[19:13] <sky2> came like test.3gp
[19:13] <sky2> but did not play
[19:14] <LithosLaptop> maybe
[19:14] <LithosLaptop> try to do -i on that new file
[19:14] <sky2> movie player reports Stream contains no data
[19:15] <sky2> sorry
[19:15] <sky2> didnt get ya
[19:15] <LithosLaptop> ffmpeg -i ~/Desktop/test.3gp
[19:15] <LithosLaptop> after the file is created
[19:15] <LithosLaptop> then I will check what ffmpeg reports
[19:15] <sky2> ok
[19:16] <sky2> /home/sky/Desktop/test.3gp: Invalid data found when processing input
[19:16] <LithosLaptop> ah ok
[19:17] <LithosLaptop> when you encoded the file did ffmpeg report any warnings/errors?
[19:17] <sky2> on terminal?
[19:17] <LithosLaptop> yeah
[19:17] <sky2> nope
[19:18] <sky2> i was seeing the conversion being carried out
[19:19] <LithosLaptop> hmm can you paste in pastebin the full output of ffmpeg after you created the test.3gp file
[19:19] <sky2> ok
[19:19] <sky2> hmm
[19:19] <sky2> i will have to run the command again
[19:19] <sky2> ok np
[19:24] <sky2> http://pastebin.com/kUKUzMpi
[19:25] <sky2> LithosLaptop:
[19:25] <sky2> ^^^
[19:25] <sky2> FULL OUTPUT
[19:27] <LithosLaptop> ffmpeg -i ~/Desktop/142306432_l.mov -vcodec mpeg4 -vb 3000k -an ~/Desktop/test.3gp
[19:27] <LithosLaptop> that is without audio
[19:28] <LithosLaptop> just want to see if maybe the audio is the problem
[19:29] <sky2> ok
[19:30] <sky2> yes , it has worked LithosLaptop
[19:30] <sky2> is being played
[19:30] <sky2> GREAT JOB
[19:30] <sky2> WOW
[19:30] <LithosLaptop> haha
[19:30] <sky2> lol
[19:30] <LithosLaptop> ok cool try this:
[19:31] <LithosLaptop> ffmpeg -i ~/Desktop/142306432_l.mov -vcodec mpeg4 -vb 3000k -strict experimental -ar 44100 -acodec aac -ab 256k -cutoff 15000 ~/Desktop/test.3gp
[19:31] <sky2> ok
[19:33] <sky2> wonderful
[19:34] <sky2> with audio
[19:34] <sky2> its awesoem
[19:34] <sky2> awesome*
[19:34] <sky2> all working fine
[19:34] <KalD> Does anyone have a good example of using a video device by index on win32?  The documentation makes a ref to this - but there is no example~
[19:36] <LithosLaptop> yay :)
[19:37] <sky2> im really indebted to u LithosLaptop
[19:37] <sky2> now i need to learn the exact command to convert any video i want
[19:45] <sky2> for any coversion the cmd is same except the .mov or .3gp? LithosLaptop
[19:45] <sky2> conversion*
[19:46] <LithosLaptop> well I usuall check if the output container is compatible with the source file's codecs first
[19:46] <sky2> ic
[19:46] <LithosLaptop> if it is then I just do: ffmpeg -i infile.abc -acodec copy -vcodec copy outfuile.out
[19:47] <LithosLaptop> http://en.wikipedia.org/wiki/Comparison_of_container_formats
[19:47] <LithosLaptop> if not then I have to re-encode
[19:48] <LithosLaptop> you can check what encodrs are available in ffmpeg by typing: ffmpeg -codecs
[19:48] <LithosLaptop> the codecs with an E means they have encoders
[19:50] <LithosLaptop> if the output file's codecs are inferior ro the source file then I usually use higher bitrates than the source to kinda match the quality
[19:51] <sky2> LithosLaptop: all i want to be capable of doing conversion of any file with any extension to my desired file format using ffmpeg :)
[19:52] <sky2> hope its takes a bit of time to grab the subject
[19:52] <LithosLaptop> :)
[19:52] <LithosLaptop> there isn't really one command line that handles all cases
[19:53] <sky2> yup
[19:53] <LithosLaptop> I guess you could first try ffmpeg ffmpeg infile.abc -acodec copy -vcodec copy outfile.out
[19:53] <sky2> ok
[19:53] <LithosLaptop> then if that doesn't work:
[19:53] <LithosLaptop> ffmpeg -i infile.abc outfile.out
[19:54] <LithosLaptop> conversion from lossy to lossy is usually a bad idea
[19:55] <LithosLaptop> each time you do it, the output file has a little bit less quality than the source, even if the bitrate might be higher
[19:55] <sky2> ffmpeg -i ~/Desktop/142306432_l.mov -vcodec mpeg4 -vb 3000k -strict experimental -ar 44100 -acodec aac -ab 256k -cutoff 15000 ~/Desktop/test.3gp      << in this command line how did u match with ffmpeg infile.abc -acodec copy -vcodec copy outfile.out
[19:55] <LithosLaptop> that is why it is better to try and copy the streams if it is possible
[19:56] <LithosLaptop> what do you mean by match?
[19:56] <sky2> from where did u get this 3000k & 15000 etc numbers
[19:56] <LithosLaptop> oh
[19:56] <LithosLaptop> 3000 is the bitrate
[19:57] <LithosLaptop> just a guesstimate :) 3000k is about 2x the bitrate of the source video bitrate
[19:57] <sky2> i meant how did this "ffmpeg infile.abc -acodec copy -vcodec copy outfile.out " match with the command created by u which worked !
[19:57] <LithosLaptop> I used a high number because mpeg4 is a bit inferior so it needs more bits to get about the same quality
[19:58] <sky2> ok
[19:58] <LithosLaptop> oh that command wont work in your case
[19:59] <LithosLaptop> because the codecs used in the source file can't fit in a 3gp file
[20:00] <sky2> i want to knas i tried playing that file in my mobile it says unsupported resolution
[20:00] <sky2> sorry
[20:00] <sky2> as I tried playing *9
[20:00] <LithosLaptop> yeah thought so :)
[20:00] <LithosLaptop> device 3gp support is picky
[20:01] <sky2> does ffmpeg handles resolutions
[20:01] <LithosLaptop> some phones only support certain resoultions/frame rates etc for 3gp files
[20:01] <sky2> handle*
[20:01] <LithosLaptop> yeah
[20:01] <LithosLaptop> you can change it
[20:01] <sky2> my phone supports 240
[20:01] <sky2> 320x240
[20:01] <LithosLaptop> ah ok
[20:02] <LithosLaptop> I'll modiy the command a bit
[20:02] <sky2> coo
[20:02] <sky2> cool
[20:02] <sky2> ok u may create it .. i will be right back .. brb
[20:03] <LithosLaptop> ffmpeg -i ~/Desktop/142306432_l.mov -vcodec mpeg4 -vb 3000k -s 320x240 -strict experimental -ar 44100 -acodec aac -ab 256k -cutoff 15000 ~/Desktop/test.3gp
[20:04] <LithosLaptop> if your phone complains about the framerate then you can adjust it by using the -r option
[20:04] <LithosLaptop> -r 15
[20:05] <LithosLaptop> that will change it to 15 frames per second
[20:36] <sky2> hi LithosLaptop
[20:37] <sky2> im back
[20:37] <sky2> the resolution u fixed is all perfect & working fine on my pone now
[20:37] <sky2> phone*
[20:38] <sky2> u said change it to -r 15 if it was not working ..but thankfully it workd without me having to do nay thing
[20:38] <sky2> any*
[20:39] <sky2> kindly can u say where this -r 15 had to be placed in the CMD u created ?
[20:41] <LithosLaptop> hi, anywhere after -i ~/Desktop/142306432_l.mov and before ~/Desktop/test.3gp
[20:43] <sky2> like ffmpeg -i ~/Desktop/142306432_l.mov-r 15 -vcodec mpeg4 -vb 3000k -s 320x240 -strict experimental -ar 44100 -acodec aac -ab 256k -cutoff 15000 -r 15~/Desktop/test.3gp
[20:43] <sky2> is it ok?
[20:43] <LithosLaptop> there should be a space between the file name and -r 15
[20:44] <LithosLaptop> ffmpeg -i ~/Desktop/142306432_l.mov -r 15 -vcodec mpeg4 -vb 3000k -s 320x240 -strict experimental -ar 44100 -acodec aac -ab 256k -cutoff 15000 -r 15~/Desktop/test.3gp
[20:49] <sky2> ok cool
[20:58] <sky2> LithosLaptop: i see u putting strict experimental
[20:58] <sky2> is it necessary
[21:02] <LithosLaptop> for the aac encoder it is
[21:03] <sky2> ok LithosLaptop suppose I want to change a simple .avi or flv to .3gp format ..what sould be the comand?
[21:09] <sky2> once its accustomed .. its a matter of practice
[21:09] <sky2> & of course the right command is to be experimented
[21:10] <sky2> ok LithosLaptop
[21:10] <LithosLaptop> If the flv uses mpeg4/h.264 and aac audio then: ffmpeg -i infile.flv -acodec copy -vcodec copy outfile.3gp
[21:10] <sky2> many many thanx for ya co-operations
[21:11] <LithosLaptop> no prob
[21:11] <LithosLaptop> else you will have to use the command that you used now for the conversion
[21:11] <sky2> will know it from u tomorrow itself if u r available in this hours
[21:11] <LithosLaptop> same applies for the AVI
[21:11] <sky2> im really interested
[21:11] <LithosLaptop> I might be here
[21:11] <LithosLaptop> ok
[21:12] <sky2> interesting stuff
[21:12] <sky2> cya then tc bye for now
[21:12] <sky2> :)
[21:12] <LithosLaptop> k cheers
[21:12] <sky2> \o/
[21:55] <Mista_D> How do I combine concat and setdar filters? tried "-filter_complex [0:0][0:1][1:0][1:1]concat=n=2:v=1:a=1[v][a], setdar=4:3" but its not accepted by FFmpeg. Tried to do concat in -filter_complex and setdar in -vf, but that fails to set dar. Using 2.0.1 build.
[22:02] <durandal_1707> that just change aspect ratio
[22:02] <durandal_1707> what is wrong in output?
[22:03] <durandal_1707> perhaps you mean: setdar=dar=4/3
[22:06] <Mista_D> durandal_1707: yes basically set header dar value to 4:3
[22:06] <durandal_1707> than try with 4/3
[22:08] <Mista_D> durandal_1707: same error.
[22:11] <Mista_D> durandal_1707: error "Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_setdar_1", pasted whole outptut to http://pastebin.ca/2454954
[22:18] <durandal_1707> Mista_D: its obvious, and error is self explanatory
[22:18] <durandal_1707> you connect nothing to setdar
[22:18] <durandal_1707> but all other filters have something
[22:18] <durandal_1707> hint: setdar needs video '[v]'
[22:19] <Mista_D> durandal_1707: Thank you, it works!
[22:44] <Mista_D> Can FFmpeg recognize track sequence during concat to macth V-V and A-A? when stitching one file with first audio track with other file that has video track first, get this error... http://pastebin.ca/2454978
[23:34] <Mista_D> What OPCM is used in MPEG2-TS please?
[23:34] <Mista_D> PCM
[00:00] --- Fri Sep 20 2013


More information about the Ffmpeg-devel-irc mailing list