Tutorial: Webstreams, lossless conversion; editing with Avidemux

5 (2 rating(s))

(5 / 5, 2 ratings)

Author Posts

29.07.2013, 12:59

Tutorial: Webstreams, lossless conversion; editing with Avidemux

Hello everybody,

I've written a short and (hopefully) easy to understand tutorial for beginners.

It includes:

- Recording webstreams with RTMPDump
- Lossless conversion of FLV (Flash Video) to mp4/mkv
- Simple editing with Avidemux
- High Quality screenshots with FFmpeg


[hidden link - please register]

I hope it's useful for some of you to learn and understand the most essential basics! If you have some questions, don't hesitate to ask!

Thank you for your time and a special thanks from my side to switchblade123 for sharing his streamcodes!

Download (PDF-File 2,1MB): [hidden link - please register]

18.02.2015, 10:05

Re: Tutorial: Webstreams, lossless conversion; editing with Avidemux

brudgon wrote:hi guys my rtmpdumphelper failed to attached to firefox can someone please help me to solve this problem?
thanks in anyway

run it then hit F8 and open up the add support for browser option. select the last instance of firefox and apply it...
you will see that you should get multiple instances of failed to attach. but at least 1 or 2 that connect successfully.
then just go the the site and you should see your links show up as normal. if they dont, hit F9 and change the host server.

if it still doesnt work there either a conflict with your firewall, another applet or firefox is now blocking it (you may need to reduce the security settings from high to medium in exporers internet options, assuming your using windows).

18.02.2015, 09:39

Re: Tutorial: Webstreams, lossless conversion; editing with Avidemux

simple question... why are you converting a 25 fps stream into a 40+fps 1?
in the hope of doing what?
from what i gather your converting a 1280x720 25fps @1000kbps
with an audio sample rate of 48.000hz @16bit on 2 channels...

seems to me because your adding 15+ extra fps is likely reason your having sync issues.

also if your re-encoding at 1000kbps like the example above, it will cause degredation issues as its an average, some frames will take less some slightly more and your not accounting for this variance which is likely the reason for the quality drop.
so try encoding at 1200kbps to give you some headroom.

as an example i have upped 2 short etv grabs. 1 original flv grabbed with rtmpdump the other the converted file to mpeg that is slightly smaller, converted to h264 mpeg format.
theres no issues with syncing or any perceived drop in quality...

[hidden link - please register]
[hidden link - please register]
check em out...

while i convert my files with avs video converter (i like the interface) the same basic procedure will work on avidmux.

17.02.2015, 20:58

Re: Tutorial: Webstreams, lossless conversion; editing with Avidemux

hi guys my rtmpdumphelper failed to attached to firefox can someone please help me to solve this problem?
thanks in anyway

15.12.2014, 12:27

Re: Tutorial: Webstreams, lossless conversion; editing with Avidemux

i know ffmpeg is the right way but for me is too complicated to use in a few word i understood nothing about ffmpeg BlushBlushBlush

15.12.2014, 11:23

Re: Tutorial: Webstreams, lossless conversion; editing with Avidemux

Sorry to say this, but dont use Avidemux to edit. It cannot preserve frame timings when outputing.

Recorded ETV TV live stream this morning

[hidden link - please register]

Don't rely on frame rate notification

And ended up with this (Frame timings) from recorded stream
(note second number)
Frame duration ms
1027 40
1067 40
1107 40
1147 40
1187 40
1227 40
1267 40
1307 40
1347 40
1387 40
1427 40
1467 40
1507 40
1547 40
..
..
3959 40
4002 43
4041 39
4079 38
4119 40
4159 40
4205 46
4241 36
4279 38
4319 40
4364 45
4402 38
4440 38
4480 40
4523 43
4560 37
4600 40
4640 40
..
..
6027 40
6067 40
6107 40
6147 40
6187 40
6227 40
6267 40
6307 40
6347 40
6387 40
6427 40
6467 40
6507 40
6547 40
6587 40
6627 40
6667 40
6707 40
..
..
7600 36
7640 40
7680 40
7723 43
7761 38
7801 40
7839 38
7883 44
7919 36
7959 40
8000 41
8043 43
8082 39
8120 38
8160 40
8204 44
8242 38
8281 39
8320 39
8363 43

Verfified using two methods FFmpeg probe and Pts using hex editor

14.12.2014, 21:38

Re: Tutorial: Webstreams, lossless conversion; editing with Avidemux

This is a typical Avidemux bug with h263/264 files. Sad

You can try to fix it with the time-shift option, but using it is a trial and error thing. Select a scene when someone speaks on the mike
so you can see wether it already fits or you have to adjust the value again (ms=milliseconds).

[hidden link - please register]

14.12.2014, 17:05

Re: Tutorial: Webstreams, lossless conversion; editing with Avidemux

