[FFmpeg-user] Capturing from DVB-T card

Miroslav Rovis m.rovis at inet.hr
Fri Nov 2 03:07:53 CET 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/11/12 00:56, Carl Eugen Hoyos wrote:
> Miroslav Rovis <m.rovis <at> inet.hr> writes:
> 
>> ffmpeg  -f pulse -i default -f v4l2 -channel 1 -i /dev/video0 -s
>> 768x576   Ffm_`date +%y%m%d_%H%M`.avi
> 
> Complete, uncut console output missing.
> 
> Carl Eugen
> 
> _______________________________________________ ffmpeg-user mailing
> list ffmpeg-user at ffmpeg.org 
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> 

I'm sorry!
Here we go.

 $ ffmpeg  -f pulse -i default -f v4l2 -channel 1 -i /dev/video0
Ffm_`date +C%m%d_%H%M`.avi
ffmpeg version 0.10.5 Copyright (c) 2000-2012 the FFmpeg developers
  built on Sep 20 2012 18:24:05 with gcc 4.6.3
  configuration: --prefix=/usr --libdir=/usr/lib64
- --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared
- --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++
- --ar=x86_64-pc-linux-gnu-ar --optflags='-march=k8 -O2 -pipe'
- --extra-cflags='-march=k8 -O2 -pipe' --extra-cxxflags='-march=k8 -O2
- -pipe' --disable-static --enable-gpl --enable-version3
- --enable-postproc --enable-avfilter --disable-stripping
- --disable-debug --enable-runtime-cpudetect --enable-openssl
- --enable-nonfree --enable-gnutls --enable-libmp3lame
- --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libtheora
- --enable-libvorbis --enable-libx264 --enable-libxvid
- --enable-libaacplus --enable-nonfree --enable-libfaac --enable-nonfree
- --enable-libcdio --enable-libdc1394 --enable-openal
- --disable-indev=v4l --enable-x11grab --enable-libpulse --enable-frei0r
- --enable-libfreetype --enable-libass --enable-pthreads
- --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-libgsm
- --enable-libdirac --enable-libmodplug --enable-librtmp --ena
libavutil      51. 35.100 / 51. 35.100
  libavcodec     53. 61.100 / 53. 61.100
  libavformat    53. 32.100 / 53. 32.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 61.100 /  2. 61.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
shm_open() failed: Permission denied
[pulse @ 0xe3bac2ff8a0] Estimating duration from bitrate, this may be
inaccurate
Input #0, pulse, from 'default':
  Duration: N/A, start: 0.001065, bitrate: N/A
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
[video4linux2,v4l2 @ 0xe3bac309180] Estimating duration from bitrate,
this may be inaccurate
Input #1, video4linux2,v4l2, from '/dev/video0':
  Duration: N/A, start: 1351821629.835768, bitrate: 176947 kb/s
    Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422,
768x576, 176947 kb/s, 25 tbr, 1000k tbn, 25 tbc
Incompatible pixel format 'yuyv422' for codec 'mpeg4', auto-selecting
format 'yuv420p'
[buffer @ 0xe3bac308040] w:768 h:576 pixfmt:yuyv422 tb:1/1000000
sar:0/1 sws_param:
[buffersink @ 0xe3bac2e5dc0] auto-inserting filter 'auto-inserted
scale 0' between the filter 'src' and the filter 'out'
[scale @ 0xe3bac3055e0] w:768 h:576 fmt:yuyv422 -> w:768 h:576
fmt:yuv420p flags:0x4
Output #0, avi, to 'Ffm_C1102_0300.avi':
  Metadata:
    ISFT            : Lavf53.32.100
    Stream #0:0: Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 768x576,
q=2-31, 200 kb/s, 25 tbn, 25 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, 2
channels, s16, 128 kb/s
Stream mapping:
  Stream #1:0 -> #0:0 (rawvideo -> mpeg4)
  Stream #0:0 -> #0:1 (pcm_s16le -> libmp3lame)
Press [q] to stop, [?] for help
frame=   96 fps= 26 q=31.0 Lsize=     424kB time=00:00:03.84 bitrate=
904.6kbits/s
video:346kB audio:62kB global headers:0kB muxing overhead 3.890566%
$

In the meantime, I tried mencoder on and on, no sound.
But it could be udev related ("udev issue" in link following):
http://linuxtv.org/pipermail/linux-dvb/2009-January/031362.html
as I do get with mencoder similar errors...

So I am also emerge'ing my Gentoo GNU Linux box, in hope that it'll
fix it itself...

OTOH, ffmpeg if I get it right, because I am getting much inferior
capture than with the ffmpeg line above... but if that could be fixed...
Thanx!

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://www.enigmail.net/

iEYEARECAAYFAlCTKvgACgkQ5NaGZVDan0pYKQCZAZ+664gtUJ9UcLw1aIc/1bqc
WQQAnj0DB18dcUTi9VKCUGCEDXkqD5MU
=MTzm
-----END PGP SIGNATURE-----


More information about the ffmpeg-user mailing list