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

burek burek021 at gmail.com
Tue Dec 13 02:05:01 CET 2011


[00:11] <pasteeater> weeee... hard drive failure on this server. see you guys.
[00:51] <Seph> Can I have ffmpeg copy over soft subtitles (ass) and the fonts used when converting from mkv container to mp4 container?
[00:51] <Seph> Trying to use -scodec copy tries to copy the subtitles but fails, and it also does not include the embedded fonts
[00:55] <dashcloud> you may need the data copy as well
[00:56] <dashcloud> -dcodec copy
[00:57] <dashcloud> if the copy is failing, that may not help much, but if the embedded fonts show up as data streams, -dcodec copy should help there
[01:07] <Seph> thanks dashcloud, that gives me something to work with at least. I had not seen dcodec before.
[01:08] <dashcloud> also, make sure the mp4 container actually supports the subtitle type you are trying to put in it
[01:09] <dashcloud> mkv will accept nearly everything- I don't think mp4 accepts a lot of those
[01:13] <Seph> The subtitle format is ass, should be supported.
[01:15] <dashcloud> sorry then- not terribly sure
[01:15] <Seph> Wait no, it's ssa, my brain corrected it for me, so it might actually not be supported.
[01:16] <Seph> Let me first check if ffmpeg is compiled with support for this subtitle format.
[01:21] <Seph> seems like ssa is included under ass support
[01:36] <Seph> Kinda weird, ffmpeg claims not to support ssa but it uses libass which does support it.
[03:17] <jasonlfunk> I have a handful of mp3s with variable length and some associated jpegs. I want to match each jpg with it's mp3 and make a video out of it. Can this be done with ffmpeg?
[03:40] <beastwick> Hello, I am trying to capture with a Dazzle DVC100 on arch linux with ffmpeg (ati catalyst drivers) but I am unsure of what I am doing exactly.
[03:40] <beastwick> is this the right channel for support?
[03:46] <dashcloud> possibly- if all you need are the defaults mostly for your capture device, then yes
[03:47] <beastwick> OK, well using the basic commands that man ffmpeg provide for video grab
[03:47] <beastwick> it captures succesffuly
[03:47] <beastwick> but playing it back in VLC gave me just a black screen
[03:48] <beastwick> (i have video overlay turned off cause of problems with my driver) vid overlay flickers my screen and causes my monitor to become inaccessible
[03:48] <beastwick> will that prohibit seeing the video?
[03:50] <dashcloud> did your copy of ffmpeg come with ffprobe?
[03:51] <beastwick> yes
[03:52] <dashcloud> can you run ffprobe on your output file, and put the output of the ffprobe command on ffmpeg.pastebin.com ?
[03:52] <beastwick> oh sure
[03:56] <beastwick> http://pastebin.com/B7QQEcQs
[03:56] <beastwick> for my output
[03:56] <beastwick> btw I am trying to capture SVIDEO
[03:57] <beastwick> do I need to switch the channels via command line?
[03:57] <beastwick> does it default to COMPOSITE?
[04:00] <dashcloud> if you have v4l2-ctl, that will tell you pretty much everything about your card
[04:02] <beastwick> would you like me to paste what v4l2-ctl outputs?
[04:02] <dashcloud> that output file should play- it's the FFmpeg video codec tag for xvid
[04:02] <dashcloud> the problem is, FFmpeg doesn't really offer control over inputs/outputs and such for v4l2 devices
[04:02] <beastwick> LOL
[04:03] <beastwick> I think it only sees composite!
[04:03] <beastwick> look at my pastebin, let me show you.
[04:03] <dashcloud> which is quite possible- I believe it opens the device with defaults, plus any options you specify
[04:04] <beastwick> http://pastebin.com/96q0jC7Z
[04:04] <beastwick> it says COMPOSITE OK
[04:04] <beastwick> and nothing about SVIDEO
[04:04] <beastwick> so I believe it can't see svideo =/
[04:05] <beastwick> I need composite though for TV so I can see what I am doing (video games) anyway to switch?
[04:05] <beastwick> my tv does not support svideo
[04:05] <beastwick> so I run svideo to the capture card
[04:05] <dashcloud> mplayer/mencoder give you access to the full range of v4l2 controls if you need them
[04:06] <beastwick> yes
[04:06] <beastwick> but can mencoder stream?
[04:06] <beastwick> I want to stream the video to twitch.tv
[04:09] <dashcloud> not so sure about the streaming part- I just use it for capturing video from my tv capture card
[04:10] <dashcloud> I believe you can send video from mencoder to another program using pipes  ( | ), and from there you can do whatever you need to do in the other program
[04:11] <beastwick> yes I was right
[04:11] <beastwick> tested with composite
[04:11] <beastwick> and it works
[04:12] <beastwick> Maybe I can split a composite signal
[04:13] <beastwick> thank you for showing me ffprobe!
[04:13] <beastwick> big help
[04:14] <dashcloud> glad I could sort of help
[09:25] <sam1> hi guy,  i want to crop a movie and encode it ,i used this command " ffmpeg -i test.avi  -an  -vcodec libx264  -vf crop=1920:784:0:184  -s 720x576  test.mp4", but it doesn't work 
[09:43] <burek> sam1
[09:43] <burek> can you please use pastebin.com, to show your command line and its output?
[09:52] <sam1> ok
[09:52] <sam1> wait a sec
[10:00] <sam1> hi  burek 
[10:01] <sam1> http://pastebin.com/0Gdnhpxb
[10:01] <sam1> it is result
[10:02] <ubitux> what about -vf crop=1920:784:0:184,scale=720:576 ?
[10:02] <burek> try using scale
[10:03] <sam1> ok
[10:03] <sam1> i try it 
[10:04] <sam1> not work 
[10:05] <sam1> http://pastebin.com/2aWLFSyC
[10:05] <burek> :)
[10:06] <burek> try reading what ubitux has wrote
[10:06] <burek> and remove -s option
[10:06] <sam1> ./ffmpeg  -ss  00:00:50  -i  /home/mfsmount/video_source/v/test/test.avi    -vcodec  libx264  -an   -vf crop=1920:784:0:148  scale=720x576    -frames  100  -y   /home/output/test0.avi
[10:06] <sam1> Input #0, avi, from '/home/mfsmount/video_source/v/test/test.avi':
[10:06] <sam1>   Metadata:
[10:06] <sam1>     encoder         : Lavf52.47.0
[10:06] <sam1>   Duration: 00:04:24.96, start: 0.000000, bitrate: 6662 kb/s
[10:06] <sam1>     Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 25 tbc
[10:06] <sam1>     Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 320 kb/s
[10:06] <sam1> [NULL @ 0x9f48540] Unable to find a suitable output format for 'scale=720x576'
[10:06] <sam1> scale=720x576: Invalid argument
[10:06] <sam1> ubitux  ?
[10:06] <sam1> i  remove -s 
[10:06] <burek> <ubitux> what about -vf crop=1920:784:0:184,scale=720:576 ?
[10:08] <sam1> it is wrong format
[10:08] <sam1> ","  is not need 
[10:08] <burek> pastebin?
[10:09] <sam1> ok
[10:09] <sam1> http://pastebin.com/Hfd85ASY
[10:10] <burek> remove blank space before ,
[10:11] <ubitux> did i put a space? :)
[10:11] <sam1> ok
[10:11] <sam1> doesn't work 
[10:11] <ubitux> you can put a space but you need to add quotes
[10:12] <sam1> need "" ?
[10:12] <burek> pb again
[10:12] <ubitux> scale=720x576
[10:12] <ubitux> use a ':'
[10:12] <ubitux> did i put a 'x' or a ':'?
[10:12] <sam1> scale=720:576 ?
[10:12] <ubitux> 10:02:54 <@ubitux> what about -vf crop=1920:784:0:184,scale=720:576 ?
[10:13] <ubitux> seriously, just read what we write :p
[10:13] <burek> sam1, just copy/paste what he provided for you
[10:13] <sam1> i  try it 
[10:17] <sam1> it works 
[10:18] <sam1> thanks  ubitux and  burek 
[10:18] <burek> :beer:
[10:18] <ubitux> :apple juice:
[10:18] <burek> ^^
[10:18] <sam1> but i don't understand why it can't work  with  -s 720x576 
[10:19] <sam1> yeah 
[10:21] <burek> sam1, 
[10:22] <burek> if you take a look at your first pastebin http://pastebin.com/0Gdnhpxb
[10:22] <burek> you'll see that ffmpeg has already used -s option
[10:22] <burek> and then moved on to -vf
[10:22] <burek> it first resized your input and then started cropping
[10:22] <burek> so it couldn't crop anymore at those coordinates that you wished for
[10:23] <sam1> you mean  i put -s  before  -vf?
[10:23] <burek> no, im just explaining what has happened
[10:23] <sam1> o  i know 
[10:24] <burek> buffer -> scale -> crop
[10:24] <burek> scale = -s
[10:24] <sam1> o ,crop last 
[10:26] <sam1> i have a question for scale ,
[10:26] <burek> btw, you could create a bug report for that
[10:26] <burek> im not sure if it is a bug really
[10:26] <burek> but it makes sense what you did
[10:27] <burek> ffmpeg should have first passed through the -vf and after that -s
[10:27] <sam1> first  -vf ? 
[10:27] <sam1> or first -s ?
[10:27] <burek> :)
[10:27] <burek> never mind, just ignore me :)
[10:28] <sam1> o , i have a question a again,
[10:29] <sam1> if  i want to pu a logo  on top of movie,and scale the logo, and same i want to sacle movie ,how use scale?
[10:29] <sam1> put 
[10:29] <burek> try to scale logo outside ffmpeg
[10:29] <burek> prepare the exact image you need and then use ffmpeg to overlay that image
[10:29] <burek> because it's not possible right now to scale logo + scale video
[10:30] <burek> ffmpeg is encodin/decoding tool after all
[10:30] <burek> not a movie editor :)
[10:30] <sam1> only one time for logo or video ?
[10:30] <burek> input+logo and then scale (together)
[10:31] <burek> or, maybe you can try -vf scale=...,logo(movie)=...,scale
[10:31] <burek> i dunno
[10:31] <burek> try and let us know :)
[10:31] <sam1> you mean  scale logo  out ffmpeg?
[10:32] <burek> try and see :)
[10:32] <sam1> ok  i try  
[10:32] <sam1> wait a sec 
[10:45] <sam1> burek ,i put a logo  overlay  the image  , use  command 
[10:45] <sam1> "./ffmpeg   -i  /home/mfsmount/video_source/v/test/test.avi    -vcodec libx264   -acodec libaacplus    -ab 64k   -vf "movie=/home/mfsmount/video_source/watermark/logo.png, scale=400:-1  [watermark]; [in]  [watermark]  overlay=0:0  [out]  "   -frames  50     -aspect  16:9     -y  /home/output/test.mp4
[10:45] <sam1> " 
[10:46] <sam1> scale=400:-1  for logo 
[10:47] <sam1> add  -s  720x576  for scale video,it works,
[10:47] <burek> no no
[10:47] <burek> you got it all wrong
[10:47] <sam1> where?
[10:47] <burek> http://ffmpeg.org/libavfilter.html#Tutorial
[10:47] <sam1> i got the video 
[10:47] <burek> try reading that
[10:48] <sam1> where is wrong ?
[10:48] <sam1> i read it ,and accoring to it 
[10:52] <burek> ffmpeg -y -i video.flv -vf "movie=logo.png [logo];[in] scale=500:400 [s1], [s1][logo] overlay=10:main_h-overlay_h-10, scale=200:100 [out]" out.flv
[10:52] <burek> that works
[10:53] <burek> there is a difference between ; and ,
[10:53] <burek> so read more carefuly, try to understand that difference
[10:53] <burek> and you'll see it's not that hard
[10:53] <burek> and if you want to scale just the logo and overlay it on the original video
[10:53] <burek> hmh let me see
[10:55] <burek> ffmpeg -y -i video.flv -vf "movie=logo.png [logo];[logo] scale=50:40 [logo1];[in][logo1] overlay=10:main_h-overlay_h-10, scale=200:100 [out]" out.flv
[10:56] <sam1> i  need to read it carefully, burek
[10:56] <sam1> hmh?
[10:56] <burek> that would 1) define a logo 2) scale the logo to 50x40 3) start from the input + apply the logo with options in overlay=... 4) scale it (all together to 200:100 and thats the output
[10:57] <sam1> o , i got it .
[10:57] <burek> there is a difference between ; and ,
[10:57] <burek> read the tutorial
[10:57] <sam1> ; for a input ?
[10:57] <burek> no
[10:58] <burek> , concatenates filters
[10:58] <sam1> [input1];[input2]?
[10:58] <burek> read the tutorial...
[10:58] <sam1> ok 
[10:58] <sam1> thanks 
[11:14] <ludde> what's a good CRF value to use?
[11:21] <JEEB> the highest that still looks good for you
[11:21] <JEEB> start from 24 or so
[11:21] <JEEB> then go down if it looks bad
[11:21] <JEEB> go up if it looks fine for you
[11:21] <JEEB> 24 is high enough that you actually might get "looks bad" with your first try, yet low enough that it might also look good enough while applying a certain amount of compression
[11:22] <JEEB> s/applying/resulting in/
[11:27] <ludde> JEEB: thanks
[11:27] <ludde> JEEB: what does dup=24 drop=0 mean in the ffmpeg output?
[11:27] <JEEB> sounds like duplicated frames and dropped frames >_>
[11:27] <JEEB> no idea tho
[11:27] <ludde> :)
[11:41] <Mavrik> ludde, while encoding, 24 frames were duplicated and 0 dropped
[11:41] <ludde> Mavrik: what does duplicated mean
[11:41] <Mavrik> um, what's unclear?
[11:41] <ludde> Mavrik: is it because framerate is different in the output?
[11:41] <Mavrik> yes
[11:41] <ludde> oh hm
[11:41] <Mavrik> or maybe the output is longer than input
[11:42] <ludde> how can i get ffmpeg to use the same framerate as the input
[11:42] <ludde> right now i used -r and specified what i thought was the same
[11:42] <ludde> but maybe it differs in the decimals
[11:42] <Mavrik> hmm
[11:42] <ludde> er
[11:42] <JEEB> you don't specify it?
[11:42] <JEEB> then it should keep it the same
[11:42] <Mavrik> ludde, if you'd have different framerate you'd have ALOT more than just 24 frames duplicated
[11:42] <JEEB> Mavrik, depends on the length of the clip
[11:43] <JEEB> as well as the difference
[11:43] <ludde> this is a 2h clip
[11:43] <Mavrik> JEEB, yes, of coure
[11:43] <Mavrik> I was assuming he has a longer clip
[11:43] <JEEB> 24000/1001 versus 24 for example
[11:43] <ludde> I specified 23.98 while the original might have been 23.978
[11:43] <Mavrik> ludde, ah, that's expected then
[11:43] <JEEB> derp, I hate how ffmpeg likes to output those frame rates as such :|
[11:43] <JEEB> just output 60/1.001 or something, or 60000/1001
[11:43] <JEEB> or 24/1.001
[11:43] <ludde> ffmpeg only prints 2 decimals, so i can't know if it's 23.98 or 23.978 :|
[11:43] <JEEB> and 24000/1001
[11:44] <Mavrik> ludde, I wouldn't worry about that in your place
[11:44] <JEEB> Mavrik, -.-
[11:44] <Mavrik> JEEB, honestly I think the sync/framerate code in ffmpeg is quite a mess
[11:44] <JEEB> he should worry about the fact that he is doing a frame rate conversion in itself
[11:44] <ludde> yes I want to avoid frame rate conversion
[11:44] <JEEB> thus, "do not set" is usually better
[11:44] <JEEB> ludde, yes -- then you should just not set a frame rate
[11:44] <ludde> I thoght do not set defaulted to like 25
[11:44] <Mavrik> yeah, not setting framerate is the best option
[11:45] <Mavrik> ludde, no, it defaults to the same framerate as input
[11:45] <Mavrik> unless you're creating a DV with -target or some such format which is framerate dependant
[11:46] <JEEB> ludde, applications usually do that when they either don't support reading the input frame rate from somewhere, or cannot do it (as in, the data doesn't exist)
[11:46] <ludde> i c
[11:46] <Mavrik> JEEB, btw, how is that handled with h.264 which doesn't have a concept of framerate?
[11:46] <ludde> frame= 1712 fps= 66 q=28.0 size=   18952kB time=00:01:08.98 bitrate=2250.6kbits/s
[11:46] <JEEB> well, you've got your timestamps
[11:46] <ludde> is this bitrate value the average bitrate of the whole movie so far
[11:46] <ludde> or is it some local average?
[11:47] <JEEB> so far most probably
[11:47] <JEEB> depending on the application you can either calculate the difference between the first and second timestamps, or calculate the differences in all of the timestamps > Mavrik 
[11:47] <JEEB> if you need to show a frame rate
[11:48] <Mavrik> assuming that the video has constant framerate.
[11:48] <JEEB> well, you are just in need of a "frame rate" field to show the luser
[11:49] <JEEB> if you are a perfectionist you might say "average frame rate" and then maximums and minimums or whatever
[11:49] <JEEB> if you don't handle it as timestamps on the background I'll have someone hit you with a hammer :3
[11:49] <JEEB> also, X/Y frame rates > float output
[11:49] <Mavrik> that's what I wanted to know ^^
[11:51] <JEEB> also, the timestamps the application would receive depend not only on the video format itself, but also the container it is muxed in
[11:51] <JEEB> so you get funny cases such as matroska
[11:51] <ludde> JEEB: having specified the wrong framerate, will ffmpeg now attempt to interpolate all frames to achieve the desired framerate?
[11:51] <Mavrik> hmm, irrc video streams have independent timestamps of the container
[11:51] <Mavrik> *iirc
[11:52] <JEEB> Mavrik, they can have of course
[11:52] <ludde> JEEB: or does it just insert duplicates randomly
[11:52] <JEEB> but not everyone always specifies the correct frame rate during encoding if they encoded to raw H.264 or whatever > Mavrik 
[11:52] <Mavrik> ludde, it inserts duplicates when it must to keep your specified framerate
[11:52] <ludde> JEEB: and what happens with the sound? hm
[11:52] <ludde> JEEB: will the sound start lagging behind now
[11:52] <JEEB> ludde, sound is unrelated as it tries to keep the clip's length the same
[11:52] <ludde> but then it should've dropped frames too
[11:52] <ludde> hm
[11:52] <Mavrik> JEEB, tell me about it... while working on encoders for our iptv provider I wanted to beat TV channel stream providers with a hammer :(
[11:52] <ludde> nvm
[11:53] <ludde> i see what you mean
[11:54] <JEEB> Anyways, matroska is funny because it specifies timestamps in a somewhat different way from most containers. And if you mux a stream with timestamps as-is from mkv to mp4 for example, most hardware players will most probably fail with it :3
[11:54] <JEEB> http://matroska.org/technical/specs/index.html , ctrl+F for TimecodeScale
[11:55] <Mavrik> JEEB, hmm... where's the problem? that looks just like a timebase?
[11:56] <JEEB> yes
[11:56] <JEEB> but
[11:56] <JEEB> the problem is in
[11:56] <JEEB> how big these numbers will be
[11:57] <JEEB> now think about devices that barely support uint16_t or int16_t for timestamps
[11:57] <Mavrik> I see
[11:57] <JEEB> thus, it becomes imperative that you try to seek what is the actual frame rate that was given the muxer for it to generate timestamps :)
[11:57] <JEEB> "something close enough"
[11:58] <Shimmy> AMV is now supported in FFmpeg 9.0 However, i am unable to encode to AMV.
[11:59] <Shimmy> I tried: ffmpeg -i sample.wmv -s 176x128 -r 16 -ac 1 -ar 22050 -qmin 3 -qmax -3 sample .amv
[11:59] <Shimmy> But here is the result:
[11:59] <Mavrik> Shimmy, why don't you paste your command line and ffmpeg output to a pastebin and show us what happens?
[11:59] <Shimmy> ffmpeg version 0.9, Copyright (c) 2000-2011 the FFmpeg developers   built on Dec 12 2011 12:34:19 with gcc 4.6.1   configuration: --enable-decoder=aac --enable-decoder=dca --enable-decoder=libopencore_amrwb --enable-decoder=aac_ latm --enable-decoder=dfa --enable-decoder=libopenjpeg --enable-decoder=aasc --enable-decoder=dirac --enable-decode r=libschroedinger --enable-decoder=ac3 --enable-decoder=dnxhd --enable-decoder=libspeex --ena
[12:00] <Shimmy> @Marvik
[12:00] <Shimmy> OK
[12:00] Last message repeated 1 time(s).
[12:00] <Shimmy> ************************************* Sorrrrrry
[12:01] <Shimmy> Check it out: http://pastebin.com/gDzjMBya
[12:02] <Shimmy> Thiank and sorry for the hassle
[12:02] <Shimmy> Any ideas please?
[12:02] <JEEB> uhh
[12:02] <JEEB> you didn't specify audio or video codecs?
[12:02] <JEEB> nor a format
[12:03] <JEEB> also, my face at that configure line
[12:04] <Shimmy> No I did specify
[12:04] <Shimmy> Read the first line in the paste bin link http://pastebin.com/gDzjMBya
[12:04] <Shimmy> The extension appears in a different line because of the screen buffer, but it's valid
[12:05] <JEEB> no you did not, you have only specified "output to a file something.amv"
[12:05] <JEEB> you have not set a video or audio codec
[12:05] <JEEB> if this amv or whatever is supported encoding-wise
[12:05] <JEEB> also that configure line, no idea if it has the support enabled :D
[12:05] <JEEB> why the heck can't people just do ./configure and --enable-gpl if they need + needed libraries if needed
[12:06] <Shimmy> @Jeeb - ./configure --enable-gpl means?
[12:06] <Shimmy> Enable all the goodies or what?
[12:06] <Shimmy> I ran a batch that enable ALL the encoders/decoders/muxers/demuxers etc.
[12:07] <JEEB> ...
[12:07] Action: JEEB goes slit his wrist
[12:07] <Shimmy> I need an FFmpeg version that has EVERYTHING
[12:07] <Shimmy> I don't mind it's weight
[12:07] <JEEB> You are DoingItWrong
[12:07] <JEEB> by default, the configure will enable everything that is LGPL
[12:08] <JEEB> if you need GPL or nonfree parts, you do --enable-gpl and --enable-nonfree as needed
[12:08] <JEEB> and then enable those libraries you need if you need any external libraries
[12:08] <JEEB> end of story
[12:08] <Shimmy> I tried letting the configure do its thing alone but the amv didn appear on the least at all
[12:09] <Shimmy> but i just read that amv is now part of ffmpeg, no ext libraries
[12:09] <Shimmy> btw JEEB before u get me wrong
[12:09] <Shimmy> im a .net dev and a complete beginner in FFmpeg/C/UNIX/Makefiles/Configure and all this stuff
[12:10] <JEEB> I'm sorry, I've said everything I can say about the configure already
[12:10] <Shimmy> ok
[12:10] <JEEB> default is to enable everything that is LGPL
[12:10] <JEEB> then you enable GPL and nonfree parts if needed
[12:10] <JEEB> nonfree is usually for some external libraries and will make your binary non-distributable
[12:11] <JEEB> if you don't get it with ./configure --enable-gpl then it just isn't there or needs an external library
[12:11] <Shimmy> OK
[12:11] <JEEB> (oh right, ffmpeg might've had an --enable-gplv3 or whatever switch)
[12:11] <Shimmy> will try to configure -gpl and see if it's in the encoders list
[12:11] <JEEB> see ./configure --help
[12:12] <Shimmy> i know i switched all the flags ON
[12:12] <Shimmy> we're talking about a different issue
[12:12] <Shimmy> im talking about that it doesn't work
[12:12] <Mavrik> Shimmy, you're missing -vcodec amv spec
[12:13] <Mavrik> -acodec as well
[12:13] <Shimmy> lemme try
[12:13] <JEEB> Shimmy, I did mention that you lacked setting for audio and video formats
[12:13] <JEEB> which are, surprise, -vcodec and -acodec
[12:13] <JEEB> derp
[12:14] <Mavrik> we need a SOTI protocol
[12:15] <Shimmy> @JEEB I hope you both were right, if thats the case u made my day
[12:15] <Shimmy> lemme try
[12:57] <Shimmy> @JEEB, I just made a fresh configure no params (gpl is disable by default as per the help) and amv appears in both decoders and encoders
[12:58] <Shimmy> The problem is don't know how to use it
[12:59] <foo-nix> ffmpeg, in particular the libav{codec,format,...}.h lib, doesn't support adding a hinting track to a (mp4) file, does it?
[13:02] <Shimmy> I made another simple test attempting to convert to amv and it doesn't work: http://pastebin.com/CVEA8H9v
[13:03] <Shimmy> To be noted that there is no documentation on how to use the amv codec
[13:03] <Shimmy> Is there a command to get specific help/info for a certain ffmpeg-supported format?
[13:03] <Shimmy> My screen buffer just doesn't contain the whole huge bunch of help...
[13:04] <JEEB> stop ignoring what you have been told
[13:04] <JEEB> <JEEB> Shimmy, I did mention that you lacked setting for audio and video formats
[13:04] <JEEB> <JEEB> which are, surprise, -vcodec and -acodec
[13:09] <Shimmy> @JEEB take it easy bro im an ffmpeg newb man
[13:14] <Shimmy> When converting to AMV what are the required args for -acodec -vcodec etc.
[13:14] <foo-nix> Shimmy, I would say that you aren't telling ffmpeg exactly enough what you want to have as output. it can detect the input format and codecs easily, but it just ask god for the output-format.
[13:14] <foo-nix> Shimmy, so you could start by specifying the frame-rate (or timebase to be exact)
[13:14] <JEEB> I have no idea, but you told me that it showed amv as a decoder and encoder, soo....
[13:14] <foo-nix> Shimmy, by adding an option -r25
[13:15] <JEEB> foo-nix, I bet he doesn't want to do frame rate conversion
[13:15] <JEEB> I have no idea why he added that there
[13:15] <JEEB> unless he really wanted frame rate conversion
[13:15] <JEEB> anyways, you got your vcodec if it is 'amv' as you saw in the configure output
[13:16] <JEEB> also, you did know that you can output the standard output of an application to a file?
[13:16] <JEEB> ffmpeg -help/whatever > derp.txt
[13:16] <JEEB> you might want to consider that if you do not have better ways of reading through the help command's output
[13:17] <foo-nix> Shimmy, I think JEEB is trying to tell you that you dit specify the format (read collection of streams) but did not specify the codec for the streams. With -acodec and -vcodec you can tell it what codecs to use for the audio and video stream. In mp4 these can be aac and mpeg4 for example
[13:18] <foo-nix> Shimmy, and probably from that ffmpeg can guess everything else, but I have no idea what codecs the amv-format supports.
[13:19] <Shimmy> @JEEB thanks for the tip on the output help to file. I tried with or without framerate and I get this error: http://pastebin.com/vEiv0vGg
[13:19] Action: JEEB points at the gawd damn -r
[13:20] <JEEB> also, what the <beep> is that -target
[13:20] <JEEB> without a setting
[13:20] <JEEB> note: if you think that you have to specify output file with a -target, no you don't
[13:20] <JEEB> you just specify it as-is, without an option
[13:21] <JEEB> so noow it is most probably trying to find a target that is called sample.amv
[13:21] <JEEB> and understandably failing at it
[13:21] <foo-nix> JEEB, it tries to tell you you need to specify the target propperty, google suggests these can be -target {pal,ntsc,film}-film
[13:21] <JEEB> ....
[13:22] <foo-nix> JEEB, -target pal-film
[13:22] <JEEB> you definitely did not understand what I just said, did I
[13:22] <JEEB> HE IS WRITING -target sample.amv
[13:22] <JEEB> > -target sample.amv
[13:22] <JEEB> I was pointing that out
[13:22] <JEEB> that -target IS NOT "output file name"
[13:23] <foo-nix> JEEB, so try -target pal-foo.amv. It's a suggesting given by ffmpeg. I don't really understand why you didn't try that
[13:23] <JEEB> ...
[13:23] Action: JEEB facepalms
[13:23] <JEEB> the level of dumb just went over my head
[13:24] <foo-nix> JEEB, you cannot expect the world to fix your problems. It works like this: you se an error. You google the hell out of it, untill you fix it. If you did, be happy. But before you ask a question, be sure to know how for example the target-propperty works.
[13:25] <JEEB> note: do see who actually used that command line, and how I am commenting on it
[13:25] <JEEB> I am trying to tell Shimmy -- who used that command line
[13:25] <JEEB> that A) I don't know where he got his random -r 16 and B) that he is using -target wrong
[13:25] <JEEB> it seems like Shimmy is understanding -target as "output file name"
[13:25] <JEEB> thus, <JEEB> you definitely did not understand what I just said, did I
[13:26] <JEEB> s/I/you/
[13:26] <foo-nix> JEEB, if you did try prefixing pal or film or ntsc, and it's still giving an error, you did that wrong.
[13:26] Action: JEEB sighs
[13:26] <JEEB> can you read at all?
[13:26] <foo-nix> JEEB, no, I can't
[13:26] <JEEB> I mean, I've been trying to say all the time that I am the one helping Shimmy
[13:26] <JEEB> not the other way
[13:26] <JEEB> and that there is no amv-related targets, but that is just details
[13:26] <JEEB> he is using -target like "this is the output file name"
[13:27] <JEEB> which is not needed
[13:27] <JEEB> and is, indeed, incorrect usage of -target
[13:27] <foo-nix> Ah, damn
[13:27] <foo-nix> touche
[13:28] <Shimmy> @JEEB the truth is that I learnt all these quicky params from here: http://code.google.com/p/amv-codec-tools/wiki/HowToConvertToAMV I thought this library is built by the same rules as FFmpeg.
[13:28] <Shimmy> @JEEB I do apologize for drivin u nuts and appreciate you help
[13:28] <Shimmy> I wish I would know what I have to do.
[13:29] <mdsh> How can I get more than 1 frame out of a -vf movie source of an image? N never gets above 0 with -vf "movie=watermark.png,showinfo[logo];[in][logo]overlay=0:0[out]" which means I cannot use the fade filter
[13:29] <Shimmy> What I do know is, I have a working amv file, here is its info: http://pastebin.com/1QZMymww
[13:29] <JEEB> generally an avconv/ffmpeg command line bases on ffmpeg/avconv -i input.file -vcodec herp <insert rate control mode here> -acodec derp out.file
[13:29] <Shimmy> I need to make my WMV file to look like that AMV file
[13:30] <JEEB> well, note the audio and video codecs
[13:30] <JEEB> then note the resolution
[13:30] <JEEB> and... that's it
[13:31] <JEEB> and then there's rate control, but I have no idea how the AMV codec works
[13:31] <Shimmy> According to here: http://code.google.com/p/amv-codec-tools/wiki/HowToConvertToAMV It has strict rate limits
[13:32] <JEEB> ok
[13:32] <JEEB> that generally looks good
[13:32] <JEEB> lemme see the resize video filter documentation
[13:35] <JEEB> ffmpeg -i file.derp -vf scale=160,120 -vcodec amv -qmin 3 -qmax 3 -acodec adpcm_ima_amv -ac 1 -ar 22050 out.amv
[13:35] <JEEB> this might work
[13:35] <JEEB> never used that format
[13:35] <JEEB> and never used the scale filter :P
[13:36] <JEEB> also, I have no idea if the ac and ar settings are still there or if they do the same thing
[13:36] <JEEB> and I guess your sample was 176,128
[13:36] <JEEB> (176x128)
[13:38] <JEEB> and hardware players seem to be limited to 16fps
[13:38] <JEEB> thus you'd probably want to add -r 16 somewhere
[13:38] <JEEB> don't ask me if it goes before or after the -i input setting
[13:38] <JEEB> probably after
[13:40] <JEEB> oh, and it seems like ffmpeg wants the video filter settings separated with a : not ,
[13:40] <JEEB> thus 176:128
[13:42] <Shimmy> @Jeeb I tried your line
[13:42] <JEEB> something a la ffmpeg -i input.derp -r 16 -vf scale=176:128 -vcodec amv -qmin 3 -qmax 3 -acodec adpcm_ima_amv -ac 1 -ar 22050 out.amv
[13:43] <Shimmy> Now it says
[13:43] <Shimmy> [NULL @ 03a47a80] Unable to find a suitable output format for 'sample.amv' sample.amv: Invalid argument
[13:43] <JEEB> pastebin it all :V
[13:43] <Shimmy> sec
[13:45] <Shimmy> http://pastebin.com/8Mhd9NLi
[13:48] <JEEB> Shimmy, looking at your ffmpeg output it's Yet Another Example of something that was Configured Very Badly
[13:48] <JEEB> are you sure this build has all that stuff enabled?
[13:48] <JEEB> :3
[13:48] <JEEB> as in, the stuff you actually need
[13:49] <JEEB> ./configure --enable-gpl should give you both LGPL and GPL(v2) stuff which should be over 90% of everything there is
[13:49] <JEEB> and then re-build
[13:49] <JEEB> don't forget to make distclean once
[13:49] <JEEB> then configure
[13:49] <JEEB> and then make
[13:52] <Shimmy> The FFmpeg Windows builds in the http://ffmpeg.zeranoe.com/builds/ site are outdated and don't contain the new version 9.0 released a week ago that enabled AMV support
[13:53] <JEEB> you are seemingly compiling it by yourself
[13:53] <Shimmy> Here is where all problems start. meanwhile i mangaed to learn a thing or two in C programming, probably by hurting other ppl }:)
[13:53] <JEEB> at least I don't think anyone else is as pants-on-head retarded about configure options
[13:53] <Shimmy> yes.
[13:53] <Shimmy> me.
[13:53] <Shimmy> i never used configure before
[13:54] <JEEB> anyways, try adding -f amv
[13:54] <JEEB> after -ar I guess
[13:54] <JEEB> not between -ar and the number of course
[13:54] <JEEB> but after setting the -ar value
[13:58] <Shimmy> I now checked ffmpeg -codecs and both lines appear amv and adpcm_ima_amv
[14:01] <JEEB> I hope you read what I wrote
[14:02] <Shimmy> I tried setting -f amv and I get the same issue of here http://pastebin.com/rgVAKgtJ
[14:02] <JEEB> question
[14:02] <JEEB> why is there two spaces between amv and sample.amv
[14:03] <JEEB> also, derp @ -f amv failing
[14:03] <Shimmy> BTW, I made a configuration version that enables ANY encoder/dec/mux whatever in it see it yourself and laugh: http://pastebin.com/eQaGkGee
[14:03] <JEEB> but I guess it indeed doesn't exist
[14:03] <JEEB> Shimmy, ./configure --enable-gpl would've enabled pretty much all of that and is much more easier to read -.-
[14:04] <JEEB> (I think the GPLv3 stuff would be the only thing not enabled, because IIRC that was in a separate configure option, but that's just a single unrelated codec)
[14:04] <Shimmy> u know what lemme make a new version with --enable-gpl the configure+make take painfully long
[14:04] <Shimmy> can u teach me how to clean?
[14:04] <JEEB> make distclean
[14:05] <Shimmy> tx, will get back after i test with new version
[14:05] <JEEB> make clean is for smaller cleanings, make distclean is for full clean-up
[14:05] <Shimmy> thanks jeeb for all ur help!!
[14:05] <JEEB> I wish I got paid for this :P
[14:05] <Shimmy> haha
[14:07] <Shimmy> look what they say here: http://ffmpeg.org/#donate2011
[14:07] <Shimmy> funny
[14:07] <JEEB> I'm not related to ffmpeg in any way
[14:07] <Shimmy> ffmpeg geex r the best freakin ppl in the world
[14:07] <Shimmy> just wanted to show u
[14:08] <JEEB> also
[14:08] <JEEB> it might just be that there's an AMV encoder now
[14:08] <JEEB> but whatever that amv container is
[14:08] <JEEB> I have no idea
[14:08] <JEEB> it only speaks of an encoder
[14:08] <JEEB> of course, I have a kind of a feeling that the amv container is just avi
[14:08] <JEEB> :P
[14:09] <JEEB> [avi @ 013c8340] scale/rate is 0/0 which is invalid. (This file has been generated by broken software.)
[14:09] <JEEB> yes
[14:09] <JEEB> seems so
[14:09] <Shimmy> http://wiki.multimedia.cx/index.php?title=AMV
[14:09] <JEEB> from your sample output
[14:10] <Shimmy> honestly i donno, somebody asked me to make a .NET video/audio converter
[14:10] <Shimmy> god i wish i would know C/C++ `natively`
[14:10] <Shimmy> aight lemme build the project a new
[14:11] <JEEB> I will guess that the -f needs to avi
[14:11] <JEEB> unless now suddenly amv works
[14:11] <JEEB> or just amv without -f starts working
[14:12] <Shimmy> It might be able to convert, the problem is that it has to be tested on some chinese crap device that has to be able to play it
[14:12] <Shimmy> and here is where it sux
[14:12] <JEEB> 'AMV files are a variant of AVI with the strings "AVI" and "avih" in the header replaced with "AMV" and "amvh"'
[14:13] <JEEB> this doesn't sound like too hard to do
[14:13] <JEEB> even if after conversion
[14:13] <JEEB> anyways, get that ffmpeg re-built first
[14:20] <JEEB> Shimmy, you know it would be cool to get some status reports so I can stop caring about this after you get finished with it :V
[15:09] <MDijkstra> hi, I'm trying to do mov->mp4 remuxing while preserving the exif Rotation metadata...
[15:09] <MDijkstra> can't seem to figure out how to get ffmpeg to write the rotation flag to the resulting mp4 file:
[15:10] <MDijkstra> Rotation                        : 0
[15:10] <MDijkstra> even though it was 90 in the original .mov
[15:11] <Mavrik> did you use map_metadata?
[15:12] <MDijkstra> yeah, I tried that
[15:13] <MDijkstra> -map_meta_data 0:0 and 0.1:0.1
[15:13] <MDijkstra> err
[15:13] <MDijkstra> 0.0:0.0
[15:13] <MDijkstra> but even if I do -metadata Rotation="90" it still won't set anything
[15:18] <ludde> I encoded a 2 hour movie, and I'm seeing close to 6MB of mp4 headers in the beginning of the file. Can I do something about this, so I can use it for http streaming?
[15:47] <MDijkstra> right, just noticed my ffmpeg version is ancient
[15:47] <MDijkstra> will try again with 0.9
[16:02] <dark-sun> hi every1
[16:03] <dark-sun> I'm using debian 6 stable, I can't convert anything to H.264 MPEG-4 cause of missing plugin, any idea? 
[16:04] <Mavrik> missing plugin?
[16:04] <dark-sun> i even tried to compile ffmpeg from src but result was nothing
[16:04] <MDijkstra> right, looking at ffmpeg git support is simply largely missing for the rotation flag
[16:05] <dark-sun> Madtree: yes, it tries to look for missing plugin but it can't find anything.
[16:05] <Mavrik> what "plugin"?
[16:05] <Mavrik> dark-sun, put your command and output to a pastebin and link it here.
[16:06] <dark-sun> Mavrik: I'm using a gui called transmageddon : 
[16:06] <dark-sun> MPEG-4 AAC encoder
[16:06] <dark-sun> H.264 encoder
[16:06] <Mavrik> I see.
[16:06] <Mavrik> Lose the GUI. Come back.
[16:07] <dark-sun> Mavrik: gimme a command then :)
[16:16] <dark-sun> using cli was a good idea! looks like I have to move all compiled libraries to /usr/lib/
[16:17] Action: dark-sun hope it works...
[16:21] <dark-sun> I should remove my ffmpeg before compiling it from source?
[16:21] <dark-sun> it's debian 6
[17:42] <Am1GO> hi guys, i'm trying to re-stream rtsp to flv. i'm using jw player, but flv stream after some amount of bytes transfered stops. only refreshing page where jw player placed can solve this problem (streaming restarts, but hangs again after some time). my ffserver config http://pastebin.com/HbN082gj. can anyone give any advice?
[17:58] <Am1GO> nice community -_-
[18:04] <Am1GO> vlc solve the problem, thanks
[18:15] <rocketmagnet> hi all, how on earth can i convert an mp4 file to an mp3 file ??
[18:15] <Ave> that makes no sense, but continue
[18:16] <rocketmagnet> me ?
[18:19] <ubitux> ffmpeg -i in.mp4 out.mp3
[18:20] <Ave> so I was wrong, it made sense
[18:21] <rocketmagnet> ubitux: the mp4 file have the ending .mp3...
[18:21] <rocketmagnet> should i rename them to mp4 and then let ffmpeg do the rest
[18:21] <ubitux> Ave: no it doesn't but ffmpeg should handle it anyway :D
[18:22] <ubitux> file type recognition is based not based on extension *at first*
[18:22] <ubitux> is not based
[18:22] <ubitux> if you think it's mp3 just rename to mp3, what's the point?
[18:22] <Ave> I've always said "the filename doesnt matter" (except in windows)
[18:24] <ubitux> afaik at least the output format may be guessed from the extension
[18:24] <ubitux> not sure about the input
[18:26] <Ave> yeah, that happens
[18:33] <rocketmagnet> ubitux: i've renamed my mp3 file (which is actualy an mp4) to .mp3 but that gives me "Unsupported codec for output stream #0.0"
[18:38] <rocketmagnet> ubitux: i've renamed the mp3 file (which is an mp4 file) into .mp4 and then tried ffmpeg -i myfile.mp4 myfile.mp3, but that gives me "Unsupported codec for output stream #0.0"
[18:39] <rocketmagnet> ubitux: does i need to install the liblibmp3lame codec for libffmpeg  somehow ??
[18:52] <rocketmagnet> how to make ffmpeg be able to use use libmp3lame ????
[18:52] <microchip_> rocketmagnet: install lame-devel and recompile ffmpeg
[18:53] <rocketmagnet> there is no lame-devel package =(
[18:54] <microchip_> rocketmagnet: whatever the lame development pkg is named on your distro
[18:54] <microchip_> could be lame-dev, i dunno
[18:55] <luke-jr> Why does ffmpeg 0.8.7 ignore CFLAGS, and leave out -mfpu=neon, for the NEON configure test? <.<
[18:55] <microchip_> point is, you need lame devel files to have support for libmp3lame
[18:55] <rocketmagnet> i found librwolame-dev but it's allready installed =(
[18:56] <rocketmagnet> libtwolame-dev
[18:56] <rocketmagnet> i'm using squeete
[18:56] <rocketmagnet> squezze debian
[19:06] <rocketmagnet> now when i do ./configure --list-encoders i get libmp3lame listed
[19:06] <rocketmagnet> and compile again
[19:06] <ubitux> rocketmagnet: it's a non-free package afaik
[19:07] <ubitux> so you have to enable the appropriate repository
[19:07] <ubitux> (don't ask me how though)
[19:10] <rocketmagnet> ubitux: found one - thank you
[19:10] <rocketmagnet> when i compile it myself, can i just remove my installed ffmpeg with apt-get remove ffmpeg and then use make install to integrate my compiled one into the system ?
[19:35] <ak|ra> is this channel appropriate for asking about developing with (not for) ffmpeg/libav* or would it be better to join #ffmpeg-devel?
[19:37] <sacarasc> With is this channel, for is -devel.
[19:38] <ak|ra> i ve decoded some audiopackets into a buffer .. whats the layout of the samples in that buffer (assuming s16)?
[19:59] <burek> ak|ra, the best would be to read the existing source code examples if you can
[19:59] <burek> rocketmagnet, you can, but there is an easier way too
[20:00] <burek> you can start your compiled ffmpeg with: LD_LIBRARY_PATH=/usr/local/lib ffmpeg -i ...
[20:00] <burek> that way you keep both versions, if needed
[20:02] <burek> and it's libmp3lame-dev
[20:07] <ASnyder> Hey guys, sorry for the stupid question. I'm trying to encode a video using ffmpeg, and set the -g option for keyframes so I can seek the video, however, the outputted video still doesn't seek. Is there something else I need to do in addition to the -g option? I tried using the -i option on other videos in our collection to see how they're set, but it seems as if their metadata was added via other metadata tools.
[20:08] <burek> you can use flvmeta
[20:09] <burek> if you are dealing with flv files
[20:09] <ASnyder> burek: so if they're flv files, ffmpeg natively won't do anything when it's converted? In regards to adding keyframes so it'll seek?
[20:10] <ASnyder> so for example, if the source is .flv, and I'm converting to .mp4 and specifying the -g option, that will have no effect?
[20:10] <burek> it depends what the effect is :)
[20:10] <ASnyder> burek: as far as the intended desired effect
[20:10] <ASnyder> in being able for the video to start without being completely loaded and to seek
[20:10] <burek> do you use ffmpeg/ffplay to play/seek?
[20:13] <ASnyder> apparantly not, just native flash player media commands
[20:14] <burek> then your problem is not just gp
[20:14] <burek> gop*
[20:15] <burek> do you work with mp4 or with flv
[20:16] <ASnyder> mp4 primarily
[20:16] <ASnyder> I know about mp4box and flvtool
[20:16] <ASnyder> I'm assuming I need to run these tools post ffmpeg conversion
[20:17] <burek> well, I'm afraid you are dealing with moov atom problem
[20:17] <ASnyder> burek: I'm sorry?
[20:17] <burek> and most probably you'll end up needing to use segmented http streaming (iirc)
[20:17] <ASnyder> burek: I think we do use segmented http streaming via lighthttpd
[20:18] <burek> in mp4 container, metadata is at the end of file
[20:18] <burek> so you have to download entire media to read metadata
[20:18] <burek> you need to move it to the front
[20:18] <burek> using global header or something
[20:18] <burek> i think qtfaststart deals with that
[20:19] <burek> and it's progressive http streaming, not segmented, sorry :)
[20:19] <ak|ra> how to detect the length of a sound file (without decoding it and counting samples)?
[20:20] <burek> ak|ra, hardly..
[20:20] <burek> especially if it's VBR
[20:21] <burek> or if you wrote metadata after the creation of the file
[20:21] <ak|ra> ah, ok
[20:24] <ak|ra> http://stackoverflow.com/questions/2697324/how-to-get-the-duration-of-an-audio-file-after-uploading-using-ffmpeg
[20:24] <ak|ra> mhhh
[20:24] <ak|ra> reliable?
[20:33] <ak|ra> av_update_stream_timings() 
[20:33] <ak|ra> mhh
[20:33] <pasteeater> Zeranoe: ping
[20:48] <Zeranoe> I'm wondering if anyone can tell me what the -formats D means? It say demuxing, but 3g2 doesn't say it supports demuxing yet 3g2 can be converted with FFmpeg. Does it refer to demuxing (splitting the streams inside the container) or to decoding?
[20:51] <pasteeater> Zeranoe: can you take a look http://ffmpeg.org/pipermail/ffmpeg-user/2011-December/003720.html
[20:51] <pasteeater> this guy has been asking this question in several places...including, strangely, ubuntuforums.
[20:51] <pasteeater> and i have a feeling he's using your build
[20:54] <ak|ra> burek: is it enough to skip through the file packet by packet and check pkt.duration?
[20:54] <ak|ra> or is pkg.duration unreliable as well and i have to decode the samples and count them?
[21:05] <Zeranoe> pasteeater: Will do.
[21:31] <joltman> I'm setting up a headless Ubuntu 11.10 x64 machine (actually VM running on ESXi 4.1u2) and I want to compile ffmpeg.  When i follow the directions in the guide, it tries to install X11.  Is there a way to compile ffmpeg and not install X11?  My goal is to install Subsonic (which I already have a license for) and stream music to my phone over the internet.  Thanks!
[21:37] <Accelerator> When compiling the lates x264 with the latest ffmpeg build, it errors out: http://pastie.org/3007072
[21:38] <sacarasc> Do you have 2 x264s installed?
[21:43] <joltman> i can compile these things on another server that is also 11.10 but has X11 installed...then copy the DEBs to my headless...woudl that work?
[21:43] <Accelerator> Somehow, I think I do
[21:43] <Accelerator> and I don't know how that happened
[21:44] <Accelerator> This is a fresh Arch Linux install, something else must have installed it without me noticing
[21:46] <pasteeater> joltman: just don't install libsdl1.2-dev libx11-dev libxfixes-dev
[21:46] <joltman> pasteeater, i tried that, didn't work
[21:46] <pasteeater> and you won't need --enable-x11grab
[21:46] <joltman> i'll try again
[21:47] <pasteeater> explain "didn't work". that's a very common message here.
[21:47] <joltman> yeah, i'm sorry, when i tried removing those lines, x11-common still wanted to install
[21:49] <pasteeater> one of the other dependences might be pulling that in for some reason.
[21:50] <joltman> i'm doing the compile on a diff system right now...i'll get to the headless in a second
[21:51] <joltman> pasteeater:  thanks for your patience!
[21:52] <pasteeater> 'apt-cache rdepends x11-common' doesn't show anything obvious, but it could depend on one of x11-common depends.
[21:53] <pasteeater> you could install each dependency from the guide individually to see what wants x11-common, but that might be slow n' inelegant
[21:53] <joltman> slow is no problem, i'm at work not doing any actual work
[21:53] <joltman> lol
[21:53] <pasteeater> just looking busy
[21:54] <joltman> it's nice having a compile running in a black window
[21:54] <joltman> unfortunately, i'm not a programmer...but it REALLY helps not having the director of the dept in this week
[21:58] <joltman> ok, i'll give it a try
[22:01] <rocketmagnet> hi all, i've a strange problem here: i've converted a bunch of mp3 files to ogg files without any troubles, now i've mp3 files that i want to try to convert to ogg and that gives me the error : "Encoder (codec none) not found for output stream #0:0"=( =(
[22:01] <rocketmagnet> i've no idea what's wrong, the other files all did work
[22:01] <pasteeater> rocketmagnet: use a pastebin site to show your ffmpeg command and the complete console output
[22:02] <pasteeater> joltman: i'd be interested to know what package(s) want x11-common if you figure it out
[22:02] <joltman> i'll let u know
[22:02] <joltman> doing them one at a time
[22:02] <pasteeater> thanks
[22:04] <rocketmagnet> http://pastebin.com/G6C0BgCn
[22:05] <rocketmagnet> in the end effect i want to have an ogg file
[22:05] <joltman> i'm also assuming i don't need to install libva-dev or libvdpau-dev
[22:06] <joltman> this is wanting to install some X11 looking things, but not x11-common exactly
[22:06] <joltman> http://pastebin.com/7BDqtJd4
[22:09] <joltman> should i install libva if i want to stream video files from subsonic to my phone?
[22:12] <SMJ> rocketmagnet: try adding -vn somewhere
[22:13] <rocketmagnet> what should that mean ?
[22:14] <rocketmagnet> and can i add this to all my commands because i write a script to convert all my music files to ogg so my mp3 player understands them
[22:14] <SMJ> replace 'ffmpeg' from the beginning of that line you used to f
[22:14] <SMJ> 'ffmpeg -vn'
[22:15] <SMJ> mp4 can include video, -vn makes ffmpeg ignore it
[22:15] <rocketmagnet> SMJ: same result
[22:15] <rocketmagnet> SMJ: and yes - it can has something to do with video - because i had one mp4 file that had video where it worked
[22:15] <SMJ> can you pastebin that too?
[22:17] <pasteeater> joltman: you don't need libva and libvdpau. those are probably the culprits.
[22:17] <pasteeater> those are for playback only, i think
[22:18] <rocketmagnet> SMJ: i generally want to have only the audio data
[22:19] <joltman> pasteeater, yeah, i got rid of those and i think it's all good now
[22:19] <SMJ> yes, that's why you should use -vn
[22:19] <rocketmagnet> so i can use -vn in all cases to ignore the audio part ?
[22:19] <SMJ> yes
[22:19] <rocketmagnet> can an mp3 also have audio ?
[22:19] <SMJ> mp3 can have only audio
[22:20] <rocketmagnet> is there a tool that shows me all information about audio file so i can see the differences between the files ?
[22:22] <SMJ> I don't know, but can you show the output for this? [23:15:18] <rocketmagnet> SMJ: same result
[22:23] <SMJ> http://paste.servut.us/ this is less cluttered
[22:24] <rocketmagnet> http://pastebin.com/JYQfHiHw
[22:25] <SMJ> okay, I guess you have to put it before the output file name
[22:25] <rocketmagnet> what?
[22:26] <rocketmagnet> the -vn ?
[22:26] <SMJ> yes
[22:26] <rocketmagnet> HEY - it seems to work - mom i test it
[22:27] <rocketmagnet> damn =)
[22:27] <rocketmagnet> it does work =) 
[22:27] <rocketmagnet> cool man
[22:27] <SMJ> :D
[22:27] <rocketmagnet> thanks alot !!
[22:27] <SMJ> np
[22:27] <rocketmagnet> where on hell do you know this from =
[22:27] <rocketmagnet> maybe i dismissed the command syntax :x
[22:27] <SMJ> experience, and the manual
[22:28] <rocketmagnet> so i can put the -vn everywhere before the output file and all will be fine =) 
[22:30] <SMJ> sure, but you can't put it middle of  '-acodec libmp3lame' -> '-acodec -vn libmp3lame'  nor other settings like that
[22:31] <rocketmagnet> SMJ: when i want to use -ab for the bitrate, where to place this argument ?
[22:32] <SMJ> probably easiest to add them right before the output filename
[22:34] <joltman> ok, everything looks like it compiled ok
[22:35] <pasteeater> good to hear
[22:36] <pasteeater> rocketmagnet: ffmpeg [input options] input [output options] output
[22:36] <pasteeater> basically
[22:37] <SMJ> rocketmagnet: http://goo.gl/B40eO this first post says ffmpeg ignores -ab, because Vorbis .ogg is always VBR so you should use -aq instead
[22:37] <SMJ> with some number from the table on the right http://en.wikipedia.org/wiki/Vorbis#Technical_details
[22:38] <SMJ> "The values don't correspond to the oggenc values though, being a number ranging from 10-100 (or more, I don't know what the maximum is)" oh nevermind
[22:41] <rocketmagnet> SMJ: SBR ? i'm completely new to codecs and stuff like this - do you know where i can start learn how this stuff works? i program for a longer time but newer had to do with audio/video codecs and suff like this
[22:41] <rocketmagnet> SMJ: but with mp3 the -ab does work ?
[22:42] <SMJ> wait, I'll just test this
[22:45] <rocketmagnet> SMJ - what's -acodec for ?
[22:45] <SMJ> I took another look at the outputs you posted...
[22:46] <SMJ> are you trying to encode them with Ogg Vorbis? because you're encoding them with FLAC accidentally
[22:46] <pasteeater> ffmpeg will automatically choose flac for the audio for ogg outputs unless you use -c:a (or -acodec)
[22:46] <rocketmagnet> SMJ: means this that .ogg files allways only have a bitrate around 60 ???
[22:47] <rocketmagnet> that's a really bad quality
[22:47] <SMJ> no, it means they're automatically lossless
[22:47] <rocketmagnet> SMJ: so i don't have to care about bad quality =) ?
[22:48] <MT`> only disk space 
[22:50] <SMJ> rocketmagnet: are you going to play the files on your PC only? in that case I would use Vorbis, otherwise MP3
[22:55] <rocketmagnet> SMJ: the case is that i want to understand how things work internaly from the pointer of a programmer
[22:57] <rocketmagnet> and do you know a tool that can check if an mp3 file has errors and tries to correct them ?
[22:58] <SMJ> mp3check does something
[23:00] <SMJ> "
[23:00] <SMJ> mp3check is a program that checks mp3 files for consistency and prints several errors and warnings. It lists stream attributes (color).  Layer 1,2,3, mpeg1.0+2.0 are currently supported. CRC check for layer 3.  mp3check  is  very  useful  for  incomplete  mp3
[23:00] <SMJ>        detection as it can be used to scan through your mp3 collection and find all mp3s that aren't perfect. Good for use with Napster and other bulk downloading of mp3s.
[23:01] <SMJ> text should become shorter when copying from monospace terminal :/
[23:01] <rocketmagnet> SMJ: does this tool also works with ogg files ?
[23:01] <SMJ> I don't think so
[23:02] <pasteeater> if it sounds fine then it's good enough for me
[23:10] <rocketmagnet> SMJ: i still have video informaition when using -vn =(
[23:11] <rocketmagnet> sorry
[23:11] <rocketmagnet> mom
[23:12] <MT`> SMJ: shows how old that tool is, its talking about the original napster
[23:12] <SMJ> shows how old MP3 is
[23:12] <MT`> idd
[23:16] <SMJ> rocketmagnet: what says there's still video information?
[23:17] <rocketmagnet> was another problem
[23:17] <rocketmagnet> i see that some of my music files have no file extensions at all !!
[23:17] <rocketmagnet> but nautilus shows me that they are mp4 files
[23:17] <SMJ> :1 input or output files?
[23:18] <rocketmagnet> and the file command also shows the file type, but i have no file extensions which is bad for my script
[23:19] <rocketmagnet> how can this happen ???
[23:20] <SMJ> I think it figures it out by reading the headers of the file
[23:21] <MT`> it happens by magic (seriously)
[23:21] <rocketmagnet> hm, do you know a good way of finding out the filetype so i my script knows the type ?
[23:21] <rocketmagnet> i experiment with parsing the "file" command output
[23:22] <SMJ> I know only the basics of scripting
[23:22] <rocketmagnet> k
[23:22] <MT`> wouldnt your script know the type?
[23:22] <rocketmagnet> i also need a list of all file formats ffmpeg does support
[23:22] <rocketmagnet> ffmpeg -formats gives me a list but i don't realy understand the output
[23:23] <rocketmagnet> with a list of possible extensions i could code something to overcome this problem
[23:23] <MT`> what dont you get?
[23:23] <SMJ> D means ffmpeg can read it, E means it can output it
[23:23] <MT`> yep
[23:23] <MT`> decode/encode
[23:25] <MT`> its not listing 'file extensions' though, its listing formats
[23:25] <rocketmagnet> hmm... when i want to parse this information, is there a way i can skip the header with ffmpet version etc...??
[23:25] <rocketmagnet> because this can vary from version to version i think
[23:25] <MT`> for instance 'mkv' isnt in the list, but 'matroska' is
[23:26] <MT`> if you're asking how to skip the first few lines of output, this isnt really the place, you need a scripting forum
[23:27] <rocketmagnet> k
[23:27] <rocketmagnet> i think the best would be to starting parsing after the line "File formats:"
[23:27] <MT`> that is the first line of output anyway
[23:28] <SMJ> I think it's best to start parsing after the line "--"
[23:28] <MT`> the version and build info goes to stderr, not stdout, that starts with 'File formats'
[23:36] <luke-jr> it builds without --disable-optimizations
[23:36] <luke-jr> is it fair to tell Gentoo that upstream ffmpeg doesn't suppport this flag? :P
[23:47] <relaxed> luke-jr: One guy came in here with "-encode" in his USE flags. Guess what he couldn't do?
[23:50] <luke-jr> LOL
[23:50] <luke-jr> relaxed: but --disable-optimizations is currently MANDATORY in Gentoo ;)
[23:52] <relaxed> all the more reason to build it by hand
[23:52] <mystica555_> luke-jr: what exactly do you mean by that?
[23:53] <mystica555_> that its mandatory?
[23:53] <luke-jr> mystica555_: there is no USE flag to remove --disable-optimizations
[23:53] <luke-jr> relaxed: all the more reason to file a bug report ;)
[23:53] <mystica555_> hm interesting
[23:54] <mystica555_> so does that mean ive been building a very unoptimized ffmpeg this entire time?
[23:54] <beandog> whut
[23:54] <luke-jr> mystica555_: I guess. I can't get it to build that way on ARM :P
[23:54] <mystica555_> ah
[23:54] <beandog> there was some reason for that, iirc
[23:55] <luke-jr> beandog: for making it unbuildable? ;p
[23:56] <relaxed> luke-jr: click on the test next to the ARCH you're targeting. http://fate.libav.org/
[23:56] <beandog> pastebin the fail
[23:56] <luke-jr> beandog: https://bugs.gentoo.org/show_bug.cgi?id=392451
[23:57] <beandog> hmm.  that's poopy
[23:57] <beandog> not much I can do about arm
[23:59] <mystica555_> luke-jr: with that build log, im seeing 'optimizations yes' from the configure log
[23:59] <mystica555_> just its not optimized for size
[23:59] <luke-jr> beandog: well upstream doesn't support --disable-optimizations and says it breaks x86 too
[23:59] <luke-jr> [15:21:36] <michaelni> disabling optimizations will break asm on x86 so i would not be surprised if itz does the same on arm
[00:00] --- Tue Dec 13 2011


More information about the Ffmpeg-devel-irc mailing list