Thanks for the reply

I tried as shown below

ffmpeg -i rtsp://192.168.0.160:554/stream -f matroska -async 1 -vsync 1 -vcodec 
copy -acodec copy /mnt/sd2/sync1.mkv

But still the same issue.
I even tried flush_packets but no use,

ffmpeg -i rtsp://192.168.0.160:554/stream -f matroska  -flush_packets 1 -vcodec 
copy -acodec copy /mnt/sd2/sync1.mkv


________________________________
From: ffmpeg-user <[email protected]> on behalf of Carl Eugen 
Hoyos <[email protected]>
Sent: Thursday, June 21, 2018 6:10:36 PM
To: FFmpeg user questions
Subject: Re: [FFmpeg-user] FFmpeg save livestream issue

2018-06-21 14:37 GMT+02:00, ashas <[email protected]>:

> I am running FFMPEG on ARM based board (booting from SD card).
> I have cross compiled ffmpeg source and the binaries are place in
> SD card.
>
> I wanted to save the RTSP live stream to a video file and below is
> the command used on ARM target
>
> *ffmpeg -i rtsp://192.168.0.160:554/stream -f matroska
> -vcodec copy -acodec copy /mnt/sd2/sample2.mkv*

Complete, uncut console output missing.

> This command generates the video file and I am able to play it.
> The issue I am facing is the time duration of output file. For
> example ,If I run ffmpeg for 50 seconds and quit safely (pressed
> 'q' to stop) the generated *.mkv file contains only ~20 sec video.
>
> Another observation is ,terminate ffmpeg and unmount the sd
> card where output file is stored  then the complete 50 sec data
> is available.
>
> My understanding is I need to flush the incoming packets
> immediately to output file and I don't want to umount the sd
> card . How to do it ? Kindly help me to resolve this issue.

Did you try "sync"?

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[email protected]
https://apac01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fffmpeg.org%2Fmailman%2Flistinfo%2Fffmpeg-user&data=02%7C01%7C%7C4fbc1bdbe6d64da297f208d5d7743788%7C8fe7d9d379814eda90473628c8399337%7C0%7C1%7C636651816535741517&sdata=U2C%2B6B75bWC7UbgP2hL1%2FjJzjaad9Tj3POCgYsiD7L8%3D&reserved=0

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".
############################################################################################
 The information transmitted is intended for the person or entity to which it 
is addressed and may contain confidential and/or privileged material. Any 
review, retransmission, dissemination, copying or other use of, or taking any 
action in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited. If you have received this in error, please 
contact the sender and delete the material from your system. Accord Software & 
Systems Pvt. Ltd. (ACCORD) is not responsible for any changes made to the 
material other than those made by ACCORD or for the effect of the changes on 
the meaning of the material. 
############################################################################################
_______________________________________________
ffmpeg-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to