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

burek burek021 at gmail.com
Sun Jun 3 02:05:02 CEST 2012


[00:00] <burek> does it have all the video codecs needed, both on windows and *nix
[00:00] <Xix19> i didn't try to play it in the browser, I'll try that next
[00:00] <Xix19> chrome and firefox should
[00:00] <Xix19> at least on win they both played a-ok
[00:00] <burek> so, video working on firefox on windows, doesn't necessarily mean it will work on linux too
[00:00] <Xix19> when i tried with webm videos
[00:01] <Xix19> yep i know
[00:01] <burek> why exactly do you need it to work "directly" in the browser?
[00:02] <Xix19> well that's kinda the future of online video IMHO
[00:02] <pasteeater> html5 video support
[00:03] <Xix19> even youtube is switching gradually
[00:03] <Xix19> yes it's html5, but mostly it should work on all platforms including mobiles
[00:03] <Xix19> i find that cool
[00:04] <burek> not quite
[00:04] <burek> I don't see obvious advantage, but ok, that's my personal opinion
[00:05] <burek> if a mobile platform doesn't have enough cpu/ram/encoder implemented to play the given video stream, it will fail
[00:05] <burek> no matter it's html5
[00:05] <Xix19> i know
[00:06] <Xix19> but tests on my galaxy s2 worked quite neatly
[00:06] <Xix19> and mobiles only get better on average with time
[00:06] <burek> well ok then
[00:07] <Xix19> ok weird but the out.webm file plays perfectly in firefox
[00:07] <Xix19> although it won't play in VLC (all black)
[00:07] <burek> anyway, playing your video without problems in chrome on windows, still doesn't mean it will play ok in chrome on mac or red hat, etc
[00:07] <Xix19> in fact all videos show as black in the native media player and on vlc
[00:08] <burek> so, you should really test it on the destination platform that you actually need
[00:08] <Xix19> i know, but I trust if they don't play nicely right now that google will make it work in time
[00:08] <burek> I trust ffmpeg and vlc
[00:08] <burek> if they can play something, it means that file is ok :)
[00:08] <Xix19> i never had problems with vlc not playing something
[00:09] <burek> so, if your video shows all black in vlc, well, something is wrong
[00:09] <burek> what's your version of vlc
[00:09] <Xix19> could be trying to use the video card which doesn't have drivers installed on the vm or something
[00:09] <Xix19> no, the video is good, it plays perfectly in firefox
[00:09] <burek> does it play in vlc
[00:10] <Xix19> VLC media player 2.0.1 Twoflower
[00:10] <Xix19> it plays normally except the output is all black
[00:10] <Xix19> or like a very dark blue, not quite black
[00:10] <burek> did you check tools - messages
[00:10] <burek> and set verbosity to 2
[00:11] <Xix19> oh ok some interesting messages
[00:11] <Xix19> "pulse debug: missing latency from input"
[00:11] <Xix19> "main debug: dead input"
[00:11] <Xix19> quite a lot of messages
[00:12] <Xix19> i'll pastebin it
[00:13] <Xix19> http://pastebin.com/3EteW8AF
[00:14] <vallor> is this the place to talk about avconv?
[00:15] <burek> vallor, what is avconv?
[00:16] <vallor> I thought it was the follow-on to ffmpeg
[00:16] <vallor> but if i'm wrong, please tell me :)
[00:16] <burek> well, if I'm not wrong, that's just a fork of ffmpeg project?
[00:17] <vallor> I didn't know
[00:17] <vallor> thank you :)
[00:17] <burek> maybe because they put a misleading message saying that ffmpeg is no longer developed?
[00:17] <burek> you should ask them anyway :)
[00:17] <vallor> no, I probably misunderstood
[00:18] <burek> ok :)
[00:18] <burek> Xix19, can you try playing it with ffplay
[00:18] <burek> ffplay out.webm
[00:19] <Xix19> burek: hmm it's all black
[00:19] <Xix19> the terminal is printing information like it's playing
[00:19] <Xix19> but all i see is black
[00:20] <burek> cool :)
[00:20] <burek> fun never stops :)
[00:20] <Xix19> im trying to copy the video to windows
[00:20] <burek> lets try this
[00:20] <Xix19> i bet it will work ok there
[00:20] <burek> ffmpeg -i trailer_480p.mov -c:v libvpx -c:a libvorbis out.webm
[00:21] <burek> to see what the "default" encoding will look like
[00:21] <burek> btw, are you trying to play that video in VM ?
[00:21] <JEEB> <burek> maybe because they put a misleading message saying that ffmpeg is no longer developed? <- it's saying that the ffmpeg command line application (within the context of libav) is not getting updated, d'oh. It's not saying anything about a whole project being stopped or anything like that.
[00:22] <pasteeater> JEEB: it's implied by the many confused users i've helped
[00:22] <pasteeater> it will be a moot point soon. the message was removed upstream and ubuntu has a fix for the message pending or available. i don't know the status on that.
[00:23] <JEEB> well misunderstood and misleading are not the same thing :)
[00:23] <pasteeater> users don't always make that distinction
[00:23] <JEEB> I don't remember the message being misleading, but the wording most probably wasn't the best possible
[00:24] <JEEB> (for lusers)
[00:24] <vallor> i'm just trying to come up with reliable applehttp packetization of an hdhomerun flow :)
[00:24] <vallor> so far, the best I've found is vlc
[00:24] <Xix19> burek: yes i'm playing it in the vm where it's all black
[00:24] <vallor> (2.0.1)
[00:24] <Xix19> burek: i can't seem to get the file sharing to work
[00:25] <burek> Xix19, did you manage to play it in VM in firefox/chrome/vlc/anything to see any video except black screen
[00:25] <burek> maybe your VM settings are wrong and the video is ok?
[00:26] <burek> vallor, why do you need http segmenting at all?
[00:26] <Xix19> burek: nvm, got it to work and the out.webm video plays perfectly on windows
[00:26] <burek> Xix19, ok :)
[00:27] <Xix19> burek: yes, I played the out.webm video in firefox on the ubuntu vm
[00:27] <vallor> burek: the boss wants this for ipods, iphones, and rokus
[00:27] <burek> Xix19, ok
[00:27] <Xix19> all videos play as black on the ubuntu native video player and on ubuntu vlc
[00:27] <burek> vallor, good luck with that :)
[00:27] <Xix19> thanks for the help
[00:28] <burek> Xix19, np :beer: :)
[00:28] <Xix19> cheers :)
[00:28] <vallor> burek: works great with vlc -- unlike a Certain Java Media Server I could name ;P
[00:30] <vallor> only thing I haven't tried is putting vlc in front of the java server -- which is probably what I'll try next, just to see if it cleans up the feed enough for it not to glitch all the time
[00:34] <vallor> ooo, one thing though -- I haven't been able to get vlc 2 to listen to join a multicast group
[01:09] <aarwine> I was hoping for some help understanding ffmpeg -i - here's my output: http://pastie.org/private/nx7ujguc5kjoaprem8pbba - There seem to be 3 bitrates specified, here. 591kb/s, 493kb/s and 95kb/s - I assume one is for audio, and one for video, but if that's true, what's the third one for?
[01:10] <pasteeater> aarwine: the bitrate of the whole file. bitrate = file size/duration
[01:11] <aarwine> That makes sense
[01:12] <aarwine> It seems like by that formula, ( at least for the video side of things ) there is an optimal bitrate for each resolution
[01:12] <aarwine> I guess, I need resources to read that talk about the connection between bitrates, and resolutions
[01:13] <aarwine> is there anything out there like a best practices?
[01:13] <pasteeater> input complexity is more important. imagine an input of just black frames vs an input of a flock of birds against some trees.
[01:14] <pasteeater> taking the bitrate from another video, even if it look great, and using it on another is not a good practice.
[01:15] <pasteeater> forget overthinking it. you just need to decide on values for two options when encoding with libx264: preset and crf.
[01:16] <aarwine> standby while I educate myself on crf
[01:16] <pasteeater> a preset is a collection of options that gives you an encoding speed/compression ratio.
[01:16] <pasteeater> consider crf your quality option
[01:17] <pasteeater> a sane range is 18-28ish. basic usage is to use the highest value that still gives you an acceptable quality.
[01:17] <pasteeater> as for presets use the slowest one you have patience for.
[01:17] <pasteeater> then use these same settings for the rest of your videos you are encoding
[01:18] <pasteeater> current presets are: ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow, placebo
[01:18] <pasteeater> ignore placebo as it is a complete waste of time
[01:21] <pasteeater> as for audio, "-acodec libfaac -aq 100" is usually good enough for general aac encoding.
[01:22] <aarwine> heh
[01:22] <aarwine> Ok, sounds good
[01:22] <aarwine> Thanks for your help pasteeater
[01:22] <pasteeater> of course i should have first asked what you plan on using the output for
[01:25] <aarwine> Well, I'm actually an SA managing a video platform site; my devs are across the planet sleeping in a different timezone - I've been trying to troubleshoot some client encoding oddities
[01:26] <aarwine> the reality is that it's a code issue, the video files are fine
[01:36] <pasteeater> aarwine: do you mean there is an issue with ffmpeg?
[01:38] <aarwine> nope, it's solid - I think it's how their code is calling ffmpeg
[01:38] <aarwine> I think there's some flag issues
[01:38] <aarwine> they had created some sort of rule set for max bitrate for X, Y, and Z resolution presets
[01:38] <aarwine> you don't want 3000kb/s for a 240p video
[01:39] <aarwine> regardless of the video content, it's too high, so I know they set upper bounds, I just don't know what they are, or where they should be
[01:40] <aarwine> was trying to figure out some math to determine around where they should be to confirm that this particular video wasn't down converted too much
[01:40] <aarwine> Do you tend to just watch the video and look for artifacts to determine if your transcoding was "enough"?
[01:40] <aarwine> good enough*
[01:41] <pasteeater> yes, i usually just watch the output, but i don't have to deal with a maxrate
[01:44] <aarwine> Yea, I'm in a unique situation
[01:54] <pasteeater> and i should have said "bitrate limit" instead of maxrate
[01:59] <burek> are there any suggestions on how to get an output as close as this (what encoding options to use):
[01:59] <burek> Stream #0:1(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 320x240, 498 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc
[02:01] <pasteeater> -c:v libx264 -profile:v baseline -filter:v scale=320:240 -pix_fmt yuv420p -r 25 ?
[02:03] <burek> cool :)))
[02:04] <burek> as a matter of fact, it's exactly the same :)
[02:04] <burek> thanks pasteeater :beer: :)
[02:05] <pasteeater> i'll take a Berliner Weisse today.
[02:07] <pasteeater> never had one of those before
[02:08] <burek> :)
[02:52] <MCl0vin> howdy folks
[02:53] <MCl0vin> this is my last stop before wiping my ubuntu , since it was 4.10 and now running 12.04
[02:54] <MCl0vin> i am challenged with play wmv files 30 of them
[02:55] <MCl0vin> i tried everything i can, and finally i want to give ffmpeg to see if i can convert 'em to mp4 or any formart that is recognizable by ubuntu /linux
[02:56] <MCl0vin> 'ffmpeg -i history.wmv -b 600 -s 320x240 -ab 128k -vcodec mpeg4 -ab 128 -acodec aac output.mp4
[02:57] <MCl0vin> ^^^ this is what i used and i got this error "[buffer @ 0x9ff77c0] Invalid pixel format string '-1'"
[02:57] <MCl0vin> any advice please
[02:57] <pasteeater> MCl0vin: are you saying you can't play the wmv files with anything in ubuntu, and therefore you're trying to re-encode them?
[02:58] <MCl0vin> pasteeater, yes sir
[02:58] <pasteeater> use pastebin.com to show the complete output of: ffmpeg -i history.wmv
[02:58] <MCl0vin> maybe you know a way i can play wmv in ubuntu
[02:58] <MCl0vin> ok
[03:00] <MCl0vin> http://pastebin.com/FCCZVnNJ
[03:02] <MCl0vin> i hope man you can help me, i spent too much time trying to get it to work , and my test is on the 6th :(
[03:02] <pasteeater> i'm unsure if ffmpeg can decode MSS2
[03:02] <pasteeater> either provide a sample, or try a recent ffmpeg
[03:03] <MCl0vin> how can i provide a sample and what do you mean by recent ffmpeg
[03:03] <pasteeater> upload one of the wmv files so i can look at it
[03:04] <MCl0vin> pasteeater, is there a way i can do like 1st 10 sec or so so that it will upload fast
[03:04] <MCl0vin> and where do i upload it
[03:04] <pasteeater> mediafire or datafilehost are ok
[03:05] <pasteeater> as for trying a more recent ffmpeg: http://pastebin.com/RHCAit4u
[03:05] <pasteeater> no need to install. just compile as shown and then run it as shown
[03:06] <pasteeater> i have to go now, but i'll probably be back in 30 minutes if i'm lucky. maybe someone else can continue the help.
[03:07] <MCl0vin> thank you so much
[03:08] <pasteeater> make that 60 minutes minimum. bye.
[03:08] <burek> MCl0vin :D superbad rules! :)
[03:09] <MCl0vin> burek, right on
[03:09] <MCl0vin> hhahahahah
[03:10] <burek> :)))
[03:10] <MCl0vin> when i do ./configure " i get bash: ./configure: No such file or directory
[03:10] <burek> just a sec, let me read this text above
[03:12] <burek> you can try this if it works
[03:13] <burek> if not, just compile your ffmpeg normally
[03:13] <burek> without final make install (not to disturb your already installed ffmpeg)
[03:13] <MCl0vin> oh shoot i was in the wrong folder
[03:13] <MCl0vin> ouch
[03:14] <burek> :)))
[03:16] <MCl0vin> something is wrong
[03:16] <MCl0vin> it wont make
[03:19] <MCl0vin> burek, check it out , http://pastebin.com/WD4ujiDZ
[03:19] <MCl0vin> i am trying a different file
[03:20] <burek> MCl0vin, apt-get install yasm
[03:38] <MCl0vin> burek, http://pastebin.com/gH0mhVbP
[03:38] <MCl0vin> ^^ i guess i am SOL
[03:39] <MCl0vin> any other thoughts
[03:46] <burek> Stream #0:1: Video: none (MSS2 / 0x3253534D) _
[03:46] <burek> ?
[03:48] <MCl0vin> M$ shit
[03:49] <burek> http://www.google.com/search?q=wmv+repair ?
[03:51] <burek> try also mediainfo
[03:51] <burek> it might help
[03:51] <burek> but this is most probably damaged/unknown video
[03:51] <burek> where did you get it anyway?
[04:12] <MCl0vin> burek, sorry i stepped out
[04:13] <MCl0vin> burek, you think its the video itself
[04:13] <MCl0vin> well let me try another one
[04:15] <MCl0vin> yep i didn't thought so
[04:16] <MCl0vin> it can't be bad file because it works fine in M$
[04:17] <MCl0vin> i was able to convert them in windows machine using cucosoft application
[04:18] <MCl0vin> i am a little down for ubuntu :(
[04:18] <MCl0vin> linux in general
[04:51] <pasteeater> proprietary, non-reverse engineered formats strike again! (actually i have no idea if anyone RE'd MSS2).
[14:26] <Higgs-Boson> i use '-ab 128k' to convert Youtube vieos to mp3. but according to mlayer the mp3 has initial audio stream bitrate of 48 kbps! shouldn't it be 128kbps?
[14:26] <Higgs-Boson> doesn't '-ab 128k' retain enough quality?
[14:29] <Higgs-Boson> s/mlayer/mplayer/
[14:31] <Higgs-Boson> why is initial audio bitrate only 48kbps?
[14:32] <Higgs-Boson> is this decent quality?? -> Audio: mp3, 44100 Hz, stereo, s16, 128 kb/s
[14:32] <Higgs-Boson> what's s16?
[14:32] <microchip_> signed 16-bit
[14:35] Action: Higgs-Boson guesses SMplayer's "Info properties" is broken. But still the mp3's converted using -ab 128k consistently have 48kbps of initial audio bitrate. 0_0?
[14:41] <Higgs-Boson> Youtube, Y U strip all the metadata?
[15:13] <mystica555> Higgs-Boson: trade secrets. heh.
[15:14] <mystica555> (my guess)
[15:48] <graeme> Hello everyone !
[15:52] <graeme> can anyone on here help with a problem I'm having with winff ?
[15:53] <burek> what is winff
[15:54] <graeme> it's video conversion program that uses ffmpeg
[15:56] <burek> did you try asking your question at their website/forum/support?
[15:56] <graeme> yes but no response
[15:57] <burek> well, why do you use such a thing if you don't have any response when needed?
[15:57] <burek> why don't you use plain ffmpeg
[15:59] <graeme> I don't use plain ffmpeg because I'm not particular computer savvy and therfor not comfortable with the command line
[16:00] <burek> well, good luck in finding help for winff, then
[16:00] <graeme> Thank you burek you've been a great help
[16:01] <burek> well, ironic or not, this is not winff support channel
[16:01] <burek> sorry..
[16:01] <burek> ffmpeg is constantly improving, changing, etc.
[16:02] <burek> so it takes time to follow those changes, upgrades, ..
[16:02] <burek> and now, there is a need for maintaining updates for wrappers like winff
[16:02] <burek> to be able to help you on your issues
[16:02] <burek> so, it's plain more simply to use ffmpeg directly
[16:03] <burek> to avoid all the additional issues, that wrapper, like winff, will introduce sooner or later
[16:03] <graeme> sorry I didn't mean to appear ungrateful
[16:05] <graeme> I just thought that if winff is a front end gui for ffmeg I may have got help here
[16:08] <burek> well, ffmpeg is already a kind of a "wrapper" (cmd line tool) for libav* libraries
[16:09] <burek> and winff is a wrapper for ffmpeg :)
[16:09] <graeme> burek is it really easier to use ffmeg directly rather than through a gui program like winff ?
[16:09] <burek> shortly, it's far better (in a long run) to learn to use ffmpeg using cmd line.. it's not that difficult
[16:10] <burek> graeme, once you see several examples, you'll realize it is
[16:10] <burek> for example, what is your goal
[16:10] <burek> what do you want to do with your winff
[16:12] <graeme> ok I have a movie I've downloaded and I want to convert it to xvid.avi in a widescreen format that suits my tv could you give a rough idea of the commands I would need to use in the terminal please
[16:12] <burek> ffmpeg -i input -s 1920x1080 output.avi
[16:12] <burek> anyway
[16:13] <burek> can you please first type just: ffmpeg -i input.avi (or whatever your input file is)
[16:13] <burek> and use the pastebin.com to show the output of the cmd
[16:14] <graeme> ok if you bear with me and give me some time I haven't used pastebin for some time I'll follow your instructions
[16:14] <burek> ok, take your time
[16:14] <burek> www.pastebin.com
[16:17] <graeme> is it ok to test this with a .flv file ?
[16:18] <burek> sure
[16:19] <graeme> ok so the terminal command would be ffmpeg -i filename.flv is that right ?
[16:19] <burek> right
[16:19] <graeme> ok
[16:19] <burek> that would give some info about filename.flv
[16:19] <burek> so that we can see what to do with it
[16:19] <burek> either to re-encode it or just remux it to avoid re-encoding if not needed
[16:23] <graeme> for some reason I can't paste the pastebin address into this applet
[16:24] <burek> what applet
[16:24] <graeme> this chat box
[16:25] <burek> that's odd
[16:26] <graeme> but anyway it didn't work it said this program is not developed anymore
[16:26] <burek> try downloading this one
[16:26] <burek> just extract it into some tmp folder and run with     ./ffmpeg
[16:26] <burek> (dot)(slash)ffmpeg
[16:30] <graeme> ok please bear with me nothing will copy or paste just have to type everything
[16:30] <burek> are you using windows or linux
[16:30] <burek> or what
[16:30] <graeme> linux mint maya 13
[16:30] <burek> just install some irc client
[16:31] <burek> and connect to server: irc.freenode.net
[16:31] <burek> and /join #ffmpeg
[16:32] <graeme> ok I know this is gonna sound lame but I know nothing about irq clients or how to download them
[16:32] <graeme> sorry
[16:32] <burek> try opening cmd prompt (terminal) and type: apt-get install xchat
[16:33] <graeme> ok
[16:34] <graeme> apparently I already have it
[16:34] <burek> then just type xchat
[16:34] <burek> and connect to this channel
[16:35] <graeme> ok I'm in ffmepg but I'm the only one there
[16:35] <burek> ffmpeg not ffmepg
[16:37] <graeme> that was a typo I'm in ffmpeg
[16:37] <burek> nick?
[16:37] <graeme> graeme I think
[16:38] <burek> go to main menu - XChat - Network List - find Freenode - press connect
[16:38] <burek> (choose another nick, because you already are using that one)
[16:38] <graeme> ok
[16:38] <burek> when you connect to server, just type this: /join #ffmpeg
[16:39] <burek> there you go
[16:39] <graeme_> I see you
[16:40] <graeme_> sorry burek I know I'm making this hard work for you
[16:41] <burek> it's ok
[16:41] <burek> try copy/pasting the pastebin link now
[16:41] <graeme_> ok
[16:43] <graeme> give me a few minutes please i closed the terminal and booted myself out of xchat sorry
[16:43] <burek> ok
[16:45] <graeme_> back
[16:47] <graeme_> burek can you please give me the command again
[16:48] <burek> ffmpeg -i filename.flv
[16:50] <graeme_> http://pastebin.com/rr01WP9r
[16:51] <burek> did you download/extract the static ffmpeg
[16:51] <graeme_> No I didn't i got distracted sorry
[16:51] <burek> it's ok
[16:52] <burek> just download it and extract it and type ./ffmpeg -i file.flv
[16:52] <burek> with dot and slash
[16:53] <graeme_> ffmpeg.static.32bit.2012-05-01.tar.gz	??
[16:53] <burek> yes
[16:53] <burek> not 05-01
[16:53] <burek> try the latest
[16:55] <graeme_> ok
[16:57] <graeme_> ok done that
[16:57] <burek> pastebin?
[16:58] <graeme_> ok doing that now
[17:00] <graeme_> http://pastebin.com/DSZTMhZ2
[17:00] <burek> try with ./
[17:00] <burek> <burek> just download it and extract it and type ./ffmpeg -i file.flv
[17:02] <graeme_> graeme at Linux1 ~ $ ./ffmpeg -i Anastasia.mkv
[17:02] <graeme_> bash: ./ffmpeg: No such file or directory
[17:02] <burek> are you in that directory where you downloaded/extracted static ffmpeg
[17:03] <graeme_> no but i'll do that now sorry
[17:04] <burek> or you can move static ffmpeg file to the directory where your video files are
[17:07] <graeme_> http://pastebin.com/UmHdqYqA
[17:08] <burek> ok, now
[17:08] <burek> do you know what kind of file do you need for your tv?
[17:08] <burek> do you have any file that can already play on your tv, so we can see how does it look like
[17:09] <graeme_> well It's a 42 inch widescreen up to now I've always set it to 640x480 16:9
[17:10] <graeme_> I mean I've always converted the files to these setting and it's always worked fine
[17:11] <burek> ok
[17:11] <burek> try this: ffmpeg -i Anastasia.mkv -aspect 16:9 -b:v 1500k out.avi
[17:14] <graeme_> http://pastebin.com/Krjpf1bq
[17:15] <burek> try this: ffmpeg -i Anastasia.mkv -aspect 16:9 -b:v 1500k -ac 2 out.avi
[17:17] <graeme_> ok it's encoding now in winff it ran untill about frame 5200 then stalled with a glibc error
[17:17] <burek> nice :)
[17:17] <graeme_> looking good
[17:18] <graeme_> while thats encoding can I ask a few questions ?
[17:18] <burek> sure
[17:18] <ubitux> no you have to wait for the end of the encoding
[17:18] <burek> :))
[17:18] <ubitux> otherwise i'll kill a kitten
[17:19] <ubitux> anyway, wouldn't it be wise to use -q:v instead of a constant bitrate parameter?
[17:19] <burek> ubitux, you're right
[17:20] <burek> I just say the bitrate of the input file and instinctively went that way
[17:20] <burek> -say +saw
[17:20] <graeme_> ok I understand ffmpeg -i Anastasia.mkv -aspect 16:9 but what is the other commands telling ffmpeg to do, it just that I want to understand the language
[17:20] <burek> -b or -b:v (for video only) tells ffmpeg to respect the output bitrate
[17:20] <burek> which of course affects the quality
[17:20] <graeme_> ok
[17:21] <burek> -ac 2 means that output audio will have 2 channels
[17:21] <burek> instead of original 5.1
[17:21] <burek> since mp3 does not support 5.1 (or so)
[17:21] <graeme_> and what does 2 channels mean ?
[17:21] <burek> stereo
[17:22] <ubitux> you are not using ffmpeg btw
[17:22] <graeme_> ok so that's a sound instruction ?
[17:22] <burek> ubitux, I figured, but.. it would last much longer..
[17:22] <ubitux> :)
[17:22] <ubitux> burek: if it's a ubuntu user you can redirect him to jon's packages
[17:23] <burek> what is the url?
[17:23] <ubitux> https://launchpad.net/~jon-severinsson/+archive/ffmpeg
[17:23] <burek> graeme, yes, -ac means (audio channels)
[17:23] <ubitux> you can get it from the download page on ffmpeg.org
[17:23] <ubitux> graeme_: -ac 2 ’ audio channels 2 ’ stereo (front left, front right)
[17:25] <graeme_> ok I think I understand
[17:25] <ubitux> mmh jon's packages don't seem not that up to date now
[17:26] <graeme_> so lets say that was the format I wanted to convert all my movies can I write a script to do it for me ? (that is if I knew how to write a script )
[17:27] <burek> just create a text file with the same command and replace the input file name with $1
[17:28] <burek> but, use -q:v <num> instead of -b:v <num>
[17:28] <burek> I'm not sure what value to use for -q:v
[17:28] <ubitux> sth around 5 i'd say
[17:28] <ubitux> (totally arbitrary.)
[17:29] <burek> :)
[17:29] <graeme_> what does q mean ?
[17:29] <burek> http://ffmpeg.org/ffmpeg.html
[17:29] <burek> something like 'quality'
[17:29] <ubitux> -q is an alias for -qscale, quality scale
[17:30] <burek> so: ffmpeg -i $1 -aspect 16:9 -q:v 5 -ac 2 out.avi
[17:30] <ubitux> (’ variable bitrate instead of const with -b, -bitrate)
[17:30] <burek> make that text file executable with: chmod +x file
[17:30] <burek> where file = filename of your script
[17:30] <graeme_> so b meant I used the same bitrate as the original (input file ) ?
[17:30] <burek> and next time run it on some other video with: ./file bla.flv
[17:30] <ubitux> (increase -qscale until it looks ugly, then lower it until you don't see any more change)
[17:31] <ubitux> graeme_: -b is for a constant bitrate
[17:31] <ubitux> -q is for a variable bitrate according to a quality factor
[17:31] <graeme_> ok
[17:31] <graeme_> so if it's variable why the number 5 after it ?
[17:32] <ubitux> quality 5
[17:32] <ubitux> it plays with the bitrate to reach an overall quality of 5
[17:32] <graeme_> ok so is 5 the optinum number for all video files ?
[17:33] <ubitux> no, 0 is
[17:33] <ubitux> >30 is the worst (iirc)
[17:33] <ubitux> 17:30:59 <@ubitux> (increase -qscale until it looks ugly, then lower it until you don't see any more change)
[17:33] <graeme_> so why did you suggest 5 ?
[17:33] <ubitux> totally arbitrary :)
[17:33] <graeme_> ok
[17:33] <ubitux> play with the value
[17:34] <graeme_> sorry about all the questions but I really am green but I'm keen to learn :)
[17:34] <ubitux> this is what this irc channel is for
[17:35] <graeme_> so in your opinion is a variable bitrate preferable to constant bitrate ?
[17:35] <ubitux> yes
[17:36] <graeme_> sorry but can I ask why ?
[17:37] <ubitux> more flexible; it will use a lower bitrate when possible (smaller output size), but a higher bitrate if the movie requires it (high motion scenes for instance)
[17:38] <ubitux> when using the constant bitrate, if a scene is in high motion but there is not enough bitrate, then the quality suddenly becomes crappy :p
[17:39] <graeme_> ok I understand now I have a large collection of childrens movies I've collected for my grand-daughter and so I've formatted them to Xvid. avi does the command you gave me earlier do that because I'd like to make the all the same ?
[17:40] Action: ubitux parse error
[17:41] <burek> graeme, try it with this output out.avi that you just created
[17:41] <burek> if it works, use the same command for all the other videos
[17:41] <graeme_> that's what I want to do burek
[17:43] <graeme_> all the movie files I have so far have been encoded as xvid.avi and I want to make them all the same
[17:47] <graeme_> by the way the encode you set running for is running perfectly and now beyond the point it would normally stall in winff
[17:48] <burek> graeme, if you want to first try and see a sample of your output
[17:48] <burek> you can use -t
[17:48] <burek> like this
[17:48] <burek> ffmpeg -i input -aspect 16:9 -q:v 5 -ac 2 -t 30 out.avi
[17:48] <burek> that will give you a sample of 30 seconds
[17:48] <burek> so you can be sure it's the quality you want
[17:48] <burek> without waiting for a whole movie to convert
[17:49] <graeme_> I was wondering if there was a way to do that trial and error can take a long time convering a 3gb movie file :)
[17:50] <burek> also if you want to seek into a movie, to get a 30 seconds sample from the middle of the movie
[17:51] <burek> you can use -ss to seek into, let's say 40 seconds of video
[17:51] <burek> ffmpeg -ss 40 -i input -aspect 16:9 -q:v 5 -ac 2 -t 30 out.avi
[17:51] <graeme_> I've been copying all the commands you and ubitux have been giving me and pasting them into a text file so i can experiment
[17:52] <burek> graeme, you can always access these irc logs here
[17:53] <graeme_> ok thanks
[17:55] <graeme_> sorry about all difficulty earlier I'm not to clever with computers as you've probably noticed bet you were sorry you ever offered to help me :)
[17:56] <burek> it's ok :) nobody was ever born skilled
[18:01] <graeme_> well Burek thanks so much for your help :)
[18:01] <burek> :beer: :)
[18:02] <graeme_> I owe you one :)
[18:07] <graeme_> well folks thanks very much for the help but my grand-daughter has just come in so it's playtime bye :)
[18:28] <diegoviola> hi
[18:28] <diegoviola> can ffserver stream from a usb webcam on linux?
[18:28] <diegoviola> via http or whatever
[18:28] <diegoviola> so i can use mplayer from the other end to view it?
[18:28] <diegoviola> that would be nice
[18:30] <burek> you can use ffmpeg only, using udp
[18:30] <burek> ffmpeg -i input -f mpegts udp://remoteip:port
[18:30] <diegoviola> cool
[18:40] <diegoviola> ffmpeg is really awesome
[18:49] <diegoviola> can video go with any codec over the network?
[18:53] <burek> no
[18:53] <diegoviola> hmm
[18:53] <diegoviola> why not?
[18:53] <diegoviola> is that a limitation of some sort
[18:53] <burek> because not all formats are streamable
[18:54] <burek> not all of them can fragment the stream into packets
[18:54] <burek> and not all keep the index at the beginning
[18:54] <diegoviola> ok thanks
[18:55] <burek> mostly you'll end up using mpegts or flv
[19:16] <diegoviola> do i need a public ip address on my computer, or i can just forward a port or something?
[19:17] <jankes> hello
[19:17] <jankes> i would like to ask a question, but i don't know if it a good channel
[19:20] <jankes> i copied some *.cda files from CD and i can't open them. what i have to do it to change them into mp3 format?
[19:37] <diegoviola> burek: i get thishttp://pastie.org/4014872
[19:37] <diegoviola> any ideas?
[19:37] <diegoviola> i notice the light goes on on the webcam when i execute that command
[19:39] <ubitux> ffmpeg -f v4l2 -i /dev/video0 -f ...
[19:39] <ubitux> ?
[19:44] <ubitux> jankes: looks like you're using windows; on linux it should be possible to use libcdio paranoia
[19:44] <burek> diegoviola, ubitux has answered it already, just use v4l2 format
[19:45] <burek> and for udp, you don't need to forward anything, since you are sending udp packets from ffmpeg to remote ip
[19:45] <ubitux> (note: -f v4l2 before the -i is to specify the input is a video4linux device)
[19:46] <burek> jankes, .cda files are not audio files, those are just short info about audio tracks.. you need to grab your audio cd
[19:46] <burek> google for cd grabbing
[19:49] <diegoviola> so ffmpeg -f v4l2 -i /dev/video0 -f mpegts udp://127.0.0.1:3000 ??
[19:52] <diegoviola> [video4linux2,v4l2 @ 0x17623e0] Cannot find a proper format for codec_id 0, pix_fmt -1.
[19:52] <diegoviola> /dev/video0: Input/output error
[19:55] <burek> diegoviola, try this
[19:56] <burek> ffmpeg -f v4l2 -i /dev/video0 -vcodec libx264 -acodec aac -strict experimental -f mpegts udp://127.0.0.1:3000
[19:57] <diegoviola> https://gist.github.com/2859362
[20:03] <burek> either your camera is not v4l2 compatible
[20:03] <burek> or your ffmpeg is old
[20:04] <diegoviola> ffmpeg version 0.10.3 Copyright (c) 2000-2012 the FFmpeg developers
[20:04] <burek> 0.11 already
[20:05] <burek> try using v4l2-ctl to see what is the default format of your camera
[20:06] <diegoviola> http://pastie.org/4014999
[20:06] <ozone89> hello :)
[20:06] <burek> PJPG is not supported..
[20:06] <burek> only MJPEG and raw (and h264)
[20:06] <ozone89> does anybody know how to extract subs from m2ts files?
[20:07] <burek> ozone89, use -c:s copy
[20:07] <ozone89> so it's "ffmpeg -i $m2tsfile -c:s copy" ?
[20:07] <diegoviola> burek: so the ffmpeg command line you showed me should work?
[20:07] <burek> diegoviola, with most of today's webcams, yes
[20:08] <diegoviola> burek: i also don't see a --enable-libv4l2 in my build
[20:08] <diegoviola> i'll try rebuilding ffmpeg
[20:08] <ozone89> or am i missing something?
[20:08] <burek> neither do I in mine :) but v4l2 still works
[20:08] <diegoviola> ok
[20:09] <burek> ozone89, can you type ffmpeg -i your_m2ts_file
[20:09] <burek> and use pastebin.com to show the output
[20:10] <ozone89> burek, http://pastebin.com/2vaC0A0p
[20:11] <ozone89> and thanks for helping :)
[20:12] <burek> ok, you can use something like ffmpeg -i 00019.m2ts -map 0:3 -scodec copy out.m2ts
[20:12] <burek> but, what do you want to do with the subs later on?
[20:12] <burek> mux it with another video
[20:12] <burek> or you want to edit it in a text editor
[20:12] <ozone89> edit
[20:12] <ozone89> with aegi
[20:13] <ozone89> oh, by the way Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
[20:13] <diegoviola> burek: wow http://pastie.org/4015035
[20:13] <burek> try ffmpeg -i 00019.m2ts -scodec copy -vn -an out.m2ts
[20:14] <ozone89> still empty :|
[20:14] <burek> diegoviola :(
[20:14] <burek> ozone89, please wait just a second
[20:15] <burek> I'll ask people who know :)
[20:15] <ozone89> burek, even two :)
[20:15] <ozone89> I'm in no rush :)
[20:18] <diegoviola> burek: works with ffmpeg 0.11
[20:19] <diegoviola> burek: compiled from source, with --enable-libv4l2
[20:19] <burek> ozone try ffmpeg -i 00019.m2ts out.srt
[20:19] <burek> diegoviola, pastebin?
[20:19] <diegoviola> burek: what should i paste?
[20:20] <burek> well, let me see how it works :)
[20:20] <ozone89> Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[20:20] <diegoviola> ok
[20:21] <diegoviola> burek: http://pastie.org/4015078
[20:21] Action: ozone89 is away: dinner time :D
[20:21] <burek> ozone89,
[20:21] <burek> can you please use pastebin.com, to show your command line and its output?
[20:22] <burek> wtf
[20:22] <burek> can you try the same thing without --enable-libv4l2
[20:23] <burek> just to see if it was an issue with ffmpeg 0.10
[20:23] <burek> or it was libv4l2 missing all the time
[20:24] <diegoviola> burek: i don't have a public ip in this computer, so if i wanted to stream video via udp, what should i do? i'm in front of a router
[20:26] <burek> I think you need to read a little about tcp and udp to get the idea of what is going on
[20:26] <burek> so you can understand the roll of the router in this situation
[20:26] <diegoviola> ok
[20:28] <burek> shortly, you are sending the stream from ffmpeg, using udp, to some other ip address/cast group
[20:28] <burek> so, router will not block you, unless the receiving end (ip address or cast group) is behind some restrictive router/firewall
[20:30] <diegoviola> thanks
[20:31] <diegoviola> burek: cool it works with the public ip, thanks :))
[20:31] <burek> ozone89, those are apparently bitmap subs, so they can't just be extracted to text, they need some kind of OCR applied to them first
[20:31] <diegoviola> :D
[20:31] <burek> :beer: diegoviola  :)
[20:31] <diegoviola> :D
[20:33] Action: ozone89 is back (gone 00:12:02)
[20:33] <ozone89> back to /
[20:35] <ozone89> burek, http://pastebin.com/QtC1K7Zw
[20:35] <burek> no, it won't work
[20:36] <burek> those are bitmap subs, not text
[20:36] <burek> i.e. images
[20:36] <ozone89> meh. :|
[20:36] <ozone89> thanks anyway :)
[20:38] <burek> :beer:
[20:49] <ozone89> burek, great news!
[20:50] <ozone89> found a way to convert to idx/sub :)
[20:50] <ozone89> althought it's without ffmpeg :|
[20:52] <burek> yeah, I know it's possible, but not using ffmpeg :)
[21:22] <diegoviola> i wonder if i could stream my webcam and at the same time pipe the video output to the web via html5 <video> or something
[21:23] <burek> what does "pipe the video output to the web" mean?
[21:23] <diegoviola> show video stream output in a web page
[21:23] <diegoviola> via <video>
[21:24] <burek> I don't know
[21:24] <diegoviola> html video tag
[21:24] <diegoviola> ok
[21:30] <diegoviola> ty
[21:39] <TwisteR> hello! I want to ask, how can I explore a stream (from an cheap chinese 4-channel h264 CCTV DVR) in order to get an valid mpeg4 stream from it? here is the sample (2.4 mb) http://tfsoft.org.ua/~twister/dvr_captured_sample.h264
[21:40] <TwisteR> Is it best to use libavformat/libavcodec API and try to cut an valid chunks of video from it?
[21:42] <mancha> hi. for the new ffmpeg to build external utvideo support, whee do you get libutvideo?
[21:47] <JEEB> it's really only needed for encoding, but if that's exactly what you need you can find it from ut video's official developer's site :)
[21:47] <JEEB> http://umezawa.dyndns.info/archive/utvideo/utvideo-11.1.0-src.zip
[21:47] <JEEB> seems to be the newest
[21:48] <mancha> JEEB, thanks. i had that url but didn't know if that was the right one. dyndns.info sites are weird and then i saw all chinese characters
[21:48] <JEEB> yeah, the official developer is Japanese :)
[21:49] <mancha> gotcha. it would be nice if ffmpeg updated its external codec database
[21:49] <mancha> for us paranoid types.
[21:49] <JEEB> if all goes well libavcodec should have its own Ut Video encoder :)
[21:49] <JEEB> after this summer
[21:49] <mancha> aha, nice to know.
[21:49] <mancha> !
[21:50] <mancha> do you know what the status is on bluray playback? i know vlc has worked on libbluray which can use libaacs but some disks are bd+ protected.
[21:50] <TwisteR> as far as I understand, I need this howto, right? http://wiki.multimedia.cx/index.php?title=FFmpeg_demuxer_HOWTO
[21:52] <JEEB> TwisteR, that's for adding a new demuxer it seems
[21:53] <JEEB> (into libavcodec)
[21:53] <JEEB> argh
[21:53] <JEEB> s/codec/format/
[21:53] <mancha> JEEB, know anything about bluray playback work?
[21:53] <JEEB> mancha, there's a project for the decryption part but it's still very hush-hush I hear
[21:54] <mancha> yes, the vlc project, right? it's been hush hush for 2 years now!  :)
[21:55] <TwisteR> JEEB: yes, but do I really need this in order to solve my problem? (see above, I've asked 15 mins ago)
[21:56] <JEEB> if you want to use libavformat, no -- if you want to make a new demuxer into libavformat then yes
[21:56] <JEEB> mancha, no idea about "two years", but IIRC there was something getting ready :)
[21:57] <mancha> stop teasing me!
[21:57] <JEEB> let's just say that there's nothing to show you so far :P
[21:58] <JEEB> (and I don't have anything myself, either -- just what I've gathered from developer talk)
[21:58] <JEEB> so yeah, for the time being you'll want to decrypt your stuff with something else
[21:58] <TwisteR> JEEB: the problem is that I don't know exactly, what I need to do to get a valid video stream from that mess, that streamed by my DVR :(
[22:00] <mancha> JEEB: gotcha
[22:04] <TwisteR> I know C (so I can work with ffmpeg libraries directly), I can capture tcp streams between DVR and it's own utility and dump them to files, wich is not playable by any player I know. Only that fragment gives me the hope that I can extract some useful video stream if I'll find the way to clean that stream from junk :)
[22:10] <TwisteR> So I assumed, that my trouble is not a codec (as I can see some real frames from my cameras, noisy and badly damaged by some service data, with randomly mixed channels and quad-screen etc.) but in demuxer, right?
[22:11] <teratorn> TwisteR: how do you know it is mp4?
[22:12] <TwisteR> sorry, "so I suggested..." :)
[22:12] <TwisteR> teratorn: just guess, I don't know
[22:13] <teratorn> well you need to determine the container format and then read it to discover the streams' codecs
[22:13] <teratorn> if it were standard/supported then ffplay would play it correctly
[22:14] <teratorn> perhaps it is in some kind of streaming format, or over http, so you might have to strip some crap out first
[22:15] <TwisteR> yes, it is over HTTP
[22:15] <TwisteR> I've stripped out all the headers and requests
[22:18] <TwisteR> it is not a standard and not supported, so I came here to ask for help
[22:19] <mancha> hrmm, caca, ffmpeg donuts build here 0.11
[22:20] <TwisteR> is it possible to find a valid frames of video (they are present there as I can see them from time to time in mplayer or ffplay) and cut them out from a steam, discarding other data?
[22:21] <mancha> multiple definition of `ff_rv40dsp_init_x86'
[22:27] <mancha> i am getting this eror when building ffmpeg 0.11: ffmpeg-0.11/libavcodec/x86/rv40dsp_init.c:186: multiple definition of `ff_rv40dsp_init_x86'
[00:00] --- Sun Jun  3 2012


More information about the Ffmpeg-devel-irc mailing list