Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream not showing until exiting picam #141

Open
joop339 opened this issue Jun 1, 2020 · 8 comments
Open

stream not showing until exiting picam #141

joop339 opened this issue Jun 1, 2020 · 8 comments

Comments

@joop339
Copy link

joop339 commented Jun 1, 2020

So this is gonna be a hard one to explain.
Following the instructions and starting a live stream i get no errors.
I open vlc and start the video stream however i get neither sound nor video.

But when i close the stream using ctrl-c in the terminal a short clip suddenly show up in vlc. This happens everytime i exit.

some stuff i figured out that might be related.

When performing a reboot i cant run ./picam and get this error: "error creating state dir (./state): File exists"
I can fix this by running make_dirs.sh.

i cant run make_dirs.sh without sudo i get this error: "ln: failed to create symbolic link '/run/shm/rec/archive': Permission denied"

i cant run ./picam without sudo i get this error: "stat directory: Permission denied
State file open failed: Permission denied"
and
avio_open for /run/shm/hls/1.ts failed: Permission denied

i hope you can help me with this. If there's any more information you need please send me a message.

@joop339
Copy link
Author

joop339 commented Jun 1, 2020

debug.log

also here is my debug log from vlc. I don't see anything really weird in there, but then again iam not that experienced.

also also.
it seems like when i dont restart the stream i can keep playing the 1 second clip i get after closing ./picam.

its like it just does nothing and then when i exit saves a 1 second clip on that adress.

@kendaw
Copy link

kendaw commented Jun 6, 2020

I'm having this exact same problem. Installed everything today using the Raspberry Pi OS (32-bit) Lite (27 May 2020).

Edit: To add to the issue, as joop stated, once I stop picam (ctrl+c) there is a ~1 second file that remains in memory that I'm able to play via VLC from a separate client.

Edit#2: Could the problem be related to using the recording command while running picam? Entering

touch hooks/start_record

Does nothing for me.

@kendaw
Copy link

kendaw commented Jun 6, 2020

@joop339 any luck in the past few days in resolving this issue?

@joop339
Copy link
Author

joop339 commented Jun 6, 2020

@kendaw sadly no. I went back to streaming using VLC directly.

@kendaw
Copy link

kendaw commented Jun 6, 2020

@joop339 from the host/client itself, I assume?

@kendaw
Copy link

kendaw commented Jun 19, 2020

@joop339 if you still want to view the feed from a remote client, I was able to using this web player: https://kamranicus.com/guides/raspberry-pi-3-baby-monitor#optionally-adding-a-web-player

@SebastianSTARITZ
Copy link

I do have the same issue.

I'm using buster lite and 1.4.9

  • i tried -p (preview) and capturing was OK
  • .ts files ar generated and accessible via client. Each is ~ 149kB big.
  • i downloaded one .ts file and tried to open it "offline" via VLC -> still no video
  • i tried different versions 1.4.7 , 1.4.8, 1.4.9 binaries ..... still no change
  • i tried different start parameters like changing fps, widht, height, avclevel and so on -> no change

no error in /var/log/picam
no suspicious output in /var/log/messages when greping for "cam", "picam", "video", "hls", "avc", "codec"

webplayer from kamranicus.com is working OK

any ideas where to look at in order to debug?

@SebastianSTARITZ
Copy link

So this is gonna be a hard one to explain.
Following the instructions and starting a live stream i get no errors.
I open vlc and start the video stream however i get neither sound nor video.

But when i close the stream using ctrl-c in the terminal a short clip suddenly show up in vlc. This happens everytime i exit.

some stuff i figured out that might be related.

When performing a reboot i cant run ./picam and get this error: "error creating state dir (./state): File exists"
I can fix this by running make_dirs.sh.

i cant run make_dirs.sh without sudo i get this error: "ln: failed to create symbolic link '/run/shm/rec/archive': Permission denied"

i cant run ./picam without sudo i get this error: "stat directory: Permission denied
State file open failed: Permission denied"
and
avio_open for /run/shm/hls/1.ts failed: Permission denied

i hope you can help me with this. If there's any more information you need please send me a message.

Hi, i checked your log. It seems to point out some issues with the .ts files. At least, that's what i suspect after trying some things

ts warning: Broken stream: pid 256 sends packets with dts 888900us later than pcr, applying delay ts debug: first packet for pid=257 cc=0x5 adaptive debug: Retrieving http://192.168.178.115:80/hls/11.ts @0 ts warning: discontinuity received 0x0 instead of 0x8 (pid=17) ts error: libdvbpsi error (PSI decoder): TS discontinuity (received 0, expected 8) for PID 17 ts debug: SDTCallBack called ts debug: Can't read TS packet at 552720

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants