RTSP via ffmpegprores 444 output using ffmpegffmpeg not foundHow to use a wildcard in FFMPEG?Change of voice via ffmpeg or other applicationHow to set default subtitle with ffmpegffmpeg invalid data found when processing inputffmpeg connection to tcp://localhost failedffmpeg mosaic from wowza streamsffmpeg pipe webcam to output h264ffmpeg: Specifying audio stream as filter input

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

Why Is Death Allowed In the Matrix?

How did the USSR manage to innovate in an environment characterized by government censorship and high bureaucracy?

How to write a macro that is braces sensitive?

Languages that we cannot (dis)prove to be Context-Free

Font hinting is lost in Chrome-like browsers (for some languages )

What do you call a Matrix-like slowdown and camera movement effect?

A newer friend of my brother's gave him a load of baseball cards that are supposedly extremely valuable. Is this a scam?

In Japanese, what’s the difference between “Tonari ni” (となりに) and “Tsugi” (つぎ)? When would you use one over the other?

How to format long polynomial?

How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?

Why, historically, did Gödel think CH was false?

What defenses are there against being summoned by the Gate spell?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

What typically incentivizes a professor to change jobs to a lower ranking university?

An academic/student plagiarism

Theorems that impeded progress

Has the BBC provided arguments for saying Brexit being cancelled is unlikely?

"to be prejudice towards/against someone" vs "to be prejudiced against/towards someone"

Prove that NP is closed under karp reduction?

Is it unprofessional to ask if a job posting on GlassDoor is real?

Can divisibility rules for digits be generalized to sum of digits

Eigenvalues of 2 symmetric 4x4 matrices: why is one negative of the other?

Dragon forelimb placement



RTSP via ffmpeg


prores 444 output using ffmpegffmpeg not foundHow to use a wildcard in FFMPEG?Change of voice via ffmpeg or other applicationHow to set default subtitle with ffmpegffmpeg invalid data found when processing inputffmpeg connection to tcp://localhost failedffmpeg mosaic from wowza streamsffmpeg pipe webcam to output h264ffmpeg: Specifying audio stream as filter input






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I have 4 noname ip-cams and have troubles with capturing rtsp streams. Randomly output file not even created. I'm capturing stream via ffmpeg. Tried on Ubuntu Server 18.04 with snap ffmpeg and Debian 7 with ordinary ffmpeg. The same touble.



