Page 1 of 2

newb needs help with transcoding folder

PostPosted: Wed May 02, 2012 9:14 pm
by dynamitemedia
ok i am abit confused.

I am not seeing any transcoded files anywhere, so are these being saved to a foler ? if so where is this file located?

Re: newb needs help with transcoding folder

PostPosted: Wed May 02, 2012 11:49 pm
by jhb50
per the console setting. also debug log will show the ffmpeg command used

Re: newb needs help with transcoding folder

PostPosted: Thu May 03, 2012 12:33 am
by dynamitemedia
yes i read that but it is not in the folder c:\windows\temp

i even changed in the console but still nothing there...

what profile do i need to use to guarantee it is being transcoded? i m have been testing with rtmp streams from the live streams if that helps

Re: newb needs help with transcoding folder

PostPosted: Thu May 03, 2012 2:07 am
by jhb50
livestreams are transcoded into memory. look at the debug log to see transcoding calls to ffmpeg

Re: newb needs help with transcoding folder

PostPosted: Thu May 03, 2012 2:42 am
by dynamitemedia
  Code:
2012-05-02 22:35:50,284 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: rtmp://s7.webport.tv/live/z050233.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1



  Code:
2012-05-02 22:35:50,284 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -i rtmp://s7.webport.tv/live/z050233.stream pageUrl=http://www.tvsector.com/ swfVfy=0 live=1 -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts pipe:


i see this, is this what your talking about?

is it possible to tweak the ffmpeg settings?

another question i have is what is "pipe" doing here?

Re: newb needs help with transcoding folder

PostPosted: Thu May 03, 2012 10:33 pm
by zip
pipe means it's not storing into a file but passes the output into another process, in this case Serviio memory buffer. it only happens for live streams, any other transcoding will have a file path instead of pipe:

Re: newb needs help with transcoding folder

PostPosted: Thu May 03, 2012 10:47 pm
by dynamitemedia
is it possible to save to a file? i was looking at the ffmpeg set up you have and since you do not have .mp4 capabilites i thought i would grab the file and then transcode with my custom ffmpeg to air in either ROKU or my Google TV...

that is the one thing that is hurting this awesome server is the transcoding to these type devices...

i alos noticed on just a local file i do no see the transcoding taking place. where is that file located at?

right now i added new folder like this C:\windows\temp\serviio change that in the console and still do not see anything in that folder, what could i be doing wrong?

Re: newb needs help with transcoding folder

PostPosted: Fri May 04, 2012 1:17 pm
by zip
what profile? Generic profile only transcodes online content (but not live streams). Try the DirecTV profile which transcodes almost every local video format.

Re: newb needs help with transcoding folder

PostPosted: Fri May 04, 2012 9:33 pm
by dynamitemedia
zip wrote:what profile? Generic profile only transcodes online content (but not live streams). Try the DirecTV profile which transcodes almost every local video format.


Ok i want to transcode live streams and online content to a file. is that possible? i will use any profile as long as it can save to a file instead of to memory. I need for my Instance of FFMPEG to grab the file and transcode to the correct settings for my ROKU which is HLS Streaming. I have the HLS working but it wont work here with out a File from Serviio

I know the live is saved to memory so i wont see anything in the folder i made BUT it doesn't seem to be working for local file transcoding either as i explain below

even with local transcoding i can not find the location of the temp or temp file, i have created a folder in the windows/temp folder and pointed the serviio console to it but do not see any files or temp files being made.

Re: newb needs help with transcoding folder

PostPosted: Sat May 05, 2012 7:20 am
by will
Why don't you just add -Dffmpeg.location=C:\specialffmpegwrapper.exe to the serviio.bat startup script that way serviio will call your ffmpeg process, ideally a wrapper script to prepare the arguments, which will then call your wrapper script.

Re: newb needs help with transcoding folder

PostPosted: Sat May 05, 2012 6:17 pm
by dynamitemedia
thanks will sounds interesting but what will that exactly do?

will it replace his FFMpeg? or will it allow me to grab the transcoded live or online video file and pipe to my ffmpeg? can you show me more detail?

i plan on giving away the streamer for everyone once i get it figured out

Re: newb needs help with transcoding folder

PostPosted: Sat May 05, 2012 6:28 pm
by will
It means serviio will call whatever you put there instead of its own ffmpeg process.

As for what it will do, well whatever you want :) viewtopic.php?f=5&t=5806&p=42051&hilit=ffmpeg+wrapper#p42051 shows some examples as does this viewtopic.php?f=3&t=5853&p=42176&hilit=ffmpeg+wrapper#p42176 Others have used it to fix the aspect ratio on some tvs etc..

You can either call your ffmpeg directly, however, its more likely that you will want to change a few of the options first, in which case you would need a short script, as your on windows bash or perl would be the easiest. To help I would have to get a better understanding for what you want to achive. When the content is saved to a file what do you want to happen? For live steams, if it gets saved to a file, rather then stored in a memory buffer, then serviio won't be able to send it to your device as it won't be looking in the right place.

