Transmitting video with HackRF - Update
I was able to fix the video problem. I needed to add -thread_queue_size 1024 after -f alsa
:~/gr-dvbt$ ffmpeg -re -thread_queue_size 1024 -i /dev/video0 -vcodec
mpeg2video -f alsa -thread_queue_size 1024 -i hw:0,0 -acodec mp2 -s
320x240 -r 60 -b:v 2M -minrate:v 2M -maxrate:v 2M -bufsize:v 14M -ac 2
-b:a 48k -mpegts_transport_stream_id 1025 -mpegts_service_id 1
-mpegts_pmt_start_pid 0x0fff -mpegts_start_pid 0x0121 -muxrate 4524064
-f mpegts -y in.fifo
Now the video is very smooth.
Also, you can add your call sign.
ffmpeg -re -thread_queue_size 1024 -i /dev/video0 -vcodec mpeg2video -f alsa -thread_queue_size 1024 -i hw:0,0 -acodec mp2 -s 320x240 -r 60 -b:v 2M -minrate:v 2M -maxrate:v 2M -bufsize:v 14M -ac 2 -b:a 48k -mpegts_transport_stream_id 1025 -mpegts_service_id 1 -mpegts_pmt_start_pid 0x0fff -mpegts_start_pid 0x0121 -muxrate 4524064 -f mpegts -vf drawtext=fontfile=/usr/share/
fonts/truetype/freefont/ FreeSerif.ttf:text="CALLSIGN":x= 440:y=420:fontsize=48: fontcolor=white@0.6:box=1: boxcolor=black@0.2 -y in.fifo
* Disclaimer: You need to have proper license to follow the above. It is illegal to transmit radio waves without license. I am not responsible for any damages caused by following this posting. This posting is for informational purposes only.
:~/gr-dvbt$ ffmpeg -re -thread_queue_size 1024 -i /dev/video0 -vcodec
mpeg2video -f alsa -thread_queue_size 1024 -i hw:0,0 -acodec mp2 -s
320x240 -r 60 -b:v 2M -minrate:v 2M -maxrate:v 2M -bufsize:v 14M -ac 2
-b:a 48k -mpegts_transport_stream_id 1025 -mpegts_service_id 1
-mpegts_pmt_start_pid 0x0fff -mpegts_start_pid 0x0121 -muxrate 4524064
-f mpegts -y in.fifo
Now the video is very smooth.
Also, you can add your call sign.
ffmpeg -re -thread_queue_size 1024 -i /dev/video0 -vcodec mpeg2video -f alsa -thread_queue_size 1024 -i hw:0,0 -acodec mp2 -s 320x240 -r 60 -b:v 2M -minrate:v 2M -maxrate:v 2M -bufsize:v 14M -ac 2 -b:a 48k -mpegts_transport_stream_id 1025 -mpegts_service_id 1 -mpegts_pmt_start_pid 0x0fff -mpegts_start_pid 0x0121 -muxrate 4524064 -f mpegts -vf drawtext=fontfile=/usr/share/
* Disclaimer: You need to have proper license to follow the above. It is illegal to transmit radio waves without license. I am not responsible for any damages caused by following this posting. This posting is for informational purposes only.
Comments