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

burek burek021 at gmail.com
Mon Jan 20 02:05:01 CET 2014


[01:55] <codestation> hi, i have a quick question about the ffmpeg API, how to make avformat_open_input ignore patterns like %d in the filename? I cannot open any files with those in the filename...
[05:35] <Logicgate> hey guys
[05:36] <Logicgate> is there a way to take an existing video, and create a completely new video with it. Not talking converting, talking about taking each frame and re-encoding them in a new format
[05:42] <Logicgate> I need them to to be exactly like the Mp4s produced by an iPhone
[05:59] <DeadSix27> isnt that what a encoder does? or am i completely idiotic?
[05:59] <DeadSix27> @ Logicgate
[06:02] <Logicgate> I have a hard time explaining myself
[06:02] <Logicgate> This is sort of a complicated issue
[06:03] <Logicgate> which ultimately I don't exactly know how to pinpoint the problem
[06:03] <DeadSix27> what i mean is
[06:03] <DeadSix27> -> Not talking converting | talking about taking each frame and re-encoding them in a new format
[06:03] <Logicgate> Yes, yes, that'
[06:03] <DeadSix27> both sounds like the same to me, or the second part could mean single frame output
[06:03] <Logicgate> that's what it does.
[06:03] <Logicgate> okay let me explain
[06:04] <Logicgate> So, people upload videos to my site, multiple different formats, shapes and sizes with different audio codecs
[06:04] <Logicgate> And I re-encode everything to MP4 so they can get played from an iPhone
[06:04] <DeadSix27> ye
[06:04] <Logicgate> Now, my problem is that even after re-encoding. It seems that some videos don't come out the same way, bitrate is different, frame rate is different, audio is different
[06:05] <DeadSix27> oh you mean, "copy the video" but in a different format
[06:05] <Logicgate> I want the videos to come out same format, same bitrate, same audio, etc.
[06:05] <DeadSix27> while keeping "options"
[06:05] <Logicgate> ye
[06:05] <Logicgate> I don't know why but when I encode them with premiere
[06:05] <Logicgate> they all work, and they're all the same
[06:05] <Logicgate> when I use ffmpeg, they aren't
[06:06] <DeadSix27> the thing is
[06:06] <Logicgate> seems as if adobe premiere video exporting creates a brand new video, with specific options.
[06:06] <DeadSix27> not all the video encoders have one way to copy the original video
[06:06] <DeadSix27> as much i know
[06:07] <DeadSix27> googling gave me: https://trac.ffmpeg.org/wiki/Option%20'-sameq'%20does%20NOT%20mean%20'same%20quality'
[06:07] <Logicgate> https://develop.participatoryculture.org/index.php/ConversionMatrix
[06:07] <Logicgate> this is the page I'm referring to
[06:07] <Logicgate> it has a bunch of presets
[06:08] <Logicgate> yet, none of them are doing what I want them to
[06:08] <DeadSix27> what do you want them to do?
[06:09] <DeadSix27> (I'd first update the options to the new layout)
[06:09] <Logicgate> I want them to emulate the recording of an iPhone 4
[06:09] <Logicgate> or iPhone 5 I mean
[06:09] <Logicgate> Exactly as if they were recorded from that device
[06:09] <DeadSix27> then you first have to find out, in which way iphone encodes its videos
[06:09] <DeadSix27> (which i dont know)
[06:09] <Logicgate> Mp4 H264
[06:09] <DeadSix27> thats vague.
[06:10] <Logicgate> what do you need
[06:10] <DeadSix27> not i, you.
[06:11] <DeadSix27> you tell me the encode line of that page
[06:11] <DeadSix27> is not like the way iphone encodes its videos
[06:11] <DeadSix27> then compare the difference,
[06:11] <Logicgate> ffmpeg -i {$tmp4} -acodec aac -ac 2 -strict experimental -ab 160k -s 480x480 -vcodec libx264 -preset slow -profile:v baseline -level 30 -maxrate 10000000 -bufsize 10000000 -b 1200k -f mp4 -threads 0 {$out}
[06:11] <Logicgate> this is what i use
[06:11] <Logicgate> actually, let me be more clear. You know what Vine is?
[06:12] <DeadSix27> some website i believe.
[06:12] <DeadSix27> for videos i assume
[06:12] <DeadSix27> and i also assume it uses iphone video format
[06:12] <Logicgate> yes it does
[06:12] <Logicgate> well the app is available on both android and iphone
[06:12] <DeadSix27> and your problem is, that vine doesnt quite see your encodes as the iphone encodes?
[06:12] <Logicgate> i can show you a sample if you want
[06:13] <Logicgate> Most videos work, but sometimes when encoding MOVs or AVIs, it doesn't
[06:13] <DeadSix27> i yet dont rly get your problem
[06:13] <Logicgate> can I pm you?
[06:13] <DeadSix27> either post a error log.. or tell me what exactly does not work etc.
[06:14] <Logicgate> Some videos won't play from the iPhone application, some won't play from the android application.
[06:14] <DeadSix27> knock yourself out
[07:48] <ndpratas> hi there
[07:49] <ndpratas> I want to talk about resolutions and all that jazz for a bit so I can understand better why TV's work the way they do nowadays
[07:49] <ndpratas> i know this is not the field of this channel but hey, you are probably into the suject anyways
[07:53] <ndpratas> well seams no one's here
[09:46] <DeadSix27> is there a constant available for the scale filter?
[09:47] <DeadSix27> for width/height i mean
[09:47] <DeadSix27> ah, nvm.. it was oddly listed on that google result page, took me a while to find it (ih/iw)
[14:11] <hunterp> how can I play ffmpeg direct to speakers instead of out to a file??
[14:11] <hunterp> audio only, dont care about video
[14:16] <klaxa> use a mediaplayer instead?
[14:23] <hunterp> when I  ./ffmpeg -i out.m4a -f sdl "asd"  I ERROR: Output file #0 does not contain any stream
[14:23] <hunterp> why ?
[14:23] <jnvsor> hunterp: Specify your output codecs
[14:25] <hunterp> jnvsor: nope
[14:25] <klaxa> ffplay is for testing media, it can play back audio, but my question again, why are you not using a mediaplayer? ffmpeg's purpose is not playing back audio and/or video
[14:29] <saste> klaxa, ffplay is for testing media: that's your personal view
[14:29] <klaxa> oh? i was told i should not use it for playback, but to test integrety of files
[14:29] <klaxa> i wonder when that was~
[14:31] <saste> klaxa, who told that? if you need a very simple player, ffplay will do it
[14:31] <klaxa> i don't remember when exactly and who it was, i do remember it was when i had problems with video tearing
[14:32] <relaxed> does ffplay use xv or opengl?
[14:32] <klaxa> sdl afaik
[14:35] <hunterp> correct sdl
[14:41] <klaxa> saste, it appears that information was fabricated by my memory, i was never told that. i just checked with my logs
[14:44] <sky2> Can some one pls help me as how to convert an flv fileintoa .3gp file?
[14:45] <sky2> file into*
[14:46] <sky2> Can some one pls help me as how to convert an flv file into a .3gp file?
[15:29] Last message repeated 1 time(s).
[15:36] <thebombzen> sky2: it depends on what codecs you want. .flv and .3gp are just containers
[15:46] <sky2> thebombzen: i simply want the file to be playing in my mobile
[15:47] <thebombzen> you need to read your phone's manual so you know what codecs/sizes/profiles are supported
[15:47] <thebombzen> obviously you can't give an a bluray quality video file
[15:48] <thebombzen> you have to go lower, but how much lower?
[15:48] <sky2> i dont have the phone manual right now & i know that it plays all 3gp files
[15:48] <sky2> as much lower as possible ..just to make it playable
[15:49] <thebombzen> well there's no way to know what it supports until you read the manual
[15:49] <thebombzen> you have to realize that 3gp doesn't tell you anything about what kind of video stream is inside: it's just the container
[15:49] <sky2> i had a .mov file  & someone helped me to convert it to a 3gp & my phone played it nice
[15:50] <JEEB> take one file that works and see the output of ffmpeg -i file.3gp
[15:50] <thebombzen> sky2: just saying saying it suppots .3gp is about as generic as saying it supports .zip. It gives you very little information
[15:52] <sky2> JEEB You mean the 3gp file that worked in my mobile
[15:52] <JEEB> yees
[15:52] <JEEB> it should tell you what streams are inside
[15:52] <JEEB> and might let you gain some little insight
[15:53] <sky2> thebombzen: i think how about using the trial & error method with some codecs & see if any f them works!
[15:53] <thebombzen> well no
[15:53] <sky2> JEEB: i see
[15:53] <thebombzen> I'd go with JEEB's idea
[15:54] <sky2> thebombzen: ok
[15:55] <sky2> im just afk , Be back in few time
[15:55] <sky2> gimme some time. excuse me & thanks for the help..
[15:55] <sky2> BRB
[16:20] <LordVan> hi
[18:05] <sky2> thebombzen: hello
[18:05] <sky2> JEEB hello
[18:05] <thebombzen> sky2: how did it go?
[18:06] <sky2> May I put the output of the file which works on my mobile?
[18:06] <thebombzen> what did ffmpeg -i report about the_one_that_works.3gp (use a paste service such as http://pastebin.com/
[18:06] <thebombzen> don't paste it here:
[18:06] <thebombzen> use a website and provide a link
[18:06] <sky2> sure, I will
[18:08] <sky2> giving the link
[18:08] <sky2> http://pastebin.com/Hx2z2Zu5
[18:09] <sky2> link given thebombzen
[18:09] <thebombzen> This line: Stream #0.0(und): Video: h264 (Main), yuv420p, 352x288 [PAR 1:1 DAR 11:9], 425 kb/s, 15 fps, 15 tbr, 15 tbn, 30 tbc provides the information you need
[18:10] <sky2> thebombzen: ok
[18:10] <thebombzen> that says that it's encoded as H.264 video
[18:10] <thebombzen> that the size is 352x288
[18:10] <sky2> i see
[18:10] <sky2> ok
[18:10] <thebombzen> also 15 fps, and Main profile (Main is key)
[18:11] <thebombzen> so you would run something like
[18:11] <sky2> ok, my file name is "Gomukh.flv"
[18:11] <sky2> thats what i want to convert to .3gp
[18:12] <sky2> & the said file is on my Desktop
[18:12] <thebombzen> ffmpeg -i Gomukh.flv -r 15 -s 352x288 -c:v libx264 -profile:v main -b:v 425k output_filename.3gp
[18:13] <thebombzen> although that command might fail because you're using Libav and not FFmpeg, which has a much smaller feature set
[18:14] <sky2> im using Libav..not ffmpeg?
[18:14] <thebombzen> FFmpeg will autodetect 3gp because of the file extension. also, it also depends on if the input video has audio. if the input video has audio and you don't want audio then you have to add -an somewhere on the command line, before the output filename and after the input filename
[18:14] <sky2> but the command starts with ffmpeg ..that you put
[18:14] <thebombzen> yea, you're using Libav. A few years ago some developers forked the FFmpeg project and called the new project Libav. the packages in Debian/Ubuntu are not FFmpeg, but Libav
[18:15] <sky2> oh ok
[18:15] <thebombzen> however, FFmpeg contains all the Libav features but Libav doesn't add any of the FFmpeg features. so from a user's perspective, FFmpeg is superior
[18:15] <sky2> i saw that on terminal it said like avconv ..
[18:15] <sky2> so is that the best?
[18:15] <thebombzen> no. the true FFmpeg isn't availible in the repositories. you have to compile it yourself from source
[18:16] <thebombzen> see https://trac.ffmpeg.org/wiki/UbuntuCompilationGuide
[18:16] <sky2> so how i can get ffmpeg ..im new to linux as such ..
[18:16] <sky2> do I need to add PPA?
[18:18] <sky2> thebombzen: i copied & pasted the command on TERMINAL but mothing happened
[18:18] <sky2> nothing*
[18:19] <sky2> & also says Gomukh.flv: No such file or directory
[18:19] <sky2> whereas the file is sitting on desktop
[18:22] <sky2> thebombzen: u busy?
[18:23] <thebombzen> sky2: was Desktop your current working directory?
[18:24] <thebombzen> if you open a terminal it might say something like: leo at chessman ~ $
[18:24] <thebombzen> the ~ means your home directory. to change to your desktop you have to run the command cd Desktop
[18:25] <thebombzen> when you have a terminal open, all commands treat relative paths as if they are relative to the current working directory
[18:25] <sky2> i see
[18:25] <thebombzen> cd stands for "change directory"
[18:25] <sky2> as I open the terminal it starts like sky at sky-desktop ~ $
[18:26] <thebombzen> yes. type cd Desktop
[18:26] <sky2> ok
[18:26] Last message repeated 1 time(s).
[18:26] <thebombzen> now it should say ky at sky-desktop ~/Desktop $
[18:27] <thebombzen> then run that FFmpeg command
[18:27] <sky2> yes
[18:27] <sky2> ok
[18:27] <xavery> should I de-interlace DVB captures?
[18:28] <sky2> ran the command
[18:28] <sky2> Unrecognized option 'c:v'
[18:28] <sky2> Failed to set value 'libx264' for option 'c:v'
[18:29] <thebombzen> yea, that's because Libav sucks
[18:30] <JEEB> thebombzen, more like because the ffmpeg that was left over was not updated
[18:30] <JEEB> libav created those changes IIRC (elenril did)
[18:30] <JEEB> and ffmpeg merged them into ffmpeg's ffmpeg
[18:31] <JEEB> sky2, use avconv if you want to use your packaged version
[18:31] <thebombzen> or you could download the real FFmpeg from here: http://ffmpeg.gusari.org/static/64bit/
[18:31] <JEEB> with libav, use avconv; with FFmpeg use ffmpeg
[18:31] <JEEB> yes
[18:31] <JEEB> that's another way
[18:32] <sky2> JEEB, thebombzen : in making a decision you are the best judges, as I said that I a newbie in Linux
[18:33] <sky2> I am*
[18:33] <sky2> so if you kindly guide me & recommend as what is the ideal
[18:34] <thebombzen> yea. for you the temporary fix would be to run avconv instead of ffmpeg, but a longer-term fix is to get the real FFmpeg
[18:35] <sky2> thebombzen: i see
[18:35] <JEEB> if you want to just use what's packaged, use avconv. if you want to grab a nightly static build of ffmpeg you can grab and use that
[18:36] <sky2> i would feel happy & blessed if i do get any flv files converted into 3gp files
[18:36] <sky2> for the time being..
[18:37] <sky2> & then with further assitances would grab the ffmpeg as you said thebombzen
[18:37] <thebombzen> yes.
[18:37] <sky2> so how can I use avconv
[18:45] <hayuto> hi
[18:45] <hayuto> Could not find codec parameters for stream 0 (Video: none, 819 kb/s)
[18:46] <hayuto> i used /usr/local/bin/ffmpeg -re -i rtmp://37.59.202.234:13335/live/hayuto -vcodec libx264 -s 640x360 -ar 44100 -f flv rtmp://37.59.202.234:13335/live/hayuto_360p
[18:46] <hayuto> rtmp://37.59.202.234:13335/live/hayuto is played ok in every player
[18:47] <hayuto> Input #0, flv, from 'rtmp://37.59.202.234:13335/live/hayuto':
[18:48] <hayuto> hmm no its not atm
[18:48] <sky2> thebombzen: can you pls suggest as how to use 'avconv'
[18:48] <thebombzen> the same way I said to use ffmpeg, just write avconv instead of ffmpeg
[18:49] <thebombzen> same command
[18:49] <sky2> ok ,ty
[18:50] <sky2> i had closed the terminal ..so again i would have to do cd Desktop on terminal?
[18:51] <sky2> ffmpeg -i Gomukh.flv -r 15 -s 352x288 -c:v libx264 -profile:v main -b:v 425k output_filename.3gp
[18:51] <sky2> u gave this command ..so putting avconv instead of ffmpeg here & trying :thebombzen
[18:52] <thebombzen> yes. when you open a terminal it will always start in your home directory (at least for now this is a safe assuption)
[18:52] <thebombzen> yes
[18:52] <thebombzen> also I'd read this guide: http://www.extremetech.com/computing/128247-getting-started-with-linux-commands
[18:52] <sky2> thebombzen: ok cool
[18:55] <sky2> thebombzen: i ran this command after changing the directory..Unknown encoder 'libx264'
[18:55] <sky2> sorry
[18:55] <thebombzen> try replacing that with h264 instead
[18:56] <thebombzen> that should work with FFmpeg and not Libav though
[18:56] <sky2> i see
[18:57] <sky2> kindly see if this is good:avconv -i Gomukh.flv -r 15 -s 352x288 -c:v h264 -profile:v main -b:v 425k output_filename.3gp
[18:58] <sky2> argh.. says Unknown encoder 'h264'
[19:04] <microchip_> sky2: -c:v libx264
[19:04] <sky2> microchip_: ok ty
[19:04] <sky2> trying out
[19:06] <pcmad> hi
[19:07] <sky2> tried out microchip_
[19:07] <sky2> says Unknown encoder 'libx264'
[19:07] <microchip_> sky2: obviously, your ffmpeg/avconv needs to be compiled with libx264 support
[19:07] <pcmad> when i transcode with ffmpeg x264 coded and i try to reduce the fps with -r15 or -20 i get artifact like if some full keys are missing , is there another way to change the fps without getting that problem ?
[19:08] <sky2> microchip_: how can I get that done..
[19:08] <sky2> im quiet new to Linux
[19:08] <microchip_> sky2: you need to recompile with --enable-libx264
[19:09] <pcmad> or find one already compiled for you version and type of linux
[19:10] <sky2> microchip_:  this the command I was trying out with :avconv -i Gomukh.flv -r 15 -s 352x288 -c:v libx264  -profile:v main -b:v 425k output_filename.3gp
[19:10] <sky2> Gomukh.flv is the file name
[19:11] <sky2> so where to put the "--enable-libx264"
[19:12] <sky2> if you kindly suggest , microchip_
[19:12] <microchip_> sky2: you don't understand. your avconv doesn't have support for libx264. The only way to fix it is to recompile avconv with --enable-libx264 or find a compiled version with libx264 support
[19:13] <sky2> microchip_: then how to get the recompilation done is all im asking for
[19:13] <sky2> as I said im new to this stuffs
[19:20] <microchip_> sky2: http://stackoverflow.com/questions/11234662/how-to-compile-avconv-with-libx264-on-ubuntu-12-04
[19:21] <ubitux> for libav support, please go to #libav
[19:21] <microchip_> sky2: also, this chan is for fmfpeg only. You may find better answeres in #libav
[19:21] <ubitux> just try this if you're on ubuntu ^
[19:22] <JEEB> btw, the package is libavcodec-extra that contains libx264 and friends, debian for whatever reason has packaged separate versions for ages
[19:23] <JEEB> well, the reason most certain probably is "no MPEG formats lol" but it leads to rather uncanny cases like that
[19:23] <JEEB> and I think they actuall enable quite an amount of decoders by default nowadays
[19:23] <JEEB> *actually
[19:29] <Mavrik> they almost ship a usable OS :)
[19:53] <sky2> is #libav on freenode?
[19:54] <sky2> microchip_: the link you psoted appears to be somewaht complicated to me..excuse me..
[19:55] <sky2> so posted*
[19:55] <sky2> still trying to implement
[20:57] <Logicgate> hey guys
[20:57] <Logicgate> how do I get the information just about the audio stream with ffprobe?
[21:25] <brian__123> Hi - I need some help.  I'm installing (on ubunru 12.04.4 LTS server) using the instructions on https://trac.ffmpeg.org/wiki/UbuntuCompilationGuide.  I can install yasm OK but when I get to x264, and try to execute  ./configure --prefix="$HOME/ffmpeg_build" --bindir="$HOME/bin" --enable-static I get a errors including "rm: cannot remove 'config.h' Permission denied (and similar) and ending...
[21:25] <brian__123> ...with 'Out of tree builds are inpmossible with Out of tree builds are impossible with config.h/x264_config.h in source dir.  I tried again using sudo and this time I got  "Found no assembler"
[21:41] <xavery> after demuxing the video and audio streams from a MPEG-TS stream, transcoding them to different formats (H.264 and AAC, respectively), and muxing them back together, they're not in sync anymore. what did I do wrong?
[21:47] <brontosaurusrex> xavery, your commandline and everything
[21:53] <xavery> brontosaurusrex, http://pastebin.ca/raw/2560596 - these are the exact commands I've used. you'll notice that I've used MP4Box for muxing.
[21:54] <xavery> is it possible that both the streams got desynchronized when I demuxed them out of their common container, the MPEG-TS?
[21:55] <brontosaurusrex> dunno, but why do you need mp4box at all?
[21:55] <xavery> sadly, the effect is the same when I mux back with ffmpeg. just checked.
[21:55] <xavery> brontosaurusrex, I just always used it for muxing mp4. don't really remember the reason.
[21:56] <xavery> huh, maybe I'll try doing everything in one cmdline and see if that helps.
[21:56] <brontosaurusrex> what ffmpeg version is that?
[21:56] <xavery> 2.1.3
[21:57] <brontosaurusrex> <xavery> huh, maybe I'll try doing everything in one cmdline and see if that helps. < yeah, i'd try that
[21:59] <xavery> brontosaurusrex, I'm on it.
[21:59] <brontosaurusrex> actually i'd try to make at least stream extraction into one line
[22:02] <brontosaurusrex> There is no musepack/mpc encoder/decoder in ffmpeg, right?
[22:02] <xavery> brontosaurusrex, no idea. but I can't use the Nero AAC encoder from inside the ffmpeg pipeline.
[22:03] <brontosaurusrex> xavery, i know, that was my solo question :)
[22:03] <xavery> oh. :P
[22:04] <xavery> brontosaurusrex, there's a decoder.
[22:04] <brontosaurusrex> well i'd need flac > musepack script (with metadata), i'll google a bit
[22:06] <xavery> brontosaurusrex, running everything in one command seems to have fixed the sync.
[22:06] <xavery> huh.
[22:06] <brontosaurusrex> i guess it's something to do with seeking or timecodes or something, not sure
[22:07] <brontosaurusrex> or delays + seeking + timecodes, pick one
[22:07] <xavery> of course.
[22:07] <xavery> thanks for the help brontosaurusrex.
[22:07] <brontosaurusrex> xavery, np
[22:10] <bencc> attributes of mp4 like author and comments are stored as exif tags?
[23:10] <xavery> brontosaurusrex, I had some more issues, but I narrowed them down to the "accurate_seek" option.
[23:11] <brontosaurusrex> and i have my flac2mpc script done
[23:11] <brontosaurusrex> turns out that mpcenc can take flac input directly ...
[23:11] <xavery> apparently, one of the audio streams couldn't be decoded exactly at the mark that I have with -ss, and ffmpeg was doing stream copy with the parameters I gave, so it preserved the extra data before that mark in the demuxed stream. but that caused problems when muxing.
[23:12] <xavery> with "accurate_seek", that extra fragment between the mark specified with -ss and the first "seekable" packet before the given mark is decoded and discarded, which allows the streams to stay in sync when transcoding.
[23:12] <xavery> in a nutshell : when transcoding, keep everything in one ffmpeg invocation. ;)
[23:13] <brontosaurusrex> xavery, nice explanation you found
[23:14] <xavery> brontosaurusrex, that's not an explanation, that's just my reasoning - the only reasonable I could come up with.
[23:14] <brontosaurusrex> oh, i thought google came up
[23:15] <xavery> actually, it didn't.
[23:15] <xavery> the ffmpeg documentation is so good.
[23:16] <brontosaurusrex> yeah, ffmpeg is known for exelent docs with plenty of examples
[00:00] --- Mon Jan 20 2014


More information about the Ffmpeg-devel-irc mailing list