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

burek burek021 at gmail.com
Mon Apr 29 02:05:01 CEST 2013


[00:00] <ubitux> you can now add the -streamid
[00:00] <ubitux> depending on your needs
[00:01] <bcvtab> ubitux: ffmpeg -i a.avi -i b.avi  -map 0:0 -map 1:0 -c copy -streamid 0:10 -streamid 1:20 a.ts
[00:01] <bcvtab> gives me a a.ts with only second stream in it (no audio though)
[00:03] <bcvtab> http://paste.debian.net/789/
[00:03] <ubitux> this is not ffmpeg but well...
[00:04] <ubitux> you're trying to map the two video streams?
[00:05] <bcvtab> ubitux: I want 2 streams both audio and video into one mpegts so that I can play them out of my headend
[00:05] <bcvtab> ubitux: and select the output program
[00:05] <bcvtab> ubitux: to map to my RF converter
[00:05] <ubitux> you show me 2 files with 2 streams each
[00:05] <ubitux> you want to concatenate the 2 video streams and the 2 audio streams?
[00:06] <bcvtab> ubitux: yes
[00:06] <bcvtab> ubitux: into a single transport stream
[00:06] <ubitux> https://www.ffmpeg.org/faq.html#How-can-I-concatenate-video-files_003f
[00:07] <bcvtab> ubitux: I did bump into this site before. But is this not concat serially ? I want a parallel concat (my PAT with 2 programs and 2 PMTS and each PMT with video/audio/pcr)
[00:08] <ubitux> i'm not familiar enough with mpegts to answer your question
[00:09] <ubitux> i recommend you have a look to https://www.ffmpeg.org/ffmpeg.html#Advanced-options
[00:09] <bcvtab> ubitux: Ok. thanks. I will keep trying.
[00:09] <ubitux> also: https://www.ffmpeg.org/ffmpeg-formats.html#mpegts
[00:10] <ubitux> good luck
[00:11] <bcvtab> ah ! there is a ffconcat intermediate file. I think this is a 2 step pass process
[00:11] <bcvtab> I will investigate
[00:30] <Mysterytrain> whats the proper syntax to get ffmpeg to extract mp3 lame audio? I did -acodec libmp3lame and got unknown encoder
[00:31] <Mavrik> extract from what?
[00:31] <Mysterytrain> a mkv file
[00:32] <klaxa> seems like you did not compile ffmpeg with libmp3lame
[00:33] <Mavrik> Mysterytrain, does the mkv already contain an mp3 track?
[00:33] <Mysterytrain> how can I find out for sure? I installed it with my package management system rather than direct form source
[00:33] <Mysterytrain> you know apt-get install ffmpeg
[00:33] <klaxa> in that case you are probably using the fork
[00:35] <Mysterytrain> oh dear
[00:35] <Mavrik> Mysterytrain, ffprobe will output data
[00:35] <Mavrik> anyway, if audio is already in mp3
[00:36] <Mysterytrain> Mavrik: it says ac3 so i guess it isn't.
[00:36] <Mysterytrain> never mind lol
[00:36] <Mavrik> you can do just "ffmpeg -i video.mkv -vn -acodec copy file.mp3" to extract it witnout reencoding
[00:36] <Mavrik> Mysterytrain, well youll have to get a build with libmp3lame compiled in then :)
[00:36] <Mysterytrain> I think i'll just compile my own. probly easier that way
[00:37] <Mavrik> Mysterytrain, there are fully static builds for Linux and Windows available
[00:37] <Mavrik> which you just download and run :)
[00:37] <Mysterytrain> oh ok
[00:37] <Mavrik> http://dl.dropboxusercontent.com/u/24633983/ffmpeg/index.html
[00:37] <Mavrik> linux build
[00:37] <Mysterytrain> thanks :)
[00:37] <Mavrik> latest
[00:55] <klaxa> i always have one from my packagemanager installed and in a seperate directory a recent build from source
[03:24] <pandeiro> i'm using ffmpeg to capture my screen with the command `ffmpeg -f x11grab -r 25 -s 1366x768 -i :0.0 -qscale 0 ~/screen.mp4` but the framerate (25) makes the resulting video too fast. How can I determine the framerate that will make the video at actual speed?
[04:27] <klaxa> pandeiro: you are defining the framerate for the input stream, i don't think you want to do that, put the -r 25 behind -i :0.0 that will define the framerate for the output stream
[04:28] <klaxa> also, you probably won't be able to get 25 fps on a laptop :X
[06:48] <pandeiro> klaxa: thanks a lot!
[10:11] <loada> Hello could someone please explain to me what the pixel format "-pix_fmt" does, I realise when I use yuv420 I get a smaller file size than when I use yuyv422. And also windows media player and vlc are able to play yuv420 smoother than yuyv422. I have no idea what this is doing and what my options are. Could someone elaborate or point me in the right direction, thanks.
[10:19] <xlinkz0> i think you should choose a codec that uses yuv420 by default
[10:19] <xlinkz0> like h.264
[10:21] <loada> what I want to do is dump raw video from a camera, and encode it with .h264 at a later time to save cpu. I am using this command to capture
[10:21] <loada> ffmpeg -y -f dshow -pix_fmt yuv420p -r 5 -s cif -i video="Logitech Webcam Pro 9000" -f rawvideo -vcodec rawvideo theoutput.raw
[10:23] <loada> but not all my cameras support yuv420p, some only support yuyv422 so the line above doesn't always work. When I ignore the -pix_fmt swith the encoding phase fails
[10:44] <xlinkz0> loada: some of your cameras don't have the option to record in raw h.264?
[10:45] <xlinkz0> i don't think you'll benefit by simply changing the pixel format for those
[11:05] <loada> The problem is I don't know what the pixel format is suppose to do. But I do realise that if I encode with yuv420 I get a smaller and video-player-friendly file than when I encode with yuyv422. So I was wondering what the pixel format does & if there were other combinations to get an even smaller file size. My final encoding is always done with .h264 though
[11:09] <relaxed> loada: http://en.wikipedia.org/wiki/4:2:0
[11:43] <aiena> How do I build ffmpeg from stable sources ?
[11:47] <JEEBsv> git clone and git checkout the tag for the release? or what do you mean with 'stable sources'?
[14:06] <jantje> Hi
[14:07] <jantje> I have an mp3 of muliple hours, is there an easy way to split the mp3 in chunks of 1h, with just one ffmpeg command, so that I don't have to look up the duration first
[14:14] <relaxed> jantje: ffmpeg -h muxer=segment
[14:35] <Jiyuu|f> could anyone tell me how can i use file names with spaces in a video filter segment?
[14:35] <Jiyuu|f> i.e. -vf "ass=blah blah blah.ass"
[14:35] <Jiyuu|f> tried
[14:36] <Jiyuu|f> -vf "ass=blah blah blah.ass"
[14:36] <Jiyuu|f> -vf "ass='blah blah blah.ass'"
[14:36] <Jiyuu|f> and
[14:36] <Jiyuu|f> -vf "ass=\"blah blah blah.ass\""
[14:36] <Jiyuu|f> non of them works
[14:39] <beastd> Jiyuu|f: http://ffmpeg.org/ffmpeg-utils.html#Quoting-and-escaping
[14:39] <beastd> Remember you need to get your shell to path things down to ffmpeg (aka an additional level of quoting might be necesarry on top)
[14:40] <beastd> e.g. if you use some unix shell using " and inside ' to specify quotes for ffmpeg should work
[14:44] <Jiyuu|f> tried that as you can see above, but now im thinking the problem is with the ass filter
[14:44] <beastd> Jiyuu|f:  So does for example  -vf "ass='blah blah blah.ass'" work in your test case?
[14:46] <Jiyuu|f> it gets it "stuck"
[14:46] <Jiyuu|f> but im thinking thats because of the filter actually
[14:46] <Jiyuu|f> looks like its working now
[14:46] <Jiyuu|f> it just thinks a long time before it does anything
[14:46] <Jiyuu|f> ok
[14:46] <Jiyuu|f> thanks :)
[14:49] <Jiyuu|f> to be precise, it seems like the 'ASS' filter doesnt like windows format paths
[14:51] <Jiyuu|f> and even more
[14:51] <beastd> Jiyuu|f: What does your Windows path contain? If it contains a \ it must be quoted or espaced
[14:51] <Jiyuu|f> turns out ":" is a special character that needs to be escaped
[14:51] <Jiyuu|f> the doc only mentioned \ and '
[14:52] <beastd> Jiyuu|f: yes
[14:52] <beastd> Jiyuu|f: "' and \ are special characters (respectively used for quoting and escaping). In addition to them, there might be other special characters depending on the specific syntax where the escaping and quoting are employed."
[14:53] <beastd> Because inside filter syntax the : is a special character that falls into the exception rule i cited above :(
[14:53] <Jiyuu|f> as long as it works :)
[14:54] <Jiyuu|f> now i can finally make my batch anime conversion app work lol
[14:54] <beastd> Jiyuu|f: good
[14:55] <Jiyuu|f> btw you wouldnt happen to know how i could get the ASS filter to use font files other then adding them to my fonts dir right?
[14:55] <beastd> Make escaping work in general from your app can be painful process.
[14:59] <beastd> Jiyuu|f:  Sorry I do not know that on top of my head. I would expect it is somewhat up to how and where libass searches for the specified fonts.
[15:00] <neolneol> help...
[15:00] <neolneol> need .trp codec.
[15:01] <neolneol> need to play .trp file.
[15:01] <neolneol> howto?
[15:19] <relaxed> neolneol: ffplay input
[15:19] <relaxed> or try mplayer or vlc
[15:24] <neolneol> tried vlc, failed.
[15:59] <misterno> a bit offtopic but maybe you guys could help... what is the best way to capture streaming videos off internet?
[15:59] <misterno> and i specifically mean live streams
[16:05] <Jiyuu|f> if its some format which is open\cracked its best to get it directly
[16:05] <Jiyuu|f> otherwise just screencap?
[16:05] <misterno> i would avoid screencap
[16:05] <misterno> i have found on google suggestion to use NetTransport app
[16:06] <misterno> http://www.xi-soft.com/default.htm
[16:06] <Jiyuu|f> well, if the protocol isnt cracked you dont have an alternative
[16:06] <misterno> what you mean
[16:06] <Jiyuu|f> rtmp and the like are cracked though so you could get them
[16:06] <misterno> sorry you are talking to a streaming noob here, what you mean
[16:06] <Jiyuu|f> from what i know not all streaming DRMs are cracked
[16:06] <misterno> streams are encrypted?
[16:06] <Jiyuu|f> some are
[16:06] <Jiyuu|f> yeah
[16:07] <misterno> what about youtube live stream?
[16:07] <misterno> or twitch.tv
[16:07] <Jiyuu|f> easy as pie :P
[16:07] <misterno> those im currenctly interested in
[16:07] <Jiyuu|f> twitch i think is also not an issue
[16:07] <Jiyuu|f> the app you linked should work
[16:07] <misterno> so other streams that are encrypted, what protocol they use?
[16:07] <misterno> are there known few protocols or?
[16:10] <Jiyuu|f> i am far from an expert on the field but i think some flash formats are not yet cracked
[16:10] <misterno> do you know how it works?
[16:10] <misterno> there must be decoder in flash player no?
[16:10] <misterno> or decrypter
[16:10] <misterno> how else would i see stream on monitor
[16:11] <misterno> im just asking out of curiosity now that you mentioned encrypted protocols :)
[16:11] <Jiyuu|f> the player decrypts it for sure
[16:11] <relaxed> rtmpdump may do it
[16:11] <misterno> so can't the code be taken from the player?
[16:12] <Jiyuu|f> it is in theory, but i dont think someone did
[16:12] <misterno> this rtmp you mention is that like popular encrypted protocol?
[16:12] <misterno> can you give me an example stream of it
[16:12] <Jiyuu|f> rtmp by itself is not encryped if i remember correctly
[16:12] <relaxed> it's time to start googling
[16:12] <Jiyuu|f> but theres a subset or something
[16:12] <misterno> we are talking about live streaming here right ?
[16:13] <Jiyuu|f> yeah
[16:13] <misterno> for example if i go to bbc stream, what is your guess, is it encrypted?
[16:13] <relaxed> live or not, the delivery method is what you need to research.
[16:14] <Jiyuu|f> from google it would seem like bbc iplayer uses DRMd WMV
[16:14] <misterno> this nettransport seems to support all kinds of streaming
[16:15] <yoav_> Hey! I'd love a pointer towards some documentation on the different interfaces I can use to plug-in an encoder to FFMPEG.  I'm looking for a protocol that'd enable me to throw input frames at an encoder (which may be on a different machine), and get output frames back into FFMPEG. Any ideas? Thanks!
[16:15] <misterno> i never used app before but seems it is quality app
[16:15] <misterno> alright, thanks for the info
[16:17] <misterno> wow i just read about BBC DRM lol
[16:17] <misterno> downloaded streams self destruct after 30 days because of DRM and once watched you are allowed to watch for 7 days more xD
[16:18] <misterno> however there are apps to remove DRM
[16:18] <misterno> http://www.daniusoft.com/tutorial/remove-drm-from-bbc-iplayer-program.html
[16:20] <misterno> ah, it is basically reencoding. It can't simply remove DRM without re-encoding
[16:20] <relaxed> Cracking drm is offtopic here.
[16:20] <misterno> ok no probs
[16:21] <misterno> cheers and have a nice day!
[16:21] <relaxed> (unless I need to do it)
[16:46] <dreamss> is this a valid command?
[16:46] <dreamss> -vf select='gt(scene\,0.4)'
[16:49] <dreamss> [select @ 0x668f60] [Eval @ 0x7fff982e22d0] Undefined constant or missing '(' in 'scene\,0.4)'
[16:49] <dreamss> any know what might cause this?
[16:59] <relaxed> dreamss: are you using the latest version?
[17:08] <dreamss> yeah 10.6 from rpm fusion
[17:15] <dreamss> using the sample commands listed on the site
[17:15] <dreamss> scale=w='min(500\, iw*3/2):h=-1'
[17:15] <dreamss> this dont look right
[17:15] <yoav_> Any ideas on a protocol to send frames to an encoder on a different machine?
[17:15] <dreamss> would not be scale='w=min(500\, iw*3/2):h=-1'
[17:38] <dreamss> ffmpeg -i $myvideo -vf thumbnail,scale='min(720\, iw*3/2):-1' -frames:v 5 -vsync vfr out2.jpg
[17:38] <dreamss> wroks fine
[17:38] <dreamss> ffmpeg -i $myvideo -vf thumbnail,scale='min(720\, iw*3/2):-1',select='gt(scene\,0.4)' -frames:v 5 -vsync vfr out2.jpg
[17:38] <dreamss> gives me Undefined constant or missing '(' in 'scene,0.4)'
[17:50] <dreamss> nm
[17:50] <dreamss> i needed 1.
[18:11] <ubitux> dreamss: were you able to escape properly?
[18:11] <ubitux> dreamss: try -vf "thumbnail,scale='min(720,iw*3/2):-1',select='gt(scene,0.4)'"
[18:11] <ubitux> also, why thumbnail /and/ select scene?
[18:12] <ubitux> you likely want "thumbnail,scale='min(720,iw*3/2):-1'" or "select='gt(scene,0.4)',scale='min(720,iw*3/2):-1'"
[18:12] <dreamss> wasent a scape issue
[18:12] <dreamss> i was using an older ver
[18:12] <dreamss> static compile works great
[18:12] <ubitux> ah, right, scene detection is relatively recent
[19:39] <Litecoin_Messiah> i want to re encode a video to under 700mb xvid anyone know a command? thanks
[19:40] <klaxa> ffmpeg -i my_awesome_movie.mp4 -target svcd my_encoded_movie.avi ?
[19:42] <Litecoin_Messiah> i see but my current video is this one
[19:42] <Litecoin_Messiah> klaxa, http://tpb.partipirate.org/torrent/8416131/21_And_Over_2013_720p_WEBRip_x264_AC3-JYK
[19:42] <Litecoin_Messiah> i want to make it under 700mb to fit in usb and play in xbox
[19:44] <klaxa> ffmpeg -i my_pirated_movie.mp4 -c:v libxvid -fs 700000000 my_encoded_pirated_movie.avi ?
[19:45] <dv--> nice of you to include us in your criminal conspiracy
[19:45] <klaxa> :)
[19:47] <klaxa> you can't write "conspiracy" without "piracy" :D
[19:49] <klaxa> conveying irony is hard with text, i did not mean to discriminate against anyone, i was trying to be funny :|
[19:50] <Litecoin_Messiah> thankls
[19:50] <Litecoin_Messiah> i hope it works
[19:51] <Litecoin_Messiah> Unrecognized option 'c:v'
[19:51] <Litecoin_Messiah>  klaxa
[19:51] <klaxa> try -vcodec instead of -c:v or update your ffmpeg version
[19:52] <Litecoin_Messiah> klaxa sorry to bother you again
[19:52] <Litecoin_Messiah> -vcodec
[19:52] <Litecoin_Messiah> Incompatible sample format 's16' for codec 'ac3', auto-selecting format 'flt'
[19:52] <Litecoin_Messiah> [ac3 @ 0x1e12960] invalid bit rate
[19:53] <Litecoin_Messiah> ':
[19:53] <Litecoin_Messiah>     Stream #0.0: Video: mpeg4, yuv420p, 720x400 [PAR 1:1 DAR 9:5], q=2-31, 200 kb/s, 90k tbn, 25 tbc
[19:53] <klaxa> try: -acodec libmp3lame
[19:53] <klaxa> add that after -vcodec libxvid
[19:53] <Litecoin_Messiah> -acodec libmp3lame
[19:53] <Litecoin_Messiah> This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[19:53] <Litecoin_Messiah> [mpeg4 @ 0x1a089a0] Invalid and inefficient vfw-avi packed B frames detected
[19:54] <Litecoin_Messiah> klaxa,
[19:54] <klaxa> you are using the fork, ask in #libav
[19:55] <klaxa> also, if you are pasting console logs, paste them all on a pastebin-like site
[21:41] <Hans_Henrik> ffmpeg version N-49571-gb5f544a Copyright (c) 2000-2013 the FFmpeg developers
[21:42] <Hans_Henrik> how the heck am i supposed to know if that's an ancient version or not? x.x
[21:49] <Hans_Henrik> The encoder 'aac' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.
[21:49] <ubitux> relatively ancient
[21:49] <Hans_Henrik> im on a debian system, i suspected it was :p
[21:49] <ubitux> ...but don't expect a that better aac encoder in the recent releases
[21:49] <beastd> if you extract the commit identifier (AKA commit hash) you should be able to see get a date from the git repo
[21:50] <ubitux> commit b5f544a0f9981ee1676128cb6c3711a2ec80fe1b
[21:50] <ubitux> Date:   Mon Feb 4 02:36:33 2013 +0100
[21:50] <ubitux> ~3000 commits since then
[21:51] <Hans_Henrik> i expected something from 2011 :p
[21:51] <Hans_Henrik> btw thanks for checking
[21:53] <ubitux> copyright is from 2013
[21:53] <ubitux> so it couldn't have been
[21:55] <klaxa> Hans_Henrik you want fdk-aac for an aac encoder
[21:56] <lentferj> I want to put aac audio streams with h264 (x264) video into an mpeg(2) PS container, but I fail. Neither ffprobe nor xbmc detects the audio streams as aac.
[21:56] <lentferj> anyone knows if this works at all?
[22:02] <Hans_Henrik> klaxa, a familiar face there;  anyway, my ffmpeg is not compiled with libfdk_aac x.x
[22:02] <klaxa> recompile from source /o/
[22:02] <Hans_Henrik> yes. ain't got the source tho
[22:03] <Hans_Henrik> oh wait, i do :o
[22:03] <klaxa> git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg \o\
[22:03] <Hans_Henrik> fffmpeg-git folder, there it is
[22:07] <Hans_Henrik> and to configre.. i'd like as much decoding support as possible.. should probably find a "compile guide" or something? :p
[22:09] <klaxa> ./configure --help
[22:10] <klaxa> and --enable-FEATURE all features :P
[22:11] <beastd> Hans_Henrik: Could be helpful: https://ffmpeg.org/trac/ffmpeg#CompilingFFmpeg
[22:26] <xlinkz0> you could try using the zeranoe config
[22:27] <Hans_Henrik> http://pastebin.com/raw.php?i=m2G2bHm3           << enable ALL the things?  :p
[22:29] <Hans_Henrik> any good reason not just to enable everything?
[22:31] <klaxa> Hans_Henrik: size, but that's it :V
[22:31] <klaxa> or so i think
[22:34] <Hans_Henrik> any idea if i can just pass --arch=native  to configure?
[22:34] <Hans_Henrik> (using gcc, it uses "native" for.. "whatever gcc is running on")
[22:35] <Hans_Henrik> i guess so
[22:35] <beastd> Hans_Henrik: You should not have to set that manually. FFmpeg configure should choose native if available and not cross-compiling by itself
[22:59] <Hans_Henrik> gcc -Wshadow -O3 -ffast-math -m64  -Wall -I. -I. -std=gnu99  -I/usr/local/include    -I/usr/local/include   -fomit-frame-pointer -fno-tree-vectorize   -c -o input/raw.o input/raw.c
[23:00] <Hans_Henrik> x264 configure doesn't set march=  option at least
[23:24] <Hans_Henrik> trying to compile fdk-aac from git://github.com/mstorsjo/fdk-aac.git  , seems current revision is broken somehow..  ./configure 2>&1 | pastebinit   gives: http://paste.debian.net/979/
[23:26] Action: Hans_Henrik is to tired to figure it out today
[23:26] <Hans_Henrik> going to bed, good night folks
[23:38] <sacarasc> Hans_Henrik: Did you do ./autogen.sh first?
[23:38] <Hans_Henrik> bash: ./autogen.sh: No such file or directory
[23:39] Action: sacarasc shrugs, then.
[00:00] --- Mon Apr 29 2013


More information about the Ffmpeg-devel-irc mailing list