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

burek burek021 at gmail.com
Sat Jan 4 02:05:01 CET 2014


[00:16] <matham> Is there a way to set the avframe.data pointers to my own buffers, can I simply just change it's values to point at my buffer while making sure that linesize is correct?
[00:49] <msmithng> any docs defining applicable option settings for ffserver.conf entries?
[00:50] <llogan> Zeranoe: there's tools/normalize.py but i've never looked at it
[00:50] <msmithng> for instance # Ratecontrol buffer size > VideoBufferSize 40
[00:51] <msmithng> what is the double defining?
[00:51] <llogan> FunkyELF: using m4a with ffmpeg may use an "ipod muxer" IIRC
[00:51] <llogan> *m4v
[02:33] <relaxed> average: For x11grab you'll need to build ffmpeg yourself.
[02:49] <Lachezar> Can I ask questions about avcodec here, or do I get K-B-ed for that?
[04:06] <mark4o> FunkyELF: https://trac.handbrake.fr/wiki/Containers#MP4vsM4v
[11:26] <Blacksheep> hi everyone. I have a problem with ffserv. I'm strimmig my webcam via VLC (http) and I want my ffserv to get this 'remote' feed. Is it possible ?
[12:08] <brontosaurusrex> how would i check if file is audio (or contains an audio track) with ffmpeg, I  just need "true" or "false" ?
[12:35] <Blacksheep> Could someone tell me how to configure ffserver so when i stream my webcam with ffmpeg to it, i can see the resoult on my webpage using html5 video tag?
[12:36] <Blacksheep> i can not see te resoult of stream neither by ffplay or vlc.
[14:08] <Waraqa> Hi, Is there a way to limit mapping to a specific duration?
[14:14] <Waraqa> I want to replace only part of the original audio stream with external audio in a video input
[14:18] <Waraqa> I need a way to limit the effect of using map option
[14:22] <Spideru> MOrning
[14:51] <Spideru> I would to stream sound from my alsa audio card to ffserver, using ogg format. Then, on ffserver side, I would to record audio stream to a file and send the stream to ffplay or another multimedia remote player. How I should configure ffserver to receive ogg stream and to record/redirect it? How can I send ogg stream to ffserver? Thabk you
[14:51] <Spideru> *Thank you
[14:52] <Spideru> Is possibile to use ffserver and the source of the stream separated by public internet connection?
[16:55] <Waraqa> I want to replace only part of the original audio stream with external audio in a video input, Is there a way to limit mapping to a specific duration?
[17:00] <viric> Waraqa: amix ?
[17:01] <viric> maybe not
[17:02] <Waraqa> viric: I will look for that one, thanks
[18:28] <pyBlob> "-pix_fmt yuv444p will return the components in seperate blocks, while "-pix_fmt rgb24" will return the components in interleaved format
[18:28] <pyBlob> ... is there also a seperate format for rgb?
[18:30] <JEEB> pyBlob, you mean a planar one, use -pix_fmts and grep for p and see the ones that contain r, g and b
[18:30] <JEEB> or feel free to create a nice grep line for all of that at once :)
[18:30] <pyBlob> I'm currently on windows :(
[18:31] <pyBlob> but I'll have a look
[18:31] <JEEB> well, find in that case but generally the same idea
[18:31] <JEEB> (except find doesn't like regular expressions, but if you just need the stuff with a "p" it shouldn't be too hard)
[18:31] <JEEB> and yeah, you probably want a format that has both I and O in the listing
[18:32] <JEEB> with a quick look I noticed a few alternatives, so feel free to go nuts
[18:32] <pyBlob> btw ... what does the 444/420/... stuff mean?
[18:33] <JEEB> that's chroma subsampling
[18:33] <JEEB> 4:4:4 , 4:2:0, 4:0:0, 4:2:2 etc.
[18:33] <JEEB> in no specific order
[18:34] <JEEB> 4:4:4 is full chroma (aka no subsampling), 4:2:2 is two samples for one real sample in width, and 4:2:0 is four samples (2x2 area) for one real sample
[18:37] <pyBlob> so gbrp should be the format I'm searching: "IO... gbrp 3 24"
[18:37] <JEEB> one of them yes, most probably
[18:38] <pyBlob> strange ordering ... but ok :S
[18:38] <JEEB> probably already used by something
[19:41] <FunkyELF> is there a command line tool to read tags from mp4 files?  I see mp4tags can tag them but don't see that it can read them back
[21:25] <Bombo> what can i do to avoid these: 'Invalid pixel aspect ratio 519/520, limit is 255/255 reducing' i have 'Video: h264 (High), yuv420p, 1920x1040, SAR 1:1 DAR 24:13' and want to encode+resize to xvid 'Video: mpeg4 (libxvid) (xvid / 0x64697678), yuv420p, 640x346 [SAR 519:520 DAR 24:13]'
[21:25] <Bombo> i'm flooded with that msg
[21:26] <Bombo> i can't see the status bar
[21:27] <JEEB> basically the sar/par field in MPEG-4 Part 2 is an 8bit integer
[21:27] <JEEB> and the SAR/PAR you're setting on it is not within 0-255
[21:28] <JEEB> (and yes, that SAR/PAR pretty much means you might as well have it at 1:1)
[21:28] <JEEB> but since it's not exactly 1:1 you end up getting 519:520
[21:29] <JEEB> if your stuff is always output as 1:1 SAR/PAR you could just add setsar filter at the end of your filter chain
[21:29] <JEEB> with the values 1:1
[21:31] <Bombo> hmmkay
[21:32] <Bombo> [Parsed_setsar_1 @ 0x30b6600] num:den syntax is deprecated, please use num/den or named options instead
[21:32] <Bombo> i added setsar=1:1
[21:32] <JEEB> then set it 1/1
[21:33] <JEEB> at least that's what it seems :)
[21:33] <Bombo> sorry, of course ;)
[21:34] <Bombo> Video: mpeg4 (libxvid) (xvid / 0x64697678), yuv420p, 640x346 [SAR 1:1 DAR 320:173]
[21:34] <Bombo> msg is gone, lets see if it looks ok then
[21:34] <JEEB> it should, the difference in aspect ratio should be minimal
[21:34] <Bombo> (and my player plays it right on the tv)
[21:34] <JEEB> 519:520 and 1:1
[21:35] <JEEB> well, your player most probably ignores that aspect ratio information anyways :D
[21:35] <JEEB> because pretty much nothing reads it from MPEG-4 Part2
[21:35] <Bombo> hmmyeah ok ;)
[21:44] <Bombo> btw is there an audio filter in ffmpeg (or external) to 'balance-source-5.1-ac3-volumes-to-stereo' if you know what i mean?
[21:45] <Bombo> i recoded a 5.1ac3 audio stream to mp3, but the volume is quite quiet
[21:45] <Bombo> but then when there are explosions its pretty loud
[21:58] <JEEB> Bombo, ffmpeg by default if you have a new enough build should do downmixing correctly, and yes this often means the effect you are getting. And as funny as it is, that's actually the _correct_ way to downmix it
[21:58] <JEEB> you can probably modify the weights and stuff :P
[22:01] <llogan> FunkyELF: what do you mean by, "read tags"?
[22:08] <FunkyELF> llogan: like id3 tags or whatever mp4tags tags things with
[22:08] <FunkyELF> llogan: I found it... it was mp4info
[22:14] <Bombo> JEEB: hmmkay... how would i do that? probably not easy according to your ;P
[22:14] <JEEB> I've no idea
[22:14] <Bombo> or i could buy a 5.1 set ;)
[22:15] <llogan> FunkyELF: why don't you just use ffmpeg or ffprobe instead?
[22:16] <Bombo> JEEB: it's quite ok, i turn up the volume, the explosions and stuff may disturb the neighbours only ;) but i need to remember to turn it down again, when i switch to normal TV operations
[22:19] <Bombo> i was a bit shocked when jay and seth walked into that shop to buy milky way, when suddenly hell broke loose, and blue transporter beams appeared. if you know what i mean.
[22:19] <Bombo> ;)
[22:40] <viric> when ffmpeg complains about "[output stream 0:1 @ 0x9bf16e0] 100 buffers queued in output stream 0:1", how can I know what that output 0:1 is?
[22:40] <viric> I use filter_complex, and 0:1 is only the input.
[22:46] <viric> http://sprunge.us/ibMS
[22:47] <viric> It's the ffmpeg output, not the commandline :)
[22:47] <viric> Maybe it's the Stream #0:1 (libvorbis) ?
[22:49] <llogan> that's what I'd assume
[22:50] <Lachezar> Hey all& What format should I use to transcode verbatim a set of VOB to a single file?
[22:52] <viric> I'll have to check the last concat
[22:53] <viric> Lachezar: my wildcard is always mkv
[22:53] <Lachezar> I would like not to decode+encode, but copy the video+audio stream. And it seems every VOB file has the streams for English in different place: VTS_04_1: Stream #0.20[0x80], but VTS_04_4: Stream #0.4[0x80]
[22:54] <Lachezar> viric: MKV is fine by me, but can I use -vcodec copy -acodec copy there?
[22:54] <viric> I expect so
[22:54] <viric> no idea about the different streams placing
[22:54] <viric> you could also use 'zip' :)    zip myfile.zip *VOB
[22:55] <Lachezar> viric: I would like to use those on my TV (Samsung whatever).
[22:55] <viric> then you should ask the tv
[22:55] <viric> I don't know much more :)
[22:56] <Lachezar> viric: I'm trying MKV now.
[22:56] <Lachezar> What is: 'mpeg_decode_postinit() failure'
[22:57] <Lachezar> viric: Seems MKV does not like copy: [matroska @ 0xff0900] Can't write packet with unknown timestamp
[22:57] <viric> hm no idea.
[22:57] <viric> I never tried the operation you described.
[22:58] <Bombo> does mpeg2 fit into mkv?
[22:59] <Bombo> Lachezar: you could write into .vob or .m2t and select the streams to copy with -map 0:20  or -map 0:4
[22:59] <Bombo> dunno if you yould select 0x80 streams or $lang ...
[22:59] <Bombo> -y+c
[23:02] <llogan> mkv is like a pig. it will eat just about anything.
[23:03] Action: Lachezar is trying very hard to understand what was written just now.
[23:06] <Bombo> Lachezar: what you want to do? sort the streams?
[23:06] <relaxed> Lachezar: ffmpeg -i concat:1.vob\|2.vob\|3.vob -map 0 -c copy -f vob combined.vob
[23:07] <relaxed> or instead of '-map 0' which means all the input's streams, use -map 0:v -map 0:a etc...
[23:07] <Lachezar> Bombo: I'd like to end up with a single file with 1 Video, 1 Audio and possibly 1 Subtitle.
[23:08] <Bombo> Lachezar: what you got? 1.vob 2.vob 3.vob?
[23:08] <Lachezar> relaxed: Will this work if the audio stream I want is different ID in every .VOB?
[23:08] <Lachezar> Bombo: VTS_04_1.VOB, VTS_04_2.VOB
[23:08] <Lachezar> Bombo: ...
[23:09] <Bombo> you need to sort them first i guess
[23:09] <Lachezar> I think the program hates me: Stream #0:1 -> #0:2 (dvdsub -> ass)
[23:09] <Bombo> make new vobs with -map so that you got the same
[23:09] <Bombo> then concat them like relaxed said
[23:10] <Lachezar> Bombo: So, for every VOB i should 'copy' with -map 0:v:0 -map 0:a:?? and the concat:*.vob ?
[23:12] <Bombo> i think its: ffmpeg -i VTS_04_1.vob -vcodec copy -map 0:0 -acodec copy -map 0:20 01.vob
[23:12] <Bombo> (or -c:v copy and -c:a copy, depends on version)
[23:13] <Bombo> and sub: -scodec copy -map what:ever
[23:14] <Lachezar> Bombo: I see... This sounds like a bit more work than I thought, but it is what it is&
[23:14] <Bombo> Lachezar: copy video stream from source with id 0:0, and audio stream with id 0:20 from source file, into new
[23:14] <Lachezar> Funny thing is: If I do not specify -map ffmpeg seems to get the right streams. Probably because the audio I want is the best quality one.
[23:17] <Bombo> *shrug* then try the concat line on the orig vobs, maybe works
[23:18] <TylerDurden> Just compiled ffmpeg on Debian. Got a 20GB 3D film that cant fit on a USB. Look as I may I cant find a correct way to split this file with ffmpeg.
[23:18] <Lachezar> Bombo: Probably not. I'm actually having problems with the copy: buffer underflow i=1 bufi=16170 size=23816
[23:19] <Lachezar> relaxed: Pardon!
[23:20] <relaxed> follow the bot's instructions
[23:20] <Lachezar> relaxed: Are there any significant differences between ffmpeg and avconvert? 'Cause I'm using *buntu, and it seems ffmpeg is aliased to avconvert
[23:20] <Bombo> TylerDurden: -ss skip to timestamp and -t duration
[23:22] <TylerDurden> Bombo the -codec copy -ss xxxx part I think I got but I am not to sure about how duration would be used?
[23:24] <Bombo> -ss 00:30:00 seeks to 30. minute -t 00:30:00 copies from 00:30:00 30 minutes (to 00:60:00)
[23:24] <relaxed> it also takes seconds
[23:24] <TylerDurden> hmm, Ill give that a go. Thx!
[23:24] <Bombo> and .ms? ;)
[23:25] <TylerDurden> ?
[23:25] <relaxed> yes
[23:25] <TylerDurden> what is ms?
[23:25] <Bombo> milliseconds
[23:25] <TylerDurden> ahhh
[23:25] <TylerDurden> thought you meant that weird OS thingy...
[23:26] <Lachezar> F*ck: & -map 0:0 -map 0:0 -c:v copy -c:a copy & This ends up with two video streams copied (and breaks anyway :().
[23:26] <Bombo> thats spelled with a $ ;)
[23:26] <relaxed> also, -ss before the input does a quick seek to that point; -ss after the input decodes to that point.
[23:26] <TylerDurden> haha
[23:26] <relaxed> -t always belongs after the inputs
[23:27] <Bombo> Lachezar: yes 0:0 is the video stream
[23:27] <Bombo> Lachezar: should give the audio stream id for the audio stream copy
[23:28] <relaxed> Lachezar: read -->  man ffmpeg|less +/^'[ ]{7,}-map'
[23:31] <Lachezar> Pasted: http://pastebin.com/wCsaS1S2
[23:31] <Lachezar> relaxed: I am /trying/ to read https://trac.ffmpeg.org/wiki/How%20to%20use%20-map%20option
[23:33] <Lachezar> Ahhh... I see... The demo has german FIRST, english SECOND :-/
[23:33] <Bombo> Lachezar: try adding -f vob
[23:33] <Lachezar> The paste http://pastebin.com/wCsaS1S2 shows some buffer problem.
[23:34] Action: Lachezar finds skipping the -map better.
[23:34] <Lachezar> Thos 'packet too large' and 'buffer undeflow' seem to break things badly.
[23:35] <Lachezar> Bombo: Adding -f vob did not help: still tons of errors.
[23:36] <Bombo> and then, try ffmpeg ;)
[23:36] <Lachezar> Bombo: I might end up firing a VM with a Debian as next step.
[23:37] <Lachezar> Does anyone know how can I find out what language is an Audio/Subtitle sub-stream in a .VOB?
[23:37] <Bombo> debian has old ffmpeg version
[23:37] <relaxed> Lachezar: try my static build http://johnvansickle.com/ffmpeg/
[23:38] <TylerDurden> awk '/Duration/ {gsub(/,/, "", $2); split($2, a, /:/); print 3600*a[1] + 60*a[2] + a[3]}' ffprobe -i "$@"
[23:38] <Bombo> Lachezar: iirc 0x80 is always german
[23:38] <TylerDurden> sry darn term is so clear I dont see what is what... =P
[23:38] <Bombo> Lachezar: my ffmpeg shows (deu) and (eng) instead of 0x
[23:38] <Lachezar> Bombo: It seems that is not a 'rule' in my case BG seems to be 0x80 :-/
[23:39] <Lachezar> relaxed: tar-bunzip and I'm ready to go?
[23:40] <relaxed> yes
[23:40] <Bombo> Lachezar: BG?
[23:41] <msmithng> read my mind
[23:41] <Lachezar> Bombo: BG = Bulgarian...
[23:41] <msmithng> ah
[23:41] <Bombo> try ffmpeg ;)
[23:42] <Lachezar> relaxed: Sorry to be N00B-y what is ffmpeg10bit?
[23:42] <Bombo> what does it say?
[23:42] <Bombo> what does the ffmpeg say? *sing*
[23:43] <relaxed> Lachezar: it's used for creating 10bit h264 video. you don't need it
[23:43] <Lachezar> Bombo: Stream #0:4[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
[23:43] <Lachezar> Bombo: That's from ffmpeg, not avconv
[23:43] <Bombo> Lachezar: hm. *shurug*
[23:45] <Lachezar> relaxed: Same thing with your static version: lots of 'buffer underflow' and 'packet too large'. Do you want another pastebin?
[23:45] <relaxed> yes
[23:49] <Bombo> (got no vob to check, but a mkv says Stream #0:1(ger) and Stream #0:2(eng), could be possible that vobs just have 0x ids for lang, but thats not the problem anyways ;))
[23:51] <Lachezar> relaxed: http://pastebin.com/diTzZ5Y4
[23:53] <relaxed> you need to map the specific streams you want in the output.  ffmpeg -i input -map 0:0 -map 0:21 -c copy -f vob output.vob
[23:55] <Lachezar> relaxed: Are you sure? It seems it mapped those correctly automatically: Stream #0:1 -> #0:0 (copy), Stream #0:21 -> #0:1 (copy)
[23:57] <relaxed> It's a good practice to get into because ffmpeg won't always do what you think.
[23:58] <Lachezar> relaxed: OK, but even if I specify -map 0:1 -map 0:21 -vcodec copy -acodec copy I get the same errors, and the resulting VOB is choppy+skippy+out-of-sync
[23:59] <relaxed> try -f dvd
[23:59] <relaxed> maybe add -copyts
[00:00] --- Sat Jan  4 2014


More information about the Ffmpeg-devel-irc mailing list