[02:45] <FunkyELF> hi guys... I have a bunch of .3g2 files from my mom's old phone. I want to change the container to mp4 or something that her new Android phone can play. I do ffmpeg -i video.3g2 -acodec copy -vcodec copy video.mp4 and what I get no longer plays in mplayer [02:47] <FunkyELF> Can I upload a file somewhere and get some help. The video is only 316K [02:49] <FunkyELF> I have a bunch of .3g2 files that I want to convert to .mp4 or .m4v or whatever so that my mom can play videos from her old phone on her new Android phone. I have tried using ffmpeg with -acodec copy and -vcodec copy but no luck. Any other tools I should try? [02:50] <LunixA380> why -acodec copy should work? [02:50] <LunixA380> What the .3g2 codec are using? [02:50] <LunixA380> mp4 often expect H.264 + MP3/ACC [02:50] <FunkyELF> LunixA380: I don't really care if it is mp4.... you tell me what the appropriate container is [02:51] <LunixA380> There's multiple appropriate container [02:51] <LunixA380> AFAIK, Android phones can read mp4 and WebM [02:51] <LunixA380> but, the unknown thing is what's the codec inside the .3g2, FunkyELF [02:52] <FunkyELF> LunixA380: I wouldn't mind even having her install some 3rd party video player like MX Player. I just need something to play. The videos are so terrible to begin with I don't want to re-encode them [02:52] <FunkyELF> [lavf] stream 0: video (mpeg4), -vid 0 [02:52] <FunkyELF> [lavf] stream 1: audio (qcelp), -aid 0, -alang eng [02:52] <FunkyELF> that is what mplayer says when I play the file [02:53] <LunixA380> hm [02:54] <LunixA380> Wait, why you don't want to reencode them, in fact? [02:55] <FunkyELF> LunixA380: because they're terrible quality from a terrible phone [02:56] <LunixA380> so reencoding them will make the quality worse... [02:56] <FunkyELF> yeah [02:56] <LunixA380> Hm, I see [02:56] <FunkyELF> well.... It looks like I can play the files as .3g2 on my Android phone but I can't hear the audio.... perhaps I need to re-encode audio [02:59] <FunkyELF> LunixA380: can I send you an example file... its only 316K [02:59] <LunixA380> it's a common bug on android forum [02:59] <LunixA380> I saw it reported while doing somme Google search [03:00] <FunkyELF> LunixA380: whats that? [03:00] <LunixA380> and sending me the file wouldn't be helful [03:00] <LunixA380> hm. I rephrase trhat. [03:00] <FunkyELF> LunixA380: I'd like to use ffmpeg to re-encode to something that my Android phone will play [03:00] <LunixA380> It's a common bug I saw reported on android communities* [03:00] <LunixA380> Hm yes. [03:00] <FunkyELF> LunixA380: I can't get this to work.... ffmpeg -y -i 0106021043.3g2 -acodec copy -vcodec copy test.3g2 [03:01] <FunkyELF> [3g2 @ 0x22b0740] Tag mp4a/0x6134706d incompatible with output codec id '86042' [03:01] <FunkyELF> er.... that would be dumb anyway. Copying streams to the same container. [03:01] <FunkyELF> What I wanted to show was the error I get trying to re-encode the audio [03:02] <FunkyELF> ffmpeg -y -i 0106021043.3g2 -acodec libmp3lame -vcodec copy test.mp4 [03:02] <FunkyELF> [mp4 @ 0x1971740] track 1: muxing mp3 at 8000hz is not supported [03:08] <LunixA380> you don't reencode it properly [03:08] <LunixA380> use ffprobe for see actual specs of the movie [03:09] <LunixA380> then you can know what you can/can't do [03:12] <FunkyELF> LunixA380: http://pastebin.com/F1qf9nRr [03:13] <FunkyELF> LunixA380: I was able to to an -acodec libmp3lame -vcodec copy video.avi [03:13] <FunkyELF> that converted the audio to something Android should be able to play but the players in Android only played like 2 seconds of the 20 second clip [03:15] <LunixA380> what's the encoding logs, FunkyELF ? [03:18] <FunkyELF> LunixA380: http://pastebin.com/Hhj8nthz [03:19] <FunkyELF> when I ffprobe test.avi I get this.... Duration: 00:00:00.00, [03:19] <klaxa> can you play it back with ffplay? [03:19] <FunkyELF> klaxa: I can with mplayer and it plays all 20 seconds just fine [03:19] <klaxa> also, you are not using ffmpeg but avconv [03:19] <FunkyELF> klaxa: lemmie try ffplay [03:19] <FunkyELF> klaxa: yeah test.avi plays with ffplay [03:20] <klaxa> wait, you already have a test.avi? [03:20] <klaxa> i thought that failed? [03:20] <FunkyELF> klaxa: I'm converting 0106021043.3g2 into test.avi [03:20] <klaxa> yes, the latest paste of you states that the encoding failed [03:20] <klaxa> >[avi @ 0xdcc740] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 184 >= 184 [03:20] <klaxa> >av_interleaved_write_frame(): Invalid argument [03:21] <FunkyELF> klaxa: yet I have test.avi and it plays all 20 seconds [03:21] <FunkyELF> klaxa: even after deleting test.avi to make sure that I'm not crzy [03:22] <klaxa> the problem was the audio, right? [03:22] <FunkyELF> klaxa: I take that back... the avi didn't play all 20 seconds [03:22] <klaxa> can you hear the audio if you play back the .3g2 with ffplay? [03:23] <FunkyELF> klaxa: yeah [03:23] <klaxa> but if you encode it to mp3 it no longer works? can you test with: ffmpeg -i some_file.3g2 -c:a libmp3lame test.mp3 ? [03:24] <klaxa> (i also would like to encourage you to get ffmpeg instead of using avconv, you can grab a static build over here: http://ffmpeg.gusari.org/static/64bit/) [03:24] <FunkyELF> Failed to set value 'libmp3lame' for option 'c:a' [03:25] <FunkyELF> This program is only provided for compatibility and will be removed in a future release. Please use avconv instead. [03:25] <FunkyELF> am I not using ffmpeg? [03:25] <klaxa> no [03:25] <klaxa> it's badly worded [03:25] <FunkyELF> klaxa: is there a repo or should I just use that link you supplied? [03:26] <klaxa> if you want to, you can compile the latest git http://git.videolan.org/?p=ffmpeg.git [03:26] <klaxa> but using the static binary is fine too [03:26] <FunkyELF> klaxa: that link you supplied... seems to have daily builds until 06-28 then they stopped? [03:27] <klaxa> maybe so, but that's rather recent [03:27] <FunkyELF> downloading [03:28] <FunkyELF> klaxa: okay so now that command succeeded [03:29] <FunkyELF> ffmpeg -i 0106021043.3g2 -c:a libmp3lame test.mp3 [03:29] <klaxa> can you play back the mp3? [03:29] <FunkyELF> yeah [03:29] <FunkyELF> what does -c:a do? [03:29] <klaxa> it's the same as -acodec but a more sophisticated syntax [03:30] <klaxa> this way you can abstract the codec parameter further, if you use "-c copy" it will copy all codecs, earlier you had to do "-acodec copy -vcodec copy -scodec copy" [03:32] <FunkyELF> this command... ffmpeg -y -i 0106021043.3g2 -c:a libmp3lame -c:v copy test.avi ... with the static ffmpeg gives me an avi that plays all the way [03:32] <klaxa> sounds good to me then [03:32] <FunkyELF> klaxa: thanks. What would be a better audio codec to use... aac? Some default sane parameters? [03:33] <klaxa> um... well you are encoding from celt right? [03:33] <FunkyELF> qcelp [03:33] <klaxa> ah no [03:33] <klaxa> >Stream #0.1(eng): Audio: qcelp, 8000 Hz, 1 channels, flt, 14 kb/s [03:34] <FunkyELF> so what would be a good choice of audio codec (since that seems to be the problem playing it on Android). mp3 works but should I try another one? [03:34] <klaxa> yeah, well it's 14 kb/s mp3's lowest bitrate is 32 kb/s afaik, so you will have almost twice as much bandwidth even though it is mp3 i doubt it will be a big drawback on quality, otherwise i can recommend vorbis which has great quality for low bitrates [03:35] <klaxa> i once set up a vorbis stream at 48 kb/s it still sounded decent, 48 kb/s is about as low as you can go with vorbis [03:36] <klaxa> ah not sure avi supports vorbis audio though [03:36] <FunkyELF> This command works with avi but not mp4..... ffmpeg -y -i 0106021043.3g2 -c:a libmp3lame -c:v copy test.mp4 [03:36] <FunkyELF> what container should I use? [03:37] <klaxa> hmm... i would recommend mkv (matroska) since it's probably the most advanced container available, i'm not sure stock android has a matroska demuxer though, you could try to use vorbis with mp4 though [03:39] <LunixA380> vorbis, mp4? [03:40] <klaxa> dunno, does mp4 mux vorbis? [03:40] <klaxa> i rarely use anything besides matroska [03:40] <FunkyELF> libvo_aacenc is noticeably better than libmp3lame on this crappy audio [03:42] <LunixA380> Not really [03:42] <LunixA380> it's more about using MP3 with 8000Hz the problem [03:42] <LunixA380> I don't like MP3, it does has problems, but not this one. [03:42] <klaxa> well you can either use the internal aac encoder which is not recommended, or you can go with libfdk-aac [03:42] <klaxa> or libfaac [03:43] <klaxa> http://ffmpeg.org/trac/ffmpeg/wiki/AACEncodingGuide [03:43] <FunkyELF> I'm saying I noticed audio artifacts in the mp3 [03:43] <klaxa> > You can add metadata to any of the examples on this guide: [03:43] <klaxa> >ffmpeg -i input ... -metadata author="FFmpeg Bayou Jug Band" -metadata title="Decode my Heart (Let's Mux)" output.mp4 [03:44] <klaxa> haha [03:45] <FunkyELF> Unknown encoder 'libfdk-aac' [03:46] <klaxa> well, go with "-c:a aac -strict -2" for now, if you want to use libfdk-aac you will have to either get an (undistributable?) static build of ffmpeg with libfdk-aac or compile from souce with --enable-libfdk-aac [03:47] <FunkyELF> klaxa: with aac -strict -2 I get this .... [aac @ 0x34c9220] Too many bits per frame requested [03:47] <FunkyELF> ... and this Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height [03:47] <klaxa> i uh... um... hmm... [03:48] <FunkyELF> but the experimental one works [03:48] <klaxa> the native encoder ("-c:a aac") is the experimental one [03:49] <FunkyELF> okay... libvo_aacenc works fine... aac -strict -2 doesn't work [03:49] <FunkyELF> klaxa: seriously thanks for the help. Got to go [03:49] <klaxa> ok then [03:49] <FunkyELF> thanks from my mom too [03:49] <FunkyELF> ;-) [03:50] <klaxa> heh :) [04:47] <gatorX2> Hi! Can I ask you a question about android-ffmpeg-x264-master obtained from git? [04:48] <gatorX2> It's about an error message. [04:51] <klaxa> don't ask to as-- [04:51] <klaxa> well... [05:15] <praveenmarkandu> hi guys. when i log an ffmpeg transcode [05:15] <praveenmarkandu> it provides a lot of ^M [05:15] <praveenmarkandu> how to i remove that [06:23] <gustavo_brazil> someone know how to use ffmpeg to record skype conversations ? [06:24] <klaxa> that's a bit tricky unless you are using pulseaudio [06:24] <klaxa> and using pulseaudio will then require you to use a loopback- and a null-module [06:24] <klaxa> actually two loopback-modules [06:25] <gustavo_brazil> Can I use alsa instead [06:25] <gustavo_brazil> ? [06:27] <gustavo_brazil> I want to use alsa, because I updated a pulse-audio package on my Chakra and its brakes my login [06:27] <klaxa> i don't know how to do it with alsa, sorry. [06:28] <gustavo_brazil> what is the pulse packages I have to install to get it ? [06:40] <gustavo_brazil> at least you can tell me the ffmpeg command using pulse, so i can test [10:46] <efyx> Hi everybody, is it possible with ffmpeg to encode a video with closed captioning (EIA-708) ? [10:53] <Mavrik> hmm [10:53] <Mavrik> no idea, I know it can encode DVB subs [11:43] <guru_shipu> is it possible to capture from webcam and stream to the network using http? [11:44] <guru_shipu> i know we can capture from webcam, but how to stream to http? [11:44] <Mavrik> depends on what do you mean by "stream to the network" [11:44] <guru_shipu> Mavrik, depends how [11:45] <guru_shipu> would you please elaborate [11:45] <Mavrik> nothing to elaborate [11:45] <Mavrik> what are you trying to do? which streaming technology do you need? [11:45] <Mavrik> since you already know you need HTTP, you should know what kind of playback are you attempting right? [11:45] <guru_shipu> just http [11:45] <Mavrik> what is "just http"? [11:46] <Mavrik> do you have a streaming server? [11:46] <guru_shipu> nope [11:46] <Mavrik> do you have another http endpoint you're trying to stream to_ [11:46] <guru_shipu> yes [11:46] <guru_shipu> all the other machines in my home network [11:46] <Mavrik> you do know http doesn't work like that right? :P [11:47] <Mavrik> so. [11:47] <Mavrik> you need a streaming server. [11:47] <Mavrik> the streaming server will accept http requests and serve them to your machines on the network [11:47] <Mavrik> you can use http to stream TO the streaming server with http, even though RTMP or UDP/TS would be better. [11:47] <guru_shipu> ok [11:48] <Mavrik> ffmpeg bundles "ffserver" but it's not that trivial to setup [11:48] <guru_shipu> ok then, suppose I want to capture the webcam and stream to just one machine using http [11:49] <Mavrik> see this: https://www.virag.si/2012/11/streaming-live-webm-video-with-ffmpeg/ [11:58] <guru_shipu> Mavrik, thank you [12:31] <CableNinja> mornin all. I've got a couple songs that were setup as 2849Kbps... these are much too large for my uses, how can I lower them down? [12:34] <Mavrik> reencode them into a compressed format [12:37] <CableNinja> .-. I know that much.. heh, sorry... I should rephrase... I'm horrible with ffmpeg and have no idea what I'm doing [12:44] <Mavrik> CableNinja, ok :) [12:44] <Mavrik> so, what format do you want the audio in? :) [12:45] <Mavrik> and what format is it currently in? :) [12:45] <CableNinja> flac -> flac [12:45] <Mavrik> um [12:45] <Mavrik> CableNinja, that won't be possible then [12:45] <CableNinja> I dont know whose idea it was to make it such a high bitrate, but I want to give them a firm pimphand... a 100mb for a single 5 minute piece of audio is insane [12:45] <Mavrik> you can lower number of channels and/or sample rate [12:45] <CableNinja> Mavrik: alright, flac->mp3? [12:46] <Mavrik> but FLAC is a losless format, so you can't change bitrate :) [12:46] <CableNinja> whatever I can do to drop the size of these... [12:46] <Mavrik> ffmpeg -i <file.flac> -codec:a libmp3lame -b:a 320 output.mp3 [12:46] <Mavrik> that should do what you want :) [12:47] <Mavrik> (note: you need ffmpeg with libmp3lame) [12:47] <CableNinja> should have those already. I'll give it ago, thanks [12:48] <Mavrik> -b:a sets bitrate [12:48] <Mavrik> 320 obviously would be 320kbps CBR :) [12:48] <CableNinja> yup [12:49] <CableNinja> waiting for it to copy somewhere I can mess with it... I forgot to do that first, heh [15:06] <gatorX2> Hi! Can I ask a question about converting mp4 file to 3gp conversion with ffmpeg? [15:07] <zap0> try [15:07] <gatorX2> I've built ffmpeg with libaacplus and libx264 support. How can I convert mp4 to 3gp file? [15:07] <Mavrik> ffmpeg -i file.mp4 -codec copy out.3gp _ [15:07] <Mavrik> ? [15:11] <gatorX2> `Mavrik` Thanks a lot and sorry for not knowing this before and bothering you. [15:11] <gatorX2> Bye! [15:12] <saste> that was fast [15:13] <Mavrik> yeah [16:12] <khali> oh, flv container supports AAC for audio now? sweet [16:37] <Fjorgynn> hm [16:57] <xlinkz0> why is the build script still trying to compile ffprobe.o if i configured with --disable-ffprobe ? [17:06] <saste> xlinkz0, because it's stubborn [17:22] <xlinkz0> saste: is there any way to make it obey? [17:27] <mkrufky> so, my transcoder application uses ffmpeg libraries... it runs fine against 1.2 but it segfaults in 2.0 ... after debugging in gdb it looks like a memory overrun, maybe an off-by-1 error somewhere. i spent some time doing a git bisection test to find the problem changeset and it ended at a merge changeset :-( 80e9e63c946660304fc65fa8141ccfdbe4d196d1 no idea where to begin now :-/ [17:28] <mkrufky> er, actually, the particular merge just merges in the patch "759001c534287a96dc96d1e274665feb7059145d" ... but this itself is a huge one [17:39] <shagoyjo> Transcoding interlaced content, does the +-alt flag still exist? [17:51] <shagoyjo> I ask because I get "unable to parse option value 'alt'" [19:55] <mkozjak> hi [19:56] <mkozjak> how to copy video and audio and hardburn srt? ffmpeg -i input.mp4 -vcodec copy -acodec copy -vf subtitles=subs.srt out.mp4 just copies everything and ignores subtitles [19:57] <llogan> mkozjak: -vcodec copy and -vf are mutually exclusive since you must re-encode to hardcord the subs [19:57] <mkozjak> aah, yeah.. [19:58] <mkozjak> llogan: is there a simple way to use the same picture properties (resolution, framerate) and just burn them? [19:58] <llogan> ffmpeg will use the same frame rate and frame size as the input [19:58] <llogan> unless you tell it not to [19:59] <llogan> depending on your ffmpeg configuration libx264 will be the default encoder for mp4 output container. you should mostly be concerned with -crf and -preset when re-encoding (unless the defaults look good enough) [20:01] <llogan> see http://trac.ffmpeg.org/wiki/x264EncodingGuide [20:02] <mkozjak> thanks [20:49] <_aeris_> hello everybody :) [20:49] <_aeris_> i have a question about ffmpeg [20:49] <_aeris_> i have a video, saying Input #0, avi, Video: msmpeg4v3 (DIV3 / 0x33564944) [20:50] <_aeris_> but if i try to change resolution with ffmpeg -i input.avi -s 1280x720 -c:v msmpeg4v3 output.avi [20:50] <_aeris_> i have on output Video: msmpeg4v3 (MP43 / 0x3334504D) [20:50] <_aeris_> input = DIV3, output = MP43 How i can have DIV3 on output too ? [20:54] <_aeris_> http://pastebin.com/qs33NG7S [20:59] <llogan> _aeris_: you can add "-vtag DIV3" if that is what you want [21:00] <_aeris_> :) [21:00] <_aeris_> so simple :D [21:01] <llogan> you should also add "-codec:a copy" so you do not re-encode the audio. [21:07] <mablae> Hi! [21:10] <mablae> I need libavcodec-dev <=55.0.0 on Ubuntu 13.04 Raring. Packages just give me libavcodec53-dev. What to do? [21:11] <llogan> mablae: you can compile it [21:11] <llogan> http://trac.ffmpeg.org/wiki/UbuntuCompilationGuide [21:14] <mablae> llogan, So current ffmpeg build we automatically install libavcodec-dev for me? Just make ; make install ? Or any other config needed? [21:14] <mablae> *will [21:15] <mablae> Okay, thats great then... :-) Thanks [21:16] <llogan> it won't make a "libavcodec-dev" package, but you can do that with checkinstall instead of "make install" if that's what you want [21:16] <llogan> the guide does not install to the system [21:18] <mablae> It would be nice to have some deb packages that can be uninstalled and dont mess up depedencies... [21:19] <llogan> dependencies of ffmpeg package are not interfered with in the guide since it does nto isntall to system [21:20] <llogan> *not install [21:23] <mablae> But I dont need new ffmpeg, I need new libs , dev libs to comile sth other against it [21:23] <mablae> Tvheadend to be precise [21:24] <mablae> It has some build in transcoding using libavcodec and its ./configure complains about: [21:25] <mablae> checking for pkg libavcodec <=55.0.0 ... fail [21:25] <mablae> BTW thanks for the help, llogan [21:26] <llogan> the source contains the libraries [21:29] <llogan> or you can try this if you get stuck: https://tvheadend.org/projects/tvheadend/wiki/AptRepository [22:02] <mablae> llogan, back again, when compiling x264 like described in that guide I got this error: undefined reference to `x264_encoder_open_130' [22:02] <klaxa> wrong x264 shared library installed [22:02] <mablae> /usr/local/lib/libavcodec.a(libx264.o): In function `X264_init' [22:03] <klaxa> do you have x264 installed? if so, can you post the version it states? (x264 --version) [22:03] <mablae> ah, fuck I messed around with avconv... [22:03] <mablae> sry for the f-word [22:03] <klaxa> also run: ldconfig -p | grep x264 [22:03] <klaxa> and see what version that states [22:04] <mablae> x264 --version: http://paste.ubuntu.com/5891913/ [22:05] <mablae> ldconfig -p | grep x264 : http://paste.ubuntu.com/5891914/ [22:05] <klaxa> hmm... your installed x264 is version 130, but the shared library is version 123 [22:06] <mablae> As I said I messed around with avconv, too [22:09] <mablae> klaxa, Thanks for the help! [22:09] <klaxa> oh it worked? did you re-install x264 or what fixed it? [22:09] <klaxa> or did you just go the dirty way and copy libx264.so.130 to /usr/local/lib =? [22:10] <mablae> No, I am tryin but you gave me a good hint [22:11] <mablae> I did a 'apt-get install x264' [22:13] <mablae> Okay : I had the x264 v130 on /usr/local/bin and 123 is now on /usr/bin [22:14] <mablae> remove the 130 [22:14] <mablae> *I removed [22:15] <mablae> But why do I need x264 when I actually want to compile it? Thats seems strange [22:16] <mablae> I think /usr/local/lib/libavcodec.a is the problem [22:16] <mablae> That is from my experiement with avconv I guess [22:18] <mablae> How would I fix my ldconfig to use ubuntu's system libavcodec again?! [22:23] <mablae> klaxa, haha I did some mixup with ffmpeg and avconv libs# [22:23] <mablae> Not good at all :-) [23:29] <eth2wlan> Hi [23:29] <eth2wlan> I need to capture X minute of videostream, save it to a file, then exit [23:29] <eth2wlan> I'm using this command line: [23:30] <eth2wlan> ffmpeg -i 'http://192.x.x.x/videostream.cgi?user=foo&pwd=bar&resolution=32&rate=2` -acodec copy -vcodec copy '/home/foobar/delme/foobar.mkv` [23:30] <eth2wlan> But, when I terminate process with CTRL [23:30] <eth2wlan> CTRL+C, foobar.mkv doesn't exists [23:30] <eth2wlan> Any idea? [23:30] <klaxa> see the -t parameter [23:30] <klaxa> -t is duration [23:31] <klaxa> -t 600 will record for 10 minutes [23:32] <eth2wlan> Ok, I'll try immediately [23:38] <eth2wlan> There is a wrong character in my previous command line [23:38] <eth2wlan> (`) istead of (') [23:39] <eth2wlan> With -t application break for error: [23:39] <eth2wlan> http://192.168.100.90/videostream.cgi?user=giadmin: Input/output error [23:39] <eth2wlan> Oh, sorry [23:44] <eth2wlan> ( "please hold the line" ) [23:44] <eth2wlan> :-) [23:46] <eth2wlan> Done [23:46] <eth2wlan> Look here: [23:46] <eth2wlan> http://pastebin.com/qyDLp1dT [23:47] <llogan> to get hel here you'll have to use ffmpeg, or you can go to #libav if you want to use fake ffmpeg [23:47] <llogan> *help here [23:50] <eth2wlan> So, I must compile for Ubuntu? [23:51] <eth2wlan> "apt-get install" can't work at all ? [23:56] Action: eth2wlan is reading UbuntuCompilationGuide [00:00] --- Sat Jul 20 2013
participants (1)
-
burek