[FFmpeg-trac] #2882(avdevice:closed): ffmpeg can't save h264 stream from v4l2 webcam into file without recoding

FFmpeg trac at avcodec.org
Mon Sep 2 11:31:32 CEST 2013


#2882: ffmpeg can't save h264 stream from v4l2 webcam into file without recoding
------------------------------------+------------------------------------
             Reporter:  pchel       |                    Owner:
                 Type:  defect      |                   Status:  closed
             Priority:  normal      |                Component:  avdevice
              Version:  git-master  |               Resolution:  fixed
             Keywords:  v4l2 h264   |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by pchel):

 First one: h264
 {{{
 /home/ps/work/ffmpeg/ffmpeg -f alsa -ac 2 -i plughw:CARD=C920,DEV=0
 -acodec aac -vcodec h264 -f v4l2 -i /dev/video0 -q 0 -vcodec copy -y
 -strict -2 -t 00:00:05 out.h264.mp4
 }}}

 Second one: mpeg

 {{{
 /home/ps/work/ffmpeg/ffmpeg -f alsa -ac 2 -i plughw:CARD=C920,DEV=0
 -acodec aac -vcodec h264 -f v4l2 -i /dev/video0 -q 0 -vcodec mpeg4  -y
 -strict -2 -t 00:00:05 out.mpeg.mp4

 }}}

 The outputs in the attachment.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2882#comment:21>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list