Re: newb needs help with transcoding folder

PostPosted: Sat May 05, 2012 7:05 pm
by dynamitemedia
will wrote:When the content is saved to a file what do you want to happen? For live steams, if it gets saved to a file, rather then stored in a memory buffer, then serviio won't be able to send it to your device as it won't be looking in the right place.


that is why i was hoping to do something where if i want to stream normally so serviio will find it... the 2nd option is to stream to my ROKU. was just going to add this option in the web GUI

like stream normally click the normal serviio options etc and stream to ROKU or ios devices click on another link or button

ex:

1.) button or link # 1 stream to your device
2.) button or link # 2 stream to your ROKU or iOS devices ( ipad, iPod, iPhone)

or just make it an option to stream one way or another...

going to check out what you sent me to see what i can do...

Re: newb needs help with transcoding folder

PostPosted: Sun May 06, 2012 7:44 am
by will
OK. I'm still not sure why you need to use a different ffmpeg/why you cannot set up a profile for ROKU / iOS to do most of the hardwork. But have a go and post back if you need suggestions.

Re: newb needs help with transcoding folder

PostPosted: Sun May 06, 2012 10:45 pm
by dynamitemedia
the roku needs h.264 and aac and for live streaming just like ios needs HLS streaming protocol

From searching the forums it doesn't seem those specs are available in the regular serviio settings thus i need to use mine. or if i am wrong please let me know...

my ffmpeg pipes out to my segmenter that cuts up the file into the .ts parts needed for the .m3u8 playlist to play in Roku. the segmenter also creates and cleans up the .ts files...

if i am wrong please let me know, i read the other posts and contacted the user but still no repsonse.

the main thing i want to do is watch live, local or online streams on my ROKU. i need that in HLS streaming . so i need to change a few settings and pipe it to my segmenter to work.

i would also like to watch on my Google Tv but same issue not the correct settings... is it possible to have this set up to check profiles and use the correct set of ffmpeg and/or ffmpeg settings? so that it will still work with the console

example:
Roku profile will use one set of ffmpeg commands and pipe to Segmenter(mine)
Google TV profile will use another FFmpeg commands (mine)

the rest just use the normal ffmpeg

Re: newb needs help with transcoding folder

PostPosted: Mon May 07, 2012 9:49 am
by will
Ok this is probably a way to do it then. You will need a way to detect when you should be calling your ffmpeg, rather than the normal one, easiest would be to set up dummy profiles with settings than no one would normally use.

Re: newb needs help with transcoding folder

PostPosted: Mon May 07, 2012 11:55 pm
by dynamitemedia
yes i was thinking the profiles

HLS Live streaming (roku, ipod,iphone ipad)
H.264 Streaming (anything that needs h.264 and aac)


could you help write the bat for the wrapper and dummy settings for the ffmpeg and i can work on it from there?

I amn just not 100 % where to start but once i see an example i think can go from there...

i will upload the updated ffmpeg and segmenter for others to use as well, once it is working. I have a friend who can help with a private Roku Channel as well so people can watch their videos...

in fact going to get it started asap!!

Re: newb needs help with transcoding folder

PostPosted: Wed May 09, 2012 8:21 pm
by siriusblack
im very new to this

sorry if the question sounds stupid

ive been trying to get up ffmpeg up on my computer so i can check sopcast cause its stutterinng

what i done so far was

on the start up i typed in cmd

then i put in cd"\programe files\serviio\lib"

ffmpeg,exe-i "c:mark\documents\sopcast.avi"

it did not work any advise would be appreciated


im using windows7 also thats were my sopcast is keeped

thanks

Re: newb needs help with transcoding folder

PostPosted: Thu May 10, 2012 7:18 am
by will
Only just saw your posts. As for writing the wrapper for you, that cannot be done until you have an idea for what parameters serviio will generate, and what you will need to do to them to get your ffmpeg to work.

For the dummy profile, just copy a really simple one that does as close to what you want as possiable, but then say set the audio bitate to 10 so that it can be easily located.

"c:mark\documents\sopcast.avi"

did you difinately use C:\mark\.....

Can you run through all the steps and then paste the full output of command prompt into code tags.

Where did you get this version of ffmpeg from, ideally if you had the src/diff if you merged it into a nerver version of ffmpeg, then would there be a need for having to call two different versions?

Anyway, if you want more help you will need to post some example commandline calls to ffmpeg to show what is different.

Re: newb needs help with transcoding folder

PostPosted: Thu May 10, 2012 10:31 am
by siriusblack
THANKS FOR REPLYING SO QUICKLY

SORRY BOUT THAT I WILL KEEP MY POST ON THE THREADS

I AM SORRY ABOUT THIS

CAN YOU PLZ WRITE AN EXAMPLE OF WHAT I SHOULD WRITE ON CMD USING THE INFORMATION I SENT YOU

SO IT WOULD BE SOME THING LIKE THIS

cd "\programe files\serviio\lib" ffmpeg.exe -i "c:\users\mark\documents\sopcast.avi"

were would i put the x plz

THANKS AGAIN