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

burek burek021 at gmail.com
Tue Sep 11 02:05:01 CEST 2012


[01:15] <InFerNo_> can anyone help with this error? tried google but no results
[01:15] <InFerNo_> Expected number for q:a but found: -b:a
[01:16] <InFerNo_> http://pastebin.com/83NB7th9
[01:21] <ubitux> InFerNo_: -q:a needs a number following it
[01:21] <ubitux> not "-b:a"
[01:22] <InFerNo_> mhm
[01:22] <InFerNo_> I just copied that from somewhere so I don't know what the values should be ..
[01:22] <InFerNo_> I had -qscale 5
[01:22] <InFerNo_> so should I use -q:5 then?
[01:23] <ubitux> it's a quality factor
[01:23] <InFerNo_> and -b:a was -b 1024k
[01:23] <ubitux> choose the value you want
[01:23] <InFerNo_> ok, and what is the scale of the value?
[01:23] <InFerNo_> 0-10?
[01:24] <ubitux> afaik it's codec specific
[01:24] <ubitux> in this case it fallbacks to libmp3lame
[01:24] <InFerNo_> ok
[01:24] <ubitux> btw, -q:a will produce vbr content
[01:24] <ubitux> and settign -b:a will produce a cbr content
[01:25] <ubitux> so you should choose one or another
[01:25] <InFerNo_> ok, thanks
[01:26] <ubitux> i'm not sure -itsoffset does what you want btw
[01:26] <ubitux> but i may be wrong
[01:26] <InFerNo_> I'm trying to learn about each of these settings
[01:27] <ubitux> why do you have multiple different -s?
[01:27] <InFerNo_> I copied it, and I didn't understand
[01:27] <InFerNo_> explanation was that it's input and output res
[01:28] <InFerNo_> https://docs.google.com/file/d/0B7JCjpvY2cExNTJmZDRjMTgtZjNiZi00ZWQ4LTk3OTktMWJjZTM5ZTY3Zjg3/edit?pli=1
[01:28] <InFerNo_> I got confused because the switch was the same (s) but I guess I'd just roll with it
[01:30] <InFerNo_> fyi: -q n           Internal algorithm quality setting 0..9. 0 = slowest algorithms, but potentially highest quality. 9 = faster algorithms, very poor quality
[01:30] <InFerNo_> -b  n          set bitrate (8, 16, 24, ..., 320)
[01:34] <InFerNo_> and after a little tinkering, the syntax is (for example) -q:a 5 -b:a 96
[01:35] <ubitux> it's wrong to specify both
[01:35] <ubitux> one will be ignored
[01:35] <ubitux> and 96 bits isn't what you want
[01:36] <ubitux> most likely 96k is more correct
[01:36] <ubitux> (even if using -q:a only might be way more appropriate)
[01:37] <InFerNo_> well, i got that -q n and -b n from lame's documentation
[01:37] <InFerNo_> you've got me confused now
[01:37] <InFerNo_> is it referring to ffmpeg settings or liblame settings?
[01:38] <InFerNo_> the stream was not giving errors anymore now, however no sound, I'll try leaving out the -b:a value then
[01:38] <ubitux> ffmpeg maps its own option to the libmp3lame ones
[01:39] <ubitux> and afaik, if the bitrate is set (-b:a) it will use the CBR mode, and if the quality option is set (-q:a) it will use the VBR mode
[01:39] <ubitux> -b:a from ffmpeg is in bps, so you need to add a 'k' for the units
[01:39] <InFerNo_> ah right, in that perspective, yes I understand
[01:42] <InFerNo_> do the 2 -s switches make sense? input and output?
[01:43] <ubitux> if you want to specify the video size input for x11grab, you should use -video_size (before the -i that is)
[01:44] <ubitux> if you want to specify the video size of the output, you should use the -vf scale filter
[01:44] <ubitux> (that's actually what -s does, but it's deprecated and it will cause you problems when you will want to add more filters)
[01:45] <InFerNo_> is there any documentation for all this new stuff? I've been reading things from feb this year and it's mostly outdated in terms of syntax
[01:46] <ubitux> https://ffmpeg.org/ffmpeg.html http://git.videolan.org/?p=ffmpeg.git;a=blob_plain;f=Changelog;hb=HEAD
[01:47] <ubitux> you are most likely interested in the changes from 0.9
[01:48] <ubitux> a lot of things are indeed undocumented, but the program should warn when you use any deprecated option
[01:49] <InFerNo_> it didn't complain about -s, it did complain about -qscale and -b
[01:52] <ubitux> then forget what i said about -s and consider it a recommendation by me
[01:52] <ubitux> though, i wonder if your first -s has any effect
[01:53] <InFerNo_> the output is 640*400, not sure if because I specified that last
[01:53] <ubitux> as i said, the second -s will be translated into a -vf scale=640:400
[01:53] <ubitux> transparently
[01:54] <ubitux> but that is a problem when you actually specify some filtering in addition
[01:54] <ubitux> (do you have any idea if that scale filter will be inserted at the end or at the beginning of your filtergraph?)
[01:55] <InFerNo_> there are a few things I'd like to specify, which are video bit rate, the encode preset (superfast, fast..) the input resolution, the output resolution, the framerate and audio bit rate
[01:56] <InFerNo_> and I have no idea ;[
[02:22] <InFerNo_> I'm still not getting any sound
[02:22] <InFerNo_> If I specify ffmpeg to capture the screen
[02:23] <InFerNo_> can I assume that it also automatically captures the pulseaudio output?
[02:23] <InFerNo_> My guess it no
[02:23] <InFerNo_> is*
[02:33] <InFerNo_> sorry for the derp, but I removed -i pulse earlier due to an error, and that's why it's not capturing any audio
[02:38] <lucas^> let's say I have a frame number in a MPEG-2 video file, and I want to translate that to a timecode within the file
[02:39] <lucas^> variable framerate, so frame_no * 29.97 really is quite inaccurate
[02:39] <lucas^> right now I'm running the entire video through ffmpeg, copying it frame-by-frame to /dev/null, stopping at the specified frame number, and checking the last timecode printed in stdout
[02:40] <lucas^> the problem with this is that making multiple queries to a single long video can take hours
[02:40] <lucas^> is there a cleaner way to accomplish this?
[03:33] <relaxed> lucas^: I'm sure it could be scripted.
[03:34] <lucas^> well, yeah, I'm doing it with Python basically
[03:35] <lucas^> if I have to make 50 queries to a 3-hour video, it'll still take forever, as it has to decode every single frame up to that point for every query
[03:38] <relaxed> Couldn't you decode the file once to a file and grep that?
[03:38] <lucas^> thought about that, but ffmpeg only outputs timecodes every so often
[03:39] <relaxed> did you look at -vstats or ...?
[03:42] <relaxed> or -f framecrc ?
[03:43] <lucas^> have not heard of these command-line options. going to try them out now, thanks for mentioning them
[03:43] <t4nk077> using ffmpeg, i encode using h264 and then segment it. Is there a way to reset the timestamps of each segment ?
[03:47] <relaxed> lucas^: ffmpeg -i input -map 0:v -c copy -f framecrc output.txt
[13:38] <frogprince_mac> is it possible to generate thumbnails from embedded videos like youtube?
[13:38] <frogprince_mac> so the videos dont need to be downloaded first
[13:42] <ameeth1> Hi,
[13:43] <ameeth1> Hi,  am using ffmpeg 0.11.1 onto a panda board for streaming. Linux linaro-developer 3.4.0-1-linaro-lt-omap #1~120625232503-Ubuntu Sx Ubuntu os. i want to live stream an raw video from an video device or an cam to an rtmp server in an mp4 format,command used :  ./ffmpeg \ -f alsa -async 1 -ac 2 -i hw:2,0 \ -f video4linux2 -i /dev/video0 \ -acodec aac -b:a 40k \ -r 50 -s 320x240 -vcodec libx264 -strict -2 -b:v 320K -pass 1 \ -f flv rtmp://...../mp4:demo101
[13:44] <ameeth1> d
[14:15] <relaxed> ameeth1: Specify the frame rate before the video input. Why are you using -pass 1?
[14:16] <relaxed> Use either a bitrate , -b:v $bitrate, or use constant rate factor, -crf $int
[14:18] Action: relaxed needs more coffee. You already have -b:v 320k, so drop -pass 1
[14:20] <relaxed> Also, you may want to use the .flv container because it's streamable and should work well with rtmp
[14:22] <relaxed> derp, you are using -f flv. I'll be back after a pot of coffee :/
[14:29] <lucas^> thanks for suggesting framecrc the other night, but I wasn't able to figure out how to decode the DTS/PTS fields into something useful per each packet, which could contain a group of frames for all I know
[15:27] <relaxed> lucas^: Look at `ffprobe -show_frames input`
[15:48] <killown> I am building ffmpeg with this flags http://bpaste.net/show/qRrERuq4nDYGvEVds3Km/ but ffmpeg -formats doesn't show alsa support
[15:48] <killown> what I need to do to enable alsa support?
[15:51] <relaxed> killown: You've been at this for days. Run "make distclean; ./configure" and then look at config.log
[15:51] <killown> --extra-libs=-libasound  I guess
[15:52] <ubitux> it should be enabled by default
[15:52] <ubitux> if you have alsa/asound headers
[15:52] <ubitux> as long as you don't disable devices
[15:55] <ameeth> if we specify the frame rate before the video input it throws an error like [video4linux2,v4l2 @ 0x178e970] ioctl set time per frame(1/25) failed
[15:55] <ameeth> /dev/video0: Input/output error
[15:56] <relaxed> 50 is kind of an odd framerate
[15:57] <ameeth> what is an odd frame rate
[16:01] <ameeth> how to stream an raw video from a cam to an rtmp server with an mp4 format
[16:06] <relaxed> try 25 or 30, unless you know you need 50 fps
[16:10] <ameeth> i tried the command
[16:10] <ameeth> ./ffmpeg   \
[16:10] <ameeth> -f alsa -async 1   -ac 2  -i hw:2,0  \
[16:10] <ameeth> -f video4linux2  -s vga -r  25  -i /dev/video0  \
[16:10] <ameeth> -acodec aac -b:a 40k \
[16:10] <ameeth>  -s vga -vcodec libx264 -preset medium -maxrate 2400k -bufsize 600k  -strict -2  -b:v 320K \
[16:10] <ameeth>  -f flv  rtmp://ms1.watchy.in/live/mp4:demo101
[16:10] <ameeth> but it as an error :
[16:10] <ameeth> [video4linux2,v4l2 @ 0x385970] ioctl set time per frame(1/25) failed
[16:10] <ameeth> /dev/video0: Input/output error
[16:11] <killown> relaxed, http://bpaste.net/show/OLobABEecSq4NKQjR1DX/
[16:12] <relaxed> ameeth: next time don't paste to the channel, use pastebin.com
[16:13] <killown> -rw-r--r-- 1 root root 1777 Sep  7 10:36 /usr/include/alsa/asoundlib.h
[16:13] <killown> still has not support for alsa
[16:14] <ameeth> ok thanks i'll resend it
[16:14] <killown> relaxed, here is what I am trying to execute ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s hd1080 -r 30 -i :0.0 -vcodec libx264 -preset ultrafast -an -y video.mkv -acodec pcm_s16le -b:a 48000k -loglevel quiet -vn -y audio.mkv
[16:14] <killown> Unknown input format: 'alsa'
[16:16] <ameeth> this is the command i am using   http://bpaste.net/show/dRWCc5DUdwT41NeyRBJ8/
[16:17] <ameeth> so can you tell me the right way to sort this out
[16:18] <relaxed> killown: install libc6-dev or whatever provides soundcard.h for your distro and try again.
[16:20] <relaxed> ameeth: Then keep -r 25 after the input. If you need mp4 then change -f flv to -f mp4.
[16:20] <killown> relaxed, ok, let me do that
[16:27] <microchip_> hmm
[16:27] <ameeth> keeping -r 25 after the input also drops fps and it is around 10 only
[16:29] <ameeth> if changed from -f flv to -f mp4 ffmpeg throws an error like[mp4 @ 0x12c6230] muxer does not support non seekable output
[16:29] <killown> ffmpeg -f alsa -ac 2  -f x11grab -s hd1080 -r 30 -i :0.0 -vcodec libx264 -preset ultrafast -an -y video.mkv -acodec pcm_s16le -b:a 48000k  -vn -y audio.mkv
[16:29] <killown> Output file #1 does not contain any stream
[16:29] <killown> what's wrong?
[16:30] <pcbb> what is the error code -5?
[16:41] <fling> hello :p
[16:41] <fling> relaxed: http://dpaste.com/798970/
[16:41] <fling> it stops capturing somewhy
[16:41] <fling> [video4linux2,v4l2 @ 0x1516d60] The v4l2 frame is 828556 bytes, but 829440 bytes are expected
[16:44] <pcbb> av_read_frame were leaking memory on mjpeg/http stream ... works fine with rtsp
[17:32] <killown> relaxed, /usr/include/linux/soundcard.h is that one?
[17:34] <killown> I think it should be #include <linux/soundcard.h> instead of #include <sys/soundcard.h>?
[17:38] <killown> -rw-r--r-- 1 root root 29 Jul 15 19:38 /usr/include/sys/soundcard.h
[17:38] <killown> huh
[18:03] <relaxed> killown: did you run "make distclean; ./configure" again?
[18:04] <killown> relaxed, not yet, let me try now
[18:06] <relaxed> run *exactly* this "./configure | grep -o alsa | wc -l" and if it returns "2" you have alsa support.
[18:07] <killown> relaxed, 0
[18:07] <relaxed> did you run "make distclean" first?
[18:07] <relaxed> which version is this?
[18:07] <killown> relaxed, I did
[18:07] <killown> relaxed, 0.11.1
[18:08] <relaxed> pastebin your new config.log
[18:08] <killown> ok
[18:08] <killown> lets the compilation finish
[18:08] <relaxed> ctrl+c it
[18:09] <killown> relaxed, http://bpaste.net/show/gb3yFmJDzAOAdjKIlwMf/
[18:16] <relaxed> killown: This is at the bottom of your config.log "./configure: line 2165: /tmp/ffconf.fPiSV7uZ.sh: Permission denied
[18:18] <killown> relaxed, Sanity test failed.
[18:18] <killown> but the compilation doesn't fails
[18:20] <relaxed> configure searches and runs tests to determine what to enable in the binary.
[18:21] <relaxed> So this is not a problem with ffmpeg, it's a problem with permissions of /tmp. Ask in your distro's channel how to resolve this.
[18:22] <killown> TMPDIR=tmp ./configure
[18:22] <killown> I am using tmpfs
[18:22] <killown> with noexec
[18:26] <relaxed> Now you know the problem.
[18:30] <killown> relaxed, thank you, know it's working
[18:30] <killown> but
[18:30] <killown> [alsa @ 0x1887160] cannot open audio device pulse (No such file or directory)
[18:30] <killown> ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s hd1080 -r 30 -i :0.0 -vcodec libx264 -preset ultrafast -an -y video.mkv -acodec pcm_s16le -b:a 48000k -loglevel quiet -vn -y audio.mkv
[18:30] <killown> [alsa @ 0x1887160] cannot open audio device pulse (No such file or directory) pulse: Input/output error
[18:43] <saste> rud: you there?
[18:45] <alyawn> I have an encoded MP4 that was erroneously encoded from raw as 30fps and would like to reset it to 24 fps without rencoding. Is that possible?
[18:52] <rud> saste: barely, late on a project :/ couldn't review the patch, but it's on today's todo-list :(
[18:52] <saste> rud: ok, thanks
[18:53] <rud> 18:52 here, i'll be online most of the night..
[18:55] <saste> rud: same timezone
[19:00] <rud> saste: nice - note, against what branch should I apply this patch ? Master seems to have some parts of it already in segment.c
[19:01] <saste> rud: should apply cleanly to latest git
[19:01] <rud> hmm let me clean re-start
[19:04] <rud> saste: one reject, see http://pastebin.com/mgERf5pF
[19:04] <relaxed> killown: https://ffmpeg.org/trac/ffmpeg/wiki/Capturing%20audio%20with%20FFmpeg%20and%20ALSA
[19:05] <saste> rud: why not a simpler git am PATCH?
[19:05] <saste> the merging code should be also more clever
[19:05] <saste> otherwise I'll send you an updated patch
[19:06] <rud> saste: because i'm fairly new to git :) testing.
[19:13] <rud> saste: hum.. http://pastebin.com/psS9EzR3 (sorry if i'm missing the obvious..)
[19:13] <rud> (i did start from freshly cloned repo before git am ..)
[19:14] <smt> what container to choose for h264 + multiple mp3 streams?
[19:14] <saste> rud: looks like it isn't my patch :)
[19:14] <saste> rud: http://ffmpeg.org/trac/ffmpeg/attachment/ticket/1642/0002-lavf-segment-add-segment_list_flags-option.patch
[19:14] <rud> oh my
[19:14] <saste> the last attachment i posted
[19:15] <saste> the other two patches have been already applied to master
[19:15] <JEEBsv> smt: flv, mp4, mkv should in theory support it, but I guess whatever you'll be trying to play it on is more important as a possible limiting feat
[19:15] <rud> kook, let me finish what i'm doing now, i'll be back on this in a few hours, and hopefully focused
[19:15] <saste> yes no rush
[19:15] <rud> :)
[19:16] <smt> JEEBsv: its gonna be played on a pc via a samba share...
[19:16] <JEEBsv> smt: then it really doesn't matter, other than possible bugs in the possible software players. I would recommend either mp4 or mkv tho.
[19:17] <smt> JEEBsv: yeah that are the 2 containers i was thinking of, any differences in efficiency?
[19:18] <JEEBsv> not really, mp4 is generally just more strict (less formats generally supported), and matroska can host pretty much everything you can think of
[19:18] <smt> k, thx, i think ill go for matroska than
[19:30] <delicado> hi how do i use ffmpeg to convert an .mp3 to another .mp3 with different bitrate? say i have "capture the crown-OIMATEWTF.mp3" with 256kbps bitrate. i want it converted to 128kbps? anyone show me what to write in command line?
[19:31] <ubitux> ffmpeg -i in.mp3 -b:a 128k out.mp3 ?
[19:32] <delicado> ah ill try that now thanks
[19:35] <smt> is there a way to get output files with 666 user rights instead of 600 from ffmpeg?
[19:58] <brimestone> Hello, what are the option for me to accelerate FFmpeg/FFmbc trancoding? is there a known hardware outhere that will do this?
[19:59] <rud> saste: what is the proper way to combine +live - cache as -segment_list_flags ?
[20:00] <saste> rud: -segment_list_flags +live-cache
[20:00] <saste> rud: cache is the default value
[20:01] <rud> ah, thank you, testing now
[20:04] <rud> saste: ok, so far the patch seems ok, but, I have an interesting issue with sound since a couple days, let me paste my compile / encoder line
[20:08] <rud> saste: http://pastebin.com/afW4P6jm
[20:10] <rud> audio is choppy as hell, unsure what causes that, in my previous HLS, when you started writing the patch, everything was found for both audio & video, unsure if it's the patch or something else in my setup that wrecks audio
[20:11] <rud> it's like if an LFO/chopper was quickly slicing sound
[20:13] <saste> rud: to which format was you writing?
[20:13] <rud> basically h264/aac as input > h264/aac as output
[20:14] <saste> -flags -global_header this looks suspect
[20:14] <saste> why are you setting it?
[20:14] <saste> also check -format sstream
[20:14] <rud> leftovers from various tests, will investigate these right now
[20:14] <saste> no ssegment or stream_segment
[20:28] <rud> nice, swapped to stream_segment, using: http://pastebin.com/r3Jp0d6b
[20:29] <rud> same choppy issue. I tried also using a simple -i rtmp://... without my live/timeout/buffer settings, but same issue aswell
[20:29] <rud> (can refresh the bit.ly url, i'm sending an audio feed right now)
[20:30] <relaxed> Since you guys are discussing ffprobe, is there a way to specify only the video stream with -show_frames?
[21:45] <Zeeflo> I need help
[21:45] <Zeeflo> Why will ffmpeg play some 720p mkv files and not others?
[21:45] <Zeeflo> more specifically all mkv files in a certian dir..
[21:46] <Zeeflo> every other mkv file on my system/dirs plays just fine
[21:46] <Zeeflo> can anyone help?
[21:46] <Zeeflo> (running headlessly on debian 7 (wheezy)
[21:47] <Zeeflo> sure
[21:47] <Zeeflo> hold on
[21:51] <amaurea> Hi! When asking about a color matrix bug in #x264 they pointed me here. According to them, x264 does not correctly convert from RGB to bt709 because swscale does not allow one to set the colormatrix correctly for the RGB -> YCbCr conversion, only the other way around. Is that correct?
[21:51] <Zeeflo> http://pastebin.com/8Uf8TbjN
[21:52] <Zeeflo> Please note that this is the log after playing a file from the dir where all the mkv
[21:52] <Zeeflo> s
[21:52] <Zeeflo> will not play
[21:53] <Zeeflo> all other mkv's throughout the system plays fine
[21:54] <cbsrobot-> Zeeflo: no idea what you just sent me
[21:55] <cbsrobot-> but what happens if you rename the folder ?
[21:55] <Zeeflo> serviio.log
[21:55] <Zeeflo> i do not know
[21:55] <Zeeflo> i am thinking its because theres a space in the dir
[21:55] <Zeeflo> ill try renaming it without spaces
[21:55] <cbsrobot-> can you hack serviio ?
[21:57] <pcbb> I'm using ffmpeg lib to capture Motion JPEG over RTSP. The received frame is not a JPEG, does not have the headers and not have the structure of a JPEG file too. How can I convert it to a JPEG?
[21:58] <Zeeflo> renaming the folder did not help
[21:59] <Zeeflo> the files in the folder are readable by others
[21:59] <Zeeflo> (chmodded to 755)
[21:59] <Zeeflo> I keep getting return code 1 when i try to play a MKV file in that directory..
[22:01] <Zeeflo> other files (avi) plays fine
[22:01] <rud> you're not on an ACL enabled filesystem, or this directory is not shared via AD to win clients (NT>POSIX ACL style)..?
[22:01] <Zeeflo> no
[22:01] <Zeeflo> its not a shared filesystem
[22:01] <Zeeflo> nor is the folder shared
[22:01] <Zeeflo> it has worked
[22:01] <Zeeflo> untill I rebooted the server
[22:03] <Zeeflo> please look at the pastebin
[22:04] <cbsrobot-> Zeeflo: paste the full path to a file in this folder
[22:04] <cbsrobot-> we should start a #ffmpeg-meme channel
[22:05] <Zeeflo> ok
[22:05] <cbsrobot-> first entry will be: it has worked - untill I rebooted the server
[22:05] <cbsrobot-> lol
[22:05] <Zeeflo> are you insulting me?
[22:05] <cbsrobot-> nah - just kidding
[22:06] <Zeeflo> ok
[22:06] <Zeeflo> ./home/media/serier/south_park/1001 - The Return of Chef.mkv
[22:06] <rud> out of curiosity
[22:07] <Zeeflo> every mkv in the south_park will not play and returns error 1
[22:07] <rud> do you other file names contain spaces ?
[22:07] <Zeeflo> yes
[22:07] <Zeeflo> they play fine
[22:07] <rud> they start by a number too ? (that shouldn't mater)
[22:07] <cbsrobot-> do they start with numbers ?
[22:07] <Zeeflo> yes, they start with numbers
[22:07] <rud> cbsrobot-: :)
[22:08] <Zeeflo> alot of my files start with numbers as they define episode number
[22:08] <Zeeflo> this is not a problem in other folders
[22:08] <Zeeflo> and like I said, I can play .avi files in the south park folder just fine
[22:08] <Zeeflo> also with spaces in the name
[22:08] <cbsrobot-> Zeeflo: find to share
[22:08] <cbsrobot-> a file ?
[22:08] <Zeeflo> also starting with numbers
[22:09] <Zeeflo> find to share, a file?
[22:09] <Zeeflo> what do you mean?
[22:09] <cbsrobot-> *mind
[22:09] <Zeeflo> ah
[22:09] <Zeeflo> mind
[22:09] <Zeeflo> sure
[22:09] <cbsrobot-> make sure the files are not 0kb !
[22:09] <Zeeflo> of course, theyre no
[22:09] <Zeeflo> t
[22:09] <cbsrobot-> you could also simply try on the commando ine
[22:10] <cbsrobot-> ffmpeg -i "./home/media/serier/south_park/1001 - The Return of Chef.mkv"
[22:10] <cbsrobot-> or without the point
[22:10] <cbsrobot-> and paste bin the result
[22:11] <Zeeflo> http://pastebin.com/LxkzicdZ
[22:12] <cbsrobot-> can you run it as your www user ?
[22:12] <Zeeflo> let me try
[22:13] <Zeeflo> ytes
[22:13] <Zeeflo> yes
[22:13] <Zeeflo> plays fine
[22:13] <Zeeflo> of course its heavily transcoded
[22:13] <Zeeflo> but it plays in the mediabrowser
[22:14] <cbsrobot-> so no ffmpeg problem
[22:14] <cbsrobot-> check with serviiiiio
[22:14] <Zeeflo> nah, its an ffmpeg problem..
[22:14] <Zeeflo> ffmpeg returns the error in the log..
[22:14] <Zeeflo> ffmpeg execution failed
[22:17] <Zeeflo> let me try and debug further
[22:18] <Zeeflo> im pretty sure its ffmpeg that fucks up
[22:24] <pcbb> anyone
[22:24] <pcbb> can help me?
[22:24] <pcbb> =/
[22:24] <Zeeflo> whats the problem?
[22:25] <pcbb> I'm using ffmpeg lib to capture Motion JPEG over RTSP. The received frame is not a JPEG, does not have the headers and not have the structure of a JPEG file too. How can I convert it to a JPEG?
[22:26] <pcbb> I've the AVPacket
[22:27] <Zeeflo> uhmmm
[22:27] <Zeeflo> its like an ip camera or something
[22:34] <pcbb> Zeeflo yes it is!!!
[22:34] <pcbb> Zeeflo I've the AVPacket of jpeg rtp stream
[22:34] <pcbb> I can save the jpeg file
[22:34] <pcbb> but RTP packet is different
[22:38] <Protonsoup> is there a way to copy all the audio/video/codec information for a particular file so that I can encode other videos in the same format?
[22:39] <Protonsoup> ie somethign like:
[22:39] <Protonsoup> ffmpeg -getcommandlineinfoforvideo myvideo.mkv
[22:41] <Zeeflo> invoke script
[22:42] <Protonsoup> I'm not sure what you mean by that
[22:42] <Zeeflo> are you using linux or windows?
[22:42] <Protonsoup> linux
[22:43] <Protonsoup> basically. I have a .mkv file that I want to convert to .flv using all the same quality information
[22:45] <Zeeflo> create an sh file, modify the executables to suit. and run the file like: ./my-own-batch-script.sh /my/file.mkv
[22:47] <Zeeflo> your batch file should tell ffmpeg what to do to the selected file, and where to output it
[22:48] <Protonsoup> yes, I know how to do that, but what I don't know how to do is get all the command line arguments so that i can convert my .mkv file to the .flv.  I need to get the audio,video bit rate, etc
[22:50] <Zeeflo> ffmpeg -i filename.mkv -vcodec copy -acodec copy filename.flv
[22:50] <Zeeflo> thats for a lossless copy
[22:50] <Zeeflo> if you want to define bitrate etc you can define it as well
[22:51] <Protonsoup> I just tried that, and got this error:
[22:51] <Protonsoup> "[flv @ 0x162ace0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 83 >= 42
[22:51] <Protonsoup> av_interleaved_write_frame(): Invalid argument
[22:51] <Protonsoup> "
[22:53] <Zeeflo> ffmpeg -i filename.mkv -vcodec copy -acodec copy filename.flv
[22:53] <Zeeflo> whoop
[22:53] <Zeeflo> ffmpeg -i filename.mkv -vcodec flv -acodec copy filename.flv
[22:53] <Zeeflo> try that
[22:54] <Zeeflo> or have a look here for various command line options:
[22:54] <Zeeflo> http://forum.videohelp.com/threads/343356-FFmpeg-Command-Lines-for-Converting-Video-to-Various-Devices
[22:54] <Protonsoup> well that command worked, but the video stream quality was really downgraded
[22:55] <Zeeflo> then you can define how much it should be downgraded
[22:55] <Protonsoup> just looked at that link. That's a nice list of presets
[22:55] <Zeeflo> ffmpeg -i filename.mkv -vcodec flv -b 1000k -acodec copy filename.flv
[22:55] <Zeeflo> for an example
[22:55] <Zeeflo> then you give the flv a bitrate of 1000k
[22:56] <Zeeflo> play around untill you get the desired result and make your script file with those settings
[22:58] <Protonsoup> ahh cool. Thanks. I set it at 10000k, not sure if that's overkill for a 720p cartoon
[22:58] <cbsrobot-> Zeeflo: I guess serviiio uses the command line ffmpeg to transcode
[22:58] <cbsrobot-> can you dump the encoding line before it gets executed ?
[22:58] <Zeeflo> yes it does cbs robot
[22:58] <Zeeflo> but now it gets reaaally tricky!
[22:59] <cbsrobot-> Protonsoup: I guess you want h264 in your flv
[22:59] <Protonsoup> yes. I'm trying to create a youtube clone for my local network where I can just host all my files
[22:59] <Zeeflo> I tried to play a file further down the list in the folder, 1402 - The Tale of Scrootie Mcbooger Balls.mkv
[22:59] <Zeeflo> it played fine
[22:59] <Zeeflo> its like, some files it will play in that folder, and some it will not..
[22:59] <cbsrobot-> Zeeflo: very strange
[23:00] <Zeeflo> all though I can view all of them in the mediabrowser
[23:00] <Zeeflo> thats soooo freaking wierd
[23:00] <cbsrobot-> Protonsoup: I suggest you transcode all files to a certain type
[23:00] <cbsrobot-> f.ex:
[23:00] <cbsrobot-> ah sorry
[23:00] <cbsrobot-> you really want fly ?
[23:00] <Protonsoup> any suggestion as to what type?
[23:01] <cbsrobot-> *flv
[23:01] <Protonsoup> I'd rather keep them as mkv files
[23:01] <cbsrobot-> youtube clone & ?
[23:01] <cbsrobot-> you want html5 video ?
[23:01] <Protonsoup> basically i want to host my own youtube like site, but on my local network so my brothers can use their browser to just do a search for all my videos
[23:01] <Protonsoup> and then watch it through their browser
[23:02] <cbsrobot-> Zeeflo: can you dump the ffmpeg command which gets executed ?
[23:02] <Protonsoup> html5 video would be fine, but would they be able to skip through to any point in the video?
[23:02] <cbsrobot-> Protonsoup: sure
[23:02] <cbsrobot-> what browsers you want to support ?
[23:02] <Protonsoup> chrome/firefox
[23:03] <Zeeflo> cbsrobot- im looking for it in the debug log
[23:04] <cbsrobot-> Protonsoup: so ogg or webm
[23:04] Action: cbsrobot- does not think FF has h264 support yet ...
[23:12] <Zeeflo> uhmm
[23:13] <Zeeflo> serviio is supposed to debug the ffmpeg command line used..
[23:13] <Zeeflo> i dont see it..
[23:15] <cbsrobot-> Zeeflo: any particular reason to take servo ?
[23:15] <cbsrobot-> serviiiiio ?
[23:15] <cbsrobot-> damn auto spell checker
[23:17] <Zeeflo> cbsrobot- no, i was just looking for a good dlna server
[23:17] <Zeeflo> serviio seemed to have the options i was looking for
[23:17] <Zeeflo> transcoding
[23:17] <Zeeflo> subtitles support
[23:18] <cbsrobot-> what about xmbc or plex ?
[23:19] <Zeeflo> i dont know these¨
[23:19] <cbsrobot-> Protonsoup: btw. check these too ...
[23:20] <Zeeflo> you have any experience with these?
[23:21] <cbsrobot-> no
[23:22] <cbsrobot-> btw its xbmc ...
[23:22] <Protonsoup> I'm playing with serviio at the moment, so far it seems like it's doing what I need
[23:23] <Protonsoup> checking out plex now
[23:23] <rud> hum what is the proper -a:c for libfdk-aac ?  -a:c libfdk-aac fails on this statically built ffmpeg binary .. (it reports --enable-fdk-aac) ..
[23:23] <Zeeflo> it doesnt look like plex supports debian wheezy
[23:25] <cbsrobot-> rud:  libfdk_aac
[23:25] <cbsrobot-> underscore !
[23:25] <cbsrobot-> check ffmpeg -codecs | grep aac
[23:26] <rud> doh :)
[23:26] <cbsrobot-> :D
[23:26] <rud> oh nice -codecs, thanks !
[23:26] <cbsrobot-> btw hows the streaming going ?
[23:33] <Protonsoup> well that was weird, tried to quit out of serviio and my xorg crashed
[23:35] <Zeeflo> check log
[23:35] <Zeeflo> xorg log
[23:36] <Zeeflo> rule of thumb, when shit crashes, check var/log
[23:36] <rud> grr same choppy audio bug with libfdk-aac grrr
[23:37] <Protonsoup> lol i wouldnt even know what to do with the information from the log
[23:39] <Zeeflo> you would go here, and pastebin it ;)
[23:40] <Protonsoup> heh. thats alright. i quick restart fixed it
[23:40] <Protonsoup> So previously i've been using mediatomb for my media server and was using vlc to connect to it using upnp
[23:40] <Protonsoup> it worked fine and allowed me to skip through to anypoint
[23:40] <Protonsoup> without transcoding
[23:41] <Protonsoup> now i with serviio i can do the exact same thing
[23:41] <Protonsoup> but the web interface doesn't seem to allow me to skip through to any point
[00:00] --- Tue Sep 11 2012


More information about the Ffmpeg-devel-irc mailing list