a playlist for ffmpeg streamer


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting a playlist for ffmpeg streamer
# 1  
Old 02-27-2012
a playlist for ffmpeg streamer

Hi, I hope I am posting in the right place.

I use to stream to justin tv using ffmpeg with that command

Code:
ffmpeg -re -i "path/to/input.avi" -vcodec libx264 -preset fast -crf 30 -acodec libfaac -ab 128k -ar 44100 -f flv rtmp://live.justin.tv/app/xxxxxxxxxxx

I would like to know if a bash script could be created so after one video finished to stream, another starts right after, like a vlc playlist would do Smilie

The bash playlist could be filled up manually with filename input, that's not really important.. it s just to be able to program the listing for many hours

thanks
# 2  
Old 02-27-2012
Did you try with a simple "while" loop ?

maybe something like :


Code:
while read myfile
do
ffmpeg -re -i "$myfile"  -vcodec ........
echo "$myfile were encoded with RC=$?" >>mylog
done <my_list_of_video_to_encode

# 3  
Old 02-27-2012
well I didn't try because I have no clue how to create a bash file.. Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

4 More Discussions You Might Find Interesting

1. What is on Your Mind?

Video Playlist for New Users with Under 5 Posts

Hi. I'm working on showing the video player to new users with under 5 posts which shows only videos like the ones below, which are related to the forums, how to use the forums, code tags, usercp, etc.: https://www.unix.com/members/1-albums215-picture1265.png or maybe something minimal and... (5 Replies)
Discussion started by: Neo
5 Replies

2. HP-UX

Rx2660: a tape streamer

I need a tape external unity. Must be cheapest,external and use scsi interface ,of course compatible with rx2660(u320 68pin scsi external) A HP q1523A is good? Thanks (7 Replies)
Discussion started by: Linusolaradm1
7 Replies

3. Shell Programming and Scripting

Music Playlist parse/grep

Hi. Please help with a single line bash that will match field 3, and field 2 , if not then echo "Not Found". Original Music List name; Musiclists.m3u Format: \Music\The Rolling Stones - Angel.mp3 \Music\Maroon 5\Moves Like Jagger.mp3 Make a groomed playlist variable... $... (0 Replies)
Discussion started by: DSommers
0 Replies

4. Shell Programming and Scripting

Help with Playlist creation script

Hello. I am hoping to have an automated way to create Playlist files from Genre txt files I'll be making with my music collection. This is for use with my WD Live player, and is so that certain albums / artists can live in multiple genre directories when I browse to them from my WD Live player. ... (4 Replies)
Discussion started by: Davinator
4 Replies
Login or Register to Ask a Question