On 02/08/15 18:12, Carl Eugen Hoyos wrote:
MrNice wxcvbn2006 at iol.ie writes:
I had to add -ts to sync audio and video.
Are they in sync?
(This is the most important question.)
I tried with -ts abs and -ts mono2abs. I have
read the documentation but a bit hard to understand.
Both are working but what is the difference, which
one do you advice?
I cannot answer, sorry.
Input #0, pulse, from 'alsa_input.pci-_00_14.2.analog-stereo':
Duration: N/A, start: 1438446921.636832, bitrate: 1411 kb/s
Input #1, video4linux2,v4l2, from '/dev/video0':
Duration: N/A, start: 1438446922.767573, bitrate: 165888 kb/s
This looks ok to me.
When looking at the output, do you think that
frames are dropped?
(You cut the console output, so I cannot know.)
Carl Eugen
Thanks Carl,
Yes audio and video are sync, this is OK.
I can answer 1 of my questions:
Cliping frame in rate conversion by
doesn't mean the frame is dropped.
I can see that at the end of the output
See bellow
My question is what does this sentence mean?
As the text is green, I'd say this is not very important and should not
remove quality.
./ffmpeg -debug 1 -f pulse -ar 44100 -ac 2 -channel_layout stereo
-thread_queue_size 512 -i alsa_input.pci-_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 ffv1 -level 3 -pix_fmt
yuv422p -c:a pcm_s16le /Store3/Test/t_`date +%Y%m%d_%H%M`.mkv
ffmpeg version N-73832-g736a386 Copyright (c) 2000-2015 the FFmpeg
developers
built with gcc 5.1.1 (GCC) 20150618 (Red Hat 5.1.1-4)
configuration: --enable-libpulse --enable-gpl --enable-libx264
libavutil 54. 28.100 / 54. 28.100
libavcodec 56. 49.101 / 56. 49.101
libavformat56. 40.101 / 56. 40.101
libavdevice56. 4.100 / 56. 4.100
libavfilter 5. 25.100 / 5. 25.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc53. 3.100 / 53. 3.100
matched as AVOption 'debug' with argument '1'.
Reading option '-f' ... matched as option 'f' (force format) with
argument 'pulse'.
Reading option '-ar' ... matched as option 'ar' (set audio sampling rate
(in Hz)) with argument '44100'.
Reading option '-ac' ... matched as option 'ac' (set number of audio
channels) with argument '2'.
Reading option '-channel_layout' ... matched as option 'channel_layout'
(set channel layout) with argument 'stereo'.
Reading option '-thread_queue_size' ... matched as option
'thread_queue_size' (set the maximum number of queued packets from the
demuxer) with argument '512'.
Reading option '-i' ... matched as input file with argument
'alsa_input.pci-_00_14.2.analog-stereo'.
Reading option '-f' ... matched as option 'f' (force format) with
argument 'v4l2'.
Reading option '-ts' ... matched as AVOption 'ts' with argument 'mono2abs'.
Reading option '-channel' ... matched as AVOption 'channel' with
argument '1'.
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 '-thread_queue_size' ... matched as option
'thread_queue_size' (set the maximum number of queued packets from the
demuxer) with argument '512'.
Reading option '-i' ... matched as input file with argument '/dev/video0'.
Reading option '-c:v' ... matched as option 'c' (codec name) with
argument 'ffv1'.
Reading option '-level' ... matched as AVOption 'level' with argument '3'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel
format) with argument 'yuv422p'.
Reading option '-c:a' ... matched as option 'c' (codec name) with
argument 'pcm_s16le'.
Reading option '/Store3/Test/t_20150802_0950.mkv' ... matched as output
file.
Finished splitting the commandline.
Parsing a group of options: global .
Successfully parsed a group of options.
Parsing a group of options: input file
alsa_input.pci-_00_14.2.analog-stereo.
Applying option f (force format) with argument pulse.
Applying option ar (set audio sampling rate (in Hz)) with argument 44100.
Applying option ac (set number of audio channels) with argument 2.
Applying option channel_layout (set channel layout) with argument stereo.
Applying option thread_queue_size (set the maximum number of queued
packets from the demuxer) with argument 512.
Successfully parsed a group of options.
Opening an input file: alsa_input.pci-_00_14.2.analog-stereo.
[pulse @ 0x1db7dc0] All info found
Input #0, pulse, from 'alsa_input.pci-_00_14.2.analog-stereo':
Duration: N/A, start: 1438505432.112968, bitrate: 1411 kb/s
Stream #0:0, 1, 1/100: Audio: pcm_s16le, 44100 Hz, stereo, s16,
1411 kb/s
Successfully opened the file.
Parsing a group of options: input file /dev/video0.
Applying option f (force format) with argument v4l2.
Applying option pix_fmt (set pixel format) with argument yuyv422.
Applying option thread_queue_size (set the maximum