3 ms·
nice, I’ve been toying with it recently because I wanted to get some video on the Apple TV I’ve got connected to my TV. In the process I was reminded of how im
by d136o 6y ago
nice, I’ve been toying with it recently because I wanted to get some video on the Apple TV I’ve got connected to my TV.
In the process I was reminded of how important Intellectual Property is in our field.
I dowloaded a video from youtube [0] and learned that the video is in a WEBM container for certain types of video compression formats (VP8/9 + another one) as well as vorbis/opus audio. It turns out that to get the best quality on the Apple TV, I should encode to HEVC (H265) video and I guess aac audio.
There’s some sort of history behind this divide. A pain in the neck for people who want to toy around with video, but huge decisions for these companies in choosing the formats they use to move these bits around.
So I can use ffmpeg to re-encode into the new format, and I can play it on my apple devices if the file is local, but I can’t shoot it via UDP to the TV. When VLC (app on apple tv) is listening on a port for UDP I only get choppy audio:
Doing this on the sending side doesn’t seem to work:
ffmpeg \
-re -i video_stream_ready.mp4 \
-c:v copy -c:a copy \
-f mpegts udp:$APPLETVIP:2300
has anyone toyed around with shooting pre-generated (or even real time generated) video at their TV this way?
Being stuck at home makes me want to make something artsy that could be fun to look at through the day.
[0] https://youtu.be/wPXSFVruIHI https://youtu.be/wPXSFVruIHI