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

burek burek021 at gmail.com
Tue Sep 2 02:05:01 CEST 2014


[01:09] <techtopia> hello im trying to mux an audio and video file, but the result still has 3 streams, the 3rd being info/text stream, this is my line
[01:10] <techtopia> ffmpeg -i audio.mp2 -i video.mp4 -acodec copy -vcodec copy output.mp4
[01:10] <techtopia> i was told about using map so tried this
[01:10] <techtopia> ffmpeg -i audio.mp2 -i video.mp4 -map 0:a -map 0:v -acodec copy -vcodec copy output.mp4
[01:11] <techtopia> but this gives me an error
[01:11] <techtopia> "Option map (set input stream mapping) cannot be applied to input file video.mp4"
[01:11] <techtopia> ok
[01:12] <BtbN> -map 0:v:0 -map 0:a:0
[01:13] <techtopia> http://pastebin.com/bPCQgfhs
[01:14] <c_14> that -map 0:a needs to be after the video.mp4
[01:15] <c_14> ehh
[01:15] <c_14> And it should probably be 1:v instead of 0:v
[01:16] <techtopia> http://pastebin.com/bhMvfVyR
[01:17] <techtopia> ok will try 1:V
[01:17] <techtopia> same for audio? 1:a ?
[01:17] <c_14> nah
[01:17] <c_14> The 0 is for the first file and the 1 is for the second file.
[01:17] <c_14> You want the audio stream[s] from the first file and the video stream[s] from the second
[01:19] <techtopia> that worked without an error
[01:19] <techtopia> but i still get a menu/text stream
[01:20] <c_14> Can you pastebin an ffprobe of the output file?
[01:21] <techtopia> http://pastebin.com/1t9YsctB thats from media info
[01:22] <c_14> Add a -map -0 -map -1 right after video.mp4
[01:22] <techtopia> ok
[01:24] <techtopia> "Stream map '0' matches no streams."
[01:24] <c_14> what's your current commandline?
[01:25] <techtopia> ffmpeg -i audio.mp2 -i video.mp4 -map -0 -map -1 -acodec copy -vcodec copy output.mp4
[01:25] <c_14> You need the other maps as well, make sure they're after the negative mappings.
[01:25] <techtopia> oh my bad
[01:25] <techtopia> will add them and try again
[01:28] <techtopia> http://pastebin.com/xPa1N8Ez same error
[01:30] <c_14> Ah, wait. The negative mappings only modify positive mappings so that won't help. Hmm
[01:32] <techtopia> i can remux the file with mp4box but i would like to do it all in ffmpeg if it's possible
[01:33] <c_14> I have no idea why the output file has that text stream. None of the input files have a text stream as far as I can tell and none of the options should create one...
[01:33] <c_14> Have you tried muxing to mkv (just for testing purposes)?
[01:34] <techtopia> i will try it
[01:37] <techtopia> yeah it's still present muxing to mkv http://pastebin.com/ubhgQBS9
[01:38] <techtopia> it's not present in the audio or video file before muxing
[01:38] <c_14> Can you paste the ffprobe output? I want to know what ffmpeg thinks of it.
[01:39] <techtopia> yeah gimmie a few mins, have to download it
[01:41] <techtopia> http://pastebin.com/rL1zufdg
[01:41] <techtopia> ffprobe output
[01:43] <c_14> I don't see a text stream there, maybe mediainfo is detecting part of the metadata as some sort of menu?
[01:43] <c_14> try adding -map_metadata -1
[01:45] <techtopia> http://pastebin.com/E1buuJjz
[01:46] <techtopia> there is a menu entry but no data for it
[01:46] <techtopia> think that might be the best we will get
[01:46] <c_14> Probably. Might be mediainfo doing weird things. I don't know.
[01:46] <techtopia> thanks for the help c_14
[01:46] <c_14> np
[04:24] <LanDi> anyone here ?
[04:25] <llogan> there is always some here. feel free to just ask any questions
[04:30] <LanDi> I'm using this http://paste.kde.org/py3q1zllq to record my mic and my skype output for radio interviews
[04:31] <LanDi> but for some reason it has a big delay between the sources
[04:31] <LanDi> any idea w
[04:31] <LanDi> ?
[04:40] <LanDi> update http://pastie.org/9518095
[04:48] <llogan> LanDi: you're missing the console output
[04:48] <llogan> but now i have to go.
[04:48] <llogan> you should include it in case someone else can answer
[04:50] <LanDi> update: http://pastie.org/9518101
[08:00] <kuzko> hello, is anyone available?
[11:09] <vladkansk> Can anyone help with kernel/server settings for multicast streaming? When I stream multicast from LFS Intel(R) Core(TM)2 Duo CPU     E8400 (input eth1 udp://@239.x.x.x:1234, output eth2 udp://@239.y.y.y:1234) there is no problems. When I do same in CentOS Intel(R) Xeon(R) CPU E5-2643 0 @ 3.30GHz - output stream has a lot of garbage. ?
[11:10] <vladkansk> maybe interrupts? kernel config? ffmpeg config? anything else? google has no answer for that
[11:27] <ndee_> hey everyone! I have a quick question concerning ffplay and webm playback with vp9 codec
[11:27] <ndee_> does ffplay support transparency in webm videos?
[11:28] <ubitux> vp9 decoder only supports yuv420p output
[11:29] <ubitux> do you have vp9 samples with transparency layer?
[11:29] <ndee_> yes, I have something..
[11:29] <ndee_> which works fine in chrome
[11:30] <ubitux> can you share a sample?
[11:30] <ndee_> hmm.. not the files I have currently..
[11:30] <ndee_> but give me a sec, I will prepare somethin
[11:30] <ndee_> g
[11:32] <ndee_> ubitux: I have converted my png files with the yuva420p..
[11:32] <ndee_> yuv420p I mean
[11:37] <ndee_> ubitux: here is a file : but the ffplay d
[11:38] <ndee_> but the ffplay d
[11:38] <ndee_> gha..
[11:38] <ndee_> https://dl.dropboxusercontent.com/u/1250100/fireball.webm
[11:38] <ndee_> sorry.. wrong clipboard xD
[11:39] <ndee_> ubitux: in chrome everything looks nice, but ffplay doesn't seem to display this properly
[11:40] <ubitux> this is not vp9
[11:40] <ubitux> it's vp8
[11:41] <ubitux> the vp8 decoder only supports yuv420p as well though
[11:41] <ubitux> ffplay doesn't support transparency anyway, i think mpv supports it, but not in this case anyway because the decoder only outputs yuv420p
[11:41] <ndee_> really? I thought only vp9 supports transparency..
[11:42] <ubitux>     Stream #0:0: Video: vp8, yuv420p, 500x500, SAR 1:1 DAR 1:1, 24 fps, 24 tbr, 1k tbn, 1k tbc (default)
[11:44] <ndee_> ok.. just saw, that vp8 does support transparency playback too..
[11:51] <ndee_> ubitux: ok.. so you say ffplay cannot playback transparency even if it is converted with yuv420p..
[11:52] <ndee_> sorry, I am not to familiar with with video conversion and all that stuff so I just wanted to get it clear for me! :-)
[11:52] <ubitux> i'm saying ffplay itself doesn't support transparent window, so yeah anyway it won't work
[11:52] <ubitux> but OTOH, some codecs do actually support transparency
[11:52] <ubitux> (in some FLV iirc)
[11:52] <ubitux> so if you want to test, try mpv, afaik they do support it
[11:52] <ubitux> (and use ffmpeg to decode)
[11:53] <ndee_> ok.. thanks alot ubitux for your help! :)
[11:53] <ubitux> that won't work with vp8/9 because we only export yuv420p but that should do with some flv
[11:53] <ubitux> http://samples.ffmpeg.org/FLV/flash_with_alpha/
[11:53] <ubitux> try some here
[11:56] <ndee_> they seem to played back well..
[11:56] <ubitux> with transparency ?
[11:56] <ndee_> well a little hard to tell, the background is completely black..
[11:56] <radleader> i've been using transparency with video a lot
[11:56] <radleader> well 8 bit masks
[11:57] <radleader> but i've never used ffplay
[11:57] <ubitux> ndee_: mpv supports it with some vo
[11:57] <radleader> what are you trying to do
[11:57] <ndee_> vo?
[11:57] <ubitux> video output
[11:57] <ndee_> ah ok
[11:58] <ndee_> radleader: we are thinking to use ffplay in an embeded system.. and I wanted to check if it supports transparencies in videos.. ^^
[11:58] <ndee_> I am not the developer who implemented this, but the graphics artist who is going to convert the stuff in a proper format
[11:59] <radleader> what's the transparency for
[11:59] <ndee_> we have graphics that should overlay the complete screen..
[11:59] <ndee_> at the moment we use sprite animations..
[11:59] <ndee_> but the size of that sprites can get very big
[12:00] <Olivius67> Hi all
[12:00] <radleader> you want to use a video signal with an alpha channel for animated sprites?
[12:01] <ndee_> I just want to playback a video that has an alpha channel.. instead of sprites, which we used currently
[12:01] <radleader> and the background is dynamic content
[12:01] <ndee_> radleader: yep, exactly
[12:02] <ubitux> with a composite manager, this works for me: mpv --vo opengl:alpha 'http://samples.ffmpeg.org/FLV/flash_with_alpha/laraShadow_dl.flv'
[12:02] <radleader> yeah i'm using vp6 and quicktime + png codec for alpha channels in two different bits of my project
[12:03] <Olivius67> I'd like to split a streamable mp4 file into several parts of defined size, whitout re-encoding, and have the resulting parts still streamable. Any idea?
[12:04] <ubitux> hls
[12:04] <ubitux> see segmenter documentation
[12:05] <ndee_> radleader: ok..
[12:05] <ndee_> so.. I just wanted to check if ffplay supports that sort of stuff we need xD
[12:05] <radleader> good luck
[12:05] <ndee_> thanks ^^
[12:49] <KAT_> http://pastebin.com/ANB6rNR8 - How to avoid that multiple audio conversion here?
[13:08] <Olivius67> Bump: I'd like to split a streamable mp4 file into several parts of defined size, whitout re-encoding, and have the resulting parts still streamable. Any idea?
[13:12] <saste> Olivius67, see segmenter/hls
[13:14] <Olivius67> thx state :)
[13:17] <KAT_> [mp4 @ 00000000043e79e0] Codec for stream 0 does not use global headers but cont
[13:17] <KAT_> ainer format requires global headers
[13:17] <KAT_> what does it means?
[13:23] <termos> what's the best way of creating an AVFrame that is a clone of another AVFrame?
[13:25] <ubitux> av_frame_clone()
[14:14] <Olivius67> saste: I have use the following cmd line to generate my parts: ffmpeg.exe -i in.mp4 -codec copy -f segment -segment_time 180 out%02d.mp4 It seems to work well except that the parts seem to require much more buffering (aprox 4MB before starting to play) than the original in.mp4 (which seems to require around 2MB buffering before the video starts playing). Is there anyway to reduce the buffering amount?
[14:15] <saste> Olivius67, how do you measure the buffering?
[14:16] <Olivius67> saste: I confess this is not much scientific method, but basicaly I'm using firebug Network console
[14:16] <saste> Olivius67, how did you get that value?
[14:17] <Olivius67> well I have just checked on the console how much of the outxx.mp4 file was downloaded before the movie starts to play. The web player is JWPlayer.
[14:19] <Olivius67> another strange thing, that may say the outxx.parts may not be perfectly valid is that using my dektop player (kmplayer), the out00.mp4 part plays well, but the next ones hang.
[14:22] <saste> Olivius67, try with -f ssegment
[14:22] <saste> note the double s at the beginning
[14:23] <Olivius67> saste: yup
[14:24] <Olivius67> same issue with kmplayer, uploading 2 parts to test online now
[14:25] <Olivius67> also I have a repeated warning from ffmpeg while splitting: "[mp4 @ 045d7cc0] Using AVStream.codec.time_base as a timebase hint to the muxer
[14:25] <Olivius67> is deprecated. Set AVStream.time_base instead."
[14:33] <Olivius67> saste: ok, just tested online, it required nearly 6 MB buffering before starting to play.
[14:52] <Olivius67> saste: I can confirm that except from out00.mp4 all subsquent parts are someway corrupted, ie they do not play in vlc. They do stream however, except that they need to initialy  buffer a lot.
[15:10] <tareed> Morning,  Im trying to run the transcode.c example for ffmpeg 2.3 against a H264 encoded video file.  I get the error from the h264 library that the ffmpeg defaults are broken.  I have modified the transcode.c to set the vprofile to baseline and the preset to medium (fast, slower, etc) and have not had success.  What else should I look at?
[15:50] <Olivius67> saste: still around?
[15:53] <c_14> Olivius67: try adding -movflags +faststart
[15:54] <Olivius67> c_14: thx :-) trying now
[15:57] <Olivius67> c_14: except from out00.mp4 all resulting parts still don't play on vlc, uploading now 2 parts to test online
[15:58] <c_14> Are you still using ssegment?
[15:58] <Olivius67> yes
[15:58] <spaam> why split the .mp4 file ?
[15:58] <c_14> I'm not sure ssegment works for mp4.
[15:58] <c_14> According to the docs it's meant for mpegts files.
[15:59] <spaam> i only tought it worked for .ts and ismv files
[15:59] <c_14> ye
[15:59] <c_14> Try the regular segment muxer.
[15:59] <Olivius67> ok, trying again segment with the extra params you just game me
[16:01] <Olivius67> no better results for vlc
[16:01] <spaam> How to you feed it to vlc? via .m3u8 playlist?
[16:01] <Olivius67> spaam: I open vlc, and drop the file there
[16:02] <spaam> what command are you using now?
[16:02] <Olivius67> part00 works just fine, but following parts do not play
[16:02] <Olivius67> ffmpeg.exe -i in.mp4 -codec copy -f segment -segment_time 180 -movflags +faststart out%02d.mp4
[16:03] <spaam> Olivius67: did you read what c_14 wrote?
[16:04] <Olivius67> I think so
[16:04] <Olivius67> re-reading though
[16:04] <Olivius67> -f segment is to me the "regular" segment muxer
[16:05] <Olivius67> what did I miss?
[16:06] <c_14> So I just tried that command with one of my files and I can play all the output files.
[16:06] <spaam> Olivius67: segment only works for .ts, nut and mkv files. not .mp4
[16:06] <spaam> c_14: nice :)
[16:06] <spaam> c_14: what version are you using ?
[16:06] <saste> Olivius67, I tried your command and is working fine
[16:06] <saste> with both ffplay and vlc
[16:07] <saste> can you try with ffplay?
[16:07] <c_14> git head as of aug 14
[16:07] <spaam> saste: maybe some old version of ffmpeg cant make proper files with the segment muxer?
[16:07] <saste> spaam, I think it depends on the player
[16:07] <saste> ffplay is rather tolerant
[16:07] <saste> another problem may be due to the initial timestamp
[16:07] <Olivius67> spaam: well I thought c_14 was tallking about ssegment not working with mp4 and that segment would on the oposite work with mp4
[16:08] <Olivius67> on my end neither work
[16:08] <saste> there is an option to reset the timestamp in the following segments
[16:08] <saste> Olivius67, also, are you sure that the second file contains data?
[16:08] <c_14> Olivius67: what version of FFmpeg are you using?
[16:08] <Olivius67> yes all file have aprox the same size
[16:09] <saste> Olivius67, you can file a ticket on trac, publishing your input sample
[16:10] <Olivius67> http://pastebin.com/s5Dm0jNw
[16:11] <Olivius67> can't realy publish the stream it's company property
[16:13] <c_14> Can you try the same command with a different file?
[16:13] <Olivius67> yes, maybe you know about a typical streamable mp4 file online?
[16:17] <Olivius67> ok, I have this big_buck_bunny sample mp4, trying to split it now
[16:19] <saste> or you can generate a sample with testsrc
[16:19] <Olivius67> same prob
[16:19] <Olivius67> the sample I used: http://camendesign.com/code/video_for_everybody/test.html => "MP4" link
[16:21] <c_14> That sample works for me.
[16:21] <c_14> Had to split with 18s though since the file is only 1m long.
[16:21] <Olivius67> alright, then my ffmpeg?
[16:21] <Olivius67> did 20 sec parts
[16:22] <Olivius67> http://pastebin.com/s5Dm0jNw
[16:22] <Olivius67> the pastbin is from my previous attempt with my original file not the bunny file
[16:23] <saste> Olivius67, still works fine with ffmpeg -i big_buck_bunny.mp4  -codec copy -f segment -segment_time 20 -movflags +faststart big_buck_bunny-%02d.mp4
[16:24] <Olivius67> anyway you could upload the parts somewhere, so thta I could test with my local machine and with my online setup?
[16:25] <c_14> Olivius67: http://dl.c-14.de/t/out/
[16:26] <Olivius67> thx :) testing now
[16:27] <Olivius67> fisrt thing is that you get 4 parts while I get only 3
[16:29] <Olivius67> ok, I have the same problem with vlc: i see vlc cursor progressing but no vido or sound, for all parts except 00
[16:29] <c_14> eh, I get 3 as well. That 4th part was a leftover that I forgot to delete.
[16:29] <Olivius67> ok
[16:30] <c_14> Do they work with ffplay?
[16:30] <c_14> Might be a vlc bug.
[16:30] <Olivius67> ffplay is cml driven?
[16:30] <Olivius67> yes working
[16:31] <Olivius67> ffplay out01.mp4
[16:31] <Olivius67> ffplay.exe out01.mp4
[16:32] <c_14> If it works with ffplay, then it's probably a vlc bug.
[16:33] <Olivius67> well, it doesn't work as well on kmplayer
[16:33] <Olivius67> and streaming requires the full part to be downloaded first
[16:33] <Olivius67> probably because it is small
[16:34] <Olivius67> but on my own original file it requires nearly 6MB buffering before it starts playing
[16:35] <Olivius67> I don't know much about video, still couldn't it be some kind of header that would need to be replicated from the original file to all parts
[16:35] <Olivius67> I mean the fact that parts 00 behave normaly, but not subsequent parts
[16:36] <Olivius67> or maybe the cut is not 'clean', in the middle of some frameset... sorry I miss the vocabulary
[16:45] <saste> Olivius67, try with -reset_timestamps 1
[16:47] <Olivius67> saste: haha! all parts ply nicely on vlc and kmplayer
[16:47] <Fjorgynn> Hello hello hello is there anybody out there
[16:48] <saste> Olivius67, so the -reset_timestamps things did the trick?
[16:49] <Olivius67> yes, it fixed the 'corruption' for vlc and kmplayer, testing now how much a part needs to buffer to start playing
[16:49] <chrisss123456> hey guys, running into an issue when exporting frames as a video. at one frame it always just stays there, while drop increases (seemingly forever). im running this command: ffmpeg -r 25 -i frame%d.png -qscale 0 video.mp4
[16:53] <chrisss123456> anyone here?
[17:02] <Olivius67> saste: unfortunately on jwplayer, all parts require around 6MB buffering, while original file (not splitted) requires around 2MB buffering to start playing.
[17:03] <saste> Olivius67, try to remove -mov_flags +faststart
[17:04] <saste> this will put MOV metadata at the beginning of the file
[17:04] <saste> then I don't know how jwplayer is implemented, probably you should ask them for advice
[17:05] <Olivius67> trying now
[17:07] <JEEBsv> flash players usually buffer data in seconds
[17:07] <JEEBsv> and you usually can modify that according to your buffering model
[17:09] <chrisss123456> hey can anyone help?
[17:17] <Olivius67> saste: same issue without -mov_flags +faststart
[17:17] <Olivius67> JEEBsv: how can I define my buffering model?
[17:23] <JEEB> Olivius67, on the player side to match your encoding you do it with the settings that the player lets you poke at. most flash-based players let you poke at the amount of seconds stuff is buffered
[17:23] <JEEB> to set it on the encoding side you use -maxrate and -bufsize
[17:24] <JEEB> maxrate being the minimum amount of bandwidth a user has to have to watch the video without further buffering, and bufsize is the buffer within which this maxrate is calculated all the time
[17:25] <JEEB> and the time-wise "amount to buffer" can then be calculated via bufsize / maxrate . f.ex. bufsize 6000 and maxrate 3000, you get 2 "seconds" of buffering
[17:25] <chrisss123456> no one? :(
[17:25] <Olivius67> JEEB: yes curently browsing jwplayer options page, I'm going to try a few. Still what I don't understand is why my original file buffers 2MB whereas parts obtained from splitting this original file, buffer nearly 6MB.
[17:26] <Olivius67> without tweaking anything on the player side that is.
[17:26] <JEEB> well if you re-encoded without VBV (maxrate and bufsize), then that wouldn't be surprising
[17:27] <JEEB> since the player would just buffer as much as stuff comes in your amount of buffering
[17:28] <Olivius67> I don't think there was re-encoding, I used: ffmpeg.exe -i in.mp4 -codec copy -f segment -segment_time 180 -reset_timestamps 1 out%02d.mp4
[17:28] <JEEB> yes
[17:28] <JEEB> anyways, I have no idea how those files are created or how flash/jwplayer calculate the buffer exactly
[17:28] <JEEB> although if you don't put the index into the front of the file you will have to buffer more
[17:29] <JEEB> or well, depending on the http source/player's capabilities - the whole file
[18:42] <pmarty> does ffplay support displaying subtitles? it has shortcut 't' for switching between subtitles and it works (as I can tell from console output) but they are not displayed.
[18:47] <pmarty> I know ffplay is the demo app, but I like it (don't tell me to use mplayer :)
[18:53] <JEEB> pmarty, what about mpv :P
[18:55] <pmarty> JEEB: oh, yes, mpv is currently the coolest one of m* family
[18:55] <pmarty> but I like to use ffplay because it uses the same syntax as ffmpeg
[18:56] <pmarty> I hate swithching between mplayer/ffmpeg cmd line syntax
[18:56] <pmarty> too much to remember
[18:57] <Mavrik> ffplay does display subtitles
[18:57] <Mavrik> at least the DVB ones
[18:57] <Mavrik> the support is kinda broken tho
[18:59] <pmarty> by itself (without -vf magic)?
[19:00] <pmarty> well it has 't' shortuct for switching so it must have some kind of support
[19:00] <pmarty> "Switch subtitle stream from #2 to #-1"
[19:00] <pmarty> "Switch subtitle stream from #-1 to #2"
[19:00] <pmarty> after I press it
[19:17] <sfan5> if you want ffmpeg syntax how about ffmpeg -i file.mp4 <what you want to do > -map 0 -c:s copy -c:a pcm_s16le -c:v rawvideo -f ffm - | mpv - ?
[20:04] <chriys> hi all, I'm looking for a tuto on how to set up http live streaming from an rtmp url on ubuntu.
[20:35] <chriys> on which version of ubuntu can I run apt-get install ffmpeg ?
[20:36] <KjetilK> chriys, see http://packages.ubuntu.com/search?suite=default&section=all&arch=any&searchon=names&keywords=ffmpeg
[20:37] <chriys> thx KjetilK
[20:38] <KjetilK> np
[20:38] <sacarasc> The quick answer, Lucid and earlier.
[20:53] <chriys> thx guys
[21:40] <Aison> I would like to merge an audio and video stream. My problem is now, that at the beginning of the output stream, the sync is ok, but at the end, the audio is a littlebit behind the video
[21:40] <Aison> so either audio or video plays slower or faster
[21:41] <Aison> is it possible to stretch either video or audio during merge?
[21:41] <c_14> https://ffmpeg.org/ffmpeg-filters.html#setpts_002c-asetpts
[21:42] <c_14> basically setpts=n*PTS will modify the speed of the video by n
[21:42] <c_14> ditto for audio
[21:42] <c_14> pick which you want to mess with
[21:42] <Aison> what's better to modify, audio or video?
[21:43] <c_14> I'd probably modify the video so the audio doesn't get stretched out/compressed but it also depends on the content.
[21:43] <c_14> If the video has timestamps burned in or anything like that, mess with the audio.
[22:32] <gcl5cp> is there a easy way to "translate" a command-line into a C++ API?
[22:35] <c_14> system("ffmpeg [stuff]") :P
[22:35] <c_14> But no, I don't thin' there is an easy way.
[22:36] <gcl5cp> i tell API to build a cross platform.
[22:36] <gcl5cp> let me try with system()... thank
[23:22] <dahat> Quick sanity question... when building ffmpeg under MinGW for Windows with the VS2013 compiler and using the --enable-libx264 argument when running configure... which .lib file should it go looking for? libx264.lib or x264.lib?
[00:00] --- Tue Sep  2 2014


More information about the Ffmpeg-devel-irc mailing list