Raspberry Pi Model B + IR Cam + Honeybees +YouTube Streaming - Page 2
Page 2 of 2 FirstFirst 12
Results 21 to 25 of 25
  1. #21
    Join Date
    Jan 2015
    Location
    Williamsport, PA
    Posts
    478

    Default Re: Raspberry Pi Model B + IR Cam + Honeybees +YouTube Streaming

    I don't think you can use subtitles with -vcodec copy. I use subtitles on all of my home movies but write them to a .ass (lol, yes someone thought that was a good idea) file. This is the file I use to crunch a lot of home movies into subtitled x265 format. Maybe it would help you?

    Code:
    #!/bin/sh
    
    for file in [email protected] ; do
    name=`echo $file | sed -e "s/\....$//g"`
    
    ffmpeg -i "$file" -c:v libx265 -threads 0 -s 1280x720 -vf kerndeint=thresh=10:map=0:order=0:sharp=1:twoway=0 -vf hqdn3d  -sws_flags lanczos -aspect 16:9 -crf 24 -c:a aac -b:a 96k -strict -2 -filter:v subtitles="$file"\.ass  "$file"\.265.mp4 -y
    
    done

  2. Remove Advertisements
    BeeSource.com
    Advertisements
     

  3. #22
    Join Date
    Jun 2014
    Location
    Palos Verdes, CA, USA
    Posts
    1,214

    Default Re: Raspberry Pi Model B + IR Cam + Honeybees +YouTube Streaming

    Are .ass files for soft subtitles? Or are they burned into the video?

    ffmpeg supposedly also supports .srt files, but I haven't tried that yet, and I think subtitles for a live stream might be different than for an existing file. But I haven't had time to play with any of this just yet.
    Painted Peacock Manor, Palos Verdes, CA

  4. #23
    Join Date
    Jan 2015
    Location
    Williamsport, PA
    Posts
    478

    Default Re: Raspberry Pi Model B + IR Cam + Honeybees +YouTube Streaming

    They are burn into the video. I used to use srt files but switches to .ass for some reason that I can't remember now.

    I am not a coding guru by any stretch but what if you grabbed weather conditions and time then output it to an .ass file that updated on an interval?

    https://stackoverflow.com/questions/...-yahoo-weather

  5. #24
    Join Date
    Jun 2014
    Location
    Palos Verdes, CA, USA
    Posts
    1,214

    Default Re: Raspberry Pi Model B + IR Cam + Honeybees +YouTube Streaming

    I did something very similar with time and weather from openweathermap.org:

    Code:
    #!/bin/bash
    
    while [[ 1 == 1 ]]; do
            curl -s 'api.openweathermap.org/data/2.5/weather?id=5388601&APPID=MyOpenWeatherMapAPIKey&units=imperial' | jq '.name,", ",.main.temp," F"' > /tmp/temp1.txt
            tr -d '"' < /tmp/temp1.txt > /tmp/temp2.txt
            tr -d '\n' < /tmp/temp2.txt > /tmp/weather.txt
            sleep 600
    done
    I don't want to burn in subtitles, because I don't have the CPU power in the Pi to rasterize, overlay, and re-encode. So I want to find a way to do soft subtitles.
    Painted Peacock Manor, Palos Verdes, CA

  6. #25
    Join Date
    Jan 2015
    Location
    Williamsport, PA
    Posts
    478

    Default

    I dug around some more. I wish I had more time to actually help. I understand ffmpeg more than the other coding.

    From, https://forum.videohelp.com/threads/...eo-with-ffmpeg, it looks like you can stream map the .ass file into your video without burning it.

    If true, I would build a cron to run every 15 or 20 minutes to grab the temp and output to the .ass file then have ffmpeg merge them.

    *I may even try this with my home stuff instead of burning it.

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •