Re: [FFmpeg-user] Error while playing record audio from webcam

2021-01-19 Thread Carl Zwanzig

On 1/19/2021 4:18 AM, Vijay Rakesh Munganda wrote:

How to solve above issue?


You start by posting the complete command output so we can see what what's 
going on.


(and please don't top-post on this list)

z!
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] Error while playing record audio from webcam

2021-01-19 Thread Vijay Rakesh Munganda
Hi,

I just tried to record only audio by running below command. 
ffmpeg -f alsa -channels 1 -i hw:1 -c:a aac -ar 48k -t 0:10 sample.aac 
When play sample.aac file using ffplay it started to play which I have recorded 
then after it continued to play with silent output. How to solve above issue? 

Thanks & Regards,
Vijay Rakesh

> On 19-Jan-2021, at 10:27, Vijay Rakesh Munganda 
>  wrote:
> 
> 
> Hi All, 
> 
> I’m using below command to create video and audio files for real time 
> streaming to the cloud.
> 
> ffmpeg -f alsa -channels 1 -thread_queue_size 1024 -i hw:1 -f video4linux2 -i 
> /dev/video0 -c:a aac -ar 48k -t 0:10 -segment_time 00:00.08 -f stream_segment 
> sample-%003d.aac -c:v h264 -force_key_frames "expr:gte(t,n_forced*0.08)" 
> -pix_fmt yuv420p -s:v 640x480 -t 0:10 -r 25 -g 1 -segment_time 00:00.08 -f 
> stream_segment frame-%003d.h264
> 
> When I use ffplay on video clips it is playing, but when I run audio clips I 
> get different errors for different segmented output as follows, and some 
> clips play for more than 13s when segment given as 80ms. 
> 
> Error:
> Error: sample-000.aac: Invalid data found when processing input 0B f=0/0
> 
> [mpegts @ 0x7f6f3b80] Format mpegts detected only with low score of 2, 
> misdetection possible! 
> 
> [mpegts @ 0x7f6f3b80] Could not detect TS packet size, defaulting to 
> non-FEC/DVHS sample-001.aac: could not find codec parameters
> 
> Did I miss anything in the command? 
> 
> Thanks & Regards,
> Vijay Rakesh
> 
> 
> Thanks & Regards,
> Vijay Rakesh
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] Error while playing record audio from webcam

2021-01-18 Thread Vijay Rakesh Munganda
Hi All, 

I’m using below command to create video and audio files for real time streaming 
to the cloud.

ffmpeg -f alsa -channels 1 -thread_queue_size 1024 -i hw:1 -f video4linux2 -i 
/dev/video0 -c:a aac -ar 48k -t 0:10 -segment_time 00:00.08 -f stream_segment 
sample-%003d.aac -c:v h264 -force_key_frames "expr:gte(t,n_forced*0.08)" 
-pix_fmt yuv420p -s:v 640x480 -t 0:10 -r 25 -g 1 -segment_time 00:00.08 -f 
stream_segment frame-%003d.h264

When I use ffplay on video clips it is playing, but when I run audio clips I 
get different errors for different segmented output as follows, and some clips 
play for more than 13s when segment given as 80ms. 

Error:
Error: sample-000.aac: Invalid data found when processing input 0B f=0/0

[mpegts @ 0x7f6f3b80] Format mpegts detected only with low score of 2, 
misdetection possible! 

[mpegts @ 0x7f6f3b80] Could not detect TS packet size, defaulting to 
non-FEC/DVHS sample-001.aac: could not find codec parameters

Did I miss anything in the command? 

Thanks & Regards,
Vijay Rakesh


Thanks & Regards,
Vijay Rakesh
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".