Transcoding Video to FLV for use in new JWPlayer

Need help? Post your questions here.

Moderator: moderators

fix to ffmpeg conversion string

Postby lemay86 » Sat May 09, 2009 8:31 am

braddyo wrote:Oh, HAH! Silly me. In the player settings I have to activate the new transcoders, it's not enough to enable them in the transcoding section.

So, now that THAT's squared away, I'm trying to transcode a h264 film in a avi container.

Nothing happens. The log says:

2/4/09 10:40:31 PM MST] INFO PlaylistInputStream Opening new song d:\documents\Videos\movies\Action Adventure\300.avi
[2/4/09 10:40:31 PM MST] DEBUG TranscodeInputStream Starting transcoder: [d:\inetpub\wwwroot\subsonic\transcode\ffmpeg] [-re] [-y] [-i] [d:\documents\Videos\movies\Action Adventure\300.avi] [-ar] [44100] [-f] [flv] [-]
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) FFmpeg version SVN-r15815, Copyright (c) 2000-2008 Fabrice Bellard, et al.
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) configuration: --enable-memalign-hack --enable-postproc --enable-swscale --enable-gpl --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libxvid --disable-ffserver --disable-vhook --enable-avisynth --enable-pthreads
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) libavutil 49.12. 0 / 49.12. 0
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) libavcodec 52. 3. 0 / 52. 3. 0
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) libavformat 52.23. 1 / 52.23. 1
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) libavdevice 52. 1. 0 / 52. 1. 0
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) libswscale 0. 6. 1 / 0. 6. 1
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) libpostproc 51. 2. 0 / 51. 2. 0
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) built on Nov 13 2008 10:28:29, gcc: 4.2.4 (TDM-1 for MinGW)
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) [NULL @ 0x141b700]Invalid and inefficient vfw-avi packed B frames detected
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Input #0, avi, from 'd:\documents\Videos\movies\Action Adventure\300 [Edited...kinda].avi':
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Duration: 01:51:41.06, start: 0.000000, bitrate: 1434 kb/s
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Stream #0.0: Video: mpeg4, yuv420p, 656x272 [PAR 1:1 DAR 41:17], 23.98 tb(r)
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Output #0, flv, to 'pipe:':
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Stream #0.0: Video: flv, yuv420p, 656x272 [PAR 1:1 DAR 41:17], q=2-31, 200 kb/s, 23.98 tb(c)
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Stream #0.1: Audio: libmp3lame, 44100 Hz, 5.1, s16, 64 kb/s
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Stream mapping:
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Stream #0.0 -> #0.0
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Stream #0.1 -> #0.1
[2/4/09 10:40:31 PM MST] DEBUG InputStreamReaderThread (d:\inetpub\wwwroot\subsonic\transcode\ffmpeg) Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
[2/4/09 10:40:33 PM MST] INFO StreamController Stopping stream bradford@69.169.136.242:54858 (VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team)


The two lines that are fishy I've bolded. I'm not sure about the last one, which looks like is what kills.

When I try to transcode a h264 packed in mp4 container, all I get is the following:

[2/4/09 10:43:46 PM MST] INFO PlaylistInputStream Opening new song d:\documents\Videos\movies\Action Adventure\Chain Reaction.mp4
[2/4/09 10:43:46 PM MST] DEBUG TranscodeInputStream Starting transcoder: [d:\inetpub\wwwroot\subsonic\transcode\ffmpeg] [-re] [-y] [-i] [d:\documents\Videos\movies\Action Adventure\Chain Reaction.mp4] [-ar] [44100] [-f] [flv] [-]
[2/4/09 10:43:51 PM MST] INFO StreamController Stopping stream bradford@69.169.136.242:54867 (VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team)


and windows reports ffmpeg.exe crashed. The first time it took a while for ffmpeg to crash, while subsequent crashes happened sooner and sooner after starting the transcode.

I'm going to try a different build of ffmpeg and also trying a full conversion (not streaming) to another file to see if that works.

Are you doing this on Windows of Linux?


That first error message you were getting from ffmpeg was probably due to the 5.1 sound try adding -ac 2 to you ffmpeg conversion command it will force it to 2 channel audio.

The command I use is:
/usr/bin/ffmpeg -re -y -i %s -ar 44100 -ac 2 -sameq -f flv -

That command works for the avi's and mkv's I have on my system.

liveman wrote:Yh, I have tried streaming .flv files and the sound will play but the cideo won't. Even in fullscreen mode? Do I have to set up transcoding for this?

How do I go about enabling the video of an .flv file?

PS- Thanks for your previous fast response.


