Re: pinnacle 300i driver crashed after first device access
On Fri, Feb 23, 2018 at 2:37 PM, Devin Heitmueller wrote: > On Fri, Feb 23, 2018 at 2:30 PM, Federico Allegretti > wrote: >> i noticed that my pinnacle 300i could accept full resolution settings: >> v4l2-ctl --set-fmt-video=width=720,height=576 >> >> only the first time the command is fired. >> >> after that, evey time i try to set that resolution with the same >> command, i get instead only the half vertical resolution: >> v4l2-ctl --get-fmt-video >> Format Video Capture: >> Width/Height : 720/288 >> Pixel Format : 'YU12' >> Field : Bottom >> Bytes per Line: 720 >> Size Image: 311040 >> Colorspace: SMPTE 170M >> Transfer Function : Default >> YCbCr/HSV Encoding: Default >> Quantization : Default >> Flags : Also, looks like the field format is set to bottom, which would explain why you're only getting half the lines. You probably need to set the field type to interlaced in your --set-fmt-video arguments (although I don't have the exact syntax right in front of me). Devin -- Devin J. Heitmueller - Kernel Labs http://www.kernellabs.com
Re: pinnacle 300i driver crashed after first device access
On Fri, Feb 23, 2018 at 2:30 PM, Federico Allegretti wrote: > i noticed that my pinnacle 300i could accept full resolution settings: > v4l2-ctl --set-fmt-video=width=720,height=576 > > only the first time the command is fired. > > after that, evey time i try to set that resolution with the same > command, i get instead only the half vertical resolution: > v4l2-ctl --get-fmt-video > Format Video Capture: > Width/Height : 720/288 > Pixel Format : 'YU12' > Field : Bottom > Bytes per Line: 720 > Size Image: 311040 > Colorspace: SMPTE 170M > Transfer Function : Default > YCbCr/HSV Encoding: Default > Quantization : Default > Flags : Did you set the video standard? All sorts of bad things could happen if you set the format to 720x576 but the standard is still set to NTSC. To get the standards supported, you can run: v4l2-ctl --list-standards And then set the standard with "v4l2-ctl -s". Do this before setting the format. Devin -- Devin J. Heitmueller - Kernel Labs http://www.kernellabs.com
pinnacle 300i driver crashed after first device access
i noticed that my pinnacle 300i could accept full resolution settings: v4l2-ctl --set-fmt-video=width=720,height=576 only the first time the command is fired. after that, evey time i try to set that resolution with the same command, i get instead only the half vertical resolution: v4l2-ctl --get-fmt-video Format Video Capture: Width/Height : 720/288 Pixel Format : 'YU12' Field : Bottom Bytes per Line: 720 Size Image: 311040 Colorspace: SMPTE 170M Transfer Function : Default YCbCr/HSV Encoding: Default Quantization : Default Flags : I noticed that behaviour when streaming with ffmpeg: ffmpeg -re -f video4linux2 -i /dev/video0 -f pulse -ar 44100 -strict experimental -acodec aac -ab 56k -vcodec libx264 -vb 452k -profile:v high -level 40 -g 100 -f flv "rtmp://vps222134.ovh.net:8081/publish/first?passsegretapervideostreaming" first time i get audio and video full frame and no problems. second time instead ffmpeg drops a lot of frames and fires warnings: " ... Thread message queue blocking; consider raising the thread_queue_size option (current value: 8) ..." -- Open TV Architecture project: http://sourceforge.net/projects/otva/ Messagenet VOIP: 5338759 YouTube Channel: v1p3r's lab VIMEO HD videos: http://www.vimeo.com/user1912745/videos