[FFmpeg-user] ffmpeg CL translation from Linux to Windows

MrNice wxcvbn2006 at iol.ie
Sun Nov 8 19:25:10 CET 2015


Hi,

I need to compare ffmpeg behaviour between Linux and Windows.
I installed Virtualbox on my Fedora host and Win 8.1 as guest.
Now I need to translate the Linux CL
./ffmpeg -debug 1 -xerror -f pulse -ar 44100 -ac 2 -channel_layout
stereo -thread_queue_size 512 -i
alsa_input.pci-0000_00_14.2.analog-stereo -f v4l2 -ts mono2abs -channel
1 -video_size 720x576 -pix_fmt yuyv422 -thread_queue_size 512 -i
/dev/video0 -c:v libx264 -vf setfield=tff -preset slow -qp 0 -x264opts
tff=1 -aspect 4:3 -pix_fmt yuv422p -c:a pcm_s16le -channel_layout stereo
/Store3/Test/t_`date +%Y%m%d_%H%M`.mkv -aspect 4:3 -f sdl "Dazzle output".

So far I have the following CL and output but process stop (see
********* below) and I have to enter Ctrl-c to carry on

Could you help me?
Many thanks

>ffmpeg -y -debug 1 -f dshow -video_device_number 0
-crossbar_video_input_pin_number 3 -video_size 720x576 -pix_fmt yuyv422
-i video="Dazzle
 DVC100 Video" -c:v libx264 -vf setfield=tff -preset slow -qp 0
-x264opts tff=1 -aspect 4:3 -pix_fmt yuv422p C:\Users\Test\Documents\test\ou
t.mp4

ffmpeg version N-76479-gc878082 Copyright (c) 2000-2015 the FFmpeg
developers

  built with gcc 5.2.0 (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-libdcadec --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 --ena

ble-libtwolame --enable-libvidstab --enable-libvo-aacenc
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx
--enable-libwavpack --en

able-libwebp --enable-libx264 --enable-libx265 --enable-libxavs
--enable-libxvid --enable-lzma --enable-decklink --enable-zlib

  libavutil      55.  5.100 / 55.  5.100

  libavcodec     57. 14.100 / 57. 14.100

  libavformat    57. 14.100 / 57. 14.100

  libavdevice    57.  0.100 / 57.  0.100

  libavfilter     6. 14.101 /  6. 14.101

  libswscale      4.  0.100 /  4.  0.100

  libswresample   2.  0.100 /  2.  0.100

  libpostproc    54.  0.100 / 54.  0.100

 matched as AVOption 'debug' with argument '1'.

Reading option '-f' ... matched as option 'f' (force format) with
argument 'dshow'.

Reading option '-video_device_number' ... matched as AVOption
'video_device_number' with argument '0'.

Reading option '-crossbar_video_input_pin_number' ... matched as
AVOption 'crossbar_video_input_pin_number' with argument '3'.

Reading option '-video_size' ... matched as AVOption 'video_size' with
argument '720x576'.

Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel
format) with argument 'yuyv422'.

Reading option '-i' ... matched as input file with argument
'video=Dazzle DVC100 Video'.

Reading option '-c:v' ... matched as option 'c' (codec name) with
argument 'libx264'.

Reading option '-vf' ... matched as option 'vf' (set video filters) with
argument 'setfield=tff'.

Reading option '-preset' ... matched as AVOption 'preset' with argument
'slow'.

Reading option '-qp' ... matched as AVOption 'qp' with argument '0'.

Reading option '-x264opts' ... matched as AVOption 'x264opts' with
argument 'tff=1'.

Reading option '-aspect' ... matched as option 'aspect' (set aspect
ratio (4:3, 16:9 or 1.3333, 1.7777)) with argument '4:3'.

Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel
format) with argument 'yuv422p'.

Reading option 'C:\Users\Test\Documents\test\out.mp4' ... matched as
output file.

Finished splitting the commandline.

Parsing a group of options: global .

Applying option y (overwrite output files) with argument 1.

Successfully parsed a group of options.

Parsing a group of options: input file video=Dazzle DVC100 Video.

Applying option f (force format) with argument dshow.

Applying option pix_fmt (set pixel format) with argument yuyv422.

Successfully parsed a group of options.

Opening an input file: video=Dazzle DVC100 Video.

[dshow @ 0000008e6b52b840] Selecting pin Capture on video

[dshow @ 0000008e6b52b840] Crossbar Switching Information for Dazzle
DVC100 Video:

[dshow @ 0000008e6b52b840] Routing video input from pin 3

[dshow @ 0000008e6b52b840]   Crossbar Output pin 0: "Video Decoder"
related output pin: 1 current input pin: 3 compatible input pins: 2 3

[dshow @ 0000008e6b52b840]   Crossbar Output pin 1: "Audio Decoder"
related output pin: 0 current input pin: -1 compatible input pins: 5

[dshow @ 0000008e6b52b840]   Crossbar Input pin 0 - "Video AUX" related
input pin: 6

[dshow @ 0000008e6b52b840]   Crossbar Input pin 1 - "Video Tuner"
related input pin: 4

[dshow @ 0000008e6b52b840]   Crossbar Input pin 2 - "Video Composite"
related input pin: 5

