VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Member
    Join Date
    Jun 2007
    Location
    United States
    Search Comp PM
    I'm trying to convert an .mp4 file into an .flv file and am having some success using mencoder. The .flv file I create opens just fine in VLC, but my ultimate goal is to embed it into a .swf player embedded into a webpage.

    I've tried using some of the .swf .flv players and they don't play my converted files. I'm not sure why...anyone else have any luck??



    mencoder legoshay.mpeg -ffourcc FLV1 -oac lavc -ovc lavc -lavcopts vcodec=flv:acodec=mp3 -o sample.flv
    Quote Quote  
  2. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    what swf flv players have you tried?
    Quote Quote  
  3. Member
    Join Date
    Jun 2007
    Location
    United States
    Search Comp PM
    I've tried using flash_flv, flvplayer, and a friend of mine tried importing it into Adobe Flash and it said that it was an invalid file.

    The flv players I tried are attached with a sample of how to use them in a webpage.

    players.rar
    Quote Quote  
  4. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    Could you also post a short flv example?
    Quote Quote  
  5. Member
    Join Date
    Jun 2007
    Location
    United States
    Search Comp PM
    Attached

    sample.flv
    Quote Quote  
  6. Member
    Join Date
    Jun 2007
    Location
    United States
    Search Comp PM
    Originally Posted by 45tripp
    http://www.jeroenwijering.com/?item=Flash+Video+Player
    I need somethng that is free and command-line based. Plus, this one is very similar to one of the players that I posted (the controls look the exact same).

    Any other suggestions?
    Quote Quote  
  7. I'm a MEGA Super Moderator Baldrick's Avatar
    Join Date
    Aug 2000
    Location
    Sweden
    Search Comp PM
    I can't get it to work with my free flash players either.

    Maybe try use ffmpeg instead of mencoder.
    Quote Quote  
  8. Member
    Join Date
    Dec 2004
    Location
    Triptonia
    Search Comp PM
    I need somethng that is free and command-line based. Plus, this one is very similar to one of the players that I posted.
    15 euro for a commercial license?
    tried it then...
    Similar to what you've tested and were happy to use but not good enough?

    You've not created an flv file but an avi.
    try:
    mencoder legoshay.mpeg -o sample.flv -ffourcc FLV1 -of lavf -oac lavc -ovc lavc -lavcopts vcodec=flv:acodec=mp3 -lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es

    it's also better to use mp3lame for audio encoding rather than lavc

    gl
    Quote Quote  
  9. Originally Posted by fireserphant
    Attached

    sample.flv
    It's not Flash Video - it AVI container.


    Example syntax for MEncoder:

    mencoder.exe -ofps 25 input_file.avi -of lavf -lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es:format=flv -ovc lavc -lavcopts vcodec=flv:autoaspect:vbitrate=500:vqmin=2:vqmax=3 1:vme=5:mbd=1ubq=5:keyint=250 -af resample=22050:0:0,channels=2 -oac mp3lame -lameopts vbr=2:q=6:aq=2:highpassfreq=-1:lowpassfreq=-1 -o output_file.flv
    Example syntax for FFmpeg:

    ffmpeg.exe -i input_file.avi -vcodec flv -me full -me_range 16 -mbd 1 -qmin 2 -qmax 31 -b 500000 -r 25 -s 320x240 -refs 5 -acodec mp3 -ar 22050 -ac 2 -ab 128 ouput_file.flv
    And very simple:

    ffmpeg.exe -i input_file.avi output_file.flv
    Quote Quote  
  10. Member
    Join Date
    Jun 2007
    Location
    United States
    Search Comp PM
    Originally Posted by 45tripp
    I need somethng that is free and command-line based. Plus, this one is very similar to one of the players that I posted.
    15 euro for a commercial license?
    tried it then...
    Similar to what you've tested and were happy to use but not good enough?

    You've not created an flv file but an avi.
    try:
    mencoder legoshay.mpeg -o sample.flv -ffourcc FLV1 -of lavf -oac lavc -ovc lavc -lavcopts vcodec=flv:acodec=mp3 -lavfopts i_certify_that_my_video_stream_does_not_use_b_fram es

    it's also better to use mp3lame for audio encoding rather than lavc

    gl
    Thanks for your help. It worked great and solved my problem.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!