I can't record with FFmpeg

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

Esteban Castellanos

  • Posts: 2
  • Joined: Wed May 18, 2016 10:06 pm

I can't record with FFmpeg

PostThu May 19, 2016 2:18 am

Hello all in this forum :D, I'm excited for participate and give your help.

Well, my problem is that I can't record with ffmpeg, I'm some newbie in this. First I compile ffmpeg with Deck link enabled, and I've installed decklink_sdk of course, I try with the next command:

in console

ffmpeg -f decklink 'DeckLink Mini Recorder@14' -acodec libx264 -vcodec libakf_aac salida.mp4

and the out is:
Code: Select all
[decklink @ 0x1f779c0] Supported formats for 'DeckLink Mini Recorder':
[decklink @ 0x1f779c0]  1       720x486 at 30000/1001 fps (interlaced, lower field first)
[decklink @ 0x1f779c0]  2       720x576 at 25000/1000 fps (interlaced, upper field first)
[decklink @ 0x1f779c0]  3       720x486 at 60000/1001 fps
[decklink @ 0x1f779c0]  4       720x576 at 50000/1000 fps
[decklink @ 0x1f779c0]  5       1920x1080 at 24000/1001 fps
[decklink @ 0x1f779c0]  6       1920x1080 at 24000/1000 fps
[decklink @ 0x1f779c0]  7       1920x1080 at 25000/1000 fps
[decklink @ 0x1f779c0]  8       1920x1080 at 30000/1001 fps
[decklink @ 0x1f779c0]  9       1920x1080 at 30000/1000 fps
[decklink @ 0x1f779c0]  10      1920x1080 at 25000/1000 fps (interlaced, upper field first)
[decklink @ 0x1f779c0]  11      1920x1080 at 30000/1001 fps (interlaced, upper field first)
[decklink @ 0x1f779c0]  12      1920x1080 at 30000/1000 fps (interlaced, upper field first)
[decklink @ 0x1f779c0]  13      1280x720 at 50000/1000 fps
[decklink @ 0x1f779c0]  14      1280x720 at 60000/1001 fps
[decklink @ 0x1f779c0]  15      1280x720 at 60000/1000 fps


I try record at 1080i 59.94 and this appertain at the line 15 or format 1280x720 60000/1001, with the number 14, then of this, I try using this command:

ffmpeg -f decklink 'DeckLink Mini Recorder@14' -acodec copy -vcodec copy out_video.avi

and the issue is the next:

Code: Select all
ffmpeg version N-79598-gdbe1dd5 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --enable-decklink --extra-cflags=-I/usr/include/decklink --extra-ldflags=-ldl --extra-libs=-ldl --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-ladspa --enable-libass --enable-libbluray --enable-libfdk-aac --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-nonfree --enable-shared --enable-version3 --enable-x11grab
  libavutil      55. 22.101 / 55. 22.101
  libavcodec     57. 38.100 / 57. 38.100
  libavformat    57. 34.103 / 57. 34.103
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 44.100 /  6. 44.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Output #0, decklink, to 'DeckLink Mini Recorder@14':
Output file #0 does not contain any stream


Don't record anything, :C, What I'm doing wrong?.

I hope your answers :D.
Offline

Jimmy Christensen

  • Posts: 2
  • Joined: Fri May 20, 2016 9:02 pm

Re: I can't record with FFmpeg

PostFri May 20, 2016 9:13 pm

From the documentation :

The decklink output device provides playback capabilities for Blackmagic DeckLink devices.
Offline

Esteban Castellanos

  • Posts: 2
  • Joined: Wed May 18, 2016 10:06 pm

Re: I can't record with FFmpeg

PostFri May 20, 2016 11:16 pm

Jimmy Christensen wrote:From the documentation :

The decklink output device provides playback capabilities for Blackmagic DeckLink devices.

Thank for answer me, but... How this help me with my problem?
Offline

patrick_felt

  • Posts: 3
  • Joined: Wed May 25, 2016 5:39 am

Re: I can't record with FFmpeg

PostWed May 25, 2016 5:41 am

-acodec is for the Audio codec.
-vcodec is for the Video codec.

libx264 is a video codec
libakf_aac is an audio codec
Offline

Reuben

  • Posts: 85
  • Joined: Wed Dec 12, 2012 3:50 pm

Re: I can't record with FFmpeg

PostWed May 25, 2016 3:37 pm

You've screwed up nearly every single argument supplied to ffmpeg.

If you are trying to record a 1080i@59.94 input source, use the following:

Code: Select all
ffmpeg -f decklink -i 'DeckLink Mini Recorder@11' -pix_fmt yuv420p -c:v libx264 -profile:v high -crf 20 -c:a libfdk_aac -ab 128k -f mp4 salida.mp4

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 27 guests