Have you followed the instructions to change the player height? When I leave my height at 20 it wont play the video but sound is fine. Just set your height above 20 and it should work.
lemay86
 
Posts: 22
Joined: Sat May 09, 2009 8:24 am

Postby shayaknyc » Thu May 21, 2009 5:13 pm

Hey,

This works great! Anyone know how to pass a param to allow "rewind" and "fastforward" or even "prev" and "next" buttons to appear so that I can go to the next song on the playlist from the jwplayer?

Thanks!
shayaknyc
 
Posts: 1
Joined: Thu May 21, 2009 5:11 pm

Postby thenewbie » Fri May 22, 2009 1:29 pm

I can't get streaming to work with the web player.

VLC streaming works perfectly and the ffmpeg settings (ffmpeg -re -y -i %s -ar 44100 -ac 2 -sameq -f flv -) work perfectly, too. But the webplayer won't play any flv files (even "real" .flv files - I used this sample (http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html)

When I start playback (fullscreen or minimized) nothing happens - the play button turns to a pause button and quickly turns back to a play button.

In the log there's only the message "admin started playback" and a second later "admin stopped playback".

Any suggestions? I've already tried the "hack" to add one pixel, but I can't get a video/audio output, though.:(

Thx in advance
thenewbie
 
Posts: 2
Joined: Fri May 22, 2009 1:04 pm

transcoding

Postby freeflysage » Mon Aug 24, 2009 9:36 pm

I believe I have this all set up, and the logs show it transcoding from avi to flv but all i get in the flash window is an animated circle counting the loading. It appears to transcode the entire file, but I never get video.

Anyone else with this problem?

running ffmpeg from todays svn build and jw flash 4.5.230.

transcode options of ffmpeg -re -y -i %s -b 512kb -ar 44100 -ac 2 -sameq -f flv -

Also the streams play in VLC if i use external player with playlist...

Thanks

/sm
freeflysage
 
Posts: 6
Joined: Thu Aug 20, 2009 9:59 pm

Postby lemay86 » Tue Aug 25, 2009 5:32 pm

thenewbie wrote:I can't get streaming to work with the web player.

VLC streaming works perfectly and the ffmpeg settings (ffmpeg -re -y -i %s -ar 44100 -ac 2 -sameq -f flv -) work perfectly, too. But the webplayer won't play any flv files (even "real" .flv files - I used this sample (http://www.mediacollege.com/adobe/flash/video/tutorial/example-flv.html)

When I start playback (fullscreen or minimized) nothing happens - the play button turns to a pause button and quickly turns back to a play button.

In the log there's only the message "admin started playback" and a second later "admin stopped playback".

Any suggestions? I've already tried the "hack" to add one pixel, but I can't get a video/audio output, though.:(

Thx in advance


hmm strange. You obviously added the .flv to the Music mask setting and that should be all that is required to play the .flv.

I couldn't test those files due to wget failing on them and me being to lazy to ftp into my server, but I used this file:
http://www.mifos.org/product/demo-the-s ... _demo4.flv
and it played perfectly. I'm using the standard JW player that came with subsonic 3.6. I'm assuming its the same as subsonic 3.7's flash player version if that is what your using?

Also are you using apaches proxyPass or lighttpd's mod_proxy to pass requests from domain.com to domain.com:subsonic_port? I noticed when I did that in lighttpd my files that I transcoded would transcode completely before they played (a long loading circle). This was for the standalone subsonic. This might be your problem as well freeflysage or at least sounds like it.
lemay86
 
Posts: 22
Joined: Sat May 09, 2009 8:24 am

Re: transcoding

Postby rishel » Thu Aug 27, 2009 12:35 am

freeflysage wrote:I believe I have this all set up, and the logs show it transcoding from avi to flv but all i get in the flash window is an animated circle counting the loading. It appears to transcode the entire file, but I never get video.

Anyone else with this problem?

running ffmpeg from todays svn build and jw flash 4.5.230.

transcode options of ffmpeg -re -y -i %s -b 512kb -ar 44100 -ac 2 -sameq -f flv -

Also the streams play in VLC if i use external player with playlist...

Thanks

/sm


I'm having this exact problem. I'm using Windows Server 2008 running as a standalone installation and the latest build (18639) of ffmpeg here http://tripp.arrozcru.org/.

If I try to play any video in the web player (including streaming an flv file directly without transcoding), the percentage counter spins and counts up to 100, resets to 0 and starts counting again (repeating this indefinitely). Also, if I use the external player setting, both media player classic and vlc immediately give up.

When I try to play an avi file (transcoded to flv using 'ffmpeg -re -y -i %s -ar 44100 -ac 2 -sameq -f flv -'), media player classic reports the following:

Code: Select all
http://xxx.xxx.xxx:nnnn/stream?player=12&suffix=.flv::Output

Media Type 0:
--------------------------
Unknown

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Stream {E436EB83-524F-11CE-9F53-0020AF0BA770}
subtype: Unknown GUID Name {F2FAC0F1-3852-4670-AAC0-9051D400AC54}
formattype: TIME_FORMAT_NONE {00000000-0000-0000-0000-000000000000}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 1
cbFormat: 0


Playing an flv file directly (I've added flv to the music mask list), I get the exact same error. If I attempt to access the stream URL directly in my web browser (http://xxx.xxx.xxx:nnnn/stream?player=12&suffix=.flv in the example above), my browser seems to download quite a lot of data, so it seems like subsonic is sending the stream. Furthermore, executing the ffmpeg transcode from a command prompt and redirecting the output to a file results in an .flv file which plays fine locally.

Also, attempting to play an avi file using media player classic without any transcoding results in media player classic saying "Opening..." without ever starting the video (even for extremely small (~33kb) videos).

However, if I set the player to external player with playlist, everything plays fine (both transcoded and not). Ideally, I'd love to get the web player working both so that I could watch videos on any computer with a web browser and flash installed without having to depend on additional software, and so that I don't have to juggle several subsonic players with different settings depending on the type of content I'm playing. I have also tried doing a fresh installation of subsonic on a computer running windows server 2008 R2, and I get the same behavior.

It seems like maybe there is some sort of header/protocol issue that gets in the way of players properly determining the content type being streamed when subsonic maintains control of the playlist, but I could be wrong. Does anybody have any suggestions as to what I might try to get this working properly?
rishel
 
Posts: 1
Joined: Wed Aug 26, 2009 11:55 pm

you can try it

Postby yp19840812 » Tue Oct 06, 2009 2:39 am

This DVD Creator is the most easy-to-use one that I have ever used. I love the fast speed of the conversion and the high customization, which fully satisfy my needs.
http://www.flvdvd.com/flv-to-dvd-converter/
yp19840812
 
Posts: 1
Joined: Tue Oct 06, 2009 2:38 am

Re: Transcoding Video to FLV for use in new JWPlayer

Postby eureka » Sat Nov 21, 2009 12:09 pm

Hi Guys,
First off. This is really funny but that link about Jinzora is actually to my website ;)

Also, I may have found a solution to this to get the Flash Streaming + ffmpeg working in release 3.8 for SubSonic. Im still testing out some bugs to see if its stable or not but expect a post here and on my site by tomorrow evening = ) (Saturday)


By the way, Love the software. Jinzora is nice but subsonic seems so much cleaner..
-E


braddyo wrote:Hello,

I've been toying with ffmpeg (windows binary found here) to get it to transcode any of my .mp4, .avi, .mpg videos to flv. Many of my videos are HD and around 6-10GB. FFMPEG does support on the fly transcoding and from what I understand can output to stdout. I have a rule set up in transcoding that is "ffmpeg -re -y -i %s -f flv" but it doesn't work. All my log says that it starts loading the 'song' and nothing else happens. My bandwidth goes crazy, but I don't know what it's doing.

Does anyone here have experience with ffmpeg? The following page shows how to get it working with Jinzora, and might be a good starting point.

Bradford
eureka
 
Posts: 1
Joined: Sat Nov 21, 2009 12:07 pm

Re: Transcoding Video to FLV for use in new JWPlayer

Postby wuhaa » Fri Dec 04, 2009 10:45 pm

eureka wrote:Also, I may have found a solution to this to get the Flash Streaming + ffmpeg working in release 3.8 for SubSonic. Im still testing out some bugs to see if its stable or not but expect a post here and on my site by tomorrow evening = ) (Saturday)


