Transcoding to stream in mp4 instead of flv

Need help? Post your questions here.

Moderator: moderators

Transcoding to stream in mp4 instead of flv

Postby mherber2 » Tue Jan 25, 2011 10:07 pm

Hello All,

I am semi new to Subsonic but have read that streaming in MP4 is usually better then FLV due to compression. I have done quite a bit of research to learn about transcoding but I am not able to create my own transcoders to do what I want. Does anyone know how to stream an avi file in mp4 format?

Thank you for any assistance you can provide.
mherber2
 
Posts: 6
Joined: Tue Jan 25, 2011 9:59 pm

Postby GJ51 » Wed Jan 26, 2011 12:31 am

I haven't tried it, but in that ffmpeg can read and convert both formats, I would guess that you could just change the transcoding table. Look up the avi > flv and change it to mp4.

Settings/Transcoding

Don't forget to hit the "Save" button on the bottom, you may need to scroll down.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby mherber2 » Wed Jan 26, 2011 6:12 am

Hello,

My current transcoding for avi is as follows:

avi>flv|avi|flv|ffmpeg -re -y -i %s -ar 44100 -sameq -f flv -|no step two|

when changing it to this:

avi>mp4|avi|mp4|ffmpeg -re -y -i %s -ar 44100 -sameq -f mp4 -|no step two|

I receive this error in the media player:

Video not found or access denied:
http://myip/stream?player=2&pathUtf8Hex=2f6d6564

and this error in the /var/subsonic/subsonic.log:

(/var/subsonic/transcode/ffmpeg) Could not write header for output file #0 (incorrect codec peramiters ?)

note: This is version 4.2 (for the old player). Also the transcoding used for avi>flv works for flv.

Please let me know if there is any other information I can provide. Thank you for your help!
mherber2
 
Posts: 6
Joined: Tue Jan 25, 2011 9:59 pm

Postby stozher » Wed Jan 26, 2011 6:40 am

MP4 transcoding on the fly isn't allowed. Encoders need to write header at beginning of file after end of encoding process but beginning already in the past of streaming...
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby mherber2 » Wed Jan 26, 2011 7:22 am

Thank you for this information! The reason I wanted to do this was for the better compression and faster buffering. Currently, my buffer is loading in real time. This is preventing me from jumping ahead in videos and also occasonal buffering moments. I have already adjusted my player file and added the bufferlength. Would you be able to help with this as well?
mherber2
 
Posts: 6
Joined: Tue Jan 25, 2011 9:59 pm

Postby stozher » Wed Jan 26, 2011 7:44 am

Encode this files in MP4 and uncheck Default and Enabled in MP4 transcoding row... see transfer from my site (AAC audio in MP4 container).
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby mherber2 » Fri Jan 28, 2011 2:29 am

Hello,

Im sorry, I do not understand how you setup your player to allow jumping around. Could you send me some instructions for me to replicate your player? Thank you for your help, it is greatly appreciated.
mherber2
 
Posts: 6
Joined: Tue Jan 25, 2011 9:59 pm

Postby stozher » Fri Jan 28, 2011 11:35 am

Use external program like FFmpeg and encode all files to MPEG-4 with AAC or MP3 Stereo Audio...

Step 1: ffmpeg -v 0 -ss %o -async 1 -i %s -f flv -b %bk -r 30 -s %wx%h -acodec copy -

See also: http://forum.subsonic.org/forum/viewtopic.php?p=20684#20684

Read all posts and links: http://forum.subsonic.org/forum/viewtopic.php?p=19425#19425
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria


Return to Help

Who is online

Users browsing this forum: No registered users and 38 guests