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

burek burek021 at gmail.com
Fri Jan 4 02:05:01 CET 2013


[02:39] <abara> hey guys
[02:40] <abara> someone knows how can i convert .mkv to .avi?
[02:40] <sacarasc> The easiest way is ffmpeg -i input.mkv output.avi
[02:41] <sacarasc> You'd have to give more details to get a proper command line.
[02:42] <abara> the mkv file is a bluray rip, 1080p? and i want to play this avi at my panasonic tv :D
[02:42] <abara> with .srt :D
[02:42] <sacarasc> You'd have to give more details than that. Like what the TV supports.
[02:43] <abara> ok
[02:44] <abara> let me check manual
[02:47] <abara> ah
[02:48] <abara> my tv is a panasonic model TC-L32U5B
[02:48] <abara> im looking at codecs there are supported
[02:49] <abara> codecs for avi : H.264 BP/MP/HP and MPEG4
[02:50] <abara> codecs for mkv : H.264 BP/MP
[02:51] <abara> sacarasc: .-.
[02:53] <sacarasc> And for audio? And subtitles?
[02:54] <sacarasc> And bitrates?
[02:54] <sacarasc> Also, resolutions.
[02:56] <abara> audio codecs are the same for both : mp3, mpeg layer 1/2, dolby digital, aac, he-acc
[02:56] <abara> he-aac*
[02:57] <abara> resolution for this codecs are not especified
[02:57] <abara> but tv is fullhd
[02:58] <sacarasc> What audio does the input file have?
[02:59] <abara> http://pastebin.com/8BgHXBMd
[02:59] <abara> mediainfo output for this mkv file :D
[03:01] <sacarasc> ffmpeg -i illegallydownloadedmovie.mkv -c:v libx264 -profile:v main -preset:v slow -crf 22 -c:a copy -c:s srt output.mkv
[03:01] <sacarasc> That might work, but I am a little tired and so not fully with it at the moment.
[03:01] <abara> sacarasc: ok bro! no problem :D
[03:01] <abara> i'll try it :D
[08:17] <wieshka> i am streaming as pirmary output RTMP stream from my Blackmagic Decklink capture card with FFMmpeg, as secondary output i would like to have each 30 sec output of image for picture analysis. Having constant framerate (25)
[09:40] <sesam> So guys, what's your workflow with videofiles and ffmpeg?
[09:41] <ubitux> alias ffmpeg=rm
[09:45] <sesam> any post-house guys here?
[10:27] <sesam> So guys, what's your workflow with videofiles and ffmpeg?
[10:34] <saste> sesam: it's like asking a baker, so what's your workflow with bread?
[10:57] <torbjorn> can I use ffmpeg to just report audio information on a media file?
[10:58] <torbjorn> or video info too for that matter
[11:41] <kodaws> so what happens when a company sells you their product (closed source video app) that contains a modified version of ffmpeg libraries?
[11:42] <JEEB> if it's an LGPL ffmpeg, you can ask them for the sources of that ffmpeg
[11:42] <JEEB> if it's a GPL ffmpeg, you can ask for their full sources for the thing that links to it :P
[11:42] <JEEB> (that is with dlls/dynamic linking)
[11:43] <kodaws> umh how can i tell if it's gpl or lgpl?
[11:43] <kodaws> and what happens if they say no?
[11:43] <JEEB> strings some.dll > derp.txt
[11:43] <JEEB> then crawl through the derp.txt
[11:44] <JEEB> or well, since ffmpeg can either be GPL or LGPL
[11:44] <JEEB> strings some.dll |grep -i -C3 "GPL" > derp.txt
[11:59] <kodaws> libavcodec license: LGPL version 2.1 or later
[11:59] <kodaws> well good enought
[11:59] <kodaws> -t
[11:59] <JEEB> yeah, seems to be doing it the Right Way
[12:00] <JEEB> (I've seen plenty of people fail and then run away (and possibly change it to be correct for newer versions)
[12:01] <kodaws> well not really right, they should be providing the sources for their modified version
[12:01] <JEEB> yes, naturally
[12:02] <JEEB> (well, they'd really be wrong if they said "no u" if you asked them for it, it is OK to have someone actually ask for it)
[12:02] <JEEB> although IIRC LGPL makes you note somewhere that you are using it
[12:02] <JEEB> not sure of the exact wording
[12:03] <JEEB> which reminds me I asked for the source code for my zyxel
[12:03] <JEEB> still haven't gotten a response
[12:04] <kodaws> yes they should be saying "we're using ffmpeg" somewhere
[12:04] <kodaws> and they aren't -.-
[12:04] <klaxa> don't worry, apple will sue them
[12:05] <klaxa> meh... this joke has gone too far
[12:05] <klaxa> it's not doing it for me anymore
[12:06] <kodaws> i am wondering...
[12:07] <kodaws> since they are kind enough to provide the dlls
[12:07] <kodaws> can't them be used again with some ffmpeg version?
[12:17] <kodaws> actually since it's (l)gpl they can be easily reverse engineered
[12:17] <kodaws> decompilation to the rescue!
[12:17] <kodaws> s/easily/allowed to be/
[13:36] <Fjorgynn> Good afternoon
[15:55] <_dr> hi, can someone tell me what "auto-inserting filter 'auto-inserted scale 0' between the filter 'src' and the filter 'out'" means? what does the scale 0 filter do?
[16:01] <saste> _dr: convert formats, so that the destination filter can processe the frames from the input filter
[16:27] <Nick-S> hey guys, straighy question, does image2 supports .psd?(photoshop)
[17:29] <Sashmo_> has anyone used the sharpen filter with ffmpeg??  I cant see to make it work
[17:37] <Sashmo_> looking for a PAL to NTSC specialist.......
[17:37] <Sashmo_> I'm giving up on my trial and error :p
[17:38] <Mavrik> hmm
[17:38] <Mavrik> what are you trying to achieve?
[17:38] <Sashmo_> I'm converting interlaced 25fps PAL, to either interlaced or non interlaced 30fps NTSC
[17:39] <Sashmo_> and the video output on the left to right motion/text is choppy
[17:39] <Sashmo_> and fuzzy
[17:39] <Mavrik> hmm
[17:39] <Mavrik> that's probably from deinterlacing
[17:40] <mpfundstein_home> Sashmo_: what i learned from ntsc to pal is: dont use ffmpeg for it. better check avisynth and get some scripts on doom9.
[17:41] <Mavrik> that too :)
[17:41] <Sashmo_> hmm, interesting, so for live conversion, I have to pipe?
[17:41] <mpfundstein_home> Sashmo_: ffmpeg does just duplicate frames, thats where your stuttering come from
[17:41] <Sashmo_> mpfundstein_home: is there a work around?
[17:41] <mpfundstein_home> Sashmo_: Oh, pipe and avisynth, i dont know how that works sry. i use it from whole files only (until now)
[17:42] <mpfundstein_home> Sashmo_: but i pipe avisynth output in ffmpeg to get mp4's
[17:42] <Sashmo_> mpfundstein_home: and the quality is good?
[17:42] <Sashmo_> on a scale from 1 to 10 ?
[17:42] <mpfundstein_home> Sashmo_: the best until now. i tried month to get it right.
[17:42] <Sashmo_> care to share your settings?
[17:42] <mpfundstein_home> Sashmo_: But the very best quality i achived by using hardware
[17:43] <Sashmo_> snell wilcox
[17:43] <Sashmo_> cant afford
[17:43] <Sashmo_> :(
[17:43] <mpfundstein_home> Sashmo_: We neither, we had a trial from the terranex :D
[17:43] <mpfundstein_home> no problem to share my settings. but lets do it in private. and later. im off in a bit
[17:43] <Sashmo_> that would be great
[17:44] <Sashmo_> thank you
[17:44] <Sashmo_> just PM me, im always on line
[17:44] <Sashmo_> hang on teranex is BM now?
[17:44] <Sashmo_> wow...... I didnt see that one coming.....
[17:44] <mpfundstein_home> yeah
[17:45] <mpfundstein_home> the Teranex had such an incredible conversion quality from ntsc to pal (i dont know about the other way around). it was shocking
[17:45] <Sashmo_> wow....
[17:45] <Sashmo_> I use all the BM stuff now
[17:45] <Sashmo_> I was considering this
[17:45] <Sashmo_> but
[17:46] <Sashmo_> still expensive for what Im doing
[17:46] <mpfundstein_home> but ajk from #avisynth actually made me some handcrafted scripts for each video reference and the results were great too
[17:46] <mpfundstein_home> he is really helpful, maybe you can ask him more
[17:46] <Sashmo_> that would be great to play with, so see what you have done, you seem to know your stuff
[17:46] <mpfundstein_home> well
[17:46] <mpfundstein_home> ima noob still
[17:46] <mpfundstein_home> im in broadcasting for 6 month now. and i learn everyday.
[17:47] <Sashmo_> haha just like me
[17:47] <mpfundstein_home> 6 month ago i wrote my first ffmpeg script :D
[17:47] <Sashmo_> where do you work?
[17:47] <Sashmo_> what type of scripts?
[17:47] <mpfundstein_home> Xite in Amsterdam. A music channel with its own it department
[17:47] <Sashmo_> I'm using all the BM sdi stuff for custom palyout
[17:47] <mpfundstein_home> my main job is to build the backend transcoding pipelines, so that the marketing team can easily decode and deploy videos
[17:48] <Sashmo_> we should chat
[17:48] <mpfundstein_home> this week i learned that batch transcoding sucks.
[17:48] <mpfundstein_home> :D
[17:48] <Sashmo_> LOL
[17:48] <Sashmo_> I rolld my own UDP transfer software
[17:48] <divVerent> I wonder BTW
[17:48] <Sashmo_> to transmit UDP transport streams around the world
[17:48] <divVerent> is there even ANY good way to transcode PAL/NTSC?
[17:48] <mpfundstein_home> oh niiiceee
[17:48] <divVerent> the frame rates differ just too much
[17:49] <mpfundstein_home> divVerent: well one thing i found out is, most NTSC stuff is actually Film with one frame added
[17:49] <divVerent> the only somewhat ok way seems to slow down 25fps->24fps in PAL->NTSC
[17:49] <divVerent> then if needed, telecine to 30fps
[17:49] <divVerent> but when keeping the speed, you just can do wrong
[17:49] <divVerent> this is BTW why PAL versions of movies tend to be shorter
[17:49] <mpfundstein_home> Sashmo_: transport streams? mpegTS?
[17:50] <divVerent> it's not the censorship, it's the NTSC -> PAL speedup
[17:50] <divVerent> and when doing the speeding up, the hard part is the audio :P as you don't want to change pitch, you also don't want pitch shift artifacts
[17:51] <divVerent> German movie versions have it easy, they are dubbed anyway, can dub to the right speed, problem solved
[17:51] <mpfundstein_home> divVerent: i am working with music videos, no chance to speed it up
[17:51] <divVerent> hehe
[17:51] <divVerent> the problem is, there is absolutely no way to handle the frame rate right
[17:52] <divVerent> some do a weird telecine variant for 23.98 -> 25 fps conversion
[17:52] <divVerent> a 2222222222...2223 telecine
[17:52] <divVerent> that still stutters, but a lot less than when doing it for whole frames
[17:52] <divVerent> wikipedia on telecine explains some of this, and mentions the patterns people use
[17:53] <divVerent> "The method used is 2:2:2:2:2:2:2:2:2:2:2:3 (Euro) pulldown (see below[citation needed])."
[17:53] <divVerent> you may have no choice but to do this
[17:54] <divVerent> which of course makes the video then play badly on non interlaced outputs :P
[17:55] <Sashmo_> divVerent: so what do you suggest?
[18:54] <Fjorgynn> is -f rawvideo the best thing to do pass 1 when you do two pass?
[18:58] <xintron> I have a few 720p videos I want to scale down and compress to put on my phone (Samsung Galaxy S 2, resolution 480x800). What would be a good starting point for this where quality is important but filesize < 150MB would be great?
[19:02] <Fjorgynn> Try something like ffmpeg -i input.mp4 -c:v libx264 -crf 22 -s hd480 -c:a libvo_aacenc -b:a 128k output.mp4
[19:02] <Fjorgynn> xintron:
[19:05] <xintron> Fjorgynn, ah, missing libvo_aacenc it seems
[19:06] <Fjorgynn> xintron: don't you have the last ffmpeg? ;)
[19:06] <Fjorgynn> latest
[19:07] <Fjorgynn> libfaac works if you have Linux
[19:07] <Fjorgynn> I think
[19:07] <JEEB> if you want to have the best aac encoder, then use fdk-aac :V
[19:07] <JEEB> vo_aacenc is on the level of the internal aac encoder
[19:09] <Fjorgynn> I don't know if -s hd480 should be -vf scale=480:720
[19:09] <Fjorgynn> JEEB: do you know?
[19:10] <Fjorgynn> instead of hd480 I mean
[19:10] <JEEB> uhh, no idea what you mean with the latter :V
[19:10] <klaxa> 480p is actually 854x480, 720x480 isn't 16:9
[19:11] <Fjorgynn> I see
[19:11] <Fjorgynn> klaxa: but the -s vs the -vf scale?
[19:11] <klaxa> dunno i think i'd use -s
[19:11] <Fjorgynn> ok
[19:12] <Fjorgynn> then -s hd480 is fine
[19:12] <klaxa> but i don't know if the scale video filter is better quality wise
[19:12] <Mavrik> you get scale video filter in any case
[19:12] <Mavrik> (if your ffmpeg is new enough)
[19:13] <Fjorgynn> I have no idea. I learned about hd480 yesterday xD
[19:15] <xintron> Trying some different alternatives and checking the output on the phone to see which is good enough (contra filesize)
[19:16] <Fjorgynn> also you can lower the bitrate instead of doing a -crf
[19:16] <Fjorgynn> set the bitrate manually.
[19:17] <xintron> yeah, tried -crf 22 and 28 and 28 works fine on the phone. How can I compress the audio (audio quality isn't that important for these videos)?
[19:18] <JEEB> -ac 1 (make it mono) and bring down -b:a from the 128k
[19:18] <Fjorgynn> so that's what ac does
[19:19] <Fjorgynn> ^^
[19:23] <Fjorgynn> -preset slow will make the bitrate smaller I think. But it takes long time
[19:24] <Fjorgynn> filesize*
[19:24] <sesam> anyone uses a ffmpeg cluster?
[19:24] <Fjorgynn> inte jag
[19:24] <sesam> hepp
[19:24] <Fjorgynn> stay in here, someone probably does
[19:24] <Mavrik> Fjorgynn, preset doesn't really change bitrate
[19:25] <sesam>  vad använder du ffmpeg till? inom jobbet?
[19:25] <Mavrik> it just increases the quality at the same bitrate
[19:25] <emerica_> MEC but i think dev slowed/stopped
[19:25] <emerica_> http://www.encodingcluster.com/trac/
[19:25] <Fjorgynn> Mavrik: I added the -preset slow and went from 8,68 MB to 8,3 MB
[19:26] <klaxa> recently i encoded a 1080p 90 seconds video with placebo preset
[19:26] <Fjorgynn> 23 second clip
[19:26] <klaxa> took 3h 42m
[19:26] <sesam> emerica_: thx
[19:27] <Fjorgynn> klaxa: xD
[19:28] <Mavrik> Fjorgynn, it was a side effect, it's not a rule to do that
[19:28] <Mavrik> it only keeps to set bitrate better
[19:28] <Fjorgynn> I see
[19:29] <Fjorgynn> how much slower is -preset slow?
[19:29] <klaxa> video looks very good, filesize was decreased slightly from original, original was high 10 profile, encoded to high profile
[19:30] <Fjorgynn> klaxa: and it was woth 3,5 hrs?
[19:30] <klaxa> absolutely :P
[19:30] <JEEB> Fjorgynn, you should encode 2500-5000 frames or so and test per preset :V
[19:30] <JEEB> to see which preset is the slowest that's still OK for you
[19:30] <JEEB> and 2500-5000 frames shouldn't be too much
[19:31] <JEEB> use -ss to seek somewhere and -t to encode ~10-20 seconds
[19:32] <klaxa> Fjorgynn: lemme just upload both files...
[19:32] <klaxa> may take a few mins, i'll come back to you
[19:32] <Fjorgynn> nah
[19:33] <divVerent> 17:55:52          Sashmo_ | divVerent: so what do you suggest?
[19:34] <divVerent> Sashmo_: if you can't edit the video manually, use this "Euro Pulldown" as described on Wikipedia
[19:34] <divVerent> if you CAN edit it, though
[19:34] <divVerent> a better choice may be manually deleting frames before and after all those scene cuts in the video
[19:34] <divVerent> so the beats match up
[19:34] <divVerent> to achieve a better change from 25fps to 23.98fps
[19:34] <divVerent> and then using the standard 3:2 pulldown
[19:35] <divVerent> but before you do any of this - is your input footage really 25 progressive frames?
[19:35] <divVerent> if it is ALREADY europulldown'd, you may rather want to invert that process and get back the original 24fps
[19:36] <divVerent> also... don't actually DO the 3:2 pulldown, encode at 23.98fps and set the necessary flags ("RFF") in the MPEG-2 stream to let the DVD player do it
[19:39] <klaxa> Fjorgynn: in case you are interested regardless: http://klaxa.in/Renai_Circulation_orig.mkv and http://klaxa.in/Renai_Circulation.mkv
[19:52] <Fjorgynn> :)
[19:53] <Fjorgynn> hm
[19:56] <Fjorgynn> xintron: how's it going?
[20:24] <creep> hahaha what is this film? http://static1.fjcdn.com/thumbnails/comments/Didn+t+both+of+them+died+already+_e1000394f6fc6fa20407b8fba0591549.gif
[20:25] <leoj3n> dumb and dumber? @creep
[20:25] <creep> thanks i must watch that ^^
[20:38] <crolab> i'm trying and only get sound - is it my system or the file? ffplay -i  -x 640 -y 350 http://s01.webport.tv/ilive/z050236.stream/playlist.m3u8?wowzasessionid=1234618
[21:13] <seablade_mbp> Ok, tougher question for me at least.  I am trying to duplicate the results in this thread…http://atemuser.com/forums/atem-vision-mixers/blackmagic-atems/atem-tvs-and-h264-pro-recorder-usb-stream
[21:13] <seablade_mbp> I have the encoder set up and streaming via USB the stream, which I believe is just the raw h.264 video and AAC audio if I understand the thread correct…
[21:14] <seablade_mbp> I attempt to connect to the stream via `echo "receive -id 1 -transport tcp" | nc -v -v 127.0.0.1 13823 | ffmpeg -i - -vcodec copy -acodec copy test.ts`
[21:14] <seablade_mbp> And I get the error 'pipe:: Invalid data found when processing input'
[21:14] <seablade_mbp> Is this possible, or am I screwing something up very basic "again" ;)
[21:18] <seablade_mbp> fflogger, You pretty much have it
[21:29] <crolab> seablade_mbp: that is their way of making believing they help
[21:36] <crolab> iive might be the only one seems to know things here :(
[21:43] <llogan> without any context we can only make guesses.
[21:44] <llogan> since you did not provide much information there is little to work with and my crystal ball is broken
[21:46] <crolab> llogan: i think both of us gave more then enough info - why did you bother with this last line?
[21:46] <llogan> i only see commands, but i've only been here for less then 2 hours so maybe i missed something
[21:49] <crolab> lol i think we both would love to have someone _else_ run the commands and see if they _also_ get the mentioned problems
[21:50] <crolab> those commands are giving us problems - and what more is there besides the commands to work with?
[21:54] <llogan> the complete console output shows useful information. this is a standard request.
[21:54] <llogan> but you expect answers with little investment
[21:54] <crolab> don't you get any console output on your test?
[21:55] <llogan> it doesn't matter what I'm doing. you're the one experiencing issues.
[21:55] <crolab> your are kidding right?
[21:55] <llogan> nevermind. good luck.
[21:56] <crolab> do you even have ffmpeg installed?
[21:59] <crolab> for the next time you _want_ to make believe you can be a helper - do you want a link to how to cutnpaste commands to cli?
[22:00] <crolab> well it works with vlc so more need for your expert guidance
[22:03] <seablade_mbp> llogan, In my case the only difference in the standard output is the standard build information.  There is no other output
[22:03] <seablade_mbp> llogan, http://pastebin.com/w2a10S0R
[22:04] <seablade_mbp> llogan, For reference
[22:04] <seablade_mbp> llogan, I wasn't joking when I said you pretty much have it
[22:04] <llogan> it shows that you're not using something 3 years old with can often be the case.
[22:04] <seablade_mbp> In my case as well I don't expect many people will be able to do what I am doing specifically as it requires specific hardware in order to do so
[22:05] <seablade_mbp> llogan, A simple question to answer yes, but even if it was something 3 years old, there isn't much clue as to what is causing the issue that I see.  Either way moot point at this time
[22:06] <llogan> since development is so active the first step is to always see the version
[22:07] <seablade_mbp> Also for the record, running it with -v debug only adds a single line of output just before the error, '[AVIOContext @ 0x7fd568c152c0] Statistics: 54 bytes read, 0 seeks'
[22:14] <llogan> seablade_mbp: what are your input formats? what are you doing, exactly?
[22:18] <seablade_> llogan, The input encoding is h.264/aac
[22:18] <seablade_> llogan, I believe it is MPEG2 TS
[22:19] <seablade_> llogan, The end result is to take it and restream it out to a streaming server in the cloud, or that is the goal
[22:19] <seablade_> llogan, But for the time being I just want to get ffmpeg to write it to a file so that I Know ffmpeg can handle it at all
[22:20] <seablade_> llogan, The stream I am trying to read/restream is generated by a hardware h.264 encoder, and is realtime
[22:22] <seablade_> llogan, The scripts mentioned in the thread I linked to are Perl scripts and write the stream to a file that is an MPEG2 TS encapsulated h.264/aac stream.  The thread then uses the file to restream via ffmpeg but inputting the file as it is being recorded, I am trying to skip the file step if I can as it seems to make more sense to me to do it that way
[22:23] <llogan> if you output to a file instead can ffmpeg decode it properly?
[22:23] <seablade_> llogan, That is the impression I got from that thread, I can check again in a few minutes(In my office away from that computer at the moment)
[22:51] <seablade_mbp> llogan, Good catch… '[mp4 @ 0x7fa2d9828600] malformated aac bitstream, use -absf aac_adtstoasc
[22:51] <seablade_mbp> av_interleaved_write_frame(): Operation not permitted'
[22:53] <seablade_mbp> llogan, Sadly when processing the live stream that flag did not make a difference.  Adding the flag to the command line for the recorded file however allows ffmpeg to process it fine
[22:54] <seablade_mbp> llogan, So short version is yes… ffmpeg can process the recorded file fine from what it seems
[22:54] <seablade_mbp> llogan, And assuming that I can read perl halfway decent, the recorded file is literally just a stream dump of the stream that I am trying to feed to ffmpeg
[22:55] Action: seablade_mbp prefers python, never bothered much with perl
[23:12] <espr3ss0> Q: ffmpeg "./configure", "pkg-config not found" ?
[23:13] <klaxa> espr3ss0: you are missing pkg-config
[23:13] <klaxa> install it, that should fix it?
[23:16] <espr3ss0> I downloaded "freedesktop.org - Software/pkg-config"
[23:16] <espr3ss0> but no idea how to install it o_O
[23:17] Action: Fjorgynn is upscaling
[23:19] <klaxa> espr3ss0: what distribution are you running?
[23:19] <espr3ss0> I used "git clone git://anongit.freedesktop.org/pkg-config pkg-config"
[23:19] <espr3ss0> not sure which version
[23:19] <klaxa> just install the pkg-config provided by your distro's repos
[23:24] <espr3ss0> says glib not found
[23:27] <espr3ss0> is there no version of ffmpeg to skip all this ?
[23:28] <klaxa> if you want to compile from source, no
[23:28] <klaxa> otherwise there are static builds
[23:28] <espr3ss0> will probably make life easier
[23:28] <klaxa> http://ffmpeg.gusari.org/static/
[23:29] <espr3ss0> i just went with "git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg"
[23:30] <klaxa> espr3ss0: then you get the source code to compile it
[23:30] <Sashmo_> ok I give up!...... I will pay someone to find me the best possible command line solution to convert from PAL to NTSC from a UDP interlaced PAL source....... Anyone???
[23:33] <espr3ss0> ok, thanks klaxa
[00:00] --- Fri Jan  4 2013


More information about the Ffmpeg-devel-irc mailing list