Have you had any luck with 3.8? I was interested in mod-ing my subsonic with the jw player and flv streaming.

Thanks,
wuhaa
 
Posts: 14
Joined: Mon Jul 20, 2009 5:45 pm

Postby susanjq » Thu May 27, 2010 6:16 am

Want to burn your video files to dvd for play on home player or PC? 4Meida FLV to DVD converter is a world-know dvd conversion and burning program whch can help you convert and burn video files from FLV, AVI, MP4, MPG, MPEG, 3GP, WMV, ASF, RM, RMVB, DAT, MOV, etc.to DVD disc, DVD folder and ISO files. DVD size:DVD-R4.5G AND DVD-R9.0G supports. Adding background music, photos, cropping, trimming and video effect adjusting, setting watermark, etc, more advanced video settings provided here...
Image
susanjq
 
Posts: 2
Joined: Mon Apr 12, 2010 5:46 am

vlc converter

Postby comeonbaby » Fri May 28, 2010 3:40 am

If you happenly want to convert vlc files, I strongly recommend you this powerful VLC converter. This best VLC converter supports many output video formats like avi, mp4, flv, wmv, mpeg, mkv, mov, dvd, vob, etc and audio formats like mp3, wma, wav, aac, etc.

What's more, this VLC converter has a strong edit function, you are able to adjust video image, split video and crop video, merge and snapshot are also supported. It is the one you never can miss.