[dshow @ 0000008e6b52b840]   Crossbar Input pin 3 - "S-Video" related
input pin: 5

[dshow @ 0000008e6b52b840]   Crossbar Input pin 4 - "Audio Tuner"
related input pin: 1

[dshow @ 0000008e6b52b840]   Crossbar Input pin 5 - "Audio Line" related
input pin: 2

[dshow @ 0000008e6b52b840]   Crossbar Input pin 6 - "Audio Microphone"
related input pin: 0



***********************************************************
Here I have to enter Ctrl-c to carry on. Nothing else can be enter
***********************************************************

Received windows signal 0

[dshow @ 0000008e6b52b840] interrupted

Input #0, dshow, from 'video=Dazzle DVC100 Video':

  Duration: N/A, bitrate: N/A

    Stream #0:0, 0, 1/10000000: Video: rawvideo, 1 reference frame (YUY2
/ 0x32595559), yuyv422, 720x576 (0x0), 1/25, 25 tbr, 10000k tbn, 25

 tbc

Successfully opened the file.

Parsing a group of options: output file
C:\Users\Test\Documents\test\out.mp4.

Applying option c:v (codec name) with argument libx264.

Applying option vf (set video filters) with argument setfield=tff.

Applying option aspect (set aspect ratio (4:3, 16:9 or 1.3333, 1.7777))
with argument 4:3.

Applying option pix_fmt (set pixel format) with argument yuv422p.

Successfully parsed a group of options.

Opening an output file: C:\Users\Test\Documents\test\out.mp4.

Successfully opened the file.

detected 1 logical cores

[Parsed_setfield_0 @ 0000008e6b52b6c0] Setting 'mode' to value 'tff'

[graph 0 input from stream 0:0 @ 0000008e6b52a840] Setting 'video_size'
to value '720x576'

[graph 0 input from stream 0:0 @ 0000008e6b52a840] Setting 'pix_fmt' to
value '1'

[graph 0 input from stream 0:0 @ 0000008e6b52a840] Setting 'time_base'
to value '1/10000000'

[graph 0 input from stream 0:0 @ 0000008e6b52a840] Setting
'pixel_aspect' to value '0/1'

[graph 0 input from stream 0:0 @ 0000008e6b52a840] Setting 'sws_param'
to value 'flags=2'

[graph 0 input from stream 0:0 @ 0000008e6b52a840] Setting 'frame_rate'
to value '10000000/400000'

[graph 0 input from stream 0:0 @ 0000008e6b52a840] w:720 h:576
pixfmt:yuyv422 tb:1/10000000 fr:10000000/400000 sar:0/1 sws_param:flags=2

[format @ 0000008e6b546ac0] compat: called with args=[yuv422p]

[format @ 0000008e6b546ac0] Setting 'pix_fmts' to value 'yuv422p'

[auto-inserted scaler 0 @ 0000008e6b5482e0] Setting 'flags' to value
'bicubic'

[auto-inserted scaler 0 @ 0000008e6b5482e0] w:iw h:ih flags:'bicubic'
interl:0

[format @ 0000008e6b546ac0] auto-inserting filter 'auto-inserted scaler
0' between the filter 'Parsed_setfield_0' and the filter 'format'

[AVFilterGraph @ 0000008e6b53b020] query_formats: 4 queried, 2 merged, 1
already done, 0 delayed

[auto-inserted scaler 0 @ 0000008e6b5482e0] w:720 h:576 fmt:yuyv422
sar:0/1 -> w:720 h:576 fmt:yuv422p sar:0/1 flags:0x4

[libx264 @ 0000008e6b53cd60] interlace + weightp is not implemented

[libx264 @ 0000008e6b53cd60] using SAR=16/15

[libx264 @ 0000008e6b53cd60] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX LZCNT

[libx264 @ 0000008e6b53cd60] profile High 4:4:4 Predictive, level 3.0,
4:2:2 8-bit

[libx264 @ 0000008e6b53cd60] 264 - core 148 r2638 7599210 - H.264/MPEG-4
AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html

- options: cabac=1 ref=5 deblock=1:0:0 analyse=0x1:0x111 me=umh subme=8
psy=0 mixed_ref=1 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 d

eadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=1
lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=tff
bluray_compat=0

constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25
scenecut=40 intra_refresh=0 rc=cqp mbtree=0 qp=0

Output #0, mp4, to 'C:\Users\Test\Documents\test\out.mp4':

  Metadata:

    encoder         : Lavf57.14.100

    Stream #0:0, 0, 1/12800: Video: h264 (libx264), -1 reference frame
([33][0][0][0] / 0x0021), yuv422p, 720x576 [SAR 16:15 DAR 4:3], 1/25,

 q=-1--1, 25 fps, 12800 tbn, 25 tbc

    Metadata:

      encoder         : Lavc57.14.100 libx264

Stream mapping:

  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))

Could not write header for output file #0 (incorrect codec parameters
?): Immediate exit requested

[AVIOContext @ 0000008e6b545860] Statistics: 0 seeks, 1 writeouts

Exiting normally, received signal 2.




More information about the ffmpeg-user mailing list