[FFmpeg-user] FFmpeg getting stuck and prints Finishing stream 0:0 without any data written to it.

DopeLabs dopelabs at dubstep.fm
Sat Oct 20 12:38:17 EEST 2018


do you have single or dual displays? your command is selecting /dev/video1 which would be a 2nd display.. sources generally start at 0..

can you get a good capture using /dev/video0 ?



> On Oct 19, 2018, at 9:31 57PM, Abhisek Techie <abhisek.study2016 at gmail.com> wrote:
> 
> Hi,
> Any suggestions,on the below issue.
> 
> Regards
> 
> On Thu, 18 Oct 2018, 15:29 Abhisek Techie, <abhisek.study2016 at gmail.com>
> wrote:
> 
>> Hi,
>> 
>> I am using a logitech 310c camera in linux environment to capture video
>> and convert it to a .flv file , by using the below command
>> 
>> ffmpeg -f video4linux2 -s 432*240 -r 5 -pixel_format yuyv422 -i
>> /dev/video1 out3.flv -loglevel debug
>> 
>> But , it gets stuck after printing "*[video4linux2,v4l2 @ 0x5864e400]
>> Setting time per frame to 1/5"* and when I interrupt  with ctrl+c  it
>> prints "*Output file is empty, nothing was encoded". *
>> 
>> Below is the debug log , any suggestions on what's wrong with my approach?
>> 
>> ffmpeg version N-91993-g50d9c85358 Copyright (c) 2000-2018 the FFmpeg
>> developers
>>  built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
>>  configuration: --disable-x86asm
>>  libavutil      56. 19.101 / 56. 19.101
>>  libavcodec     58. 30.100 / 58. 30.100
>>  libavformat    58. 18.101 / 58. 18.101
>>  libavdevice    58.  4.103 / 58.  4.103
>>  libavfilter     7. 32.100 /  7. 32.100
>>  libswscale      5.  2.100 /  5.  2.100
>>  libswresample   3.  2.100 /  3.  2.100
>> Splitting the commandline.
>> Reading option '-f' ... matched as option 'f' (force format) with argument
>> 'video4linux2'.
>> Reading option '-s' ... matched as option 's' (set frame size (WxH or
>> abbreviation)) with argument '432*240'.
>> Reading option '-r' ... matched as option 'r' (set frame rate (Hz value,
>> fraction or abbreviation)) with argument '5'.
>> Reading option '-pixel_format' ... matched as AVOption 'pixel_format' with
>> argument 'yuyv422'.
>> Reading option '-i' ... matched as input url with argument '/dev/video1'.
>> Reading option 'out3.flv' ... matched as output url.
>> Reading option '-loglevel' ... matched as option 'loglevel' (set logging
>> level) with argument 'debug'.
>> Finished splitting the commandline.
>> Parsing a group of options: global .
>> Applying option loglevel (set logging level) with argument debug.
>> Successfully parsed a group of options.
>> Parsing a group of options: input url /dev/video1.
>> Applying option f (force format) with argument video4linux2.
>> Applying option s (set frame size (WxH or abbreviation)) with argument
>> 432*240.
>> Applying option r (set frame rate (Hz value, fraction or abbreviation))
>> with argument 5.
>> Successfully parsed a group of options.
>> Opening an input file: /dev/video1.
>> [video4linux2,v4l2 @ 0x5864e400] fd:3 capabilities:84200001
>> [video4linux2,v4l2 @ 0x5864e400] Current input_channel: 0, input_name:
>> Camera 1, input_std: 0
>> [video4linux2,v4l2 @ 0x5864e400] Setting time per frame to 1/5  * [Place
>> where it is getting stuck ]*
>> [video4linux2,v4l2 @ 0x5864e400] interrupted
>> Input #0, video4linux2,v4l2, from '/dev/video1':
>>  Duration: N/A, bitrate: 8294 kb/s
>>    Stream #0:0, 0, 1/1000000: Video: rawvideo, 1 reference frame (YUY2 /
>> 0x32595559), yuyv422, 432x240 (0x0), 0/1, 8294 kb/s, 5 fps, 5 tbr, 1000k
>> tbn, 1000k tbc
>> Successfully opened the file.
>> Parsing a group of options: output url out3.flv.
>> Successfully parsed a group of options.
>> Opening an output file: out3.flv.
>> [file @ 0x58653a00] Setting default whitelist 'file,crypto'
>> Successfully opened the file.
>> Stream mapping:
>>  Stream #0:0 -> #0:0 (rawvideo (native) -> flv1 (flv))
>> Press [q] to stop, [?] for help
>> Finishing stream 0:0 without any data written to it.
>> detected 1 logical cores
>> [graph 0 input from stream 0:0 @ 0x58654dc0] Setting 'video_size' to value
>> '432x240'
>> [graph 0 input from stream 0:0 @ 0x58654dc0] Setting 'pix_fmt' to value '1'
>> [graph 0 input from stream 0:0 @ 0x58654dc0] Setting 'time_base' to value
>> '1/5'
>> [graph 0 input from stream 0:0 @ 0x58654dc0] Setting 'pixel_aspect' to
>> value '0/1'
>> [graph 0 input from stream 0:0 @ 0x58654dc0] Setting 'sws_param' to value
>> 'flags=2'
>> [graph 0 input from stream 0:0 @ 0x58654dc0] Setting 'frame_rate' to value
>> '5/1'
>> [graph 0 input from stream 0:0 @ 0x58654dc0] w:432 h:240 pixfmt:yuyv422
>> tb:1/5 fr:5/1 sar:0/1 sws_param:flags=2
>> [format @ 0x58655380] Setting 'pix_fmts' to value 'yuv420p'
>> [auto_scaler_0 @ 0x58655cc0] Setting 'flags' to value 'bicubic'
>> [auto_scaler_0 @ 0x58655cc0] w:iw h:ih flags:'bicubic' interl:0
>> [format @ 0x58655380] auto-inserting filter 'auto_scaler_0' between the
>> filter 'Parsed_null_0' and the filter 'format'
>> [AVFilterGraph @ 0x58654a00] query_formats: 4 queried, 2 merged, 1 already
>> done, 0 delayed
>> [auto_scaler_0 @ 0x58655cc0] w:432 h:240 fmt:yuyv422 sar:0/1 -> w:432
>> h:240 fmt:yuv420p sar:0/1 flags:0x4
>> [flv @ 0x58651480] intra_quant_bias = 0 inter_quant_bias = -64
>> Output #0, flv, to 'out3.flv':
>>  Metadata:
>>    encoder         : Lavf58.18.101
>>    Stream #0:0, 0, 1/1000: Video: flv1 (flv), 1 reference frame
>> ([2][0][0][0] / 0x0002), yuv420p, 432x240, 0/1, q=2-31, 200 kb/s, 5 fps, 1k
>> tbn, 5 tbc
>> Metadata:
>>      encoder         : Lavc58.30.100 flv
>>    Side data:
>>      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
>> frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A
>> speed=   0x
>> video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
>> muxing overhead: unknown
>> Input file #0 (/dev/video1):
>>  Input stream #0:0 (video): 0 packets read (0 bytes); 0 frames decoded;
>>  Total: 0 packets (0 bytes) demuxed
>> Output file #0 (out3.flv):
>>  Output stream #0:0 (video): 0 frames encoded; 0 packets muxed (0 bytes);
>>  Total: 0 packets (0 bytes) muxed
>> Output file is empty, nothing was encoded (check -ss / -t / -frames
>> parameters if used)
>> 0 frames successfully decoded, 0 decoding errors
>> [AVIOContext @ 0x58653a80] Statistics: 1 seeks, 1 writeouts
>> Exiting normally, received signal 2.
>> 
>> Regards
>> 
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> 
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-user mailing list