Free download VLC Converter and try to find more about it!!!
comeonbaby
 
Posts: 1
Joined: Fri May 28, 2010 3:38 am

Postby voker » Tue Jun 01, 2010 9:52 am

as for me I prefer Video to Flash Converter (geovid)
voker
 
Posts: 2
Joined: Tue Jun 01, 2010 9:51 am

Postby susanjq » Thu Jun 03, 2010 9:03 am

MP4 to FLV Converter is specially designed to convert mp4 video to flv format with super fast speed and high definition. Meanwhile, this mp4 converting tool can also convert many other popular formats to flv format, such as wmv, mpeg, avi, mkv, mp3, wav, ogg , and wma, etc.
Image
susanjq
 
Posts: 2
Joined: Mon Apr 12, 2010 5:46 am

Postby yangyang » Mon Sep 13, 2010 7:28 am

Flash Video is a container file format used to deliver video over the Internet using Adobe Flash Player versions 6–10. Flash Video content may also be embedded within SWF files.As a standalone .FLV file. Although Flash Video files are normally delivered using a Flash player for control, the .FLV file itself is only playable with an FLV player.
So if you want to watch the flash videos on your potable player you must use softwere to convert them.Next I will Recommend a FLV to DVD Converter to you.

Image

FLV to DVD Converter can convert FLV YouTube video files to all types of DVD files Sometimes we call it FLV Video to DVD Converter. This FLV to DVD Converter gives you the best and the fastest way to convert FLV and other AVI, MPEG, DivX, DV, VOB, and WMV to DVD files such as DVD Folder and ISO. Besides converting FLV to DVD file, you can also burn video files to DVD discs for you to enjoy on your home DVD players.

This FLV to DVD Converter allows you to create a stylish DVD menu with customized background music/picture, menu topic, and opening film. Moreover, this FLV to DVD Converter provides powerful edit functions, such as Trim, Crop, merge, replace audio tracks, and add subtitles.

What's more, this FLV video to DVD Converter is very easy to use. Just a few clicks, the whole conversion is finished. It's really worth to free download FLV to DVD Converter software and have a try.

User Guide: How to Convert DVD to FLV,How to Burn FLV to DVD

Other tools:
FLV to DVD Burner,FLV to DVD Creator,DVD to FLV Ripper,FLV to MPEG4 Converter,
yangyang
 
Posts: 2
Joined: Mon Sep 13, 2010 7:23 am

Postby yangyang » Mon Sep 13, 2010 7:29 am

Flash Video is a container file format used to deliver video over the Internet using Adobe Flash Player versions 6–10. Flash Video content may also be embedded within SWF files.As a standalone .FLV file. Although Flash Video files are normally delivered using a Flash player for control, the .FLV file itself is only playable with an FLV player.
So if you want to watch the flash videos on your potable player you must use softwere to convert them.Next I will Recommend a FLV to DVD Converter to you.

Image

FLV to DVD Converter can convert FLV YouTube video files to all types of DVD files Sometimes we call it FLV Video to DVD Converter. This FLV to DVD Converter gives you the best and the fastest way to convert FLV and other AVI, MPEG, DivX, DV, VOB, and WMV to DVD files such as DVD Folder and ISO. Besides converting FLV to DVD file, you can also burn video files to DVD discs for you to enjoy on your home DVD players.

This FLV to DVD Converter allows you to create a stylish DVD menu with customized background music/picture, menu topic, and opening film. Moreover, this FLV to DVD Converter provides powerful edit functions, such as Trim, Crop, merge, replace audio tracks, and add subtitles.

What's more, this FLV video to DVD Converter is very easy to use. Just a few clicks, the whole conversion is finished. It's really worth to free download FLV to DVD Converter software and have a try.

User Guide: How to Convert DVD to FLV,How to Burn FLV to DVD

Other tools:
FLV to DVD Burner,FLV to DVD Creator,DVD to FLV Ripper,FLV to MPEG4 Converter,
yangyang
 
Posts: 2
Joined: Mon Sep 13, 2010 7:23 am

PreviousNext

Return to Help

Who is online

Users browsing this forum: No registered users and 10 guests