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

burek burek021 at gmail.com
Mon Jun 25 02:05:02 CEST 2012


[00:05] <Robert__> Hello i was wondering could somebody tell me is it possible to connect to a remote server from your local machine why running ffmpeg so that basiclaly the video that is being encoded is also being uploaded at the same time?
[00:16] Last message repeated 1 time(s).
[00:17] <cbreak> yes
[00:17] <cbreak> just pipe via netcat or similar...
[00:19] <Robert__> cbreak,  where do i find that at srry very new to this
[00:19] <cbreak> it's a linux thing
[00:19] <cbreak> piping to other processes
[00:19] <Robert__> oh i have windows sry
[00:20] <Robert__> wont work then?
[00:20] <cbreak> netcat is a program that sends data via TCP
[00:20] <cbreak> don't know.
[00:20] <cbreak> maybe you can find the tools for windows too
[00:20] <cbreak> but I've always had trouble finding programs for windows :/
[00:20] <Robert__> i found this
[00:20] <Robert__> Xuggler
[00:20] <Robert__> i dunno if that would work
[00:20] <cbreak> not even sure if windows supports piping
[00:24] <Robert__> cbreak,  found this  http://joncraton.org/blog/46/netcat-for-windows is that the same thing your talking about
[00:24] <cbreak> no idea.
[00:25] <cbreak> but usually, if netcat is the answer, then the question is bad :)
[00:28] <Bolle730> Question, let's say I have a rtmp server. I want to stream to it, it's located on a dedicated server. Now, would it suffice to just set the output to rtmp and send it to the server, having the server try to take it in. With no additional softwares?
[00:36] <aquarat> is there any way of making ffmpeg do two passes for encoding a libx264 file ?
[00:36] <aquarat> without actually doing 2 passes
[00:37] <aquarat> a single command
[00:37] <aquarat> perhaps storing the stats in ram or /dev/shm
[00:38] <aquarat> I'm inserting two HD frames side-by-side into a 3840x1080 frame and then I'm going iw/2 but keeping ih the same
[00:39] <aquarat> then I'm going yadif=1, so there's a lot of processing
[00:39] <aquarat> erf, nevermind, my question is illogical
[00:47] <cbreak> aquarat: why bother with 2 pass?
[00:47] <aquarat> just more efficient ?
[00:47] <aquarat> storage-wise
[00:47] <cbreak> no
[00:47] <aquarat> I guess 25mbit/sec is sufficient for HD
[00:48] <cbreak> crf is just as efficient, if not more
[00:48] <cbreak> just less predictable
[00:48] <aquarat> yes but
[00:48] <aquarat> this is real world footage, with movement, unpredictable movement
[00:48] <cbreak> -> crf
[00:48] <aquarat> 2-pass would give more data to high complexity frames?
[00:48] <cbreak> so does crf
[00:49] Action: aquarat looks up crf
[00:49] <aquarat> btw
[00:49] <aquarat> ffmpeg says q=31 while encoding
[00:49] <aquarat> 31 is fairly low quality ?
[00:49] <aquarat> (for HD @ 25mbit)
[00:49] <cbreak> for a first pass?
[00:50] <Bolle730> I believe 28 q is what the limit stands at, but I'm a newb, so yeah.
[00:50] <aquarat> lol
[00:50] <cbreak> I normally use crf from 18 to 22 or so
[00:50] <aquarat> for single pass
[00:50] <cbreak> but I doubt that's related with q
[00:50] <Bolle730> soz, i mean crf
[00:50] <Bolle730> *
[00:51] <Bolle730> See, i shouldn't talk.
[00:51] <aquarat> it's just interesting, it's encoding to libx264 at 25mbit/sec using the "veryslow" preset
[00:51] <aquarat> on single pass
[00:51] <aquarat> and it says q=31
[00:51] <aquarat> (HD)
[00:51] <aquarat> 60p
[00:51] <cbreak> with the psy stuff maybe you can use a higher crf (with less "quality")
[00:53] <aquarat> crf looks cool
[00:53] <aquarat> I'll use it :D
[00:56] <aquarat> what is an excellent quality equivalent for q ?
[00:57] <aquarat> it's obviously quite subjective, but just an idea
[00:58] Action: aquarat tries -crf 4
[00:59] <JEEBsv> lol
[00:59] <JEEBsv> that's LOW
[00:59] <aquarat> thumbsuck
[00:59] <aquarat> ahhhh
[00:59] <aquarat> thank you
[00:59] <JEEBsv> you usually want to start around 23
[00:59] <aquarat> so 4 is excellent or crazy-excellent
[00:59] <JEEBsv> then go up if it looks good
[00:59] <aquarat> k
[00:59] <JEEBsv> or go down if it looks bad
[00:59] <JEEBsv> in steps
[00:59] <aquarat> lmao 214mbit/sec
[00:59] Action: aquarat hits ctrl-c
[01:00] <aquarat> thanks
[01:00] <JEEBsv> Anyways, I have no idea what ffmpeg shows as "q" but I will guess it's some statistic on the quants
[01:00] <JEEBsv> I wouldn't really say that is a useful statistic with libx264
[01:00] <aquarat> yeah, I just needed a rough idea of a starting value for good quality
[01:01] <JEEBsv> (23 is libx264's default with the crf rate control mode btw)
[01:01] <JEEBsv> (no idea if ffmpeg overrides it, but it is the default in the library)
[01:01] <aquarat> is q linear ? so if q=12 is on average 214mbit/sec for a file, q=24 will be 107mbit/sec?
[01:01] <aquarat> brb
[01:02] <JEEBsv> I wouldn't look at anything in the q value
[01:02] <JEEBsv> forget about the q value
[01:07] <aquarat> k
[01:08] <JEEBsv> anyways, what are you trying to do? what is it that you are striving to?
[01:08] <cbreak> aquarat: crf 0 is lossless, 22 is maybe around DVD quality I was told
[01:08] <aquarat> I've bought a 3d video camera...
[01:08] <cbreak> but that was years ago
[01:08] <aquarat> ah thanks cbreak
[01:08] <aquarat> lol
[01:08] <JEEBsv> cbreak: you can't really put it like that
[01:08] <aquarat> I'll try various options
[01:09] <aquarat> JEEB, I bought a 3d video camera, it outputs MVC (h.264 stereoscopic files)
[01:09] <aquarat> I'm using a program on windows called MVC to AVI converter
[01:09] <cbreak> I had a 3D video camera at work
[01:09] <aquarat> because it doesn't look like anything open source supports MVC at the moment
[01:09] <aquarat> cool
[01:09] <aquarat> what was it ?
[01:09] <cbreak> it gave uncompressed 1080p
[01:09] <aquarat> lol
[01:09] <cbreak> via SDI
[01:09] <aquarat> ah
[01:09] <aquarat> nanoflash?
[01:10] <aquarat> or HDCAM
[01:10] <cbreak> as storage? no idea
[01:10] <aquarat> k
[01:10] <cbreak> I only used SDI via a DeckLink
[01:10] <aquarat> I'm not that lucky ;)
[01:10] <aquarat> \ah ok
[01:10] <cbreak> piped it through ffmpeg to get compressed h264 in real time
[01:10] <aquarat> wow
[01:10] <cbreak> which then streamed to VLC to make an HTTP live stream
[01:10] <aquarat> cool
[01:10] <cbreak> worked well
[01:11] <aquarat> what machine did you use?
[01:11] <aquarat> what codec did you stream to ?
[01:11] <cbreak> wasn't something particularly powerful
[01:11] <cbreak> to h264
[01:11] <aquarat> was the output sbs ?
[01:11] <cbreak> no, single frame
[01:12] <cbreak> we only used one of the two sensors
[01:12] <aquarat> did you output a stereoscopic stream?
[01:12] <aquarat> ah ok
[01:12] <JEEBsv> cbreak: after all different crf values look different to everyone's eyes + the crf value level you usually need to have something look good fluctuates between sources, settings and people somewhat. With lower resolution sources you more often have it upscaled on playback, thus bringing up possible small irregularities. Meanwhile higher resolution stuff let you compress more because the small irregularities don't get huge'o'licious on your face 
[01:12] <aquarat> pitty :P
[01:12] <cbreak> we had a 3d camera lieing around so I used it for development
[01:12] <cbreak> the real cameras used were alexas
[01:12] <aquarat> lol
[01:12] <aquarat> the sexiest camera I currently have access to is a Sony EX3 :/
[01:13] <JEEBsv> anyways, so you have this source now in a format that ffmpeg can take in and...
[01:13] <JEEBsv> ?
[01:13] <cbreak> looks cool
[01:13] <aquarat> oh sorry JEEB
[01:13] <aquarat> sv
[01:13] <aquarat> so yes, from "MVC to AVI" to uncompressed AVI
[01:13] <aquarat> separate files (left and right
[01:13] <aquarat> )
[01:14] <aquarat> the files are input into ffmpeg
[01:14] <JEEBsv> to be honest I'm being more interested in what you're trying to achieve :P
[01:14] <aquarat> ffmpeg -i `basename $i .MTS`-r.avi -y -filter:v "[in]setpts=PTS-STARTPTS,pad=iw*2:ih:iw:0,[left]overlay=0:0[deint];movie=`basename $i .MTS`-l.avi,setpts=PTS-STARTPTS[left],[deint]yadif=1[scale],[scale]scale=1920:1080[out]" -r 59.94 -f mp4 -c:v libx264 -crf 26 -c:a ac3 -threads 6 -preset veryslow `basename $i .MTS`$
[01:14] <aquarat> oh
[01:15] <aquarat> I'm just trying to easily play back 3d content from ym 3d camera on a tv
[01:15] <aquarat> :D
[01:15] <JEEBsv> ok...
[01:15] <aquarat> and I'd love to be able to edit it easily too
[01:15] <aquarat> in an application I'm familiar with
[01:15] <aquarat> it's also just a bit of an ffmpeg learning experience experiment
[01:15] <JEEBsv> I think with a TV or something you'll have to make the 3d stuff into something it'll understand 3d-wise
[01:16] <aquarat> yes
[01:16] <aquarat> my tv handles 3d in sbs format
[01:16] <JEEBsv> be it every second frame one eye, every second another or the next-to-each-other thing
[01:16] <JEEBsv> then you'll have to signal that with libx264
[01:16] <aquarat> which is where both frames are squashed horizontally or vertically into an HD frame
[01:17] <aquarat> the tv supports manual activation of 3d mode
[01:17] <aquarat> so I just do that at the moment
[01:17] <JEEBsv> meh, mewiki has no listing of all of the x264's frame-packing settings
[01:18] <aquarat> once again, brb
[01:18] <JEEBsv> anyways -x264opts frame-packing=setting or something would let you signal to x264 that you have 3d stuff of type X coming up
[01:21] <cbreak> would that do something smart when encoding?
[01:21] <cbreak> or just store it as meta somewhere in headers?
[01:21] <aquarat> meta
[01:21] <JEEBsv> not sure if it changes any encoding algorithms around, but it's mostly the metadata
[01:28] <aquarat> well a crf of 26 results in a file that's a tenth of the size of one of the original files
[01:28] <aquarat> the quality is okay
[01:28] <JEEBsv> the idea of crf is basically "find the highest one you can take" and just use that with similar files
[01:29] <aquarat> k
[01:29] <aquarat> it's cool, I've never used it before
[01:29] <aquarat> I've always specified a bitrate
[01:29] <aquarat> -b:v 1m
[01:29] <JEEBsv> Yeah, many people are used to the only non-bitrate rate control mode being setting quants
[01:29] <cbreak> I always pick something between 18 and 22, inclusive. Never failed me. :)
[01:29] <JEEBsv> (which isn't exactly 'constant quality', yet many encoders try to do that)
[01:29] <aquarat> cool
[01:30] <aquarat> I'll try 20 :)
[01:30] <cbreak> 20 will be bigger file than your 26
[01:30] <cbreak> if you're happy with the quality, then there's no point lowering the crf
[01:31] <aquarat> ok
[01:31] <aquarat> is there a performance increase if you compile ffmpeg yourself rather than using something in the distribution's repo?
[01:32] <aquarat> (ubuntu)
[01:32] <JEEBsv> not really unless your distribution was completely braindead
[01:32] <aquarat> :P
[01:32] <JEEBsv> you just gain newer tools and libraries by compilig yourself
[01:32] <aquarat> k
[01:32] <aquarat> yes
[01:32] <JEEBsv> which is sometimes exactly what you might want
[01:32] <aquarat> like prores
[01:33] <JEEBsv> I think the only retarded'ish distro lately was 32bit gentoo regarding x264
[01:33] <JEEBsv> I think it just disabled asm for some darn reason
[01:33] <aquarat> I've tried using gentoo before
[01:33] <aquarat> but yeah, too much time required (for me)
[01:34] <JEEBsv> the reason I know is that we used to get some gentoo users on the x264 channel and have them complain about performance
[01:34] <aquarat> lol
[01:34] <aquarat> I generally run ffmpeg on ubuntu server
[01:34] <aquarat> I always compile it myself
[01:35] <aquarat> just because I like the extra features and the ability to enable additional encoders that may not be legally acceptable in other territories
[01:35] <aquarat> I should probably try Linux Mint next
[01:36] <aquarat> woohoo, 1.8fps :D
[01:36] <aquarat> (using the veruyslow preset on an Intel Xeon @ 2GHz)
[01:36] <aquarat> *-u
[01:36] <aquarat> think it's a core 2 duo based xeon
[03:39] <Sashmo1> can anyone help me out here, I am trying to select a program from the multi program transport stream, but no matter what I try, I get errors, I assume becuase the syntax for selecting program is incorrect, can anyone tell me what Im doing wrong? http://pastebin.com/vGe6qCp6
[04:21] Last message repeated 1 time(s).
[04:31] <intracube> Sashmo1: you might be able to use the -map option to select the correct video/audio streams
[04:32] <intracube> Sashmo1: which channel do you want to select?
[04:33] <Sashmo1> any
[04:33] <Sashmo1> Im trying map now, no luck there too
[04:34] <intracube> I'll try and give an example for RTL plus...
[04:34] <Sashmo1> awesome
[04:34] <Sashmo1> i can figure out the rest from there
[04:35] <intracube> there are two different ways that might work...
[04:35] <intracube> first:
[04:36] <intracube> ffmpeg -i "udp://224.2.2.2:1111" -c:v:p:0:8 libx264 -map 0:12 -map 0:18 -re -vcodec libx264 -g 60 -vb 1000k -strict experimental -acodec aac -ab 128k -ar 48000 -ac 2 -f flv rtmp://192.168.20.100/live/test2?pkt_size=1316 -vprofile high -crf 11 -level 30
[04:37] <Sashmo1> that got me two audio streams
[04:38] <intracube> hmmm, using your pasted info stream #0:12 should be video #0:18 should be audio
[04:39] <Sashmo1> I will send pastebin again its all the same stream
[04:39] <intracube> Sashmo1: ok
[04:39] <Sashmo1> http://pastebin.com/gDAgDa8b
[04:39] <intracube> Sashmo1: is the source a DVB tuner?
[04:40] <Sashmo1> an external professional dvb IRD
[04:40] <Sashmo1> that gives multicast output
[04:40] <intracube> if this doesn't work, there might be another (better) way:
[04:40] <intracube> ffmpeg -i "udp://224.2.2.2:1111" -c:v:p:0:8 libx264 -map 0:10 -map 0:30 -re -vcodec libx264 -g 60 -vb 1000k -strict experimental -acodec aac -ab 128k -ar 48000 -ac 2 -f flv rtmp://192.168.20.100/live/test2?pkt_size=1316 -vprofile high -crf 11 -level 30
[04:41] <Sashmo1> http://pastebin.com/7HxWMtg8 this is what I get whne I do your first example
[04:42] <Sashmo1> that one gets me two audio again
[04:42] <Sashmo1> so weird, when I try the commands I gets me a diiffernt stream numbers
[04:42] <intracube> what do you mean 'two audio'
[04:42] <Sashmo1> check this out, let me paste it
[04:43] <Sashmo1> http://pastebin.com/ipFaw3xY
[04:43] <Sashmo1> see how the stream#'s changed?
[04:44] <intracube> Sashmo1: yes, strange.
[04:44] <intracube> ffmpeg seems to be selecting one video and one audio stream:
[04:44] <intracube> Stream mapping:
[04:44] <intracube> Stream #0:12 -> #0:0 (h264 -> libx264)
[04:44] <intracube> Stream #0:18 -> #0:1 (mp2 -> aac)
[04:44] <Sashmo1> I saw an option that can disable the auto selection of streams
[04:45] <Sashmo1> maybe I should add that?
[04:45] <intracube> I think the -map option is overriding that
[04:45] <intracube> what do you mean that ffmpeg is selecting 2 audio streams?
[04:45] <Sashmo1> it should, but why would it re write the stream numebrs?
[04:45] <Sashmo1> take a look at that last paste
[04:46] <Sashmo1> http://pastebin.com/ipFaw3xY
[04:46] <Sashmo1> line 704 705
[04:46] <Sashmo1> thats the inputs
[04:47] <intracube> Sashmo1: the problem is the stream mapping is changing every time you run ffmpeg...
[04:47] <intracube> so manually specifying them isn't helping
[04:48] <Sashmo1> it changes every time depending on the commands that Im executing
[04:49] <intracube> try this:
[04:49] <intracube> ffmpeg -i "udp://224.2.2.2:1111/1b6d,1b6e" -c:v:p:0:8 libx264 -re -vcodec libx264 -g 60 -vb 1000k -strict experimental -acodec aac -ab 128k -ar 48000 -ac 2 -f flv rtmp://192.168.20.100/live/test2?pkt_size=1316 -vprofile high -crf 11 -level 30
[04:49] <intracube> I've done something similar with my network DVB-S receiver, but I don't know if this will work for you.
[04:50] <Sashmo1> http://pastebin.com/vuCWqsdG
[04:50] <Sashmo1> I get something
[04:50] <Sashmo1> but I cant see the output, it has a problem with the input stream
[04:50] <Sashmo1> it just dont like it
[04:51] <Sashmo1> I use streamxpert and tsreader pro, and I know the input stream is perfect, Im baffled on this one, I didnt have a problem in the previous ffmpeg that I had installed, just now, when trying to use the stream specifiers
[04:52] <intracube> what device are you streaming from?
[04:52] <Sashmo1> tandberg satellite rceeiver
[04:52] <intracube> I have had problems using ffmpeg to stream from my Dreambox over http...
[04:53] <Sashmo1> I found the DM to hang every 10 hours or so
[04:53] <Sashmo1> so I went to pro receivers
[04:53] <intracube> give me a few minutes to try something...
[04:53] <Sashmo1> it works when there is one program in the stream, but when trying a stream with multiple programs, thats when I have problems
[04:53] <Sashmo1> thanks for the help
[04:56] <intracube> have you tried any other programs like mencoder?
[04:56] <Sashmo1> I have, but not recently for this
[04:57] <intracube> sorry, I don't know what the problem is :(
[04:58] <Sashmo1> thanks anyways
[04:58] <Sashmo1> ;)
[04:58] <intracube> only wish I could have been more help :)
[04:59] <intracube> bye
[04:59] <Sashmo1> nah, no worries, Im sure I will figure it out eventually
[04:59] <Sashmo1> good night
[04:59] <intracube> yep
[04:59] <intracube> bye
[06:00] <kraxyk> Hello, I'm having trouble converting a video from mp4 to ogv
[06:03] <kraxyk> It tells me ogg is an unsupported codec and a final error that it could not write header for output file because of incorrect codec parameters. Operation not permitted
[06:06] <kraxyk> If I try and force it to output ogv format using -f, it returns that it is not a suitable output format
[09:17] <burek> kraxyk, can you please use pastebin.com, to show your command line and its output?
[09:35] <jagginess> hi
[09:35] <jagginess> looking for an ideal rtfm doc for screen recording..
[09:36] <jagginess> :>
[09:36] <jagginess> (am able to do samples but they look crap)
[09:38] <burek> jagginess, http://ffmpeg.gusari.org/viewtopic.php?f=25&t=594
[09:42] <jagginess> i've got both ffmpeg and avconv.. what's this with the avconv fork? i get a message that ffmpeg is deprecated..
[09:42] <jagginess> (in this ubuntu distr here)
[09:43] <jagginess> nm
[09:43] <jagginess> i'll use both :)
[09:44] <burek> that's at least a misleading message
[09:44] <burek> ffmpeg is well alive and active
[09:44] <burek> the guy who forked avconv is on of debian/ubuntu maintainers, so..
[09:44] <burek> you get the picture :)
[09:44] <burek> one*
[09:45] <burek> the best way would be to compile ffmpeg from source
[09:45] <burek> that way you avoid all that crap about forking and egos and stuff
[09:48] <ubitux> burek: you realized he left, right? :)
[09:49] <burek> oh man..
[09:49] <burek> I'm getting old :D
[09:53] <ubitux> burek: yes, every little single unit of time, like everyone :(
[09:54] <burek> ubitux, except for Benjamin Button :)
[09:56] Action: ubitux didn't see that movie
[09:56] <ubitux> nor read the source
[09:57] <burek> didn't miss much.. a guy was born old and was getting younger during his life :)
[09:58] <ubitux> fun
[11:32] <manizzle> hey guys, i am trying to convert some .mts files to avi, however this is what i get, File for preset 'lossless_medium' not found
[11:32] <manizzle>  any suggestions?
[11:45] <Mavrik> not without more information
[11:45] <Mavrik> please read the chanserv notice
[11:45] <manizzle> nvm, found a bunch of presets online and download and unzipped into the preset folder
[11:45] <manizzle> thanks
[11:50] <icenix> anyone awake here?
[11:57] <Mavrik> kinda
[12:07] <burek> manizzle, that's not the proper way to solve your problem
[12:07] <burek> x264 preset files are deprecated in favor of native x264 presets
[12:07] <burek> manizzle, can you please use pastebin.com, to show your command line and its output?
[12:09] <icenix> i've been tryign to get ffmpeg to stream to .webm, .mp4. .ogv. the problem is i can only get it running for .asf as soon as i change the codec and file format, it just ignores me, and i got even see the inbound request on the logging. what am i doign wrong?
[12:09] <burek> icenix, some formats/containers are not streamable
[12:09] <burek> like mp4 for example
[12:09] <burek> try flv, mpegts, asf
[12:09] <icenix> what about ogv?
[12:10] <burek> never used it, so.. try google? :)
[12:10] <icenix> i can stream an ogg container from vlc
[12:10] <burek> I guess it is streamable then
[12:11] <icenix> i can sucessfully stream asf
[12:11] <burek> but it's limited to theora/vorbis only if I recall correctly
[12:11] <icenix> so i adjust the config to reflect a different format and matching codec, i get nothing though
[12:12] <burek> well, I've seen flv ( h264 + aac ) used mostly
[12:12] <icenix> yeah... im trying to get it working on a webapp without using any plugins, so native html5 video player
[12:13] <burek> well.. native html5 player also has its own limitations/requirements.. so.. :)
[12:13] <burek> read the docs :)
[12:14] <icenix> yeah dude, i've already spent plenty of time reading, i came on this channel for some advice.
[12:19] <burek> well, there is a table on VLC website/wiki somewhere
[12:20] <burek> that shows which formats/codecs go together
[12:20] <burek> and which are streamable
[12:21] <icenix> yeah, i've seen that somewhere.
[12:22] <icenix> my problem is not so much using vlc, i currently am using vlc and it works well. the problem is that i want to move to ffmpeg based solution since it seems more scalable
[12:27] <icenix> Burek, if you check out http://www.flumotion.com/demosite/ you will see that they offer x264, ogg and webm as live streaming format options. I see no reason why ffmpeg would not be able to do the same, I guess its just a matter of working out why it's not working for me
[12:29] <burek> well it doesn't work in my Chrome.. :/
[12:30] <burek> also, do you intend to stream only video (or only audio) or both?
[12:31] <icenix> both audio and video.
[12:31] <burek> because, for example, h264 is a codec but a format also
[12:31] <burek> and I think it's video only format
[12:31] <burek> also that website lists separately video formats and audio formats
[12:31] <burek> which is not what you want, obviously
[12:32] <icenix> I currently have an ip camera, which i am currently using vlc to stream over theora/vorbis
[12:33] <icenix> I have my ffserver config setup (its probably wrong) and then i run ffmpeg -i rtsp://someip:554/stream.sdp http://localhost:8090/feed1.ffm
[12:34] <icenix> everything works great for .asf, when i change the config for another format, i dont see any logs come through, but if i request a file that shouln't exist i get a log for that. its almost like my config is breaking ffmpeg somehow
[12:41] <burek> well, to be honest, ffserver is kinda unstable right now
[12:42] <burek> so you are better off using vlc anyway, for now
[12:43] <Delicates> hi, how can I change SAR of an H.264 stream inside MKV without re-encoding?
[13:42] <sweb1> why ffmpeg dosnt support theora for convert ?
[13:42] <sweb1> it's absolutely opensource codec
[13:44] <JEEB> in what sense? afaik libavcodec has a theora decoder and libtheora can be used for theora encoding
[13:51] <sweb1> ffmpeg -i file.mpg -f theora file.ogv >>> Requested output format 'theora' is not a suitable output format
[13:51] <Mavrik> theora is not an output format.
[13:52] <JEEB> ffmpeg -i input.derp -vcodec libtheora output.ogv
[13:55] <sweb1> oh... ty guys
[13:59] <iive> btw, ogg/ogv is the most horrible container ever used. use on your own risk.
[13:59] <Mavrik> I've had nothing but bad experience with everything theora related :\
[14:21] <JEEB> <iive> btw, ogg/ogv is the most horrible container ever used. use on your own risk. <- oh how I agree with that
[14:21] <JEEB> <Mavrik> I've had nothing but bad experience with everything theora related :\ <- reminds me of all the people testing it and finding out it just dropped frames
[14:22] <Mavrik> "just dropping frames" would be nice
[14:22] <Mavrik> I've gotten some quite important screencast video which had completely broken I-frames with half of frames regulary missing and thus causing serious tearing -_-
[14:25] <JEEB> ouch
[14:50] <sweb1> how can i see preset for libtheora for convert video to `ogv` ?
[14:55] <sweb1> any one ?
[14:55] <Mavrik> what preset?
[14:55] <Mavrik> you can check the sourcecode of ffmpeg
[14:55] <Mavrik> or just set the parameters yourself.
[14:56] <Mavrik> the second option is recommended ;)
[15:06] <sweb1> Mavrik: for example i use -vpre baseline for x264 codec ... it's wordek ... where it's saved ?
[15:06] <sweb1> for libtheora i want to know is any codec saved ?
[15:06] <Mavrik> if you're using "vpre" you have a horribly obsolete ffmpeg
[15:06] <sweb1> i think my ogv video have not good quality with more bitrate
[15:06] <Mavrik> and afaik theora has no such presets
[15:07] <sweb1> Mavrik: so x264 is more better than ogg/theora in same bitrate ? :(
[15:08] <Mavrik> yes. noticably.
[15:08] <Mavrik> Theora is pretty crappy.
[15:08] <Mavrik> usually even xvid encodes better quality video
[15:08] <sweb1> Mavrik: i need html 5 video
[15:08] <sweb1> h264 and theora needed
[15:08] <sweb1> :(
[15:09] <sweb1> http://en.wikipedia.org/wiki/HTML5_video#Table
[15:09] <sweb1> Mavrik: http://techcrunch.com/2009/07/06/html-5-ogg-theora-vs-h264-in-the-battle-for-a-web-video-standard/
[15:10] <Mavrik> take webm.
[15:11] <JEEBsv> heck, looking at msu's report x264 is better than other h.264 encoders with a margin, so comparing x264 with theora, which is based on vp3 ... :D
[15:12] <Mavrik> yeah, it's not a fair fight :D
[15:12] <sweb1> webm like ogg/theora ... huge file size bigger bitrate and less quality
[15:12] <sweb1> see my convertion command ... any problem http://pastie.org/private/tfyxvjnlhndcxlcp8dkwq
[15:13] <JEEBsv> nah, webm is closer to baseline h.264, not close enough to x264's similar settings tho
[15:13] <JEEBsv> vp8 might become more viable when xvp8 gets finished
[15:14] <Mavrik> xvp8?
[15:15] <JEEBsv> what mozilla is now sponsoring. vp8 encoder based on the x264 framework
[15:16] <sweb1> JEEBsv:  how can i convert my video to vp8 ?
[15:16] <Mavrik> JEEBsv: oh, never heard of that project
[15:16] <sweb1> JEEBsv: is it possbile with ffmpeg ?
[15:17] <Mavrik> sweb1: I did a writeup about it here: http://www.virag.si/2012/01/webm-web-video-encoding-tutorial-with-ffmpeg-0-9/
[15:19] <JEEBsv> although since no-one is really pushing vp8 I don't know if it'll end up any more popular than it is now
[15:19] <sweb1> it's really complicated ... war of codecs ... :(
[15:19] <JEEBsv> not really
[15:20] <Mavrik> JEEBsv: considering some web browsers won't budge on H.264 support, I guess VP8 is here to stay
[15:20] <Mavrik> just on the perpetual 2. place
[15:20] <Mavrik> like png/jpg :)
[15:22] <sweb1> with both x264 and vp8 you can cover all browsers ... flash player also support x264
[15:24] <JEEBsv> yes, h.264 works everywhere. html5 or flash. and for those who do not bulge with h.264 and you don't want to use flash there's vp8
[15:25] <Mavrik> I think only Firefox 3.6 gets left out with that setup, but that's way too old.
[15:28] <sweb1> FIrefox users always update
[15:28] <sweb1> problem is ie always
[15:28] <sweb1> flash player is alt for old ie ... 9 and newer support 264
[15:49] <dli_> a n00b question. can I use ffmpeg like gstreamer to create a media player by c++? to get video frames/images and audio
[15:59] <zap0> yes.
[16:04] <Bolle> Sup, I need help with something, it's a something that others seem to be having as well.
[16:19] <Bolle> http://pastebin.com/1k5SBWuc
[16:21] <Bolle> Running it in vlc streams it, but only audio with unrecognizable video and it gives me this error  ts demux error: MPEG-4 descriptor not found
[16:57] <burek> Bolle, increase caching
[16:58] <burek> and what version of vlc are you using?
[17:16] <Bolle> Well, I tried it in linux and windows. In linux it's 2.0.1 twoflower
[17:17] <burek> try 2.1.0
[17:17] <burek> it has a lot of bug fixes
[18:38] <Sashmo> Can anyone help me out here.  I am getting tons and tons of errors while decoding a multicast stream.  If use a none DVB source, just an IP source from a professional encoder, it works amaizng, but if I use a DVB source from satalite, I get tons of errors ->, http://pastebin.com/nm8Zt3HR
[18:41] <obryan> is there a way to convert a video so that it plays video AND audio at a faster speed?
[18:41] <obryan> I know how to do it with just video
[18:41] <obryan> but I would like to do both
[19:41] <raptor67682> how to convert a png to an avi ?
[19:41] <raptor67682> of a single frame (yes, it s true!)
[19:58] <naquad> are there any tutorials for developers? i want to use ffmpeg libraries for transcoding in my program
[20:02] <dli> naquad, is this one suitable for you: http://dranger.com/ffmpeg/tutorial01.html
[20:02] <naquad> dli, i've seen it, but isn't too old and out-dated?
[20:02] <naquad> http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html also this one
[20:03] <naquad> last updated in 2009
[20:04] <dli> naquad, I'm learning this also, basically, I need a media player: ffmpeg to decode video: I handle generated frames and audio stream
[20:04] <naquad> dli, i actually need a transcoding mechanism, but at least one part of it is the same as yours: decode 1 video
[20:05] <dli> naquad, no need for audio?
[20:05] <naquad> audio too, sorry i've meant whole video (video + audio)
[20:11] <dli> naquad, looks like the tutorial is rather complete (on SDL), but you can rewrite the SDL related the part
[20:11] <dli> naquad, also, it seems to  be easier to me (than gstreamer)
[22:05] <jesk> should -moov_size work?
[22:50] <Bolle> I have a question, I installed ffmpeg, and everything, I believe it's the latest. Either way, when I try to transcode with mpeg2video, it doesn't play. Is there something up with the mpeg2video encoding?
[22:50] <Bolle> Or is there another codec I could use for mpeg-2?
[22:50] <Mavrik> there shouldn't be anything wrong
[22:51] <Bolle> There sort of is.
[22:51] <Bolle> Let me check again.
[22:57] <Mavrik> how bout you do what the chanserv asked you so we can help you more? ;)
[22:58] <Bolle> ffplay plays it fine, though VLC wouldn't show the video and the STB wouldn't play it either, though the STB can play mpeg2.
[22:59] <Bolle> There are no error messages, it just won't play here and there. Though I had an actual question, can ffmpeg stream in http protocol? Since I've yet to see any examples of it, except from ism(and ffserver)
[23:09] <drno_> Hi folks.
[23:09] <drno_> I'm using ffmpeg to do some video encoding from my home surveillance system.  all in all, it's working great, but one question i have at this point is regarding timestamps
[23:10] <drno_> Is there any feasable way to timestamp the video (I don't care about it showing up as an overlay) so that I can programmatically open a saved .mp4 file as output from ffmpeg and tell that it contains video from 2012-06-24 12:00:00 through 2012-06-24 12:30:00?
[23:14] <Mavrik> drno_: hrrm... you could probably add starting timestamp to mp4 metadata when starting
[23:14] <Mavrik> I'm guessing you're using an external script to start transcode
[23:16] <drno_> Well, I'm starting ffmpeg up and just letting it run, using the built-in segmentation feature (-f segment) to split the files to more managable pieces.
[23:17] <drno_> Going back to your statement, how would something like that be done?
[23:19] <drno_> That is, inseting any sort of meta data on start?
[23:32] <Megapixar> can i see PID numbers with ffprobe?
[23:35] <Megapixar> is it "id"?
[23:37] <Mavrik> drno_: check out "-metadata" in documentation
[23:39] <drno_> simple enough... thanks mavrik. I'll check it out.
[00:00] --- Mon Jun 25 2012


More information about the Ffmpeg-devel-irc mailing list