Giter Site home page Giter Site logo

gotubecast's People

Contributors

bogoevskig avatar cbix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gotubecast's Issues

İts Work but,"read" does not work when video is open

cmd:video_id arg:VvjePRvHq8E
omxplayer.bin: no process found
Video codec omx-h264 width 640 height 360 profile 578 fps 25.000000
Audio codec aac channels 2 samplerate 44100 bitspersample 16
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: [email protected] interlace:0 deinterlace:0 anaglyph:0 par:1.12 display:0 layer:0 alpha:255 aspectMode:0
cmd:seek_to arg:37
Seek to: 00:00:37
./youtube.sh: satır 24: read: okuma hatası: 0: Özkaynak geçici olarak kullanılamaz durumda

builderror

pi@raspberrypi:~/gotubecast $ GOARCH=arm go build
import cycle not allowed
package .
imports encoding/json
imports bytes
imports errors
imports runtime
imports internal/bytealg
imports internal/cpu
imports runtime

gotubecast crashes when choosing "Play All Now" on Youtube playlist

Firstly, thank you for gotubecast. It is exactly what I have been looking for!

When I send a Youtube playlist/mix to gotubecast with the "Play All Now" option, it crashes with the following output:

`panic: interface conversion: interface is nil, not string

goroutine 1 [running]:
panic(0x2d9410, 0x109704c0)
/usr/lib/go-1.6/src/runtime/panic.go:481 +0x330
main.genericCmd(0xc, 0x0, 0x108cfbc0, 0xb, 0x108cfc28, 0x1, 0x1)
/usr/bin/gotubecast/main.go:294 +0x3724
main.decodeBindStream(0x76f36ba0, 0x109340a0, 0x0, 0x0)
/usr/bin/gotubecast/main.go:233 +0x3f4
main.main()
/usr/bin/gotubecast/main.go:191 +0x18c4`

support for digital out

is there support for digital out, hiffi-berry-digi?
is it possible to choose a specific sound-device for the output for instance (like hw:0, plughw:0 etc.)?

Panic

`panic: interface conversion: interface {} is nil, not string

goroutine 1 [running]:
main.genericCmd(0x1b, 0x0, 0x11d82360, 0xb, 0x11d84348, 0x1, 0x1)
/home/pi/go/src/github.com/CBiX/gotubecast/main.go:291 +0x40a0
main.decodeBindStream(0x74c6bd10, 0x11dfa4d0, 0x11dfa4d0, 0x74c6bd10)
/home/pi/go/src/github.com/CBiX/gotubecast/main.go:233 +0x104
main.main()
/home/pi/go/src/github.com/CBiX/gotubecast/main.go:191 +0x11d4`

Can't build

root@raspberrypi:/home/pi/coolio/gotubecast# go build
# _/home/pi/coolio/gotubecast
./main.go:208: undefined: json.Token
./main.go:209: dec.Token undefined (type *json.Decoder has no field or method Token)
./main.go:220: undefined: json.Delim
./main.go:221: dec.More undefined (type *json.Decoder has no field or method More)
./main.go:236: dec.Token undefined (type *json.Decoder has no field or method Token)

Did I miss something in the instructions?

omxplayer.bin: no process found

Hi guys,

I'm trying to configuring Youtube TV to grandma stay at home during COVID-19 pandemic. She has an old LCD TV without YT app built in on it. I'm using a RPi zero and GoTubeCast.
Unfortunately, I got a error in the end.

pi@raspberrypi:~/gotubecast/examples$ ./raspi.sh
Your pairing code: 800-388-292-746
XIAOMI Mi A2 connected
omxplayer.bin: no process found
./raspi.sh: line 38: bc: command not found
./raspi.sh: line 38: bc: command not found
cat: /tmp/omxplayerdbus.pi: No such file or directory
cat: /tmp/omxplayerdbus.pi.pid: No such file or directory
Failed to open connection to "session" message bus: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11

I'm newbie on this thing, and I'll really appreciate any help or idea to solve the problem.

Thx

No Audio Output via AUX