vappiano68 wrote:
brudgon wrote:hi guys can please someone to help me with avidemux 2.6?
ok this is the problem....i record the show like i always do with rtmpdump and the file is saved like .flv but also with this version the audio is async so i must encode all the recordings with handbrake in mkv so the audio is perfect but the encoding take more time can someone please help me to avoid the encoding?
i would like to use only avidemux and make videos perfecly sync like now but using only avidemux and in the original format flv
thanks in advanceThumb upBig Grin

Unfortunately now I have no time.
I can write a simple guide at the end of the next week.

Only one question:
when you play your original .flv recordings with VLC player,
is the audio sync or async?

perfectly sync for all the duration of the video

14.12.2014, 16:40

Re: Tutorial: Webstreams, lossless conversion; editing with Avidemux

brudgon wrote:hi guys can please someone to help me with avidemux 2.6?
ok this is the problem....i record the show like i always do with rtmpdump and the file is saved like .flv but also with this version the audio is async so i must encode all the recordings with handbrake in mkv so the audio is perfect but the encoding take more time can someone please help me to avoid the encoding?
i would like to use only avidemux and make videos perfecly sync like now but using only avidemux and in the original format flv
thanks in advanceThumb upBig Grin

Unfortunately now I have no time.
I can write a simple guide at the end of the next week.

Only one question:
when you play your original .flv recordings with VLC player,
is the audio sync or async?

14.12.2014, 15:32

Re: Tutorial: Webstreams, lossless conversion; editing with Avidemux

hi guys can please someone to help me with avidemux 2.6?
ok this is the problem....i record the show like i always do with rtmpdump and the file is saved like .flv but also with this version the audio is async so i must encode all the recordings with handbrake in mkv so the audio is perfect but the encoding take more time can someone please help me to avoid the encoding?
i would like to use only avidemux and make videos perfecly sync like now but using only avidemux and in the original format flv
thanks in advanceThumb upBig Grin

19.06.2014, 23:49

Re: Tutorial: Webstreams, lossless conversion; editing with Avidemux

FFmpeg static build for Linux (64bit) - from Dirk Farin's github-repository

Includes the fantastic nlmeans-filter: [hidden link - please register]
Just compare the screenshots on the website and you'll quickly realize how amazing this filter really is Thumb upThumb upThumb up

ffmpeg version N-56226-g1f7277a Copyright © 2000-2013 the FFmpeg developers
built on Jun 18 2014 13:17:12 with gcc 4.8.2 (GCC) 20131212 (Red Hat 4.8.2-7)
configuration: --prefix=/usr --arch=x86_64 --disable-debug --enable-static --disable-shared --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libcaca --enable-libcdio --enable-libcelt --enable-libdc1394 --enable-libfaac --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libxvid --enable-libzvbi --enable-nonfree --enable-openal --enable-openssl --enable-pic --enable-version3 --enable-x11grab --enable-filters


Download (MEGA): [hidden link - please register]

30.05.2014, 11:06

Re: Tutorial: Webstreams, lossless conversion; editing with Avidemux

i recorded the show and these are the infos about the video
[hidden link - please register]
audio is perfectly sync this file is flv saved in 41.236fps but when i make for example a complete etv show with some cutting and save the file with the same frames the video is too fast and async so i must see in the rtmp parameters and rtmp record in 20fps so in avidemux i save the video in 20fps and the videofile is right but the audio is async again and this is my damn problem because i tried many solution with avidemux but others format video do not work only mp4 work well with the video but again async audio or too back or too forward i tried also to save like the original flv file but avidemux say unsupported video only flv1 and vp6 video are supported

thanks for the patience

30.05.2014, 10:06

Re: Tutorial: Webstreams, lossless conversion; editing with Avidemux

@ All

Mediainfo does not know if file is varible, it only reads header info, which has been generated by recording app/Stream capture. Recording apps are dumb, they basically do a hex dump of input stream into media file format.

A list of Media file types that can have variable fps.
FLV
MKV
MOV
MP4
WMB
WM*
RM
...
ETC

How do you verify the source file is not variable? if you don't check frame timing info. If you just take a source video with unknown fps and re-encode to fixed fps without putting the timing info back in, your encodes will have desync.


A rough test is to demux source video to elementary streams and check duration of each. They wont match if variable.

30.05.2014, 00:43

Re: Tutorial: Webstreams, lossless conversion; editing with Avidemux

Download:

Stable builds: [hidden link - please register] (Windows - win64)

30.05.2014, 00:37

Re: Tutorial: Webstreams, lossless conversion; editing with Avidemux

thanks dackel and shirtfull for the help you gave meThumb up one day my videos will be better than nowBlush
i'm using avidemux 2.5.6 32bit i want to try other versions but i don't know where to find themCry
my sistem is windows8 64bit