(/snap/bin/ffmpeg -y -use_wallclock_as_timestamps 1 -hide_banner -loglevel trace -i rtsp://192.168.0.16$1:554/11 -c:v copy -an -flags +global_header $VIDEO_FILE 2> $LOG_FOLDER/cam$1 ) &


Tried -loglevel debug but it show only successful RTSP connection and that's all. With -loglevel trace I have noticed difference between successful and failed process.



Error: unable to open display 
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-use_wallclock_as_timestamps' ... matched as AVOption 'use_wallclock_as_timestamps' with argument '1'.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'.
Reading option '-i' ... matched as input url with argument 'rtsp://192.168.0.161:554/11'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
Reading option '-flags' ... matched as AVOption 'flags' with argument '+global_header'.
Reading option '/home/melo/samba/video/19-03-07/cam1/16-06-11.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option hide_banner (do not show program banner) with argument 1.
Applying option loglevel (set logging level) with argument trace.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://192.168.0.161:554/11.
Successfully parsed a group of options.
Opening an input file: rtsp://192.168.0.161:554/11.
Probing rtsp score:100 size:0
[tcp @ 0x1b5cc40] No default whitelist set
[tcp @ 0x1b5cc40] Original list of addresses:
[tcp @ 0x1b5cc40] Address 192.168.0.161 port 554
[tcp @ 0x1b5cc40] Interleaved list of addresses:
[tcp @ 0x1b5cc40] Address 192.168.0.161 port 554
[tcp @ 0x1b5cc40] Starting connection attempt to 192.168.0.161 port 554
[tcp @ 0x1b5cc40] Successfully connected to 192.168.0.161 port 554
[rtsp @ 0x1b5abc0] Sending:
OPTIONS rtsp://192.168.0.161:554/11 RTSP/1.0
CSeq: 1
User-Agent: Lavf58.20.100

--
[rtsp @ 0x1b5abc0] ret=1 c=52 [R]
[rtsp @ 0x1b5abc0] ret=1 c=54 [T]
[rtsp @ 0x1b5abc0] ret=1 c=53 [S]
[rtsp @ 0x1b5abc0] ret=1 c=50 [P]
[rtsp @ 0x1b5abc0] ret=1 c=2f [/]
[rtsp @ 0x1b5abc0] ret=1 c=31 [1]
[rtsp @ 0x1b5abc0] ret=1 c=2e [.]
[rtsp @ 0x1b5abc0] ret=1 c=30 [0]
[rtsp @ 0x1b5abc0] ret=1 c=20 [ ]
[rtsp @ 0x1b5abc0] ret=1 c=32 [2]
[rtsp @ 0x1b5abc0] ret=1 c=30 [0]
Last message repeated 1 times
[rtsp @ 0x1b5abc0] ret=1 c=20 [ ]
[rtsp @ 0x1b5abc0] ret=1 c=4f [O]
[rtsp @ 0x1b5abc0] ret=1 c=4b [K]
[rtsp @ 0x1b5abc0] ret=1 c=0d [
]
[rtsp @ 0x1b5abc0] ret=1 c=0a [
]
[rtsp @ 0x1b5abc0] line='RTSP/1.0 200 OK'
[rtsp @ 0x1b5abc0] ret=1 c=43 [C]
[rtsp @ 0x1b5abc0] ret=1 c=53 [S]
[rtsp @ 0x1b5abc0] ret=1 c=65 [e]
[rtsp @ 0x1b5abc0] ret=1 c=71 [q]
[rtsp @ 0x1b5abc0] ret=1 c=3a [:]
[rtsp @ 0x1b5abc0] ret=1 c=20 [ ]
[rtsp @ 0x1b5abc0] ret=1 c=31 [1]
[rtsp @ 0x1b5abc0] ret=1 c=0d [
]
[rtsp @ 0x1b5abc0] ret=1 c=0a [
]


Good coding and everithing clear in successful process.



Error: unable to open display 
Splitting the commandline.
Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
Reading option '-use_wallclock_as_timestamps' ... matched as AVOption 'use_wallclock_as_timestamps' with argument '1'.
Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'.
Reading option '-i' ... matched as input url with argument 'rtsp://192.168.0.163:554/11'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
Reading option '-flags' ... matched as AVOption 'flags' with argument '+global_header'.
Reading option '/home/melo/samba/video/19-03-07/cam3/16-06-11.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option y (overwrite output files) with argument 1.
Applying option hide_banner (do not show program banner) with argument 1.
Applying option loglevel (set logging level) with argument trace.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://192.168.0.163:554/11.
Successfully parsed a group of options.
Opening an input file: rtsp://192.168.0.163:554/11.
Probing rtsp score:100 size:0
[tcp @ 0x18eec40] No default whitelist set
[tcp @ 0x18eec40] Original list of addresses:
[tcp @ 0x18eec40] Address 192.168.0.163 port 554
[tcp @ 0x18eec40] Interleaved list of addresses:
[tcp @ 0x18eec40] Address 192.168.0.163 port 554
[tcp @ 0x18eec40] Starting connection attempt to 192.168.0.163 port 554
[tcp @ 0x18eec40] Successfully connected to 192.168.0.163 port 554
[rtsp @ 0x18ecbc0] Sending:
OPTIONS rtsp://192.168.0.163:554/11 RTSP/1.0
CSeq: 1
User-Agent: Lavf58.20.100

--
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
[rtsp @ 0x18ecbc0] ret=1 c=08 []
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
[rtsp @ 0x18ecbc0] ret=1 c=04 [?]
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
[rtsp @ 0x18ecbc0] ret=1 c=48 [H]
[rtsp @ 0x18ecbc0] ret=1 c=02 [?]
[rtsp @ 0x18ecbc0] ret=1 c=2a [*]
[rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
[rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
[rtsp @ 0x18ecbc0] ret=1 c=84 []
[rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
[rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
[rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
Last message repeated 9 times
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
[rtsp @ 0x18ecbc0] ret=1 c=08 []
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
[rtsp @ 0x18ecbc0] ret=1 c=04 [?]
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
[rtsp @ 0x18ecbc0] ret=1 c=48 [H]
[rtsp @ 0x18ecbc0] ret=1 c=02 [?]
[rtsp @ 0x18ecbc0] ret=1 c=2a [*]
[rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
[rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
[rtsp @ 0x18ecbc0] ret=1 c=84 []
[rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
[rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
[rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
Last message repeated 9 times
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
[rtsp @ 0x18ecbc0] ret=1 c=08 []
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
[rtsp @ 0x18ecbc0] ret=1 c=04 [?]
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
[rtsp @ 0x18ecbc0] ret=1 c=48 [H]
[rtsp @ 0x18ecbc0] ret=1 c=02 [?]
[rtsp @ 0x18ecbc0] ret=1 c=2a [*]
[rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
[rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
[rtsp @ 0x18ecbc0] ret=1 c=84 []
[rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
[rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
[rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
Last message repeated 9 times
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
[rtsp @ 0x18ecbc0] ret=1 c=08 []
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
[rtsp @ 0x18ecbc0] ret=1 c=04 [?]
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
[rtsp @ 0x18ecbc0] ret=1 c=48 [H]
[rtsp @ 0x18ecbc0] ret=1 c=02 [?]
[rtsp @ 0x18ecbc0] ret=1 c=2a [*]
[rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
[rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
[rtsp @ 0x18ecbc0] ret=1 c=84 []
[rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
[rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
[rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
Last message repeated 9 times
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
[rtsp @ 0x18ecbc0] ret=1 c=08 []
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
[rtsp @ 0x18ecbc0] ret=1 c=04 [?]
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
[rtsp @ 0x18ecbc0] ret=1 c=48 [H]
[rtsp @ 0x18ecbc0] ret=1 c=02 [?]
[rtsp @ 0x18ecbc0] ret=1 c=2a [*]
[rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
[rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
[rtsp @ 0x18ecbc0] ret=1 c=84 []
[rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
[rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
[rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
Last message repeated 9 times
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
[rtsp @ 0x18ecbc0] ret=1 c=08 []
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
[rtsp @ 0x18ecbc0] ret=1 c=04 [?]
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
[rtsp @ 0x18ecbc0] ret=1 c=48 [H]
[rtsp @ 0x18ecbc0] ret=1 c=02 [?]
[rtsp @ 0x18ecbc0] ret=1 c=2a [*]
[rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
[rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
[rtsp @ 0x18ecbc0] ret=1 c=84 []
[rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
[rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
[rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
[rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
Last message repeated 9 times


Looks like a sh*t.

Log files aren't full, but I think it's enough. That appears randomly with random cams.

How to fix it?










share|improve this question




























    0















    I have 4 noname ip-cams and have troubles with capturing rtsp streams. Randomly output file not even created. I'm capturing stream via ffmpeg. Tried on Ubuntu Server 18.04 with snap ffmpeg and Debian 7 with ordinary ffmpeg. The same touble.



    (/snap/bin/ffmpeg -y -use_wallclock_as_timestamps 1 -hide_banner -loglevel trace -i rtsp://192.168.0.16$1:554/11 -c:v copy -an -flags +global_header $VIDEO_FILE 2> $LOG_FOLDER/cam$1 ) &


    Tried -loglevel debug but it show only successful RTSP connection and that's all. With -loglevel trace I have noticed difference between successful and failed process.



    Error: unable to open display 
    Splitting the commandline.
    Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
    Reading option '-use_wallclock_as_timestamps' ... matched as AVOption 'use_wallclock_as_timestamps' with argument '1'.
    Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'.
    Reading option '-i' ... matched as input url with argument 'rtsp://192.168.0.161:554/11'.
    Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
    Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
    Reading option '-flags' ... matched as AVOption 'flags' with argument '+global_header'.
    Reading option '/home/melo/samba/video/19-03-07/cam1/16-06-11.mp4' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option y (overwrite output files) with argument 1.
    Applying option hide_banner (do not show program banner) with argument 1.
    Applying option loglevel (set logging level) with argument trace.
    Successfully parsed a group of options.
    Parsing a group of options: input url rtsp://192.168.0.161:554/11.
    Successfully parsed a group of options.
    Opening an input file: rtsp://192.168.0.161:554/11.
    Probing rtsp score:100 size:0
    [tcp @ 0x1b5cc40] No default whitelist set
    [tcp @ 0x1b5cc40] Original list of addresses:
    [tcp @ 0x1b5cc40] Address 192.168.0.161 port 554
    [tcp @ 0x1b5cc40] Interleaved list of addresses:
    [tcp @ 0x1b5cc40] Address 192.168.0.161 port 554
    [tcp @ 0x1b5cc40] Starting connection attempt to 192.168.0.161 port 554
    [tcp @ 0x1b5cc40] Successfully connected to 192.168.0.161 port 554
    [rtsp @ 0x1b5abc0] Sending:
    OPTIONS rtsp://192.168.0.161:554/11 RTSP/1.0
    CSeq: 1
    User-Agent: Lavf58.20.100

    --
    [rtsp @ 0x1b5abc0] ret=1 c=52 [R]
    [rtsp @ 0x1b5abc0] ret=1 c=54 [T]
    [rtsp @ 0x1b5abc0] ret=1 c=53 [S]
    [rtsp @ 0x1b5abc0] ret=1 c=50 [P]
    [rtsp @ 0x1b5abc0] ret=1 c=2f [/]
    [rtsp @ 0x1b5abc0] ret=1 c=31 [1]
    [rtsp @ 0x1b5abc0] ret=1 c=2e [.]
    [rtsp @ 0x1b5abc0] ret=1 c=30 [0]
    [rtsp @ 0x1b5abc0] ret=1 c=20 [ ]
    [rtsp @ 0x1b5abc0] ret=1 c=32 [2]
    [rtsp @ 0x1b5abc0] ret=1 c=30 [0]
    Last message repeated 1 times
    [rtsp @ 0x1b5abc0] ret=1 c=20 [ ]
    [rtsp @ 0x1b5abc0] ret=1 c=4f [O]
    [rtsp @ 0x1b5abc0] ret=1 c=4b [K]
    [rtsp @ 0x1b5abc0] ret=1 c=0d [
    ]
    [rtsp @ 0x1b5abc0] ret=1 c=0a [
    ]
    [rtsp @ 0x1b5abc0] line='RTSP/1.0 200 OK'
    [rtsp @ 0x1b5abc0] ret=1 c=43 [C]
    [rtsp @ 0x1b5abc0] ret=1 c=53 [S]
    [rtsp @ 0x1b5abc0] ret=1 c=65 [e]
    [rtsp @ 0x1b5abc0] ret=1 c=71 [q]
    [rtsp @ 0x1b5abc0] ret=1 c=3a [:]
    [rtsp @ 0x1b5abc0] ret=1 c=20 [ ]
    [rtsp @ 0x1b5abc0] ret=1 c=31 [1]
    [rtsp @ 0x1b5abc0] ret=1 c=0d [
    ]
    [rtsp @ 0x1b5abc0] ret=1 c=0a [
    ]


    Good coding and everithing clear in successful process.



    Error: unable to open display 
    Splitting the commandline.
    Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
    Reading option '-use_wallclock_as_timestamps' ... matched as AVOption 'use_wallclock_as_timestamps' with argument '1'.
    Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'.
    Reading option '-i' ... matched as input url with argument 'rtsp://192.168.0.163:554/11'.
    Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
    Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
    Reading option '-flags' ... matched as AVOption 'flags' with argument '+global_header'.
    Reading option '/home/melo/samba/video/19-03-07/cam3/16-06-11.mp4' ... matched as output url.
    Finished splitting the commandline.
    Parsing a group of options: global .
    Applying option y (overwrite output files) with argument 1.
    Applying option hide_banner (do not show program banner) with argument 1.
    Applying option loglevel (set logging level) with argument trace.
    Successfully parsed a group of options.
    Parsing a group of options: input url rtsp://192.168.0.163:554/11.
    Successfully parsed a group of options.
    Opening an input file: rtsp://192.168.0.163:554/11.
    Probing rtsp score:100 size:0
    [tcp @ 0x18eec40] No default whitelist set
    [tcp @ 0x18eec40] Original list of addresses:
    [tcp @ 0x18eec40] Address 192.168.0.163 port 554
    [tcp @ 0x18eec40] Interleaved list of addresses:
    [tcp @ 0x18eec40] Address 192.168.0.163 port 554
    [tcp @ 0x18eec40] Starting connection attempt to 192.168.0.163 port 554
    [tcp @ 0x18eec40] Successfully connected to 192.168.0.163 port 554
    [rtsp @ 0x18ecbc0] Sending:
    OPTIONS rtsp://192.168.0.163:554/11 RTSP/1.0
    CSeq: 1
    User-Agent: Lavf58.20.100

    --
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=08 []
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
    [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
    [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
    [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
    [rtsp @ 0x18ecbc0] ret=1 c=84 []
    [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
    [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
    [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
    Last message repeated 9 times
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=08 []
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
    [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
    [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
    [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
    [rtsp @ 0x18ecbc0] ret=1 c=84 []
    [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
    [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
    [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
    Last message repeated 9 times
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=08 []
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
    [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
    [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
    [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
    [rtsp @ 0x18ecbc0] ret=1 c=84 []
    [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
    [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
    [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
    Last message repeated 9 times
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=08 []
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
    [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
    [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
    [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
    [rtsp @ 0x18ecbc0] ret=1 c=84 []
    [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
    [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
    [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
    Last message repeated 9 times
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=08 []
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
    [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
    [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
    [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
    [rtsp @ 0x18ecbc0] ret=1 c=84 []
    [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
    [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
    [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
    Last message repeated 9 times
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=08 []
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
    [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
    [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
    [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
    [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
    [rtsp @ 0x18ecbc0] ret=1 c=84 []
    [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
    [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
    [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
    [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
    Last message repeated 9 times


    Looks like a sh*t.

    Log files aren't full, but I think it's enough. That appears randomly with random cams.

    How to fix it?










    share|improve this question
























      0












      0








      0








      I have 4 noname ip-cams and have troubles with capturing rtsp streams. Randomly output file not even created. I'm capturing stream via ffmpeg. Tried on Ubuntu Server 18.04 with snap ffmpeg and Debian 7 with ordinary ffmpeg. The same touble.



      (/snap/bin/ffmpeg -y -use_wallclock_as_timestamps 1 -hide_banner -loglevel trace -i rtsp://192.168.0.16$1:554/11 -c:v copy -an -flags +global_header $VIDEO_FILE 2> $LOG_FOLDER/cam$1 ) &


      Tried -loglevel debug but it show only successful RTSP connection and that's all. With -loglevel trace I have noticed difference between successful and failed process.



      Error: unable to open display 
      Splitting the commandline.
      Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
      Reading option '-use_wallclock_as_timestamps' ... matched as AVOption 'use_wallclock_as_timestamps' with argument '1'.
      Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
      Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'.
      Reading option '-i' ... matched as input url with argument 'rtsp://192.168.0.161:554/11'.
      Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
      Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
      Reading option '-flags' ... matched as AVOption 'flags' with argument '+global_header'.
      Reading option '/home/melo/samba/video/19-03-07/cam1/16-06-11.mp4' ... matched as output url.
      Finished splitting the commandline.
      Parsing a group of options: global .
      Applying option y (overwrite output files) with argument 1.
      Applying option hide_banner (do not show program banner) with argument 1.
      Applying option loglevel (set logging level) with argument trace.
      Successfully parsed a group of options.
      Parsing a group of options: input url rtsp://192.168.0.161:554/11.
      Successfully parsed a group of options.
      Opening an input file: rtsp://192.168.0.161:554/11.
      Probing rtsp score:100 size:0
      [tcp @ 0x1b5cc40] No default whitelist set
      [tcp @ 0x1b5cc40] Original list of addresses:
      [tcp @ 0x1b5cc40] Address 192.168.0.161 port 554
      [tcp @ 0x1b5cc40] Interleaved list of addresses:
      [tcp @ 0x1b5cc40] Address 192.168.0.161 port 554
      [tcp @ 0x1b5cc40] Starting connection attempt to 192.168.0.161 port 554
      [tcp @ 0x1b5cc40] Successfully connected to 192.168.0.161 port 554
      [rtsp @ 0x1b5abc0] Sending:
      OPTIONS rtsp://192.168.0.161:554/11 RTSP/1.0
      CSeq: 1
      User-Agent: Lavf58.20.100

      --
      [rtsp @ 0x1b5abc0] ret=1 c=52 [R]
      [rtsp @ 0x1b5abc0] ret=1 c=54 [T]
      [rtsp @ 0x1b5abc0] ret=1 c=53 [S]
      [rtsp @ 0x1b5abc0] ret=1 c=50 [P]
      [rtsp @ 0x1b5abc0] ret=1 c=2f [/]
      [rtsp @ 0x1b5abc0] ret=1 c=31 [1]
      [rtsp @ 0x1b5abc0] ret=1 c=2e [.]
      [rtsp @ 0x1b5abc0] ret=1 c=30 [0]
      [rtsp @ 0x1b5abc0] ret=1 c=20 [ ]
      [rtsp @ 0x1b5abc0] ret=1 c=32 [2]
      [rtsp @ 0x1b5abc0] ret=1 c=30 [0]
      Last message repeated 1 times
      [rtsp @ 0x1b5abc0] ret=1 c=20 [ ]
      [rtsp @ 0x1b5abc0] ret=1 c=4f [O]
      [rtsp @ 0x1b5abc0] ret=1 c=4b [K]
      [rtsp @ 0x1b5abc0] ret=1 c=0d [
      ]
      [rtsp @ 0x1b5abc0] ret=1 c=0a [
      ]
      [rtsp @ 0x1b5abc0] line='RTSP/1.0 200 OK'
      [rtsp @ 0x1b5abc0] ret=1 c=43 [C]
      [rtsp @ 0x1b5abc0] ret=1 c=53 [S]
      [rtsp @ 0x1b5abc0] ret=1 c=65 [e]
      [rtsp @ 0x1b5abc0] ret=1 c=71 [q]
      [rtsp @ 0x1b5abc0] ret=1 c=3a [:]
      [rtsp @ 0x1b5abc0] ret=1 c=20 [ ]
      [rtsp @ 0x1b5abc0] ret=1 c=31 [1]
      [rtsp @ 0x1b5abc0] ret=1 c=0d [
      ]
      [rtsp @ 0x1b5abc0] ret=1 c=0a [
      ]


      Good coding and everithing clear in successful process.



      Error: unable to open display 
      Splitting the commandline.
      Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
      Reading option '-use_wallclock_as_timestamps' ... matched as AVOption 'use_wallclock_as_timestamps' with argument '1'.
      Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
      Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'.
      Reading option '-i' ... matched as input url with argument 'rtsp://192.168.0.163:554/11'.
      Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
      Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
      Reading option '-flags' ... matched as AVOption 'flags' with argument '+global_header'.
      Reading option '/home/melo/samba/video/19-03-07/cam3/16-06-11.mp4' ... matched as output url.
      Finished splitting the commandline.
      Parsing a group of options: global .
      Applying option y (overwrite output files) with argument 1.
      Applying option hide_banner (do not show program banner) with argument 1.
      Applying option loglevel (set logging level) with argument trace.
      Successfully parsed a group of options.
      Parsing a group of options: input url rtsp://192.168.0.163:554/11.
      Successfully parsed a group of options.
      Opening an input file: rtsp://192.168.0.163:554/11.
      Probing rtsp score:100 size:0
      [tcp @ 0x18eec40] No default whitelist set
      [tcp @ 0x18eec40] Original list of addresses:
      [tcp @ 0x18eec40] Address 192.168.0.163 port 554
      [tcp @ 0x18eec40] Interleaved list of addresses:
      [tcp @ 0x18eec40] Address 192.168.0.163 port 554
      [tcp @ 0x18eec40] Starting connection attempt to 192.168.0.163 port 554
      [tcp @ 0x18eec40] Successfully connected to 192.168.0.163 port 554
      [rtsp @ 0x18ecbc0] Sending:
      OPTIONS rtsp://192.168.0.163:554/11 RTSP/1.0
      CSeq: 1
      User-Agent: Lavf58.20.100

      --
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=08 []
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
      [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
      [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
      [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
      [rtsp @ 0x18ecbc0] ret=1 c=84 []
      [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
      [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
      [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
      Last message repeated 9 times
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=08 []
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
      [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
      [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
      [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
      [rtsp @ 0x18ecbc0] ret=1 c=84 []
      [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
      [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
      [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
      Last message repeated 9 times
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=08 []
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
      [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
      [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
      [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
      [rtsp @ 0x18ecbc0] ret=1 c=84 []
      [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
      [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
      [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
      Last message repeated 9 times
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=08 []
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
      [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
      [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
      [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
      [rtsp @ 0x18ecbc0] ret=1 c=84 []
      [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
      [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
      [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
      Last message repeated 9 times
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=08 []
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
      [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
      [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
      [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
      [rtsp @ 0x18ecbc0] ret=1 c=84 []
      [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
      [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
      [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
      Last message repeated 9 times
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=08 []
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
      [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
      [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
      [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
      [rtsp @ 0x18ecbc0] ret=1 c=84 []
      [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
      [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
      [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
      Last message repeated 9 times


      Looks like a sh*t.

      Log files aren't full, but I think it's enough. That appears randomly with random cams.

      How to fix it?










      share|improve this question














      I have 4 noname ip-cams and have troubles with capturing rtsp streams. Randomly output file not even created. I'm capturing stream via ffmpeg. Tried on Ubuntu Server 18.04 with snap ffmpeg and Debian 7 with ordinary ffmpeg. The same touble.



      (/snap/bin/ffmpeg -y -use_wallclock_as_timestamps 1 -hide_banner -loglevel trace -i rtsp://192.168.0.16$1:554/11 -c:v copy -an -flags +global_header $VIDEO_FILE 2> $LOG_FOLDER/cam$1 ) &


      Tried -loglevel debug but it show only successful RTSP connection and that's all. With -loglevel trace I have noticed difference between successful and failed process.



      Error: unable to open display 
      Splitting the commandline.
      Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
      Reading option '-use_wallclock_as_timestamps' ... matched as AVOption 'use_wallclock_as_timestamps' with argument '1'.
      Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
      Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'.
      Reading option '-i' ... matched as input url with argument 'rtsp://192.168.0.161:554/11'.
      Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
      Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
      Reading option '-flags' ... matched as AVOption 'flags' with argument '+global_header'.
      Reading option '/home/melo/samba/video/19-03-07/cam1/16-06-11.mp4' ... matched as output url.
      Finished splitting the commandline.
      Parsing a group of options: global .
      Applying option y (overwrite output files) with argument 1.
      Applying option hide_banner (do not show program banner) with argument 1.
      Applying option loglevel (set logging level) with argument trace.
      Successfully parsed a group of options.
      Parsing a group of options: input url rtsp://192.168.0.161:554/11.
      Successfully parsed a group of options.
      Opening an input file: rtsp://192.168.0.161:554/11.
      Probing rtsp score:100 size:0
      [tcp @ 0x1b5cc40] No default whitelist set
      [tcp @ 0x1b5cc40] Original list of addresses:
      [tcp @ 0x1b5cc40] Address 192.168.0.161 port 554
      [tcp @ 0x1b5cc40] Interleaved list of addresses:
      [tcp @ 0x1b5cc40] Address 192.168.0.161 port 554
      [tcp @ 0x1b5cc40] Starting connection attempt to 192.168.0.161 port 554
      [tcp @ 0x1b5cc40] Successfully connected to 192.168.0.161 port 554
      [rtsp @ 0x1b5abc0] Sending:
      OPTIONS rtsp://192.168.0.161:554/11 RTSP/1.0
      CSeq: 1
      User-Agent: Lavf58.20.100

      --
      [rtsp @ 0x1b5abc0] ret=1 c=52 [R]
      [rtsp @ 0x1b5abc0] ret=1 c=54 [T]
      [rtsp @ 0x1b5abc0] ret=1 c=53 [S]
      [rtsp @ 0x1b5abc0] ret=1 c=50 [P]
      [rtsp @ 0x1b5abc0] ret=1 c=2f [/]
      [rtsp @ 0x1b5abc0] ret=1 c=31 [1]
      [rtsp @ 0x1b5abc0] ret=1 c=2e [.]
      [rtsp @ 0x1b5abc0] ret=1 c=30 [0]
      [rtsp @ 0x1b5abc0] ret=1 c=20 [ ]
      [rtsp @ 0x1b5abc0] ret=1 c=32 [2]
      [rtsp @ 0x1b5abc0] ret=1 c=30 [0]
      Last message repeated 1 times
      [rtsp @ 0x1b5abc0] ret=1 c=20 [ ]
      [rtsp @ 0x1b5abc0] ret=1 c=4f [O]
      [rtsp @ 0x1b5abc0] ret=1 c=4b [K]
      [rtsp @ 0x1b5abc0] ret=1 c=0d [
      ]
      [rtsp @ 0x1b5abc0] ret=1 c=0a [
      ]
      [rtsp @ 0x1b5abc0] line='RTSP/1.0 200 OK'
      [rtsp @ 0x1b5abc0] ret=1 c=43 [C]
      [rtsp @ 0x1b5abc0] ret=1 c=53 [S]
      [rtsp @ 0x1b5abc0] ret=1 c=65 [e]
      [rtsp @ 0x1b5abc0] ret=1 c=71 [q]
      [rtsp @ 0x1b5abc0] ret=1 c=3a [:]
      [rtsp @ 0x1b5abc0] ret=1 c=20 [ ]
      [rtsp @ 0x1b5abc0] ret=1 c=31 [1]
      [rtsp @ 0x1b5abc0] ret=1 c=0d [
      ]
      [rtsp @ 0x1b5abc0] ret=1 c=0a [
      ]


      Good coding and everithing clear in successful process.



      Error: unable to open display 
      Splitting the commandline.
      Reading option '-y' ... matched as option 'y' (overwrite output files) with argument '1'.
      Reading option '-use_wallclock_as_timestamps' ... matched as AVOption 'use_wallclock_as_timestamps' with argument '1'.
      Reading option '-hide_banner' ... matched as option 'hide_banner' (do not show program banner) with argument '1'.
      Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'trace'.
      Reading option '-i' ... matched as input url with argument 'rtsp://192.168.0.163:554/11'.
      Reading option '-c:v' ... matched as option 'c' (codec name) with argument 'copy'.
      Reading option '-an' ... matched as option 'an' (disable audio) with argument '1'.
      Reading option '-flags' ... matched as AVOption 'flags' with argument '+global_header'.
      Reading option '/home/melo/samba/video/19-03-07/cam3/16-06-11.mp4' ... matched as output url.
      Finished splitting the commandline.
      Parsing a group of options: global .
      Applying option y (overwrite output files) with argument 1.
      Applying option hide_banner (do not show program banner) with argument 1.
      Applying option loglevel (set logging level) with argument trace.
      Successfully parsed a group of options.
      Parsing a group of options: input url rtsp://192.168.0.163:554/11.
      Successfully parsed a group of options.
      Opening an input file: rtsp://192.168.0.163:554/11.
      Probing rtsp score:100 size:0
      [tcp @ 0x18eec40] No default whitelist set
      [tcp @ 0x18eec40] Original list of addresses:
      [tcp @ 0x18eec40] Address 192.168.0.163 port 554
      [tcp @ 0x18eec40] Interleaved list of addresses:
      [tcp @ 0x18eec40] Address 192.168.0.163 port 554
      [tcp @ 0x18eec40] Starting connection attempt to 192.168.0.163 port 554
      [tcp @ 0x18eec40] Successfully connected to 192.168.0.163 port 554
      [rtsp @ 0x18ecbc0] Sending:
      OPTIONS rtsp://192.168.0.163:554/11 RTSP/1.0
      CSeq: 1
      User-Agent: Lavf58.20.100

      --
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=08 []
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
      [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
      [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
      [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
      [rtsp @ 0x18ecbc0] ret=1 c=84 []
      [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
      [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
      [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
      Last message repeated 9 times
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=08 []
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
      [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
      [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
      [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
      [rtsp @ 0x18ecbc0] ret=1 c=84 []
      [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
      [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
      [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
      Last message repeated 9 times
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=08 []
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
      [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
      [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
      [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
      [rtsp @ 0x18ecbc0] ret=1 c=84 []
      [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
      [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
      [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
      Last message repeated 9 times
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=08 []
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
      [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
      [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
      [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
      [rtsp @ 0x18ecbc0] ret=1 c=84 []
      [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
      [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
      [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
      Last message repeated 9 times
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=08 []
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
      [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
      [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
      [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
      [rtsp @ 0x18ecbc0] ret=1 c=84 []
      [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
      [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
      [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
      Last message repeated 9 times
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=08 []
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=06 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=04 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=01 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=48 [H]
      [rtsp @ 0x18ecbc0] ret=1 c=02 [?]
      [rtsp @ 0x18ecbc0] ret=1 c=2a [*]
      [rtsp @ 0x18ecbc0] ret=1 c=e0 [à]
      [rtsp @ 0x18ecbc0] ret=1 c=bc [Œ]
      [rtsp @ 0x18ecbc0] ret=1 c=84 []
      [rtsp @ 0x18ecbc0] ret=1 c=c0 [À]
      [rtsp @ 0x18ecbc0] ret=1 c=a8 [š]
      [rtsp @ 0x18ecbc0] ret=1 c=00 [[rtsp @ 0x18ecbc0] ret=1 c=a3 [£]
      [rtsp @ 0x18ecbc0] ret=1 c=ff [ÿ]
      Last message repeated 9 times


      Looks like a sh*t.

      Log files aren't full, but I think it's enough. That appears randomly with random cams.

      How to fix it?







      ffmpeg






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 7 at 21:29









      Роман ГолдованськийРоман Голдованський

      123




      123




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "106"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f505010%2frtsp-via-ffmpeg%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f505010%2frtsp-via-ffmpeg%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

          Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

          Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.