[FFmpeg-user] Determining colour matrix coefficients detected and used by ffmpeg
Hi All, In some of the sources I work with the convention of SD=BT.601 and HD=BT.709 isnt always followed. That makes it necessary to confirm that ffmpeg correctly detects and handles input colour space matrix coefficients. Unfortunately I cant find any way to show this information during input parsing, nor in the output produced by ffmpeg. Ill be very grateful for any pointers to help solve this. Some sample encodes below. These are not necessarily from problem inputs, but show that colour matrix coefficient information does not seem readily available unless I am hopefully overlooking something. Note that even color_range is not uniformly available from encodes. ffmpeg 1 ffmpeg started on 2014-09-21 at 13:59:27 Report written to ffmpeg-20140921-135927.log Command line: ffmpeg -i input_file.avi -report test_out.mpg ffmpeg version N-66232-g5e3da25 Copyright (c) 2000-2014 the FFmpeg developers built on Sep 10 2014 22:01:59 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat56. 4.101 / 56. 4.101 libavdevice56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 0.100 / 53. 0.100 Splitting the commandline. Reading option '-i' ... matched as input file with argument 'input_file.avi'. Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'. Reading option 'test_out.mpg' ... matched as output file. Finished splitting the commandline. Parsing a group of options: global . Applying option report (generate a report) with argument 1. Successfully parsed a group of options. Parsing a group of options: input file input_file.avi. Successfully parsed a group of options. Opening an input file: input_file.avi. [avi @ 029e8ce0] Format avi probed with size=2048 and score=100 [avi @ 029e93c0] use odml:1 st:1 removing common factor 4 from timebase [avi @ 029e8ce0] Before avformat_find_stream_info() pos: 10252 bytes read:254608 seeks:6 [avi @ 029e8ce0] parser not found for codec dvvideo, packets or times may be invalid. [avi @ 029e8ce0] parser not found for codec pcm_s16le, packets or times may be invalid. [avi @ 029e8ce0] parser not found for codec pcm_s16le, packets or times may be invalid. [avi @ 029e8ce0] parser not found for codec dvvideo, packets or times may be invalid. [avi @ 029e8ce0] All info found [avi @ 029e8ce0] After avformat_find_stream_info() pos: 250268 bytes read:472108 seeks:6 frames:25 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, avi, from 'input_file.avi': Duration: 00:01:12.72, start: 0.00, bitrate: 30346 kb/s Stream #0:0, 1, 1/25: Video: dvvideo (dvsd / 0x64737664), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 28815 kb/s, 25 fps, 25 tbr, 25 tbn, 25 tbc Stream #0:1, 24, 1/48000: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s Successfully opened the file. Parsing a group of options: output file test_out.mpg. Successfully parsed a group of options. Opening an output file: test_out.mpg. Successfully opened the file. detected 4 logical cores [graph 0 input from stream 0:0 @ 029eccc0] Setting 'video_size' to value '720x576' [graph 0 input from stream 0:0 @ 029eccc0] Setting 'pix_fmt' to value '0' [graph 0 input from stream 0:0 @ 029eccc0] Setting 'time_base' to value '1/25' [graph 0 input from stream 0:0 @ 029eccc0] Setting 'pixel_aspect' to value '16/15' [graph 0 input from stream 0:0 @ 029eccc0] Setting 'sws_param' to value 'flags=2' [graph 0 input from stream 0:0 @ 029eccc0] Setting 'frame_rate' to value '25/1' [graph 0 input from stream 0:0 @ 029eccc0] w:720 h:576 pixfmt:yuv420p tb:1/25 fr:25/1 sar:16/15 sws_param:flags=2 [format @ 03742020] compat: called with args=[yuv420p] [format @ 03742020] Setting 'pix_fmts' to value 'yuv420p' [AVFilterGraph @ 03728fa0] query_formats: 4 queried, 3 merged, 0 already done, 0 delayed [graph 1 input from stream 0:1 @ 0372e040] Setting 'time_base' to value '1/48000' [graph 1 input from stream 0:1 @ 0372e040] Setting
Re: [FFmpeg-user] Transcoding while capturing - incomplete frame error
Keith Johnson keith at xentrik.tv writes: - capture HDV stream from camera - currently working fine with dvgrab creating .m2t file This sounds strange to me: Why don't you capture with FFmpeg? Or at least with a capture software that gives you the original dv stream? (Or do I misundertand?) ffmpeg catches up with the end of the .m2t file which dvgrab is writing, it crashes with an incomplete frame error. Crash reports need backtrace, register dump and disassembly / command line and complete, uncut console output missing. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffmpeg-2.4 creates grey screen, corrupted videos
S Andreason sandreas41 at gmail.com writes: Carl Eugen Hoyos wrote: What does 'upgrading mplayer to 2.4' mean? Oops. Aspie made one typo. Meant 1.1.1 Just to make sure: MPlayer 1.1.1 is completely outdated, please do not use it. http://seahorseCorral.org/videos/tests/20140128_pond-W_rec10990.mov I tested the following command line: $ ffmpeg -i 20140128_pond-W_rec10990.mov -s 640x360 -qscale 2 -acodec copy out.avi and the result plays fine here. Please test current git head, releases are only supported here if you are a distributor yourself. Getting anything by git is impossible on dialup. 10Mb per hour, 4 hour maximum connection. Sounds like one more reason to use git. Thus the act of getting stable releases does still have a purpose. We provide snapshots as well but I don't see how large files are easier to download than small increasing changes. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Transcoding while capturing - incomplete frame error
Keith Johnson keith at xentrik.tv writes: wasn't aware that I could capture (H)DV directly. If that's the case I guess there is probably a solution which involves pipes or tees. No (at least not if I understand you correctly). FFmpeg can read from the device if compiled with --enable-libiec61883 (at least I believe so). You may be searching for the -re option. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Closed Caption(CC) data from .ts file using ffmpeg
Hi Carl, Thanks for the information. Any other solution for linux platform? Looking forward your reply. Regards Guna On Mon, Sep 22, 2014 at 1:03 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Gunasekaran Velu mail2vguna at gmail.com writes: I am using the following ffmpeg command to extract the CC(Closed Caption) data from .ts file. This sounds unlikely since FFmpeg does not (yet) support Closed Captions. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Closed Caption(CC) data from .ts file using ffmpeg
Hi you can use CCExtractor, or help here if you want Closed caption in ffmpeg. -Anshul On 09/22/2014 01:44 PM, Gunasekaran Velu wrote: Hi Carl, Thanks for the information. Any other solution for linux platform? Looking forward your reply. Regards Guna On Mon, Sep 22, 2014 at 1:03 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Gunasekaran Velu mail2vguna at gmail.com writes: I am using the following ffmpeg command to extract the CC(Closed Caption) data from .ts file. This sounds unlikely since FFmpeg does not (yet) support Closed Captions. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Closed Caption(CC) data from .ts file using ffmpeg
Yes . I need help to get Closed caption data from .ts file using ffmpeg? Regards GUna On Mon, Sep 22, 2014 at 2:06 PM, Anshul anshul.ffm...@gmail.com wrote: Hi you can use CCExtractor, or help here if you want Closed caption in ffmpeg. -Anshul On 09/22/2014 01:44 PM, Gunasekaran Velu wrote: Hi Carl, Thanks for the information. Any other solution for linux platform? Looking forward your reply. Regards Guna On Mon, Sep 22, 2014 at 1:03 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Gunasekaran Velu mail2vguna at gmail.com writes: I am using the following ffmpeg command to extract the CC(Closed Caption) data from .ts file. This sounds unlikely since FFmpeg does not (yet) support Closed Captions. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] avformat_open_input from an SDP string
Hi all, I have a question regarding avformat_open_input method, I saw that this method accepts URIs in addition to filename routes, then my question if I could use this function using an SDP string, in order to get the avformatcontext structure properly initialized. I want to initialize the avformatcontext given an SDP string (not an RTSP uri), is avfromat_open_input capable to do that? if not, is there any util i can use to achieve such goal. Thanks in advance for any comment. Regards, David ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Closed Caption(CC) data from .ts file using ffmpeg
Hi How can i help you to getting Closed Caption from .ts video file? Looking forward your reply. Kindly help me. Thanks and Regards Guna On Mon, Sep 22, 2014 at 2:18 PM, Gunasekaran Velu mail2vg...@gmail.com wrote: Yes . I need help to get Closed caption data from .ts file using ffmpeg? Regards GUna On Mon, Sep 22, 2014 at 2:06 PM, Anshul anshul.ffm...@gmail.com wrote: Hi you can use CCExtractor, or help here if you want Closed caption in ffmpeg. -Anshul On 09/22/2014 01:44 PM, Gunasekaran Velu wrote: Hi Carl, Thanks for the information. Any other solution for linux platform? Looking forward your reply. Regards Guna On Mon, Sep 22, 2014 at 1:03 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Gunasekaran Velu mail2vguna at gmail.com writes: I am using the following ffmpeg command to extract the CC(Closed Caption) data from .ts file. This sounds unlikely since FFmpeg does not (yet) support Closed Captions. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Closed Caption(CC) data from .ts file using ffmpeg
On 09/22/2014 04:17 PM, Gunasekaran Velu wrote: Hi How can i help you to getting Closed Caption from .ts video file? Do you need raw data or decoded data? if you need raw data only here are two old patch given by Nicolas George. I have attached those both patch. for decoded data even I am working for samething, you can talk to me personally at skype id: er_anshul or irc #ffmpeg-dev my nick is anshul_mahe. -Anshul [FFmpeg-devel] [PATCH 1_2] lavc: add CEA-708 codec id..eml Description: application/extension-eml [FFmpeg-devel] [PATCH 2_2] lavd_lavfi: allow to extract subcc..eml Description: application/extension-eml ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Closed Caption(CC) data from .ts file using ffmpeg
Hi Thanks for the information. Need it for raw data only. my skype: talk2gunav Regards Guna On Mon, Sep 22, 2014 at 5:06 PM, Anshul anshul.ffm...@gmail.com wrote: On 09/22/2014 04:17 PM, Gunasekaran Velu wrote: Hi How can i help you to getting Closed Caption from .ts video file? Do you need raw data or decoded data? if you need raw data only here are two old patch given by Nicolas George. I have attached those both patch. for decoded data even I am working for samething, you can talk to me personally at skype id: er_anshul or irc #ffmpeg-dev my nick is anshul_mahe. -Anshul ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] How to record audio and video from FaceTime HD Camera in OSX
Hi Roger, Thanks for your response. I tried to use it as input but still I could not get it to work. Please see below: Test#1- In this I used -i 0 and the terminal got frozen after I ran the command. I had to force quit the terminal. However the FaceTime camera light was on when I ran the command but nothing was captured. Command and the output is given below. $ ffmpeg -f avfoundation -i 0 -r 29.97 -y out.mov ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers built on Sep 17 2014 18:11:13 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) configuration: --prefix=/usr/local/ffmpegavpatch --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 ' libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat56. 4.102 / 56. 4.102 libavdevice56. 0.100 / 56. 0.100 libavfilter 5. 1.101 / 5. 1.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 0.100 / 53. 0.100 (Terminal was frozen and no output messages seen in the terminal) Test#2 In this I tried to specify audio and video inputs separately as I do in Windows but I got the error message below. $ ffmpeg -f avfoundation -i video=FaceTime HD Camera:audio=Built-in Microphone -r 29.97 -y out.mov configuration: --prefix=/usr/local/ffmpegavpatch --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 ' libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat56. 4.102 / 56. 4.102 libavdevice56. 0.100 / 56. 0.100 libavfilter 5. 1.101 / 5. 1.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 0.100 / 53. 0.100 [AVFoundation input device @ 0x7fc133c15700] Video device not found video=FaceTime HD Camera:audio=Built-in Microphone: Input/output error I also tried $ffmpeg -f avfoundation -i video=FaceTime HD Camera -i audio=Built-in Microphone -r 29.97 -y out.mov and I got the same error message as above. Warm Regards Jay On Sep 19, 2014, at 9:11 AM, Roger Pack rogerdpa...@gmail.com wrote: On Wed, Sep 17, 2014 at 4:43 PM, Jay Muthialu jmuthialu-at-yahoo@ffmpeg.org wrote: Hi Moritz, Thanks for the information. I finally applied the patches. Although I could not apply through git because the latest ffmpeg version I downloaded did not seem to match with the patches in the email and it failed. So I had to manually sync the patch file to the source file and I complied sucessfully. The patched version works for all basics scenarios but did not fix the underlying issue. It now shows the inbuilt microphone which is an improvement, but the microphone is showing as error. $ ffmpeg -f avfoundation -list_devices true -i Output: libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat56. 4.102 / 56. 4.102 libavdevice56. 0.100 / 56. 0.100 libavfilter 5. 1.101 / 5. 1.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 0.100 / 53. 0.100 [AVFoundation input device @ 0x7ff6c0c14de0] AVFoundation video devices: [AVFoundation input device @ 0x7ff6c0c14de0] [0] FaceTime HD Camera [AVFoundation input device @ 0x7ff6c0c14de0] AVFoundation audio devices: [AVFoundation input device @ 0x7ff6c0c14de0] [0] Built-in Microphone : Input/output error Can you or anyone help me
Re: [FFmpeg-user] How to record audio and video from FaceTime HD Camera in OSX
Could you try with git master [the patches were applied it seems, this weekend]? Also possibly run ffmpeg_g in gdb and see where it is hung? Cheers! On Mon, Sep 22, 2014 at 8:20 AM, Jay Muthialu jmuthialu-at-yahoo@ffmpeg.org wrote: Hi Roger, Thanks for your response. I tried to use it as input but still I could not get it to work. Please see below: Test#1- In this I used -i 0 and the terminal got frozen after I ran the command. I had to force quit the terminal. However the FaceTime camera light was on when I ran the command but nothing was captured. Command and the output is given below. $ ffmpeg -f avfoundation -i 0 -r 29.97 -y out.mov ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers built on Sep 17 2014 18:11:13 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) configuration: --prefix=/usr/local/ffmpegavpatch --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 ' libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat56. 4.102 / 56. 4.102 libavdevice56. 0.100 / 56. 0.100 libavfilter 5. 1.101 / 5. 1.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 0.100 / 53. 0.100 (Terminal was frozen and no output messages seen in the terminal) Test#2 In this I tried to specify audio and video inputs separately as I do in Windows but I got the error message below. $ ffmpeg -f avfoundation -i video=FaceTime HD Camera:audio=Built-in Microphone -r 29.97 -y out.mov configuration: --prefix=/usr/local/ffmpegavpatch --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 ' libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat56. 4.102 / 56. 4.102 libavdevice56. 0.100 / 56. 0.100 libavfilter 5. 1.101 / 5. 1.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 0.100 / 53. 0.100 [AVFoundation input device @ 0x7fc133c15700] Video device not found video=FaceTime HD Camera:audio=Built-in Microphone: Input/output error I also tried $ffmpeg -f avfoundation -i video=FaceTime HD Camera -i audio=Built-in Microphone -r 29.97 -y out.mov and I got the same error message as above. Warm Regards Jay On Sep 19, 2014, at 9:11 AM, Roger Pack rogerdpa...@gmail.com wrote: On Wed, Sep 17, 2014 at 4:43 PM, Jay Muthialu jmuthialu-at-yahoo@ffmpeg.org wrote: Hi Moritz, Thanks for the information. I finally applied the patches. Although I could not apply through git because the latest ffmpeg version I downloaded did not seem to match with the patches in the email and it failed. So I had to manually sync the patch file to the source file and I complied sucessfully. The patched version works for all basics scenarios but did not fix the underlying issue. It now shows the inbuilt microphone which is an improvement, but the microphone is showing as error. $ ffmpeg -f avfoundation -list_devices true -i Output: libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat56. 4.102 / 56. 4.102 libavdevice56. 0.100 / 56. 0.100 libavfilter 5. 1.101 / 5. 1.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 0.100 / 53. 0.100 [AVFoundation input device @
Re: [FFmpeg-user] How to record audio and video from FaceTime HD Camera in OSX
Hi Roger, I will try the git master and update the thread. I also think there is something wrong in my command in OSX. When I run the below, it seems to recognize video device name as FaceTime HD Camera:audio=Built-in Microphone which is not correct and hence it could not find the video device. What is the command I need to use to specifically identify audio and video streams. In windows it is very clear and it works good with this command ( ffmpeg –f dshow –i video=”USB2.0 Camera”:audio=”Microphone (Realtek High Definition Audio)” -pix_fmt yuv420p out.mp4). How to do the same in OSX? Command I used in OSX $ ffmpeg -f avfoundation -i video=FaceTime HD Camera:audio=Built-in Microphone -r 29.97 -y out.mov Output [AVFoundation input device @ 0x7fc133c15700] Video device not found video=FaceTime HD Camera:audio=Built-in Microphone: Input/output error Thanks Jay On Sep 22, 2014, at 10:30 AM, Roger Pack rogerdpa...@gmail.com wrote: Could you try with git master [the patches were applied it seems, this weekend]? Also possibly run ffmpeg_g in gdb and see where it is hung? Cheers! On Mon, Sep 22, 2014 at 8:20 AM, Jay Muthialu jmuthialu-at-yahoo@ffmpeg.org wrote: Hi Roger, Thanks for your response. I tried to use it as input but still I could not get it to work. Please see below: Test#1- In this I used -i 0 and the terminal got frozen after I ran the command. I had to force quit the terminal. However the FaceTime camera light was on when I ran the command but nothing was captured. Command and the output is given below. $ ffmpeg -f avfoundation -i 0 -r 29.97 -y out.mov ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers built on Sep 17 2014 18:11:13 with Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) configuration: --prefix=/usr/local/ffmpegavpatch --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 ' libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat56. 4.102 / 56. 4.102 libavdevice56. 0.100 / 56. 0.100 libavfilter 5. 1.101 / 5. 1.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 0.100 / 53. 0.100 (Terminal was frozen and no output messages seen in the terminal) Test#2 In this I tried to specify audio and video inputs separately as I do in Windows but I got the error message below. $ ffmpeg -f avfoundation -i video=FaceTime HD Camera:audio=Built-in Microphone -r 29.97 -y out.mov configuration: --prefix=/usr/local/ffmpegavpatch --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --enable-vda --cc=clang --host-cflags= --host-ldflags= --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libxvid --enable-libfreetype --enable-libtheora --enable-libvorbis --enable-libvpx --enable-librtmp --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-aacenc --enable-libass --enable-ffplay --enable-libspeex --enable-libschroedinger --enable-libfdk-aac --enable-libopus --enable-frei0r --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags='-I/usr/local/Cellar/openjpeg/1.5.1_1/include/openjpeg-1.5 ' libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat56. 4.102 / 56. 4.102 libavdevice56. 0.100 / 56. 0.100 libavfilter 5. 1.101 / 5. 1.101 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 0.100 / 53. 0.100 [AVFoundation input device @ 0x7fc133c15700] Video device not found video=FaceTime HD Camera:audio=Built-in Microphone: Input/output error I also tried $ffmpeg -f avfoundation -i video=FaceTime HD Camera -i audio=Built-in Microphone -r 29.97 -y out.mov and I got the same error message as above. Warm Regards Jay On Sep 19, 2014, at 9:11 AM, Roger Pack rogerdpa...@gmail.com wrote: On Wed, Sep 17, 2014 at 4:43 PM, Jay Muthialu jmuthialu-at-yahoo@ffmpeg.org wrote: Hi Moritz, Thanks for the information. I
[FFmpeg-user] Can work out why this does what it does
I am trying to do a little overlay test but cant work out why one works and one fails, the input file i use is one of my SD stream captures from BBC News, so a generic SD video will suffice The 2 command lines Working ffmpeg -i any input video file -vcodec libx264 -preset ultrafast -b 3000k -acodec libfaac -async 1 -r 25 -filter_complex 'color=s=640x360:c=#80808080 [o1];[0:v] scale=640x360,drawbox=100:100:100:100:color=green [o0];[o0][o1] overlay' -y -f mpegts a.ts This give the desired result or an opaque screen overlayed over video Non working one ffmpeg -i any input video file -vcodec libx264 -preset ultrafast -b 3000k -acodec libfaac -async 1 -r 25 -filter_complex 'color=s=640x360:c=#80808080,drawbox=100:100:100:100:color=red [o1];[0:v] scale=640x360,drawbox=100:100:100:100:color=green [o0];[o0][o1] overlay' -y -f mpegts a.ts On this i get the color screen with no transparency and the red box Any ideas why adding a drawbox will make the color layer lose its transparency joolz ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Extract DTS core from DTS-HD MA track
19.09.2014, 21:28, No Spam Please kirjoitti: All, I searched the mailing list archive and the last mention of extracting DTS core was around mid 2013. It was stated that it was a feature being worked on. Does the current version of ffmpeg support extracting the DTS core from a DTS-HD MA stream? If so, how does one invoke it using the command line? If not, are there other Linux based tools that would do the job? While splitting core is not directly supported (we need a new bitstream filter), you can still achieve it with a trick, by passing the stream through the S/PDIF IEC 61937 muxer and then demuxer, with HD disabled, e.g.: ffmpeg -i DTS-HD_MA.dts -f spdif -dtshd_rate 0 -acodec copy - | \ ffmpeg -i - -acodec copy DTS-Core.dts -- Anssi Hannula ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Extract DTS core from DTS-HD MA track
While splitting core is not directly supported (we need a new bitstream filter), you can still achieve it with a trick, by passing the stream through the S/PDIF IEC 61937 muxer and then demuxer, with HD disabled, e.g.: ffmpeg -i DTS-HD_MA.dts -f spdif -dtshd_rate 0 -acodec copy - | \ ffmpeg -i - -acodec copy DTS-Core.dts Thank you so much Anssi! Saves me for having to use tsMuxeR. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] configure error
when I make the configure with --enable-libx264,it report error,how can I do? thanks. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] configure error
Am 22.09.2014 um 09:58 schrieb liyon...@kugou.net: when I make the configure with --enable-libx264,it report error, how can I do? thanks my crystal ball says just install x264-devel packages http://www.catb.org/esr/faqs/smart-questions.html#beprecise signature.asc Description: OpenPGP digital signature ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] please unsubscribe mar...@sonicpool.com
can somebody unsubscribe that fool? use X-Mailer: Apple Mail (2.1283) as vacation responder and subscribe to mailing-lists needs no further discussion signature.asc Description: OpenPGP digital signature ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffmpeg read from UDP/Port
Hi Bill, I might be tempted to set both video and audio codec to copy, and save in a .TS file without -f at all. I did a look search on google about .ts files. My understanding is that, I can use videosnarf to convert a packet trace to .TS file. Is that the way you have in mind as well? Thank you, AL On Fri, Sep 19, 2014 at 12:19 PM, Bill Davidsen david...@tmr.com wrote: Alex Lin wrote: Hi all, I am using Windows 7 64 bit, and I downloaded the 64 bit version of ffmpeg: ffmpeg-20140916-git-b76d613-win64-static.7z I have spent the entire day experimenting with ffmpeg today but I haven't quite figure out if ffmpeg is the right solution to my problem yet, so I would like to get some opinions. I am receiving H264 encoded packets through RTP with sample rate of 90,000, and I need to record these packets. The file format doesn't really matter at this point. Currently, I have a server sending the H264 packets to port 50002 of my machine (192.168.1.200), so I run the following ffmpeg command on my machine: ffmpeg -i udp://192.168.1.200:50002 -f mp4 hello.mp4 I might be tempted to set both video and audio codec to copy, and save in a .TS file without -f at all. If that works you can capture the information and then play with it from the file. I am a Linux user, so you may need guidance for Windows issues from an expert, but if you can capture the data you eliminate some possible problems by not reformatting the data at capture. Then the following shows ffmpeg version N-66289-gb76d613 Copyright (c) 2000-2014 the FFmpeg developers built on Sep 15 2014 22:11:04 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable- libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc -- enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 54. 7.100 / 54. 7.100 libavcodec 56. 1.100 / 56. 1.100 libavformat56. 4.101 / 56. 4.101 libavdevice56. 0.100 / 56. 0.100 libavfilter 5. 1.100 / 5. 1.100 libswscale 3. 0.100 / 3. 0.100 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 0.100 / 53. 0.100 The server starts sending video packets, and nothing happens on the command prompt with the ffmpeg command. The server stops sending video packets, and nothing happens still (I waited for at least 5 minutes), so I pressed Ctrl+C, then I see this udp://192.168.1.200:50002: Invalid data found when processing input Received signal 2: terminating. am I using ffmpeg correctly? and are the H264 packets I am receiving not supported? I have looked around and did not see any debug log generated by ffmpeg, so I don't really know where else to look. If it is necessary, I can provide a packet capture with the H264 packets. -- bill davidsen david...@tmr.com CTO TMR Associates, Inc Unsigned numbers may not be negative. However, unsigned numbers may be less than zero for suffiently large values of zero. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user