rundgong / castr

C++ lib and CLI for playing media files on a Chromecast
41 stars 6 forks source link

Error 102 Media Decode Error #1

Open mozcelikors opened 3 years ago

mozcelikors commented 3 years ago

Hi, I have been experimenting with this, however I get the following error: Do you happen to know how to solve it? I have ffmpeg installed.

PLAYING | 0:00 [________________________________________________] 1:57 | Vol: 40%   
Cast Error at time 0 seconds
    Error code: 102
    Media Decode Error.

Using castr-convert instead gives straight up an error, no explanation:


./castr-convert SampleVideo_1280x720_20mb.mp4
Convert SampleVideo_1280x720_20mb.mp4 to MPEG dash for streaming
Creating temporary files at SampleVideo_1280x720_20mb.mp4.dash
...castr player started at 192.168.1.34
Chromecast host: Mi TV Stick @ 192.168.1.38
STOPPED | 0:00 [________________________________________________] 0:00 | Vol: 40% 
----------------
    Playing SampleVideo_1280x720_20mb.mp4.mpd

ERROR | 0:00 [________________________________________________] 0:00 | Vol: 40%  
mozcelikors commented 3 years ago

Apparently the video is not compatible, although it is plain mp4. Doing the following works:

./castr http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4

rundgong commented 3 years ago

MP4 is just the container. It's possible to put both compatible an not compatible media inside it.

Mi TV Stick might be sensitive to correct encoder settings also. The chromecast device seems to be, and the converter script is very basic so I just tried out some settings that seems to be working. Try using that file without the converter script. Did you get any local files to play on that stick?