All seems working fine, im connected, the video plays, but there is no audio output from the Aux output of the rapsberry.
I`ve set the Output via raspi-config and via amixer cset numid=3 1, but there seems no output.
Audio from other sources are played perfectly fine, but not from gotubecast

raspberry 4b with 5.4.51-v7l+ kernel, Raspbian/Linux 10

panic: invalid character

gotubecast was working fine for me. Now suddenly i get the error Message as soon as i click on the Youtubevideo on my Phone, and the script crashes.

`remote_join D8ACEB80-FF51-4F15-BD65-C4D8352D20DC HappySlappyTiime
generic_cmd getSubtitlesTrack []
user_action
panic: invalid character '<' looking for beginning of value

goroutine 1 [running]:
main.getListInfo(0x26b64a0, 0x1d, 0x23ea47)
/home/pi/go/src/github.com/CBiX/gotubecast/main.go:501 +0x1e4
main.genericCmd(0xb, 0x0, 0x26e2500, 0xb, 0x26e44c8, 0x1, 0x1)
/home/pi/go/src/github.com/CBiX/gotubecast/main.go:289 +0x2550
main.decodeBindStream(0x63f19350, 0x25c26e0, 0x25c26e0, 0x63f19350)
/home/pi/go/src/github.com/CBiX/gotubecast/main.go:233 +0x100
main.main()
/home/pi/go/src/github.com/CBiX/gotubecast/main.go:191 +0x115c
`

Tried reinstalling completly, nothing worked. I'm sure theres a simple fix to that i'm just not that advanced :P

No audio

Hello,
after installing everything as indicated the video works like charm, doesn't lag and is smooth, but there's no audio, it is mute.
I don't know why, i've tried a bit of everything but nothing even suggrest some sort of audio.
Any ideas?

Video is not found and play

ERROR: v0T9q628Uiw: YouTube said: This video is unavailable.
omxplayer.bin: no process found
./raspi.sh: line 38: bc: command not found
./raspi.sh: line 38: bc: command not found

-h  --help                  Print this help
-v  --version               Print version info
-k  --keys                  Print key bindings
-n  --aidx  index           Audio stream index    : e.g. 1
-o  --adev  device          Audio out device      : e.g. hdmi/local/both/alsa[:device]
-i  --info                  Dump stream format and exit
-I  --with-info             dump stream format before playback
-s  --stats                 Pts and buffer stats
-p  --passthrough           Audio passthrough
-d  --deinterlace           Force deinterlacing
    --nodeinterlace         Force no deinterlacing
    --nativedeinterlace     let display handle interlace
    --anaglyph type         convert 3d to anaglyph
    --advanced[=0]          Enable/disable advanced deinterlace for HD videos (default enabled)
-w  --hw                    Hw audio decoding
-3  --3d mode               Switch tv into 3d mode (e.g. SBS/TB)
-M  --allow-mvc             Allow decoding of both views of MVC stereo stream
-y  --hdmiclocksync         Display refresh rate to match video (default)
-z  --nohdmiclocksync       Do not adjust display refresh rate to match video
-t  --sid index             Show subtitle with index
-r  --refresh               Adjust framerate/resolution to video
-g  --genlog                Generate log file
-l  --pos n                 Start position (hh:mm:ss)
-b  --blank[=0xAARRGGBB]    Set the video background color to black (or optional ARGB value)
    --loop                  Loop file. Ignored if file not seekable
    --no-boost-on-downmix   Don't boost volume when downmixing
    --vol n                 set initial volume in millibels (default 0)
    --amp n                 set initial amplification in millibels (default 0)
    --no-osd                Do not display status information on screen
    --no-keys               Disable keyboard input (prevents hangs for certain TTYs)
    --subtitles path        External subtitles in UTF-8 srt format
    --font path             Default: /usr/share/fonts/truetype/freefont/FreeSans.ttf
    --italic-font path      Default: /usr/share/fonts/truetype/freefont/FreeSansOblique.ttf
    --font-size size        Font size in 1/1000 screen height (default: 55)
    --align left/center     Subtitle alignment (default: left)
    --no-ghost-box          No semitransparent boxes behind subtitles
    --lines n               Number of lines in the subtitle buffer (default: 3)
    --win 'x1 y1 x2 y2'     Set position of video window
    --win x1,y1,x2,y2       Set position of video window
    --crop 'x1 y1 x2 y2'    Set crop area for input video
    --crop x1,y1,x2,y2      Set crop area for input video
    --aspect-mode type      Letterbox, fill, stretch. Default: stretch if win is specified, letterbox otherwise
    --audio_fifo  n         Size of audio output fifo in seconds
    --video_fifo  n         Size of video output fifo in MB
    --audio_queue n         Size of audio input queue in MB
    --video_queue n         Size of video input queue in MB
    --threshold   n         Amount of buffered data required to finish buffering [s]
    --timeout     n         Timeout for stalled file/network operations (default 10s)
    --orientation n         Set orientation of video (0, 90, 180 or 270)
    --fps n                 Set fps of video where timestamps are not present
    --live                  Set for live tv or vod type stream
    --layout                Set output speaker layout (e.g. 5.1)
    --dbus_name name        default: org.mpris.MediaPlayer2.omxplayer
    --key-config <file>     Uses key bindings in <file> instead of the default
    --alpha                 Set video transparency (0..255)
    --layer n               Set video render layer number (higher numbers are on top)
    --display n             Set display to output to
    --cookie 'cookie'       Send specified cookie as part of HTTP requests
    --user-agent 'ua'       Send specified User-Agent as part of HTTP requests
    --lavfdopts 'opts'      Options passed to libavformat, e.g. 'probesize:250000,...'
    --avdict 'opts'         Options passed to demuxer, e.g., 'rtsp_transport:tcp,...'

For example:

./omxplayer -p -o hdmi test.mkv

Error org.freedesktop.DBus.Error.ServiceUnknown: The name org.mpris.MediaPlayer2.omxplayer was not provided by any .service files

SCREEN_ID

Hello,

First, thanks for this project, it's great !

It it probably very simple, but I try to set the SCREEN_ID in the file RASPI.SH by setting the SCREEN_ID variable at the beginning of the mentionned file in the EXPORT section but I have this error.

ex:
export SCREEN_ID="123-456-789-123"

Do I have to include the "-" characters ?

If I do not set the SCREEN-ID, all are working fine...

Error:
panic: invalid character '<' looking for beginning of value

goroutine 1 [running]:
main.main()
/usr/local/go/gotubecast/main.go:116 +0x18c4

	THanks !

error

root@raspberrypi:/home/pi/gotubecast/examples# ./raspi.sh
Your pairing code: 538-391-572-221
SAMSUNG SM-G610F connected
panic: interface conversion: interface {} is nil, not string

goroutine 1 [running]:
main.genericCmd(0x7, 0x0, 0x11a18890, 0xb, 0x11ae2128, 0x1, 0x1)
/root/gotubecast/main.go:291 +0x40a0
main.decodeBindStream(0x741afc18, 0x11b34210, 0x11b34210, 0x741afc18)
/root/gotubecast/main.go:233 +0x104
main.main()
/root/gotubecast/main.go:191 +0x11d4

Resource temporarily unavailable

I have problem with gotubecast raspi

Installed OK, no error messages.

First run video is OK.When I try to seek, first seek is OK, another seek crash program

Your pairing code: 851-236-917-659
omxplayer.bin: no process found
Video codec omx-h264 width 640 height 360 profile 578 fps 25.000000
Audio codec aac channels 2 samplerate 44100 bitspersample 16
Subtitle count: 0, state: off, index: 1, delay: 0
V:PortSettingsChanged: [email protected] interlace:0 deinterlace:0 anaglyph:0 par:1.00 display:0 layer:0 alpha:255 aspectMode:0
Seek to: 00:01:37 // THIS SEEK IS OK
./raspi.sh: line 21: read: read error: 0: Resource temporarily unavailable // THIS IS NEXT SEEK

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.