Capturin SDI / No audio support

classic Classic list List threaded Threaded
5 messages Options
Jii
Reply | Threaded
Open this post in threaded view
|

Capturin SDI / No audio support

Jii
Hi
I'm succesfully now can capture video from Blackmagic's Duo card. SD- and HD-SDI bouth working great. But it seems that ffmpeg doesn't support embedded PCM audio:
-------------------  SNIP  ----------------------------
 bmdcapture -m 2 -C 0 -A 2 -V 4 -F nut -f pipe:1 | ffmpeg -re -i - -copyts -r 50 -s 640x360 -aspect 16:9 -vcodec libx264  -vprofile main -preset medium -crf 20   -b:v 1100k -maxrate 1300k -bufsize 1500k  -pix_fmt yuv420p  -y  /tmp/test.mp4ffmpeg version git-2012-10-02-c785b6d Copyright (c) 2000-2012 the FFmpeg developers  built on Jul  5 2013 13:28:23 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx  libavutil      51. 73.101 / 51. 73.101  libavcodec     54. 62.100 / 54. 62.100  libavformat    54. 29.105 / 54. 29.105  libavdevice    54.  3.100 / 54.  3.100  libavfilter     3. 19.100 /  3. 19.100  libswscale      2.  1.101 /  2.  1.101  libswresample   0. 16.100 /  0. 16.100  libpostproc    52.  1.100 / 52.  1.100[nut @ 0x227
 3280] Unknown codec tag '0x10445350' for stream number 1[nut @ 0x2273280] Could not find codec parameters for stream 1 (Audio: none (PSD[16] / 0x10445350), 48000 Hz, 2 channels): unknown codecConsider increasing the value for the 'analyzeduration' and 'probesize' options[nut @ 0x2273280] Estimating duration from bitrate, this may be inaccurateGuessed Channel Layout for  Input Stream #0.1 : stereoInput #0, nut, from 'pipe:':  Metadata:    encoder         : Lavf54.20.3  Duration: N/A, start: 0.000000, bitrate: N/A    Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 720x576, 25 fps, 25 tbr, 25 tbn, 25 tbc    Stream #0:1: Audio: none (PSD[16] / 0x10445350), 48000 Hz, stereo[graph 1 input from stream 0:1 @ 0x22eeca0] Invalid sample format '(null)'Error opening filters!
-------------------  SNIP  ----------------------------

So please, every help would be highly appreciate.
Br,Jii

     
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Capturin SDI / No audio support

Moritz Barsnick
(Wow, I actually had to insert manual line breaks to read this.)

On Mon, Jul 08, 2013 at 12:56:05 +0300, juha s. wrote:

> bmdcapture -m 2 -C 0 -A 2 -V 4 -F nut -f pipe:1 | ffmpeg -re -i - -copyts -r 50 -s 640x360 -aspect 16:9 -vcodec libx264  -vprofile main -preset medium -crf 20   -b:v 1100k -maxrate 1300k -bufsize 1500k  -pix_fmt yuv420p  -y  /tmp/test.mp4
> ffmpeg version git-2012-10-02-c785b6d Copyright (c) 2000-2012 the FFmpeg developers

This is quite old. Could you try a recent version, i.e. latest snapshot
or git?

> [nut @ 0x2273280] Unknown codec tag '0x10445350' for stream number 1
> [nut @ 0x2273280] Could not find codec parameters for stream 1 (Audio: none (PSD[16] / 0x10445350), 48000 Hz, 2 channels): unknown codec

I have seen indications on the net that this should be detected as
"pcm_s16le" instead of "none", if I'm not totally mistaken. You might
want to try forcing that. But first, get a newer version of ffmpeg and
try that. :-)

Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: Capturin SDI / No audio support

Carl Eugen Hoyos
In reply to this post by Jii
juha s. <salmjuh <at> hotmail.com> writes:

> it seems that ffmpeg doesn't support embedded PCM audio:
> -------------------  SNIP  ----------------------------
>  bmdcapture -m 2 -C 0 -A 2 -V 4 -F nut

Is the problem reproducible if you save this stream
to a file?
If yes, please provide a sample.

Carl Eugen

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Jii
Reply | Threaded
Open this post in threaded view
|

Re: Capturin SDI / No audio support

Jii
In reply to this post by Moritz Barsnick
Hi Moritz and thanks for the hint.

New version did the trick and thanks  for you help :-)


Br,
jii
Jii
Reply | Threaded
Open this post in threaded view
|

Re: Capturin SDI / No audio support

Jii
Ok, so now I have workin capture.

But somehow every time I starting recording, this decklink's card gives me color bars for few frames.

So is there a way how to tell ffmpeg that skip first 10 frames and after that start record the stream.

Now I use this command:


bmdcapture -m 2 -C 0 -A 2 -V 4 -F nut -f pipe:1 |ffmpeg -re -i - -copyts -r 25 -aspect 16:9 -copyts -vcodec libx264  -vprofile main -preset medium -crf 17  -s 640x360 -b:a 196k -ar 44100 -b:v 1100k -maxrate 1300k -bufsize 1500k  -pix_fmt yuv420p  -y /tmp/testfile.mp4


Thanks for your help advanced.
Ans if you have ideas how to make better quolity I'm pleased to hear any advices.

Br,
Jii