Video transcoding

Tutorials, tips and tricks.

Moderator: moderators

Video transcoding

Postby BrianDelShasta » Wed Oct 01, 2008 3:35 am

Has anyone had any luck using ffmpeg or any other transcoder to successfully transcode video *with* sound? I can get the video to work fine, I just can get any audio packets to send.
BrianDelShasta
 
Posts: 116
Joined: Tue Jun 03, 2008 4:45 am
Location: USA

Postby jigsaw » Wed Oct 01, 2008 6:45 pm

I did a quick search in the forum and found two hits:

http://forum.subsonic.org/forum/viewtop ... ght=ffmpeg

http://forum.subsonic.org/forum/viewtop ... ght=ffmpeg

Try reading them and see if they give you your answers:)
Currently without Subsonic due to hardware failure :(
User avatar
jigsaw
 
Posts: 242
Joined: Sat Oct 13, 2007 12:01 pm
Location: Stavanger, Norway

Postby kapz » Thu Oct 02, 2008 6:00 pm

Has anyone tried transcoding mp4 videos (h.264/AAC)? I have started to archive my DVD collection and the movie sizes range between 1.2-1.6 gigs (sometimes much more, or much less), it depends on the quality of the source. But the goal was to make perfect quality that would look like a DVD on a 60" TV.

The files stream with subsonic/VLC, but with ISP's adding bandwidth caps, it would be nice to reduce the size.
Paid Subsonic user
----
Love my unRaid (~9.5TB): [url=http://lime-technology.com/forum/index.php?topic=2031.msg40351#msg40351]Pictures Here (Reply #82)[/url]
User avatar
kapz
 
Posts: 124
Joined: Wed Jun 21, 2006 7:23 pm

Postby BrianDelShasta » Sun Oct 05, 2008 11:55 pm

Jigsaw, thank you, but I was already aware of those threads. I've even posted in one of them awhile back ;) Unfortunately, I have not been able to find a solution. I can get the transcoded video to work, but no sound.
BrianDelShasta
 
Posts: 116
Joined: Tue Jun 03, 2008 4:45 am
Location: USA

Re: Video transcoding

Postby jamart3d » Tue Oct 21, 2008 10:34 pm

BrianDelShasta wrote:Has anyone had any luck using ffmpeg or any other transcoder to successfully transcode video *with* sound? I can get the video to work fine, I just can get any audio packets to send.

I'm getting no sound when I try to play a link on the same machine that runs
subsonic, (using vlc as the player) but when I play the link on another machine I get sound and video
with..
ffmpeg -i %s -f avi -

but now I'm trying to use vlc to do video transcoding..
I've copied vlc and all it's subdirs into the transcode dir

the log show's vlc starting, but it is having trouble passing the stream back to subsonic I think?

here is the last thing I tried
vlc -I dummy -vv %s :sout=#transcode{vcodec=DIV3,vb=192,scale=.5,acodec=mpga,ab=32,channels=1}:duplicate{dst=std{access=file,mux=asf,dst=-}}
User avatar
jamart3d
 
Posts: 5
Joined: Tue Oct 14, 2008 10:50 pm

Postby BrianDelShasta » Wed Oct 22, 2008 12:15 pm

That's odd, I wonder if you're using a different version of ffmpeg?

When I use:
ffmpeg -i %s -f avi -
I get no audio packets at all, when streaming locally or remotely. I've tried multiple version of VLC.

When I use:
ffmpeg -i %s -f avi -b 128k -
to actually downsample the video, I get the same results: no audio packets.

However, when I run the same ffmpeg command from the prompt and transcode a file, I can get video/audio. It's very frustrating.
BrianDelShasta
 
Posts: 116
Joined: Tue Jun 03, 2008 4:45 am
Location: USA

Postby jamart3d » Thu Oct 23, 2008 6:31 pm

try to play the stream with mplayer, or something else than vlc
I can confirm no sound when playing from vlc on another machine as well
something with ffmpeg I think.. or the -f avi format...

these work well enough for me if I play with mplayer..

ffmpeg -v 1 -i %s -f avi -s qvga -b 128kb -ab 32kb -
ffmpeg -v 1 -i %s -f avi -s qvga -b 128kb -g 300 -bf 2 -ab 32kb -ac 1 -
ffmpeg -v 1 -i %s -f avi -s qqvga -b 128kb -ab 32kb -ac 1 -
ffmpeg -v 1 -i %s -f avi -s qvga -b 256kb -aspect 16:9 -croptop 60 -cropbottom 60 -ab 96kb -

I've been trying to up the rez, fiddle with formats..
but haven't found a better sweet spot yet..

ffmpeg is pretty nice, but I'm used to streaming with vlc, I tuned vlc
to deliver nice vid either over 3g or into work

p.s. once your getting something good, change the -v 1 to -v 0, to reduce verbosity of ffmpeg
User avatar
jamart3d
 
Posts: 5
Joined: Tue Oct 14, 2008 10:50 pm

Postby BrianDelShasta » Sun Oct 26, 2008 10:57 pm

Hmm, interesting. I am able to get sound using mplayer. I'll try and figure out what's up with VLC now that I know the stream is attempting to send audio. Thanks!
BrianDelShasta
 
Posts: 116
Joined: Tue Jun 03, 2008 4:45 am
Location: USA

Postby BrianDelShasta » Mon Oct 27, 2008 12:13 am

Okay, I finally got sound for transcoded video in VLC!
VLC aparently just doesn't like the -f avi swtich in ffmpeg because when it sees it, it dumps the avi module and then doesn't know what to do with any audio packets.

ffmpeg -i %s -f mpeg -b 128k -

now it streams in mpeg instead of avi, but it works.
Odd thing is, I thought this was one of the first things I tried, but I guess not.
BrianDelShasta
 
Posts: 116
Joined: Tue Jun 03, 2008 4:45 am
Location: USA

Postby jamart3d » Tue Oct 28, 2008 1:32 am

cool, I got this to feed decent video/audio to vlc

ffmpeg -v 0 -i %s -f asf -s qvga -b 384kb -ab 56kb -ac 2 -

this is better :
mpg>asf
ffmpeg1 -v 0 -i %s -f asf -vcodec mpeg4 -s qvga -b 512kb -ab 56kb -ac 2 -
User avatar
jamart3d
 
Posts: 5
Joined: Tue Oct 14, 2008 10:50 pm

Postby samotano » Fri Dec 12, 2008 1:34 am

Glad to hear to some people are having success trasncoding video (last time I checked on this forum about a year ago there were no successes).

Can someone explain how those arguments are to be entered in the transcoding windows of subsonic? (i.e. Name, Convert from, convert to, step1, step2, step3).

I am specifically looking to lower avi resolution and perhaps using H.264 on the fly
samotano
 
Posts: 14
Joined: Fri Mar 30, 2007 9:31 pm

hello I'm new to this

Postby Bishop05 » Wed Apr 08, 2009 6:29 pm

I really would lime to stream AVI file via subsonic.
I'm a bit confused on how to configure FFMPEG to convert the files.

I'm streaming to a extermal player VLC.
any help would be great.
Bishop05
 
Posts: 1
Joined: Wed Apr 08, 2009 6:08 pm

Postby kyds3k » Thu Apr 23, 2009 3:49 pm

i'm VERY interested in doing this!!! access to my entire anime collection remotely . . . yesssss . . .
kyds3k
 
Posts: 1
Joined: Thu Apr 23, 2009 3:24 pm

Postby arcangel » Wed Aug 19, 2009 7:24 pm

I've been lurking around the forums for a while and decided what the he11. I'm trying to get more information on what it takes to set up streaming video in subsonic. I have a basic but limited understanding of what it takes but i haven't been able to set it up correctly. I get just a second or two of video and then it disappears. That is when i try the information listed above. Any more help here would be greatly appreciated

I ran across an article this morning:

http://www.informationproductsinc.com/b ... erver.aspx

Containing information i haven't seen posted on the forums. I haven't had a chance to try it, but i'm looking forward to it. Who knows maybe it will help someone else.
arcangel
 
Posts: 1
Joined: Wed Aug 19, 2009 7:15 pm

Postby lemay86 » Mon Aug 31, 2009 7:20 am

arcangel wrote:I've been lurking around the forums for a while and decided what the he11. I'm trying to get more information on what it takes to set up streaming video in subsonic. I have a basic but limited understanding of what it takes but i haven't been able to set it up correctly. I get just a second or two of video and then it disappears. That is when i try the information listed above. Any more help here would be greatly appreciated

I ran across an article this morning:

http://www.informationproductsinc.com/b ... erver.aspx

Containing information i haven't seen posted on the forums. I haven't had a chance to try it, but i'm looking forward to it. Who knows maybe it will help someone else.


In that link the avi > flv conversion command should work for you though you might want to add -ac 2 to force the videos to 2 channel audio. For example:
Code: Select all
ffmpeg -re -y -i %s -ar 44100 -ac 2 -f flv -


Also if you have a slow pc you might run into the video playing faster then your system can transcode it if that happens then the video in flash player will stop and restart thinking it had reached the end. To prevent this you can start the video and pause it for a little while then continue playing the video.
lemay86
 
Posts: 22
Joined: Sat May 09, 2009 8:24 am

Next

Return to Tutorials

Who is online

Users browsing this forum: No registered users and 11 guests