[Ffmpeg-devel-irc] ffmpeg.log.20130404
burek
burek021 at gmail.com
Fri Apr 5 02:05:01 CEST 2013
[00:18] <Sesse> hi. I'm trying to make a very simple demuxer/muxer; basically something that does what ffmpeg -vcodec copy -acodec copy does (but I'll need to put more code around it, so I can't just system() :-) ). is there documentation somewhere on how to set up the AVStreams in the output so they are the same as the inputs? just using avcodec_copy_context() seems to mess with the time base, and the output file becomes unplayable.
[00:19] <Sesse> I've tried looking through the ffmpeg command-line utility, but it does... a lot of things.
[03:56] <langoliers> h
[09:28] <bajsolator> hi guys i cant get the hang of the syntax for aresample anyone got an example or 2 for syncing audio.
[09:28] <bajsolator> EG: aresample=async=1000
[09:33] <relaxed> bajsolator: did you look at the ffmpeg-filters man page
[09:37] <bajsolator> yes it,s not consistent with what works.
[09:41] <bajsolator> @relaxed aresample=44100:async=1000 does not work for example.
[10:02] <efyx> Hi, I am using ffmpeg libs and I like to get the previous frame, what the best way to accomplish that?
[11:04] <bajsolator> Error initializing filter 'aresample' with args 'async=1000'
[11:53] <speechless> i am writing a program using ffmpeg libraries. Is there a way for ffmpeg to open a video that only exisits in the my programs memory (i do not want to write any videos to a file)
[12:08] <ServerCrash> hi :)
[12:08] <Bor0> did your ffserver crash?
[12:08] <ServerCrash> Bor0 a sort of :(
[12:08] <elkng> no one like when server crashed ?
[12:08] <ServerCrash> :D
[12:08] <elkng> so move along, move along
[12:09] <ServerCrash> i am using aes.h to encrypt and decrypt a movie file, encryption and decryption work fines a decrypted file plays fine in media players
[12:10] <ServerCrash> but if i try to implement the same logic in avplay using AVIOContext in decode_thread function, for some odd reasons the frame and the audio channel is found
[12:10] <ServerCrash> i get something like this Stream #0.0: Video: msmpeg4, yuv420p, 576x432, 29.97 tbn
[12:11] <ServerCrash> Stream #0.1: Audio: ac3, 0 channels, fltp
[12:11] <ServerCrash> which should be something like
[12:11] <ServerCrash> Stream #0.0: Video: msmpeg4, yuv420p, 576x432, 29.97 fps, 29.97 tbr, 29.97 tbn
[12:11] <ServerCrash> Stream #0.1: Audio: ac3, 48000 Hz, 5.1, fltp, 448 kb/s
[12:12] <ServerCrash> http://pastebin.com/4quwJbzR i added two function enc_read_packet and enc_seek before the decode_thread function starts from line 2268
[12:12] <ServerCrash> any clues why the frame rates and audio channel details are getting lost
[12:13] <ServerCrash> any examples to see how to go encode and then do a run time decoding of videos ?
[12:15] <ServerCrash> looks others servercrashed :p
[12:22] <elkng> rainbow crash
[12:23] <elkng> person 1: so what the next step of your master plan ?
[12:23] <elkng> person 2: crashing this server, with no survived data
[12:24] <ServerCrash> well if nothing works :p
[12:35] <lentferj> I have a question regarding aspect ratio changes and mkv. I have a mpeg ts source file which has an asr change from 4:3 to 16:9 here. When I encode it into an mpg ts container and libx264 codec all players I tested will change the asr. When I use mkv container, no player (mplayer, vlc, xbmc) will follow the "in-file" asr change to 16:9. As far as I understood MKV supports asr changes "in-file". So is this a ffmpeg, mkv or player problem? Or a
[12:37] <lentferj> .. oops. In the 3rd sentence is should read "When I encode it into an mpg PS container..."
[12:39] <relaxed> lentferj: make sure you're using the latest git versi0on of ffmpeg to rule out a bug that may have already been fixed.
[13:07] <lentferj> relaxed: my ffmpeg is from git as of March, 17th
[13:11] <elkng> can the problem be because ffmpeg is too fresh ?
[13:16] <lentferj> fflogger: I hope this is what you mean: root at mediaserver:/mnt/hdr# ffmpeg -probesize 140M -analyzeduration 140M -i 3013_20130404093700.mpg.old -vf crop=716:564:2:6,yadif -map 0:v -map 0:a,0:v -c:a libvorbis -aq 5 -c:v libx264 -crf 23 -preset faster -threads 10 -tune film -stats -t 00:02:00 asr_change_test.mkv
[13:16] <lentferj> ffmpeg version N-51047-g9cde9f7 Copyright (c) 2000-2013 the FFmpeg developers built on Mar 17 2013 17:04:12 with gcc 4.4.5 (Debian 4.4.5-8)
[13:16] <lentferj> configuration: --enable-libmp3lame --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libx264 --enable-libxvid --enable-libvo-aacenc --enable-gpl --disable-crystalhd --enable-version3 --enable-libfaac --enable-nonfree --enable-libass
[13:16] <lentferj> libavutil 52. 19.101 / 52. 19.101
[13:16] <lentferj> libavcodec 55. 1.100 / 55. 1.100
[13:16] <lentferj> libavformat 55. 0.100 / 55. 0.100
[13:16] <lentferj> libavdevice 55. 0.100 / 55. 0.100
[13:16] <lentferj> libavfilter 3. 47.102 / 3. 47.102
[13:16] <lentferj> libswscale 2. 2.100 / 2. 2.100
[13:16] <lentferj> libswresample 0. 17.102 / 0. 17.102
[13:16] <lentferj> libpostproc 52. 2.100 / 52. 2.100
[13:16] <lentferj> [h264 @ 0x34bf740] non-existing PPS referenced
[13:16] <lentferj> [h264 @ 0x34bf740] non-existing PPS 0 referenced
[13:16] <lentferj> [h264 @ 0x34bf740] decode_slice_header error
[13:17] <lentferj> [h264 @ 0x34bf740] no frame!
[13:17] <lentferj> [h264 @ 0x34bf740] non-existing PPS referenced
[13:17] <lentferj> [h264 @ 0x34bf740] non-existing PPS 0 referenced
[13:17] <lentferj> [h264 @ 0x34bf740] decode_slice_header error
[13:17] <lentferj> [h264 @ 0x34bf740] no frame!
[13:17] <lentferj> [h264 @ 0x34bf740] non-existing PPS referenced
[13:17] <lentferj> [h264 @ 0x34bf740] non-existing PPS 0 referenced
[13:17] <lentferj> [h264 @ 0x34bf740] decode_slice_header error
[13:17] <lentferj> [h264 @ 0x34bf740] no frame!
[13:17] <lentferj> [h264 @ 0x34bf740] non-existing PPS referenced
[13:17] <lentferj> [h264 @ 0x34bf740] non-existing PPS 0 referenced
[13:17] <lentferj> [h264 @ 0x34bf740] decode_slice_header error
[13:17] <lentferj> [h264 @ 0x34bf740] no frame!
[13:17] <lentferj> [h264 @ 0x34bf740] non-existing PPS referenced
[13:17] <lentferj> [h264 @ 0x34bf740] non-existing PPS 0 referenced
[13:17] <lentferj> [h264 @ 0x34bf740] decode_slice_header error
[13:17] <lentferj> shitt!!!
[13:17] <lentferj> sorry!
[13:17] <lentferj> windows / putty pasting horror
[13:17] <lentferj> http://pastie.org/7312797
[13:17] <lentferj> sorry, again
[13:27] <RSDRSDRSD> What is the best method in php to check if a file can be decoded and encoded with ffmpeg?
[13:29] <lentferj> relaxed: he, understod now... flogger is a bot... so here is the link. Sorry again for the paste noise. http://pastie.org/7312797
[13:37] <DeLoreann> Hi, Is it possible to ffmpeg not overwrite files which already exist in the output folder, but continued numbering from the last file?
[13:59] <Bor0> why is it that av_buffersink_get_frame_flags() for some videos it returns frame->pts not divided by 1000, and for some videos it returns divided by 1000. I want to get the current frame
[13:59] <Bor0> get_buffer_ref*, sorry
[14:14] <lentferj> I just updated my ffmpeg to latest git, problem with mkv and asr change remains
[14:42] <relaxed> lentferj: can you put a sample of your source up somewhere?
[14:42] <lentferj> relaxed: sure. it's an iptv stream from german T-Online
[14:43] <lentferj> relaxed: I will cut if the first 2 minutes, the asr change should be around 00:01:03
[14:43] <lentferj> cout out*
[14:48] <lentferj> relaxed: is it ok to create the sample with ffmpeg -i ... -c copy -t 00:02:00 out.mpg ?
[14:50] <relaxed> no, use dd
[14:50] <lentferj> relaxed: ôk
[14:53] <Dodgexander> Hey, anyone know of someone I can email feedback/complaints about the project? Its a sensitive matter that may be of benefit, so kind of important its seen by the right person. Tried email diego but his address on the site isn't valid.
[14:56] <iive> Dodgexander: huh?
[14:57] <Dodgexander> Just have some feedback id like to give to someone, its not something i can put in mailing list or tracker.
[14:57] <iive> Dodgexander: if it is about security, you can open the website, find the tab security and use that email.
[15:02] <Dodgexander> well thats the problem, its not covered by any of the contact addresses.
[15:24] <Dodgexander> no pointers then?
[15:29] <iive> you can at least say what is the topic of the problem...
[15:29] <iive> nobody here can read minds (i think), at least not over internet.
[15:30] <iive> is it with the website, is it with ffmpeg itself...
[15:30] <iive> is it feature you want.
[15:30] <Dodgexander> its regarding someone who works on the project. So not exactly something I can send to a generic address..
[15:34] <iive> this is puzzling. I wonder who is the diego you tried to contact? Diego Biurrun ?
[15:36] <Dodgexander> yep
[15:38] <iive> The project leader is still michaelni , he is here and in #ffmpeg-devel
[15:39] <iive> Diego Biurrun abused his server admin privileges, helped to take over ffmpeg for 3 months and when he failed, went to be one of the masters in the libav fork.
[15:39] <iive> he is definitely the wrong person to contact about any ffmpeg matters.
[15:41] <Dodgexander> oh dear, I didn't know! The website is out of date then?
[15:41] <Dodgexander> Does michael have an email?
[15:42] <iive> what website are you looking at?
[15:44] <Dodgexander> https://ffmpeg.org/consulting.html
[15:44] <Dodgexander> i found his email, thanks!
[15:45] <iive> michaelni at gmx.at
[15:45] <iive> yeh.
[15:46] <ubitux> maybe we should remove the libav guys from the consulting page
[15:47] <iive> yeh. I don't think they would be happy to work on ffmpeg :|
[15:49] <Dodgexander> a bunch of them were involved? seems crazy they would do such a thing to an open source project...
[15:51] <iive> well, they managed to swing a lot of good developers in their favor. but not everybody. and the takeover created a lot of bad blood, instead of just making clean fork.
[16:07] <DeLoreann> Hi, Is it possible to ffmpeg not overwrite files which already exist in the output folder, but continued numbering from the last file?
[16:07] <zap0> write protect the files
[16:08] <relaxed> wouldn't ffmpeg error out on that>
[16:09] <DeLoreann> relaxed: theres no error, ffmpeg just overwrite the existing files
[16:10] <relaxed> I mean if they're write protected
[16:10] <relaxed> anyway, I don't think ffmpeg can do what you want, but it could be scripted.
[16:11] <DeLoreann> is there any way to set the initial file number from whose numbering should begin?
[16:12] <durandal_1707> DeLoreann: it is documented
[16:12] <durandal_1707> see also ffmpeg -h full
[16:13] <relaxed> oh yeah
[16:13] <relaxed> :)
[16:18] <durandal_1707> DeLoreann: if you are lost, search for image2
[16:19] <DeLoreann> i just found the parameter -start_number, i will try this
[16:46] <DeLoreann> is the faq on ffmpeg.org out of date?
[16:46] <DeLoreann> i got: Unrecognized option 'start_number'
[16:47] <ubitux> what's your cmd line?
[16:48] <DeLoreann> ffmpeg -i "rtmp://url" -r 1 -s 640x360 -vframes 15 -f image2 -start_number 1452 -qscale 1 /home/user/tl/OWOXsc/OWOXsc-%05d.jpeg
[16:49] <ubitux> -start_number is an input option
[16:49] <ubitux> move it before the -i
[16:49] <ubitux> oh wait, as output option here
[16:49] <ubitux> mmh
[16:50] <DeLoreann> yeah
[16:50] <DeLoreann> i read somewgere that is in and out option, thats not true?
[16:50] <ubitux> it exists as output option indeed, just a sec
[16:51] <ubitux> it works here
[16:51] <ubitux> ./ffmpeg -f lavfi -i testsrc=d=1 -start_number 42 /tmp/out%05d.jpeg
[16:51] <ubitux> just tried this, and i have various frame starting at 42 in my /tmp dir
[16:54] <DeLoreann> so, my ffmpeg is out of date? ;) version 0.7.13
[16:54] <ubitux> oh wow
[16:54] <ubitux> yeah, it's years old
[16:54] <ubitux> latest stable is 1.2
[16:54] <ubitux> please upgrade
[16:55] <DeLoreann> omg! i forgot that my admin has installed ffmpeg under a diff cmd :D
[16:56] <DeLoreann> *never version of ffmpeg
[17:11] <DeLoreann> ubitux, with 1.0.1 -start_number works great for output! Thanks for your help.
[21:46] <kippi> hey, I am using this command ffmpeg -v verbose -i video.jpg -vf select="gt(scene\,0)" -vsync 2 -an keyframes%03d.png is there away I can get it to write a log that it's changed and not write the image?
[21:51] <saste> kippi, yes
[21:52] <saste> select will write metadata with the scene value on the video frame
[21:52] <saste> you can show such a metadata with ffprobe
[21:52] <saste> even if it is a bit tricky
[21:53] <saste> well right now it is not really possible
[21:53] <kippi> or is there a better way of doing this?
[21:53] <saste> i suppose a way would be to extend showinfo so that it can log the metadata values
[21:54] <kippi> saste, select is doing what i want with picking up motion but really i need to write it to a log
[21:56] <saste> kippi: can you describe what you exactly want to do?
[21:57] <saste> -i video.jpg -vf select="gt(scene\,0)"
[21:57] <saste> does it make sense to measure the "motion" of a still image?
[21:57] <saste> or are you reading from a file which is updated all the time?
[21:58] <kippi> saste, I need to detect if a video is changing, I was creating snapshots and then doing a compare using imgcmp but this seems all over the top, sorry should be video.mpg for example
[21:58] <saste> kippi: ffmpeg -i INPUT -vf "select='gt(scene, 0)',showinfo" -f null -
[21:58] <saste> then you grep the output
[21:58] <saste> otherwise
[22:00] <saste> ffprobe -f lavfi "movie=INPUT, select='gt(scene, 0)'" -show_entries frame_tags
[22:04] <kippi> saste: your a star!
[22:06] <kippi> is one of the variables how much it changed?
[22:07] <rindolf> Hi all.
[22:07] <rindolf> http://imgur.com/DwThMOx - this baby takes 673,900,222 and I have a poor upstream. How can I reduce its size before I upload it to YouTube?
[22:08] <rindolf> http://imgur.com/DwThMOx - this baby takes 673,900,222 bytes and I have a poor upstream. How can I reduce its size before I upload it to YouTube?
[22:25] <LithosLaptop> rindolf: You could try encoding the video with libvpx or libx264
[22:25] <rindolf> LithosLaptop: hi.
[22:25] <LithosLaptop> and use a lower bitrate than the source video
[22:25] <LithosLaptop> hi
[22:25] <rindolf> LithosLaptop: thanks! ffmpeg -in foo.avi foo.flv did the trick.
[22:27] <LithosLaptop> ok, dunno what codecs that would of used
[22:27] <LithosLaptop> and what bitrate
[22:30] <LithosLaptop> ffmpeg -i foo.avi -c:v libx264 -b:v half_the_source_video_bitrate_here -c:a copy foo.mkv
[22:30] <LithosLaptop> that should half the size
[22:31] <LithosLaptop> well nearly
[23:01] <kriegerod> could somebody give advice how to lay grid onto image? i think libavfilter could do it, but i am not aware of such filter. Or is there good open library/utility around for tasks like this?
[23:18] <i_s> if i wanted to overlay a series of images over a video, anyone know how i would "stretch" out those images to cover the whole length of the video?
[23:19] <i_s> i have tried "ffmpeg -i cut.mp4 -vf "movie=face_%d.png [ovl]; [in][ovl] overlay" ov3.mp4", but it doesn't really work
[23:20] <i_s> it animates the images for a while, but then it stays on the last image for a long time
[23:20] <i_s> to the end
[23:21] <saste> i_s: setpts
[23:24] <i_s> saste: looks good. i see a bunch of examples that seem to apply that filter to the input video. do you know how to apply it to the video i'm overlaying?
[23:24] <saste> movie=face_%d.png, setpts [ovl]; ...
[23:25] <saste> you need to get a basic understanding of the filtergraph syntax
[23:25] <i_s> i see. i'll look into that, thanks
[23:34] <rager> guys... I've got a video with a negative width in both SAR and DAR
[23:35] <rager> this causes ffmpeg to hate life if I give it as an input for any operations
[23:35] <rager> it's h264 in a quicktime container
[23:35] <rager> what does this mean, and should I be angry at the person who is trying to hand me these videos?
[23:36] <rager> I'm just... quite puzzled by this and cannot find anything through my googlings
[23:59] <rager> ok
[23:59] <rager> http://hastebin.com/paculahaqu.hs
[23:59] <rager> oh, sorry
[23:59] <rager> forgot the command
[00:00] --- Fri Apr 5 2013
More information about the Ffmpeg-devel-irc
mailing list