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

burek burek021 at gmail.com
Fri Dec 16 02:05:02 CET 2011


[00:00] <cbsrobot> Shimmy: np - give it a try and I correct the command if I can
[00:05] <Shimmy> ffmpeg -i sample.wmv -c:v mpeg2video -s 720x480 -b:v 8500k -r 29.97 -c:a mp2 -b:a 224k -ar 48000 output/sample2.mpg
[00:05] <Shimmy> Can you please add some restrictions? or any other params to improve the quality
[00:06] <relaxed> Shimmy: you probably want -f vob in there too
[00:06] <Shimmy> why?
[00:07] <cbsrobot> Shimmy: is sample.wmv interlaced ?
[00:09] <Shimmy> If you're on a Win7 machine then you should have this video on your Public Videos folder
[00:10] <cbsrobot> nah - no win here
[00:12] <relaxed> Shimmy: I recall ffmpeg using the mpeg1 container by default.
[00:13] <relaxed> So you proabably want '-f dvd' or '-f vob'.
[00:13] <cbsrobot> but I don't know if you can add more flags to improve the quality ...
[00:15] <Shimmy> im just curious to know what will dvd or vob do
[00:16] <Shimmy> im trying to learn a bit on ffmpeg, im a complete noob on it
[00:16] <Shimmy> i wish there would be a good tutorial to learn about it (i mean learn about how codecs and all that work at all
[00:16] <Shimmy> )
[01:49] <beastwick> Is anyone available to help me resolve issues with my FFMPEG script over linux?
[01:50] <pasteeater> beastwick: show your script and describe your issues and someone might give suggestions
[01:54] <beastwick> http://pastebin.com/XjGwGk7J <- pastebin of my scriptand error.
[01:55] <beastwick> errors are with ALSA (finding sound card) and it says -vcodec and -dinterlace are not valid arguments.
[01:55] <beastwick> I have been trying to do this for a few days now.
[01:55] Action: newl checks the rules to see if 'few days suffering' is enough
[01:56] <beastwick> lol, well at any rate, help would be appreciated :D
[01:56] <beastwick> still trying to work out where my syntax suxxored.
[01:57] <pasteeater> -dinterlace is -deinterlace
[01:57] <pasteeater> or better yet, -vf yadif
[01:57] <pasteeater> but... step 1) make the command work, then, 2) try your script.
[01:57] <beastwick> what is vf yadif?
[01:58] <pasteeater> a deinterlacing filter, but if -deinterlace looks good enough for you then feel free to use it
[01:58] <sacarasc> The Yet Another De-Interlacer Filter video filter.
[01:59] <pasteeater> and your ffmpeg command is broken up into 3 lines, so bash is assuming that it's 3 separate commands
[01:59] <beastwick> oh wow
[02:00] <beastwick> how do I make it read it as one big line?
[02:00] <beastwick> with the \ thingy
[02:00] <pasteeater> yeah, or make it one big line
[02:00] <newl>  use \  at end of line
[02:00] <beastwick> ahhh
[02:00] <beastwick> so thats what that thing is
[02:00] <beastwick> dang I thought it ignored whitespace like a compiler
[02:00] <beastwick> poo
[02:00] Action: newl finally has something to contribute
[02:00] <beastwick> sweet ok, dinner time, then ill try and tell you results
[02:00] <newl> it escapes the newline
[02:00] <pasteeater> this is one reason why you manually test your encoding commands first, and then monkey around with the script
[02:02] <pasteeater> beastwick: also, use -preset instead of -vpre
[02:02] <pasteeater> also you have two "-f"
[02:03] <pasteeater> as for alsa, see "arecord -l" for a list of the available input devices
[02:03] <newl> pasteeater: any other general 'suggestions' off the top of your head - i'm trying out a new mouse and seeing how it cut's n pastes good info ... so far i got 
[02:04] <newl> 5 things
[02:04] <pasteeater> newl: when someone asks a quesiton here, and you don't have an answer, just say "use a pastebin site to show your ffmpeg command and the complete console output"
[02:05] <pasteeater> paste, paste, paste....
[02:05] <newl> :)  not the 'helpers secrets'   some more ffmpeg ones :)
[02:06] <pasteeater> cat image that doesn't start with 1: cat *.jpg | ffmpeg -f image2pipe -vcodec mjpeg -i - output
[02:08] <newl> doesn
[02:08] <newl> 't the   '-'   need to be the last thing on the line?
[02:08] <newl> stdin and all
[02:09] <pasteeater> try it
[02:09] Action: pasteeater leaves for meatspace work meeting
[02:12] <newl> pipe:: could not find codec parameters
[02:12] <newl> meatmarket?
[03:06] <beastwick> OK I rewrote the script, but I get more errors
[03:06] <beastwick> no such command as -bufsize
[03:06] <beastwick> and -ar
[03:07] <sacarasc> You're going on to multiple lines without escaping.
[03:07] <beastwick> but I put in the '\'
[03:08] <beastwick> perhaps I should post the full script?
[03:12] <beastwick> http://pastebin.com/Gwcgpyij
[03:12] <beastwick> errors: -ar and -bufsize are not commands
[03:13] <beastwick> I think this is all a syntax issue, just don't know why now.
[03:13] <beastwick> I added the \'s
[03:14] <relaxed> last line of last function " -f flv "$URL" \"
[03:14] <beastwick> what's wrong there?
[03:15] <relaxed> it's not needed
[03:15] <beastwick> yes it is
[03:15] <beastwick> oh
[03:15] <relaxed>  \
[03:15] <beastwick> no it's not
[03:15] <beastwick> lol
[03:15] <beastwick> I still get the error :(
[03:15] <beastwick> odd isn't it?
[03:16] <beastwick> I still have no idea how to configure the sound though for alsa
[03:16] <beastwick> maybe -ar is linked to that since it can't find the right input output scheme
[03:17] <beastwick> here let me post asound -l
[03:17] <beastwick> and maybe you can help me :(
[03:18] <beastwick> http://pastebin.com/r005z1dh arecord -l
[03:18] <beastwick> I have read the docu, I just don't get it :(
[03:21] <beastwick> re-reading docu now
[03:22] <beastwick> I guess i'll just do hw:0
[03:24] Action: newl is playing with grep and wonders if grep can help beastwick 
[03:25] <beastwick> i think I got it
[03:25] <beastwick> but now when I run the first script 
[03:25] <beastwick> streamingdesktop
[03:26] <beastwick> its executing the second one
[03:26] <beastwick> so weird, I put the } to sig the end of the function
[03:26] <beastwick> does it require more?
[03:27] <relaxed> is this bash?
[03:27] <beastwick> yes
[03:27] <beastwick> .bashrc
[03:28] <beastwick> does it need ; as well
[03:28] <newl> you want it run each login?
[03:29] <beastwick> yeah
[03:29] <beastwick> I want it saved
[03:29] <beastwick> its for a webstream
[03:29] <beastwick> easier to have a command for it
[03:29] <beastwick> or should I do an .sh script
[03:29] <beastwick> 2 individual ones
[04:03] <jesselang> Anyone know where I can find the bandwidth requirements of YUV compared to DV?
[04:15] <newl> is bandwidth the right constraint there?
[05:57] <jesselang> newl, I'm trying to see what kind of memory footprint would be involved with a video mixer using an uncompressed format.
[05:57] <jesselang> I found bits per pixel, which is basically what I needed.
[06:22] <beastwick> http://pastebin.com/qzw8mw5k <- can someone help me with this?
[06:23] <beastwick> I was able to fix the other script that desktop records, but this is for a capture card.
[06:28] <relaxed> beastwick: s-
[06:28] <relaxed> -f mpegts -f flv  (pick one)
[06:32] <beastwick> oh -.-
[06:32] <beastwick> my bad
[06:32] <beastwick> let me try
[06:33] <beastwick> same issue still
[06:33] <beastwick> maybe there is a syntax problem somehwere?
[06:43] <burek> -ab 96K -i hw:0
[06:43] <burek> oh he's quit
[06:43] <burek> :)
[06:44] <relaxed> his bash error don't even make since if you look at what he pasted.
[06:44] <relaxed> s/don't/doesn't/
[06:47] <burek> yes i see :)
[06:48] <burek> also, he's got -f mpegts -f flv :)
[10:28] <sam1> hi guys 
[10:29] <fj_> hi
[10:30] <vega13> what is the difference between an avframe and avpicture
[10:30] <sam1> new ffmpeg don't  support  "-sbsf"?  but  i can use  "-vbsf"  
[11:26] <sam1> what is  command to play dvd  with ffmpg?
[11:53] <Shimmy> https://ffmpeg.org/trac/ffmpeg/ticket/747
[11:53] <Shimmy> Please help :(
[14:55] <twid> any idea about this "[mpeg4 @ 0xa082aa0] ac-tex damaged at 0 43" ?  Thx....
[15:28] <Beastwick> http://pastebin.com/qzw8mw5k still trying to sort this problem out, any ideas? I do not think it is a syntax error. 
[16:30] <burek> "I do not think it is a syntax error." lolita :D
[16:30] <burek> twid
[16:31] <burek> can you please use pastebin.com, to show your command line and its output?
[16:35] <burek> sam1, the same question :)
[16:56] <twid> thx .. Burek i pested it at "http://pastebin.com/2BrGzPBP"....   why generally this happen?
[17:06] <burek> twid, we need command and the output
[17:06] <burek> not just partial output
[17:24] <iiu7> I have a mkv I want to convert. It contains three languages, eng, rus, mon. For some reason if I select "-alang eng" it gets the "mon" and not the english one. Is there a way to specify the stream?
[17:29] <iiu7> If I use "-map 0:4", which is the one with english, I get "number of stream maps must match number of output streams"
[17:32] <iiu7> Anyone?
[17:33] <twid> Burek : its third party software it doesn not show any command,  bUt i am trying is to capture live streaming from axis camera... generally what could be the probem...? 
[17:36] <twid> burek : what difference i see from other normal cam to axis cam is its resolution is HD1080(1920X1080)....
[17:41] <iiu7> twid, you'll get nothing out of this channel.
[17:43] <burek> well, this is an ffmpeg support channel, not a global support...
[17:44] <burek> you could try asking for help on a support channel for that 3rd party software
[17:44] <burek> iiu7
[17:44] <burek> can you please use pastebin.com, to show your command line and its output?
[17:53] <twid> I know that they use ffmpeg but i couldn't debug it...it works fine with other camera only problem when its come to Axis camera...
[17:54] <jesselang> Is there an option to make output from the DV encoder deterministic? I'm turning an image into a DV stream, and the text flutters because the frames are apparently encoded just a little differently.
[17:55] <twid> by observering output and researching on net its seems like to me that it is mpeg4 stream but ffmpeg is trying to decode as h623..
[19:04] <pasteeater> jesselang: use a pastebin site to show your ffmpeg command and the complete console output
[19:18] <jesselang> pasteeater, sure thing. logging now.
[19:22] <jesselang> pasteeater, http://pastebin.com/KEd0ryCk
[19:25] <pasteeater> can you provide the input png?
[19:32] <jesselang> You bet. http://s1012.photobucket.com/albums/af250/jesselang777/?action=view&current=filament-video-trailer-864x480.png
[19:46] <pasteeater> jesselang: output looks normal to me with ffplay
[19:51] <pasteeater> also, you're using "ffmpeg" from the libav/"qatar" fork, not from FFmpeg
[19:52] <jesselang> pasteeater, Interesting. It's the stock Debian packaged ffmpeg.
[19:52] <jesselang> I was playing it with totem, which uses gstreamer, I think.
[19:53] <pasteeater> yes, debian and ubuntu switched to libav
[19:54] <jesselang> So should I be talking to the folks in #libav instead?
[19:57] <pasteeater> if you want to, but we can help here or you could use ffmpeg (and i've never been to #libav, IIRC, so i don't know if it's even populated)
[19:58] <adilix> hi all
[19:59] <adilix> ffmpeg doesn't record any sound, any help
[19:59] <jesselang> 65 folks in #libav. Thanks pasteeater. I'll let you know which direction I head in.
[19:59] <adilix> $ffmpeg -f alsa -ac 2 -i hw:0,0 -acodec libmp3lame -ab 96k output.mp3
[19:59] <adilix> thats the command
[20:00] <pasteeater> jesselang: you can probably shorten your command too since -target covers most of it: ffmpeg -y -loop 1 -r ntsc -i input -f s16le -ar 48000 -i /dev/zero -aspect 16:9 -target ntsc-dv -t 00:00:30 output
[20:01] <pasteeater> s/loop 1/loop_output for your ffmpeg
[20:01] <pasteeater> i mean input
[20:02] <jesselang> Cool. Thanks.
[20:03] <pasteeater> adilix: use a pastebin site to show your complete console output too
[20:05] <pasteeater> jesselang: and use 30000/1001 or ntsc instead of 29.97.
[20:05] <jesselang> pasteeater, OK.
[20:06] <JEEB> oh, you can finally use X/Y framerates in ffmpeg/avconv?
[20:06] <JEEB> :awesome:
[20:06] <pasteeater> i thought that was the case for a long time
[20:07] <JEEB> then I never found that out
[20:07] <JEEB> most probably because no-one actually used them
[20:07] <JEEB> I don't think it was even in the examples, unless my eyes used to be worse than they are now
[20:08] <adilix> http://pastebin.com/3Xn4GHbJ
[20:08] <adilix> here is the output
[20:09] <adilix> it records but no sound tried both codecs mp3 and ogg but nothing
[20:09] <pasteeater> are you sure you have the right device?
[20:09] <pasteeater> arecord -l
[20:09] <pasteeater> ...but burek knows more about this than i do
[20:11] <adilix> here the output of arecord http://pastebin.com/BUj9sh0C
[20:14] <pasteeater> if i understand the output then maybe try hw:0,2?
[20:14] <adilix> ok i will try
[20:19] <adilix> tried hw:0,2 doesnt work to
[20:21] <pasteeater> i'm out of ideas. if you see burek here then make sure to ask him.
[20:43] <burek> adilix, 
[20:44] <burek> did you try using alsamixer
[20:44] <adilix> yes
[20:44] <burek> to set your recording device
[20:44] <adilix> you mean alsaconf
[20:44] <burek> no
[20:44] <burek> alsamixer
[20:44] <burek> apt-get install alsa-tools alsa-utils
[20:44] <burek> one of those
[20:44] <adilix> aaa the alsamixer in console
[20:45] <burek> yes
[20:45] <burek> start it
[20:45] <burek> press tab
[20:45] <burek> to select recording devices
[20:45] <burek> and then tune the volume up
[20:45] <adilix> in alsamixer i have to capture the one is enabled and the other is at 0
[20:45] <burek> or press space bar to select device
[20:46] <adilix> i have Capture and Capture1, Capture1 is at 0
[20:46] <burek> well use space bar and see which one you need
[20:47] <adilix> i enabled both and i set it to 100 both
[20:47] <burek> set it to 50
[20:47] <burek> so you dont burn your card
[20:47] <burek> anyway
[20:47] <burek> can you please use pastebin.com, to show your command line and its output?
[20:48] <adilix> hmm doesnt recorded anything
[20:48] <adilix> yes i will paste the output
[20:50] <adilix> http://pastebin.com/bwhTzhV3
[20:51] <adilix> the output of ffmpeg
[20:51] <adilix> http://pastebin.com/V8aB9NRB
[20:51] <adilix> and the outpu of arecord
[20:51] <burek> ok, now
[20:52] <burek> ok, your cmd is good
[20:52] <burek> although you can use hw:0
[20:52] <burek> so it will auto select the appropriate subdevice
[20:52] <burek> but its ok this way too
[20:53] <burek> anyway, do you have any input on your sound card?
[20:53] <burek> what are you recording
[20:53] <adilix> ok i will try with only hw:0
[20:54] <adilix> hmm doesnt work, why?
[20:55] <burek> do you have your microphone plugged in
[20:56] <adilix> no
[20:57] <adilix> i try to record my desktop
[20:57] <burek> oh you want to record your audio output?
[20:57] <adilix> with ffcast but sound doesnt record
[20:57] <adilix> yes
[20:57] <burek> well, does your sound card support recording from audio output
[20:58] <burek> if it doesnt then you need something like sox
[20:58] <adilix> i hope so, why not
[20:58] <burek> which will create virtual device
[20:58] <burek> so you can "record" from that
[20:58] <adilix> firstly i tried to record playing a game but no sound
[20:58] <adilix> should i use OSS
[20:59] <adilix> or how do i create a virtual device
[20:59] <burek> i understand, just read what i just wrote :)
[21:02] <cbsrobot> adilix: maybe this helps http://wiki.audacityteam.org/wiki/Recording_audio_playing_on_the_computer#Alsamixer
[21:04] <burek> yes, if the sound card supports that, there will be "Mix" among recording devices
[21:04] <adilix> hmmm maybe i should use pulseaudio
[21:10] <pasteeater> adilix: you can see "How can I control PulseAudio input?" http://ubuntuforums.org/showpost.php?p=8746719&postcount=2
[21:12] <jxself> Okay; I give. What am I doing wrong? http://dpaste.com/673858/ vp8flags altref seems to be what the FFmpeg documentation says to use.
[21:38] <burek> jxself, 
[21:38] <burek> try -vp8flags +altref
[21:40] <jesselang> pasteeater, you're right, ffplay does a great job with it. It must be the decoder in totem then. VLC does fine too.
[21:57] <Kartagis> hi
[21:58] <Kartagis> what codec do I need to convert wav to mp3?
[21:59] <microchip_> libmp3lame
[22:02] <Kartagis> it seems I have it
[22:10] <jxself> burek: Still no love. http://dpaste.com/673886/
[22:10] <jxself> -vp8flags altref used to work with older builds.
[22:14] <jxself> But now it just barfs, with Unrecognized option 'vp8flags'
[22:14] <burek> jxself, try -flags +altref
[22:19] <jxself> burek: That caused the error message to change
[22:19] <jxself> Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[22:20] <jxself> It is happy without -flags +altref
[22:56] <adilix> ok thx for help bye all
[00:00] --- Fri Dec 16 2011


More information about the Ffmpeg-devel-irc mailing list