Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Repairing, splitting and merging media files (http://stream-recorder.com/forum/forumdisplay.php?f=19)
-   -  

Repairing FLV files by remuxing them with freeware FLV Extract and mp4box

(http://stream-recorder.com/forum/showthread.php?t=4605)

blimey 09-03-2009 01:15 PM

Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
The index of the saved .flv file can be off. This may cause playability issues with some .flv players.

You can remux the file into a .mp4 file quickly without any transcoding, and the index will be correct.

Get FLV Extract and mp4box.

Using FLV Extract, drag the saved .flv file from GetFLV to the FLV Extract window. It will demux into video and audio files, ending in .264 and .aac

Then, use mp4box to remux those files into an .mp4, like this:

Code:

mp4box.exe -add "filename.264:fps=23.976" -add "filename.aac" "filename_output.mp4"
Where "filename" is the name of the .264 and .acc files. The output .mp4 will play properly and have the correct time length.

borboleta 09-03-2009 07:15 PM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
Quote:

Originally Posted by blimey (Post 12922)
The index of the saved .flv file can be off. This may cause playability issues with some .flv players.

You can remux the file into a .mp4 file quickly without any transcoding, and the index will be correct.

Get FLV Extract and mp4box.

Using FLV Extract, drag the saved .flv file from GetFLV to the FLV Extract window. It will demux into video and audio files, ending in .264 and .aac

Then, use mp4box to remux those files into an .mp4, like this:

Code:

mp4box.exe -add "filename.264:fps=23.976" -add "filename.aac" "filename_output.mp4"
Where "filename" is the name of the .264 and .aac files. The output .mp4 will play properly and have the correct time length.

Great tutorial, blimey, I will try this method, it seems to me that the .mp4 file will have even better video and . acc audio than the original flv file. And I am sure it will play smoothly. Thanks for the help. It is always appreciated.

borboleta 09-04-2009 12:59 AM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
I have been trying to get my original file to remux to the .mp4 format. The video and the audio are out of sync. I tried different fps values, the .mp4 file video and audio do not synchronize . I tried fps at 23.976, 29.976 and the average value from FLVExtract. I must be inputting the wrong fps value.Thanks for your help.

borboleta 09-04-2009 01:40 AM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
Quote:

Originally Posted by blimey (Post 12930)
The framerate is either 23.976 or 29.970 for most hulu. I think all of the 3stooges are 23.976.

This method is for h264 source videos only. If the source video is VP6, this method won't work.

Thanks for your answer. I will try both fps and I will report the results. I have been trying the method in medium h264 and 1Mbps files.

blimey 09-04-2009 01:48 AM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
Those are working for me. Check the command line carefully and also watch the text displayed by mp4box to be sure it is using your input framerate (it defaults to 25). Also check the output video file to be sure the framerate is the same as what you had on the command line.

borboleta 09-04-2009 09:06 PM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
Quote:

Originally Posted by blimey (Post 12938)
I forgot to mention that when using rtmp.dll from 8.8.21, the index of the saved .flv file will be off. This may cause playability issues with some .flv players.

You can remux the file into a .mp4 file quickly without any transcoding, and the index will be correct.

I am sure you know of the freeware utility YAMB, the web site is: http://yamb.unite-video.com/, I tried it and it worked OK remuxing the file into a .mp4 file. The video and audio are synchronized.

I also have been lucky using the FileFactory utility you recommended, even though it uses transcoding. It does an excellent job., and in my case, the output file has greater video and audio quality than remuxing with Mp4box and YAMB. And I noticed less pixeling.
Thanks for the great help you have given us on this subject.

blimey 09-04-2009 10:31 PM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
Quote:

Originally Posted by borboleta (Post 12948)
I am sure you know of the utility YAMB, the web site is: http://yamb.unite-video.com/, I tried it and it worked OK remuxing the file into a .mp4 file. The video and audio are synchronized. I also have been lucky using the FileFactory utility you recommended, even though it uses transcoding. It does an excellent job., and in my case, the output file has greater video and audio quality than remuxing with Mp4box and YAMB. And I noticed less pixeling. Thanks for the great help you have given us on this subject.

Interesting. What format do you convert to with Format Factory?

borboleta 09-04-2009 11:34 PM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
Quote:

Originally Posted by blimey (Post 12949)
Interesting. What format do you convert to with format factory?

I use "All to MP4", and the program does it all, and I have tried all stream types, including the 1Mbps stream.

greenbook 01-14-2010 08:43 PM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
I have tried to use the FLV Extract/mp4box tactic, but everytime I attempt to remux the .avi and .mp3 files with mp4box, it fails. The log file is below. There seems to an importing error. I don't know how to fix this and make the remux work.

Code:

[19:35:58] : Yamb 2.1.0.0 beta 2 started !!!

[19:35:58] : OS type detection...Windows XP Home Edition x86 (version 5.1, Build 2600 : Service Pack 3)

[19:35:58] : MP4Box found... C:\Documents and Settings\User\Desktop\MP4Box.exe

[19:35:58] : Tagger found...C:\Documents and Settings\User\Desktop\MP4Box.exe

[19:35:58] : MKVextract found...c:\documents and settings\user\application data\yamb\mkvextract\mkvextract.exe

[19:35:58] : EAC3to found...c:\documents and settings\user\application data\yamb\eac3to\eac3to.exe

[19:36:19] : tests.mp3 loaded.

[19:36:22] : tests.avi loaded.

[19:37:00] : Creation of tests.mp4...

[19:37:00] : Command Line used for Creation : "C:\Documents and Settings\User\Desktop\MP4Box.exe" -add "C:\Documents and Settings\User\Desktop\tests.avi#video:fps=8.926" -add "C:\Documents and Settings\User\Desktop\tests.mp3" -itags tool="Yamb 2.1.0.0 [http://yamb.unite-video.com]" "C:\Documents and Settings\User\Desktop\tests.mp4"

[19:37:00] : File saved in C:\Documents and Settings\User\Desktop\

[19:37:01] :  Error importing C:\Documents and Settings\User\Desktop\tests.avi#video:fps=8.926: Feature Not Supported

[19:37:01] : Creation failed.

[19:37:01] : Total Time Elapsed...

[19:37:12] : Yamb 2.1.0.0 beta 2 closed.


Stream Recorder 01-14-2010 10:10 PM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
Quote:

Originally Posted by greenbook (Post 15371)
I have tried to use the FLV Extract/mp4box tactic, but everytime I attempt to remux the .avi and .mp3 files with mp4box, it fails. The log file is below. There seems to an importing error. I don't know how to fix this and make the remux work.

What video codec is used in your FLV files? How did you get AVI files from FLV files?

greenbook 01-15-2010 02:29 AM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
libavcodec? I am terribly sorry - I really don't know how to determine what video codec is used in my flv files. I'm not that technically advanced. I don't know if it's something prefigured in my Zoom Player, which is my default player for playing flv files. How can I find this out?

When I put the flv file into FLV Extract, and it does its thing, it gives me a AVI video file and a mp3 audio file. I should also report that the FLV Extract screen gives me this warning message:

"Suggested cropping: 2 pixels from right, 0 pixels brom bottom."

Don't know if this is something I should be worried about.

What's also interesting is that if I play the silent AVI files in one of my media players, they play slowly...almost like they're in slow motion, but they aren't really in slow motion.

Stream Recorder 01-15-2010 03:42 AM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
Quote:

Originally Posted by greenbook (Post 15380)
I really don't know how to determine what video codec is used in my flv files. I'm not that technically advanced. How can I find this out?

In VLC go to "Tools" -> "Codec information" (or just press Ctrl+J) and let me know what video codec and what video resolution is used.

Quote:

Originally Posted by greenbook (Post 15380)
"Suggested cropping: 2 pixels from right, 0 pixels from bottom."

Don't know if this is something I should be worried about.

This can be a problem. I need to know the video resolution.

noob2001204 01-15-2010 11:17 AM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
It's easier if you just use the FLV fixer from GetFLV.
The program is not free,but you can just use its FLV fixer without any limitation

greenbook 01-15-2010 07:22 PM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
The video codec is VP6F and the resolution is 852x480.

The audio codec, BTW, is mp3.

Stream Recorder 01-16-2010 01:01 AM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
Quote:

Originally Posted by greenbook (Post 15413)
The video codec is VP6F and the resolution is 852x480.

It is usually a good idea to have width and height divisible by 16 or at least by 8. So I think this can be a problem. I suggest you to ask the developer of yamb whether he can fix this problem.

greenbook 01-31-2010 06:35 PM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
I sent an email to the developer of yamb, and he/she has never replied back to me.

I also bought GetFLV and used the FLV Fixer on my files, but it does nothing. The playback is just as poor. Very slow and occasionally choppy.

This is really aggravating because I just put a brand new 512MB NVIDEA video card into my PC last week, and I am still having these problems.

blimey 02-04-2010 04:38 PM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
The flv fixer in GetFLV is just the same as (is actually lifted from) the freeware FLVMDI. So, it has all the same limitations as FLVMDI. It is mostly helpful for setting duration data, but it won't necessarily always start at 0:00.

The fix tool in Jaksta is actually quite powerful, although I wish it had a few more options: like the ability to set the start hex value of the first time stamp, or the ability to do a range of timestamps without manual selection. But, it is very good for setting duration data and setting the timing interval values.

Some other tools to try are FLVTool2, and RichFLV. RichFLV requires adobe air, and often crashes while reading a file. But when it does work it does a good job.

nanobots 02-22-2010 08:03 AM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
Wish I had this info a long time ago, Mp4box is awesome the created .mp4 is lossless from my .flv and its in a format I can properly work with, no more needless reencodes just to get a file I can work with.

I rip a lot of videos from Fox/Hulu and while the content plays fine in the .flv containers when I extract them and get my .264 and .aac files nothing would properly decode the video.

Excellent post, works great!

cloudflv 03-12-2010 10:13 PM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
I extracted the .264 and .aac files and remuxed it into MP4. my question is how can I remux this file into an AVI with AviDemux? I get this error when opening the MP4 in AviDemux.

Quote:

H.264 Detected

If the file is using B-frames as reference it can lead to a crash or stuttering.
Avidemux can use another mode which is safe but YOU WILL LOSE FRAME ACCURACY.
Do you want to use that mode?

cloudflv 03-26-2010 02:52 AM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
^ forget about that. I like MPEG4 better.

I also want to know how do I remux AVI (VP6F) video and MP3 audio files into an MP4 container? MP4Box didn't work like it did with the h264 and AAC streams. Is there something that can convert AVI to MP4 without re-encoding because I can join the video and audio files in VDubMod.

Stream Recorder 03-26-2010 08:46 AM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
Quote:

Originally Posted by cloudflv (Post 17643)
^ forget about that. I like MPEG4 better.

I also want to know how do I remux AVI (VP6F) video and MP3 audio files into an MP4 container? MP4Box didn't work like it did with the h264 and AAC streams. Is there something that can convert AVI to MP4 without re-encoding because I can join the video and audio files in VDubMod.

It is probably a good idea to forget about AVI and use MP4 or MKV instead.

Why don't you use MKV offered by VirtualDubMod? Some newer hardware players prefer it to MP4.

edenstewart 06-18-2012 05:52 AM

Re: Repairing FLV files by remuxing them with freeware FLV Extract and mp4box


 
Hello there,
Either FLV or any other format files often faces corruption. As these files get corrupted they become inaccessible or produce some unpredictable error while running, Not FLV only any format files if corrupted can be repaired easily. There are some software to repair mp4 music files. Now and then files get corrupted and need to be repaired. There are many trail version download links are present on internet for the newbies out there, which can try the trial version and can repair the files by themselves.

Regards
Glacy


All times are GMT -6. The time now is 01:48 PM.